@atlaskit/onboarding 10.6.0 → 10.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/onboarding
2
2
 
3
+ ## 10.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9de88fa1e1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9de88fa1e1e) - Internal changes to include spacing tokens in component implementations.
8
+
3
9
  ## 10.6.0
4
10
 
5
11
  ### Minor Changes
@@ -35,15 +35,15 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
35
35
 
36
36
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
37
37
 
38
- var gridSize = (0, _constants.gridSize)();
39
38
  var bodyStyles = (0, _react2.css)({
40
39
  display: 'flex',
41
- padding: "".concat(gridSize * 2, "px ").concat(gridSize * 2.5, "px"),
40
+ padding: "var(--ds-scale-200, 16px)".concat(" ", "var(--ds-scale-250, 20px)"),
42
41
  flexDirection: 'column'
43
42
  });
44
43
  var defaultHeaderStyles = (0, _react2.css)({
45
44
  display: 'flex',
46
- paddingBottom: "".concat(gridSize, "px"),
45
+ // TODO Delete this comment after verifying spacing token -> previous value ``${gridSize}px``
46
+ paddingBottom: "var(--ds-scale-100, 8px)",
47
47
  alignItems: 'baseline',
48
48
  justifyContent: 'space-between'
49
49
  });
@@ -57,7 +57,8 @@ var DefaultHeader = function DefaultHeader(_ref) {
57
57
 
58
58
  var defaultFooterStyles = (0, _react2.css)({
59
59
  display: 'flex',
60
- paddingTop: "".concat(gridSize, "px"),
60
+ // TODO Delete this comment after verifying spacing token -> previous value ``${gridSize}px``
61
+ paddingTop: "var(--ds-scale-100, 8px)",
61
62
  alignItems: 'center',
62
63
  justifyContent: 'space-between'
63
64
  });
@@ -50,7 +50,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
50
50
  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; } }
51
51
 
52
52
  var packageName = "@atlaskit/onboarding";
53
- var packageVersion = "10.6.0";
53
+ var packageVersion = "10.6.1";
54
54
 
