@atlaskit/editor-plugin-alignment 2.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @atlaskit/editor-plugin-alignment
2
2
 
3
+ ## 3.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#120533](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120533)
8
+ [`f1bec731e278f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f1bec731e278f) -
9
+ Adds a `sideEffects` field to ensure this package does not have Compiled styles tree-shaken in the
10
+ future to avoid an accidental regression.
11
+
12
+ This is related to
13
+ https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/85953
14
+
15
+ ## 3.0.0
16
+
17
+ ### Major Changes
18
+
19
+ - [#117947](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/117947)
20
+ [`2c672e958d395`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2c672e958d395) -
21
+ [ux] EDF-2346 - [MD] Remove emotion references
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies
26
+
3
27
  ## 2.0.0
4
28
 
5
29
  ### Major Changes
@@ -0,0 +1,8 @@
1
+
2
+ ._1fvdglyw button:not([disabled]):after{border:none}._19bvu2gc{padding-left:var(--ds-space-100,8px)}
3
+ ._1e0c1txw{display:flex}
4
+ ._ca0qze3t{padding-top:var(--ds-space-0,0)}
5
+ ._gy1pv77o{column-gap:var(--ds-space-025,2px)}
6
+ ._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
7
+ ._p12f1q5e{max-width:var(--_4v9t68)}
8
+ ._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
@@ -1,23 +1,26 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
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;
8
- var _react = require("@emotion/react");
10
+ require("./index.compiled.css");
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _runtime = require("@compiled/react/runtime");
9
13
  var _reactIntlNext = require("react-intl-next");
10
14
  var _keymaps = require("@atlaskit/editor-common/keymaps");
11
15
  var _messages = require("@atlaskit/editor-common/messages");
12
16
  var _iconMap = require("../ToolbarAlignment/icon-map");
13
17
  var _AlignmentButton = _interopRequireDefault(require("./AlignmentButton"));
14
- var _styles = require("./styles");
15
- /**
16
- * @jsxRuntime classic
17
- * @jsx jsx
18
- */
19
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
18
+ 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); }
19
+ 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; }
20
+ var alignmentWrapper = null;
20
21
 
22
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
23
+ var alignmentWrapperStylesUnbounded = null;
21
24
  var alignCenterKeyboardShortcut = _keymaps.alignCenter;
22
25
  var alignRightKeyboardShortcut = _keymaps.alignRight;
23
26
  var alignmentOptions = [{
@@ -38,21 +41,23 @@ function Alignment(_ref) {
38
41
  selectedAlignment = _ref.selectedAlignment,
39
42
  className = _ref.className,
40
43
  intl = _ref.intl;
41
- return (0, _react.jsx)("div", {
44
+ return /*#__PURE__*/React.createElement("div", {
42
45
  "data-testid": "alignment-buttons"
43
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
46
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
44
47
  ,
45
- css: _styles.alignmentWrapper
48
+
46
49
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
47
- ,
48
- className: className
50
+ className: (0, _runtime.ax)(["_1e0c1txw _ca0qze3t _n3tdze3t _19bvu2gc _u5f3u2gc _p12f1q5e _gy1pv77o", "_1fvdglyw", className]),
51
+ style: {
52
+ "--_4v9t68": (0, _runtime.ix)("".concat(3 * 32 + 2 * 2, "px"))
53
+ }
49
54
  }, alignmentOptions.map(function (alignment) {
50
55
  var value = alignment.value,
51
56
  title = alignment.title,
52
57
  shortcut = alignment.shortcut;
53
58
  var message = intl.formatMessage(title);
54
- return (0, _react.jsx)(_AlignmentButton.default, {
55
- content: (0, _react.jsx)(_iconMap.IconMap, {
59
+ return /*#__PURE__*/React.createElement(_AlignmentButton.default, {
60
+ content: /*#__PURE__*/React.createElement(_iconMap.IconMap, {
56
61
  alignment: value
57
62
  }),
58
63
  key: value,
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.FloatingToolbarComponent = FloatingToolbarComponent;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
10
  var _hooks = require("@atlaskit/editor-common/hooks");
11
+ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
11
12
  var _editorCommands = require("../editor-commands");
12
13
  var _types = require("../pm-plugins/types");
13
14
  var _ToolbarAlignment = _interopRequireDefault(require("./ToolbarAlignment"));
@@ -27,7 +28,7 @@ function FloatingToolbarComponent(_ref) {
27
28
  }, [editorView]);
28
29
  return /*#__PURE__*/_react.default.createElement(_ToolbarAlignment.default, {
29
30
  pluginState: alignmentState,
30
- isReducedSpacing: FloatingToolbarSettings.isToolbarReducedSpacing,
31
+ isReducedSpacing: (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? false : FloatingToolbarSettings.isToolbarReducedSpacing,
31
32
  changeAlignment: changeAlignmentCallback
32
33
  // Ignored via go/ees005
33
34
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
@@ -1,3 +1,4 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  "use strict";
2
3
 
3
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -5,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
5
6
  value: true
6
7
  });
7
8
  exports.default = exports.AlignmentToolbar = void 0;
9
+ var _runtime = require("@compiled/react/runtime");
8
10
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
9
11
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
10
12
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
@@ -12,23 +14,16 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
12
14
  var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
13
15
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
14
16
  var _react = _interopRequireDefault(require("react"));
15
- var _react2 = require("@emotion/react");
16
17
  var _reactIntlNext = require("react-intl-next");
17
18
  var _messages = require("@atlaskit/editor-common/messages");
18
- var _styles = require("@atlaskit/editor-common/styles");
19
+ var _ui = require("@atlaskit/editor-common/ui");
19
20
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
20
- var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down"));
21
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
22
21
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
23
22
  var _types = require("../../pm-plugins/types");
24
23
  var _Alignment = _interopRequireDefault(require("../Alignment"));
25
24
  var _iconMap = require("./icon-map");
26
- var _styles2 = require("./styles");
27
25
  function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
28
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
29
- * @jsxRuntime classic
30
- * @jsx jsx
31
- */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
32
27
  // eslint-disable-next-line @repo/internal/react/no-class-components
33
28
  var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
34
29
  function AlignmentToolbar() {
@@ -102,77 +97,50 @@ var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$
102
97
  }) || (0, _experiments.editorExperiment)('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
103
98
  exposure: true
104
99
  }) ? 'compact' : 'none';
105
- return (
106
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
107
- (0, _react2.jsx)("span", {
108
- css: _styles2.wrapper
109
- }, (0, _react2.jsx)(_uiMenu.DropdownContainer, {
110
- mountTo: popupsMountPoint,
111
- boundariesElement: popupsBoundariesElement,
112
- scrollableElement: popupsScrollableElement,
113
- isOpen: isOpen,
114
- handleClickOutside: function handleClickOutside(event) {
115
- if (event instanceof MouseEvent) {
116
- _this2.hide({
117
- isOpen: false,
118
- event: event
119
- });
120
- }
121
- },
122
- handleEscapeKeydown: this.hideOnEscape,
123
- arrowKeyNavigationProviderOptions: {
124
- type: _uiMenu.ArrowKeyNavigationType.MENU
125
- },
126
- fitWidth: 112,
127
- fitHeight: 80,
128
- closeOnTab: true,
129
- trigger: (0, _react2.jsx)(_uiMenu.ToolbarButton, {
130
- spacing: isReducedSpacing ? reducedSpacing : 'default',
131
- disabled: disabled,
132
- selected: isOpen,
133
- title: title
134
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
135
- ,
136
- className: "align-btn",
137
- "aria-label": title,
138
- "aria-expanded": isOpen,
139
- "aria-haspopup": true,
140
- onClick: this.toggleOpen,
141
- onKeyDown: this.toggleOpenByKeyboard,
142
- iconBefore: (0, _react2.jsx)("div", {
143
- css:
144
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
145
- (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ?
146
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
147
- _styles.triggerWrapperStylesWithPadding :
148
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
149
- _styles2.triggerWrapper
150
- }, (0, _react2.jsx)(_iconMap.IconMap, {
151
- alignment: alignment
152
- }), (0, _react2.jsx)("span", {
153
- css: [
154
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
155
- (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') &&
156
- //eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
157
- _styles.expandIconContainerStyle]
158
- }, (0, _react2.jsx)(_chevronDown.default, {
159
- label: "",
160
- color: "currentColor",
161
- LEGACY_margin: "0 0 0 -8px"
162
- }))),
163
- ref: this.toolbarItemRef
164
- })
165
- }, (0, _react2.jsx)(_Alignment.default, {
166
- onClick: function onClick(align) {
167
- return _this2.changeAlignment(align, false);
168
- },
169
- selectedAlignment: alignment
170
- })), !(api !== null && api !== void 0 && api.primaryToolbar) && /* eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage */
171
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
172
- (0, _react2.jsx)("span", {
173
- css: _styles.separatorStyles
174
- }))
175
- );
100
+ return /*#__PURE__*/_react.default.createElement(_ui.ToolbarDropdownWrapper, null, /*#__PURE__*/_react.default.createElement(_uiMenu.DropdownContainer, {
101
+ mountTo: popupsMountPoint,
102
+ boundariesElement: popupsBoundariesElement,
103
+ scrollableElement: popupsScrollableElement,
104
+ isOpen: isOpen,
105
+ handleClickOutside: function handleClickOutside(event) {
106
+ if (event instanceof MouseEvent) {
107
+ _this2.hide({
108
+ isOpen: false,
109
+ event: event
110
+ });
111
+ }
112
+ },
113
+ handleEscapeKeydown: this.hideOnEscape,
114
+ arrowKeyNavigationProviderOptions: {
115
+ type: _uiMenu.ArrowKeyNavigationType.MENU
116
+ },
117
+ fitWidth: 112,
118
+ fitHeight: 80,
119
+ closeOnTab: true,
120
+ trigger: /*#__PURE__*/_react.default.createElement(_uiMenu.ToolbarButton, {
121
+ spacing: isReducedSpacing ? reducedSpacing : 'default',
122
+ disabled: disabled,
123
+ selected: isOpen,
124
+ title: title
125
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/design-system/no-unsafe-style-overrides -- Ignored via go/DSP-18766
126
+ ,
127
+ className: "align-btn",
128
+ "aria-label": title,
129
+ "aria-expanded": isOpen,
130
+ "aria-haspopup": true,
131
+ onClick: this.toggleOpen,
132
+ onKeyDown: this.toggleOpenByKeyboard,
133
+ iconBefore: /*#__PURE__*/_react.default.createElement(_ui.ToolbarDropdownTriggerWrapper, null, /*#__PURE__*/_react.default.createElement(_iconMap.IconMap, {
134
+ alignment: alignment
135
+ }), /*#__PURE__*/_react.default.createElement(_ui.ToolbarExpandIcon, null)),
136
+ ref: this.toolbarItemRef
137
+ })
138
+ }, /*#__PURE__*/_react.default.createElement(_Alignment.default, {
139
+ onClick: function onClick(align) {
140
+ return _this2.changeAlignment(align, false);
141
+ },
142
+ selectedAlignment: alignment
143
+ })), !(api !== null && api !== void 0 && api.primaryToolbar) && /*#__PURE__*/_react.default.createElement(_ui.ToolbarSeparator, null));
176
144
  }
177
145
  }, {
178
146
  key: "componentDidUpdate",
@@ -0,0 +1,8 @@
1
+
2
+ ._1fvdglyw button:not([disabled]):after{border:none}._19bvu2gc{padding-left:var(--ds-space-100,8px)}
3
+ ._1e0c1txw{display:flex}
4
+ ._ca0qze3t{padding-top:var(--ds-space-0,0)}
5
+ ._gy1pv77o{column-gap:var(--ds-space-025,2px)}
6
+ ._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
7
+ ._p12f53f4{max-width:75pt}
8
+ ._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
@@ -1,15 +1,16 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
- import { jsx } from '@emotion/react';
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./index.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
7
5
  import { injectIntl } from 'react-intl-next';
8
6
  import { alignCenter, alignLeft, alignRight } from '@atlaskit/editor-common/keymaps';
9
7
  import { alignmentMessages } from '@atlaskit/editor-common/messages';
10
8
  import { IconMap } from '../ToolbarAlignment/icon-map';
11
9
  import AlignmentButton from './AlignmentButton';
12
- import { alignmentWrapper } from './styles';
10
+ const alignmentWrapper = null;
11
+
12
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
13
+ const alignmentWrapperStylesUnbounded = null;
13
14
  const alignCenterKeyboardShortcut = alignCenter;
14
15
  const alignRightKeyboardShortcut = alignRight;
15
16
  const alignmentOptions = [{
@@ -31,14 +32,13 @@ function Alignment({
31
32
  className,
32
33
  intl
33
34
  }) {
34
- return jsx("div", {
35
+ return /*#__PURE__*/React.createElement("div", {
35
36
  "data-testid": "alignment-buttons"
36
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
37
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
37
38
  ,
38
- css: alignmentWrapper
39
+
39
40
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
40
- ,
41
- className: className
41
+ className: ax(["_1e0c1txw _ca0qze3t _n3tdze3t _19bvu2gc _u5f3u2gc _p12f53f4 _gy1pv77o", "_1fvdglyw", className])
42
42
  }, alignmentOptions.map(alignment => {
43
43
  const {
44
44
  value,
@@ -46,8 +46,8 @@ function Alignment({
46
46
  shortcut
47
47
  } = alignment;
48
48
  const message = intl.formatMessage(title);
49
- return jsx(AlignmentButton, {
50
- content: jsx(IconMap, {
49
+ return /*#__PURE__*/React.createElement(AlignmentButton, {
50
+ content: /*#__PURE__*/React.createElement(IconMap, {
51
51
  alignment: value
52
52
  }),
53
53
  key: value,
@@ -1,5 +1,6 @@
1
1
  import React, { useCallback } from 'react';
2
2
  import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
3
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
3
4
  import { changeAlignment } from '../editor-commands';
4
5
  import { ToolbarType } from '../pm-plugins/types';
5
6
  import ToolbarAlignment from './ToolbarAlignment';
@@ -19,7 +20,7 @@ export function FloatingToolbarComponent({
19
20
  }, [editorView]);
20
21
  return /*#__PURE__*/React.createElement(ToolbarAlignment, {
21
22
  pluginState: alignmentState,
22
- isReducedSpacing: FloatingToolbarSettings.isToolbarReducedSpacing,
23
+ isReducedSpacing: editorExperiment('platform_editor_controls', 'variant1') ? false : FloatingToolbarSettings.isToolbarReducedSpacing,
23
24
  changeAlignment: changeAlignmentCallback
24
25
  // Ignored via go/ees005
25
26
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
@@ -1,23 +1,15 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
3
+ import { ax, ix } from "@compiled/react/runtime";
6
4
  import React from 'react';
7
-
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
- import { jsx } from '@emotion/react';
10
5
  import { injectIntl } from 'react-intl-next';
11
6
  import { alignmentMessages as messages } from '@atlaskit/editor-common/messages';
12
- import { expandIconContainerStyle, separatorStyles, triggerWrapperStylesWithPadding } from '@atlaskit/editor-common/styles';
7
+ import { ToolbarDropdownTriggerWrapper, ToolbarDropdownWrapper, ToolbarExpandIcon, ToolbarSeparator } from '@atlaskit/editor-common/ui';
13
8
  import { ArrowKeyNavigationType, DropdownContainer as Dropdown, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
14
- import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
15
- import { fg } from '@atlaskit/platform-feature-flags';
16
9
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
17
10
  import { ToolbarType } from '../../pm-plugins/types';
18
11
  import Alignment from '../Alignment';
19
12
  import { IconMap } from './icon-map';
20
- import { triggerWrapper, wrapper } from './styles';
21
13
  // eslint-disable-next-line @repo/internal/react/no-class-components
22
14
  export class AlignmentToolbar extends React.Component {
23
15
  constructor(...args) {
@@ -84,75 +76,48 @@ export class AlignmentToolbar extends React.Component {
84
76
  }) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
85
77
  exposure: true
86
78
  }) ? 'compact' : 'none';
87
- return (
88
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
89
- jsx("span", {
90
- css: wrapper
91
- }, jsx(Dropdown, {
92
- mountTo: popupsMountPoint,
93
- boundariesElement: popupsBoundariesElement,
94
- scrollableElement: popupsScrollableElement,
95
- isOpen: isOpen,
96
- handleClickOutside: event => {
97
- if (event instanceof MouseEvent) {
98
- this.hide({
99
- isOpen: false,
100
- event
101
- });
102
- }
103
- },
104
- handleEscapeKeydown: this.hideOnEscape,
105
- arrowKeyNavigationProviderOptions: {
106
- type: ArrowKeyNavigationType.MENU
107
- },
108
- fitWidth: 112,
109
- fitHeight: 80,
110
- closeOnTab: true,
111
- trigger: jsx(ToolbarButton, {
112
- spacing: isReducedSpacing ? reducedSpacing : 'default',
113
- disabled: disabled,
114
- selected: isOpen,
115
- title: title
116
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
117
- ,
118
- className: "align-btn",
119
- "aria-label": title,
120
- "aria-expanded": isOpen,
121
- "aria-haspopup": true,
122
- onClick: this.toggleOpen,
123
- onKeyDown: this.toggleOpenByKeyboard,
124
- iconBefore: jsx("div", {
125
- css:
126
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
127
- fg('platform-visual-refresh-icons') ?
128
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
129
- triggerWrapperStylesWithPadding :
130
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
131
- triggerWrapper
132
- }, jsx(IconMap, {
133
- alignment: alignment
134
- }), jsx("span", {
135
- css: [
136
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
137
- fg('platform-visual-refresh-icons') &&
138
- //eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
139
- expandIconContainerStyle]
140
- }, jsx(ChevronDownIcon, {
141
- label: "",
142
- color: "currentColor",
143
- LEGACY_margin: "0 0 0 -8px"
144
- }))),
145
- ref: this.toolbarItemRef
146
- })
147
- }, jsx(Alignment, {
148
- onClick: align => this.changeAlignment(align, false),
149
- selectedAlignment: alignment
150
- })), !(api !== null && api !== void 0 && api.primaryToolbar) && /* eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage */
151
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
152
- jsx("span", {
153
- css: separatorStyles
154
- }))
155
- );
79
+ return /*#__PURE__*/React.createElement(ToolbarDropdownWrapper, null, /*#__PURE__*/React.createElement(Dropdown, {
80
+ mountTo: popupsMountPoint,
81
+ boundariesElement: popupsBoundariesElement,
82
+ scrollableElement: popupsScrollableElement,
83
+ isOpen: isOpen,
84
+ handleClickOutside: event => {
85
+ if (event instanceof MouseEvent) {
86
+ this.hide({
87
+ isOpen: false,
88
+ event
89
+ });
90
+ }
91
+ },
92
+ handleEscapeKeydown: this.hideOnEscape,
93
+ arrowKeyNavigationProviderOptions: {
94
+ type: ArrowKeyNavigationType.MENU
95
+ },
96
+ fitWidth: 112,
97
+ fitHeight: 80,
98
+ closeOnTab: true,
99
+ trigger: /*#__PURE__*/React.createElement(ToolbarButton, {
100
+ spacing: isReducedSpacing ? reducedSpacing : 'default',
101
+ disabled: disabled,
102
+ selected: isOpen,
103
+ title: title
104
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/design-system/no-unsafe-style-overrides -- Ignored via go/DSP-18766
105
+ ,
106
+ className: "align-btn",
107
+ "aria-label": title,
108
+ "aria-expanded": isOpen,
109
+ "aria-haspopup": true,
110
+ onClick: this.toggleOpen,
111
+ onKeyDown: this.toggleOpenByKeyboard,
112
+ iconBefore: /*#__PURE__*/React.createElement(ToolbarDropdownTriggerWrapper, null, /*#__PURE__*/React.createElement(IconMap, {
113
+ alignment: alignment
114
+ }), /*#__PURE__*/React.createElement(ToolbarExpandIcon, null)),
115
+ ref: this.toolbarItemRef
116
+ })
117
+ }, /*#__PURE__*/React.createElement(Alignment, {
118
+ onClick: align => this.changeAlignment(align, false),
119
+ selectedAlignment: alignment
120
+ })), !(api !== null && api !== void 0 && api.primaryToolbar) && /*#__PURE__*/React.createElement(ToolbarSeparator, null));
156
121
  }
157
122
  componentDidUpdate(prevProps) {
158
123
  if (this.props.toolbarType !== ToolbarType.FLOATING && this.state.isOpen) {
@@ -0,0 +1,8 @@
1
+
2
+ ._1fvdglyw button:not([disabled]):after{border:none}._19bvu2gc{padding-left:var(--ds-space-100,8px)}
3
+ ._1e0c1txw{display:flex}
4
+ ._ca0qze3t{padding-top:var(--ds-space-0,0)}
5
+ ._gy1pv77o{column-gap:var(--ds-space-025,2px)}
6
+ ._n3tdze3t{padding-bottom:var(--ds-space-0,0)}
7
+ ._p12f1q5e{max-width:var(--_4v9t68)}
8
+ ._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
@@ -1,15 +1,16 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
- import { jsx } from '@emotion/react';
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./index.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
7
5
  import { injectIntl } from 'react-intl-next';
8
6
  import { alignCenter, alignLeft, alignRight } from '@atlaskit/editor-common/keymaps';
9
7
  import { alignmentMessages } from '@atlaskit/editor-common/messages';
10
8
  import { IconMap } from '../ToolbarAlignment/icon-map';
11
9
  import AlignmentButton from './AlignmentButton';
12
- import { alignmentWrapper } from './styles';
10
+ var alignmentWrapper = null;
11
+
12
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
13
+ var alignmentWrapperStylesUnbounded = null;
13
14
  var alignCenterKeyboardShortcut = alignCenter;
14
15
  var alignRightKeyboardShortcut = alignRight;
15
16
  var alignmentOptions = [{
@@ -30,21 +31,23 @@ function Alignment(_ref) {
30
31
  selectedAlignment = _ref.selectedAlignment,
31
32
  className = _ref.className,
32
33
  intl = _ref.intl;
33
- return jsx("div", {
34
+ return /*#__PURE__*/React.createElement("div", {
34
35
  "data-testid": "alignment-buttons"
35
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
36
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
36
37
  ,
37
- css: alignmentWrapper
38
+
38
39
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
39
- ,
40
- className: className
40
+ className: ax(["_1e0c1txw _ca0qze3t _n3tdze3t _19bvu2gc _u5f3u2gc _p12f1q5e _gy1pv77o", "_1fvdglyw", className]),
41
+ style: {
42
+ "--_4v9t68": ix("".concat(3 * 32 + 2 * 2, "px"))
43
+ }
41
44
  }, alignmentOptions.map(function (alignment) {
42
45
  var value = alignment.value,
43
46
  title = alignment.title,
44
47
  shortcut = alignment.shortcut;
45
48
  var message = intl.formatMessage(title);
46
- return jsx(AlignmentButton, {
47
- content: jsx(IconMap, {
49
+ return /*#__PURE__*/React.createElement(AlignmentButton, {
50
+ content: /*#__PURE__*/React.createElement(IconMap, {
48
51
  alignment: value
49
52
  }),
50
53
  key: value,
@@ -1,5 +1,6 @@
1
1
  import React, { useCallback } from 'react';
2
2
  import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
3
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
3
4
  import { changeAlignment } from '../editor-commands';
4
5
  import { ToolbarType } from '../pm-plugins/types';
5
6
  import ToolbarAlignment from './ToolbarAlignment';
@@ -17,7 +18,7 @@ export function FloatingToolbarComponent(_ref) {
17
18
  }, [editorView]);
18
19
  return /*#__PURE__*/React.createElement(ToolbarAlignment, {
19
20
  pluginState: alignmentState,
20
- isReducedSpacing: FloatingToolbarSettings.isToolbarReducedSpacing,
21
+ isReducedSpacing: editorExperiment('platform_editor_controls', 'variant1') ? false : FloatingToolbarSettings.isToolbarReducedSpacing,
21
22
  changeAlignment: changeAlignmentCallback
22
23
  // Ignored via go/ees005
23
24
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
@@ -1,30 +1,22 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
3
  import _createClass from "@babel/runtime/helpers/createClass";
3
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
4
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
5
6
  import _inherits from "@babel/runtime/helpers/inherits";
6
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
+ import { ax, ix } from "@compiled/react/runtime";
7
9
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
8
10
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
- /**
10
- * @jsxRuntime classic
11
- * @jsx jsx
12
- */
13
11
  import React from 'react';
14
-
15
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
- import { jsx } from '@emotion/react';
17
12
  import { injectIntl } from 'react-intl-next';
18
13
  import { alignmentMessages as messages } from '@atlaskit/editor-common/messages';
19
- import { expandIconContainerStyle, separatorStyles, triggerWrapperStylesWithPadding } from '@atlaskit/editor-common/styles';
14
+ import { ToolbarDropdownTriggerWrapper, ToolbarDropdownWrapper, ToolbarExpandIcon, ToolbarSeparator } from '@atlaskit/editor-common/ui';
20
15
  import { ArrowKeyNavigationType, DropdownContainer as Dropdown, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
21
- import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
22
- import { fg } from '@atlaskit/platform-feature-flags';
23
16
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
24
17
  import { ToolbarType } from '../../pm-plugins/types';
25
18
  import Alignment from '../Alignment';
26
19
  import { IconMap } from './icon-map';
27
- import { triggerWrapper, wrapper } from './styles';
28
20
  // eslint-disable-next-line @repo/internal/react/no-class-components
29
21
  export var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
30
22
  function AlignmentToolbar() {
@@ -98,77 +90,50 @@ export var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
98
90
  }) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
99
91
  exposure: true
100
92
  }) ? 'compact' : 'none';
101
- return (
102
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
103
- jsx("span", {
104
- css: wrapper
105
- }, jsx(Dropdown, {
106
- mountTo: popupsMountPoint,
107
- boundariesElement: popupsBoundariesElement,
108
- scrollableElement: popupsScrollableElement,
109
- isOpen: isOpen,
110
- handleClickOutside: function handleClickOutside(event) {
111
- if (event instanceof MouseEvent) {
112
- _this2.hide({
113
- isOpen: false,
114
- event: event
115
- });
116
- }
117
- },
118
- handleEscapeKeydown: this.hideOnEscape,
119
- arrowKeyNavigationProviderOptions: {
120
- type: ArrowKeyNavigationType.MENU
121
- },
122
- fitWidth: 112,
123
- fitHeight: 80,
124
- closeOnTab: true,
125
- trigger: jsx(ToolbarButton, {
126
- spacing: isReducedSpacing ? reducedSpacing : 'default',
127
- disabled: disabled,
128
- selected: isOpen,
129
- title: title
130
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
131
- ,
132
- className: "align-btn",
133
- "aria-label": title,
134
- "aria-expanded": isOpen,
135
- "aria-haspopup": true,
136
- onClick: this.toggleOpen,
137
- onKeyDown: this.toggleOpenByKeyboard,
138
- iconBefore: jsx("div", {
139
- css:
140
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
141
- fg('platform-visual-refresh-icons') ?
142
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
143
- triggerWrapperStylesWithPadding :
144
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
145
- triggerWrapper
146
- }, jsx(IconMap, {
147
- alignment: alignment
148
- }), jsx("span", {
149
- css: [
150
- // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
151
- fg('platform-visual-refresh-icons') &&
152
- //eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
153
- expandIconContainerStyle]
154
- }, jsx(ChevronDownIcon, {
155
- label: "",
156
- color: "currentColor",
157
- LEGACY_margin: "0 0 0 -8px"
158
- }))),
159
- ref: this.toolbarItemRef
160
- })
161
- }, jsx(Alignment, {
162
- onClick: function onClick(align) {
163
- return _this2.changeAlignment(align, false);
164
- },
165
- selectedAlignment: alignment
166
- })), !(api !== null && api !== void 0 && api.primaryToolbar) && /* eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage */
167
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
168
- jsx("span", {
169
- css: separatorStyles
170
- }))
171
- );
93
+ return /*#__PURE__*/React.createElement(ToolbarDropdownWrapper, null, /*#__PURE__*/React.createElement(Dropdown, {
94
+ mountTo: popupsMountPoint,
95
+ boundariesElement: popupsBoundariesElement,
96
+ scrollableElement: popupsScrollableElement,
97
+ isOpen: isOpen,
98
+ handleClickOutside: function handleClickOutside(event) {
99
+ if (event instanceof MouseEvent) {
100
+ _this2.hide({
101
+ isOpen: false,
102
+ event: event
103
+ });
104
+ }
105
+ },
106
+ handleEscapeKeydown: this.hideOnEscape,
107
+ arrowKeyNavigationProviderOptions: {
108
+ type: ArrowKeyNavigationType.MENU
109
+ },
110
+ fitWidth: 112,
111
+ fitHeight: 80,
112
+ closeOnTab: true,
113
+ trigger: /*#__PURE__*/React.createElement(ToolbarButton, {
114
+ spacing: isReducedSpacing ? reducedSpacing : 'default',
115
+ disabled: disabled,
116
+ selected: isOpen,
117
+ title: title
118
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/design-system/no-unsafe-style-overrides -- Ignored via go/DSP-18766
119
+ ,
120
+ className: "align-btn",
121
+ "aria-label": title,
122
+ "aria-expanded": isOpen,
123
+ "aria-haspopup": true,
124
+ onClick: this.toggleOpen,
125
+ onKeyDown: this.toggleOpenByKeyboard,
126
+ iconBefore: /*#__PURE__*/React.createElement(ToolbarDropdownTriggerWrapper, null, /*#__PURE__*/React.createElement(IconMap, {
127
+ alignment: alignment
128
+ }), /*#__PURE__*/React.createElement(ToolbarExpandIcon, null)),
129
+ ref: this.toolbarItemRef
130
+ })
131
+ }, /*#__PURE__*/React.createElement(Alignment, {
132
+ onClick: function onClick(align) {
133
+ return _this2.changeAlignment(align, false);
134
+ },
135
+ selectedAlignment: alignment
136
+ })), !(api !== null && api !== void 0 && api.primaryToolbar) && /*#__PURE__*/React.createElement(ToolbarSeparator, null));
172
137
  }
173
138
  }, {
174
139
  key: "componentDidUpdate",
@@ -3,7 +3,6 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- import { jsx } from '@emotion/react';
7
6
  import type { WrappedComponentProps } from 'react-intl-next';
8
7
  import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
9
8
  import type { AlignmentPlugin } from '../../alignmentPluginType';
@@ -26,7 +25,7 @@ export declare class AlignmentToolbar extends React.Component<Props & WrappedCom
26
25
  static displayName: string;
27
26
  private toolbarItemRef;
28
27
  state: State;
29
- render(): jsx.JSX.Element;
28
+ render(): JSX.Element;
30
29
  componentDidUpdate(prevProps: Props): void;
31
30
  private changeAlignment;
32
31
  private toggleOpen;
@@ -3,7 +3,6 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- import { jsx } from '@emotion/react';
7
6
  import type { WrappedComponentProps } from 'react-intl-next';
8
7
  import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
9
8
  import type { AlignmentPlugin } from '../../alignmentPluginType';
@@ -26,7 +25,7 @@ export declare class AlignmentToolbar extends React.Component<Props & WrappedCom
26
25
  static displayName: string;
27
26
  private toolbarItemRef;
28
27
  state: State;
29
- render(): jsx.JSX.Element;
28
+ render(): JSX.Element;
30
29
  componentDidUpdate(prevProps: Props): void;
31
30
  private changeAlignment;
32
31
  private toggleOpen;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-alignment",
3
- "version": "2.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Alignment plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,26 +12,34 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
- "sideEffects": false,
15
+ "sideEffects": [
16
+ "**/*.compiled.css"
17
+ ],
16
18
  "atlaskit:src": "src/index.ts",
17
19
  "atlassian": {
18
20
  "team": "Editor: AI",
19
21
  "singleton": true,
20
22
  "runReact18": true
21
23
  },
24
+ "platform-feature-flags": {
25
+ "platform-visual-refresh-icons": {
26
+ "type": "boolean"
27
+ }
28
+ },
22
29
  "dependencies": {
23
30
  "@atlaskit/adf-schema": "^47.2.1",
24
- "@atlaskit/editor-common": "^100.0.0",
31
+ "@atlaskit/css": "^0.10.0",
32
+ "@atlaskit/editor-common": "^100.4.0",
25
33
  "@atlaskit/editor-plugin-primary-toolbar": "^3.0.0",
26
34
  "@atlaskit/editor-plugin-selection-toolbar": "^2.0.0",
27
35
  "@atlaskit/editor-prosemirror": "7.0.0",
28
36
  "@atlaskit/editor-tables": "^2.9.0",
29
- "@atlaskit/icon": "^24.0.0",
37
+ "@atlaskit/icon": "^24.1.0",
30
38
  "@atlaskit/platform-feature-flags": "1.1.0",
31
- "@atlaskit/tmp-editor-statsig": "^3.0.0",
32
- "@atlaskit/tokens": "^4.0.0",
39
+ "@atlaskit/tmp-editor-statsig": "^3.3.0",
40
+ "@atlaskit/tokens": "^4.2.0",
33
41
  "@babel/runtime": "^7.0.0",
34
- "@emotion/react": "^11.7.1"
42
+ "@compiled/react": "^0.18.2"
35
43
  },
36
44
  "peerDependencies": {
37
45
  "react": "^18.2.0",
@@ -77,8 +85,7 @@
77
85
  ],
78
86
  "deprecation": "no-deprecated-imports",
79
87
  "styling": [
80
- "emotion",
81
- "emotion"
88
+ "compiled"
82
89
  ],
83
90
  "imports": [
84
91
  "import-no-extraneous-disable-for-examples-and-docs"
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.alignmentWrapper = void 0;
7
- var _react = require("@emotion/react");
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
-
10
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
11
- var alignmentWrapper = exports.alignmentWrapper = (0, _react.css)({
12
- padding: "0 ".concat("var(--ds-space-100, 8px)"),
13
- maxWidth: "".concat(3 * 32 + 2 * 2, "px"),
14
- // 3 buttons * 32px + 2 * 2px gap
15
- columnGap: "var(--ds-space-025, 2px)",
16
- // add gap between buttons, so they don't crunch each other
17
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
18
- button: {
19
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
20
- '&:not([disabled])::after': {
21
- border: 'none' // remove blue border when an item has been selected
22
- }
23
- }
24
- });
@@ -1,35 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.wrapper = exports.triggerWrapper = exports.expandIconWrapper = void 0;
7
- var _react = require("@emotion/react");
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
-
10
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
11
- var triggerWrapper = exports.triggerWrapper = (0, _react.css)({
12
- display: 'flex'
13
- });
14
-
15
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
16
- var wrapper = exports.wrapper = (0, _react.css)({
17
- display: 'flex',
18
- alignItems: 'center',
19
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
20
- div: {
21
- display: 'flex'
22
- },
23
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
24
- '.align-btn': {
25
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
26
- '&:not([disabled])::after': {
27
- border: 'none' // remove blue border when an item has been selected
28
- }
29
- }
30
- });
31
-
32
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
33
- var expandIconWrapper = exports.expandIconWrapper = (0, _react.css)({
34
- marginLeft: "var(--ds-space-negative-100, -8px)"
35
- });
@@ -1,17 +0,0 @@
1
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
- import { css } from '@emotion/react';
3
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
4
- export const alignmentWrapper = css({
5
- padding: `0 ${"var(--ds-space-100, 8px)"}`,
6
- maxWidth: `${3 * 32 + 2 * 2}px`,
7
- // 3 buttons * 32px + 2 * 2px gap
8
- columnGap: "var(--ds-space-025, 2px)",
9
- // add gap between buttons, so they don't crunch each other
10
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
11
- button: {
12
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
13
- '&:not([disabled])::after': {
14
- border: 'none' // remove blue border when an item has been selected
15
- }
16
- }
17
- });
@@ -1,28 +0,0 @@
1
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
- import { css } from '@emotion/react';
3
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
4
- export const triggerWrapper = css({
5
- display: 'flex'
6
- });
7
-
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
9
- export const wrapper = css({
10
- display: 'flex',
11
- alignItems: 'center',
12
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
13
- div: {
14
- display: 'flex'
15
- },
16
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
17
- '.align-btn': {
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
19
- '&:not([disabled])::after': {
20
- border: 'none' // remove blue border when an item has been selected
21
- }
22
- }
23
- });
24
-
25
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
26
- export const expandIconWrapper = css({
27
- marginLeft: "var(--ds-space-negative-100, -8px)"
28
- });
@@ -1,17 +0,0 @@
1
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
- import { css } from '@emotion/react';
3
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
4
- export var alignmentWrapper = css({
5
- padding: "0 ".concat("var(--ds-space-100, 8px)"),
6
- maxWidth: "".concat(3 * 32 + 2 * 2, "px"),
7
- // 3 buttons * 32px + 2 * 2px gap
8
- columnGap: "var(--ds-space-025, 2px)",
9
- // add gap between buttons, so they don't crunch each other
10
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
11
- button: {
12
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
13
- '&:not([disabled])::after': {
14
- border: 'none' // remove blue border when an item has been selected
15
- }
16
- }
17
- });
@@ -1,28 +0,0 @@
1
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
- import { css } from '@emotion/react';
3
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
4
- export var triggerWrapper = css({
5
- display: 'flex'
6
- });
7
-
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
9
- export var wrapper = css({
10
- display: 'flex',
11
- alignItems: 'center',
12
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
13
- div: {
14
- display: 'flex'
15
- },
16
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
17
- '.align-btn': {
18
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
19
- '&:not([disabled])::after': {
20
- border: 'none' // remove blue border when an item has been selected
21
- }
22
- }
23
- });
24
-
25
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
26
- export var expandIconWrapper = css({
27
- marginLeft: "var(--ds-space-negative-100, -8px)"
28
- });
@@ -1 +0,0 @@
1
- export declare const alignmentWrapper: import("@emotion/react").SerializedStyles;
@@ -1,3 +0,0 @@
1
- export declare const triggerWrapper: import("@emotion/react").SerializedStyles;
2
- export declare const wrapper: import("@emotion/react").SerializedStyles;
3
- export declare const expandIconWrapper: import("@emotion/react").SerializedStyles;
@@ -1 +0,0 @@
1
- export declare const alignmentWrapper: import("@emotion/react").SerializedStyles;
@@ -1,3 +0,0 @@
1
- export declare const triggerWrapper: import("@emotion/react").SerializedStyles;
2
- export declare const wrapper: import("@emotion/react").SerializedStyles;
3
- export declare const expandIconWrapper: import("@emotion/react").SerializedStyles;