@atlaskit/renderer 130.2.16 → 130.2.18

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.
Files changed (63) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/react/marks/link-compiled.compiled.css +6 -0
  3. package/dist/cjs/react/marks/link-compiled.js +27 -0
  4. package/dist/cjs/react/marks/link-emotion.js +42 -0
  5. package/dist/cjs/react/marks/link.js +13 -23
  6. package/dist/cjs/react/nodes/layoutColumn-compiled.compiled.css +10 -0
  7. package/dist/cjs/react/nodes/layoutColumn-compiled.js +37 -0
  8. package/dist/cjs/react/nodes/layoutColumn-emotion.js +59 -0
  9. package/dist/cjs/react/nodes/layoutColumn.js +11 -41
  10. package/dist/cjs/react/nodes/panel-compiled.compiled.css +54 -0
  11. package/dist/cjs/react/nodes/panel-compiled.js +60 -0
  12. package/dist/cjs/react/nodes/panel-emotion.js +185 -0
  13. package/dist/cjs/react/nodes/panel.js +14 -181
  14. package/dist/es2019/react/marks/link-compiled.compiled.css +6 -0
  15. package/dist/es2019/react/marks/link-compiled.js +17 -0
  16. package/dist/es2019/react/marks/link-emotion.js +31 -0
  17. package/dist/es2019/react/marks/link.js +13 -23
  18. package/dist/es2019/react/nodes/layoutColumn-compiled.compiled.css +10 -0
  19. package/dist/es2019/react/nodes/layoutColumn-compiled.js +31 -0
  20. package/dist/es2019/react/nodes/layoutColumn-emotion.js +61 -0
  21. package/dist/es2019/react/nodes/layoutColumn.js +10 -50
  22. package/dist/es2019/react/nodes/panel-compiled.compiled.css +57 -0
  23. package/dist/es2019/react/nodes/panel-compiled.js +44 -0
  24. package/dist/es2019/react/nodes/panel-emotion.js +178 -0
  25. package/dist/es2019/react/nodes/panel.js +12 -180
  26. package/dist/esm/react/marks/link-compiled.compiled.css +6 -0
  27. package/dist/esm/react/marks/link-compiled.js +19 -0
  28. package/dist/esm/react/marks/link-emotion.js +34 -0
  29. package/dist/esm/react/marks/link.js +15 -23
  30. package/dist/esm/react/nodes/layoutColumn-compiled.compiled.css +10 -0
  31. package/dist/esm/react/nodes/layoutColumn-compiled.js +31 -0
  32. package/dist/esm/react/nodes/layoutColumn-emotion.js +52 -0
  33. package/dist/esm/react/nodes/layoutColumn.js +12 -41
  34. package/dist/esm/react/nodes/panel-compiled.compiled.css +54 -0
  35. package/dist/esm/react/nodes/panel-compiled.js +53 -0
  36. package/dist/esm/react/nodes/panel-emotion.js +179 -0
  37. package/dist/esm/react/nodes/panel.js +14 -181
  38. package/dist/types/react/marks/link-compiled.d.ts +13 -0
  39. package/dist/types/react/marks/link-emotion.d.ts +14 -0
  40. package/dist/types/react/marks/link.d.ts +5 -2
  41. package/dist/types/react/nodes/index.d.ts +2 -2
  42. package/dist/types/react/nodes/layoutColumn-compiled.d.ts +14 -0
  43. package/dist/types/react/nodes/layoutColumn-emotion.d.ts +14 -0
  44. package/dist/types/react/nodes/layoutColumn.d.ts +3 -5
  45. package/dist/types/react/nodes/panel-compiled.d.ts +22 -0
  46. package/dist/types/react/nodes/panel-emotion.d.ts +23 -0
  47. package/dist/types/react/nodes/panel.d.ts +1 -6
  48. package/dist/types/ui/annotations/draft/dom.d.ts +1 -1
  49. package/dist/types/ui/annotations/hooks/use-events.d.ts +1 -1
  50. package/dist/types-ts4.5/react/marks/link-compiled.d.ts +13 -0
  51. package/dist/types-ts4.5/react/marks/link-emotion.d.ts +14 -0
  52. package/dist/types-ts4.5/react/marks/link.d.ts +5 -2
  53. package/dist/types-ts4.5/react/nodes/index.d.ts +2 -2
  54. package/dist/types-ts4.5/react/nodes/layoutColumn-compiled.d.ts +14 -0
  55. package/dist/types-ts4.5/react/nodes/layoutColumn-emotion.d.ts +14 -0
  56. package/dist/types-ts4.5/react/nodes/layoutColumn.d.ts +3 -5
  57. package/dist/types-ts4.5/react/nodes/panel-compiled.d.ts +22 -0
  58. package/dist/types-ts4.5/react/nodes/panel-emotion.d.ts +23 -0
  59. package/dist/types-ts4.5/react/nodes/panel.d.ts +1 -6
  60. package/dist/types-ts4.5/ui/annotations/draft/dom.d.ts +1 -1
  61. package/dist/types-ts4.5/ui/annotations/hooks/use-events.d.ts +1 -1
  62. package/package.json +13 -10
  63. package/renderer.docs.tsx +47 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/renderer