55
55
  var SpotlightDialog = /*#__PURE__*/function (_Component) {
56
56
  (0, _inherits2.default)(SpotlightDialog, _Component);
@@ -13,24 +13,21 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
13
13
 
14
14
  var _react = require("@emotion/react");
15
15
 
16
- var _constants = require("@atlaskit/theme/constants");
17
-
18
16
  var _excluded = ["alt"];
19
- var gridSize = (0, _constants.gridSize)();
20
17
  var imageStyles = (0, _react.css)({
21
18
  maxWidth: '100%',
22
19
  height: 'auto'
23
20
  });
24
21
  var actionItemContainerStyles = (0, _react.css)({
25
22
  display: 'flex',
26
- margin: "0 -".concat(gridSize / 2, "px"),
23
+ margin: "var(--ds-scale-0, 0px)".concat(" -4px"),
27
24
 
28
25
  /* When there is more than one action, place primary action visually on the
29
26
  right, but keep it's position as the first focusable element in the DOM */
30
27
  flexDirection: 'row-reverse'
31
28
  });
32
29
  var actionItemStyles = (0, _react.css)({
33
- margin: "0 ".concat(gridSize / 2, "px")
30
+ margin: "var(--ds-scale-0, 0px)".concat(" ", "var(--ds-scale-050, 4px)")
34
31
  });
35
32
  /**
36
33
  * __Dialog image__
@@ -14,9 +14,7 @@ var _constants = require("@atlaskit/theme/constants");
14
14
  var _typography = require("@atlaskit/theme/typography");
15
15
 
16
16
  /** @jsx jsx */
17
- var gridSize = (0, _constants.gridSize)();
18
- var borderRadius = (0, _constants.borderRadius)();
19
- var actionItemBottomMargin = gridSize / 2; // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
17
+ var borderRadius = (0, _constants.borderRadius)(); // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
20
18
 
21
19
  var lightH600Styles = (0, _react.css)((0, _typography.h600)({
22
20
  theme: {
@@ -30,12 +28,13 @@ var darkH600Styles = (0, _react.css)((0, _typography.h600)({
30
28
  }
31
29
  }));
32
30
  var modalBodyStyles = (0, _react.css)({
33
- padding: '40px 20px',
31
+ padding: "var(--ds-scale-500, 40px)".concat(" ", "var(--ds-scale-250, 20px)"),
34
32
  textAlign: 'center'
35
33
  }); // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
36
34
 
37
35
  var modalHeadingStyles = (0, _react.css)({
38
- marginBottom: "".concat(gridSize, "px"),
36
+ // TODO Delete this comment after verifying spacing token -> previous value ``${gridSize}px``
37
+ marginBottom: "var(--ds-scale-100, 8px)",
39
38
  color: 'inherit'
40
39
  });
41
40
  var modalImageStyles = (0, _react.css)({
@@ -49,7 +48,7 @@ var modalImageStyles = (0, _react.css)({
49
48
  });
50
49
  var modalActionContainerStyles = (0, _react.css)({
51
50
  display: 'flex',
52
- padding: "0 40px ".concat(40 - actionItemBottomMargin, "px"),
51
+ padding: "var(--ds-scale-0, 0px)".concat(" ", "var(--ds-scale-500, 40px)", " 36px"),
53
52
  justifyContent: 'center',
54
53
  flexDirection: 'row',
55
54
  flexFlow: 'wrap'
@@ -58,7 +57,7 @@ var modalActionContainerReversedStyles = (0, _react.css)({
58
57
  flexDirection: 'row-reverse'
59
58
  });
60
59
  var modalActionItemStyles = (0, _react.css)({
61
- margin: "0 ".concat(gridSize / 2, "px ").concat(actionItemBottomMargin, "px")
60
+ margin: "var(--ds-scale-0, 0px)".concat(" ", "var(--ds-scale-050, 4px)", " ", "var(--ds-scale-050, 4px)")
62
61
  });
63
62
  /**
64
63
  * __Modal body__
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/onboarding",
3
- "version": "10.6.0",
3
+ "version": "10.6.1",
4
4
  "sideEffects": false
5
5
  }
@@ -5,18 +5,18 @@ import Button, { Theme as ButtonTheme } from '@atlaskit/button/custom-theme-butt
5
5
  import Heading from '@atlaskit/heading';
6
6
  import { N0, N50A, N60A, P300 } from '@atlaskit/theme/colors';
7
7
  import { createTheme } from '@atlaskit/theme/components';
8
- import { borderRadius, gridSize as getGridSize, layers } from '@atlaskit/theme/constants';
8
+ import { borderRadius, layers } from '@atlaskit/theme/constants';
9
9
  import { DialogActionItem, DialogActionItemContainer } from '../styled/dialog';
10
10
  import { spotlightButtonTheme } from './theme';
11
- const gridSize = getGridSize();
12
11
  const bodyStyles = css({
13
12
  display: 'flex',
14
- padding: `${gridSize * 2}px ${gridSize * 2.5}px`,
13
+ padding: `${"var(--ds-scale-200, 16px)"} ${"var(--ds-scale-250, 20px)"}`,
15
14
  flexDirection: 'column'
16
15
  });
17
16
  const defaultHeaderStyles = css({
18
17
  display: 'flex',
19
- paddingBottom: `${gridSize}px`,
18
+ // TODO Delete this comment after verifying spacing token -> previous value ``${gridSize}px``
19
+ paddingBottom: "var(--ds-scale-100, 8px)",
20
20
  alignItems: 'baseline',
21
21
  justifyContent: 'space-between'
22
22
  });
@@ -29,7 +29,8 @@ const DefaultHeader = ({
29
29
 
30
30
  const defaultFooterStyles = css({
31
31
  display: 'flex',
32
- paddingTop: `${gridSize}px`,
32
+ // TODO Delete this comment after verifying spacing token -> previous value ``${gridSize}px``
33
+ paddingTop: "var(--ds-scale-100, 8px)",
33
34
  alignItems: 'center',
34
35
  justifyContent: 'space-between'
35
36
  });
@@ -7,7 +7,7 @@ import { DialogImage } from '../styled/dialog';
7
7
  import SpotlightCard from './spotlight-card';
8
8
  import ValueChanged from './value-changed';
9
9
  const packageName = "@atlaskit/onboarding";
10
- const packageVersion = "10.6.0";
10
+ const packageVersion = "10.6.1";
11
11
 
12
12
  class SpotlightDialog extends Component {
13
13
  constructor(...args) {
@@ -2,22 +2,20 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
 
3
3
  /** @jsx jsx */
4
4
  import { css, jsx } from '@emotion/react';
5
- import { gridSize as getGridSize } from '@atlaskit/theme/constants';
6
- const gridSize = getGridSize();
7
5
  const imageStyles = css({
8
6
  maxWidth: '100%',
9
7
  height: 'auto'
10
8
  });
11
9
  const actionItemContainerStyles = css({
12
10
  display: 'flex',
13
- margin: `0 -${gridSize / 2}px`,
11
+ margin: `${"var(--ds-scale-0, 0px)"} -4px`,
14
12
 
15
13
  /* When there is more than one action, place primary action visually on the
16
14
  right, but keep it's position as the first focusable element in the DOM */
17
15
  flexDirection: 'row-reverse'
18
16
  });
19
17
  const actionItemStyles = css({
20
- margin: `0 ${gridSize / 2}px`
18
+ margin: `${"var(--ds-scale-0, 0px)"} ${"var(--ds-scale-050, 4px)"}`
21
19
  });
22
20
  /**
23
21
  * __Dialog image__
@@ -1,11 +1,9 @@
1
1
  /** @jsx jsx */
2
2
  import { css, jsx } from '@emotion/react';
3
3
  import { useGlobalTheme } from '@atlaskit/theme/components';
4
- import { borderRadius as getBorderRadius, gridSize as getGridSize } from '@atlaskit/theme/constants';
4
+ import { borderRadius as getBorderRadius } from '@atlaskit/theme/constants';
5
5
  import { h600 } from '@atlaskit/theme/typography';
6
- const gridSize = getGridSize();
7
- const borderRadius = getBorderRadius();
8
- const actionItemBottomMargin = gridSize / 2; // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
6
+ const borderRadius = getBorderRadius(); // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
9
7
 
10
8
  const lightH600Styles = css(h600({
11
9
  theme: {
@@ -19,12 +17,13 @@ const darkH600Styles = css(h600({
19
17
  }
20
18
  }));
21
19
  const modalBodyStyles = css({
22
- padding: '40px 20px',
20
+ padding: `${"var(--ds-scale-500, 40px)"} ${"var(--ds-scale-250, 20px)"}`,
23
21
  textAlign: 'center'
24
22
  }); // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
25
23
 
26
24
  const modalHeadingStyles = css({
27
- marginBottom: `${gridSize}px`,
25
+ // TODO Delete this comment after verifying spacing token -> previous value ``${gridSize}px``
26
+ marginBottom: "var(--ds-scale-100, 8px)",
28
27
  color: 'inherit'
29
28
  });
30
29
  const modalImageStyles = css({
@@ -38,7 +37,7 @@ const modalImageStyles = css({
38
37
  });
39
38
  const modalActionContainerStyles = css({
40
39
  display: 'flex',
41
- padding: `0 40px ${40 - actionItemBottomMargin}px`,
40
+ padding: `${"var(--ds-scale-0, 0px)"} ${"var(--ds-scale-500, 40px)"} 36px`,
42
41
  justifyContent: 'center',
43
42
  flexDirection: 'row',
44
43
  flexFlow: 'wrap'
@@ -47,7 +46,7 @@ const modalActionContainerReversedStyles = css({
47
46
  flexDirection: 'row-reverse'
48
47
  });
49
48
  const modalActionItemStyles = css({
50
- margin: `0 ${gridSize / 2}px ${actionItemBottomMargin}px`
49
+ margin: `${"var(--ds-scale-0, 0px)"} ${"var(--ds-scale-050, 4px)"} ${"var(--ds-scale-050, 4px)"}`
51
50
  });
52
51
  /**
53
52
  * __Modal body__
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/onboarding",
3
- "version": "10.6.0",
3
+ "version": "10.6.1",
4
4
  "sideEffects": false
5
5
  }
@@ -8,18 +8,18 @@ import Button, { Theme as ButtonTheme } from '@atlaskit/button/custom-theme-butt
8
8
  import Heading from '@atlaskit/heading';
9
9
  import { N0, N50A, N60A, P300 } from '@atlaskit/theme/colors';
10
10
  import { createTheme } from '@atlaskit/theme/components';
11
- import { borderRadius, gridSize as getGridSize, layers } from '@atlaskit/theme/constants';
11
+ import { borderRadius, layers } from '@atlaskit/theme/constants';
12
12
  import { DialogActionItem, DialogActionItemContainer } from '../styled/dialog';
13
13
  import { spotlightButtonTheme } from './theme';
14
- var gridSize = getGridSize();
15
14
  var bodyStyles = css({
16
15
  display: 'flex',
17
- padding: "".concat(gridSize * 2, "px ").concat(gridSize * 2.5, "px"),
16
+ padding: "var(--ds-scale-200, 16px)".concat(" ", "var(--ds-scale-250, 20px)"),
18
17
  flexDirection: 'column'
19
18
  });
20
19
  var defaultHeaderStyles = css({
21
20
  display: 'flex',
22
- paddingBottom: "".concat(gridSize, "px"),
21
+ // TODO Delete this comment after verifying spacing token -> previous value ``${gridSize}px``
22
+ paddingBottom: "var(--ds-scale-100, 8px)",
23
23
  alignItems: 'baseline',
24
24
  justifyContent: 'space-between'
25
25
  });
@@ -33,7 +33,8 @@ var DefaultHeader = function DefaultHeader(_ref) {
33
33
 
34
34
  var defaultFooterStyles = css({
35
35
  display: 'flex',
36
- paddingTop: "".concat(gridSize, "px"),
36
+ // TODO Delete this comment after verifying spacing token -> previous value ``${gridSize}px``
37
+ paddingTop: "var(--ds-scale-100, 8px)",
37
38
  alignItems: 'center',
38
39
  justifyContent: 'space-between'
39
40
  });
@@ -22,7 +22,7 @@ import { DialogImage } from '../styled/dialog';
22
22
  import SpotlightCard from './spotlight-card';
23
23
  import ValueChanged from './value-changed';
24
24
  var packageName = "@atlaskit/onboarding";
25
- var packageVersion = "10.6.0";
25
+ var packageVersion = "10.6.1";
26
26
 
27
27
  var SpotlightDialog = /*#__PURE__*/function (_Component) {
28
28
  _inherits(SpotlightDialog, _Component);
@@ -4,22 +4,20 @@ var _excluded = ["alt"];
4
4
 
5
5
  /** @jsx jsx */
6
6
  import { css, jsx } from '@emotion/react';
7
- import { gridSize as getGridSize } from '@atlaskit/theme/constants';
8
- var gridSize = getGridSize();
9
7
  var imageStyles = css({
10
8
  maxWidth: '100%',
11
9
  height: 'auto'
12
10
  });
13
11
  var actionItemContainerStyles = css({
14
12
  display: 'flex',
15
- margin: "0 -".concat(gridSize / 2, "px"),
13
+ margin: "var(--ds-scale-0, 0px)".concat(" -4px"),
16
14
 
17
15
  /* When there is more than one action, place primary action visually on the
18
16
  right, but keep it's position as the first focusable element in the DOM */
19
17
  flexDirection: 'row-reverse'
20
18
  });
21
19
  var actionItemStyles = css({
22
- margin: "0 ".concat(gridSize / 2, "px")
20
+ margin: "var(--ds-scale-0, 0px)".concat(" ", "var(--ds-scale-050, 4px)")
23
21
  });
24
22
  /**
25
23
  * __Dialog image__
@@ -1,11 +1,9 @@
1
1
  /** @jsx jsx */
2
2
  import { css, jsx } from '@emotion/react';
3
3
  import { useGlobalTheme } from '@atlaskit/theme/components';
4
- import { borderRadius as getBorderRadius, gridSize as getGridSize } from '@atlaskit/theme/constants';
4
+ import { borderRadius as getBorderRadius } from '@atlaskit/theme/constants';
5
5
  import { h600 } from '@atlaskit/theme/typography';
6
- var gridSize = getGridSize();
7
- var borderRadius = getBorderRadius();
8
- var actionItemBottomMargin = gridSize / 2; // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
6
+ var borderRadius = getBorderRadius(); // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
9
7
 
10
8
  var lightH600Styles = css(h600({
11
9
  theme: {
@@ -19,12 +17,13 @@ var darkH600Styles = css(h600({
19
17
  }
20
18
  }));
21
19
  var modalBodyStyles = css({
22
- padding: '40px 20px',
20
+ padding: "var(--ds-scale-500, 40px)".concat(" ", "var(--ds-scale-250, 20px)"),
23
21
  textAlign: 'center'
24
22
  }); // eslint-disable-next-line @repo/internal/react/consistent-css-prop-usage
25
23
 
26
24
  var modalHeadingStyles = css({
27
- marginBottom: "".concat(gridSize, "px"),
25
+ // TODO Delete this comment after verifying spacing token -> previous value ``${gridSize}px``
26
+ marginBottom: "var(--ds-scale-100, 8px)",
28
27
  color: 'inherit'
29
28
  });
30
29
  var modalImageStyles = css({
@@ -38,7 +37,7 @@ var modalImageStyles = css({
38
37
  });
39
38
  var modalActionContainerStyles = css({
40
39
  display: 'flex',
41
- padding: "0 40px ".concat(40 - actionItemBottomMargin, "px"),
40
+ padding: "var(--ds-scale-0, 0px)".concat(" ", "var(--ds-scale-500, 40px)", " 36px"),
42
41
  justifyContent: 'center',
43
42
  flexDirection: 'row',
44
43
  flexFlow: 'wrap'
@@ -47,7 +46,7 @@ var modalActionContainerReversedStyles = css({
47
46
  flexDirection: 'row-reverse'
48
47
  });
49
48
  var modalActionItemStyles = css({
50
- margin: "0 ".concat(gridSize / 2, "px ").concat(actionItemBottomMargin, "px")
49
+ margin: "var(--ds-scale-0, 0px)".concat(" ", "var(--ds-scale-050, 4px)", " ", "var(--ds-scale-050, 4px)")
51
50
  });
52
51
  /**
53
52
  * __Modal body__
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/onboarding",
3
- "version": "10.6.0",
3
+ "version": "10.6.1",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/onboarding",
3
- "version": "10.6.0",
3
+ "version": "10.6.1",
4
4
  "description": "An onboarding spotlight introduces new features to users through focused messages or multi-step tours.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -15,7 +15,8 @@
15
15
  "typesVersions": {
16
16
  ">=4.0 <4.5": {
17
17
  "*": [
18
- "dist/types-ts4.0/*"
18
+ "dist/types-ts4.0/*",
19
+ "dist/types-ts4.0/index.d.ts"
19
20
  ]
20
21
  }
21
22
  },
@@ -23,6 +24,7 @@
23
24
  "atlaskit:src": "src/index.tsx",
24
25
  "homepage": "https://atlassian.design/components/onboarding/",
25
26
  "atlassian": {
27
+ "disableProductCI": true,
26
28
  "team": "Design System Team",
27
29
  "deprecatedAutoEntryPoints": true,
28
30
  "releaseModel": "scheduled",
@@ -80,6 +82,7 @@
80
82
  "@repo/internal": {
81
83
  "dom-events": "use-bind-event-listener",
82
84
  "analytics": "analytics-next",
85
+ "design-tokens": "spacing",
83
86
  "theming": "tokens",
84
87
  "styling": [
85
88
  "static",