@atlaskit/empty-state 7.12.3 → 8.0.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 +18 -0
- package/dist/cjs/empty-state.js +5 -0
- package/dist/cjs/styled/actions-container.compiled.css +5 -0
- package/dist/cjs/styled/actions-container.js +10 -17
- package/dist/cjs/styled/container.compiled.css +4 -0
- package/dist/cjs/styled/container.js +15 -31
- package/dist/cjs/styled/description.compiled.css +3 -0
- package/dist/cjs/styled/description.js +13 -15
- package/dist/cjs/styled/header.compiled.css +8 -0
- package/dist/cjs/styled/header.js +13 -18
- package/dist/cjs/styled/image.compiled.css +4 -0
- package/dist/cjs/styled/image.js +19 -21
- package/dist/cjs/styled/spinner-container.compiled.css +2 -0
- package/dist/cjs/styled/spinner-container.js +10 -14
- package/dist/es2019/empty-state.js +4 -0
- package/dist/es2019/styled/actions-container.compiled.css +5 -0
- package/dist/es2019/styled/actions-container.js +7 -16
- package/dist/es2019/styled/container.compiled.css +4 -0
- package/dist/es2019/styled/container.js +9 -30
- package/dist/es2019/styled/description.compiled.css +3 -0
- package/dist/es2019/styled/description.js +7 -14
- package/dist/es2019/styled/header.compiled.css +8 -0
- package/dist/es2019/styled/header.js +7 -17
- package/dist/es2019/styled/image.compiled.css +4 -0
- package/dist/es2019/styled/image.js +8 -17
- package/dist/es2019/styled/spinner-container.compiled.css +2 -0
- package/dist/es2019/styled/spinner-container.js +7 -13
- package/dist/esm/empty-state.js +4 -0
- package/dist/esm/styled/actions-container.compiled.css +5 -0
- package/dist/esm/styled/actions-container.js +7 -16
- package/dist/esm/styled/container.compiled.css +4 -0
- package/dist/esm/styled/container.js +12 -30
- package/dist/esm/styled/description.compiled.css +3 -0
- package/dist/esm/styled/description.js +10 -14
- package/dist/esm/styled/header.compiled.css +8 -0
- package/dist/esm/styled/header.js +10 -17
- package/dist/esm/styled/image.compiled.css +4 -0
- package/dist/esm/styled/image.js +16 -20
- package/dist/esm/styled/spinner-container.compiled.css +2 -0
- package/dist/esm/styled/spinner-container.js +7 -13
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/empty-state
|
|
2
2
|
|
|
3
|
+
## 8.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#162676](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/162676)
|
|
8
|
+
[`6dd54dec02a69`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6dd54dec02a69) -
|
|
9
|
+
Migrated from `@emotion/react` to `@compiled/react` in order to improve performance, align with
|
|
10
|
+
the rest of the Atlaskit techstack, and support React 18 Streaming SSR.
|
|
11
|
+
|
|
12
|
+
Please note, in order to use this version of `@atlaskit/empty-state`, you will need to ensure that
|
|
13
|
+
your bundler is configured to handle `.css` imports correctly. Most bundlers come with built-in
|
|
14
|
+
support for `.css` imports, so you may not need to do anything. If you are using a different
|
|
15
|
+
bundler, please refer to the documentation for that bundler to understand how to handle `.css`
|
|
16
|
+
imports.
|
|
17
|
+
|
|
18
|
+
For more information on the migration, please refer to
|
|
19
|
+
[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).
|
|
20
|
+
|
|
3
21
|
## 7.12.3
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/cjs/empty-state.js
CHANGED
|
@@ -11,6 +11,11 @@ var _heading = _interopRequireDefault(require("@atlaskit/heading"));
|
|
|
11
11
|
var _primitives = require("@atlaskit/primitives");
|
|
12
12
|
var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
|
|
13
13
|
var _styled = require("./styled");
|
|
14
|
+
/**
|
|
15
|
+
* TODO - https://product-fabric.atlassian.net/browse/DSP-21565
|
|
16
|
+
* Will be moved to @atlaskit/primitives/compiled, VRs will be updated.
|
|
17
|
+
*/
|
|
18
|
+
|
|
14
19
|
/**
|
|
15
20
|
* __Empty state__
|
|
16
21
|
*
|
|
@@ -1,24 +1,17 @@
|
|
|
1
|
+
/* actions-container.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
-
|
|
15
|
-
var actionsStyles = (0, _react.css)({
|
|
16
|
-
display: 'flex',
|
|
17
|
-
alignItems: 'center',
|
|
18
|
-
justifyContent: 'center',
|
|
19
|
-
marginBlockEnd: "var(--ds-space-100, 8px)",
|
|
20
|
-
paddingInlineStart: "var(--ds-space-500, 40px)"
|
|
21
|
-
});
|
|
9
|
+
require("./actions-container.compiled.css");
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _runtime = require("@compiled/react/runtime");
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
+
var actionsStyles = null;
|
|
22
15
|
|
|
23
16
|
/**
|
|
24
17
|
* __Actions container__
|
|
@@ -29,8 +22,8 @@ var actionsStyles = (0, _react.css)({
|
|
|
29
22
|
*/
|
|
30
23
|
var ActionsContainer = function ActionsContainer(_ref) {
|
|
31
24
|
var children = _ref.children;
|
|
32
|
-
return
|
|
33
|
-
|
|
25
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
26
|
+
className: (0, _runtime.ax)(["_1e0c1txw _4cvr1h6o _1bah1h6o _6rthu2gc _bozg1jfw"])
|
|
34
27
|
}, children);
|
|
35
28
|
};
|
|
36
29
|
var _default = exports.default = ActionsContainer;
|
|
@@ -1,39 +1,20 @@
|
|
|
1
|
+
/* container.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
-
|
|
16
|
-
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
17
|
-
|
|
18
|
-
var gridSize = (0, _constants.gridSize)();
|
|
19
|
-
var verticalMarginSize = "var(--ds-space-600, 48px)";
|
|
20
|
-
var columnWidth = gridSize * 8;
|
|
21
|
-
var gutter = gridSize * 2;
|
|
22
|
-
var containerStyles = (0, _react.css)({
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
24
|
-
margin: "".concat(verticalMarginSize, " auto"),
|
|
25
|
-
textAlign: 'center'
|
|
26
|
-
});
|
|
27
|
-
|
|
9
|
+
require("./container.compiled.css");
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _runtime = require("@compiled/react/runtime");
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
+
var containerStyles = null;
|
|
28
15
|
/* Use max-width so the component can shrink on smaller viewports. */
|
|
29
|
-
var wideContainerStyles =
|
|
30
|
-
|
|
31
|
-
maxWidth: "".concat(columnWidth * 6 + gutter * 5, "px")
|
|
32
|
-
});
|
|
33
|
-
var narrowContainerStyles = (0, _react.css)({
|
|
34
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
35
|
-
maxWidth: "".concat(columnWidth * 4 + gutter * 3, "px")
|
|
36
|
-
});
|
|
16
|
+
var wideContainerStyles = null;
|
|
17
|
+
var narrowContainerStyles = null;
|
|
37
18
|
/**
|
|
38
19
|
* __Container__
|
|
39
20
|
*
|
|
@@ -45,9 +26,12 @@ var Container = function Container(_ref) {
|
|
|
45
26
|
var children = _ref.children,
|
|
46
27
|
width = _ref.width,
|
|
47
28
|
testId = _ref.testId;
|
|
48
|
-
return
|
|
29
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
49
30
|
"data-testid": testId,
|
|
50
|
-
|
|
31
|
+
className: (0, _runtime.ax)(["_18s81efg _y3gn1h6o", width === 'narrow' ? "_p12fko4j" : "_p12f1pl1"]),
|
|
32
|
+
style: {
|
|
33
|
+
"--_129ypg0": (0, _runtime.ix)("var(--ds-space-600, 48px)".concat(" auto"))
|
|
34
|
+
}
|
|
51
35
|
}, children);
|
|
52
36
|
};
|
|
53
37
|
var _default = exports.default = Container;
|
|
@@ -1,23 +1,18 @@
|
|
|
1
|
+
/* description.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.default = void 0;
|
|
7
|
-
|
|
9
|
+
require("./description.compiled.css");
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _runtime = require("@compiled/react/runtime");
|
|
8
12
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
-
|
|
16
|
-
var descriptionStyles = (0, _react.css)({
|
|
17
|
-
color: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
18
|
-
marginBlockEnd: "var(--ds-space-300, 24px)",
|
|
19
|
-
marginBlockStart: "var(--ds-space-0, 0px)"
|
|
20
|
-
});
|
|
13
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
14
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
|
+
var descriptionStyles = null;
|
|
21
16
|
|
|
22
17
|
/**
|
|
23
18
|
* __Description__
|
|
@@ -28,8 +23,11 @@ var descriptionStyles = (0, _react.css)({
|
|
|
28
23
|
*/
|
|
29
24
|
var Description = function Description(_ref) {
|
|
30
25
|
var children = _ref.children;
|
|
31
|
-
return
|
|
32
|
-
|
|
26
|
+
return /*#__PURE__*/React.createElement("p", {
|
|
27
|
+
className: (0, _runtime.ax)(["_syaz1o8f _6rth1ejb _1pfhze3t"]),
|
|
28
|
+
style: {
|
|
29
|
+
"--_ggxzyp": (0, _runtime.ix)("var(--ds-text, ".concat(_colors.N800, ")"))
|
|
30
|
+
}
|
|
33
31
|
}, children);
|
|
34
32
|
};
|
|
35
33
|
var _default = exports.default = Description;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
._1dyzvkfx{letter-spacing:-.008em}
|
|
2
|
+
._1pfhze3t{margin-block-start:var(--ds-space-0,0)}
|
|
3
|
+
._1wyb6pmy{font-size:var(--_1tbkb5d)}
|
|
4
|
+
._6rthpxbi{margin-block-end:var(--ds-space-200,1pc)}
|
|
5
|
+
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
6
|
+
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
7
|
+
._vwz4cjiy{line-height:1.2}
|
|
8
|
+
._zg8l1kw7{font-style:inherit}
|
|
@@ -1,25 +1,17 @@
|
|
|
1
|
+
/* header.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
-
|
|
16
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-array-arguments -- Ignored via go/DSP-18766
|
|
17
|
-
var headerStyles = (0, _react.css)([
|
|
18
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
|
-
(0, _typography.h600)(), {
|
|
20
|
-
marginTop: "var(--ds-space-0, 0px)",
|
|
21
|
-
marginBottom: "var(--ds-space-200, 16px)"
|
|
22
|
-
}]);
|
|
9
|
+
require("./header.compiled.css");
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _runtime = require("@compiled/react/runtime");
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
+
var headerStyles = null;
|
|
23
15
|
|
|
24
16
|
/**
|
|
25
17
|
* __Header__
|
|
@@ -33,8 +25,11 @@ var EmptyStateHeader = function EmptyStateHeader(_ref) {
|
|
|
33
25
|
_ref$level = _ref.level,
|
|
34
26
|
level = _ref$level === void 0 ? 4 : _ref$level;
|
|
35
27
|
var Tag = "h".concat(level > 0 && level < 7 ? level : level > 6 ? 6 : 4);
|
|
36
|
-
return
|
|
37
|
-
|
|
28
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
29
|
+
className: (0, _runtime.ax)(["_syaz1fxt _1wyb6pmy _zg8l1kw7 _k48p1wq8 _1dyzvkfx _vwz4cjiy _6rthpxbi _1pfhze3t"]),
|
|
30
|
+
style: {
|
|
31
|
+
"--_1tbkb5d": (0, _runtime.ix)("".concat(20 / 14, "em"))
|
|
32
|
+
}
|
|
38
33
|
}, children);
|
|
39
34
|
};
|
|
40
35
|
var _default = exports.default = EmptyStateHeader;
|
package/dist/cjs/styled/image.js
CHANGED
|
@@ -1,28 +1,23 @@
|
|
|
1
|
+
/* image.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
5
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
6
|
Object.defineProperty(exports, "__esModule", {
|
|
5
7
|
value: true
|
|
6
8
|
});
|
|
7
9
|
exports.default = void 0;
|
|
10
|
+
require("./image.compiled.css");
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _runtime = require("@compiled/react/runtime");
|
|
8
13
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
|
-
|
|
14
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
+
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; }
|
|
17
|
+
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; }
|
|
17
18
|
var CSS_VAR_MAX_WIDTH = '--max-width';
|
|
18
19
|
var CSS_VAR_MAX_HEIGHT = '--max-height';
|
|
19
|
-
var imageStyles =
|
|
20
|
-
display: 'block',
|
|
21
|
-
maxWidth: "var(".concat(CSS_VAR_MAX_WIDTH, ")"),
|
|
22
|
-
maxHeight: "var(".concat(CSS_VAR_MAX_HEIGHT, ")"),
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
24
|
-
margin: "0 auto ".concat("var(--ds-space-300, 24px)")
|
|
25
|
-
});
|
|
20
|
+
var imageStyles = null;
|
|
26
21
|
|
|
27
22
|
/**
|
|
28
23
|
* __Image__
|
|
@@ -32,7 +27,7 @@ var imageStyles = (0, _react.css)({
|
|
|
32
27
|
* @internal
|
|
33
28
|
*/
|
|
34
29
|
var Image = function Image(_ref) {
|
|
35
|
-
var
|
|
30
|
+
var _objectSpread2;
|
|
36
31
|
var maxHeight = _ref.maxHeight,
|
|
37
32
|
maxWidth = _ref.maxWidth,
|
|
38
33
|
_ref$height = _ref.height,
|
|
@@ -40,15 +35,18 @@ var Image = function Image(_ref) {
|
|
|
40
35
|
_ref$width = _ref.width,
|
|
41
36
|
width = _ref$width === void 0 ? 'auto' : _ref$width,
|
|
42
37
|
src = _ref.src;
|
|
43
|
-
return
|
|
44
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
45
|
-
style: (_ref2 = {}, (0, _defineProperty2.default)(_ref2, CSS_VAR_MAX_WIDTH, "".concat(maxWidth, "px")), (0, _defineProperty2.default)(_ref2, CSS_VAR_MAX_HEIGHT, "".concat(maxHeight, "px")), _ref2),
|
|
38
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
46
39
|
width: width,
|
|
47
40
|
height: height,
|
|
48
41
|
alt: "",
|
|
49
42
|
role: "presentation",
|
|
50
|
-
|
|
51
|
-
|
|
43
|
+
src: src,
|
|
44
|
+
className: (0, _runtime.ax)(["_1e0c1ule _p12f163m _c71l649k _18s81t55"]),
|
|
45
|
+
style: _objectSpread(_objectSpread({}, (_objectSpread2 = {}, (0, _defineProperty2.default)(_objectSpread2, CSS_VAR_MAX_WIDTH, "".concat(maxWidth, "px")), (0, _defineProperty2.default)(_objectSpread2, CSS_VAR_MAX_HEIGHT, "".concat(maxHeight, "px")), _objectSpread2)), {}, {
|
|
46
|
+
"--_11x3y0": (0, _runtime.ix)("var(".concat(CSS_VAR_MAX_WIDTH, ")")),
|
|
47
|
+
"--_zsxb2b": (0, _runtime.ix)("var(".concat(CSS_VAR_MAX_HEIGHT, ")")),
|
|
48
|
+
"--_a0hk7v": (0, _runtime.ix)("0 auto ".concat("var(--ds-space-300, 24px)"))
|
|
49
|
+
})
|
|
52
50
|
});
|
|
53
51
|
};
|
|
54
52
|
var _default = exports.default = Image;
|
|
@@ -1,21 +1,17 @@
|
|
|
1
|
+
/* spinner-container.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
1
2
|
"use strict";
|
|
2
3
|
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
14
|
-
|
|
15
|
-
var spinnerContainerStyles = (0, _react.css)({
|
|
16
|
-
width: "var(--ds-space-300, 24px)",
|
|
17
|
-
marginInlineStart: "var(--ds-space-200, 16px)"
|
|
18
|
-
});
|
|
9
|
+
require("./spinner-container.compiled.css");
|
|
10
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _runtime = require("@compiled/react/runtime");
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
|
+
var spinnerContainerStyles = null;
|
|
19
15
|
|
|
20
16
|
/**
|
|
21
17
|
* __Spinner container__
|
|
@@ -26,8 +22,8 @@ var spinnerContainerStyles = (0, _react.css)({
|
|
|
26
22
|
*/
|
|
27
23
|
var SpinnerContainer = function SpinnerContainer(_ref) {
|
|
28
24
|
var children = _ref.children;
|
|
29
|
-
return
|
|
30
|
-
|
|
25
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
26
|
+
className: (0, _runtime.ax)(["_1bsb1ejb _ahbqpxbi"])
|
|
31
27
|
}, children);
|
|
32
28
|
};
|
|
33
29
|
var _default = exports.default = SpinnerContainer;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
3
3
|
import Heading from '@atlaskit/heading';
|
|
4
|
+
/**
|
|
5
|
+
* TODO - https://product-fabric.atlassian.net/browse/DSP-21565
|
|
6
|
+
* Will be moved to @atlaskit/primitives/compiled, VRs will be updated.
|
|
7
|
+
*/
|
|
4
8
|
import { Box, Text } from '@atlaskit/primitives';
|
|
5
9
|
import Spinner from '@atlaskit/spinner';
|
|
6
10
|
import { ActionsContainer, Container, Image as HeaderImage, SpinnerContainer } from './styled';
|
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
-
import { css, jsx } from '@emotion/react';
|
|
8
|
-
const actionsStyles = css({
|
|
9
|
-
display: 'flex',
|
|
10
|
-
alignItems: 'center',
|
|
11
|
-
justifyContent: 'center',
|
|
12
|
-
marginBlockEnd: "var(--ds-space-100, 8px)",
|
|
13
|
-
paddingInlineStart: "var(--ds-space-500, 40px)"
|
|
14
|
-
});
|
|
1
|
+
/* actions-container.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
2
|
+
import "./actions-container.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
const actionsStyles = null;
|
|
15
6
|
|
|
16
7
|
/**
|
|
17
8
|
* __Actions container__
|
|
@@ -22,7 +13,7 @@ const actionsStyles = css({
|
|
|
22
13
|
*/
|
|
23
14
|
const ActionsContainer = ({
|
|
24
15
|
children
|
|
25
|
-
}) =>
|
|
26
|
-
|
|
16
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
className: ax(["_1e0c1txw _4cvr1h6o _1bah1h6o _6rthu2gc _bozg1jfw"])
|
|
27
18
|
}, children);
|
|
28
19
|
export default ActionsContainer;
|
|
@@ -1,32 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
-
import { css, jsx } from '@emotion/react';
|
|
8
|
-
|
|
9
|
-
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
10
|
-
import { gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
11
|
-
const gridSize = getGridSize();
|
|
12
|
-
const verticalMarginSize = "var(--ds-space-600, 48px)";
|
|
13
|
-
const columnWidth = gridSize * 8;
|
|
14
|
-
const gutter = gridSize * 2;
|
|
15
|
-
const containerStyles = css({
|
|
16
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
17
|
-
margin: `${verticalMarginSize} auto`,
|
|
18
|
-
textAlign: 'center'
|
|
19
|
-
});
|
|
20
|
-
|
|
1
|
+
/* container.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
2
|
+
import "./container.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
const containerStyles = null;
|
|
21
6
|
/* Use max-width so the component can shrink on smaller viewports. */
|
|
22
|
-
const wideContainerStyles =
|
|
23
|
-
|
|
24
|
-
maxWidth: `${columnWidth * 6 + gutter * 5}px`
|
|
25
|
-
});
|
|
26
|
-
const narrowContainerStyles = css({
|
|
27
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
|
-
maxWidth: `${columnWidth * 4 + gutter * 3}px`
|
|
29
|
-
});
|
|
7
|
+
const wideContainerStyles = null;
|
|
8
|
+
const narrowContainerStyles = null;
|
|
30
9
|
/**
|
|
31
10
|
* __Container__
|
|
32
11
|
*
|
|
@@ -38,8 +17,8 @@ const Container = ({
|
|
|
38
17
|
children,
|
|
39
18
|
width,
|
|
40
19
|
testId
|
|
41
|
-
}) =>
|
|
20
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
42
21
|
"data-testid": testId,
|
|
43
|
-
|
|
22
|
+
className: ax(["_18s81h9n _y3gn1h6o", width === 'narrow' ? "_p12fko4j" : "_p12f1pl1"])
|
|
44
23
|
}, children);
|
|
45
24
|
export default Container;
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
-
import { css, jsx } from '@emotion/react';
|
|
1
|
+
/* description.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
2
|
+
import "./description.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
8
5
|
import { N800 } from '@atlaskit/theme/colors';
|
|
9
|
-
const descriptionStyles =
|
|
10
|
-
color: `var(--ds-text, ${N800})`,
|
|
11
|
-
marginBlockEnd: "var(--ds-space-300, 24px)",
|
|
12
|
-
marginBlockStart: "var(--ds-space-0, 0px)"
|
|
13
|
-
});
|
|
6
|
+
const descriptionStyles = null;
|
|
14
7
|
|
|
15
8
|
/**
|
|
16
9
|
* __Description__
|
|
@@ -21,7 +14,7 @@ const descriptionStyles = css({
|
|
|
21
14
|
*/
|
|
22
15
|
const Description = ({
|
|
23
16
|
children
|
|
24
|
-
}) =>
|
|
25
|
-
|
|
17
|
+
}) => /*#__PURE__*/React.createElement("p", {
|
|
18
|
+
className: ax(["_syaz1fxt _6rth1ejb _1pfhze3t"])
|
|
26
19
|
}, children);
|
|
27
20
|
export default Description;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
._1dyzvkfx{letter-spacing:-.008em}
|
|
2
|
+
._1pfhze3t{margin-block-start:var(--ds-space-0,0)}
|
|
3
|
+
._1wyb1yan{font-size:1.4285714285714286em}
|
|
4
|
+
._6rthpxbi{margin-block-end:var(--ds-space-200,1pc)}
|
|
5
|
+
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
6
|
+
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
7
|
+
._vwz4cjiy{line-height:1.2}
|
|
8
|
+
._zg8l1kw7{font-style:inherit}
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
-
import { css, jsx } from '@emotion/react';
|
|
8
|
-
import { h600 } from '@atlaskit/theme/typography';
|
|
9
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-array-arguments -- Ignored via go/DSP-18766
|
|
10
|
-
const headerStyles = css([
|
|
11
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
12
|
-
h600(), {
|
|
13
|
-
marginTop: "var(--ds-space-0, 0px)",
|
|
14
|
-
marginBottom: "var(--ds-space-200, 16px)"
|
|
15
|
-
}]);
|
|
1
|
+
/* header.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
2
|
+
import "./header.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
const headerStyles = null;
|
|
16
6
|
|
|
17
7
|
/**
|
|
18
8
|
* __Header__
|
|
@@ -26,8 +16,8 @@ const EmptyStateHeader = ({
|
|
|
26
16
|
level = 4
|
|
27
17
|
}) => {
|
|
28
18
|
const Tag = `h${level > 0 && level < 7 ? level : level > 6 ? 6 : 4}`;
|
|
29
|
-
return
|
|
30
|
-
|
|
19
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
20
|
+
className: ax(["_syaz1fxt _1wyb1yan _zg8l1kw7 _k48p1wq8 _1dyzvkfx _vwz4cjiy _6rthpxbi _1pfhze3t"])
|
|
31
21
|
}, children);
|
|
32
22
|
};
|
|
33
23
|
export default EmptyStateHeader;
|
|
@@ -1,19 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
-
import { css, jsx } from '@emotion/react';
|
|
1
|
+
/* image.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
2
|
+
import "./image.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
8
5
|
const CSS_VAR_MAX_WIDTH = '--max-width';
|
|
9
6
|
const CSS_VAR_MAX_HEIGHT = '--max-height';
|
|
10
|
-
const imageStyles =
|
|
11
|
-
display: 'block',
|
|
12
|
-
maxWidth: `var(${CSS_VAR_MAX_WIDTH})`,
|
|
13
|
-
maxHeight: `var(${CSS_VAR_MAX_HEIGHT})`,
|
|
14
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
15
|
-
margin: `0 auto ${"var(--ds-space-300, 24px)"}`
|
|
16
|
-
});
|
|
7
|
+
const imageStyles = null;
|
|
17
8
|
|
|
18
9
|
/**
|
|
19
10
|
* __Image__
|
|
@@ -28,7 +19,7 @@ const Image = ({
|
|
|
28
19
|
height = 'auto',
|
|
29
20
|
width = 'auto',
|
|
30
21
|
src
|
|
31
|
-
}) =>
|
|
22
|
+
}) => /*#__PURE__*/React.createElement("img", {
|
|
32
23
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
33
24
|
style: {
|
|
34
25
|
[CSS_VAR_MAX_WIDTH]: `${maxWidth}px`,
|
|
@@ -38,7 +29,7 @@ const Image = ({
|
|
|
38
29
|
height: height,
|
|
39
30
|
alt: "",
|
|
40
31
|
role: "presentation",
|
|
41
|
-
|
|
42
|
-
|
|
32
|
+
src: src,
|
|
33
|
+
className: ax(["_1e0c1ule _p12fnzqo _c71l8wry _18s81ixx"])
|
|
43
34
|
});
|
|
44
35
|
export default Image;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
-
import { css, jsx } from '@emotion/react';
|
|
8
|
-
const spinnerContainerStyles = css({
|
|
9
|
-
width: "var(--ds-space-300, 24px)",
|
|
10
|
-
marginInlineStart: "var(--ds-space-200, 16px)"
|
|
11
|
-
});
|
|
1
|
+
/* spinner-container.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
2
|
+
import "./spinner-container.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
const spinnerContainerStyles = null;
|
|
12
6
|
|
|
13
7
|
/**
|
|
14
8
|
* __Spinner container__
|
|
@@ -19,7 +13,7 @@ const spinnerContainerStyles = css({
|
|
|
19
13
|
*/
|
|
20
14
|
const SpinnerContainer = ({
|
|
21
15
|
children
|
|
22
|
-
}) =>
|
|
23
|
-
|
|
16
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
className: ax(["_1bsb1ejb _ahbqpxbi"])
|
|
24
18
|
}, children);
|
|
25
19
|
export default SpinnerContainer;
|
package/dist/esm/empty-state.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
3
3
|
import Heading from '@atlaskit/heading';
|
|
4
|
+
/**
|
|
5
|
+
* TODO - https://product-fabric.atlassian.net/browse/DSP-21565
|
|
6
|
+
* Will be moved to @atlaskit/primitives/compiled, VRs will be updated.
|
|
7
|
+
*/
|
|
4
8
|
import { Box, Text } from '@atlaskit/primitives';
|
|
5
9
|
import Spinner from '@atlaskit/spinner';
|
|
6
10
|
import { ActionsContainer, Container, Image as HeaderImage, SpinnerContainer } from './styled';
|
|
@@ -1,17 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
-
import { css, jsx } from '@emotion/react';
|
|
8
|
-
var actionsStyles = css({
|
|
9
|
-
display: 'flex',
|
|
10
|
-
alignItems: 'center',
|
|
11
|
-
justifyContent: 'center',
|
|
12
|
-
marginBlockEnd: "var(--ds-space-100, 8px)",
|
|
13
|
-
paddingInlineStart: "var(--ds-space-500, 40px)"
|
|
14
|
-
});
|
|
1
|
+
/* actions-container.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
2
|
+
import "./actions-container.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
var actionsStyles = null;
|
|
15
6
|
|
|
16
7
|
/**
|
|
17
8
|
* __Actions container__
|
|
@@ -22,8 +13,8 @@ var actionsStyles = css({
|
|
|
22
13
|
*/
|
|
23
14
|
var ActionsContainer = function ActionsContainer(_ref) {
|
|
24
15
|
var children = _ref.children;
|
|
25
|
-
return
|
|
26
|
-
|
|
16
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
className: ax(["_1e0c1txw _4cvr1h6o _1bah1h6o _6rthu2gc _bozg1jfw"])
|
|
27
18
|
}, children);
|
|
28
19
|
};
|
|
29
20
|
export default ActionsContainer;
|
|
@@ -1,32 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
-
import { css, jsx } from '@emotion/react';
|
|
8
|
-
|
|
9
|
-
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
10
|
-
import { gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
11
|
-
var gridSize = getGridSize();
|
|
12
|
-
var verticalMarginSize = "var(--ds-space-600, 48px)";
|
|
13
|
-
var columnWidth = gridSize * 8;
|
|
14
|
-
var gutter = gridSize * 2;
|
|
15
|
-
var containerStyles = css({
|
|
16
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
17
|
-
margin: "".concat(verticalMarginSize, " auto"),
|
|
18
|
-
textAlign: 'center'
|
|
19
|
-
});
|
|
20
|
-
|
|
1
|
+
/* container.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
2
|
+
import "./container.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
var containerStyles = null;
|
|
21
6
|
/* Use max-width so the component can shrink on smaller viewports. */
|
|
22
|
-
var wideContainerStyles =
|
|
23
|
-
|
|
24
|
-
maxWidth: "".concat(columnWidth * 6 + gutter * 5, "px")
|
|
25
|
-
});
|
|
26
|
-
var narrowContainerStyles = css({
|
|
27
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
|
-
maxWidth: "".concat(columnWidth * 4 + gutter * 3, "px")
|
|
29
|
-
});
|
|
7
|
+
var wideContainerStyles = null;
|
|
8
|
+
var narrowContainerStyles = null;
|
|
30
9
|
/**
|
|
31
10
|
* __Container__
|
|
32
11
|
*
|
|
@@ -38,9 +17,12 @@ var Container = function Container(_ref) {
|
|
|
38
17
|
var children = _ref.children,
|
|
39
18
|
width = _ref.width,
|
|
40
19
|
testId = _ref.testId;
|
|
41
|
-
return
|
|
20
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
42
21
|
"data-testid": testId,
|
|
43
|
-
|
|
22
|
+
className: ax(["_18s81efg _y3gn1h6o", width === 'narrow' ? "_p12fko4j" : "_p12f1pl1"]),
|
|
23
|
+
style: {
|
|
24
|
+
"--_129ypg0": ix("var(--ds-space-600, 48px)".concat(" auto"))
|
|
25
|
+
}
|
|
44
26
|
}, children);
|
|
45
27
|
};
|
|
46
28
|
export default Container;
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
-
import { css, jsx } from '@emotion/react';
|
|
1
|
+
/* description.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
2
|
+
import "./description.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
8
5
|
import { N800 } from '@atlaskit/theme/colors';
|
|
9
|
-
var descriptionStyles =
|
|
10
|
-
color: "var(--ds-text, ".concat(N800, ")"),
|
|
11
|
-
marginBlockEnd: "var(--ds-space-300, 24px)",
|
|
12
|
-
marginBlockStart: "var(--ds-space-0, 0px)"
|
|
13
|
-
});
|
|
6
|
+
var descriptionStyles = null;
|
|
14
7
|
|
|
15
8
|
/**
|
|
16
9
|
* __Description__
|
|
@@ -21,8 +14,11 @@ var descriptionStyles = css({
|
|
|
21
14
|
*/
|
|
22
15
|
var Description = function Description(_ref) {
|
|
23
16
|
var children = _ref.children;
|
|
24
|
-
return
|
|
25
|
-
|
|
17
|
+
return /*#__PURE__*/React.createElement("p", {
|
|
18
|
+
className: ax(["_syaz1o8f _6rth1ejb _1pfhze3t"]),
|
|
19
|
+
style: {
|
|
20
|
+
"--_ggxzyp": ix("var(--ds-text, ".concat(N800, ")"))
|
|
21
|
+
}
|
|
26
22
|
}, children);
|
|
27
23
|
};
|
|
28
24
|
export default Description;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
._1dyzvkfx{letter-spacing:-.008em}
|
|
2
|
+
._1pfhze3t{margin-block-start:var(--ds-space-0,0)}
|
|
3
|
+
._1wyb6pmy{font-size:var(--_1tbkb5d)}
|
|
4
|
+
._6rthpxbi{margin-block-end:var(--ds-space-200,1pc)}
|
|
5
|
+
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
6
|
+
._syaz1fxt{color:var(--ds-text,#172b4d)}
|
|
7
|
+
._vwz4cjiy{line-height:1.2}
|
|
8
|
+
._zg8l1kw7{font-style:inherit}
|
|
@@ -1,18 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
-
import { css, jsx } from '@emotion/react';
|
|
8
|
-
import { h600 } from '@atlaskit/theme/typography';
|
|
9
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-array-arguments -- Ignored via go/DSP-18766
|
|
10
|
-
var headerStyles = css([
|
|
11
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
12
|
-
h600(), {
|
|
13
|
-
marginTop: "var(--ds-space-0, 0px)",
|
|
14
|
-
marginBottom: "var(--ds-space-200, 16px)"
|
|
15
|
-
}]);
|
|
1
|
+
/* header.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
2
|
+
import "./header.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
var headerStyles = null;
|
|
16
6
|
|
|
17
7
|
/**
|
|
18
8
|
* __Header__
|
|
@@ -26,8 +16,11 @@ var EmptyStateHeader = function EmptyStateHeader(_ref) {
|
|
|
26
16
|
_ref$level = _ref.level,
|
|
27
17
|
level = _ref$level === void 0 ? 4 : _ref$level;
|
|
28
18
|
var Tag = "h".concat(level > 0 && level < 7 ? level : level > 6 ? 6 : 4);
|
|
29
|
-
return
|
|
30
|
-
|
|
19
|
+
return /*#__PURE__*/React.createElement(Tag, {
|
|
20
|
+
className: ax(["_syaz1fxt _1wyb6pmy _zg8l1kw7 _k48p1wq8 _1dyzvkfx _vwz4cjiy _6rthpxbi _1pfhze3t"]),
|
|
21
|
+
style: {
|
|
22
|
+
"--_1tbkb5d": ix("".concat(20 / 14, "em"))
|
|
23
|
+
}
|
|
31
24
|
}, children);
|
|
32
25
|
};
|
|
33
26
|
export default EmptyStateHeader;
|
package/dist/esm/styled/image.js
CHANGED
|
@@ -1,20 +1,13 @@
|
|
|
1
|
+
/* image.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
1
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
|
-
import { css, jsx } from '@emotion/react';
|
|
3
|
+
import "./image.compiled.css";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
6
|
+
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; }
|
|
7
|
+
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) { _defineProperty(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; }
|
|
9
8
|
var CSS_VAR_MAX_WIDTH = '--max-width';
|
|
10
9
|
var CSS_VAR_MAX_HEIGHT = '--max-height';
|
|
11
|
-
var imageStyles =
|
|
12
|
-
display: 'block',
|
|
13
|
-
maxWidth: "var(".concat(CSS_VAR_MAX_WIDTH, ")"),
|
|
14
|
-
maxHeight: "var(".concat(CSS_VAR_MAX_HEIGHT, ")"),
|
|
15
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
16
|
-
margin: "0 auto ".concat("var(--ds-space-300, 24px)")
|
|
17
|
-
});
|
|
10
|
+
var imageStyles = null;
|
|
18
11
|
|
|
19
12
|
/**
|
|
20
13
|
* __Image__
|
|
@@ -24,7 +17,7 @@ var imageStyles = css({
|
|
|
24
17
|
* @internal
|
|
25
18
|
*/
|
|
26
19
|
var Image = function Image(_ref) {
|
|
27
|
-
var
|
|
20
|
+
var _objectSpread2;
|
|
28
21
|
var maxHeight = _ref.maxHeight,
|
|
29
22
|
maxWidth = _ref.maxWidth,
|
|
30
23
|
_ref$height = _ref.height,
|
|
@@ -32,15 +25,18 @@ var Image = function Image(_ref) {
|
|
|
32
25
|
_ref$width = _ref.width,
|
|
33
26
|
width = _ref$width === void 0 ? 'auto' : _ref$width,
|
|
34
27
|
src = _ref.src;
|
|
35
|
-
return
|
|
36
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
37
|
-
style: (_ref2 = {}, _defineProperty(_ref2, CSS_VAR_MAX_WIDTH, "".concat(maxWidth, "px")), _defineProperty(_ref2, CSS_VAR_MAX_HEIGHT, "".concat(maxHeight, "px")), _ref2),
|
|
28
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
38
29
|
width: width,
|
|
39
30
|
height: height,
|
|
40
31
|
alt: "",
|
|
41
32
|
role: "presentation",
|
|
42
|
-
|
|
43
|
-
|
|
33
|
+
src: src,
|
|
34
|
+
className: ax(["_1e0c1ule _p12f163m _c71l649k _18s81t55"]),
|
|
35
|
+
style: _objectSpread(_objectSpread({}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, CSS_VAR_MAX_WIDTH, "".concat(maxWidth, "px")), _defineProperty(_objectSpread2, CSS_VAR_MAX_HEIGHT, "".concat(maxHeight, "px")), _objectSpread2)), {}, {
|
|
36
|
+
"--_11x3y0": ix("var(".concat(CSS_VAR_MAX_WIDTH, ")")),
|
|
37
|
+
"--_zsxb2b": ix("var(".concat(CSS_VAR_MAX_HEIGHT, ")")),
|
|
38
|
+
"--_a0hk7v": ix("0 auto ".concat("var(--ds-space-300, 24px)"))
|
|
39
|
+
})
|
|
44
40
|
});
|
|
45
41
|
};
|
|
46
42
|
export default Image;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
|
-
import { css, jsx } from '@emotion/react';
|
|
8
|
-
var spinnerContainerStyles = css({
|
|
9
|
-
width: "var(--ds-space-300, 24px)",
|
|
10
|
-
marginInlineStart: "var(--ds-space-200, 16px)"
|
|
11
|
-
});
|
|
1
|
+
/* spinner-container.tsx generated by @compiled/babel-plugin v0.32.2 */
|
|
2
|
+
import "./spinner-container.compiled.css";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
+
var spinnerContainerStyles = null;
|
|
12
6
|
|
|
13
7
|
/**
|
|
14
8
|
* __Spinner container__
|
|
@@ -19,8 +13,8 @@ var spinnerContainerStyles = css({
|
|
|
19
13
|
*/
|
|
20
14
|
var SpinnerContainer = function SpinnerContainer(_ref) {
|
|
21
15
|
var children = _ref.children;
|
|
22
|
-
return
|
|
23
|
-
|
|
16
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
17
|
+
className: ax(["_1bsb1ejb _ahbqpxbi"])
|
|
24
18
|
}, children);
|
|
25
19
|
};
|
|
26
20
|
export default SpinnerContainer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/empty-state",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "An empty state appears when there is no data to display and describes what the user can do next.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -21,26 +21,27 @@
|
|
|
21
21
|
"runReact18": true,
|
|
22
22
|
"website": {
|
|
23
23
|
"name": "Empty state",
|
|
24
|
-
"category": "
|
|
24
|
+
"category": "Status indicators"
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@atlaskit/button": "^20.3.0",
|
|
29
29
|
"@atlaskit/heading": "^3.1.0",
|
|
30
|
-
"@atlaskit/primitives": "^13.
|
|
30
|
+
"@atlaskit/primitives": "^13.3.0",
|
|
31
31
|
"@atlaskit/spinner": "^16.3.0",
|
|
32
32
|
"@atlaskit/theme": "^14.0.0",
|
|
33
|
-
"@atlaskit/tokens": "^2.
|
|
33
|
+
"@atlaskit/tokens": "^2.4.0",
|
|
34
34
|
"@babel/runtime": "^7.0.0",
|
|
35
|
-
"@
|
|
35
|
+
"@compiled/react": "^0.18.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@af/accessibility-testing": "*",
|
|
42
|
+
"@af/integration-testing": "*",
|
|
42
43
|
"@af/visual-regression": "*",
|
|
43
|
-
"@atlaskit/ds-lib": "^3.
|
|
44
|
+
"@atlaskit/ds-lib": "^3.3.0",
|
|
44
45
|
"@atlaskit/ssr": "*",
|
|
45
46
|
"@atlaskit/visual-regression": "*",
|
|
46
47
|
"@testing-library/react": "^12.1.5",
|