@bcgov-sso/common-react-components 1.31.3 → 2.1.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.
- package/README.md +2 -0
- package/dist/{cjs/index.js → index.cjs.js} +16180 -16528
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +26 -27
- package/dist/{esm/index.js → index.esm.js} +16126 -16467
- package/dist/index.esm.js.map +1 -0
- package/dist/{esm/types → types/src}/components/Accordion/Accordion.d.ts +3 -3
- package/dist/{cjs/types → types/src}/components/Alert/Alert.d.ts +2 -2
- package/dist/{cjs/types → types/src}/components/Border/Border.d.ts +1 -1
- package/dist/{cjs/types → types/src}/components/Button/Button.d.ts +0 -1
- package/dist/{esm/types → types/src}/components/Header/Header.d.ts +1 -1
- package/dist/{esm/types → types/src}/components/InfoText/InfoText.d.ts +1 -1
- package/dist/{cjs/types → types/src}/components/LastSavedMessage/LastSavedMessage.d.ts +2 -2
- package/dist/{esm/types → types/src}/components/NumberedContents/NumberedContents.d.ts +2 -2
- package/dist/types/src/components/SearchBar/SearchBar.d.ts +3 -0
- package/dist/{cjs/types → types/src}/components/Table/Table.d.ts +21 -4
- package/dist/types/src/components/Tabs/Tabs.d.ts +3 -0
- package/dist/types/vitest.config.d.ts +2 -0
- package/package.json +53 -68
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/types/components/Accordion/Accordion.d.ts +0 -11
- package/dist/cjs/types/components/Header/Header.d.ts +0 -8
- package/dist/cjs/types/components/InfoText/InfoText.d.ts +0 -7
- package/dist/cjs/types/components/NumberedContents/NumberedContents.d.ts +0 -12
- package/dist/cjs/types/components/SearchBar/SearchBar.d.ts +0 -3
- package/dist/cjs/types/components/Tabs/Tabs.d.ts +0 -4
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/types/components/Accordion/index.d.ts +0 -1
- package/dist/esm/types/components/Alert/Alert.d.ts +0 -27
- package/dist/esm/types/components/Alert/index.d.ts +0 -1
- package/dist/esm/types/components/Border/Border.d.ts +0 -9
- package/dist/esm/types/components/Border/index.d.ts +0 -1
- package/dist/esm/types/components/Button/Button.d.ts +0 -43
- package/dist/esm/types/components/Button/index.d.ts +0 -1
- package/dist/esm/types/components/Header/index.d.ts +0 -1
- package/dist/esm/types/components/InfoText/index.d.ts +0 -1
- package/dist/esm/types/components/LastSavedMessage/LastSavedMessage.d.ts +0 -8
- package/dist/esm/types/components/LastSavedMessage/index.d.ts +0 -1
- package/dist/esm/types/components/NumberedContents/index.d.ts +0 -1
- package/dist/esm/types/components/SearchBar/SearchBar.d.ts +0 -3
- package/dist/esm/types/components/SearchBar/index.d.ts +0 -1
- package/dist/esm/types/components/Table/Table.d.ts +0 -40
- package/dist/esm/types/components/Table/index.d.ts +0 -1
- package/dist/esm/types/components/Tabs/Tabs.d.ts +0 -4
- package/dist/esm/types/components/Tabs/index.d.ts +0 -1
- package/dist/esm/types/components/index.d.ts +0 -11
- package/dist/esm/types/index.d.ts +0 -1
- package/dist/esm/types/styles/theme.d.ts +0 -18
- /package/dist/{cjs/types → types/src}/components/Accordion/index.d.ts +0 -0
- /package/dist/{cjs/types → types/src}/components/Alert/index.d.ts +0 -0
- /package/dist/{cjs/types → types/src}/components/Border/index.d.ts +0 -0
- /package/dist/{cjs/types → types/src}/components/Button/index.d.ts +0 -0
- /package/dist/{cjs/types → types/src}/components/Header/index.d.ts +0 -0
- /package/dist/{cjs/types → types/src}/components/InfoText/index.d.ts +0 -0
- /package/dist/{cjs/types → types/src}/components/LastSavedMessage/index.d.ts +0 -0
- /package/dist/{cjs/types → types/src}/components/NumberedContents/index.d.ts +0 -0
- /package/dist/{cjs/types → types/src}/components/SearchBar/index.d.ts +0 -0
- /package/dist/{cjs/types → types/src}/components/Table/index.d.ts +0 -0
- /package/dist/{cjs/types → types/src}/components/Tabs/index.d.ts +0 -0
- /package/dist/{cjs/types → types/src}/components/index.d.ts +0 -0
- /package/dist/{cjs/types → types/src}/index.d.ts +0 -0
- /package/dist/{cjs/types → types/src}/styles/theme.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Accordion';
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const styles: {
|
|
3
|
-
shared: {
|
|
4
|
-
container: string;
|
|
5
|
-
close: string;
|
|
6
|
-
};
|
|
7
|
-
variant: {
|
|
8
|
-
danger: {
|
|
9
|
-
container: string;
|
|
10
|
-
};
|
|
11
|
-
info: {
|
|
12
|
-
container: string;
|
|
13
|
-
};
|
|
14
|
-
success: {
|
|
15
|
-
container: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
type Variant = 'danger' | 'success' | 'info';
|
|
20
|
-
interface Props {
|
|
21
|
-
variant?: Variant;
|
|
22
|
-
content?: string;
|
|
23
|
-
closable?: boolean;
|
|
24
|
-
[key: string]: any;
|
|
25
|
-
}
|
|
26
|
-
declare const Alert: (props: Props) => JSX.Element;
|
|
27
|
-
export default Alert;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Alert';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Border';
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const styles: {
|
|
3
|
-
shared: {
|
|
4
|
-
button: string;
|
|
5
|
-
};
|
|
6
|
-
size: {
|
|
7
|
-
small: {
|
|
8
|
-
button: string;
|
|
9
|
-
};
|
|
10
|
-
medium: {
|
|
11
|
-
button: string;
|
|
12
|
-
};
|
|
13
|
-
large: {
|
|
14
|
-
button: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
variant: {
|
|
18
|
-
callout: {
|
|
19
|
-
button: string;
|
|
20
|
-
};
|
|
21
|
-
primary: {
|
|
22
|
-
button: string;
|
|
23
|
-
};
|
|
24
|
-
plainText: {
|
|
25
|
-
button: string;
|
|
26
|
-
};
|
|
27
|
-
danger: {
|
|
28
|
-
button: string;
|
|
29
|
-
};
|
|
30
|
-
secondary: {
|
|
31
|
-
button: string;
|
|
32
|
-
};
|
|
33
|
-
bcPrimary: {
|
|
34
|
-
button: string;
|
|
35
|
-
};
|
|
36
|
-
bcSecondary: {
|
|
37
|
-
button: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
disabled: string;
|
|
41
|
-
};
|
|
42
|
-
declare const Button: (props: import("@button-inc/component-library/Button").Props) => JSX.Element;
|
|
43
|
-
export default Button;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Button';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Header';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './InfoText';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './LastSavedMessage';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './NumberedContents';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './SearchBar';
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const TABLE_BACKGROUND_COLOR = "#ededed";
|
|
3
|
-
export declare const TABLE_ROW_ACTIVE_COLOR = "#4950FA";
|
|
4
|
-
export declare const TABLE_ROW_HOVER_COLOR = "#fdb913";
|
|
5
|
-
export declare const TABLE_ROW_HEIGHT = 40;
|
|
6
|
-
export declare const TABLE_ROW_HEIGHT_MINI = 40;
|
|
7
|
-
export declare const TABLE_ROW_SPACING = 5;
|
|
8
|
-
export declare const TABLE_ROW_BORDER_RADIUS = 6;
|
|
9
|
-
export interface Option {
|
|
10
|
-
value: string | string[];
|
|
11
|
-
label: string;
|
|
12
|
-
}
|
|
13
|
-
export interface TableFilter {
|
|
14
|
-
key?: string;
|
|
15
|
-
value?: string | Option[];
|
|
16
|
-
multiselect?: boolean;
|
|
17
|
-
onChange?: Function;
|
|
18
|
-
options: Option[];
|
|
19
|
-
label?: string;
|
|
20
|
-
}
|
|
21
|
-
export interface Column {
|
|
22
|
-
header: string;
|
|
23
|
-
accessorKey: string;
|
|
24
|
-
}
|
|
25
|
-
export interface TableProps {
|
|
26
|
-
variant?: string;
|
|
27
|
-
readOnly?: boolean;
|
|
28
|
-
columns: Column[];
|
|
29
|
-
data: unknown[];
|
|
30
|
-
onRowSelect?: Function;
|
|
31
|
-
defaultPageSize?: number;
|
|
32
|
-
enableGlobalSearch?: boolean;
|
|
33
|
-
globalSearchPlaceholder?: string;
|
|
34
|
-
globalSearchStyle?: React.CSSProperties;
|
|
35
|
-
enablePagination?: boolean;
|
|
36
|
-
pageSizeOptions?: number[];
|
|
37
|
-
noDataFoundText?: string;
|
|
38
|
-
}
|
|
39
|
-
declare const Table: ({ variant, columns, data, readOnly, onRowSelect, defaultPageSize, enableGlobalSearch, globalSearchPlaceholder, globalSearchStyle, enablePagination, pageSizeOptions, noDataFoundText, }: TableProps) => JSX.Element;
|
|
40
|
-
export default Table;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Table';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, Tab } from './Tabs';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { default as Accordion } from './Accordion';
|
|
2
|
-
export { default as NumberedContents } from './NumberedContents';
|
|
3
|
-
export { default as Button } from './Button';
|
|
4
|
-
export { default as Alert } from './Alert';
|
|
5
|
-
export { default as Table } from './Table';
|
|
6
|
-
export { default as Tabs, Tab } from './Tabs';
|
|
7
|
-
export { default as SearchBar } from './SearchBar';
|
|
8
|
-
export { default as Header } from './Header';
|
|
9
|
-
export { default as InfoText } from './InfoText';
|
|
10
|
-
export { default as LastSavedMessage } from './LastSavedMessage';
|
|
11
|
-
export { default as Border } from './Border';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare const FORM_TOP_SPACING = "20px";
|
|
2
|
-
export declare const FORM_BUTTON_TOP_SPACING = "30px";
|
|
3
|
-
export declare const DEFAULT_FONT_SIZE = "16px";
|
|
4
|
-
export declare const PRIMARY_BUTTON_HOVER_COLOR = "#325b84";
|
|
5
|
-
export declare const SECONDARY_FONT_COLOR = "#777777";
|
|
6
|
-
export declare const DEFAULT_FONT_FAMILY = "BCSans, Verdana, Arial, sans-serif";
|
|
7
|
-
export declare const MAX_STRING_FIELD_WIDTH = "400px";
|
|
8
|
-
export declare const SUBTITLE_FONT_SIZE = "18px";
|
|
9
|
-
export declare const HELP_TEXT_FONT_SIZE = "12px";
|
|
10
|
-
export declare const SECONDARY_BLUE = "#38598a";
|
|
11
|
-
export declare const LINK_BLUE = "#1A5A96";
|
|
12
|
-
export declare const LINK_COLOR = "#0000EE";
|
|
13
|
-
export declare const PRIMARY_RED = "#D8292F";
|
|
14
|
-
export declare const FORM_BUTTON_MIN_WIDTH = "190px";
|
|
15
|
-
export declare const LANDING_HEADER_FONT = "22px";
|
|
16
|
-
export declare const LARGE_BUTTON_FONT_SIZE = "22px";
|
|
17
|
-
export declare const TABLE_ROW_HEIGHT = 60;
|
|
18
|
-
export declare const TABLE_ROW_SPACING = 5;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|