@atlaskit/onboarding 10.8.4 → 10.8.6
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 +12 -0
- package/dist/cjs/components/spotlight-card.js +4 -2
- package/dist/cjs/components/spotlight-dialog.js +1 -1
- package/dist/cjs/styled/modal.js +4 -5
- package/dist/cjs/styled/target.js +2 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/spotlight-card.js +5 -3
- package/dist/es2019/components/spotlight-dialog.js +1 -1
- package/dist/es2019/styled/modal.js +4 -5
- package/dist/es2019/styled/target.js +2 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/spotlight-card.js +5 -3
- package/dist/esm/components/spotlight-dialog.js +1 -1
- package/dist/esm/styled/modal.js +4 -5
- package/dist/esm/styled/target.js +2 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/components/spotlight-card.d.ts +5 -2
- package/dist/types-ts4.5/components/spotlight-card.d.ts +5 -2
- package/package.json +3 -6
- package/report.api.md +1 -1
- package/tmp/api-report-tmp.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/onboarding
|
|
2
2
|
|
|
3
|
+
## 10.8.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`36e3e86da5d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/36e3e86da5d) - SpotlightCard width prop now accepts either a number or the string `'100%'` and refactors how our range of 160px – 600px works via css `min-width` and `max-width` instead of raw math.
|
|
8
|
+
|
|
9
|
+
## 10.8.5
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`599bfe90ee3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/599bfe90ee3) - Internal change to use shape tokens. There is no expected visual change.
|
|
14
|
+
|
|
3
15
|
## 10.8.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -56,7 +56,7 @@ var containerStyles = (0, _react2.css)({
|
|
|
56
56
|
height: 'fit-content',
|
|
57
57
|
zIndex: _constants.layers.spotlight() + 1,
|
|
58
58
|
background: "var(--ds-background-discovery-bold, ".concat(_colors.P300, ")"),
|
|
59
|
-
borderRadius: "
|
|
59
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
60
60
|
color: "var(--ds-text-inverse, ".concat(_colors.N0, ")"),
|
|
61
61
|
overflow: 'auto'
|
|
62
62
|
});
|
|
@@ -117,7 +117,9 @@ var SpotlightCard = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
117
117
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
118
118
|
container],
|
|
119
119
|
style: {
|
|
120
|
-
|
|
120
|
+
minWidth: '160px',
|
|
121
|
+
maxWidth: '600px',
|
|
122
|
+
width: typeof width === 'string' ? width : "".concat(width, "px")
|
|
121
123
|
},
|
|
122
124
|
ref: ref || innerRef,
|
|
123
125
|
"data-testid": testId
|
|
@@ -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/onboarding";
|
|
30
|
-
var packageVersion = "10.8.
|
|
30
|
+
var packageVersion = "10.8.6";
|
|
31
31
|
var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
32
32
|
(0, _inherits2.default)(SpotlightDialog, _Component);
|
|
33
33
|
var _super = _createSuper(SpotlightDialog);
|
package/dist/cjs/styled/modal.js
CHANGED
|
@@ -6,12 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.ModalImage = exports.ModalHeading = exports.ModalBody = exports.ModalActionItem = exports.ModalActionContainer = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _components = require("@atlaskit/theme/components");
|
|
9
|
-
var _constants = require("@atlaskit/theme/constants");
|
|
10
9
|
var _typography = require("@atlaskit/theme/typography");
|
|
11
10
|
/** @jsx jsx */
|
|
12
11
|
|
|
13
|
-
var borderRadius = (0, _constants.borderRadius)();
|
|
14
|
-
|
|
15
12
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
16
13
|
var lightH600Styles = (0, _react.css)((0, _typography.h600)({
|
|
17
14
|
theme: {
|
|
@@ -35,8 +32,10 @@ var modalHeadingStyles = (0, _react.css)({
|
|
|
35
32
|
var modalImageStyles = (0, _react.css)({
|
|
36
33
|
width: '100%',
|
|
37
34
|
height: 'auto',
|
|
38
|
-
borderTopLeftRadius: "
|
|
39
|
-
borderTopRightRadius: "
|
|
35
|
+
borderTopLeftRadius: "var(--ds-border-radius, 3px)",
|
|
36
|
+
borderTopRightRadius: "var(--ds-border-radius, 3px)",
|
|
37
|
+
// TODO: Use new breakpoints
|
|
38
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
40
39
|
'@media (min-width: 320px) and (max-width: 480px)': {
|
|
41
40
|
borderRadius: 0
|
|
42
41
|
}
|
|
@@ -82,9 +82,9 @@ var targetOverlayStyles = (0, _react.css)({
|
|
|
82
82
|
width: '100%',
|
|
83
83
|
height: '100%',
|
|
84
84
|
position: 'absolute',
|
|
85
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
85
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
86
86
|
top: 0,
|
|
87
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
87
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
88
88
|
left: 0
|
|
89
89
|
});
|
|
90
90
|
|
package/dist/cjs/version.json
CHANGED
|
@@ -5,7 +5,7 @@ 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 {
|
|
8
|
+
import { layers } from '@atlaskit/theme/constants';
|
|
9
9
|
import { DialogActionItem, DialogActionItemContainer } from '../styled/dialog';
|
|
10
10
|
import { spotlightButtonTheme } from './theme';
|
|
11
11
|
const bodyStyles = css({
|
|
@@ -42,7 +42,7 @@ const containerStyles = css({
|
|
|
42
42
|
height: 'fit-content',
|
|
43
43
|
zIndex: layers.spotlight() + 1,
|
|
44
44
|
background: `var(--ds-background-discovery-bold, ${P300})`,
|
|
45
|
-
borderRadius:
|
|
45
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
46
46
|
color: `var(--ds-text-inverse, ${N0})`,
|
|
47
47
|
overflow: 'auto'
|
|
48
48
|
});
|
|
@@ -101,7 +101,9 @@ const SpotlightCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
101
101
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
102
102
|
container],
|
|
103
103
|
style: {
|
|
104
|
-
|
|
104
|
+
minWidth: '160px',
|
|
105
|
+
maxWidth: '600px',
|
|
106
|
+
width: typeof width === 'string' ? width : `${width}px`
|
|
105
107
|
},
|
|
106
108
|
ref: ref || innerRef,
|
|
107
109
|
"data-testid": testId
|
|
@@ -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.8.
|
|
10
|
+
const packageVersion = "10.8.6";
|
|
11
11
|
class SpotlightDialog extends Component {
|
|
12
12
|
constructor(...args) {
|
|
13
13
|
super(...args);
|
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { useGlobalTheme } from '@atlaskit/theme/components';
|
|
5
|
-
import { borderRadius as getBorderRadius } from '@atlaskit/theme/constants';
|
|
6
5
|
import { h600 } from '@atlaskit/theme/typography';
|
|
7
|
-
const borderRadius = getBorderRadius();
|
|
8
|
-
|
|
9
6
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
10
7
|
const lightH600Styles = css(h600({
|
|
11
8
|
theme: {
|
|
@@ -29,8 +26,10 @@ const modalHeadingStyles = css({
|
|
|
29
26
|
const modalImageStyles = css({
|
|
30
27
|
width: '100%',
|
|
31
28
|
height: 'auto',
|
|
32
|
-
borderTopLeftRadius:
|
|
33
|
-
borderTopRightRadius:
|
|
29
|
+
borderTopLeftRadius: "var(--ds-border-radius, 3px)",
|
|
30
|
+
borderTopRightRadius: "var(--ds-border-radius, 3px)",
|
|
31
|
+
// TODO: Use new breakpoints
|
|
32
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
34
33
|
'@media (min-width: 320px) and (max-width: 480px)': {
|
|
35
34
|
borderRadius: 0
|
|
36
35
|
}
|
|
@@ -65,9 +65,9 @@ const targetOverlayStyles = css({
|
|
|
65
65
|
width: '100%',
|
|
66
66
|
height: '100%',
|
|
67
67
|
position: 'absolute',
|
|
68
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
68
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
69
69
|
top: 0,
|
|
70
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
70
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
71
71
|
left: 0
|
|
72
72
|
});
|
|
73
73
|
|
package/dist/es2019/version.json
CHANGED
|
@@ -7,7 +7,7 @@ import Button, { Theme as ButtonTheme } from '@atlaskit/button/custom-theme-butt
|
|
|
7
7
|
import Heading from '@atlaskit/heading';
|
|
8
8
|
import { N0, N50A, N60A, P300 } from '@atlaskit/theme/colors';
|
|
9
9
|
import { createTheme } from '@atlaskit/theme/components';
|
|
10
|
-
import {
|
|
10
|
+
import { layers } from '@atlaskit/theme/constants';
|
|
11
11
|
import { DialogActionItem, DialogActionItemContainer } from '../styled/dialog';
|
|
12
12
|
import { spotlightButtonTheme } from './theme';
|
|
13
13
|
var bodyStyles = css({
|
|
@@ -46,7 +46,7 @@ var containerStyles = css({
|
|
|
46
46
|
height: 'fit-content',
|
|
47
47
|
zIndex: layers.spotlight() + 1,
|
|
48
48
|
background: "var(--ds-background-discovery-bold, ".concat(P300, ")"),
|
|
49
|
-
borderRadius: "
|
|
49
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
50
50
|
color: "var(--ds-text-inverse, ".concat(N0, ")"),
|
|
51
51
|
overflow: 'auto'
|
|
52
52
|
});
|
|
@@ -107,7 +107,9 @@ var SpotlightCard = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
107
107
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
108
108
|
container],
|
|
109
109
|
style: {
|
|
110
|
-
|
|
110
|
+
minWidth: '160px',
|
|
111
|
+
maxWidth: '600px',
|
|
112
|
+
width: typeof width === 'string' ? width : "".concat(width, "px")
|
|
111
113
|
},
|
|
112
114
|
ref: ref || innerRef,
|
|
113
115
|
"data-testid": testId
|
|
@@ -17,7 +17,7 @@ import { DialogImage } from '../styled/dialog';
|
|
|
17
17
|
import SpotlightCard from './spotlight-card';
|
|
18
18
|
import ValueChanged from './value-changed';
|
|
19
19
|
var packageName = "@atlaskit/onboarding";
|
|
20
|
-
var packageVersion = "10.8.
|
|
20
|
+
var packageVersion = "10.8.6";
|
|
21
21
|
var SpotlightDialog = /*#__PURE__*/function (_Component) {
|
|
22
22
|
_inherits(SpotlightDialog, _Component);
|
|
23
23
|
var _super = _createSuper(SpotlightDialog);
|
package/dist/esm/styled/modal.js
CHANGED
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { useGlobalTheme } from '@atlaskit/theme/components';
|
|
5
|
-
import { borderRadius as getBorderRadius } from '@atlaskit/theme/constants';
|
|
6
5
|
import { h600 } from '@atlaskit/theme/typography';
|
|
7
|
-
var borderRadius = getBorderRadius();
|
|
8
|
-
|
|
9
6
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
10
7
|
var lightH600Styles = css(h600({
|
|
11
8
|
theme: {
|
|
@@ -29,8 +26,10 @@ var modalHeadingStyles = css({
|
|
|
29
26
|
var modalImageStyles = css({
|
|
30
27
|
width: '100%',
|
|
31
28
|
height: 'auto',
|
|
32
|
-
borderTopLeftRadius: "
|
|
33
|
-
borderTopRightRadius: "
|
|
29
|
+
borderTopLeftRadius: "var(--ds-border-radius, 3px)",
|
|
30
|
+
borderTopRightRadius: "var(--ds-border-radius, 3px)",
|
|
31
|
+
// TODO: Use new breakpoints
|
|
32
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
34
33
|
'@media (min-width: 320px) and (max-width: 480px)': {
|
|
35
34
|
borderRadius: 0
|
|
36
35
|
}
|
|
@@ -74,9 +74,9 @@ var targetOverlayStyles = css({
|
|
|
74
74
|
width: '100%',
|
|
75
75
|
height: '100%',
|
|
76
76
|
position: 'absolute',
|
|
77
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
77
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
78
78
|
top: 0,
|
|
79
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
79
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
80
80
|
left: 0
|
|
81
81
|
});
|
|
82
82
|
|
package/dist/esm/version.json
CHANGED
|
@@ -53,9 +53,12 @@ interface SpotlightCardProps {
|
|
|
53
53
|
*/
|
|
54
54
|
theme?: ThemeProp<CardTokens, {}>;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Specifies the width of the card component. Accepts either a number or the string '100%'.
|
|
57
|
+
* When a number is provided, the width is set in pixels. When '100%' is provided, the width
|
|
58
|
+
* is set to occupy 100% of the parent container's width. Regardless of whether `width` is set,
|
|
59
|
+
* the width is constrained to a minimum width of 160px and a maximum width of 600px.
|
|
57
60
|
*/
|
|
58
|
-
width?: number;
|
|
61
|
+
width?: number | '100%';
|
|
59
62
|
/**
|
|
60
63
|
* @deprecated
|
|
61
64
|
* Use `ref` instead.
|
|
@@ -53,9 +53,12 @@ interface SpotlightCardProps {
|
|
|
53
53
|
*/
|
|
54
54
|
theme?: ThemeProp<CardTokens, {}>;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Specifies the width of the card component. Accepts either a number or the string '100%'.
|
|
57
|
+
* When a number is provided, the width is set in pixels. When '100%' is provided, the width
|
|
58
|
+
* is set to occupy 100% of the parent container's width. Regardless of whether `width` is set,
|
|
59
|
+
* the width is constrained to a minimum width of 160px and a maximum width of 600px.
|
|
57
60
|
*/
|
|
58
|
-
width?: number;
|
|
61
|
+
width?: number | '100%';
|
|
59
62
|
/**
|
|
60
63
|
* @deprecated
|
|
61
64
|
* Use `ref` instead.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/onboarding",
|
|
3
|
-
"version": "10.8.
|
|
3
|
+
"version": "10.8.6",
|
|
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/"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@atlaskit/popper": "^5.5.0",
|
|
42
42
|
"@atlaskit/portal": "^4.3.0",
|
|
43
43
|
"@atlaskit/theme": "^12.5.0",
|
|
44
|
-
"@atlaskit/tokens": "^1.
|
|
44
|
+
"@atlaskit/tokens": "^1.14.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
46
46
|
"@emotion/react": "^11.7.1",
|
|
47
47
|
"bind-event-listener": "^2.1.1",
|
|
@@ -58,10 +58,7 @@
|
|
|
58
58
|
"react-dom": "^16.8.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@
|
|
62
|
-
"@atlaskit/docs": "*",
|
|
63
|
-
"@atlaskit/icon": "^21.12.0",
|
|
64
|
-
"@atlaskit/progress-indicator": "^9.5.0",
|
|
61
|
+
"@af/accessibility-testing": "*",
|
|
65
62
|
"@atlaskit/ssr": "*",
|
|
66
63
|
"@atlaskit/visual-regression": "*",
|
|
67
64
|
"@atlaskit/webdriver-runner": "*",
|
package/report.api.md
CHANGED