2
2
 
3
+ ## 130.2.18
4
+
5
+ ### Patch Changes
6
+
7
+ - [`1c1f0af056fcb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/1c1f0af056fcb) -
8
+ migrate react components from emotion to compiled for link, panel and layoutColumn
9
+ - Updated dependencies
10
+
11
+ ## 130.2.17
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 130.2.16
4
18
 
5
19
  ### Patch Changes
@@ -0,0 +1,6 @@
1
+
2
+ ._syaz13af{color:var(--ds-link,#1868db)}._1bnx8stv:hover{text-decoration-line:underline}
3
+ ._30l313af:hover{color:var(--ds-link,#1868db)}
4
+ ._9oik1r31:hover{text-decoration-color:currentColor}
5
+ ._jf4cnqa1:hover{text-decoration-style:solid}
6
+ ._9h8h12zz:active{color:var(--ds-link-pressed,#1558bc)}
@@ -0,0 +1,27 @@
1
+ /* link-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ var _typeof = require("@babel/runtime/helpers/typeof");
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.LinkUrlCompiled = void 0;
10
+ require("./link-compiled.compiled.css");
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _runtime = require("@compiled/react/runtime");
13
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
+ var _linkUrl = _interopRequireDefault(require("@atlaskit/smart-card/link-url"));
15
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
16
+ /**
17
+ * Compiled branch of the `platform_editor_static_css` experiment.
18
+ * Used via `componentWithCondition` in `link.tsx`.
19
+ *
20
+ * Cleanup: delete this file once the experiment has shipped.
21
+ */
22
+ var anchorStyles = null;
23
+ var LinkUrlCompiled = exports.LinkUrlCompiled = function LinkUrlCompiled(props) {
24
+ return /*#__PURE__*/React.createElement(_linkUrl.default, (0, _extends2.default)({}, props, {
25
+ className: (0, _runtime.ax)(["_syaz13af _9oik1r31 _1bnx8stv _jf4cnqa1 _30l313af _9h8h12zz"])
26
+ }));
27
+ };
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.LinkUrlEmotion = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ var _react = require("@emotion/react");
10
+ var _linkUrl = _interopRequireDefault(require("@atlaskit/smart-card/link-url"));
11
+ /**
12
+ * @jsxRuntime classic
13
+ * @jsx jsx
14
+ */
15
+ /**
16
+ * Emotion branch of the `platform_editor_static_css` experiment.
17
+ * Used via `componentWithCondition` in `link.tsx`.
18
+ *
19
+ * Cleanup: delete this file once the experiment has shipped.
20
+ */
21
+
22
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- intentional: emotion fallback for compiled migration
23
+
24
+ var anchorStyles = (0, _react.css)({
25
+ color: "var(--ds-link, #1868DB)",
26
+ '&:hover': {
27
+ color: "var(--ds-link, #1868DB)",
28
+ textDecoration: 'underline'
29
+ },
30
+ '&:active': {
31
+ color: "var(--ds-link-pressed, #1558BC)"
32
+ }
33
+ });
34
+ var LinkUrlEmotion = exports.LinkUrlEmotion = function LinkUrlEmotion(props) {
35
+ return (
36
+ // Ignored via go/ees005
37
+ // eslint-disable-next-line react/jsx-props-no-spreading
38
+ (0, _react.jsx)(_linkUrl.default, (0, _extends2.default)({
39
+ css: anchorStyles
40
+ }, props))
41
+ );
42
+ };
@@ -8,30 +8,21 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.default = Link;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var _react = _interopRequireWildcard(require("react"));
11
- var _react2 = require("@emotion/react");
11
+ var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
12
12
  var _utils = require("../../utils");
13
13
  var _events = require("../../analytics/events");
14
14
  var _analytics = require("@atlaskit/editor-common/analytics");
15
- var _linkUrl = _interopRequireDefault(require("@atlaskit/smart-card/link-url"));
15
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
16
16
  var _analyticsNext = require("@atlaskit/analytics-next");
17
+ var _linkCompiled = require("./link-compiled");
18
+ var _linkEmotion = require("./link-emotion");
17
19
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
20
+ var LinkUrlMigration = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
21
+ return (0, _expValEquals.expValEquals)('platform_editor_renderer_static_css', 'isEnabled', true);
22
+ }, _linkCompiled.LinkUrlCompiled, _linkEmotion.LinkUrlEmotion);
18
23
  /**
19
- * @jsxRuntime classic
20
- * @jsx jsx
24
+ * Render an ADF link mark in renderer.
21
25
  */
22
-
23
- /* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
24
-
25
- var anchorStyles = (0, _react2.css)({
26
- color: "var(--ds-link, #1868DB)",
27
- '&:hover': {
28
- color: "var(--ds-link, #1868DB)",
29
- textDecoration: 'underline'
30
- },
31
- '&:active': {
32
- color: "var(--ds-link-pressed, #1558BC)"
33
- }
34
- });
35
26
  function Link(props) {
36
27
  var href = props.href,
37
28
  target = props.target,
@@ -60,7 +51,7 @@ function Link(props) {
60
51
  }
61
52
  var handler = (0, _utils.getEventHandler)(eventHandlers, 'link');
62
53
  if (isMediaLink) {
63
- return (0, _react2.jsx)(_react.Fragment, null, props.children);
54
+ return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, props.children);
64
55
  }
65
56
  var analyticsData = {
66
57
  attributes: {
@@ -69,12 +60,11 @@ function Link(props) {
69
60
  // Below is added for the future implementation of Linking Platform namespaced analytic context
70
61
  location: 'renderer'
71
62
  };
72
- return (0, _react2.jsx)(_analyticsNext.AnalyticsContext, {
63
+ return /*#__PURE__*/_react.default.createElement(_analyticsNext.AnalyticsContext, {
73
64
  data: analyticsData
74
- }, (0, _react2.jsx)(_linkUrl.default, (0, _extends2.default)({
75
- css: anchorStyles
76
- // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
77
- ,
65
+ }, /*#__PURE__*/_react.default.createElement(LinkUrlMigration
66
+ // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
67
+ , (0, _extends2.default)({
78
68
  onClick: function onClick(e) {
79
69
  if (fireAnalyticsEvent) {
80
70
  fireAnalyticsEvent({
@@ -0,0 +1,10 @@
1
+ ._12kpidpf [class*=image-wrap-]:has(+[class*=image-wrap-]){margin-top:0}
2
+ ._166hgrf3+.fabric-editor-block-mark>h4{margin-top:0!important}
3
+ ._19segrf3+.fabric-editor-block-mark>h1{margin-top:0!important}
4
+ ._1ki1grf3+.fabric-editor-block-mark>h2{margin-top:0!important}
5
+ ._1skbgrf3+*{margin-top:0!important}
6
+ ._1tihidpf [class*=image-wrap-]+[class*=image-wrap-]{margin-top:0}
7
+ ._7g1ogrf3+.fabric-editor-block-mark>h5{margin-top:0!important}
8
+ ._bmdegrf3+.fabric-editor-block-mark>h3{margin-top:0!important}
9
+ ._hgeogrf3+.fabric-editor-block-mark>p{margin-top:0!important}
10
+ ._sk2jgrf3+.fabric-editor-block-mark>h6{margin-top:0!important}
@@ -0,0 +1,37 @@
1
+ /* layoutColumn-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ /**
3
+ * Compiled branch of the `platform_editor_static_css` experiment.
4
+ * Used via `componentWithCondition` in `layoutColumn.tsx`.
5
+ *
6
+ * Cleanup: delete this file once the experiment has shipped.
7
+ */
8
+ "use strict";
9
+
10
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
11
+ Object.defineProperty(exports, "__esModule", {
12
+ value: true
13
+ });
14
+ exports.LayoutSectionCompiled = void 0;
15
+ require("./layoutColumn-compiled.compiled.css");
16
+ var _runtime = require("@compiled/react/runtime");
17
+ var _react = _interopRequireDefault(require("react"));
18
+ var _ui = require("@atlaskit/editor-common/ui");
19
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
20
+ // localized styles, was from clearNextSiblingMarginTopStyle in @atlaskit/editor-common/ui
21
+ var clearNextSiblingMarginTopStyle = null;
22
+ var multipleWrappedImagesStyle = null;
23
+
24
+ // localized styles, was from clearNextSiblingBlockMarkMarginTopStyle in @atlaskit/editor-common/ui
25
+ var clearNextSiblingBlockMarkMarginTopStyle = null;
26
+ var LayoutSectionCompiled = exports.LayoutSectionCompiled = function LayoutSectionCompiled(props) {
27
+ return /*#__PURE__*/_react.default.createElement("div", {
28
+ "data-layout-column": true,
29
+ "data-column-width": props.width,
30
+ style: {
31
+ flexBasis: "".concat(props.width, "%")
32
+ },
33
+ className: (0, _runtime.ax)([(0, _platformFeatureFlags.fg)('platform_editor_fix_media_in_renderer') && "_1tihidpf _12kpidpf"])
34
+ }, /*#__PURE__*/_react.default.createElement(_ui.WidthProvider, null, /*#__PURE__*/_react.default.createElement("div", {
35
+ className: (0, _runtime.ax)(["_1skbgrf3", "_19segrf3 _1ki1grf3 _bmdegrf3 _166hgrf3 _7g1ogrf3 _sk2jgrf3 _hgeogrf3"])
36
+ }), props.children));
37
+ };
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.LayoutSectionEmotion = void 0;
8
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
+ var _react = _interopRequireDefault(require("react"));
10
+ var _react2 = require("@emotion/react");
11
+ var _ui = require("@atlaskit/editor-common/ui");
12
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
+ /**
14
+ * @jsxRuntime classic
15
+ * @jsx jsx
16
+ */
17
+ /**
18
+ * Emotion branch of the `platform_editor_static_css` experiment.
19
+ * Used via `componentWithCondition` in `layoutColumn.tsx`.
20
+ *
21
+ * Cleanup: delete this file once the experiment has shipped.
22
+ */
23
+
24
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- intentional: emotion fallback for compiled migration
25
+
26
+ // localized styles, was from clearNextSiblingMarginTopStyle in @atlaskit/editor-common/ui
27
+ var clearNextSiblingMarginTopStyle = (0, _react2.css)({
28
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
29
+ '& + *': {
30
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
31
+ marginTop: '0 !important'
32
+ }
33
+ });
34
+ var multipleWrappedImagesStyle = (0, _react2.css)({
35
+ // Given the first wrapped mediaSingle has 0 marginTop (see clearNextSiblingMarginTopStyle),
36
+ // update all wrapped mediaSingle inside layout to have 0 margin top unless they don't have sibling wrapped mediaSingle
37
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
38
+ '& [class*="image-wrap-"] + [class*="image-wrap-"], & [class*="image-wrap-"]:has( + [class*="image-wrap-"])': {
39
+ marginTop: '0'
40
+ }
41
+ });
42
+
43
+ // localized styles, was from clearNextSiblingBlockMarkMarginTopStyle in @atlaskit/editor-common/ui
44
+ var clearNextSiblingBlockMarkMarginTopStyle = (0, _react2.css)((0, _defineProperty2.default)({}, "+ .fabric-editor-block-mark > p,\n\t + .fabric-editor-block-mark > h1,\n\t + .fabric-editor-block-mark > h2,\n\t + .fabric-editor-block-mark > h3,\n\t + .fabric-editor-block-mark > h4,\n\t + .fabric-editor-block-mark > h5,\n\t + .fabric-editor-block-mark > h6\n\t", {
45
+ // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
46
+ marginTop: '0 !important'
47
+ }));
48
+ var LayoutSectionEmotion = exports.LayoutSectionEmotion = function LayoutSectionEmotion(props) {
49
+ return (0, _react2.jsx)("div", {
50
+ "data-layout-column": true,
51
+ "data-column-width": props.width,
52
+ style: {
53
+ flexBasis: "".concat(props.width, "%")
54
+ },
55
+ css: (0, _platformFeatureFlags.fg)('platform_editor_fix_media_in_renderer') && multipleWrappedImagesStyle
56
+ }, (0, _react2.jsx)(_ui.WidthProvider, null, (0, _react2.jsx)("div", {
57
+ css: [clearNextSiblingMarginTopStyle, clearNextSiblingBlockMarkMarginTopStyle]
58
+ }), props.children));
59
+ };
@@ -5,49 +5,19 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = LayoutSection;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
8
  var _react = _interopRequireDefault(require("react"));
10
- var _react2 = require("@emotion/react");
11
- var _ui = require("@atlaskit/editor-common/ui");
12
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
9
+ var _platformFeatureFlagsReact = require("@atlaskit/platform-feature-flags-react");
10
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
11
+ var _layoutColumnCompiled = require("./layoutColumn-compiled");
12
+ var _layoutColumnEmotion = require("./layoutColumn-emotion");
13
+ var LayoutSectionMigration = (0, _platformFeatureFlagsReact.componentWithCondition)(function () {
14
+ return (0, _expValEquals.expValEquals)('platform_editor_renderer_static_css', 'isEnabled', true);
15
+ }, _layoutColumnCompiled.LayoutSectionCompiled, _layoutColumnEmotion.LayoutSectionEmotion);
16
+
13
17
  /**
14
- * @jsxRuntime classic
15
- * @jsx jsx
18
+ * Render a layout column in renderer.
16
19
  */
17
-
18
- /* eslint-disable @typescript-eslint/consistent-type-imports, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic */
19
-
20
- // localized styles, was from clearNextSiblingMarginTopStyle in @atlaskit/editor-common/ui
21
- var clearNextSiblingMarginTopStyle = (0, _react2.css)({
22
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
23
- '& + *': {
24
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
25
- marginTop: '0 !important'
26
- }
27
- });
28
- var multipleWrappedImagesStyle = (0, _react2.css)({
29
- // Given the first wrapped mediaSingle has 0 marginTop (see clearNextSiblingMarginTopStyle),
30
- // update all wrapped mediaSingle inside layout to have 0 margin top unless they don't have sibling wrapped mediaSingle
31
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
32
- '& [class*="image-wrap-"] + [class*="image-wrap-"], & [class*="image-wrap-"]:has( + [class*="image-wrap-"])': {
33
- marginTop: '0'
34
- }
35
- });
36
-
37
- // localized styles, was from clearNextSiblingBlockMarkMarginTopStyle in @atlaskit/editor-common/ui
38
- var clearNextSiblingBlockMarkMarginTopStyle = (0, _react2.css)((0, _defineProperty2.default)({}, "+ .fabric-editor-block-mark > p,\n\t + .fabric-editor-block-mark > h1,\n\t + .fabric-editor-block-mark > h2,\n\t + .fabric-editor-block-mark > h3,\n\t + .fabric-editor-block-mark > h4,\n\t + .fabric-editor-block-mark > h5,\n\t + .fabric-editor-block-mark > h6\n\t", {
39
- // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
40
- marginTop: '0 !important'
41
- }));
42
20
  function LayoutSection(props) {
43
- return (0, _react2.jsx)("div", {
44
- "data-layout-column": true,
45
- "data-column-width": props.width,
46
- style: {
47
- flexBasis: "".concat(props.width, "%")
48
- },
49
- css: (0, _platformFeatureFlags.fg)('platform_editor_fix_media_in_renderer') && multipleWrappedImagesStyle
50
- }, (0, _react2.jsx)(_ui.WidthProvider, null, (0, _react2.jsx)("div", {
51
- css: [clearNextSiblingMarginTopStyle, clearNextSiblingBlockMarkMarginTopStyle]
52
- }), props.children));
21
+ // eslint-disable-next-line react/jsx-props-no-spreading
22
+ return /*#__PURE__*/_react.default.createElement(LayoutSectionMigration, props);
53
23
  }
@@ -0,0 +1,54 @@
1
+
2
+ ._1wvnia51 .ak-editor-panel__content .ak-editor-panel{border:var(--ds-border-width,1px) solid var(--ds-border,#0b120e24)}
3
+ ._imyb1bbz.ak-editor-panel{margin:var(--_15dzi2n)}
4
+ ._lklzfajl.ak-editor-panel{border-radius:var(--ds-radius-small,3px)}._11k7idpf.ak-editor-panel .ak-editor-panel__content{margin-right:0}
5
+ ._11wb1ejb.ak-editor-panel .ak-editor-panel__icon{width:var(--ds-space-300,24px)}
6
+ ._122m1aok.ak-editor-panel[data-panel-type=custom]{background-color:var(--ak-renderer-panel-custom-bg-color)}
7
+ ._13n84jg8.ak-editor-panel{align-items:normal}
8
+ ._1554u2gc.ak-editor-panel{padding-top:var(--ds-space-100,8px)}
9
+ ._15sp1vk5.ak-editor-panel[data-panel-type=error]{background-color:var(--ds-background-accent-red-subtlest,#ffeceb)}
10
+ ._18w0h2mm.ak-editor-panel{position:relative}
11
+ ._18y8qm1h.ak-editor-panel[data-panel-type=note] .ak-editor-panel__icon{color:var(--ds-icon-discovery,#af59e1)}
12
+ ._19agidpf.ak-editor-panel .ak-editor-panel__content{flex-shrink:0}
13
+ ._19s71txw.ak-editor-panel{display:flex}
14
+ ._1a3fnkob.ak-editor-panel .ak-editor-panel__icon>span{vertical-align:middle}
15
+ ._1b0jutpp.ak-editor-panel[data-panel-type=custom]{padding-right:var(--ds-space-150,9pt)}
16
+ ._1bi2v77o.ak-editor-panel .ak-editor-panel__content{margin-bottom:var(--ds-space-025,2px)}
17
+ ._1cgk1h6o.ak-editor-panel .ak-editor-panel__icon{text-align:center}
18
+ ._1eiopxbi.ak-editor-panel{padding-right:var(--ds-space-200,1pc)}
19
+ ._1fe7s4qr.ak-editor-panel[data-panel-type=error] .ak-editor-panel__icon{color:var(--ds-icon-danger,#c9372c)}
20
+ ._1g6dibhp.ak-editor-panel[data-panel-type=warning]{background-color:var(--ds-background-accent-yellow-subtlest,#fef7c8)}
21
+ ._1h33yhbg.ak-editor-panel .ak-editor-panel__icon{color:var(--ds-icon-information,#357de8)}
22
+ ._1hauowts.ak-editor-panel .ak-editor-panel__icon .emoji-common-emoji-sprite{vertical-align:var(--_qwtrmr)}
23
+ ._1it3jmsf.ak-editor-panel{min-width:var(--_1jw427p)}
24
+ ._1l9midpf.ak-editor-panel .ak-editor-panel__icon{flex-shrink:0}
25
+ ._1n3wglyw.ak-editor-panel .ak-editor-panel__icon{-ms-user-select:none}
26
+ ._1oah1ntv.ak-editor-panel .ak-editor-panel__icon{box-sizing:content-box}
27
+ ._1pciu2gc.ak-editor-panel .ak-editor-panel__icon{padding-right:var(--ds-space-100,8px)}
28
+ ._1q6xf1ug.ak-editor-panel .ak-editor-panel__content{flex-basis:0%}
29
+ ._1udservl.ak-editor-panel[data-panel-type=warning] .ak-editor-panel__icon{color:var(--ds-icon-warning,#e06c00)}
30
+ ._1uvd116y.ak-editor-panel .ak-editor-panel__icon>span{display:inline-flex}
31
+ ._1v1c1ejb.ak-editor-panel .ak-editor-panel__icon{height:var(--ds-space-300,24px)}
32
+ ._1w22u2gc.ak-editor-panel{padding-bottom:var(--ds-space-100,8px)}
33
+ ._1whxutpp.ak-editor-panel[data-panel-type=custom]{padding-left:var(--ds-space-150,9pt)}
34
+ ._1yw1vq3b.ak-editor-panel .ak-editor-panel__icon{margin-top:.1em}
35
+ ._50vakb7n.ak-editor-panel .ak-editor-panel__content{flex-grow:1}
36
+ ._5zphglyw.ak-editor-panel .ak-editor-panel__icon{-webkit-user-select:none;-ms-user-select:none;user-select:none}
37
+ ._66ohu2gc.ak-editor-panel{padding-left:var(--ds-space-100,8px)}
38
+ ._6qwr1hna.ak-editor-panel{word-break:break-word}
39
+ ._7c6p1t9x.ak-editor-panel .ak-editor-panel__icon .emoji-common-emoji-image{vertical-align:var(--_1glv3p1)}
40
+ ._9dunutpp.ak-editor-panel__no-icon{padding-left:var(--ds-space-150,9pt)}
41
+ ._e5ovn729.ak-editor-panel[data-panel-type=tip]{background-color:var(--ds-background-accent-green-subtlest,#dcfff1)}
42
+ ._fc9iidpf.ak-editor-panel .ak-editor-panel__content{min-width:0}
43
+ ._g8a34pcx.ak-editor-panel[data-panel-type=tip] .ak-editor-panel__icon{color:var(--ds-icon-success,#6a9a23)}
44
+ ._gb1eidpf.ak-editor-panel .ak-editor-panel__content{margin-left:0}
45
+ ._gt7x4pcx.ak-editor-panel[data-panel-type=success] .ak-editor-panel__icon{color:var(--ds-icon-success,#6a9a23)}
46
+ ._iqv91kw7.ak-editor-panel{color:inherit}
47
+ ._jde2v77o.ak-editor-panel .ak-editor-panel__content{margin-top:var(--ds-space-025,2px)}
48
+ ._nlelp2ly.ak-editor-panel[data-panel-type=note]{background-color:var(--ds-background-accent-purple-subtlest,#f8eefe)}
49
+ ._pzbautpp.ak-editor-panel__no-icon{padding-right:var(--ds-space-150,9pt)}
50
+ ._s4ldn729.ak-editor-panel[data-panel-type=success]{background-color:var(--ds-background-accent-green-subtlest,#dcfff1)}
51
+ ._ujht1s93.ak-editor-panel{background-color:var(--ds-background-accent-blue-subtlest,#e9f2fe)}
52
+ ._wz94glyw.ak-editor-panel .ak-editor-panel__icon{-moz-user-select:none}
53
+ ._zs6jglyw.ak-editor-panel .ak-editor-panel__icon{-webkit-user-select:none}
54
+ @-moz-document url-prefix(){._udsa1o8l.ak-editor-panel .ak-editor-panel__icon .emoji-common-emoji-image img{display:inline-block}}
@@ -0,0 +1,60 @@
1
+ /* panel-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
2
+ "use strict";
3
+
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.PanelStyledCompiled = void 0;
9
+ require("./panel-compiled.compiled.css");
10
+ var _runtime = require("@compiled/react/runtime");
11
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
12
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
14
+ var _react = _interopRequireDefault(require("react"));
15
+ var _adfSchema = require("@atlaskit/adf-schema");
16
+ var _consts = require("@atlaskit/editor-shared-styles/consts");
17
+ var _editorPalette = require("@atlaskit/editor-palette");
18
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
+ var _excluded = ["backgroundColor", "children", "className", "hasIcon"];
20
+ /**
21
+ * Compiled branch of the `platform_editor_static_css` experiment.
22
+ * Used via `componentWithCondition` in `panel.tsx`.
23
+ *
24
+ * Cleanup: delete this file once the experiment has shipped.
25
+ */
26
+ 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; }
27
+ 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; }
28
+ // New custom icons are a little smaller than predefined icons.
29
+ // To fix alignment issues with custom icons, vertical alignment is updated.
30
+ var panelEmojiSpriteVerticalAlignment = -(8 * 3 - _consts.akEditorCustomIconSize) / 2;
31
+ var panelEmojiImageVerticalAlignment = panelEmojiSpriteVerticalAlignment - 1;
32
+ var blockNodesVerticalMargin = '0.75rem';
33
+ var akEditorTableCellMinWidth = 48;
34
+ var panelBaseStyles = null;
35
+ var panelHasNoIconStyles = null;
36
+ var panelNestedIconStyles = null;
37
+ var nestedPanelStyles = null;
38
+ var panelCustomBackground = null;
39
+ var PanelStyledCompiled = exports.PanelStyledCompiled = function PanelStyledCompiled(_ref) {
40
+ var backgroundColor = _ref.backgroundColor,
41
+ children = _ref.children,
42
+ className = _ref.className,
43
+ hasIcon = _ref.hasIcon,
44
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
45
+ var customBackgroundColor = backgroundColor ? (0, _editorPalette.hexToEditorBackgroundPaletteColor)(backgroundColor) || backgroundColor : undefined;
46
+ return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({}, props, {
47
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- intentional: preserve existing PanelSharedCssClassName.prefix class
48
+ className: (0, _runtime.ax)(["_lklzfajl _imyb1bbz _50vakb7n _19agidpf _1q6xf1ug _jde2v77o _1bi2v77o _gb1eidpf _11k7idpf _fc9iidpf _1554u2gc _1eiopxbi _1w22u2gc _66ohu2gc _1it3jmsf _19s71txw _18w0h2mm _13n84jg8 _6qwr1hna _ujht1s93 _iqv91kw7 _1l9midpf _1v1c1ejb _11wb1ejb _1oah1ntv _1pciu2gc _1cgk1h6o _5zphglyw _wz94glyw _zs6jglyw _1n3wglyw _1yw1vq3b _1h33yhbg _1a3fnkob _1uvd116y _1hauowts _7c6p1t9x _udsa1o8l _nlelp2ly _18y8qm1h _e5ovn729 _g8a34pcx _1g6dibhp _1udservl _15sp1vk5 _1fe7s4qr _s4ldn729 _gt7x4pcx", !hasIcon && "_1whxutpp _1b0jutpp", props['data-panel-type'] === _adfSchema.PanelType.CUSTOM && backgroundColor && "_122m1aok", (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') && "_9dunutpp _pzbautpp", "_1wvnia51", className]),
49
+ style: _objectSpread(_objectSpread({}, {
50
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- intentional: custom panel background is dynamic via CSS variable
51
+ '--ak-renderer-panel-custom-bg-color': customBackgroundColor
52
+ }), {}, {
53
+ "--_15dzi2n": (0, _runtime.ix)("".concat(blockNodesVerticalMargin, " 0 0")),
54
+ "--_1jw427p": (0, _runtime.ix)("".concat(akEditorTableCellMinWidth, "px")),
55
+ "--_qwtrmr": (0, _runtime.ix)("".concat(panelEmojiSpriteVerticalAlignment, "px")),
56
+ "--_1glv3p1": (0, _runtime.ix)("".concat(panelEmojiImageVerticalAlignment, "px"))
57
+ })
58
+ }), children);
59
+ };
60
+ PanelStyledCompiled.displayName = 'PanelStyledCompiled';
@@ -0,0 +1,185 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.PanelStyledEmotion = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
10
+ var _react = _interopRequireDefault(require("react"));
11
+ var _react2 = require("@emotion/react");
12
+ var _adfSchema = require("@atlaskit/adf-schema");
13
+ var _consts = require("@atlaskit/editor-shared-styles/consts");
14
+ var _editorPalette = require("@atlaskit/editor-palette");
15
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
+ var _excluded = ["backgroundColor", "hasIcon"];
17
+ /**
18
+ * @jsxRuntime classic
19
+ * @jsx jsx
20
+ */
21
+ /**
22
+ * Emotion branch of the `platform_editor_static_css` experiment.
23
+ * Used via `componentWithCondition` in `panel.tsx`.
24
+ *
25
+ * Cleanup: delete this file once the experiment has shipped.
26
+ */
27
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- intentional: emotion fallback for compiled migration
28
+ // New custom icons are a little smaller than predefined icons.
29
+ // To fix alignment issues with custom icons, vertical alignment is updated.
30
+ var panelEmojiSpriteVerticalAlignment = -(8 * 3 - _consts.akEditorCustomIconSize) / 2;
31
+ var panelEmojiImageVerticalAlignment = panelEmojiSpriteVerticalAlignment - 1;
32
+ var blockNodesVerticalMargin = '0.75rem';
33
+ var akEditorTableCellMinWidth = 48;
34
+ var panelBaseStyles = (0, _react2.css)({
35
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
36
+ '&.ak-editor-panel': {
37
+ borderRadius: "var(--ds-radius-small, 3px)",
38
+ margin: "".concat(blockNodesVerticalMargin, " 0 0"),
39
+ paddingTop: "var(--ds-space-100, 8px)",
40
+ paddingRight: "var(--ds-space-200, 16px)",
41
+ paddingBottom: "var(--ds-space-100, 8px)",
42
+ paddingLeft: "var(--ds-space-100, 8px)",
43
+ minWidth: "".concat(akEditorTableCellMinWidth, "px"),
44
+ display: 'flex',
45
+ position: 'relative',
46
+ alignItems: 'normal',
47
+ wordBreak: 'break-word',
48
+ backgroundColor: "var(--ds-background-accent-blue-subtlest, #E9F2FE)",
49
+ color: 'inherit',
50
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
51
+ '.ak-editor-panel__icon': {
52
+ flexShrink: 0,
53
+ height: "var(--ds-space-300, 24px)",
54
+ width: "var(--ds-space-300, 24px)",
55
+ boxSizing: 'content-box',
56
+ paddingRight: "var(--ds-space-100, 8px)",
57
+ textAlign: 'center',
58
+ userSelect: 'none',
59
+ MozUserSelect: 'none',
60
+ WebkitUserSelect: 'none',
61
+ MsUserSelect: 'none',
62
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
63
+ marginTop: '0.1em',
64
+ color: "var(--ds-icon-information, #357DE8)",
65
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
66
+ '> span': {
67
+ verticalAlign: 'middle',
68
+ display: 'inline-flex'
69
+ },
70
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
71
+ '.emoji-common-emoji-sprite': {
72
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
73
+ verticalAlign: "".concat(panelEmojiSpriteVerticalAlignment, "px")
74
+ },
75
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
76
+ '.emoji-common-emoji-image': {
77
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
78
+ verticalAlign: "".concat(panelEmojiImageVerticalAlignment, "px"),
79
+ // Vertical align only works for inline-block elements in Firefox
80
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
81
+ '@-moz-document url-prefix()': {
82
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
83
+ img: {
84
+ display: 'inline-block'
85
+ }
86
+ }
87
+ }
88
+ },
89
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
90
+ '.ak-editor-panel__content': {
91
+ margin: "var(--ds-space-025, 2px)".concat(" 0 ", "var(--ds-space-025, 2px)"),
92
+ flex: '1 0 0',
93
+ minWidth: 0
94
+ },
95
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
96
+ '&[data-panel-type="note"]': {
97
+ backgroundColor: "var(--ds-background-accent-purple-subtlest, #F8EEFE)",
98
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
99
+ '.ak-editor-panel__icon': {
100
+ color: "var(--ds-icon-discovery, #AF59E1)"
101
+ }
102
+ },
103
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
104
+ '&[data-panel-type="tip"]': {
105
+ backgroundColor: "var(--ds-background-accent-green-subtlest, #DCFFF1)",
106
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
107
+ '.ak-editor-panel__icon': {
108
+ color: "var(--ds-icon-success, #6A9A23)"
109
+ }
110
+ },
111
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
112
+ '&[data-panel-type="warning"]': {
113
+ backgroundColor: "var(--ds-background-accent-yellow-subtlest, #FEF7C8)",
114
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
115
+ '.ak-editor-panel__icon': {
116
+ color: "var(--ds-icon-warning, #E06C00)"
117
+ }
118
+ },
119
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
120
+ '&[data-panel-type="error"]': {
121
+ backgroundColor: "var(--ds-background-accent-red-subtlest, #FFECEB)",
122
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
123
+ '.ak-editor-panel__icon': {
124
+ color: "var(--ds-icon-danger, #C9372C)"
125
+ }
126
+ },
127
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
128
+ '&[data-panel-type="success"]': {
129
+ backgroundColor: "var(--ds-background-accent-green-subtlest, #DCFFF1)",
130
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
131
+ '.ak-editor-panel__icon': {
132
+ color: "var(--ds-icon-success, #6A9A23)"
133
+ }
134
+ }
135
+ }
136
+ });
137
+ var panelHasNoIconStyles = (0, _react2.css)({
138
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
139
+ '&.ak-editor-panel': {
140
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
141
+ '&[data-panel-type="custom"]': {
142
+ paddingLeft: "var(--ds-space-150, 12px)",
143
+ paddingRight: "var(--ds-space-150, 12px)"
144
+ }
145
+ }
146
+ });
147
+ var panelNestedIconStyles = (0, _react2.css)({
148
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
149
+ '&.ak-editor-panel__no-icon': {
150
+ paddingLeft: "var(--ds-space-150, 12px)",
151
+ paddingRight: "var(--ds-space-150, 12px)"
152
+ }
153
+ });
154
+ var nestedPanelStyles = (0, _react2.css)({
155
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
156
+ '.ak-editor-panel__content .ak-editor-panel': {
157
+ border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)")
158
+ }
159
+ });
160
+ var panelCustomBackground = (0, _react2.css)({
161
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
162
+ '&.ak-editor-panel': {
163
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
164
+ '&[data-panel-type="custom"]': {
165
+ backgroundColor: 'var(--ak-renderer-panel-custom-bg-color)'
166
+ }
167
+ }
168
+ });
169
+ var PanelStyledEmotion = exports.PanelStyledEmotion = function PanelStyledEmotion(_ref) {
170
+ var backgroundColor = _ref.backgroundColor,
171
+ hasIcon = _ref.hasIcon,
172
+ props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
173
+ var customBackgroundColor = backgroundColor ? (0, _editorPalette.hexToEditorBackgroundPaletteColor)(backgroundColor) || backgroundColor : undefined;
174
+ return (0, _react2.jsx)("div", (0, _extends2.default)({
175
+ style:
176
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop
177
+ {
178
+ '--ak-renderer-panel-custom-bg-color': customBackgroundColor
179
+ },
180
+ css: [panelBaseStyles, !hasIcon && panelHasNoIconStyles, props['data-panel-type'] === _adfSchema.PanelType.CUSTOM && backgroundColor && panelCustomBackground, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') && panelNestedIconStyles, nestedPanelStyles]
181
+ // Ignored via go/ees005
182
+ // eslint-disable-next-line react/jsx-props-no-spreading
183
+ }, props), props.children);
184
+ };
185
+ PanelStyledEmotion.displayName = 'PanelStyledEmotion';