@bcgov-sso/common-react-components 1.18.2 → 1.19.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,11 +1,11 @@
1
1
  /// <reference types="react" />
2
- declare function Accordionpanel({ title, allOpen, setAllOpen, children }: any): JSX.Element;
2
+ declare function AccordionPanel({ title, hash, allOpen, setAllOpen, children }: any): JSX.Element;
3
3
  interface Props {
4
4
  children: any;
5
5
  open?: boolean;
6
6
  }
7
7
  declare function Accordion({ children, open }: Props): JSX.Element;
8
8
  declare namespace Accordion {
9
- var Panel: typeof Accordionpanel;
9
+ var Panel: typeof AccordionPanel;
10
10
  }
11
11
  export default Accordion;
@@ -16,7 +16,7 @@ export declare const styles: {
16
16
  };
17
17
  };
18
18
  };
19
- declare type Variant = 'danger' | 'success';
19
+ declare type Variant = 'danger' | 'success' | 'info';
20
20
  interface Props {
21
21
  variant?: Variant;
22
22
  content?: string;
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  /// <reference types="react" />
2
2
  import * as _button_inc_component_library_Button from '@button-inc/component-library/Button';
3
3
 
4
- declare function Accordionpanel({ title, allOpen, setAllOpen, children }: any): JSX.Element;
4
+ declare function AccordionPanel({ title, hash, allOpen, setAllOpen, children }: any): JSX.Element;
5
5
  interface Props$2 {
6
6
  children: any;
7
7
  open?: boolean;
8
8
  }
9
9
  declare function Accordion({ children, open }: Props$2): JSX.Element;
10
10
  declare namespace Accordion {
11
- var Panel: typeof Accordionpanel;
11
+ var Panel: typeof AccordionPanel;
12
12
  }
13
13
 
14
14
  interface Props$1 {
@@ -24,7 +24,7 @@ declare function NumberedContents({ number, title, children, showLine, circleDia
24
24
 
25
25
  declare const Button: (props: _button_inc_component_library_Button.Props) => JSX.Element;
26
26
 
27
- declare type Variant = 'danger' | 'success';
27
+ declare type Variant = 'danger' | 'success' | 'info';
28
28
  interface Props {
29
29
  variant?: Variant;
30
30
  content?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bcgov-sso/common-react-components",
3
- "version": "1.18.2",
3
+ "version": "1.19.0",
4
4
  "description": "common react components",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -25,8 +25,11 @@
25
25
  "@fortawesome/fontawesome-svg-core": "^1.2.36",
26
26
  "@fortawesome/free-solid-svg-icons": "^5.15.4",
27
27
  "@fortawesome/react-fontawesome": "^0.1.16",
28
+ "@types/lodash.kebabcase": "^4.1.6",
28
29
  "@types/styled-components": "^5.1.16",
30
+ "history": "^5.3.0",
29
31
  "lodash.flatten": "^4.4.0",
32
+ "lodash.kebabcase": "^4.1.1",
30
33
  "styled-components": "^5.3.3"
31
34
  },
32
35
  "peerDependencies": {
@@ -57,13 +60,13 @@
57
60
  "babel-loader": "^8.2.3",
58
61
  "babel-preset-react": "^6.24.1",
59
62
  "prettier": "^2.5.0",
63
+ "react": "17.0.2",
64
+ "react-dom": "17.0.2",
60
65
  "rollup": "^2.60.2",
61
66
  "rollup-plugin-dts": "^4.0.1",
62
67
  "storybook-addon-designs": "^6.2.0",
63
68
  "ts-loader": "^9.2.6",
64
69
  "typescript": "^4.5.2",
65
- "webpack-cli": "^4.9.1",
66
- "react": "17.0.2",
67
- "react-dom": "17.0.2"
70
+ "webpack-cli": "^4.9.1"
68
71
  }
69
72
  }