@atlaskit/help-layout 5.0.4 → 6.0.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/analytics/package.json +1 -1
  3. package/dist/cjs/analytics.js +1 -1
  4. package/dist/cjs/components/Header/BackButton.js +3 -23
  5. package/dist/cjs/components/Header/CloseButton.js +1 -1
  6. package/dist/cjs/components/Header/styled.compiled.css +31 -0
  7. package/dist/cjs/components/Header/styled.js +84 -82
  8. package/dist/cjs/components/HelpLayoutContent.js +1 -1
  9. package/dist/cjs/components/constants.js +1 -8
  10. package/dist/cjs/components/styled.compiled.css +36 -0
  11. package/dist/cjs/components/styled.js +61 -78
  12. package/dist/es2019/analytics.js +1 -1
  13. package/dist/es2019/components/Header/BackButton.js +3 -25
  14. package/dist/es2019/components/Header/CloseButton.js +1 -1
  15. package/dist/es2019/components/Header/styled.compiled.css +31 -0
  16. package/dist/es2019/components/Header/styled.js +60 -77
  17. package/dist/es2019/components/HelpLayoutContent.js +1 -1
  18. package/dist/es2019/components/constants.js +0 -2
  19. package/dist/es2019/components/styled.compiled.css +36 -0
  20. package/dist/es2019/components/styled.js +46 -84
  21. package/dist/esm/analytics.js +1 -1
  22. package/dist/esm/components/Header/BackButton.js +3 -23
  23. package/dist/esm/components/Header/CloseButton.js +1 -1
  24. package/dist/esm/components/Header/styled.compiled.css +31 -0
  25. package/dist/esm/components/Header/styled.js +83 -77
  26. package/dist/esm/components/HelpLayoutContent.js +1 -1
  27. package/dist/esm/components/constants.js +0 -2
  28. package/dist/esm/components/styled.compiled.css +36 -0
  29. package/dist/esm/components/styled.js +60 -74
  30. package/dist/types/components/Header/styled.d.ts +29 -29
  31. package/dist/types/components/constants.d.ts +0 -1
  32. package/dist/types/components/styled.d.ts +15 -28
  33. package/dist/types-ts4.5/components/Header/styled.d.ts +29 -29
  34. package/dist/types-ts4.5/components/constants.d.ts +0 -1
  35. package/dist/types-ts4.5/components/styled.d.ts +15 -28
  36. package/messages/package.json +1 -1
  37. package/package.json +9 -7
