@atlaskit/right-side-panel 1.2.0 → 1.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/right-side-panel
2
2
 
3
+ ## 1.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`7e051bad115`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7e051bad115) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
8
+
3
9
  ## 1.2.0
4
10
 
5
11
  ### Minor Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/right-side-panel",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/right-side-panel",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/right-side-panel",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "sideEffects": false
5
5
  }
@@ -0,0 +1,3 @@
1
+ export declare const transitionDurationMs = 220;
2
+ export declare const transitionTimingFunction = "cubic-bezier(0.2, 0, 0, 1)";
3
+ export declare const panelWidth = 368;
@@ -0,0 +1,41 @@
1
+ import React from 'react';
2
+ import { Component, ReactNode } from 'react';
3
+ export declare const UNMOUNTED = "unmounted";
4
+ export declare const EXITED = "exited";
5
+ export declare const ENTERING = "entering";
6
+ export declare const ENTERED = "entered";
7
+ export declare const EXITING = "exiting";
8
+ export declare enum TransitionStatus {
9
+ UNMOUNTED = "unmounted",
10
+ EXITED = "exited",
11
+ ENTERING = "entering",
12
+ ENTERED = "entered",
13
+ EXITING = "exiting"
14
+ }
15
+ export interface Props {
16
+ isOpen: boolean;
17
+ attachPanelTo: string;
18
+ children?: ReactNode;
19
+ skipAnimationOnMount?: boolean;
20
+ mountOnEnter?: boolean;
21
+ unmountOnExit?: boolean;
22
+ disableEnterAnimation?: boolean;
23
+ disableExitAnimation?: boolean;
24
+ onOpenAnimationFinished?: () => void;
25
+ onCloseAnimationFinished?: () => void;
26
+ }
27
+ export interface State {
28
+ entered: boolean;
29
+ container?: Element | null;
30
+ }
31
+ export declare class RightSidePanel extends Component<Props, State> {
32
+ attachPanelTo: string;
33
+ state: {
34
+ entered: boolean;
35
+ container: undefined;
36
+ };
37
+ componentDidMount(): void;
38
+ renderDrawer(Container: HTMLElement): ReactNode;
39
+ render(): React.ReactNode;
40
+ }
41
+ export default RightSidePanel;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const RightSidePanelDrawer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
3
+ export declare const RightSidePanelDrawerContent: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const FlexContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
3
+ export declare const ContentWrapper: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, keyof import("react").HTMLAttributes<HTMLDivElement>>, object>;
@@ -0,0 +1,2 @@
1
+ export { default as RightSidePanel } from './components/RightSidePanel';
2
+ export { FlexContainer, ContentWrapper } from './components/styled';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/right-side-panel",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "A cross-product right-side-panel component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -57,7 +57,8 @@
57
57
  "techstack": {
58
58
  "@repo/internal": {
59
59
  "design-tokens": [
60
- "color"
60
+ "color",
61
+ "spacing"
61
62
  ]
62
63
  }
63
64
  }
@@ -0,0 +1,74 @@
1
+ ## API Report File for "@atlaskit/right-side-panel"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ /// <reference types="react" />
8
+
9
+ import { ClassAttributes } from 'react';
10
+ import { Component } from 'react';
11
+ import { DetailedHTMLProps } from 'react';
12
+ import { HTMLAttributes } from 'react';
13
+ import { default as React_2 } from 'react';
14
+ import { ReactNode } from 'react';
15
+ import { StyledComponent } from '@emotion/styled-base';
16
+
17
+ // @public (undocumented)
18
+ export const ContentWrapper: StyledComponent<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, keyof HTMLAttributes<HTMLDivElement>>, object>;
19
+
20
+ // @public (undocumented)
21
+ export const FlexContainer: StyledComponent<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>, keyof HTMLAttributes<HTMLDivElement>>, object>;
22
+
23
+ // @public (undocumented)
24
+ interface Props {
25
+ // (undocumented)
26
+ attachPanelTo: string;
27
+ // (undocumented)
28
+ children?: ReactNode;
29
+ // (undocumented)
30
+ disableEnterAnimation?: boolean;
31
+ // (undocumented)
32
+ disableExitAnimation?: boolean;
33
+ // (undocumented)
34
+ isOpen: boolean;
35
+ // (undocumented)
36
+ mountOnEnter?: boolean;
37
+ // (undocumented)
38
+ onCloseAnimationFinished?: () => void;
39
+ // (undocumented)
40
+ onOpenAnimationFinished?: () => void;
41
+ // (undocumented)
42
+ skipAnimationOnMount?: boolean;
43
+ // (undocumented)
44
+ unmountOnExit?: boolean;
45
+ }
46
+
47
+ // @public (undocumented)
48
+ export class RightSidePanel extends Component<Props, State> {
49
+ // (undocumented)
50
+ attachPanelTo: string;
51
+ // (undocumented)
52
+ componentDidMount(): void;
53
+ // (undocumented)
54
+ render(): React_2.ReactNode;
55
+ // (undocumented)
56
+ renderDrawer(Container: HTMLElement): ReactNode;
57
+ // (undocumented)
58
+ state: {
59
+ entered: boolean;
60
+ container: undefined;
61
+ };
62
+ }
63
+
64
+ // @public (undocumented)
65
+ interface State {
66
+ // (undocumented)
67
+ container?: Element | null;
68
+ // (undocumented)
69
+ entered: boolean;
70
+ }
71
+
72
+ // (No @packageDocumentation comment for this package)
73
+
74
+ ```