@atlaskit/panel 0.4.8 → 0.4.10

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/panel
2
2
 
3
+ ## 0.4.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
8
+
9
+ ## 0.4.9
10
+
11
+ ### Patch Changes
12
+
13
+ - [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
14
+
3
15
  ## 0.4.8
4
16
 
5
17
  ### Patch Changes
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/panel",
3
- "version": "0.4.8"
3
+ "version": "0.4.10"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/panel",
3
- "version": "0.4.8"
3
+ "version": "0.4.10"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/panel",
3
- "version": "0.4.8"
3
+ "version": "0.4.10"
4
4
  }
@@ -0,0 +1,20 @@
1
+ import { PureComponent } from 'react';
2
+ import { BasePanelProps } from './PanelStateless';
3
+ declare type Props = BasePanelProps & {
4
+ /** Defines whether the panel is expanded by default. */
5
+ isDefaultExpanded?: boolean;
6
+ };
7
+ declare type State = {
8
+ isExpanded: boolean;
9
+ };
10
+ export default class Panel extends PureComponent<Props, State> {
11
+ static defaultProps: {
12
+ isDefaultExpanded: boolean;
13
+ };
14
+ state: {
15
+ isExpanded: boolean;
16
+ };
17
+ handleChange: () => void;
18
+ render(): JSX.Element;
19
+ }
20
+ export {};
@@ -0,0 +1,19 @@
1
+ import { PureComponent, ReactNode } from 'react';
2
+ export declare type BasePanelProps = {
3
+ /** Content to be shown inside the panel. */
4
+ children?: ReactNode;
5
+ /** Header to render on the panel. Clicking the header expands and collapses the panel */
6
+ header?: ReactNode;
7
+ };
8
+ export declare type Props = BasePanelProps & {
9
+ /** Defines whether the panel is expanded by default. */
10
+ isExpanded: boolean;
11
+ /** This callback is called when panel is expanded/collapsed */
12
+ onChange: (isExpanded: boolean) => void;
13
+ };
14
+ export default class PanelStateless extends PureComponent<Props> {
15
+ static defaultProps: {
16
+ isExpanded: boolean;
17
+ };
18
+ render(): JSX.Element;
19
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from './Panel';
2
+ export { default as PanelStateless } from './PanelStateless';
@@ -0,0 +1,10 @@
1
+ import type { FC, HTMLProps } from 'react';
2
+ export declare const PanelWrapper: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>>;
3
+ export declare const ButtonWrapper: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
4
+ isHidden: boolean;
5
+ }, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
6
+ isHidden: boolean;
7
+ }>;
8
+ export declare const PanelHeader: FC<HTMLProps<HTMLDivElement> & {
9
+ isFocused?: boolean;
10
+ }>;
@@ -0,0 +1 @@
1
+ export { default, PanelStateless } from './components/Panel';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/panel",
3
- "version": "0.4.8",
3
+ "version": "0.4.10",
4
4
  "description": "A React component rendering a collapsible panel",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,6 +12,13 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
+ "typesVersions": {
16
+ ">=4.0 <4.5": {
17
+ "*": [
18
+ "dist/types-ts4.0/*"
19
+ ]
20
+ }
21
+ },
15
22
  "atlaskit:src": "src/index.ts",
16
23
  "atlassian": {
17
24
  "team": "Bitbucket: CoreX",
@@ -24,7 +31,7 @@
24
31
  "dependencies": {
25
32
  "@atlaskit/button": "^16.3.0",
26
33
  "@atlaskit/icon": "^21.10.0",
27
- "@atlaskit/theme": "^12.1.0",
34
+ "@atlaskit/theme": "^12.2.0",
28
35
  "@babel/runtime": "^7.0.0",
29
36
  "react-animate-height": "^2.0.5",
30
37
  "react-focus-within": "^2.0.1"
@@ -35,10 +42,10 @@
35
42
  },
36
43
  "devDependencies": {
37
44
  "@atlaskit/docs": "*",
38
- "@atlaskit/page": "^12.1.0",
45
+ "@atlaskit/page": "^12.2.0",
39
46
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
40
47
  "enzyme": "^3.10.0",
41
- "typescript": "4.2.4"
48
+ "typescript": "4.5.5"
42
49
  },
43
50
  "techstack": {
44
51
  "@atlassian/frontend": {
package/report.api.md ADDED
@@ -0,0 +1,65 @@
1
+ ## API Report File for "@atlaskit/panel"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ <!--
6
+ Generated API Report version: 2.0
7
+ -->
8
+
9
+ [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
10
+
11
+ ```ts
12
+ import { PureComponent } from 'react';
13
+ import { ReactNode } from 'react';
14
+
15
+ // @public (undocumented)
16
+ type BasePanelProps = {
17
+ children?: ReactNode;
18
+ header?: ReactNode;
19
+ };
20
+
21
+ // @public (undocumented)
22
+ class Panel extends PureComponent<Props, State> {
23
+ // (undocumented)
24
+ static defaultProps: {
25
+ isDefaultExpanded: boolean;
26
+ };
27
+ // (undocumented)
28
+ handleChange: () => void;
29
+ // (undocumented)
30
+ render(): JSX.Element;
31
+ // (undocumented)
32
+ state: {
33
+ isExpanded: boolean;
34
+ };
35
+ }
36
+ export default Panel;
37
+
38
+ // @public (undocumented)
39
+ export class PanelStateless extends PureComponent<Props_2> {
40
+ // (undocumented)
41
+ static defaultProps: {
42
+ isExpanded: boolean;
43
+ };
44
+ // (undocumented)
45
+ render(): JSX.Element;
46
+ }
47
+
48
+ // @public (undocumented)
49
+ type Props = BasePanelProps & {
50
+ isDefaultExpanded?: boolean;
51
+ };
52
+
53
+ // @public (undocumented)
54
+ type Props_2 = BasePanelProps & {
55
+ isExpanded: boolean;
56
+ onChange: (isExpanded: boolean) => void;
57
+ };
58
+
59
+ // @public (undocumented)
60
+ type State = {
61
+ isExpanded: boolean;
62
+ };
63
+
64
+ // (No @packageDocumentation comment for this package)
65
+ ```