@atlaskit/drawer 7.4.10 → 7.4.11

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/drawer
2
2
 
3
+ ## 7.4.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`74c1b81a476`](https://bitbucket.org/atlassian/atlassian-frontend/commits/74c1b81a476) - Replaces use of `gridSize` with space tokens. There is no expected visual change.
8
+
3
9
  ## 7.4.10
4
10
 
5
11
  ### Patch Changes
@@ -27,7 +27,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
27
27
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
28
28
  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; } }
29
29
  var packageName = "@atlaskit/drawer";
30
- var packageVersion = "7.4.10";
30
+ var packageVersion = "7.4.11";
31
31
  var createAndFireEventOnAtlaskit = (0, _analyticsNext.createAndFireEvent)('atlaskit');
32
32
  var createAndFireOnClick = function createAndFireOnClick(createAnalyticsEvent, trigger) {
33
33
  return createAndFireEventOnAtlaskit({
@@ -8,12 +8,11 @@ exports.default = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
10
  var _react = require("@emotion/react");
11
- var _constants = require("@atlaskit/theme/constants");
12
11
  var _excluded = ["cssFn"];
13
12
  var defaultStyles = {
14
13
  flex: 1,
15
14
  overflow: 'auto',
16
- marginTop: 3 * (0, _constants.gridSize)()
15
+ marginTop: "var(--ds-space-300, 24px)"
17
16
  };
18
17
  var contentCSS = function contentCSS() {
19
18
  return defaultStyles;
@@ -9,7 +9,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
9
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
10
  var _react = require("@emotion/react");
11
11
  var _colors = require("@atlaskit/theme/colors");
12
- var _constants = require("@atlaskit/theme/constants");
13
12
  var _excluded = ["cssFn"];
14
13
  var defaultStyle = {
15
14
  alignItems: 'center',
@@ -19,9 +18,9 @@ var defaultStyle = {
19
18
  flexShrink: 0,
20
19
  flexDirection: 'column',
21
20
  height: '100vh',
22
- paddingBottom: 2 * (0, _constants.gridSize)(),
23
- paddingTop: 3 * (0, _constants.gridSize)(),
24
- width: 8 * (0, _constants.gridSize)()
21
+ paddingBottom: "var(--ds-space-200, 16px)",
22
+ paddingTop: "var(--ds-space-300, 24px)",
23
+ width: "var(--ds-space-800, 64px)"
25
24
  };
26
25
  var sidebarCSS = function sidebarCSS() {
27
26
  return defaultStyle;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/drawer",
3
- "version": "7.4.10",
3
+ "version": "7.4.11",
4
4
  "sideEffects": false
5
5
  }
@@ -8,7 +8,7 @@ import { defaultFocusLockSettings } from '../constants';
8
8
  import Blanket from './blanket';
9
9
  import DrawerPrimitive from './primitives';
10
10
  const packageName = "@atlaskit/drawer";
11
- const packageVersion = "7.4.10";
11
+ const packageVersion = "7.4.11";
12
12
  const createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
13
13
  const createAndFireOnClick = (createAnalyticsEvent, trigger) => createAndFireEventOnAtlaskit({
14
14
  action: 'dismissed',
@@ -2,11 +2,10 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  /** @jsx jsx */
3
3
 
4
4
  import { css, jsx } from '@emotion/react';
5
- import { gridSize } from '@atlaskit/theme/constants';
6
5
  const defaultStyles = {
7
6
  flex: 1,
8
7
  overflow: 'auto',
9
- marginTop: 3 * gridSize()
8
+ marginTop: "var(--ds-space-300, 24px)"
10
9
  };
11
10
  const contentCSS = () => defaultStyles;
12
11
  const Content = ({
@@ -4,6 +4,7 @@ import { forwardRef, useCallback } from 'react';
4
4
  import { jsx } from '@emotion/react';
5
5
  import { useMergeRefs } from 'use-callback-ref';
6
6
  import Box from '@atlaskit/ds-explorations/box';
7
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
7
8
  import { gridSize } from '@atlaskit/theme/constants';
8
9
  import usePreventProgrammaticScroll from './hooks/use-prevent-programmatic-scroll';
9
10
  export const wrapperWidth = {
@@ -3,7 +3,6 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
 
4
4
  import { css, jsx } from '@emotion/react';
5
5
  import { N500 } from '@atlaskit/theme/colors';
6
- import { gridSize } from '@atlaskit/theme/constants';
7
6
  const defaultStyle = {
8
7
  alignItems: 'center',
9
8
  boxSizing: 'border-box',
@@ -12,9 +11,9 @@ const defaultStyle = {
12
11
  flexShrink: 0,
13
12
  flexDirection: 'column',
14
13
  height: '100vh',
15
- paddingBottom: 2 * gridSize(),
16
- paddingTop: 3 * gridSize(),
17
- width: 8 * gridSize()
14
+ paddingBottom: "var(--ds-space-200, 16px)",
15
+ paddingTop: "var(--ds-space-300, 24px)",
16
+ width: "var(--ds-space-800, 64px)"
18
17
  };
19
18
  const sidebarCSS = () => defaultStyle;
20
19
  const Sidebar = ({
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/drawer",
3
- "version": "7.4.10",
3
+ "version": "7.4.11",
4
4
  "sideEffects": false
5
5
  }
@@ -18,7 +18,7 @@ import { defaultFocusLockSettings } from '../constants';
18
18
  import Blanket from './blanket';
19
19
  import DrawerPrimitive from './primitives';
20
20
  var packageName = "@atlaskit/drawer";
21
- var packageVersion = "7.4.10";
21
+ var packageVersion = "7.4.11";
22
22
  var createAndFireEventOnAtlaskit = createAndFireEvent('atlaskit');
23
23
  var createAndFireOnClick = function createAndFireOnClick(createAnalyticsEvent, trigger) {
24
24
  return createAndFireEventOnAtlaskit({
@@ -4,11 +4,10 @@ var _excluded = ["cssFn"];
4
4
  /** @jsx jsx */
5
5
 
6
6
  import { css, jsx } from '@emotion/react';
7
- import { gridSize } from '@atlaskit/theme/constants';
8
7
  var defaultStyles = {
9
8
  flex: 1,
10
9
  overflow: 'auto',
11
- marginTop: 3 * gridSize()
10
+ marginTop: "var(--ds-space-300, 24px)"
12
11
  };
13
12
  var contentCSS = function contentCSS() {
14
13
  return defaultStyles;
@@ -7,6 +7,7 @@ import { forwardRef, useCallback } from 'react';
7
7
  import { jsx } from '@emotion/react';
8
8
  import { useMergeRefs } from 'use-callback-ref';
9
9
  import Box from '@atlaskit/ds-explorations/box';
10
+ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
10
11
  import { gridSize } from '@atlaskit/theme/constants';
11
12
  import usePreventProgrammaticScroll from './hooks/use-prevent-programmatic-scroll';
12
13
  export var wrapperWidth = {
@@ -5,7 +5,6 @@ var _excluded = ["cssFn"];
5
5
 
6
6
  import { css, jsx } from '@emotion/react';
7
7
  import { N500 } from '@atlaskit/theme/colors';
8
- import { gridSize } from '@atlaskit/theme/constants';
9
8
  var defaultStyle = {
10
9
  alignItems: 'center',
11
10
  boxSizing: 'border-box',
@@ -14,9 +13,9 @@ var defaultStyle = {
14
13
  flexShrink: 0,
15
14
  flexDirection: 'column',
16
15
  height: '100vh',
17
- paddingBottom: 2 * gridSize(),
18
- paddingTop: 3 * gridSize(),
19
- width: 8 * gridSize()
16
+ paddingBottom: "var(--ds-space-200, 16px)",
17
+ paddingTop: "var(--ds-space-300, 24px)",
18
+ width: "var(--ds-space-800, 64px)"
20
19
  };
21
20
  var sidebarCSS = function sidebarCSS() {
22
21
  return defaultStyle;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/drawer",
3
- "version": "7.4.10",
3
+ "version": "7.4.11",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/drawer",
3
- "version": "7.4.10",
3
+ "version": "7.4.11",
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/"
@@ -16,7 +16,6 @@
16
16
  "atlaskit:src": "src/index.tsx",
17
17
  "homepage": "https://atlassian.design/components/drawer",
18
18
  "atlassian": {
19
- "disableProductCI": true,
20
19
  "team": "Design System Team",
21
20
  "deprecatedAutoEntryPoints": true,
22
21
  "releaseModel": "scheduled",
@@ -49,11 +48,11 @@
49
48
  "devDependencies": {
50
49
  "@atlaskit/button": "^16.5.0",
51
50
  "@atlaskit/checkbox": "^12.4.0",
52
- "@atlaskit/code": "^14.4.0",
51
+ "@atlaskit/code": "^14.5.0",
53
52
  "@atlaskit/docs": "*",
54
- "@atlaskit/dropdown-menu": "^11.5.0",
53
+ "@atlaskit/dropdown-menu": "^11.7.0",
55
54
  "@atlaskit/ds-lib": "^2.1.0",
56
- "@atlaskit/menu": "^1.4.0",
55
+ "@atlaskit/menu": "^1.5.0",
57
56
  "@atlaskit/modal-dialog": "^12.4.0",
58
57
  "@atlaskit/section-message": "^6.3.0",
59
58
  "@atlaskit/ssr": "*",
package/report.api.md CHANGED
@@ -8,6 +8,7 @@
8
8
  ### Table of contents
9
9
 
10
10
  - [Main Entry Types](#main-entry-types)
11
+ - [Peer Dependencies](#peer-dependencies)
11
12
 
12
13
  ### Main Entry Types
13
14
 
@@ -184,14 +185,36 @@ export interface SidebarProps extends React.HTMLProps<HTMLDivElement> {
184
185
 
185
186
  // @public (undocumented)
186
187
  export type Widths = {
187
- extended: string;
188
- full: string;
189
- medium: number;
190
- narrow: number;
191
- wide: number;
188
+ extended: {
189
+ width: string;
190
+ };
191
+ full: {
192
+ width: string;
193
+ };
194
+ medium: {
195
+ width: number;
196
+ };
197
+ narrow: {
198
+ width: number;
199
+ };
200
+ wide: {
201
+ width: number;
202
+ };
192
203
  };
193
204
 
194
205
  // (No @packageDocumentation comment for this package)
195
206
  ```
196
207
 
197
208
  <!--SECTION END: Main Entry Types-->
209
+
210
+ ### Peer Dependencies
211
+
212
+ <!--SECTION START: Peer Dependencies-->
213
+
214
+ ```json
215
+ {
216
+ "react": "^16.8.0"
217
+ }
218
+ ```
219
+
220
+ <!--SECTION END: Peer Dependencies-->