@atlaskit/help-layout 5.0.5 → 6.0.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 +28 -0
- package/analytics/package.json +1 -1
- package/dist/cjs/analytics.js +1 -1
- package/dist/cjs/components/Header/BackButton.js +3 -23
- package/dist/cjs/components/Header/CloseButton.js +1 -1
- package/dist/cjs/components/Header/styled.compiled.css +31 -0
- package/dist/cjs/components/Header/styled.js +84 -82
- package/dist/cjs/components/HelpLayoutContent.js +1 -1
- package/dist/cjs/components/constants.js +1 -8
- package/dist/cjs/components/styled.compiled.css +36 -0
- package/dist/cjs/components/styled.js +61 -78
- package/dist/es2019/analytics.js +1 -1
- package/dist/es2019/components/Header/BackButton.js +3 -25
- package/dist/es2019/components/Header/CloseButton.js +1 -1
- package/dist/es2019/components/Header/styled.compiled.css +31 -0
- package/dist/es2019/components/Header/styled.js +60 -77
- package/dist/es2019/components/HelpLayoutContent.js +1 -1
- package/dist/es2019/components/constants.js +0 -2
- package/dist/es2019/components/styled.compiled.css +36 -0
- package/dist/es2019/components/styled.js +46 -84
- package/dist/esm/analytics.js +1 -1
- package/dist/esm/components/Header/BackButton.js +3 -23
- package/dist/esm/components/Header/CloseButton.js +1 -1
- package/dist/esm/components/Header/styled.compiled.css +31 -0
- package/dist/esm/components/Header/styled.js +83 -77
- package/dist/esm/components/HelpLayoutContent.js +1 -1
- package/dist/esm/components/constants.js +0 -2
- package/dist/esm/components/styled.compiled.css +36 -0
- package/dist/esm/components/styled.js +60 -74
- package/dist/types/components/Header/styled.d.ts +29 -29
- package/dist/types/components/constants.d.ts +0 -1
- package/dist/types/components/styled.d.ts +15 -28
- package/dist/types-ts4.5/components/Header/styled.d.ts +29 -29
- package/dist/types-ts4.5/components/constants.d.ts +0 -1
- package/dist/types-ts4.5/components/styled.d.ts +15 -28
- package/messages/package.json +1 -1
- package/package.json +9 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @atlaskit/help-layout
|
|
2
2
|
|
|
3
|
+
## 6.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#143181](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/143181)
|
|
8
|
+
[`7f74322e75b83`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7f74322e75b83) -
|
|
9
|
+
Removed `styled-components` from peer dependencies.
|
|
10
|
+
|
|
11
|
+
## 6.0.0
|
|
12
|
+
|
|
13
|
+
### Major Changes
|
|
14
|
+
|
|
15
|
+
- [#142027](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/142027)
|
|
16
|
+
[`92f1353dc03cc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/92f1353dc03cc) -
|
|
17
|
+
Migrated from `@emotion/react` to `@compiled/react` in order to improve performance, align with
|
|
18
|
+
the rest of the Atlaskit techstack, and support React 18 Streaming SSR.
|
|
19
|
+
|
|
20
|
+
Please note, in order to use this version of `@atlaskit/help-layout`, you will need to ensure that
|
|
21
|
+
your bundler is configured to handle `.css` imports correctly. Most bundlers come with built-in
|
|
22
|
+
support for `.css` imports, so you may not need to do anything. If you are using a different
|
|
23
|
+
bundler, please refer to the documentation for that bundler to understand how to handle `.css`
|
|
24
|
+
imports. For more information on the migration, please refer to
|
|
25
|
+
[RFC-73 Migrating our components to Compiled CSS-in-JS](https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/85953).
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
|
|
3
31
|
## 5.0.5
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
package/analytics/package.json
CHANGED
package/dist/cjs/analytics.js
CHANGED
|
@@ -14,5 +14,5 @@ var createAndFire = exports.createAndFire = x.createAndFireEvent('atlaskit');
|
|
|
14
14
|
var defaultAnalyticsAttributes = exports.defaultAnalyticsAttributes = {
|
|
15
15
|
componentName: 'helpPanel',
|
|
16
16
|
packageName: "@atlaskit/help-layout",
|
|
17
|
-
packageVersion: "
|
|
17
|
+
packageVersion: "6.0.1"
|
|
18
18
|
};
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = exports.BackButton = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
8
|
var _react = _interopRequireDefault(require("react"));
|
|
10
9
|
var _reactIntlNext = require("react-intl-next");
|
|
11
10
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
@@ -13,26 +12,7 @@ var _reactTransitionGroup = require("react-transition-group");
|
|
|
13
12
|
var _arrowLeft = _interopRequireDefault(require("@atlaskit/icon/core/migration/arrow-left"));
|
|
14
13
|
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
15
14
|
var _messages = require("../../messages");
|
|
16
|
-
var _constants = require("../constants");
|
|
17
15
|
var _styled = require("./styled");
|
|
18
|
-
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; }
|
|
19
|
-
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) { (0, _defineProperty2.default)(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; }
|
|
20
|
-
// Animation
|
|
21
|
-
var defaultStyle = {
|
|
22
|
-
transition: "left ".concat(_constants.TRANSITION_DURATION_MS, "ms, opacity ").concat(_constants.TRANSITION_DURATION_MS, "ms"),
|
|
23
|
-
left: "var(--ds-space-300, 24px)",
|
|
24
|
-
opacity: 0
|
|
25
|
-
};
|
|
26
|
-
var transitionStyles = {
|
|
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
16
|
var BackButton = exports.BackButton = function BackButton(_ref) {
|
|
37
17
|
var onClick = _ref.onClick,
|
|
38
18
|
_ref$isVisible = _ref.isVisible,
|
|
@@ -50,12 +30,12 @@ var BackButton = exports.BackButton = function BackButton(_ref) {
|
|
|
50
30
|
};
|
|
51
31
|
return /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.Transition, {
|
|
52
32
|
in: isVisible,
|
|
53
|
-
timeout:
|
|
33
|
+
timeout: _styled.TRANSITION_DURATION_MS,
|
|
54
34
|
mountOnEnter: true,
|
|
55
35
|
unmountOnExit: true
|
|
56
36
|
}, function (state) {
|
|
57
37
|
return /*#__PURE__*/_react.default.createElement(_styled.BackButtonContainer, {
|
|
58
|
-
|
|
38
|
+
transitionState: state
|
|
59
39
|
}, /*#__PURE__*/_react.default.createElement(_standardButton.default, {
|
|
60
40
|
onClick: function onClick(event) {
|
|
61
41
|
if (state === 'entered') {
|
|
@@ -76,7 +56,7 @@ var BackButtonWithContext = function BackButtonWithContext(props) {
|
|
|
76
56
|
data: {
|
|
77
57
|
componentName: 'backButton',
|
|
78
58
|
packageName: "@atlaskit/help-layout",
|
|
79
|
-
packageVersion: "
|
|
59
|
+
packageVersion: "6.0.1"
|
|
80
60
|
}
|
|
81
61
|
}, /*#__PURE__*/_react.default.createElement(BackButton, props));
|
|
82
62
|
};
|
|
@@ -64,7 +64,7 @@ var CloseButtonWithContext = function CloseButtonWithContext(props) {
|
|
|
64
64
|
data: {
|
|
65
65
|
componentName: 'closeButton',
|
|
66
66
|
packageName: "@atlaskit/help-layout",
|
|
67
|
-
packageVersion: "
|
|
67
|
+
packageVersion: "6.0.1"
|
|
68
68
|
}
|
|
69
69
|
}, /*#__PURE__*/_react.default.createElement(CloseButton, props));
|
|
70
70
|
};
|
|
@@ -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,88 +1,90 @@
|
|
|
1
|
+
/* styled.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.HeaderTitleAi = exports.HeaderTitle = exports.HeaderContent = exports.HeaderContainer = exports.CloseButtonContainerAi = exports.CloseButtonContainer = exports.BackButtonContainer = void 0;
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
var
|
|
87
|
-
|
|
88
|
-
|
|
8
|
+
exports.TRANSITION_DURATION_MS = exports.HeaderTitleAi = exports.HeaderTitle = exports.HeaderContent = exports.HeaderContainer = exports.CloseButtonContainerAi = exports.CloseButtonContainer = exports.BackButtonContainer = void 0;
|
|
9
|
+
require("./styled.compiled.css");
|
|
10
|
+
var _runtime = require("@compiled/react/runtime");
|
|
11
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
|
13
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
14
|
+
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; }
|
|
15
|
+
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) { (0, _defineProperty2.default)(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; }
|
|
16
|
+
var headerContainerStyles = null;
|
|
17
|
+
var HeaderContainer = exports.HeaderContainer = function HeaderContainer(_ref) {
|
|
18
|
+
var children = _ref.children;
|
|
19
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
20
|
+
className: (0, _runtime.ax)(["_n7zl3yx5 _bfhk1v7z _1bah1yb4 _kqswh2mm"]),
|
|
21
|
+
style: {
|
|
22
|
+
"--_1xglsrh": (0, _runtime.ix)("var(--ds-background-neutral, ".concat(_colors.N10, ")")),
|
|
23
|
+
"--_1it2dty": (0, _runtime.ix)("var(--ds-space-025, 2px)".concat(" solid ", "var(--ds-border, ".concat(_colors.N30, ")")))
|
|
24
|
+
}
|
|
25
|
+
}, children);
|
|
26
|
+
};
|
|
27
|
+
var closeButtonContainerStyles = null;
|
|
28
|
+
var CloseButtonContainer = exports.CloseButtonContainer = function CloseButtonContainer(_ref2) {
|
|
29
|
+
var children = _ref2.children;
|
|
30
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
31
|
+
className: (0, _runtime.ax)(["_kqswstnw _1xi2u2gc _154iutpp"])
|
|
32
|
+
}, children);
|
|
33
|
+
};
|
|
34
|
+
var closeButtonContainerAiStyles = null;
|
|
35
|
+
var CloseButtonContainerAi = exports.CloseButtonContainerAi = function CloseButtonContainerAi(_ref3) {
|
|
36
|
+
var children = _ref3.children;
|
|
37
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
38
|
+
className: (0, _runtime.ax)(["_kqswstnw _1xi2u2gc _154i1q64"])
|
|
39
|
+
}, children);
|
|
40
|
+
};
|
|
41
|
+
var TRANSITION_DURATION_MS = exports.TRANSITION_DURATION_MS = 220;
|
|
42
|
+
var backButtonContainerStyles = null;
|
|
43
|
+
var backButtonContainerTransitionStyles = {
|
|
44
|
+
entered: {
|
|
45
|
+
left: "var(--ds-space-100, 8px)",
|
|
46
|
+
opacity: 1
|
|
47
|
+
},
|
|
48
|
+
exited: {
|
|
49
|
+
left: "var(--ds-space-100, 8px)",
|
|
50
|
+
opacity: 0
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
var BackButtonContainer = exports.BackButtonContainer = function BackButtonContainer(_ref4) {
|
|
54
|
+
var transitionState = _ref4.transitionState,
|
|
55
|
+
children = _ref4.children;
|
|
56
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
57
|
+
className: (0, _runtime.ax)(["_v5641kw6 _1ltv1ejb _tzy4idpf _kqswstnw _154iutpp"]),
|
|
58
|
+
style: _objectSpread(_objectSpread({}, backButtonContainerTransitionStyles[transitionState]), {}, {
|
|
59
|
+
"--_ejvfk7": (0, _runtime.ix)("left ".concat(TRANSITION_DURATION_MS, "ms, opacity ").concat(TRANSITION_DURATION_MS, "ms"))
|
|
60
|
+
})
|
|
61
|
+
}, children);
|
|
62
|
+
};
|
|
63
|
+
var headerTitleStyles = null;
|
|
64
|
+
var HeaderTitle = exports.HeaderTitle = function HeaderTitle(_ref5) {
|
|
65
|
+
var children = _ref5.children;
|
|
66
|
+
return /*#__PURE__*/_react.default.createElement("h1", {
|
|
67
|
+
className: (0, _runtime.ax)(["_11c81ixg _1reo15vq _18m915vq _syaz1425 _y3gn1h6o _k48p1pd9 _vwz41u3r _1bsb1osq _o5721q9c _1bto1l2s _1e0c1o8l _s7n4nkob"]),
|
|
68
|
+
style: {
|
|
69
|
+
"--_13a5t4u": (0, _runtime.ix)("var(--ds-text-subtle, ".concat(_colors.N500, ")"))
|
|
70
|
+
}
|
|
71
|
+
}, children);
|
|
72
|
+
};
|
|
73
|
+
var headerTitleAiStyles = null;
|
|
74
|
+
var HeaderTitleAi = exports.HeaderTitleAi = function HeaderTitleAi(_ref6) {
|
|
75
|
+
var children = _ref6.children;
|
|
76
|
+
return /*#__PURE__*/_react.default.createElement("h1", {
|
|
77
|
+
className: (0, _runtime.ax)(["_11c81ixg _1reo15vq _18m915vq _syaz1425 _y3gn1e5h _k48p1pd9 _ca0qoybe _n3tdpxbi _1bsbb8xr _o5721q9c _1bto1l2s _1e0c1o8l _s7n4nkob _18u0pxbi"]),
|
|
78
|
+
style: {
|
|
79
|
+
"--_13a5t4u": (0, _runtime.ix)("var(--ds-text-subtle, ".concat(_colors.N500, ")")),
|
|
80
|
+
"--_2br7en": (0, _runtime.ix)("calc(100% - ".concat("var(--ds-space-200, 16px)", ")"))
|
|
81
|
+
}
|
|
82
|
+
}, children);
|
|
83
|
+
};
|
|
84
|
+
var headerContentStyles = null;
|
|
85
|
+
var HeaderContent = exports.HeaderContent = function HeaderContent(_ref7) {
|
|
86
|
+
var children = _ref7.children;
|
|
87
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
88
|
+
className: (0, _runtime.ax)(["_ca0qidpf _u5f3pxbi _n3tdpxbi _19bvpxbi"])
|
|
89
|
+
}, children);
|
|
90
|
+
};
|
|
@@ -44,7 +44,7 @@ var HelpContent = exports.HelpContent = function HelpContent(props) {
|
|
|
44
44
|
}), /*#__PURE__*/_react.default.createElement(_styled.LoadingRectangle, {
|
|
45
45
|
contentWidth: "70%"
|
|
46
46
|
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, children), footer ? /*#__PURE__*/_react.default.createElement(_styled.HelpFooter, {
|
|
47
|
-
|
|
47
|
+
dataTestId: "footer"
|
|
48
48
|
}, footer) : null));
|
|
49
49
|
};
|
|
50
50
|
var _default = exports.default = (0, _reactIntlNext.injectIntl)(HelpContent);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
._2rkov77o{border-radius:var(--ds-space-025,2px)}
|
|
3
|
+
._x3do3yx5{border-top:var(--_1it2dty)}._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
|
+
._1itkwhjv{background-image:var(--_4aeagh)}
|
|
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
|
+
._bfhk1v7z{background-color:var(--_1xglsrh)}
|
|
23
|
+
._bfhkptpz{background-color:var(--_19g1tth)}
|
|
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,90 +1,73 @@
|
|
|
1
|
+
/* styled.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.Section = exports.LoadingRectangle = exports.LoadingContainer = exports.HelpFooter = exports.
|
|
9
|
-
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var
|
|
8
|
+
exports.Section = exports.LoadingRectangle = exports.LoadingContainer = exports.HelpFooter = exports.Container = void 0;
|
|
9
|
+
require("./styled.compiled.css");
|
|
10
|
+
var _runtime = require("@compiled/react/runtime");
|
|
11
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
+
var _react = _interopRequireDefault(require("react"));
|
|
14
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
15
|
+
var _excluded = ["children"];
|
|
14
16
|
/* eslint-disable @atlaskit/design-system/no-styled-tagged-template-expression */
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
var
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
var DividerLine = exports.DividerLine = _styled.default.div({
|
|
45
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
46
|
-
backgroundColor: "var(--ds-border, ".concat(colors.N30A, ")"),
|
|
47
|
-
height: "var(--ds-space-025, 2px)",
|
|
48
|
-
width: '100%',
|
|
49
|
-
padding: "0 ".concat("var(--ds-space-200, 16px)"),
|
|
50
|
-
marginTop: "var(--ds-space-200, 16px)",
|
|
51
|
-
boxSizing: 'border-box'
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
55
|
-
var HelpFooter = exports.HelpFooter = _styled.default.div({
|
|
56
|
-
padding: "var(--ds-space-100, 8px)".concat(" 0"),
|
|
57
|
-
boxSizing: 'border-box',
|
|
58
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
59
|
-
backgroundColor: "var(--ds-background-neutral, ".concat(colors.N10, ")"),
|
|
60
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
61
|
-
borderTop: "var(--ds-space-025, 2px)".concat(" solid ", "var(--ds-border, ".concat(colors.N30, ")")),
|
|
62
|
-
justifyContent: 'space-between'
|
|
63
|
-
});
|
|
17
|
+
var containerStyles = null;
|
|
18
|
+
var Container = exports.Container = function Container(_ref) {
|
|
19
|
+
var children = _ref.children;
|
|
20
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
21
|
+
className: (0, _runtime.ax)(["_kqswstnw _154iidpf _94n5idpf _1ltvidpf _1bsb1osq _1e0c1txw _2lx21bp4 _bfhkvuon"])
|
|
22
|
+
}, children);
|
|
23
|
+
};
|
|
24
|
+
var sectionStyles = null;
|
|
25
|
+
var Section = exports.Section = function Section(_ref2) {
|
|
26
|
+
var children = _ref2.children;
|
|
27
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
28
|
+
className: (0, _runtime.ax)(["_16jlkb7n _1e0c1txw _2lx21bp4 _1tkeidpf"])
|
|
29
|
+
}, children);
|
|
30
|
+
};
|
|
31
|
+
var helpFooterStyles = null;
|
|
32
|
+
var HelpFooter = exports.HelpFooter = function HelpFooter(_ref3) {
|
|
33
|
+
var dataTestId = _ref3.dataTestId,
|
|
34
|
+
children = _ref3.children;
|
|
35
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
36
|
+
"data-testid": dataTestId,
|
|
37
|
+
className: (0, _runtime.ax)(["_x3do3yx5 _ca0qu2gc _u5f3idpf _n3tdu2gc _19bvidpf _vchhusvi _bfhk1v7z _1bah1yb4"]),
|
|
38
|
+
style: {
|
|
39
|
+
"--_1xglsrh": (0, _runtime.ix)("var(--ds-background-neutral, ".concat(_colors.N10, ")")),
|
|
40
|
+
"--_1it2dty": (0, _runtime.ix)("var(--ds-space-025, 2px)".concat(" solid ", "var(--ds-border, ".concat(_colors.N30, ")")))
|
|
41
|
+
}
|
|
42
|
+
}, children);
|
|
43
|
+
};
|
|
64
44
|
|
|
65
45
|
/**
|
|
66
46
|
* Loading
|
|
67
47
|
*/
|
|
68
48
|
|
|
69
|
-
|
|
70
|
-
var LoadingContainer = exports.LoadingContainer =
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
49
|
+
var loadingContainerStyles = null;
|
|
50
|
+
var LoadingContainer = exports.LoadingContainer = function LoadingContainer(_ref4) {
|
|
51
|
+
var children = _ref4.children,
|
|
52
|
+
rest = (0, _objectWithoutProperties2.default)(_ref4, _excluded);
|
|
53
|
+
return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, rest, {
|
|
54
|
+
className: (0, _runtime.ax)(["_ca0qpxbi _u5f3pxbi _n3tdpxbi _19bvpxbi _4t3i1osq"])
|
|
55
|
+
}), children);
|
|
56
|
+
};
|
|
57
|
+
var shimmer = null;
|
|
58
|
+
var loadingRectangleStyles = null;
|
|
59
|
+
var LoadingRectangle = exports.LoadingRectangle = function LoadingRectangle(_ref5) {
|
|
60
|
+
var contentWidth = _ref5.contentWidth,
|
|
61
|
+
contentHeight = _ref5.contentHeight,
|
|
62
|
+
marginTop = _ref5.marginTop;
|
|
63
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
64
|
+
className: (0, _runtime.ax)(["_2rkov77o _kqswh2mm _4t3i1e9d _19pku2gc _1bsb1osq _5sag126j _1o51q7pw _tip812c5 _j7hq1en8 _1pglp3kn _bfhkptpz _1itkwhjv _12vemgnk"]),
|
|
65
|
+
style: {
|
|
66
|
+
width: contentWidth,
|
|
67
|
+
height: contentHeight,
|
|
68
|
+
marginTop: marginTop,
|
|
69
|
+
"--_19g1tth": (0, _runtime.ix)("var(--ds-background-neutral, ".concat(_colors.N30, ")")),
|
|
70
|
+
"--_4aeagh": (0, _runtime.ix)("linear-gradient(\n\t\tto right,\n\t\t".concat("var(--ds-background-neutral-subtle, ".concat(_colors.N30, ")"), " 10%,\n\t\t", "var(--ds-background-neutral, ".concat(_colors.N40, ")"), " 20%,\n\t\t", "var(--ds-background-neutral-subtle, ".concat(_colors.N30, ")"), " 30%\n\t)"))
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
};
|
package/dist/es2019/analytics.js
CHANGED
|
@@ -5,24 +5,7 @@ import { Transition } from 'react-transition-group';
|
|
|
5
5
|
import ArrowleftIcon from '@atlaskit/icon/core/migration/arrow-left';
|
|
6
6
|
import Button from '@atlaskit/button/standard-button';
|
|
7
7
|
import { messages } from '../../messages';
|
|
8
|
-
import { TRANSITION_DURATION_MS } from '
|
|
9
|
-
import { BackButtonContainer } from './styled';
|
|
10
|
-
// Animation
|
|
11
|
-
const defaultStyle = {
|
|
12
|
-
transition: `left ${TRANSITION_DURATION_MS}ms, opacity ${TRANSITION_DURATION_MS}ms`,
|
|
13
|
-
left: "var(--ds-space-300, 24px)",
|
|
14
|
-
opacity: 0
|
|
15
|
-
};
|
|
16
|
-
const transitionStyles = {
|
|
17
|
-
entered: {
|
|
18
|
-
left: "var(--ds-space-100, 8px)",
|
|
19
|
-
opacity: 1
|
|
20
|
-
},
|
|
21
|
-
exited: {
|
|
22
|
-
left: "var(--ds-space-100, 8px)",
|
|
23
|
-
opacity: 0
|
|
24
|
-
}
|
|
25
|
-
};
|
|
8
|
+
import { BackButtonContainer, TRANSITION_DURATION_MS } from './styled';
|
|
26
9
|
export const BackButton = ({
|
|
27
10
|
onClick,
|
|
28
11
|
isVisible = true,
|
|
@@ -47,12 +30,7 @@ export const BackButton = ({
|
|
|
47
30
|
mountOnEnter: true,
|
|
48
31
|
unmountOnExit: true
|
|
49
32
|
}, state => /*#__PURE__*/React.createElement(BackButtonContainer, {
|
|
50
|
-
|
|
51
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
52
|
-
...defaultStyle,
|
|
53
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
54
|
-
...transitionStyles[state]
|
|
55
|
-
}
|
|
33
|
+
transitionState: state
|
|
56
34
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
57
35
|
onClick: event => {
|
|
58
36
|
if (state === 'entered') {
|
|
@@ -72,7 +50,7 @@ const BackButtonWithContext = props => {
|
|
|
72
50
|
data: {
|
|
73
51
|
componentName: 'backButton',
|
|
74
52
|
packageName: "@atlaskit/help-layout",
|
|
75
|
-
packageVersion: "
|
|
53
|
+
packageVersion: "6.0.1"
|
|
76
54
|
}
|
|
77
55
|
}, /*#__PURE__*/React.createElement(BackButton, props));
|
|
78
56
|
};
|