@bcgov-sso/common-react-components 1.6.0 → 1.17.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.
@@ -2,8 +2,9 @@
2
2
  declare function Accordionpanel({ title, allOpen, setAllOpen, children }: any): JSX.Element;
3
3
  interface Props {
4
4
  children: any;
5
+ open?: boolean;
5
6
  }
6
- declare function Accordion({ children }: Props): JSX.Element;
7
+ declare function Accordion({ children, open }: Props): JSX.Element;
7
8
  declare namespace Accordion {
8
9
  var Panel: typeof Accordionpanel;
9
10
  }
@@ -16,6 +16,7 @@ export declare const styles: {
16
16
  declare type Variant = 'danger' | 'success';
17
17
  interface Props {
18
18
  variant?: Variant;
19
+ content?: string;
19
20
  [key: string]: any;
20
21
  }
21
22
  declare const Alert: (props: Props) => JSX.Element;
@@ -21,9 +21,18 @@ export declare const styles: {
21
21
  primary: {
22
22
  button: string;
23
23
  };
24
+ plainText: {
25
+ button: string;
26
+ };
24
27
  secondary: {
25
28
  button: string;
26
29
  };
30
+ bcPrimary: {
31
+ button: string;
32
+ };
33
+ bcSecondary: {
34
+ button: string;
35
+ };
27
36
  };
28
37
  disabled: string;
29
38
  };
package/dist/index.d.ts CHANGED
@@ -4,8 +4,9 @@ import * as _button_inc_component_library_Button from '@button-inc/component-lib
4
4
  declare function Accordionpanel({ title, allOpen, setAllOpen, children }: any): JSX.Element;
5
5
  interface Props$2 {
6
6
  children: any;
7
+ open?: boolean;
7
8
  }
8
- declare function Accordion({ children }: Props$2): JSX.Element;
9
+ declare function Accordion({ children, open }: Props$2): JSX.Element;
9
10
  declare namespace Accordion {
10
11
  var Panel: typeof Accordionpanel;
11
12
  }
@@ -26,6 +27,7 @@ declare const Button: (props: _button_inc_component_library_Button.Props) => JSX
26
27
  declare type Variant = 'danger' | 'success';
27
28
  interface Props {
28
29
  variant?: Variant;
30
+ content?: string;
29
31
  [key: string]: any;
30
32
  }
31
33
  declare const Alert: (props: Props) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcgov-sso/common-react-components",
3
- "version": "1.6.0",
3
+ "version": "1.17.0",
4
4
  "description": "common react components",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -62,6 +62,8 @@
62
62
  "storybook-addon-designs": "^6.2.0",
63
63
  "ts-loader": "^9.2.6",
64
64
  "typescript": "^4.5.2",
65
- "webpack-cli": "^4.9.1"
65
+ "webpack-cli": "^4.9.1",
66
+ "react": "17.0.2",
67
+ "react-dom": "17.0.2"
66
68
  }
67
69
  }