@atlaskit/drawer 7.1.12 → 7.2.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.
- package/CHANGELOG.md +11 -0
- package/dist/cjs/components/blanket.js +4 -2
- package/dist/cjs/components/index.js +3 -2
- package/dist/cjs/components/primitives/content.js +3 -3
- package/dist/cjs/components/primitives/icon-button.js +3 -3
- package/dist/cjs/components/primitives/index.js +10 -10
- package/dist/cjs/components/primitives/sidebar.js +3 -3
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/blanket.js +4 -2
- package/dist/es2019/components/index.js +3 -2
- package/dist/es2019/components/primitives/content.js +2 -2
- package/dist/es2019/components/primitives/icon-button.js +1 -1
- package/dist/es2019/components/primitives/index.js +1 -1
- package/dist/es2019/components/primitives/sidebar.js +2 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/blanket.js +4 -2
- package/dist/esm/components/index.js +3 -2
- package/dist/esm/components/primitives/content.js +2 -2
- package/dist/esm/components/primitives/icon-button.js +1 -1
- package/dist/esm/components/primitives/index.js +1 -1
- package/dist/esm/components/primitives/sidebar.js +2 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/components/blanket.d.ts +2 -1
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/components/primitives/content.d.ts +2 -3
- package/dist/types/components/primitives/index.d.ts +2 -2
- package/dist/types/components/primitives/sidebar.d.ts +1 -1
- package/dist/types/components/types.d.ts +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/drawer
|
|
2
2
|
|
|
3
|
+
## 7.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`cc4fe7bdf0c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cc4fe7bdf0c) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [`11da403db81`](https://bitbucket.org/atlassian/atlassian-frontend/commits/11da403db81) - Internal change to add optional `testId` prop pass-through to blanket component. There should be no change in behaviour.
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 7.1.12
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -20,7 +20,8 @@ var _constants = require("../constants");
|
|
|
20
20
|
*/
|
|
21
21
|
var Blanket = function Blanket(_ref) {
|
|
22
22
|
var isOpen = _ref.isOpen,
|
|
23
|
-
onBlanketClicked = _ref.onBlanketClicked
|
|
23
|
+
onBlanketClicked = _ref.onBlanketClicked,
|
|
24
|
+
testId = _ref.testId;
|
|
24
25
|
return /*#__PURE__*/_react.default.createElement(_motion.ExitingPersistence, {
|
|
25
26
|
appear: true
|
|
26
27
|
}, isOpen && /*#__PURE__*/_react.default.createElement(_motion.FadeIn
|
|
@@ -45,7 +46,8 @@ var Blanket = function Blanket(_ref) {
|
|
|
45
46
|
className: className
|
|
46
47
|
}, /*#__PURE__*/_react.default.createElement(_blanket.default, {
|
|
47
48
|
isTinted: true,
|
|
48
|
-
onBlanketClicked: onBlanketClicked
|
|
49
|
+
onBlanketClicked: onBlanketClicked,
|
|
50
|
+
testId: testId
|
|
49
51
|
}));
|
|
50
52
|
}));
|
|
51
53
|
};
|
|
@@ -46,7 +46,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
46
46
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
47
47
|
|
|
48
48
|
var packageName = "@atlaskit/drawer";
|
|
49
|
-
var packageVersion = "7.
|
|
49
|
+
var packageVersion = "7.2.0";
|
|
50
50
|
var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
|
|
51
51
|
|
|
52
52
|
var createAndFireOnClick = function createAndFireOnClick(createAnalyticsEvent, trigger) {
|
|
@@ -164,7 +164,8 @@ var DrawerBase = /*#__PURE__*/function (_Component) {
|
|
|
164
164
|
zIndex: "unset"
|
|
165
165
|
}, /*#__PURE__*/_react.default.createElement(_blanket.default, {
|
|
166
166
|
isOpen: isOpen,
|
|
167
|
-
onBlanketClicked: this.handleBlanketClick
|
|
167
|
+
onBlanketClicked: this.handleBlanketClick,
|
|
168
|
+
testId: testId && "".concat(testId, "--blanket")
|
|
168
169
|
}), /*#__PURE__*/_react.default.createElement(_focusLock.default, {
|
|
169
170
|
autoFocusFirstElem: autoFocusFirstElem,
|
|
170
171
|
isFocusLockEnabled: isFocusLockEnabled,
|
|
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
|
|
12
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _react = require("@emotion/react");
|
|
15
15
|
|
|
16
16
|
var _constants = require("@atlaskit/theme/constants");
|
|
17
17
|
|
|
@@ -37,8 +37,8 @@ var Content = function Content(_ref) {
|
|
|
37
37
|
* a complete override with no chance of partially changing styles.
|
|
38
38
|
*/
|
|
39
39
|
// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage, @repo/internal/react/no-unsafe-spread-props
|
|
40
|
-
(0,
|
|
41
|
-
css: cssFn(defaultStyles)
|
|
40
|
+
(0, _react.jsx)("div", (0, _extends2.default)({
|
|
41
|
+
css: (0, _react.css)(cssFn(defaultStyles))
|
|
42
42
|
}, props))
|
|
43
43
|
);
|
|
44
44
|
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _react = require("@emotion/react");
|
|
9
9
|
|
|
10
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
11
|
|
|
@@ -13,7 +13,7 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
13
13
|
|
|
14
14
|
/** @jsx jsx */
|
|
15
15
|
var gridSize = (0, _constants.gridSize)();
|
|
16
|
-
var iconButtonStyles = (0,
|
|
16
|
+
var iconButtonStyles = (0, _react.css)({
|
|
17
17
|
display: 'flex',
|
|
18
18
|
width: 5 * gridSize,
|
|
19
19
|
height: 5 * gridSize,
|
|
@@ -41,7 +41,7 @@ var IconButton = function IconButton(_ref) {
|
|
|
41
41
|
var children = _ref.children,
|
|
42
42
|
onClick = _ref.onClick,
|
|
43
43
|
testId = _ref.testId;
|
|
44
|
-
return (0,
|
|
44
|
+
return (0, _react.jsx)("button", {
|
|
45
45
|
type: "button",
|
|
46
46
|
css: iconButtonStyles,
|
|
47
47
|
onClick: onClick,
|
|
@@ -11,7 +11,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
11
11
|
|
|
12
12
|
var _react = require("react");
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _react2 = require("@emotion/react");
|
|
15
15
|
|
|
16
16
|
var _arrowLeft = _interopRequireDefault(require("@atlaskit/icon/glyph/arrow-left"));
|
|
17
17
|
|
|
@@ -43,7 +43,7 @@ var widths = {
|
|
|
43
43
|
medium: 60 * (0, _constants.gridSize)(),
|
|
44
44
|
wide: 75 * (0, _constants.gridSize)()
|
|
45
45
|
};
|
|
46
|
-
var wrapperStyles = (0,
|
|
46
|
+
var wrapperStyles = (0, _react2.css)({
|
|
47
47
|
display: 'flex',
|
|
48
48
|
height: '100vh',
|
|
49
49
|
position: 'fixed',
|
|
@@ -75,7 +75,7 @@ var CustomSlideIn = function CustomSlideIn(_ref) {
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
var duration = isExiting ? _constants2.transitionDurationMs * 2 : _constants2.transitionDurationMs;
|
|
78
|
-
return (0,
|
|
78
|
+
return (0, _react2.jsx)(_motion.SlideIn, {
|
|
79
79
|
animationTimingFunction: _constants2.animationTimingFunction,
|
|
80
80
|
duration: duration,
|
|
81
81
|
enterFrom: "left",
|
|
@@ -113,15 +113,15 @@ var DrawerPrimitive = function DrawerPrimitive(_ref2) {
|
|
|
113
113
|
onCloseComplete === null || onCloseComplete === void 0 ? void 0 : onCloseComplete(ref.current);
|
|
114
114
|
}
|
|
115
115
|
}, [onCloseComplete, onOpenComplete]);
|
|
116
|
-
return (0,
|
|
116
|
+
return (0, _react2.jsx)(_motion.ExitingPersistence, {
|
|
117
117
|
appear: true
|
|
118
|
-
}, isOpen && (0,
|
|
118
|
+
}, isOpen && (0, _react2.jsx)(CustomSlideIn, {
|
|
119
119
|
onFinish: onFinish
|
|
120
120
|
}, function (_ref3) {
|
|
121
121
|
var _props$width;
|
|
122
122
|
|
|
123
123
|
var className = _ref3.className;
|
|
124
|
-
return (0,
|
|
124
|
+
return (0, _react2.jsx)("div", {
|
|
125
125
|
className: className,
|
|
126
126
|
css: wrapperStyles,
|
|
127
127
|
style: {
|
|
@@ -129,14 +129,14 @@ var DrawerPrimitive = function DrawerPrimitive(_ref2) {
|
|
|
129
129
|
},
|
|
130
130
|
"data-testid": testId,
|
|
131
131
|
ref: ref
|
|
132
|
-
}, (0,
|
|
132
|
+
}, (0, _react2.jsx)(Sidebar, sideBarOverrides, (0, _react2.jsx)(_iconButton.default, {
|
|
133
133
|
onClick: onClose,
|
|
134
134
|
testId: testId && 'DrawerPrimitiveSidebarCloseButton'
|
|
135
|
-
}, Icon ? (0,
|
|
135
|
+
}, Icon ? (0, _react2.jsx)(Icon, {
|
|
136
136
|
size: "large"
|
|
137
|
-
}) : (0,
|
|
137
|
+
}) : (0, _react2.jsx)(_arrowLeft.default, {
|
|
138
138
|
label: "Close drawer"
|
|
139
|
-
}))), (0,
|
|
139
|
+
}))), (0, _react2.jsx)(Content, contentOverrides, children));
|
|
140
140
|
}));
|
|
141
141
|
}; // eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
142
142
|
|
|
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
|
|
12
12
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _react = require("@emotion/react");
|
|
15
15
|
|
|
16
16
|
var _colors = require("@atlaskit/theme/colors");
|
|
17
17
|
|
|
@@ -39,8 +39,8 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
39
39
|
var cssFn = _ref.cssFn,
|
|
40
40
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
41
41
|
// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage, @repo/internal/react/no-unsafe-spread-props
|
|
42
|
-
return (0,
|
|
43
|
-
css: cssFn(defaultStyle)
|
|
42
|
+
return (0, _react.jsx)("div", (0, _extends2.default)({
|
|
43
|
+
css: (0, _react.css)(cssFn(defaultStyle))
|
|
44
44
|
}, props));
|
|
45
45
|
};
|
|
46
46
|
|
package/dist/cjs/version.json
CHANGED
|
@@ -8,7 +8,8 @@ import { animationTimingFunction, transitionDurationMs } from '../constants';
|
|
|
8
8
|
*/
|
|
9
9
|
const Blanket = ({
|
|
10
10
|
isOpen,
|
|
11
|
-
onBlanketClicked
|
|
11
|
+
onBlanketClicked,
|
|
12
|
+
testId
|
|
12
13
|
}) => {
|
|
13
14
|
return /*#__PURE__*/React.createElement(ExitingPersistence, {
|
|
14
15
|
appear: true
|
|
@@ -34,7 +35,8 @@ const Blanket = ({
|
|
|
34
35
|
className: className
|
|
35
36
|
}, /*#__PURE__*/React.createElement(AkBlanket, {
|
|
36
37
|
isTinted: true,
|
|
37
|
-
onBlanketClicked: onBlanketClicked
|
|
38
|
+
onBlanketClicked: onBlanketClicked,
|
|
39
|
+
testId: testId
|
|
38
40
|
}))));
|
|
39
41
|
};
|
|
40
42
|
|
|
@@ -9,7 +9,7 @@ import Blanket from './blanket';
|
|
|
9
9
|
import FocusLock from './focus-lock';
|
|
10
10
|
import DrawerPrimitive from './primitives';
|
|
11
11
|
const packageName = "@atlaskit/drawer";
|
|
12
|
-
const packageVersion = "7.
|
|
12
|
+
const packageVersion = "7.2.0";
|
|
13
13
|
const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
14
14
|
|
|
15
15
|
const createAndFireOnClick = (createAnalyticsEvent, trigger) => createAndFireEventOnAtlaskit({
|
|
@@ -120,7 +120,8 @@ export class DrawerBase extends Component {
|
|
|
120
120
|
zIndex: "unset"
|
|
121
121
|
}, /*#__PURE__*/React.createElement(Blanket, {
|
|
122
122
|
isOpen: isOpen,
|
|
123
|
-
onBlanketClicked: this.handleBlanketClick
|
|
123
|
+
onBlanketClicked: this.handleBlanketClick,
|
|
124
|
+
testId: testId && `${testId}--blanket`
|
|
124
125
|
}), /*#__PURE__*/React.createElement(FocusLock, {
|
|
125
126
|
autoFocusFirstElem: autoFocusFirstElem,
|
|
126
127
|
isFocusLockEnabled: isFocusLockEnabled,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
-
import { jsx } from '@emotion/
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
6
6
|
const defaultStyles = {
|
|
7
7
|
flex: 1,
|
|
@@ -23,7 +23,7 @@ const Content = ({
|
|
|
23
23
|
*/
|
|
24
24
|
// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage, @repo/internal/react/no-unsafe-spread-props
|
|
25
25
|
jsx("div", _extends({
|
|
26
|
-
css: cssFn(defaultStyles)
|
|
26
|
+
css: css(cssFn(defaultStyles))
|
|
27
27
|
}, props));
|
|
28
28
|
|
|
29
29
|
export default {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { useCallback, useRef } from 'react';
|
|
3
|
-
import { css, jsx } from '@emotion/
|
|
3
|
+
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import ArrowLeft from '@atlaskit/icon/glyph/arrow-left';
|
|
5
5
|
import { ExitingPersistence, SlideIn, useExitingPersistence } from '@atlaskit/motion';
|
|
6
6
|
import { N0 } from '@atlaskit/theme/colors';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
|
-
import { jsx } from '@emotion/
|
|
4
|
+
import { css, jsx } from '@emotion/react';
|
|
5
5
|
import { N500 } from '@atlaskit/theme/colors';
|
|
6
6
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
7
7
|
const defaultStyle = {
|
|
@@ -25,7 +25,7 @@ const Sidebar = ({
|
|
|
25
25
|
}) => {
|
|
26
26
|
// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage, @repo/internal/react/no-unsafe-spread-props
|
|
27
27
|
return jsx("div", _extends({
|
|
28
|
-
css: cssFn(defaultStyle)
|
|
28
|
+
css: css(cssFn(defaultStyle))
|
|
29
29
|
}, props));
|
|
30
30
|
};
|
|
31
31
|
|
package/dist/es2019/version.json
CHANGED
|
@@ -8,7 +8,8 @@ import { animationTimingFunction, transitionDurationMs } from '../constants';
|
|
|
8
8
|
*/
|
|
9
9
|
var Blanket = function Blanket(_ref) {
|
|
10
10
|
var isOpen = _ref.isOpen,
|
|
11
|
-
onBlanketClicked = _ref.onBlanketClicked
|
|
11
|
+
onBlanketClicked = _ref.onBlanketClicked,
|
|
12
|
+
testId = _ref.testId;
|
|
12
13
|
return /*#__PURE__*/React.createElement(ExitingPersistence, {
|
|
13
14
|
appear: true
|
|
14
15
|
}, isOpen && /*#__PURE__*/React.createElement(FadeIn
|
|
@@ -33,7 +34,8 @@ var Blanket = function Blanket(_ref) {
|
|
|
33
34
|
className: className
|
|
34
35
|
}, /*#__PURE__*/React.createElement(AkBlanket, {
|
|
35
36
|
isTinted: true,
|
|
36
|
-
onBlanketClicked: onBlanketClicked
|
|
37
|
+
onBlanketClicked: onBlanketClicked,
|
|
38
|
+
testId: testId
|
|
37
39
|
}));
|
|
38
40
|
}));
|
|
39
41
|
};
|
|
@@ -19,7 +19,7 @@ import Blanket from './blanket';
|
|
|
19
19
|
import FocusLock from './focus-lock';
|
|
20
20
|
import DrawerPrimitive from './primitives';
|
|
21
21
|
var packageName = "@atlaskit/drawer";
|
|
22
|
-
var packageVersion = "7.
|
|
22
|
+
var packageVersion = "7.2.0";
|
|
23
23
|
var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
|
|
24
24
|
|
|
25
25
|
var createAndFireOnClick = function createAndFireOnClick(createAnalyticsEvent, trigger) {
|
|
@@ -144,7 +144,8 @@ export var DrawerBase = /*#__PURE__*/function (_Component) {
|
|
|
144
144
|
zIndex: "unset"
|
|
145
145
|
}, /*#__PURE__*/React.createElement(Blanket, {
|
|
146
146
|
isOpen: isOpen,
|
|
147
|
-
onBlanketClicked: this.handleBlanketClick
|
|
147
|
+
onBlanketClicked: this.handleBlanketClick,
|
|
148
|
+
testId: testId && "".concat(testId, "--blanket")
|
|
148
149
|
}), /*#__PURE__*/React.createElement(FocusLock, {
|
|
149
150
|
autoFocusFirstElem: autoFocusFirstElem,
|
|
150
151
|
isFocusLockEnabled: isFocusLockEnabled,
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["cssFn"];
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
|
-
import { jsx } from '@emotion/
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
8
8
|
var defaultStyles = {
|
|
9
9
|
flex: 1,
|
|
@@ -28,7 +28,7 @@ var Content = function Content(_ref) {
|
|
|
28
28
|
*/
|
|
29
29
|
// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage, @repo/internal/react/no-unsafe-spread-props
|
|
30
30
|
jsx("div", _extends({
|
|
31
|
-
css: cssFn(defaultStyles)
|
|
31
|
+
css: css(cssFn(defaultStyles))
|
|
32
32
|
}, props))
|
|
33
33
|
);
|
|
34
34
|
};
|
|
@@ -5,7 +5,7 @@ var _excluded = ["children", "icon", "onClose", "onCloseComplete", "onOpenComple
|
|
|
5
5
|
|
|
6
6
|
/** @jsx jsx */
|
|
7
7
|
import { useCallback, useRef } from 'react';
|
|
8
|
-
import { css, jsx } from '@emotion/
|
|
8
|
+
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import ArrowLeft from '@atlaskit/icon/glyph/arrow-left';
|
|
10
10
|
import { ExitingPersistence, SlideIn, useExitingPersistence } from '@atlaskit/motion';
|
|
11
11
|
import { N0 } from '@atlaskit/theme/colors';
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["cssFn"];
|
|
4
4
|
|
|
5
5
|
/** @jsx jsx */
|
|
6
|
-
import { jsx } from '@emotion/
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import { N500 } from '@atlaskit/theme/colors';
|
|
8
8
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
9
9
|
var defaultStyle = {
|
|
@@ -29,7 +29,7 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
29
29
|
|
|
30
30
|
// eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage, @repo/internal/react/no-unsafe-spread-props
|
|
31
31
|
return jsx("div", _extends({
|
|
32
|
-
css: cssFn(defaultStyle)
|
|
32
|
+
css: css(cssFn(defaultStyle))
|
|
33
33
|
}, props));
|
|
34
34
|
};
|
|
35
35
|
|
package/dist/esm/version.json
CHANGED
|
@@ -2,9 +2,10 @@ import React from 'react';
|
|
|
2
2
|
declare type BlanketProps = {
|
|
3
3
|
isOpen: boolean;
|
|
4
4
|
onBlanketClicked: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
5
|
+
testId?: string;
|
|
5
6
|
};
|
|
6
7
|
/**
|
|
7
8
|
* A wrapper around `@atlaskit/blanket` that adds a fade in/out transition.
|
|
8
9
|
*/
|
|
9
|
-
declare const Blanket: ({ isOpen, onBlanketClicked }: BlanketProps) => JSX.Element;
|
|
10
|
+
declare const Blanket: ({ isOpen, onBlanketClicked, testId }: BlanketProps) => JSX.Element;
|
|
10
11
|
export default Blanket;
|
|
@@ -27,5 +27,5 @@ declare const _default: React.ForwardRefExoticComponent<Pick<Pick<Omit<DrawerPro
|
|
|
27
27
|
isFocusLockEnabled: boolean;
|
|
28
28
|
shouldReturnFocus: boolean;
|
|
29
29
|
autoFocusFirstElem: boolean;
|
|
30
|
-
}, never>> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "width" | "children" | "onKeyDown" | "key" | "isOpen" | "
|
|
30
|
+
}, never>> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "width" | "children" | "onKeyDown" | "key" | "isOpen" | "testId" | "analyticsContext" | "isFocusLockEnabled" | "autoFocusFirstElem" | "shouldReturnFocus" | "icon" | "onClose" | "onCloseComplete" | "onOpenComplete" | "overrides" | "shouldUnmountOnExit"> & React.RefAttributes<any>>;
|
|
31
31
|
export default _default;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
|
|
3
|
-
import { CSSObject } from '@emotion/core';
|
|
2
|
+
import { CSSObject, jsx } from '@emotion/react';
|
|
4
3
|
import { ContentProps } from '../types';
|
|
5
4
|
declare const _default: {
|
|
6
|
-
component: ({ cssFn, ...props }: ContentProps) => JSX.Element;
|
|
5
|
+
component: ({ cssFn, ...props }: ContentProps) => jsx.JSX.Element;
|
|
7
6
|
cssFn: () => CSSObject;
|
|
8
7
|
};
|
|
9
8
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
-
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
3
3
|
import { DrawerPrimitiveProps } from '../types';
|
|
4
|
-
declare const DrawerPrimitive: ({ children, icon: Icon, onClose, onCloseComplete, onOpenComplete, overrides, testId, in: isOpen, ...props }: DrawerPrimitiveProps) => JSX.Element;
|
|
4
|
+
declare const DrawerPrimitive: ({ children, icon: Icon, onClose, onCloseComplete, onOpenComplete, overrides, testId, in: isOpen, ...props }: DrawerPrimitiveProps) => jsx.JSX.Element;
|
|
5
5
|
export default DrawerPrimitive;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentType, ReactNode, SyntheticEvent } from 'react';
|
|
2
|
-
import { CSSObject } from '@emotion/
|
|
2
|
+
import { CSSObject } from '@emotion/react';
|
|
3
3
|
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
4
4
|
export declare type Widths = {
|
|
5
5
|
extended: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/drawer",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"description": "A drawer is a panel that slides in from the left side of the screen.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"@atlaskit/icon": "^21.10.0",
|
|
31
31
|
"@atlaskit/motion": "^1.2.0",
|
|
32
32
|
"@atlaskit/portal": "^4.0.0",
|
|
33
|
-
"@atlaskit/theme": "^12.
|
|
33
|
+
"@atlaskit/theme": "^12.2.0",
|
|
34
34
|
"@atlaskit/tokens": "^0.10.0",
|
|
35
35
|
"@babel/runtime": "^7.0.0",
|
|
36
|
-
"@emotion/
|
|
36
|
+
"@emotion/react": "^11.7.1",
|
|
37
37
|
"exenv": "^1.2.2",
|
|
38
38
|
"react-focus-lock": "^2.5.2",
|
|
39
39
|
"tiny-invariant": "^1.2.0"
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"@atlaskit/checkbox": "^12.3.9",
|
|
47
47
|
"@atlaskit/code": "^14.3.3",
|
|
48
48
|
"@atlaskit/docs": "*",
|
|
49
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
49
|
+
"@atlaskit/dropdown-menu": "^11.4.0",
|
|
50
50
|
"@atlaskit/ds-lib": "^2.1.0",
|
|
51
51
|
"@atlaskit/menu": "^1.3.0",
|
|
52
|
-
"@atlaskit/section-message": "^6.
|
|
52
|
+
"@atlaskit/section-message": "^6.2.0",
|
|
53
53
|
"@atlaskit/ssr": "*",
|
|
54
54
|
"@atlaskit/textarea": "^4.3.1",
|
|
55
55
|
"@atlaskit/visual-regression": "*",
|