@@ -0,0 +1,31 @@
1
+ ._11c81ixg{font:var(--ds-font-body-large,normal 400 1pc/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
+ ._v5641kd4{transition:left .22s,opacity .22s}
3
+ ._n7zlmfkj{border-bottom:var(--ds-space-025,2px) solid var(--ds-border,#ebecf0)}
4
+ ._154i1q64{top:var(--ds-space-200,15px)}
5
+ ._154iutpp{top:var(--ds-space-150,9pt)}
6
+ ._18m915vq{overflow-y:hidden}
7
+ ._18u0pxbi{margin-left:var(--ds-space-200,1pc)}
8
+ ._19bvpxbi{padding-left:var(--ds-space-200,1pc)}
9
+ ._1bah1yb4{justify-content:space-between}
10
+ ._1bsb1osq{width:100%}
11
+ ._1bsbnau3{width:calc(100% - var(--ds-space-200, 1pc))}
12
+ ._1bto1l2s{text-overflow:ellipsis}
13
+ ._1e0c1o8l{display:inline-block}
14
+ ._1ltv1ejb{left:var(--ds-space-300,24px)}
15
+ ._1reo15vq{overflow-x:hidden}
16
+ ._1xi2u2gc{right:var(--ds-space-100,8px)}
17
+ ._bfhk1gi7{background-color:var(--ds-background-neutral,#fafbfc)}
18
+ ._ca0qidpf{padding-top:0}
19
+ ._ca0qoybe{padding-top:var(--ds-space-250,18px)}
20
+ ._k48p1pd9{font-weight:var(--ds-font-weight-semibold,600)}
21
+ ._kqswh2mm{position:relative}
22
+ ._kqswstnw{position:absolute}
23
+ ._n3tdpxbi{padding-bottom:var(--ds-space-200,1pc)}
24
+ ._o5721q9c{white-space:nowrap}
25
+ ._s7n4nkob{vertical-align:middle}
26
+ ._syazjjyb{color:var(--ds-text-subtle,#42526e)}
27
+ ._tzy4idpf{opacity:0}
28
+ ._u5f3pxbi{padding-right:var(--ds-space-200,1pc)}
29
+ ._vwz41u3r{line-height:var(--ds-space-800,56px)}
30
+ ._y3gn1e5h{text-align:left}
31
+ ._y3gn1h6o{text-align:center}
@@ -1,77 +1,60 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
- import styled from '@emotion/styled';
7
- import * as colors from '@atlaskit/theme/colors';
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
9
- export const HeaderContainer = styled.div({
10
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
11
- backgroundColor: `var(--ds-background-neutral, ${colors.N10})`,
12
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
13
- borderBottom: `${"var(--ds-space-025, 2px)"} solid ${`var(--ds-border, ${colors.N30})`}`,
14
- justifyContent: 'space-between',
15
- position: 'relative'
16
- });
17
-
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
19
- export const CloseButtonContainer = styled.div({
20
- position: 'absolute',
21
- right: "var(--ds-space-100, 8px)",
22
- top: "var(--ds-space-150, 12px)"
23
- });
24
-
25
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
26
- export const CloseButtonContainerAi = styled.div({
27
- position: 'absolute',
28
- right: "var(--ds-space-100, 8px)",
29
- top: "var(--ds-space-200, 15px)"
30
- });
31
-
32
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
33
- export const BackButtonContainer = styled.div({
34
- position: 'absolute',
35
- top: "var(--ds-space-150, 12px)",
36
- left: "var(--ds-space-100, 8px)"
37
- });
38
-
39
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
40
- export const HeaderTitle = styled.h1({
41
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
42
- color: `var(--ds-text-subtle, ${colors.N500})`,
43
- textAlign: 'center',
44
- font: "var(--ds-font-body-large, normal 400 16px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
45
- fontWeight: "var(--ds-font-weight-semibold, 600)",
46
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
47
- lineHeight: "var(--ds-space-800, 56px)",
48
- width: '100%',
49
- whiteSpace: 'nowrap',
50
- textOverflow: 'ellipsis',
51
- display: 'inline-block',
52
- overflow: 'hidden',
53
- verticalAlign: 'middle'
54
- });
55
-
56
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
57
- export const HeaderTitleAi = styled.h1({
58
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
59
- color: `var(--ds-text-subtle, ${colors.N500})`,
60
- textAlign: 'left',
61
- font: "var(--ds-font-body-large, normal 400 16px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
62
- fontWeight: "var(--ds-font-weight-semibold, 600)",
63
- paddingTop: "var(--ds-space-250, 18px)",
64
- paddingBottom: "var(--ds-space-200, 16px)",
65
- width: `calc(100% - ${"var(--ds-space-200, 16px)"})`,
66
- whiteSpace: 'nowrap',
67
- textOverflow: 'ellipsis',
68
- display: 'inline-block',
69
- overflow: 'hidden',
70
- verticalAlign: 'middle',
71
- marginLeft: "var(--ds-space-200, 16px)"
72
- });
73
-
74
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
75
- export const HeaderContent = styled.div({
76
- padding: `0 ${"var(--ds-space-200, 16px)"} ${"var(--ds-space-200, 16px)"} ${"var(--ds-space-200, 16px)"}`
77
- });
1
+ /* styled.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./styled.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React from 'react';
5
+ import { N10, N30, N500 } from '@atlaskit/theme/colors';
6
+ const headerContainerStyles = null;
7
+ export const HeaderContainer = ({
8
+ children
9
+ }) => /*#__PURE__*/React.createElement("div", {
10
+ className: ax(["_n7zlmfkj _bfhk1gi7 _1bah1yb4 _kqswh2mm"])
11
+ }, children);
12
+ const closeButtonContainerStyles = null;
13
+ export const CloseButtonContainer = ({
14
+ children
15
+ }) => /*#__PURE__*/React.createElement("div", {
16
+ className: ax(["_kqswstnw _1xi2u2gc _154iutpp"])
17
+ }, children);
18
+ const closeButtonContainerAiStyles = null;
19
+ export const CloseButtonContainerAi = ({
20
+ children
21
+ }) => /*#__PURE__*/React.createElement("div", {
22
+ className: ax(["_kqswstnw _1xi2u2gc _154i1q64"])
23
+ }, children);
24
+ export const TRANSITION_DURATION_MS = 220;
25
+ const backButtonContainerStyles = null;
26
+ const backButtonContainerTransitionStyles = {
27
+ entered: {
28
+ left: "var(--ds-space-100, 8px)",
29
+ opacity: 1
30
+ },
31
+ exited: {
32
+ left: "var(--ds-space-100, 8px)",
33
+ opacity: 0
34
+ }
35
+ };
36
+ export const BackButtonContainer = ({
37
+ transitionState,
38
+ children
39
+ }) => /*#__PURE__*/React.createElement("div", {
40
+ style: backButtonContainerTransitionStyles[transitionState],
41
+ className: ax(["_v5641kd4 _1ltv1ejb _tzy4idpf _kqswstnw _154iutpp"])
42
+ }, children);
43
+ const headerTitleStyles = null;
44
+ export const HeaderTitle = ({
45
+ children
46
+ }) => /*#__PURE__*/React.createElement("h1", {
47
+ className: ax(["_11c81ixg _1reo15vq _18m915vq _syazjjyb _y3gn1h6o _k48p1pd9 _vwz41u3r _1bsb1osq _o5721q9c _1bto1l2s _1e0c1o8l _s7n4nkob"])
48
+ }, children);
49
+ const headerTitleAiStyles = null;
50
+ export const HeaderTitleAi = ({
51
+ children
52
+ }) => /*#__PURE__*/React.createElement("h1", {
53
+ className: ax(["_11c81ixg _1reo15vq _18m915vq _syazjjyb _y3gn1e5h _k48p1pd9 _ca0qoybe _n3tdpxbi _1bsbnau3 _o5721q9c _1bto1l2s _1e0c1o8l _s7n4nkob _18u0pxbi"])
54
+ }, children);
55
+ const headerContentStyles = null;
56
+ export const HeaderContent = ({
57
+ children
58
+ }) => /*#__PURE__*/React.createElement("div", {
59
+ className: ax(["_ca0qidpf _u5f3pxbi _n3tdpxbi _19bvpxbi"])
60
+ }, children);
@@ -38,7 +38,7 @@ export const HelpContent = props => {
38
38
  }), /*#__PURE__*/React.createElement(LoadingRectangle, {
39
39
  contentWidth: "70%"
40
40
  })) : /*#__PURE__*/React.createElement(React.Fragment, null, children), footer ? /*#__PURE__*/React.createElement(HelpFooter, {
41
- "data-testid": "footer"
41
+ dataTestId: "footer"
42
42
  }, footer) : null));
43
43
  };
44
44
  export default injectIntl(HelpContent);
@@ -1,2 +0,0 @@
1
- // Animation related consts
2
- export const TRANSITION_DURATION_MS = 220;
@@ -0,0 +1,36 @@
1
+
2
+ ._2rkov77o{border-radius:var(--ds-space-025,2px)}
3
+ ._x3domfkj{border-top:var(--ds-space-025,2px) solid var(--ds-border,#ebecf0)}._12vemgnk{background-repeat:no-repeat}
4
+ ._154iidpf{top:0}
5
+ ._16jlkb7n{flex-grow:1}
6
+ ._19bvidpf{padding-left:0}
7
+ ._19bvpxbi{padding-left:var(--ds-space-200,1pc)}
8
+ ._19pku2gc{margin-top:var(--ds-space-100,8px)}
9
+ ._1bah1yb4{justify-content:space-between}
10
+ ._1bsb1osq{width:100%}
11
+ ._1e0c1txw{display:flex}
12
+ ._1itko982{background-image:linear-gradient(to right,var(--ds-background-neutral-subtle,#ebecf0) 10%,var(--ds-background-neutral,#dfe1e6) 20%,var(--ds-background-neutral-subtle,#ebecf0) 30%)}
13
+ ._1ltvidpf{left:0}
14
+ ._1o51q7pw{animation-fill-mode:forwards}
15
+ ._1pglp3kn{animation-timing-function:linear}
16
+ ._1tkeidpf{min-height:0}
17
+ ._2lx21bp4{flex-direction:column}
18
+ ._4t3i1e9d{height:var(--ds-space-200,1rem)}
19
+ ._4t3i1osq{height:100%}
20
+ ._5sag126j{animation-duration:1.2s}
21
+ ._94n5idpf{bottom:0}
22
+ ._bfhk1gi7{background-color:var(--ds-background-neutral,#fafbfc)}
23
+ ._bfhk1yrq{background-color:var(--ds-background-neutral,#ebecf0)}
24
+ ._bfhkvuon{background-color:var(--ds-surface,#fff)}
25
+ ._ca0qpxbi{padding-top:var(--ds-space-200,1pc)}
26
+ ._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
27
+ ._j7hq1en8{animation-name:k6xje6p}
28
+ ._kqswh2mm{position:relative}
29
+ ._kqswstnw{position:absolute}
30
+ ._n3tdpxbi{padding-bottom:var(--ds-space-200,1pc)}
31
+ ._n3tdu2gc{padding-bottom:var(--ds-space-100,8px)}
32
+ ._tip812c5{animation-iteration-count:infinite}
33
+ ._u5f3idpf{padding-right:0}
34
+ ._u5f3pxbi{padding-right:var(--ds-space-200,1pc)}
35
+ ._vchhusvi{box-sizing:border-box}
36
+ @keyframes k6xje6p{0%{background-position:-300px 0}to{background-position:750pt 0}}
@@ -1,92 +1,54 @@
1
+ /* styled.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import _extends from "@babel/runtime/helpers/extends";
3
+ import "./styled.compiled.css";
4
+ import { ax, ix } from "@compiled/react/runtime";
1
5
  /* eslint-disable @atlaskit/design-system/no-styled-tagged-template-expression */
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
6
-
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
- import { keyframes } from '@emotion/react';
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
- import styled from '@emotion/styled';
11
- import * as colors from '@atlaskit/theme/colors';
12
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
13
- export const Container = styled.div({
14
- position: 'absolute',
15
- top: 0,
16
- bottom: 0,
17
- left: 0,
18
- width: '100%',
19
- display: 'flex',
20
- flexDirection: 'column',
21
- backgroundColor: "var(--ds-surface, #FFFFFF)"
22
- });
23
6
 
24
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
25
- export const Section = styled.div({
26
- flexGrow: 1,
27
- display: 'flex',
28
- flexDirection: 'column',
29
- minHeight: 0
30
- });
31
-
32
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
33
- export const DividerLine = styled.div({
34
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
35
- backgroundColor: `var(--ds-border, ${colors.N30A})`,
36
- height: "var(--ds-space-025, 2px)",
37
- width: '100%',
38
- padding: `0 ${"var(--ds-space-200, 16px)"}`,
39
- marginTop: "var(--ds-space-200, 16px)",
40
- boxSizing: 'border-box'
41
- });
42
-
43
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
44
- export const HelpFooter = styled.div({
45
- padding: `${"var(--ds-space-100, 8px)"} 0`,
46
- boxSizing: 'border-box',
47
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
48
- backgroundColor: `var(--ds-background-neutral, ${colors.N10})`,
49
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
50
- borderTop: `${"var(--ds-space-025, 2px)"} solid ${`var(--ds-border, ${colors.N30})`}`,
51
- justifyContent: 'space-between'
52
- });
7
+ import React from 'react';
8
+ import { N10, N30, N40 } from '@atlaskit/theme/colors';
9
+ const containerStyles = null;
10
+ export const Container = ({
11
+ children
12
+ }) => /*#__PURE__*/React.createElement("div", {
13
+ className: ax(["_kqswstnw _154iidpf _94n5idpf _1ltvidpf _1bsb1osq _1e0c1txw _2lx21bp4 _bfhkvuon"])
14
+ }, children);
15
+ const sectionStyles = null;
16
+ export const Section = ({
17
+ children
18
+ }) => /*#__PURE__*/React.createElement("div", {
19
+ className: ax(["_16jlkb7n _1e0c1txw _2lx21bp4 _1tkeidpf"])
20
+ }, children);
21
+ const helpFooterStyles = null;
22
+ export const HelpFooter = ({
23
+ dataTestId,
24
+ children
25
+ }) => /*#__PURE__*/React.createElement("div", {
26
+ "data-testid": dataTestId,
27
+ className: ax(["_x3domfkj _ca0qu2gc _u5f3idpf _n3tdu2gc _19bvidpf _vchhusvi _bfhk1gi7 _1bah1yb4"])
28
+ }, children);
53
29
 
54
30
  /**
55
31
  * Loading
56
32
  */
57
33
 
58
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
59
- export const LoadingContainer = styled.div({
60
- padding: "var(--ds-space-200, 16px)",
61
- height: '100%'
62
- });
63
- const shimmer = keyframes({
64
- '0%': {
65
- backgroundPosition: '-300px 0'
34
+ const loadingContainerStyles = null;
35
+ export const LoadingContainer = ({
36
+ children,
37
+ ...rest
38
+ }) => /*#__PURE__*/React.createElement("div", _extends({}, rest, {
39
+ className: ax(["_ca0qpxbi _u5f3pxbi _n3tdpxbi _19bvpxbi _4t3i1osq"])
40
+ }), children);
41
+ const shimmer = null;
42
+ const loadingRectangleStyles = null;
43
+ export const LoadingRectangle = ({
44
+ contentWidth,
45
+ contentHeight,
46
+ marginTop
47
+ }) => /*#__PURE__*/React.createElement("div", {
48
+ style: {
49
+ width: contentWidth,
50
+ height: contentHeight,
51
+ marginTop
66
52
  },
67
- '100%': {
68
- backgroundPosition: '1000px 0'
69
- }
70
- });
71
-
72
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
73
- export const LoadingRectangle = styled.div`
74
- position: relative;
75
- height: ${props => props.contentHeight ? props.contentHeight : "var(--ds-space-200, 1rem)"};
76
- margin-top: ${props => props.marginTop ? props.marginTop : "var(--ds-space-100, 8px)"};
77
- width: ${props => props.contentWidth ? props.contentWidth : '100%'};
78
- border-radius: ${"var(--ds-space-025, 2px)"};
79
- animation-duration: 1.2s;
80
- animation-fill-mode: forwards;
81
- animation-iteration-count: infinite;
82
- animation-name: ${shimmer};
83
- animation-timing-function: linear;
84
- background-color: ${`var(--ds-background-neutral, ${colors.N30})`};
85
- background-image: linear-gradient(
86
- to right,
87
- ${`var(--ds-background-neutral-subtle, ${colors.N30})`} 10%,
88
- ${`var(--ds-background-neutral, ${colors.N40})`} 20%,
89
- ${`var(--ds-background-neutral-subtle, ${colors.N30})`} 30%
90
- );
91
- background-repeat: no-repeat;
92
- `;
53
+ className: ax(["_2rkov77o _kqswh2mm _4t3i1e9d _19pku2gc _1bsb1osq _5sag126j _1o51q7pw _tip812c5 _j7hq1en8 _1pglp3kn _bfhk1yrq _1itko982 _12vemgnk"])
54
+ });
@@ -5,5 +5,5 @@ export var createAndFire = x.createAndFireEvent('atlaskit');
5
5
  export var defaultAnalyticsAttributes = {
6
6
  componentName: 'helpPanel',
7
7
  packageName: "@atlaskit/help-layout",
8
- packageVersion: "5.0.4"
8
+ packageVersion: "6.0.0"
9
9
  };
@@ -1,6 +1,3 @@
1
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
1
  import React from 'react';
5
2
  import { injectIntl } from 'react-intl-next';
6
3
  import { useAnalyticsEvents, AnalyticsContext } from '@atlaskit/analytics-next';
@@ -8,24 +5,7 @@ import { Transition } from 'react-transition-group';
8
5
  import ArrowleftIcon from '@atlaskit/icon/core/migration/arrow-left';
9
6
  import Button from '@atlaskit/button/standard-button';
10
7
  import { messages } from '../../messages';
11
- import { TRANSITION_DURATION_MS } from '../constants';
12
- import { BackButtonContainer } from './styled';
13
- // Animation
14
- var defaultStyle = {
15
- transition: "left ".concat(TRANSITION_DURATION_MS, "ms, opacity ").concat(TRANSITION_DURATION_MS, "ms"),
16
- left: "var(--ds-space-300, 24px)",
17
- opacity: 0
18
- };
19
- var transitionStyles = {
20
- entered: {
21
- left: "var(--ds-space-100, 8px)",
22
- opacity: 1
23
- },
24
- exited: {
25
- left: "var(--ds-space-100, 8px)",
26
- opacity: 0
27
- }
28
- };
8
+ import { BackButtonContainer, TRANSITION_DURATION_MS } from './styled';
29
9
  export var BackButton = function BackButton(_ref) {
30
10
  var onClick = _ref.onClick,
31
11
  _ref$isVisible = _ref.isVisible,
@@ -48,7 +28,7 @@ export var BackButton = function BackButton(_ref) {
48
28
  unmountOnExit: true
49
29
  }, function (state) {
50
30
  return /*#__PURE__*/React.createElement(BackButtonContainer, {
51
- style: _objectSpread(_objectSpread({}, defaultStyle), transitionStyles[state])
31
+ transitionState: state
52
32
  }, /*#__PURE__*/React.createElement(Button, {
53
33
  onClick: function onClick(event) {
54
34
  if (state === 'entered') {
@@ -69,7 +49,7 @@ var BackButtonWithContext = function BackButtonWithContext(props) {
69
49
  data: {
70
50
  componentName: 'backButton',
71
51
  packageName: "@atlaskit/help-layout",
72
- packageVersion: "5.0.4"
52
+ packageVersion: "6.0.0"
73
53
  }
74
54
  }, /*#__PURE__*/React.createElement(BackButton, props));
75
55
  };
@@ -57,7 +57,7 @@ var CloseButtonWithContext = function CloseButtonWithContext(props) {
57
57
  data: {
58
58
  componentName: 'closeButton',
59
59
  packageName: "@atlaskit/help-layout",
60
- packageVersion: "5.0.4"
60
+ packageVersion: "6.0.0"
61
61
  }
62
62
  }, /*#__PURE__*/React.createElement(CloseButton, props));
63
63
  };
@@ -0,0 +1,31 @@
1
+ ._11c81ixg{font:var(--ds-font-body-large,normal 400 1pc/24px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
2
+ ._v5641kw6{transition:var(--_ejvfk7)}
3
+ ._n7zl3yx5{border-bottom:var(--_1it2dty)}
4
+ ._154i1q64{top:var(--ds-space-200,15px)}
5
+ ._154iutpp{top:var(--ds-space-150,9pt)}
6
+ ._18m915vq{overflow-y:hidden}
7
+ ._18u0pxbi{margin-left:var(--ds-space-200,1pc)}
8
+ ._19bvpxbi{padding-left:var(--ds-space-200,1pc)}
9
+ ._1bah1yb4{justify-content:space-between}
10
+ ._1bsb1osq{width:100%}
11
+ ._1bsbb8xr{width:var(--_2br7en)}
12
+ ._1bto1l2s{text-overflow:ellipsis}
13
+ ._1e0c1o8l{display:inline-block}
14
+ ._1ltv1ejb{left:var(--ds-space-300,24px)}
15
+ ._1reo15vq{overflow-x:hidden}
16
+ ._1xi2u2gc{right:var(--ds-space-100,8px)}
17
+ ._bfhk1v7z{background-color:var(--_1xglsrh)}
18
+ ._ca0qidpf{padding-top:0}
19
+ ._ca0qoybe{padding-top:var(--ds-space-250,18px)}
20
+ ._k48p1pd9{font-weight:var(--ds-font-weight-semibold,600)}
21
+ ._kqswh2mm{position:relative}
22
+ ._kqswstnw{position:absolute}
23
+ ._n3tdpxbi{padding-bottom:var(--ds-space-200,1pc)}
24
+ ._o5721q9c{white-space:nowrap}
25
+ ._s7n4nkob{vertical-align:middle}
26
+ ._syaz1425{color:var(--_13a5t4u)}
27
+ ._tzy4idpf{opacity:0}
28
+ ._u5f3pxbi{padding-right:var(--ds-space-200,1pc)}
29
+ ._vwz41u3r{line-height:var(--ds-space-800,56px)}
30
+ ._y3gn1e5h{text-align:left}
31
+ ._y3gn1h6o{text-align:center}
@@ -1,77 +1,83 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
- import styled from '@emotion/styled';
7
- import * as colors from '@atlaskit/theme/colors';
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
9
- export var HeaderContainer = styled.div({
10
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
11
- backgroundColor: "var(--ds-background-neutral, ".concat(colors.N10, ")"),
12
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
13
- borderBottom: "var(--ds-space-025, 2px)".concat(" solid ", "var(--ds-border, ".concat(colors.N30, ")")),
14
- justifyContent: 'space-between',
15
- position: 'relative'
16
- });
17
-
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
19
- export var CloseButtonContainer = styled.div({
20
- position: 'absolute',
21
- right: "var(--ds-space-100, 8px)",
22
- top: "var(--ds-space-150, 12px)"
23
- });
24
-
25
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
26
- export var CloseButtonContainerAi = styled.div({
27
- position: 'absolute',
28
- right: "var(--ds-space-100, 8px)",
29
- top: "var(--ds-space-200, 15px)"
30
- });
31
-
32
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
33
- export var BackButtonContainer = styled.div({
34
- position: 'absolute',
35
- top: "var(--ds-space-150, 12px)",
36
- left: "var(--ds-space-100, 8px)"
37
- });
38
-
39
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
40
- export var HeaderTitle = styled.h1({
41
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
42
- color: "var(--ds-text-subtle, ".concat(colors.N500, ")"),
43
- textAlign: 'center',
44
- font: "var(--ds-font-body-large, normal 400 16px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
45
- fontWeight: "var(--ds-font-weight-semibold, 600)",
46
- // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
47
- lineHeight: "var(--ds-space-800, 56px)",
48
- width: '100%',
49
- whiteSpace: 'nowrap',
50
- textOverflow: 'ellipsis',
51
- display: 'inline-block',
52
- overflow: 'hidden',
53
- verticalAlign: 'middle'
54
- });
55
-
56
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
57
- export var HeaderTitleAi = styled.h1({
58
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
59
- color: "var(--ds-text-subtle, ".concat(colors.N500, ")"),
60
- textAlign: 'left',
61
- font: "var(--ds-font-body-large, normal 400 16px/24px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
62
- fontWeight: "var(--ds-font-weight-semibold, 600)",
63
- paddingTop: "var(--ds-space-250, 18px)",
64
- paddingBottom: "var(--ds-space-200, 16px)",
65
- width: "calc(100% - ".concat("var(--ds-space-200, 16px)", ")"),
66
- whiteSpace: 'nowrap',
67
- textOverflow: 'ellipsis',
68
- display: 'inline-block',
69
- overflow: 'hidden',
70
- verticalAlign: 'middle',
71
- marginLeft: "var(--ds-space-200, 16px)"
72
- });
73
-
74
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
75
- export var HeaderContent = styled.div({
76
- padding: "0 ".concat("var(--ds-space-200, 16px)", " ", "var(--ds-space-200, 16px)", " ", "var(--ds-space-200, 16px)")
77
- });
1
+ /* styled.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
+ import "./styled.compiled.css";
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
+ import React from 'react';
8
+ import { N10, N30, N500 } from '@atlaskit/theme/colors';
9
+ var headerContainerStyles = null;
10
+ export var HeaderContainer = function HeaderContainer(_ref) {
11
+ var children = _ref.children;
12
+ return /*#__PURE__*/React.createElement("div", {
13
+ className: ax(["_n7zl3yx5 _bfhk1v7z _1bah1yb4 _kqswh2mm"]),
14
+ style: {
15
+ "--_1xglsrh": ix("var(--ds-background-neutral, ".concat(N10, ")")),
16
+ "--_1it2dty": ix("var(--ds-space-025, 2px)".concat(" solid ", "var(--ds-border, ".concat(N30, ")")))
17
+ }
18
+ }, children);
19
+ };
20
+ var closeButtonContainerStyles = null;
21
+ export var CloseButtonContainer = function CloseButtonContainer(_ref2) {
22
+ var children = _ref2.children;
23
+ return /*#__PURE__*/React.createElement("div", {
24
+ className: ax(["_kqswstnw _1xi2u2gc _154iutpp"])
25
+ }, children);
26
+ };
27
+ var closeButtonContainerAiStyles = null;
28
+ export var CloseButtonContainerAi = function CloseButtonContainerAi(_ref3) {
29
+ var children = _ref3.children;
30
+ return /*#__PURE__*/React.createElement("div", {
31
+ className: ax(["_kqswstnw _1xi2u2gc _154i1q64"])
32
+ }, children);
33
+ };
34
+ export var TRANSITION_DURATION_MS = 220;
35
+ var backButtonContainerStyles = null;
36
+ var backButtonContainerTransitionStyles = {
37
+ entered: {
38
+ left: "var(--ds-space-100, 8px)",
39
+ opacity: 1
40
+ },
41
+ exited: {
42
+ left: "var(--ds-space-100, 8px)",
43
+ opacity: 0
44
+ }
45
+ };
46
+ export var BackButtonContainer = function BackButtonContainer(_ref4) {
47
+ var transitionState = _ref4.transitionState,
48
+ children = _ref4.children;
49
+ return /*#__PURE__*/React.createElement("div", {
50
+ className: ax(["_v5641kw6 _1ltv1ejb _tzy4idpf _kqswstnw _154iutpp"]),
51
+ style: _objectSpread(_objectSpread({}, backButtonContainerTransitionStyles[transitionState]), {}, {
52
+ "--_ejvfk7": ix("left ".concat(TRANSITION_DURATION_MS, "ms, opacity ").concat(TRANSITION_DURATION_MS, "ms"))
53
+ })
54
+ }, children);
55
+ };
56
+ var headerTitleStyles = null;
57
+ export var HeaderTitle = function HeaderTitle(_ref5) {
58
+ var children = _ref5.children;
59
+ return /*#__PURE__*/React.createElement("h1", {
60
+ className: ax(["_11c81ixg _1reo15vq _18m915vq _syaz1425 _y3gn1h6o _k48p1pd9 _vwz41u3r _1bsb1osq _o5721q9c _1bto1l2s _1e0c1o8l _s7n4nkob"]),
61
+ style: {
62
+ "--_13a5t4u": ix("var(--ds-text-subtle, ".concat(N500, ")"))
63
+ }
64
+ }, children);
65
+ };
66
+ var headerTitleAiStyles = null;
67
+ export var HeaderTitleAi = function HeaderTitleAi(_ref6) {
68
+ var children = _ref6.children;
69
+ return /*#__PURE__*/React.createElement("h1", {
70
+ className: ax(["_11c81ixg _1reo15vq _18m915vq _syaz1425 _y3gn1e5h _k48p1pd9 _ca0qoybe _n3tdpxbi _1bsbb8xr _o5721q9c _1bto1l2s _1e0c1o8l _s7n4nkob _18u0pxbi"]),
71
+ style: {
72
+ "--_13a5t4u": ix("var(--ds-text-subtle, ".concat(N500, ")")),
73
+ "--_2br7en": ix("calc(100% - ".concat("var(--ds-space-200, 16px)", ")"))
74
+ }
75
+ }, children);
76
+ };
77
+ var headerContentStyles = null;
78
+ export var HeaderContent = function HeaderContent(_ref7) {
79
+ var children = _ref7.children;
80
+ return /*#__PURE__*/React.createElement("div", {
81
+ className: ax(["_ca0qidpf _u5f3pxbi _n3tdpxbi _19bvpxbi"])
82
+ }, children);
83
+ };