@atlaskit/editor-toolbar 0.8.0 → 0.8.2
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 +14 -0
- package/dist/cjs/ui/ResponsiveContainer.compiled.css +4 -2
- package/dist/cjs/ui/ResponsiveContainer.js +4 -2
- package/dist/cjs/ui/Toolbar.compiled.css +1 -0
- package/dist/cjs/ui/Toolbar.js +2 -2
- package/dist/cjs/ui/ToolbarButton.compiled.css +3 -3
- package/dist/cjs/ui/ToolbarButton.js +1 -1
- package/dist/cjs/ui/ToolbarDropdownItem.compiled.css +6 -4
- package/dist/cjs/ui/ToolbarDropdownItem.js +1 -1
- package/dist/cjs/ui/ToolbarDropdownMenu.compiled.css +1 -1
- package/dist/cjs/ui/ToolbarDropdownMenu.js +1 -1
- package/dist/cjs/ui/icons/TextColorIcon.compiled.css +1 -1
- package/dist/cjs/ui/icons/TextColorIcon.js +1 -1
- package/dist/es2019/ui/ResponsiveContainer.compiled.css +4 -2
- package/dist/es2019/ui/ResponsiveContainer.js +4 -2
- package/dist/es2019/ui/Toolbar.compiled.css +1 -0
- package/dist/es2019/ui/Toolbar.js +2 -2
- package/dist/es2019/ui/ToolbarButton.compiled.css +3 -3
- package/dist/es2019/ui/ToolbarButton.js +1 -1
- package/dist/es2019/ui/ToolbarDropdownItem.compiled.css +6 -4
- package/dist/es2019/ui/ToolbarDropdownItem.js +1 -1
- package/dist/es2019/ui/ToolbarDropdownMenu.compiled.css +1 -1
- package/dist/es2019/ui/ToolbarDropdownMenu.js +1 -1
- package/dist/es2019/ui/icons/TextColorIcon.compiled.css +1 -1
- package/dist/es2019/ui/icons/TextColorIcon.js +1 -1
- package/dist/esm/ui/ResponsiveContainer.compiled.css +4 -2
- package/dist/esm/ui/ResponsiveContainer.js +4 -2
- package/dist/esm/ui/Toolbar.compiled.css +1 -0
- package/dist/esm/ui/Toolbar.js +2 -2
- package/dist/esm/ui/ToolbarButton.compiled.css +3 -3
- package/dist/esm/ui/ToolbarButton.js +1 -1
- package/dist/esm/ui/ToolbarDropdownItem.compiled.css +6 -4
- package/dist/esm/ui/ToolbarDropdownItem.js +1 -1
- package/dist/esm/ui/ToolbarDropdownMenu.compiled.css +1 -1
- package/dist/esm/ui/ToolbarDropdownMenu.js +1 -1
- package/dist/esm/ui/icons/TextColorIcon.compiled.css +1 -1
- package/dist/esm/ui/icons/TextColorIcon.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-toolbar
|
|
2
2
|
|
|
3
|
+
## 0.8.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`98e68957ca04d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/98e68957ca04d) -
|
|
8
|
+
[ux] ED-29186 Update responsiveness breakpoints to accommodate Jira and comment editor toolbar
|
|
9
|
+
|
|
10
|
+
## 0.8.1
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`555ac8f256674`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/555ac8f256674) -
|
|
15
|
+
Update menu item icon size to small, tweak paddings and font styles
|
|
16
|
+
|
|
3
17
|
## 0.8.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
._1f38ptqj{container-name:toolbar-container}
|
|
4
4
|
._7cca15wb{container-type:inline-size}
|
|
5
5
|
._zg9wglyw .show-below-lg, ._1a2cglyw .show-below-md, ._sum2glyw .show-below-sm, ._1vtcglyw .show-below-xl{display:none}
|
|
6
|
-
@container toolbar-container (max-width: 1024px){._t3a8glyw .show-above-xl{display:none}._1x5z1ule .show-below-xl{display:block}}
|
|
7
|
-
@container toolbar-container (max-width: 210px){._48suglyw .show-above-sm{display:none}._j2p61ule .show-below-sm{display:block}}
|
|
6
|
+
@container toolbar-container (max-width: 1024px){._19x4glyw._19x4glyw .show-above-xl{display:none}._qck01ule._qck01ule .show-below-xl{display:block}._t3a8glyw .show-above-xl{display:none}._1x5z1ule .show-below-xl{display:block}}
|
|
7
|
+
@container toolbar-container (max-width: 210px){._48suglyw .show-above-sm{display:none}._j2p61ule .show-below-sm{display:block}._j094glyw._j094glyw .show-above-sm{display:none}._1mc51ule._1mc51ule .show-below-sm{display:block}}
|
|
8
8
|
@container toolbar-container (max-width: 350px){._1vg1glyw .show-above-md{display:none}._1ei51ule .show-below-md{display:block}}
|
|
9
|
+
@container toolbar-container (max-width: 408px){._gipeglyw._gipeglyw .show-above-md{display:none}._311r1ule._311r1ule .show-below-md{display:block}}
|
|
9
10
|
@container toolbar-container (max-width: 410px){._6nrqglyw .show-above-sm{display:none}._1fq21ule .show-below-sm{display:block}}
|
|
10
11
|
@container toolbar-container (max-width: 476px){._1ireglyw .show-above-md{display:none}._zy2m1ule .show-below-md{display:block}}
|
|
11
12
|
@container toolbar-container (max-width: 500px){._pjeuglyw .show-above-lg{display:none}._3bio1ule .show-below-lg{display:block}}
|
|
13
|
+
@container toolbar-container (max-width: 575px){._11u4glyw._11u4glyw .show-above-lg{display:none}._v1i61ule._v1i61ule .show-below-lg{display:block}}
|
|
12
14
|
@container toolbar-container (max-width: 768px){._hfbeglyw .show-above-lg{display:none}._gw6d1ule .show-below-lg{display:block}}
|
|
@@ -14,10 +14,12 @@ var _runtime = require("@compiled/react/runtime");
|
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
var _css = require("@atlaskit/css");
|
|
16
16
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
17
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
17
18
|
var styles = {
|
|
18
19
|
responsiveContainer: "_1bsb1osq _7cca15wb _1f38ptqj _1bx91ule _1ehg1ule _1onx1ule _1xt01ule _zg9wglyw _1a2cglyw _sum2glyw _1vtcglyw",
|
|
19
20
|
responsiveRules: "_t3a8glyw _1x5z1ule _6nrqglyw _1fq21ule _1ireglyw _zy2m1ule _hfbeglyw _gw6d1ule",
|
|
20
|
-
responsiveRulesReduced: "
|
|
21
|
+
responsiveRulesReduced: "_j094glyw _1mc51ule _gipeglyw _311r1ule _11u4glyw _v1i61ule _19x4glyw _qck01ule",
|
|
22
|
+
responsiveRulesReducedOld: "_t3a8glyw _1x5z1ule _48suglyw _j2p61ule _1vg1glyw _1ei51ule _pjeuglyw _3bio1ule"
|
|
21
23
|
};
|
|
22
24
|
/**
|
|
23
25
|
* A responsive container that enables container query-based responsive design using CSS container queries.
|
|
@@ -66,6 +68,6 @@ var ResponsiveContainer = exports.ResponsiveContainer = function ResponsiveConta
|
|
|
66
68
|
var children = _ref.children,
|
|
67
69
|
reducedBreakpoints = _ref.reducedBreakpoints;
|
|
68
70
|
return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
|
|
69
|
-
xcss: (0, _css.cx)(styles.responsiveContainer, reducedBreakpoints ? styles.responsiveRulesReduced : styles.responsiveRules)
|
|
71
|
+
xcss: (0, _css.cx)(styles.responsiveContainer, reducedBreakpoints ? (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc_patch_2', true) ? styles.responsiveRulesReduced : styles.responsiveRulesReducedOld : styles.responsiveRules)
|
|
70
72
|
}, children);
|
|
71
73
|
};
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
._1tkezwfg{min-height:2pc}
|
|
8
8
|
._4cvr1h6o{align-items:center}
|
|
9
9
|
._4t3i14no{height:36px}
|
|
10
|
+
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
10
11
|
._bfhkvuon{background-color:var(--ds-surface,#fff)}
|
|
11
12
|
._fy9oglyw [data-toolbar-component=section]:not(:has([data-toolbar-component=button])){display:none}
|
|
12
13
|
._u5f31b66{padding-right:var(--ds-space-050,4px)}
|
package/dist/cjs/ui/Toolbar.js
CHANGED
|
@@ -16,8 +16,8 @@ var _compiled = require("@atlaskit/primitives/compiled");
|
|
|
16
16
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
17
17
|
var _ResponsiveContainer = require("./ResponsiveContainer");
|
|
18
18
|
var styles = {
|
|
19
|
-
toolbarBase: "_2rko1qi0 _zulp1b66
|
|
20
|
-
toolbar: "_4t3i14no _u5f31b66 _19bv1b66 _16qs1cd0",
|
|
19
|
+
toolbarBase: "_2rko1qi0 _zulp1b66 _1e0c1txw _4cvr1h6o",
|
|
20
|
+
toolbar: "_bfhk1bhr _4t3i14no _u5f31b66 _19bv1b66 _16qs1cd0",
|
|
21
21
|
primaryToolbar: "_bfhkvuon _1tkezwfg",
|
|
22
22
|
hiddenSelectors: "_fy9oglyw _18shglyw _ze7rglyw"
|
|
23
23
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
|
-
._zulp12x7{gap:var(--ds-space-075,6px)}
|
|
3
|
+
._zulp12x7{gap:var(--ds-space-075,6px)}
|
|
4
|
+
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
4
5
|
._1bah1h6o{justify-content:center}
|
|
5
6
|
._1e0c1txw{display:flex}
|
|
6
7
|
._1tke1f4h{min-height:28px}
|
|
@@ -8,7 +9,6 @@
|
|
|
8
9
|
._80om13gf{cursor:not-allowed}
|
|
9
10
|
._bfhkfg4m{background-color:var(--ds-background-selected,#e9f2ff)}
|
|
10
11
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
11
|
-
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
12
12
|
._o5721q9c{white-space:nowrap}
|
|
13
13
|
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
14
14
|
._syaz1lh4{color:var(--ds-text-disabled,#091e424f)}
|
|
@@ -14,7 +14,7 @@ var _compiled = require("@atlaskit/primitives/compiled");
|
|
|
14
14
|
var _uiContext = require("../hooks/ui-context");
|
|
15
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
16
|
var styles = {
|
|
17
|
-
button: "_zulp12x7 _2rko12b0 _1e0c1txw _bfhksm61 _o5721q9c _4cvr1h6o _1bah1h6o _1tke1f4h _syaz1gjq
|
|
17
|
+
button: "_zulp12x7 _2rko12b0 _11c82smr _1e0c1txw _bfhksm61 _o5721q9c _4cvr1h6o _1bah1h6o _1tke1f4h _syaz1gjq _19bvu2gc _u5f3u2gc _1ah3idpf _g0pbkb7n _oh03h2mm",
|
|
18
18
|
enabled: "_irr3166n _1di61dty",
|
|
19
19
|
disabled: "_syaz1lh4 _80om13gf",
|
|
20
20
|
selected: "_bfhkfg4m _syazaqb7 _irr3i1yw _1di619ru"
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
.
|
|
2
|
-
.
|
|
1
|
+
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
|
|
3
|
+
._1rjc1b66{padding-block:var(--ds-space-050,4px)}
|
|
3
4
|
._1bsb1osq{width:100%}
|
|
4
5
|
._1e0c1txw{display:flex}
|
|
5
|
-
.
|
|
6
|
-
.
|
|
6
|
+
._1tkezwfg{min-height:2pc}
|
|
7
|
+
._1ul9eoa3{min-width:225px}
|
|
7
8
|
._80om13gf{cursor:not-allowed}
|
|
8
9
|
._bfhkfg4m{background-color:var(--ds-background-selected,#e9f2ff)}
|
|
9
10
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
10
11
|
._kqswh2mm{position:relative}
|
|
12
|
+
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
11
13
|
._syaz1lh4{color:var(--ds-text-disabled,#091e424f)}
|
|
12
14
|
._syazaqb7{color:var(--ds-text-selected,#0c66e4)}
|
|
13
15
|
._1bas12b0:focus-visible{border-radius:var(--ds-radius-small,4px)}
|
|
@@ -16,7 +16,7 @@ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
|
16
16
|
var _ToolbarDropdownMenuContext = require("./ToolbarDropdownMenuContext");
|
|
17
17
|
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); }
|
|
18
18
|
var styles = {
|
|
19
|
-
toolbarDropdownItem: "
|
|
19
|
+
toolbarDropdownItem: "_11c82smr _18zrutpp _1rjc1b66 _1e0c1txw _kqswh2mm _bfhksm61 _1bsb1osq _1tkezwfg _1ul9eoa3 _syaz1gjq _1bas12b0 _1ah31i6y",
|
|
20
20
|
enabled: "_irr3166n _1di61dty",
|
|
21
21
|
disabled: "_syaz1lh4 _80om13gf",
|
|
22
22
|
selected: "_bfhkfg4m _syazaqb7 _irr3i1yw _1di619ru"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
.
|
|
2
|
+
._1mouv77o{margin-block:var(--ds-space-025,2px)}._18l8n7od [data-section]:first-of-type{border-block-start:unset}
|
|
3
3
|
._18m91wug{overflow-y:auto}
|
|
4
4
|
._c71lnklw{max-height:20pc}
|
|
@@ -19,7 +19,7 @@ var _ToolbarButton = require("./ToolbarButton");
|
|
|
19
19
|
var _ToolbarDropdownMenuContext = require("./ToolbarDropdownMenuContext");
|
|
20
20
|
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); }
|
|
21
21
|
var styles = {
|
|
22
|
-
sectionMargin: "
|
|
22
|
+
sectionMargin: "_1mouv77o",
|
|
23
23
|
firstSectionSeparator: "_18l8n7od",
|
|
24
24
|
scrollContainer: "_c71lnklw _18m91wug"
|
|
25
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._19pk12x7{margin-top:var(--ds-space-075,6px)}
|
|
@@ -12,7 +12,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
12
12
|
var _textStyle = _interopRequireDefault(require("@atlaskit/icon/core/text-style"));
|
|
13
13
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
14
14
|
var styles = {
|
|
15
|
-
icon: "
|
|
15
|
+
icon: "_19pk12x7"
|
|
16
16
|
};
|
|
17
17
|
var TextColorIcon = exports.TextColorIcon = function TextColorIcon(_ref) {
|
|
18
18
|
var label = _ref.label,
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
._1f38ptqj{container-name:toolbar-container}
|
|
4
4
|
._7cca15wb{container-type:inline-size}
|
|
5
5
|
._zg9wglyw .show-below-lg, ._1a2cglyw .show-below-md, ._sum2glyw .show-below-sm, ._1vtcglyw .show-below-xl{display:none}
|
|
6
|
-
@container toolbar-container (max-width: 1024px){._t3a8glyw .show-above-xl{display:none}._1x5z1ule .show-below-xl{display:block}}
|
|
7
|
-
@container toolbar-container (max-width: 210px){._48suglyw .show-above-sm{display:none}._j2p61ule .show-below-sm{display:block}}
|
|
6
|
+
@container toolbar-container (max-width: 1024px){._19x4glyw._19x4glyw .show-above-xl{display:none}._qck01ule._qck01ule .show-below-xl{display:block}._t3a8glyw .show-above-xl{display:none}._1x5z1ule .show-below-xl{display:block}}
|
|
7
|
+
@container toolbar-container (max-width: 210px){._48suglyw .show-above-sm{display:none}._j2p61ule .show-below-sm{display:block}._j094glyw._j094glyw .show-above-sm{display:none}._1mc51ule._1mc51ule .show-below-sm{display:block}}
|
|
8
8
|
@container toolbar-container (max-width: 350px){._1vg1glyw .show-above-md{display:none}._1ei51ule .show-below-md{display:block}}
|
|
9
|
+
@container toolbar-container (max-width: 408px){._gipeglyw._gipeglyw .show-above-md{display:none}._311r1ule._311r1ule .show-below-md{display:block}}
|
|
9
10
|
@container toolbar-container (max-width: 410px){._6nrqglyw .show-above-sm{display:none}._1fq21ule .show-below-sm{display:block}}
|
|
10
11
|
@container toolbar-container (max-width: 476px){._1ireglyw .show-above-md{display:none}._zy2m1ule .show-below-md{display:block}}
|
|
11
12
|
@container toolbar-container (max-width: 500px){._pjeuglyw .show-above-lg{display:none}._3bio1ule .show-below-lg{display:block}}
|
|
13
|
+
@container toolbar-container (max-width: 575px){._11u4glyw._11u4glyw .show-above-lg{display:none}._v1i61ule._v1i61ule .show-below-lg{display:block}}
|
|
12
14
|
@container toolbar-container (max-width: 768px){._hfbeglyw .show-above-lg{display:none}._gw6d1ule .show-below-lg{display:block}}
|
|
@@ -7,10 +7,12 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { cx } from '@atlaskit/css';
|
|
9
9
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
10
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
10
11
|
const styles = {
|
|
11
12
|
responsiveContainer: "_1bsb1osq _7cca15wb _1f38ptqj _1bx91ule _1ehg1ule _1onx1ule _1xt01ule _zg9wglyw _1a2cglyw _sum2glyw _1vtcglyw",
|
|
12
13
|
responsiveRules: "_t3a8glyw _1x5z1ule _6nrqglyw _1fq21ule _1ireglyw _zy2m1ule _hfbeglyw _gw6d1ule",
|
|
13
|
-
responsiveRulesReduced: "
|
|
14
|
+
responsiveRulesReduced: "_j094glyw _1mc51ule _gipeglyw _311r1ule _11u4glyw _v1i61ule _19x4glyw _qck01ule",
|
|
15
|
+
responsiveRulesReducedOld: "_t3a8glyw _1x5z1ule _48suglyw _j2p61ule _1vg1glyw _1ei51ule _pjeuglyw _3bio1ule"
|
|
14
16
|
};
|
|
15
17
|
/**
|
|
16
18
|
* A responsive container that enables container query-based responsive design using CSS container queries.
|
|
@@ -60,6 +62,6 @@ export const ResponsiveContainer = ({
|
|
|
60
62
|
reducedBreakpoints
|
|
61
63
|
}) => {
|
|
62
64
|
return /*#__PURE__*/React.createElement(Box, {
|
|
63
|
-
xcss: cx(styles.responsiveContainer, reducedBreakpoints ? styles.responsiveRulesReduced : styles.responsiveRules)
|
|
65
|
+
xcss: cx(styles.responsiveContainer, reducedBreakpoints ? editorExperiment('platform_editor_toolbar_aifc_patch_2', true) ? styles.responsiveRulesReduced : styles.responsiveRulesReducedOld : styles.responsiveRules)
|
|
64
66
|
}, children);
|
|
65
67
|
};
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
._1tkezwfg{min-height:2pc}
|
|
8
8
|
._4cvr1h6o{align-items:center}
|
|
9
9
|
._4t3i14no{height:36px}
|
|
10
|
+
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
10
11
|
._bfhkvuon{background-color:var(--ds-surface,#fff)}
|
|
11
12
|
._fy9oglyw [data-toolbar-component=section]:not(:has([data-toolbar-component=button])){display:none}
|
|
12
13
|
._u5f31b66{padding-right:var(--ds-space-050,4px)}
|
|
@@ -9,8 +9,8 @@ import { Box } from '@atlaskit/primitives/compiled';
|
|
|
9
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
10
|
import { ResponsiveContainer } from './ResponsiveContainer';
|
|
11
11
|
const styles = {
|
|
12
|
-
toolbarBase: "_2rko1qi0 _zulp1b66
|
|
13
|
-
toolbar: "_4t3i14no _u5f31b66 _19bv1b66 _16qs1cd0",
|
|
12
|
+
toolbarBase: "_2rko1qi0 _zulp1b66 _1e0c1txw _4cvr1h6o",
|
|
13
|
+
toolbar: "_bfhk1bhr _4t3i14no _u5f31b66 _19bv1b66 _16qs1cd0",
|
|
14
14
|
primaryToolbar: "_bfhkvuon _1tkezwfg",
|
|
15
15
|
hiddenSelectors: "_fy9oglyw _18shglyw _ze7rglyw"
|
|
16
16
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
|
-
._zulp12x7{gap:var(--ds-space-075,6px)}
|
|
3
|
+
._zulp12x7{gap:var(--ds-space-075,6px)}
|
|
4
|
+
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
4
5
|
._1bah1h6o{justify-content:center}
|
|
5
6
|
._1e0c1txw{display:flex}
|
|
6
7
|
._1tke1f4h{min-height:28px}
|
|
@@ -8,7 +9,6 @@
|
|
|
8
9
|
._80om13gf{cursor:not-allowed}
|
|
9
10
|
._bfhkfg4m{background-color:var(--ds-background-selected,#e9f2ff)}
|
|
10
11
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
11
|
-
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
12
12
|
._o5721q9c{white-space:nowrap}
|
|
13
13
|
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
14
14
|
._syaz1lh4{color:var(--ds-text-disabled,#091e424f)}
|
|
@@ -6,7 +6,7 @@ import { cx } from '@atlaskit/css';
|
|
|
6
6
|
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
7
7
|
import { useToolbarUI } from '../hooks/ui-context';
|
|
8
8
|
const styles = {
|
|
9
|
-
button: "_zulp12x7 _2rko12b0 _1e0c1txw _bfhksm61 _o5721q9c _4cvr1h6o _1bah1h6o _1tke1f4h _syaz1gjq
|
|
9
|
+
button: "_zulp12x7 _2rko12b0 _11c82smr _1e0c1txw _bfhksm61 _o5721q9c _4cvr1h6o _1bah1h6o _1tke1f4h _syaz1gjq _19bvu2gc _u5f3u2gc _1ah3idpf _g0pbkb7n _oh03h2mm",
|
|
10
10
|
enabled: "_irr3166n _1di61dty",
|
|
11
11
|
disabled: "_syaz1lh4 _80om13gf",
|
|
12
12
|
selected: "_bfhkfg4m _syazaqb7 _irr3i1yw _1di619ru"
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
.
|
|
2
|
-
.
|
|
1
|
+
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
|
|
3
|
+
._1rjc1b66{padding-block:var(--ds-space-050,4px)}
|
|
3
4
|
._1bsb1osq{width:100%}
|
|
4
5
|
._1e0c1txw{display:flex}
|
|
5
|
-
.
|
|
6
|
-
.
|
|
6
|
+
._1tkezwfg{min-height:2pc}
|
|
7
|
+
._1ul9eoa3{min-width:225px}
|
|
7
8
|
._80om13gf{cursor:not-allowed}
|
|
8
9
|
._bfhkfg4m{background-color:var(--ds-background-selected,#e9f2ff)}
|
|
9
10
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
10
11
|
._kqswh2mm{position:relative}
|
|
12
|
+
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
11
13
|
._syaz1lh4{color:var(--ds-text-disabled,#091e424f)}
|
|
12
14
|
._syazaqb7{color:var(--ds-text-selected,#0c66e4)}
|
|
13
15
|
._1bas12b0:focus-visible{border-radius:var(--ds-radius-small,4px)}
|
|
@@ -8,7 +8,7 @@ import { Pressable } from '@atlaskit/primitives/compiled';
|
|
|
8
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
9
|
import { useToolbarDropdownMenuNew } from './ToolbarDropdownMenuContext';
|
|
10
10
|
const styles = {
|
|
11
|
-
toolbarDropdownItem: "
|
|
11
|
+
toolbarDropdownItem: "_11c82smr _18zrutpp _1rjc1b66 _1e0c1txw _kqswh2mm _bfhksm61 _1bsb1osq _1tkezwfg _1ul9eoa3 _syaz1gjq _1bas12b0 _1ah31i6y",
|
|
12
12
|
enabled: "_irr3166n _1di61dty",
|
|
13
13
|
disabled: "_syaz1lh4 _80om13gf",
|
|
14
14
|
selected: "_bfhkfg4m _syazaqb7 _irr3i1yw _1di619ru"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
.
|
|
2
|
+
._1mouv77o{margin-block:var(--ds-space-025,2px)}._18l8n7od [data-section]:first-of-type{border-block-start:unset}
|
|
3
3
|
._18m91wug{overflow-y:auto}
|
|
4
4
|
._c71lnklw{max-height:20pc}
|
|
@@ -10,7 +10,7 @@ import { useToolbarUI } from '../hooks/ui-context';
|
|
|
10
10
|
import { ToolbarButton } from './ToolbarButton';
|
|
11
11
|
import { ToolbarDropdownMenuProvider, useToolbarDropdownMenu } from './ToolbarDropdownMenuContext';
|
|
12
12
|
const styles = {
|
|
13
|
-
sectionMargin: "
|
|
13
|
+
sectionMargin: "_1mouv77o",
|
|
14
14
|
firstSectionSeparator: "_18l8n7od",
|
|
15
15
|
scrollContainer: "_c71lnklw _18m91wug"
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._19pk12x7{margin-top:var(--ds-space-075,6px)}
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
._1f38ptqj{container-name:toolbar-container}
|
|
4
4
|
._7cca15wb{container-type:inline-size}
|
|
5
5
|
._zg9wglyw .show-below-lg, ._1a2cglyw .show-below-md, ._sum2glyw .show-below-sm, ._1vtcglyw .show-below-xl{display:none}
|
|
6
|
-
@container toolbar-container (max-width: 1024px){._t3a8glyw .show-above-xl{display:none}._1x5z1ule .show-below-xl{display:block}}
|
|
7
|
-
@container toolbar-container (max-width: 210px){._48suglyw .show-above-sm{display:none}._j2p61ule .show-below-sm{display:block}}
|
|
6
|
+
@container toolbar-container (max-width: 1024px){._19x4glyw._19x4glyw .show-above-xl{display:none}._qck01ule._qck01ule .show-below-xl{display:block}._t3a8glyw .show-above-xl{display:none}._1x5z1ule .show-below-xl{display:block}}
|
|
7
|
+
@container toolbar-container (max-width: 210px){._48suglyw .show-above-sm{display:none}._j2p61ule .show-below-sm{display:block}._j094glyw._j094glyw .show-above-sm{display:none}._1mc51ule._1mc51ule .show-below-sm{display:block}}
|
|
8
8
|
@container toolbar-container (max-width: 350px){._1vg1glyw .show-above-md{display:none}._1ei51ule .show-below-md{display:block}}
|
|
9
|
+
@container toolbar-container (max-width: 408px){._gipeglyw._gipeglyw .show-above-md{display:none}._311r1ule._311r1ule .show-below-md{display:block}}
|
|
9
10
|
@container toolbar-container (max-width: 410px){._6nrqglyw .show-above-sm{display:none}._1fq21ule .show-below-sm{display:block}}
|
|
10
11
|
@container toolbar-container (max-width: 476px){._1ireglyw .show-above-md{display:none}._zy2m1ule .show-below-md{display:block}}
|
|
11
12
|
@container toolbar-container (max-width: 500px){._pjeuglyw .show-above-lg{display:none}._3bio1ule .show-below-lg{display:block}}
|
|
13
|
+
@container toolbar-container (max-width: 575px){._11u4glyw._11u4glyw .show-above-lg{display:none}._v1i61ule._v1i61ule .show-below-lg{display:block}}
|
|
12
14
|
@container toolbar-container (max-width: 768px){._hfbeglyw .show-above-lg{display:none}._gw6d1ule .show-below-lg{display:block}}
|
|
@@ -7,10 +7,12 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { cx } from '@atlaskit/css';
|
|
9
9
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
10
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
10
11
|
var styles = {
|
|
11
12
|
responsiveContainer: "_1bsb1osq _7cca15wb _1f38ptqj _1bx91ule _1ehg1ule _1onx1ule _1xt01ule _zg9wglyw _1a2cglyw _sum2glyw _1vtcglyw",
|
|
12
13
|
responsiveRules: "_t3a8glyw _1x5z1ule _6nrqglyw _1fq21ule _1ireglyw _zy2m1ule _hfbeglyw _gw6d1ule",
|
|
13
|
-
responsiveRulesReduced: "
|
|
14
|
+
responsiveRulesReduced: "_j094glyw _1mc51ule _gipeglyw _311r1ule _11u4glyw _v1i61ule _19x4glyw _qck01ule",
|
|
15
|
+
responsiveRulesReducedOld: "_t3a8glyw _1x5z1ule _48suglyw _j2p61ule _1vg1glyw _1ei51ule _pjeuglyw _3bio1ule"
|
|
14
16
|
};
|
|
15
17
|
/**
|
|
16
18
|
* A responsive container that enables container query-based responsive design using CSS container queries.
|
|
@@ -59,6 +61,6 @@ export var ResponsiveContainer = function ResponsiveContainer(_ref) {
|
|
|
59
61
|
var children = _ref.children,
|
|
60
62
|
reducedBreakpoints = _ref.reducedBreakpoints;
|
|
61
63
|
return /*#__PURE__*/React.createElement(Box, {
|
|
62
|
-
xcss: cx(styles.responsiveContainer, reducedBreakpoints ? styles.responsiveRulesReduced : styles.responsiveRules)
|
|
64
|
+
xcss: cx(styles.responsiveContainer, reducedBreakpoints ? editorExperiment('platform_editor_toolbar_aifc_patch_2', true) ? styles.responsiveRulesReduced : styles.responsiveRulesReducedOld : styles.responsiveRules)
|
|
63
65
|
}, children);
|
|
64
66
|
};
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
._1tkezwfg{min-height:2pc}
|
|
8
8
|
._4cvr1h6o{align-items:center}
|
|
9
9
|
._4t3i14no{height:36px}
|
|
10
|
+
._bfhk1bhr{background-color:var(--ds-surface-overlay,#fff)}
|
|
10
11
|
._bfhkvuon{background-color:var(--ds-surface,#fff)}
|
|
11
12
|
._fy9oglyw [data-toolbar-component=section]:not(:has([data-toolbar-component=button])){display:none}
|
|
12
13
|
._u5f31b66{padding-right:var(--ds-space-050,4px)}
|
package/dist/esm/ui/Toolbar.js
CHANGED
|
@@ -9,8 +9,8 @@ import { Box } from '@atlaskit/primitives/compiled';
|
|
|
9
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
10
|
import { ResponsiveContainer } from './ResponsiveContainer';
|
|
11
11
|
var styles = {
|
|
12
|
-
toolbarBase: "_2rko1qi0 _zulp1b66
|
|
13
|
-
toolbar: "_4t3i14no _u5f31b66 _19bv1b66 _16qs1cd0",
|
|
12
|
+
toolbarBase: "_2rko1qi0 _zulp1b66 _1e0c1txw _4cvr1h6o",
|
|
13
|
+
toolbar: "_bfhk1bhr _4t3i14no _u5f31b66 _19bv1b66 _16qs1cd0",
|
|
14
14
|
primaryToolbar: "_bfhkvuon _1tkezwfg",
|
|
15
15
|
hiddenSelectors: "_fy9oglyw _18shglyw _ze7rglyw"
|
|
16
16
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
2
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
3
|
-
._zulp12x7{gap:var(--ds-space-075,6px)}
|
|
3
|
+
._zulp12x7{gap:var(--ds-space-075,6px)}
|
|
4
|
+
._19bvu2gc{padding-left:var(--ds-space-100,8px)}
|
|
4
5
|
._1bah1h6o{justify-content:center}
|
|
5
6
|
._1e0c1txw{display:flex}
|
|
6
7
|
._1tke1f4h{min-height:28px}
|
|
@@ -8,7 +9,6 @@
|
|
|
8
9
|
._80om13gf{cursor:not-allowed}
|
|
9
10
|
._bfhkfg4m{background-color:var(--ds-background-selected,#e9f2ff)}
|
|
10
11
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
11
|
-
._k48p1wq8{font-weight:var(--ds-font-weight-medium,500)}
|
|
12
12
|
._o5721q9c{white-space:nowrap}
|
|
13
13
|
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
14
14
|
._syaz1lh4{color:var(--ds-text-disabled,#091e424f)}
|
|
@@ -6,7 +6,7 @@ import { cx } from '@atlaskit/css';
|
|
|
6
6
|
import { Pressable } from '@atlaskit/primitives/compiled';
|
|
7
7
|
import { useToolbarUI } from '../hooks/ui-context';
|
|
8
8
|
var styles = {
|
|
9
|
-
button: "_zulp12x7 _2rko12b0 _1e0c1txw _bfhksm61 _o5721q9c _4cvr1h6o _1bah1h6o _1tke1f4h _syaz1gjq
|
|
9
|
+
button: "_zulp12x7 _2rko12b0 _11c82smr _1e0c1txw _bfhksm61 _o5721q9c _4cvr1h6o _1bah1h6o _1tke1f4h _syaz1gjq _19bvu2gc _u5f3u2gc _1ah3idpf _g0pbkb7n _oh03h2mm",
|
|
10
10
|
enabled: "_irr3166n _1di61dty",
|
|
11
11
|
disabled: "_syaz1lh4 _80om13gf",
|
|
12
12
|
selected: "_bfhkfg4m _syazaqb7 _irr3i1yw _1di619ru"
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
.
|
|
2
|
-
.
|
|
1
|
+
._11c82smr{font:var(--ds-font-body,normal 400 14px/20px ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._18zrutpp{padding-inline:var(--ds-space-150,9pt)}
|
|
3
|
+
._1rjc1b66{padding-block:var(--ds-space-050,4px)}
|
|
3
4
|
._1bsb1osq{width:100%}
|
|
4
5
|
._1e0c1txw{display:flex}
|
|
5
|
-
.
|
|
6
|
-
.
|
|
6
|
+
._1tkezwfg{min-height:2pc}
|
|
7
|
+
._1ul9eoa3{min-width:225px}
|
|
7
8
|
._80om13gf{cursor:not-allowed}
|
|
8
9
|
._bfhkfg4m{background-color:var(--ds-background-selected,#e9f2ff)}
|
|
9
10
|
._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
|
|
10
11
|
._kqswh2mm{position:relative}
|
|
12
|
+
._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
|
|
11
13
|
._syaz1lh4{color:var(--ds-text-disabled,#091e424f)}
|
|
12
14
|
._syazaqb7{color:var(--ds-text-selected,#0c66e4)}
|
|
13
15
|
._1bas12b0:focus-visible{border-radius:var(--ds-radius-small,4px)}
|
|
@@ -8,7 +8,7 @@ import { Pressable } from '@atlaskit/primitives/compiled';
|
|
|
8
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
9
|
import { useToolbarDropdownMenuNew } from './ToolbarDropdownMenuContext';
|
|
10
10
|
var styles = {
|
|
11
|
-
toolbarDropdownItem: "
|
|
11
|
+
toolbarDropdownItem: "_11c82smr _18zrutpp _1rjc1b66 _1e0c1txw _kqswh2mm _bfhksm61 _1bsb1osq _1tkezwfg _1ul9eoa3 _syaz1gjq _1bas12b0 _1ah31i6y",
|
|
12
12
|
enabled: "_irr3166n _1di61dty",
|
|
13
13
|
disabled: "_syaz1lh4 _80om13gf",
|
|
14
14
|
selected: "_bfhkfg4m _syazaqb7 _irr3i1yw _1di619ru"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
.
|
|
2
|
+
._1mouv77o{margin-block:var(--ds-space-025,2px)}._18l8n7od [data-section]:first-of-type{border-block-start:unset}
|
|
3
3
|
._18m91wug{overflow-y:auto}
|
|
4
4
|
._c71lnklw{max-height:20pc}
|
|
@@ -10,7 +10,7 @@ import { useToolbarUI } from '../hooks/ui-context';
|
|
|
10
10
|
import { ToolbarButton } from './ToolbarButton';
|
|
11
11
|
import { ToolbarDropdownMenuProvider, useToolbarDropdownMenu } from './ToolbarDropdownMenuContext';
|
|
12
12
|
var styles = {
|
|
13
|
-
sectionMargin: "
|
|
13
|
+
sectionMargin: "_1mouv77o",
|
|
14
14
|
firstSectionSeparator: "_18l8n7od",
|
|
15
15
|
scrollContainer: "_c71lnklw _18m91wug"
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._19pk12x7{margin-top:var(--ds-space-075,6px)}
|
|
@@ -5,7 +5,7 @@ import React from 'react';
|
|
|
5
5
|
import Icon from '@atlaskit/icon/core/text-style';
|
|
6
6
|
import { Box } from '@atlaskit/primitives/compiled';
|
|
7
7
|
var styles = {
|
|
8
|
-
icon: "
|
|
8
|
+
icon: "_19pk12x7"
|
|
9
9
|
};
|
|
10
10
|
export var TextColorIcon = function TextColorIcon(_ref) {
|
|
11
11
|
var label = _ref.label,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"registry": "https://registry.npmjs.org/"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.8.
|
|
6
|
+
"version": "0.8.2",
|
|
7
7
|
"description": "Common UI for Toolbars across the platform",
|
|
8
8
|
"atlassian": {
|
|
9
9
|
"team": "Editor: Jenga",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@atlaskit/platform-feature-flags-react": "^0.3.0",
|
|
32
32
|
"@atlaskit/popup": "^4.3.0",
|
|
33
33
|
"@atlaskit/primitives": "^14.13.0",
|
|
34
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
34
|
+
"@atlaskit/tmp-editor-statsig": "^12.5.0",
|
|
35
35
|
"@atlaskit/tokens": "^6.2.0",
|
|
36
36
|
"@atlaskit/tooltip": "^20.4.0",
|
|
37
37
|
"@babel/runtime": "^7.0.0",
|