@atlaskit/editor-toolbar 0.17.3 → 0.17.5

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 (56) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/ui/ColorPalette/Color.compiled.css +5 -5
  3. package/dist/cjs/ui/ColorPalette/Color.js +2 -2
  4. package/dist/cjs/ui/ColorPalette/index.js +1 -1
  5. package/dist/cjs/ui/ResponsiveContainer.compiled.css +2 -1
  6. package/dist/cjs/ui/ResponsiveContainer.js +30 -1
  7. package/dist/cjs/ui/Toolbar.compiled.css +1 -1
  8. package/dist/cjs/ui/Toolbar.js +3 -1
  9. package/dist/cjs/ui/ToolbarButton.compiled.css +8 -8
  10. package/dist/cjs/ui/ToolbarButton.js +4 -4
  11. package/dist/cjs/ui/ToolbarColorSwatch.compiled.css +1 -1
  12. package/dist/cjs/ui/ToolbarColorSwatch.js +1 -1
  13. package/dist/cjs/ui/ToolbarDropdownItem.compiled.css +8 -8
  14. package/dist/cjs/ui/ToolbarDropdownItem.js +4 -4
  15. package/dist/cjs/ui/ToolbarSection.compiled.css +1 -1
  16. package/dist/cjs/ui/ToolbarSection.js +1 -1
  17. package/dist/cjs/ui/icons/TextColorIcon.js +1 -1
  18. package/dist/es2019/ui/ColorPalette/Color.compiled.css +5 -5
  19. package/dist/es2019/ui/ColorPalette/Color.js +2 -2
  20. package/dist/es2019/ui/ColorPalette/index.js +1 -1
  21. package/dist/es2019/ui/ResponsiveContainer.compiled.css +2 -1
  22. package/dist/es2019/ui/ResponsiveContainer.js +30 -1
  23. package/dist/es2019/ui/Toolbar.compiled.css +1 -1
  24. package/dist/es2019/ui/Toolbar.js +3 -1
  25. package/dist/es2019/ui/ToolbarButton.compiled.css +8 -8
  26. package/dist/es2019/ui/ToolbarButton.js +4 -4
  27. package/dist/es2019/ui/ToolbarColorSwatch.compiled.css +1 -1
  28. package/dist/es2019/ui/ToolbarColorSwatch.js +1 -1
  29. package/dist/es2019/ui/ToolbarDropdownItem.compiled.css +8 -8
  30. package/dist/es2019/ui/ToolbarDropdownItem.js +4 -4
  31. package/dist/es2019/ui/ToolbarSection.compiled.css +1 -1
  32. package/dist/es2019/ui/ToolbarSection.js +1 -1
  33. package/dist/es2019/ui/icons/TextColorIcon.js +1 -1
  34. package/dist/esm/ui/ColorPalette/Color.compiled.css +5 -5
  35. package/dist/esm/ui/ColorPalette/Color.js +2 -2
  36. package/dist/esm/ui/ColorPalette/index.js +1 -1
  37. package/dist/esm/ui/ResponsiveContainer.compiled.css +2 -1
  38. package/dist/esm/ui/ResponsiveContainer.js +30 -1
  39. package/dist/esm/ui/Toolbar.compiled.css +1 -1
  40. package/dist/esm/ui/Toolbar.js +3 -1
  41. package/dist/esm/ui/ToolbarButton.compiled.css +8 -8
  42. package/dist/esm/ui/ToolbarButton.js +4 -4
  43. package/dist/esm/ui/ToolbarColorSwatch.compiled.css +1 -1
  44. package/dist/esm/ui/ToolbarColorSwatch.js +1 -1
  45. package/dist/esm/ui/ToolbarDropdownItem.compiled.css +8 -8
  46. package/dist/esm/ui/ToolbarDropdownItem.js +4 -4
  47. package/dist/esm/ui/ToolbarSection.compiled.css +1 -1
  48. package/dist/esm/ui/ToolbarSection.js +1 -1
  49. package/dist/esm/ui/icons/TextColorIcon.js +1 -1
  50. package/dist/types/index.d.ts +1 -1
  51. package/dist/types/ui/ResponsiveContainer.d.ts +23 -4
  52. package/dist/types/ui/Toolbar.d.ts +1 -1
  53. package/dist/types-ts4.5/index.d.ts +1 -1
  54. package/dist/types-ts4.5/ui/ResponsiveContainer.d.ts +23 -4
  55. package/dist/types-ts4.5/ui/Toolbar.d.ts +1 -1
  56. package/package.json +7 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/editor-toolbar
2
2
 
3
+ ## 0.17.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8263f21e34dff`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8263f21e34dff) -
8
+ [ux] ED-29646 Implement ResponsiveContainer breakpoint preset system
9
+
10
+ ## 0.17.4
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
3
16
  ## 0.17.3
4
17
 
5
18
  ### Patch Changes
@@ -11,7 +11,7 @@
11
11
  ._4cvr1h6o{align-items:center}
12
12
  ._4t3icr4y{height:var(--ds-space-300,26px)}
13
13
  ._80omtlke{cursor:pointer}
14
- ._bfhkm7j4{background-color:var(--ds-background-neutral,#091e420f)}
14
+ ._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
15
15
  ._ca0qidpf{padding-top:0}
16
16
  ._ca0qv77o{padding-top:var(--ds-space-025,2px)}
17
17
  ._kqswh2mm{position:relative}
@@ -19,8 +19,8 @@
19
19
  ._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
20
20
  ._u5f3idpf{padding-right:0}
21
21
  ._u5f3v77o{padding-right:var(--ds-space-025,2px)}
22
- ._jyzfmuej:focus-within{border-color:var(--ds-border,#091e4224)}
23
- ._y2mv1q03:focus{outline:var(--ds-border-width-focused,2px) solid var(--ds-border-focused,#388bff)}
24
- ._858umuej:focus{border-color:var(--ds-border,#091e4224)}
22
+ ._jyzf1l7x:focus-within{border-color:var(--ds-border,#0b120e24)}
23
+ ._y2mvdfik:focus{outline:var(--ds-border-width-focused,2px) solid var(--ds-border-focused,#4688ec)}
24
+ ._858u1l7x:focus{border-color:var(--ds-border,#0b120e24)}
25
25
  ._1bg4v77o:focus{outline-offset:var(--ds-space-025,2px)}
26
- ._4cvxmuej:hover{border-color:var(--ds-border,#091e4224)}
26
+ ._4cvx1l7x:hover{border-color:var(--ds-border,#0b120e24)}
@@ -51,7 +51,7 @@ var Color = exports.Color = /*#__PURE__*/(0, _react.memo)(function (_ref) {
51
51
  return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
52
52
  content: label
53
53
  }, /*#__PURE__*/_react.default.createElement("span", {
54
- className: (0, _runtime.ax)(["_2rko12b0 _1h6d1j28 _1dqonqa1 _189ee4h9 _1e0c1txw _4cvr1h6o _ca0qv77o _u5f3v77o _n3tdv77o _19bvv77o _858umuej _jyzfmuej _4cvxmuej"])
54
+ className: (0, _runtime.ax)(["_2rko12b0 _1h6d1j28 _1dqonqa1 _189ee4h9 _1e0c1txw _4cvr1h6o _ca0qv77o _u5f3v77o _n3tdv77o _19bvv77o _858u1l7x _jyzf1l7x _4cvx1l7x"])
55
55
  }, /*#__PURE__*/_react.default.createElement("button", {
56
56
  type: "button",
57
57
  "aria-label": label,
@@ -66,7 +66,7 @@ var Color = exports.Color = /*#__PURE__*/(0, _react.memo)(function (_ref) {
66
66
  border: "var(--ds-border-width, 1px)".concat(" solid ", borderColor)
67
67
  },
68
68
  autoFocus: autoFocus,
69
- className: (0, _runtime.ax)(["_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _2rko12b0 _19it1ps9 _4t3icr4y _1bsbcr4y _bfhkm7j4 _80omtlke _1e0c1ule _kqswh2mm _y2mv1q03 _1bg4v77o"])
69
+ className: (0, _runtime.ax)(["_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _2rko12b0 _19it1ps9 _4t3icr4y _1bsbcr4y _bfhki8nm _80omtlke _1e0c1ule _kqswh2mm _y2mvdfik _1bg4v77o"])
70
70
  }, !decorator && isSelected && /*#__PURE__*/_react.default.createElement(_checkMarkEditorDone.default, {
71
71
  color: checkMarkColor,
72
72
  LEGACY_primaryColor: checkMarkColor,
@@ -39,7 +39,7 @@ function getCheckMarkColor(color, useIconToken) {
39
39
  // they are only intended for use with text colors (and there are different tokens
40
40
  // planned to be used when this extended to be used with other palettes).
41
41
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
42
- return contrastColor === '#FFFFFF' ? "var(--ds-icon-inverse, #FFFFFF)" : "var(--ds-icon, #44546F)";
42
+ return contrastColor === '#FFFFFF' ? "var(--ds-icon-inverse, #FFFFFF)" : "var(--ds-icon, #292A2E)";
43
43
  }
44
44
 
45
45
  /**
@@ -17,8 +17,9 @@
17
17
  @container toolbar-container (max-width: 408px){._gipeglyw._gipeglyw .show-above-md{display:none}._311r1ule._311r1ule .show-below-md{display:block}}
18
18
  @container toolbar-container (max-width: 410px){._6nrqglyw .show-above-sm{display:none}._1fq21ule .show-below-sm{display:block}}
19
19
  @container toolbar-container (max-width: 476px){._1ireglyw .show-above-md{display:none}._zy2m1ule .show-below-md{display:block}}
20
+ @container toolbar-container (max-width: 550px){._167iglyw._167iglyw .show-above-lg{display:none}._kyxb1ule._kyxb1ule .show-below-lg{display:block}}
20
21
  @container toolbar-container (max-width: 575px){._11u4glyw._11u4glyw .show-above-lg{display:none}._v1i61ule._v1i61ule .show-below-lg{display:block}}
21
- @container toolbar-container (max-width: 648px){._e2nbglyw._e2nbglyw._e2nbglyw .show-above-lg{display:none}._ol4q1ule._ol4q1ule._ol4q1ule .show-below-lg{display:block}}
22
+ @container toolbar-container (max-width: 648px){._4kfbglyw._4kfbglyw .show-above-lg{display:none}._j1h31ule._j1h31ule .show-below-lg{display:block}._e2nbglyw._e2nbglyw._e2nbglyw .show-above-lg{display:none}._ol4q1ule._ol4q1ule._ol4q1ule .show-below-lg{display:block}}
22
23
  @container toolbar-container (max-width: 768px){._hfbeglyw .show-above-lg{display:none}._gw6d1ule .show-below-lg{display:block}}
23
24
  @media (max-width:700px){._hmx4glyw .show-above-lg{display:none}._1rrm1ule .show-below-lg{display:block}}
24
25
  @media (max-width:533px){._ut18glyw .show-above-md{display:none}._1nwo1ule .show-below-md{display:block}}
@@ -13,15 +13,35 @@ require("./ResponsiveContainer.compiled.css");
13
13
  var _runtime = require("@compiled/react/runtime");
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
  var _css = require("@atlaskit/css");
16
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
17
  var _compiled = require("@atlaskit/primitives/compiled");
17
18
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
18
19
  var styles = {
19
20
  responsiveContainer: "_1bsb1osq _7cca15wb _1f38ptqj _1bx91ule _1ehg1ule _1onx1ule _1xt01ule _zg9wglyw _1a2cglyw _sum2glyw _1vtcglyw",
21
+ fullpage: "_t3a8glyw _1x5z1ule _6nrqglyw _1fq21ule _1ireglyw _zy2m1ule _hfbeglyw _gw6d1ule",
22
+ reduced: "_j094glyw _1mc51ule _gipeglyw _311r1ule _11u4glyw _v1i61ule _19x4glyw _qck01ule",
23
+ jiraIssue: "_j094glyw _1mc51ule _gipeglyw _311r1ule _11u4glyw _v1i61ule _19x4glyw _qck01ule",
24
+ jsmComment: "_j094glyw _1mc51ule _gipeglyw _311r1ule _167iglyw _kyxb1ule _19x4glyw _qck01ule",
25
+ confluenceComment: "_j094glyw _1mc51ule _gipeglyw _311r1ule _4kfbglyw _j1h31ule _19x4glyw _qck01ule",
20
26
  responsiveRules: "_t3a8glyw _1x5z1ule _6nrqglyw _1fq21ule _1ireglyw _zy2m1ule _hfbeglyw _gw6d1ule",
21
27
  responsiveRulesReduced: "_j094glyw _1mc51ule _gipeglyw _311r1ule _11u4glyw _v1i61ule _19x4glyw _qck01ule",
22
28
  responsiveRulesReducedOverridden: "_e2nbglyw _ol4q1ule",
23
29
  responsiveRulesWrapper: "_1bx91ule _1ehg1ule _1onx1ule _1xt01ule _zg9wglyw _1a2cglyw _sum2glyw _1vtcglyw _33p2glyw _1dre1ule _u47mglyw _rut51ule _fj5dglyw _5wt61ule _hmx4glyw _1rrm1ule _ut18glyw _1nwo1ule _19fzglyw _1r831ule"
24
30
  };
31
+
32
+ /**
33
+ * Breakpoint preset names for ResponsiveContainer.
34
+ * Each preset defines a specific set of breakpoints optimized for different use cases.
35
+ */
36
+
37
+ // Map preset names to camelCase style keys
38
+ var presetStyleMap = {
39
+ 'fullpage': styles.fullpage,
40
+ 'reduced': styles.reduced,
41
+ 'jira-issue': styles.jiraIssue,
42
+ 'jsm-comment': styles.jsmComment,
43
+ 'confluence-comment': styles.confluenceComment
44
+ };
25
45
  /**
26
46
  * A responsive container that enables container query-based responsive design using CSS container queries.
27
47
  * This component establishes a containment context named 'toolbar-container' that child components can
@@ -62,12 +82,21 @@ var styles = {
62
82
  * </ResponsiveContainer>
63
83
  * ```
64
84
  *
65
- * @param children - React nodes to render within the responsive container context
85
+ * @param preset - Selects the breakpoint preset for the responsive container
86
+ *
87
+ * @param reducedBreakpoints - Legacy prop for reduced breakpoints (deprecated, use preset instead)
66
88
  * @returns A Box component with container query styles applied
67
89
  */
68
90
  var ResponsiveContainer = exports.ResponsiveContainer = function ResponsiveContainer(_ref) {
69
91
  var children = _ref.children,
92
+ breakpointPreset = _ref.breakpointPreset,
70
93
  reducedBreakpoints = _ref.reducedBreakpoints;
94
+ // Use new preset-based logic when preset is provided and feature gate is enabled
95
+ if (breakpointPreset && (0, _platformFeatureFlags.fg)('platform_editor_toolbar_aifc_responsive_improve')) {
96
+ return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
97
+ xcss: (0, _css.cx)(styles.responsiveContainer, presetStyleMap[breakpointPreset])
98
+ }, children);
99
+ }
71
100
  return /*#__PURE__*/_react.default.createElement(_compiled.Box, {
72
101
  xcss: (0, _css.cx)(styles.responsiveContainer, reducedBreakpoints ? styles.responsiveRulesReduced : styles.responsiveRules, reducedBreakpoints && (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true) && styles.responsiveRulesReducedOverridden)
73
102
  }, children);
@@ -1,7 +1,7 @@
1
1
 
2
2
  ._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
3
3
  ._zulp1b66{gap:var(--ds-space-050,4px)}
4
- ._195gpxbi{margin-inline:var(--ds-space-200,1pc)}._16qs1cd0{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #091e4226,0 0 1px #091e424f)}
4
+ ._195gpxbi{margin-inline:var(--ds-space-200,1pc)}._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
5
5
  ._18shglyw [class*=show-above-]:not(:has([data-toolbar-component=section] [data-toolbar-component=button],[data-toolbar-component=button-group] [data-toolbar-component=button])){display:none}
6
6
  ._19bv1b66{padding-left:var(--ds-space-050,4px)}
7
7
  ._1e0c1txw{display:flex}
@@ -20,7 +20,7 @@ var _ToolbarKeyboardNavigationProvider = require("./ToolbarKeyboardNavigationPro
20
20
  var _ViewEventEmitter = require("./ViewEventEmitter");
21
21
  var styles = {
22
22
  toolbarBase: "_2rko1qi0 _zulp1b66 _1e0c1txw _4cvr1h6o",
23
- toolbar: "_bfhk1bhr _4t3i14no _u5f31b66 _19bv1b66 _16qs1cd0",
23
+ toolbar: "_bfhk1bhr _4t3i14no _u5f31b66 _19bv1b66 _16qs130s",
24
24
  toolbarResponsive: "_195gpxbi",
25
25
  primaryToolbar: "_bfhkvuon _1tkezwfg",
26
26
  toolbarSeparator: "_1mj714no",
@@ -80,9 +80,11 @@ var Toolbar = exports.Toolbar = function Toolbar(_ref) {
80
80
  var PrimaryToolbar = exports.PrimaryToolbar = function PrimaryToolbar(_ref2) {
81
81
  var children = _ref2.children,
82
82
  label = _ref2.label,
83
+ breakpointPreset = _ref2.breakpointPreset,
83
84
  reducedBreakpoints = _ref2.reducedBreakpoints;
84
85
  if ((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_responsive', 'isEnabled', true)) {
85
86
  return /*#__PURE__*/_react.default.createElement(_ResponsiveContainer.ResponsiveContainer, {
87
+ breakpointPreset: breakpointPreset,
86
88
  reducedBreakpoints: reducedBreakpoints
87
89
  }, /*#__PURE__*/_react.default.createElement(_compiled.Box, {
88
90
  xcss: (0, _css.cx)(styles.toolbarBase, styles.primaryToolbar, styles.hiddenSelectors),
@@ -7,17 +7,17 @@
7
7
  ._1tke1f4h{min-height:28px}
8
8
  ._4cvr1h6o{align-items:center}
9
9
  ._80om13gf{cursor:not-allowed}
10
- ._bfhkfg4m{background-color:var(--ds-background-selected,#e9f2ff)}
10
+ ._bfhk15s3{background-color:var(--ds-background-selected,#e9f2fe)}
11
11
  ._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
12
12
  ._o5721q9c{white-space:nowrap}
13
- ._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
14
- ._syaz1lh4{color:var(--ds-text-disabled,#091e424f)}
15
- ._syazaqb7{color:var(--ds-text-selected,#0c66e4)}
13
+ ._syaz1gmx{color:var(--ds-text-disabled,#080f214a)}
14
+ ._syaz6x5g{color:var(--ds-text-selected,#1868db)}
15
+ ._syazazsu{color:var(--ds-text-subtle,#505258)}
16
16
  ._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
17
17
  ._1ah3idpf:focus-visible{outline-offset:0}
18
18
  ._g0pbkb7n:focus-visible{z-index:1}
19
19
  ._oh03h2mm:focus-visible{position:relative}
20
- ._irr3166n:hover{background-color:var(--ds-background-neutral-subtle-hovered,#091e420f)}
21
- ._irr3i1yw:hover{background-color:var(--ds-background-selected-hovered,#cce0ff)}
22
- ._1di619ru:active{background-color:var(--ds-background-selected-pressed,#85b8ff)}
23
- ._1di61dty:active{background-color:var(--ds-background-neutral-subtle-pressed,#091e4224)}
20
+ ._irr31dpa:hover{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
21
+ ._irr3ufnl:hover{background-color:var(--ds-background-selected-hovered,#cfe1fd)}
22
+ ._1di6fcek:active{background-color:var(--ds-background-neutral-subtle-pressed,#0b120e24)}
23
+ ._1di6nozp:active{background-color:var(--ds-background-selected-pressed,#8fb8f6)}
@@ -14,10 +14,10 @@ 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 _11c82smr _1e0c1txw _bfhksm61 _o5721q9c _4cvr1h6o _1bah1h6o _1tke1f4h _syaz1gjq _19bvu2gc _u5f3u2gc _1ah3idpf _g0pbkb7n _oh03h2mm",
18
- enabled: "_irr3166n _1di61dty",
19
- disabled: "_syaz1lh4 _80om13gf",
20
- selected: "_bfhkfg4m _syazaqb7 _irr3i1yw _1di619ru"
17
+ button: "_zulp12x7 _2rko12b0 _11c82smr _1e0c1txw _bfhksm61 _o5721q9c _4cvr1h6o _1bah1h6o _1tke1f4h _syazazsu _19bvu2gc _u5f3u2gc _1ah3idpf _g0pbkb7n _oh03h2mm",
18
+ enabled: "_irr31dpa _1di6fcek",
19
+ disabled: "_syaz1gmx _80om13gf",
20
+ selected: "_bfhk15s3 _syaz6x5g _irr3ufnl _1di6nozp"
21
21
  };
22
22
  var ToolbarButton = exports.ToolbarButton = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
23
23
  var iconBefore = _ref.iconBefore,
@@ -1,5 +1,5 @@
1
1
 
2
- ._19it7r9e{border:var(--ds-border-width,1px) solid var(--ds-border,#091e4224)}
2
+ ._19itia51{border:var(--ds-border-width,1px) solid var(--ds-border,#0b120e24)}
3
3
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._18u0r5cr{margin-left:var(--ds-space-negative-050,-4px)}
4
4
  ._1bah1h6o{justify-content:center}
5
5
  ._1bsbgktf{width:20px}
@@ -11,7 +11,7 @@ var _runtime = require("@compiled/react/runtime");
11
11
  var _react = _interopRequireDefault(require("react"));
12
12
  var _compiled = require("@atlaskit/primitives/compiled");
13
13
  var styles = {
14
- colorSwatch: "_19it7r9e _2rko12b0 _1e0c1txw _1bah1h6o _4cvr1h6o _1bsbgktf _4t3igktf _18u0r5cr _2hwxr5cr"
14
+ colorSwatch: "_19itia51 _2rko12b0 _1e0c1txw _1bah1h6o _4cvr1h6o _1bsbgktf _4t3igktf _18u0r5cr _2hwxr5cr"
15
15
  };
16
16
  var ToolbarColorSwatch = exports.ToolbarColorSwatch = function ToolbarColorSwatch(_ref) {
17
17
  var children = _ref.children,
@@ -6,15 +6,15 @@
6
6
  ._1tkezwfg{min-height:2pc}
7
7
  ._1ul9eoa3{min-width:225px}
8
8
  ._80om13gf{cursor:not-allowed}
9
- ._bfhkfg4m{background-color:var(--ds-background-selected,#e9f2ff)}
9
+ ._bfhk15s3{background-color:var(--ds-background-selected,#e9f2fe)}
10
10
  ._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
11
11
  ._kqswh2mm{position:relative}
12
- ._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
13
- ._syaz1lh4{color:var(--ds-text-disabled,#091e424f)}
14
- ._syazaqb7{color:var(--ds-text-selected,#0c66e4)}
12
+ ._syaz1gmx{color:var(--ds-text-disabled,#080f214a)}
13
+ ._syaz6x5g{color:var(--ds-text-selected,#1868db)}
14
+ ._syazazsu{color:var(--ds-text-subtle,#505258)}
15
15
  ._1bas12b0:focus-visible{border-radius:var(--ds-radius-small,4px)}
16
16
  ._1ah31i6y:focus-visible{outline-offset:var(--ds-space-negative-025,-2px)}
17
- ._irr3166n:hover{background-color:var(--ds-background-neutral-subtle-hovered,#091e420f)}
18
- ._irr3i1yw:hover{background-color:var(--ds-background-selected-hovered,#cce0ff)}
19
- ._1di619ru:active{background-color:var(--ds-background-selected-pressed,#85b8ff)}
20
- ._1di61dty:active{background-color:var(--ds-background-neutral-subtle-pressed,#091e4224)}
17
+ ._irr31dpa:hover{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
18
+ ._irr3ufnl:hover{background-color:var(--ds-background-selected-hovered,#cfe1fd)}
19
+ ._1di6fcek:active{background-color:var(--ds-background-neutral-subtle-pressed,#0b120e24)}
20
+ ._1di6nozp:active{background-color:var(--ds-background-selected-pressed,#8fb8f6)}
@@ -20,10 +20,10 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
20
20
  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; }
21
21
  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; }
22
22
  var styles = {
23
- toolbarDropdownItem: "_11c82smr _18zrutpp _1rjc1b66 _1e0c1txw _kqswh2mm _bfhksm61 _1bsb1osq _1tkezwfg _1ul9eoa3 _syaz1gjq _1bas12b0 _1ah31i6y",
24
- enabled: "_irr3166n _1di61dty",
25
- disabled: "_syaz1lh4 _80om13gf",
26
- selected: "_bfhkfg4m _syazaqb7 _irr3i1yw _1di619ru"
23
+ toolbarDropdownItem: "_11c82smr _18zrutpp _1rjc1b66 _1e0c1txw _kqswh2mm _bfhksm61 _1bsb1osq _1tkezwfg _1ul9eoa3 _syazazsu _1bas12b0 _1ah31i6y",
24
+ enabled: "_irr31dpa _1di6fcek",
25
+ disabled: "_syaz1gmx _80om13gf",
26
+ selected: "_bfhk15s3 _syaz6x5g _irr3ufnl _1di6nozp"
27
27
  };
28
28
  var CustomDropdownMenuItemButton = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
29
29
  var children = _ref.children,
@@ -4,4 +4,4 @@
4
4
  ._1e0c1txw{display:flex}
5
5
  ._4cvr1h6o{align-items:center}
6
6
  ._4t3igktf{height:20px}
7
- ._bfhkmuej{background-color:var(--ds-border,#091e4224)}
7
+ ._bfhk1l7x{background-color:var(--ds-border,#0b120e24)}
@@ -26,7 +26,7 @@ var ToolbarSeparator = function ToolbarSeparator() {
26
26
  "data-toolbar-component": "separator",
27
27
  role: "separator",
28
28
  "aria-orientation": "vertical",
29
- className: (0, _runtime.ax)(["_195gu2gc _4t3igktf _1bsbt94y _bfhkmuej"])
29
+ className: (0, _runtime.ax)(["_195gu2gc _4t3igktf _1bsbt94y _bfhk1l7x"])
30
30
  });
31
31
  };
32
32
  var ToolbarSection = exports.ToolbarSection = function ToolbarSection(_ref) {
@@ -28,7 +28,7 @@ var TextColorIcon = exports.TextColorIcon = function TextColorIcon(_ref) {
28
28
  }, /*#__PURE__*/_react.default.createElement(_textStyle.default, {
29
29
  label: label,
30
30
  testId: testId,
31
- color: isDisabled ? "var(--ds-icon-disabled, #091E424F)" : iconColor,
31
+ color: isDisabled ? "var(--ds-icon-disabled, #080F214A)" : iconColor,
32
32
  shouldRecommendSmallIcon: shouldRecommendSmallIcon,
33
33
  spacing: spacing,
34
34
  size: size
@@ -11,7 +11,7 @@
11
11
  ._4cvr1h6o{align-items:center}
12
12
  ._4t3icr4y{height:var(--ds-space-300,26px)}
13
13
  ._80omtlke{cursor:pointer}
14
- ._bfhkm7j4{background-color:var(--ds-background-neutral,#091e420f)}
14
+ ._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
15
15
  ._ca0qidpf{padding-top:0}
16
16
  ._ca0qv77o{padding-top:var(--ds-space-025,2px)}
17
17
  ._kqswh2mm{position:relative}
@@ -19,8 +19,8 @@
19
19
  ._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
20
20
  ._u5f3idpf{padding-right:0}
21
21
  ._u5f3v77o{padding-right:var(--ds-space-025,2px)}
22
- ._jyzfmuej:focus-within{border-color:var(--ds-border,#091e4224)}
23
- ._y2mv1q03:focus{outline:var(--ds-border-width-focused,2px) solid var(--ds-border-focused,#388bff)}
24
- ._858umuej:focus{border-color:var(--ds-border,#091e4224)}
22
+ ._jyzf1l7x:focus-within{border-color:var(--ds-border,#0b120e24)}
23
+ ._y2mvdfik:focus{outline:var(--ds-border-width-focused,2px) solid var(--ds-border-focused,#4688ec)}
24
+ ._858u1l7x:focus{border-color:var(--ds-border,#0b120e24)}
25
25
  ._1bg4v77o:focus{outline-offset:var(--ds-space-025,2px)}
26
- ._4cvxmuej:hover{border-color:var(--ds-border,#091e4224)}
26
+ ._4cvx1l7x:hover{border-color:var(--ds-border,#0b120e24)}
@@ -42,7 +42,7 @@ export const Color = /*#__PURE__*/memo(({
42
42
  return /*#__PURE__*/React.createElement(Tooltip, {
43
43
  content: label
44
44
  }, /*#__PURE__*/React.createElement("span", {
45
- className: ax(["_2rko12b0 _1h6d1j28 _1dqonqa1 _189ee4h9 _1e0c1txw _4cvr1h6o _ca0qv77o _u5f3v77o _n3tdv77o _19bvv77o _858umuej _jyzfmuej _4cvxmuej"])
45
+ className: ax(["_2rko12b0 _1h6d1j28 _1dqonqa1 _189ee4h9 _1e0c1txw _4cvr1h6o _ca0qv77o _u5f3v77o _n3tdv77o _19bvv77o _858u1l7x _jyzf1l7x _4cvx1l7x"])
46
46
  }, /*#__PURE__*/React.createElement("button", {
47
47
  type: "button",
48
48
  "aria-label": label,
@@ -57,7 +57,7 @@ export const Color = /*#__PURE__*/memo(({
57
57
  border: `${"var(--ds-border-width, 1px)"} solid ${borderColor}`
58
58
  },
59
59
  autoFocus: autoFocus,
60
- className: ax(["_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _2rko12b0 _19it1ps9 _4t3icr4y _1bsbcr4y _bfhkm7j4 _80omtlke _1e0c1ule _kqswh2mm _y2mv1q03 _1bg4v77o"])
60
+ className: ax(["_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _2rko12b0 _19it1ps9 _4t3icr4y _1bsbcr4y _bfhki8nm _80omtlke _1e0c1ule _kqswh2mm _y2mvdfik _1bg4v77o"])
61
61
  }, !decorator && isSelected && /*#__PURE__*/React.createElement(EditorDoneIcon, {
62
62
  color: checkMarkColor,
63
63
  LEGACY_primaryColor: checkMarkColor,
@@ -29,7 +29,7 @@ function getCheckMarkColor(color, useIconToken) {
29
29
  // they are only intended for use with text colors (and there are different tokens
30
30
  // planned to be used when this extended to be used with other palettes).
31
31
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
32
- return contrastColor === '#FFFFFF' ? "var(--ds-icon-inverse, #FFFFFF)" : "var(--ds-icon, #44546F)";
32
+ return contrastColor === '#FFFFFF' ? "var(--ds-icon-inverse, #FFFFFF)" : "var(--ds-icon, #292A2E)";
33
33
  }
34
34
 
35
35
  /**
@@ -17,8 +17,9 @@
17
17
  @container toolbar-container (max-width: 408px){._gipeglyw._gipeglyw .show-above-md{display:none}._311r1ule._311r1ule .show-below-md{display:block}}
18
18
  @container toolbar-container (max-width: 410px){._6nrqglyw .show-above-sm{display:none}._1fq21ule .show-below-sm{display:block}}
19
19
  @container toolbar-container (max-width: 476px){._1ireglyw .show-above-md{display:none}._zy2m1ule .show-below-md{display:block}}
20
+ @container toolbar-container (max-width: 550px){._167iglyw._167iglyw .show-above-lg{display:none}._kyxb1ule._kyxb1ule .show-below-lg{display:block}}
20
21
  @container toolbar-container (max-width: 575px){._11u4glyw._11u4glyw .show-above-lg{display:none}._v1i61ule._v1i61ule .show-below-lg{display:block}}
21
- @container toolbar-container (max-width: 648px){._e2nbglyw._e2nbglyw._e2nbglyw .show-above-lg{display:none}._ol4q1ule._ol4q1ule._ol4q1ule .show-below-lg{display:block}}
22
+ @container toolbar-container (max-width: 648px){._4kfbglyw._4kfbglyw .show-above-lg{display:none}._j1h31ule._j1h31ule .show-below-lg{display:block}._e2nbglyw._e2nbglyw._e2nbglyw .show-above-lg{display:none}._ol4q1ule._ol4q1ule._ol4q1ule .show-below-lg{display:block}}
22
23
  @container toolbar-container (max-width: 768px){._hfbeglyw .show-above-lg{display:none}._gw6d1ule .show-below-lg{display:block}}
23
24
  @media (max-width:700px){._hmx4glyw .show-above-lg{display:none}._1rrm1ule .show-below-lg{display:block}}
24
25
  @media (max-width:533px){._ut18glyw .show-above-md{display:none}._1nwo1ule .show-below-md{display:block}}
@@ -6,15 +6,35 @@ import "./ResponsiveContainer.compiled.css";
6
6
  import { ax, ix } from "@compiled/react/runtime";
7
7
  import React from 'react';
8
8
  import { cx } from '@atlaskit/css';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
9
10
  import { Box } from '@atlaskit/primitives/compiled';
10
11
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
11
12
  const styles = {
12
13
  responsiveContainer: "_1bsb1osq _7cca15wb _1f38ptqj _1bx91ule _1ehg1ule _1onx1ule _1xt01ule _zg9wglyw _1a2cglyw _sum2glyw _1vtcglyw",
14
+ fullpage: "_t3a8glyw _1x5z1ule _6nrqglyw _1fq21ule _1ireglyw _zy2m1ule _hfbeglyw _gw6d1ule",
15
+ reduced: "_j094glyw _1mc51ule _gipeglyw _311r1ule _11u4glyw _v1i61ule _19x4glyw _qck01ule",
16
+ jiraIssue: "_j094glyw _1mc51ule _gipeglyw _311r1ule _11u4glyw _v1i61ule _19x4glyw _qck01ule",
17
+ jsmComment: "_j094glyw _1mc51ule _gipeglyw _311r1ule _167iglyw _kyxb1ule _19x4glyw _qck01ule",
18
+ confluenceComment: "_j094glyw _1mc51ule _gipeglyw _311r1ule _4kfbglyw _j1h31ule _19x4glyw _qck01ule",
13
19
  responsiveRules: "_t3a8glyw _1x5z1ule _6nrqglyw _1fq21ule _1ireglyw _zy2m1ule _hfbeglyw _gw6d1ule",
14
20
  responsiveRulesReduced: "_j094glyw _1mc51ule _gipeglyw _311r1ule _11u4glyw _v1i61ule _19x4glyw _qck01ule",
15
21
  responsiveRulesReducedOverridden: "_e2nbglyw _ol4q1ule",
16
22
  responsiveRulesWrapper: "_1bx91ule _1ehg1ule _1onx1ule _1xt01ule _zg9wglyw _1a2cglyw _sum2glyw _1vtcglyw _33p2glyw _1dre1ule _u47mglyw _rut51ule _fj5dglyw _5wt61ule _hmx4glyw _1rrm1ule _ut18glyw _1nwo1ule _19fzglyw _1r831ule"
17
23
  };
24
+
25
+ /**
26
+ * Breakpoint preset names for ResponsiveContainer.
27
+ * Each preset defines a specific set of breakpoints optimized for different use cases.
28
+ */
29
+
30
+ // Map preset names to camelCase style keys
31
+ const presetStyleMap = {
32
+ 'fullpage': styles.fullpage,
33
+ 'reduced': styles.reduced,
34
+ 'jira-issue': styles.jiraIssue,
35
+ 'jsm-comment': styles.jsmComment,
36
+ 'confluence-comment': styles.confluenceComment
37
+ };
18
38
  /**
19
39
  * A responsive container that enables container query-based responsive design using CSS container queries.
20
40
  * This component establishes a containment context named 'toolbar-container' that child components can
@@ -55,13 +75,22 @@ const styles = {
55
75
  * </ResponsiveContainer>
56
76
  * ```
57
77
  *
58
- * @param children - React nodes to render within the responsive container context
78
+ * @param preset - Selects the breakpoint preset for the responsive container
79
+ *
80
+ * @param reducedBreakpoints - Legacy prop for reduced breakpoints (deprecated, use preset instead)
59
81
  * @returns A Box component with container query styles applied
60
82
  */
61
83
  export const ResponsiveContainer = ({
62
84
  children,
85
+ breakpointPreset,
63
86
  reducedBreakpoints
64
87
  }) => {
88
+ // Use new preset-based logic when preset is provided and feature gate is enabled
89
+ if (breakpointPreset && fg('platform_editor_toolbar_aifc_responsive_improve')) {
90
+ return /*#__PURE__*/React.createElement(Box, {
91
+ xcss: cx(styles.responsiveContainer, presetStyleMap[breakpointPreset])
92
+ }, children);
93
+ }
65
94
  return /*#__PURE__*/React.createElement(Box, {
66
95
  xcss: cx(styles.responsiveContainer, reducedBreakpoints ? styles.responsiveRulesReduced : styles.responsiveRules, reducedBreakpoints && expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true) && styles.responsiveRulesReducedOverridden)
67
96
  }, children);
@@ -1,7 +1,7 @@
1
1
 
2
2
  ._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
3
3
  ._zulp1b66{gap:var(--ds-space-050,4px)}
4
- ._195gpxbi{margin-inline:var(--ds-space-200,1pc)}._16qs1cd0{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #091e4226,0 0 1px #091e424f)}
4
+ ._195gpxbi{margin-inline:var(--ds-space-200,1pc)}._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
5
5
  ._18shglyw [class*=show-above-]:not(:has([data-toolbar-component=section] [data-toolbar-component=button],[data-toolbar-component=button-group] [data-toolbar-component=button])){display:none}
6
6
  ._19bv1b66{padding-left:var(--ds-space-050,4px)}
7
7
  ._1e0c1txw{display:flex}
@@ -13,7 +13,7 @@ import { ToolbarKeyboardNavigationProvider } from './ToolbarKeyboardNavigationPr
13
13
  import { ACTION_SUBJECT, ViewEventEmitter } from './ViewEventEmitter';
14
14
  const styles = {
15
15
  toolbarBase: "_2rko1qi0 _zulp1b66 _1e0c1txw _4cvr1h6o",
16
- toolbar: "_bfhk1bhr _4t3i14no _u5f31b66 _19bv1b66 _16qs1cd0",
16
+ toolbar: "_bfhk1bhr _4t3i14no _u5f31b66 _19bv1b66 _16qs130s",
17
17
  toolbarResponsive: "_195gpxbi",
18
18
  primaryToolbar: "_bfhkvuon _1tkezwfg",
19
19
  toolbarSeparator: "_1mj714no",
@@ -77,10 +77,12 @@ export const Toolbar = ({
77
77
  export const PrimaryToolbar = ({
78
78
  children,
79
79
  label,
80
+ breakpointPreset,
80
81
  reducedBreakpoints
81
82
  }) => {
82
83
  if (expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true)) {
83
84
  return /*#__PURE__*/React.createElement(ResponsiveContainer, {
85
+ breakpointPreset: breakpointPreset,
84
86
  reducedBreakpoints: reducedBreakpoints
85
87
  }, /*#__PURE__*/React.createElement(Box, {
86
88
  xcss: cx(styles.toolbarBase, styles.primaryToolbar, styles.hiddenSelectors),
@@ -7,17 +7,17 @@
7
7
  ._1tke1f4h{min-height:28px}
8
8
  ._4cvr1h6o{align-items:center}
9
9
  ._80om13gf{cursor:not-allowed}
10
- ._bfhkfg4m{background-color:var(--ds-background-selected,#e9f2ff)}
10
+ ._bfhk15s3{background-color:var(--ds-background-selected,#e9f2fe)}
11
11
  ._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
12
12
  ._o5721q9c{white-space:nowrap}
13
- ._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
14
- ._syaz1lh4{color:var(--ds-text-disabled,#091e424f)}
15
- ._syazaqb7{color:var(--ds-text-selected,#0c66e4)}
13
+ ._syaz1gmx{color:var(--ds-text-disabled,#080f214a)}
14
+ ._syaz6x5g{color:var(--ds-text-selected,#1868db)}
15
+ ._syazazsu{color:var(--ds-text-subtle,#505258)}
16
16
  ._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
17
17
  ._1ah3idpf:focus-visible{outline-offset:0}
18
18
  ._g0pbkb7n:focus-visible{z-index:1}
19
19
  ._oh03h2mm:focus-visible{position:relative}
20
- ._irr3166n:hover{background-color:var(--ds-background-neutral-subtle-hovered,#091e420f)}
21
- ._irr3i1yw:hover{background-color:var(--ds-background-selected-hovered,#cce0ff)}
22
- ._1di619ru:active{background-color:var(--ds-background-selected-pressed,#85b8ff)}
23
- ._1di61dty:active{background-color:var(--ds-background-neutral-subtle-pressed,#091e4224)}
20
+ ._irr31dpa:hover{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
21
+ ._irr3ufnl:hover{background-color:var(--ds-background-selected-hovered,#cfe1fd)}
22
+ ._1di6fcek:active{background-color:var(--ds-background-neutral-subtle-pressed,#0b120e24)}
23
+ ._1di6nozp:active{background-color:var(--ds-background-selected-pressed,#8fb8f6)}
@@ -6,10 +6,10 @@ 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 _11c82smr _1e0c1txw _bfhksm61 _o5721q9c _4cvr1h6o _1bah1h6o _1tke1f4h _syaz1gjq _19bvu2gc _u5f3u2gc _1ah3idpf _g0pbkb7n _oh03h2mm",
10
- enabled: "_irr3166n _1di61dty",
11
- disabled: "_syaz1lh4 _80om13gf",
12
- selected: "_bfhkfg4m _syazaqb7 _irr3i1yw _1di619ru"
9
+ button: "_zulp12x7 _2rko12b0 _11c82smr _1e0c1txw _bfhksm61 _o5721q9c _4cvr1h6o _1bah1h6o _1tke1f4h _syazazsu _19bvu2gc _u5f3u2gc _1ah3idpf _g0pbkb7n _oh03h2mm",
10
+ enabled: "_irr31dpa _1di6fcek",
11
+ disabled: "_syaz1gmx _80om13gf",
12
+ selected: "_bfhk15s3 _syaz6x5g _irr3ufnl _1di6nozp"
13
13
  };
14
14
  export const ToolbarButton = /*#__PURE__*/forwardRef(({
15
15
  iconBefore,
@@ -1,5 +1,5 @@
1
1
 
2
- ._19it7r9e{border:var(--ds-border-width,1px) solid var(--ds-border,#091e4224)}
2
+ ._19itia51{border:var(--ds-border-width,1px) solid var(--ds-border,#0b120e24)}
3
3
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._18u0r5cr{margin-left:var(--ds-space-negative-050,-4px)}
4
4
  ._1bah1h6o{justify-content:center}
5
5
  ._1bsbgktf{width:20px}
@@ -4,7 +4,7 @@ import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
5
  import { Box } from '@atlaskit/primitives/compiled';
6
6
  const styles = {
7
- colorSwatch: "_19it7r9e _2rko12b0 _1e0c1txw _1bah1h6o _4cvr1h6o _1bsbgktf _4t3igktf _18u0r5cr _2hwxr5cr"
7
+ colorSwatch: "_19itia51 _2rko12b0 _1e0c1txw _1bah1h6o _4cvr1h6o _1bsbgktf _4t3igktf _18u0r5cr _2hwxr5cr"
8
8
  };
9
9
  export const ToolbarColorSwatch = ({
10
10
  children,
@@ -6,15 +6,15 @@
6
6
  ._1tkezwfg{min-height:2pc}
7
7
  ._1ul9eoa3{min-width:225px}
8
8
  ._80om13gf{cursor:not-allowed}
9
- ._bfhkfg4m{background-color:var(--ds-background-selected,#e9f2ff)}
9
+ ._bfhk15s3{background-color:var(--ds-background-selected,#e9f2fe)}
10
10
  ._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
11
11
  ._kqswh2mm{position:relative}
12
- ._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
13
- ._syaz1lh4{color:var(--ds-text-disabled,#091e424f)}
14
- ._syazaqb7{color:var(--ds-text-selected,#0c66e4)}
12
+ ._syaz1gmx{color:var(--ds-text-disabled,#080f214a)}
13
+ ._syaz6x5g{color:var(--ds-text-selected,#1868db)}
14
+ ._syazazsu{color:var(--ds-text-subtle,#505258)}
15
15
  ._1bas12b0:focus-visible{border-radius:var(--ds-radius-small,4px)}
16
16
  ._1ah31i6y:focus-visible{outline-offset:var(--ds-space-negative-025,-2px)}
17
- ._irr3166n:hover{background-color:var(--ds-background-neutral-subtle-hovered,#091e420f)}
18
- ._irr3i1yw:hover{background-color:var(--ds-background-selected-hovered,#cce0ff)}
19
- ._1di619ru:active{background-color:var(--ds-background-selected-pressed,#85b8ff)}
20
- ._1di61dty:active{background-color:var(--ds-background-neutral-subtle-pressed,#091e4224)}
17
+ ._irr31dpa:hover{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
18
+ ._irr3ufnl:hover{background-color:var(--ds-background-selected-hovered,#cfe1fd)}
19
+ ._1di6fcek:active{background-color:var(--ds-background-neutral-subtle-pressed,#0b120e24)}
20
+ ._1di6nozp:active{background-color:var(--ds-background-selected-pressed,#8fb8f6)}
@@ -8,10 +8,10 @@ import { Pressable } from '@atlaskit/primitives/compiled';
8
8
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
9
  import { useToolbarDropdownMenu } from './ToolbarDropdownMenuContext';
10
10
  const styles = {
11
- toolbarDropdownItem: "_11c82smr _18zrutpp _1rjc1b66 _1e0c1txw _kqswh2mm _bfhksm61 _1bsb1osq _1tkezwfg _1ul9eoa3 _syaz1gjq _1bas12b0 _1ah31i6y",
12
- enabled: "_irr3166n _1di61dty",
13
- disabled: "_syaz1lh4 _80om13gf",
14
- selected: "_bfhkfg4m _syazaqb7 _irr3i1yw _1di619ru"
11
+ toolbarDropdownItem: "_11c82smr _18zrutpp _1rjc1b66 _1e0c1txw _kqswh2mm _bfhksm61 _1bsb1osq _1tkezwfg _1ul9eoa3 _syazazsu _1bas12b0 _1ah31i6y",
12
+ enabled: "_irr31dpa _1di6fcek",
13
+ disabled: "_syaz1gmx _80om13gf",
14
+ selected: "_bfhk15s3 _syaz6x5g _irr3ufnl _1di6nozp"
15
15
  };
16
16
  const CustomDropdownMenuItemButton = /*#__PURE__*/forwardRef(({
17
17
  children,
@@ -4,4 +4,4 @@
4
4
  ._1e0c1txw{display:flex}
5
5
  ._4cvr1h6o{align-items:center}
6
6
  ._4t3igktf{height:20px}
7
- ._bfhkmuej{background-color:var(--ds-border,#091e4224)}
7
+ ._bfhk1l7x{background-color:var(--ds-border,#0b120e24)}
@@ -18,7 +18,7 @@ const ToolbarSeparator = () => {
18
18
  "data-toolbar-component": "separator",
19
19
  role: "separator",
20
20
  "aria-orientation": "vertical",
21
- className: ax(["_195gu2gc _4t3igktf _1bsbt94y _bfhkmuej"])
21
+ className: ax(["_195gu2gc _4t3igktf _1bsbt94y _bfhk1l7x"])
22
22
  });
23
23
  };
24
24
  export const ToolbarSection = ({
@@ -22,7 +22,7 @@ export const TextColorIcon = ({
22
22
  }, /*#__PURE__*/React.createElement(Icon, {
23
23
  label: label,
24
24
  testId: testId,
25
- color: isDisabled ? "var(--ds-icon-disabled, #091E424F)" : iconColor,
25
+ color: isDisabled ? "var(--ds-icon-disabled, #080F214A)" : iconColor,
26
26
  shouldRecommendSmallIcon: shouldRecommendSmallIcon,
27
27
  spacing: spacing,
28
28
  size: size
@@ -11,7 +11,7 @@
11
11
  ._4cvr1h6o{align-items:center}
12
12
  ._4t3icr4y{height:var(--ds-space-300,26px)}
13
13
  ._80omtlke{cursor:pointer}
14
- ._bfhkm7j4{background-color:var(--ds-background-neutral,#091e420f)}
14
+ ._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
15
15
  ._ca0qidpf{padding-top:0}
16
16
  ._ca0qv77o{padding-top:var(--ds-space-025,2px)}
17
17
  ._kqswh2mm{position:relative}
@@ -19,8 +19,8 @@
19
19
  ._n3tdv77o{padding-bottom:var(--ds-space-025,2px)}
20
20
  ._u5f3idpf{padding-right:0}
21
21
  ._u5f3v77o{padding-right:var(--ds-space-025,2px)}
22
- ._jyzfmuej:focus-within{border-color:var(--ds-border,#091e4224)}
23
- ._y2mv1q03:focus{outline:var(--ds-border-width-focused,2px) solid var(--ds-border-focused,#388bff)}
24
- ._858umuej:focus{border-color:var(--ds-border,#091e4224)}
22
+ ._jyzf1l7x:focus-within{border-color:var(--ds-border,#0b120e24)}
23
+ ._y2mvdfik:focus{outline:var(--ds-border-width-focused,2px) solid var(--ds-border-focused,#4688ec)}
24
+ ._858u1l7x:focus{border-color:var(--ds-border,#0b120e24)}
25
25
  ._1bg4v77o:focus{outline-offset:var(--ds-space-025,2px)}
26
- ._4cvxmuej:hover{border-color:var(--ds-border,#091e4224)}
26
+ ._4cvx1l7x:hover{border-color:var(--ds-border,#0b120e24)}
@@ -42,7 +42,7 @@ export var Color = /*#__PURE__*/memo(function (_ref) {
42
42
  return /*#__PURE__*/React.createElement(Tooltip, {
43
43
  content: label
44
44
  }, /*#__PURE__*/React.createElement("span", {
45
- className: ax(["_2rko12b0 _1h6d1j28 _1dqonqa1 _189ee4h9 _1e0c1txw _4cvr1h6o _ca0qv77o _u5f3v77o _n3tdv77o _19bvv77o _858umuej _jyzfmuej _4cvxmuej"])
45
+ className: ax(["_2rko12b0 _1h6d1j28 _1dqonqa1 _189ee4h9 _1e0c1txw _4cvr1h6o _ca0qv77o _u5f3v77o _n3tdv77o _19bvv77o _858u1l7x _jyzf1l7x _4cvx1l7x"])
46
46
  }, /*#__PURE__*/React.createElement("button", {
47
47
  type: "button",
48
48
  "aria-label": label,
@@ -57,7 +57,7 @@ export var Color = /*#__PURE__*/memo(function (_ref) {
57
57
  border: "var(--ds-border-width, 1px)".concat(" solid ", borderColor)
58
58
  },
59
59
  autoFocus: autoFocus,
60
- className: ax(["_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _2rko12b0 _19it1ps9 _4t3icr4y _1bsbcr4y _bfhkm7j4 _80omtlke _1e0c1ule _kqswh2mm _y2mv1q03 _1bg4v77o"])
60
+ className: ax(["_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _2rko12b0 _19it1ps9 _4t3icr4y _1bsbcr4y _bfhki8nm _80omtlke _1e0c1ule _kqswh2mm _y2mvdfik _1bg4v77o"])
61
61
  }, !decorator && isSelected && /*#__PURE__*/React.createElement(EditorDoneIcon, {
62
62
  color: checkMarkColor,
63
63
  LEGACY_primaryColor: checkMarkColor,
@@ -31,7 +31,7 @@ function getCheckMarkColor(color, useIconToken) {
31
31
  // they are only intended for use with text colors (and there are different tokens
32
32
  // planned to be used when this extended to be used with other palettes).
33
33
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
34
- return contrastColor === '#FFFFFF' ? "var(--ds-icon-inverse, #FFFFFF)" : "var(--ds-icon, #44546F)";
34
+ return contrastColor === '#FFFFFF' ? "var(--ds-icon-inverse, #FFFFFF)" : "var(--ds-icon, #292A2E)";
35
35
  }
36
36
 
37
37
  /**
@@ -17,8 +17,9 @@
17
17
  @container toolbar-container (max-width: 408px){._gipeglyw._gipeglyw .show-above-md{display:none}._311r1ule._311r1ule .show-below-md{display:block}}
18
18
  @container toolbar-container (max-width: 410px){._6nrqglyw .show-above-sm{display:none}._1fq21ule .show-below-sm{display:block}}
19
19
  @container toolbar-container (max-width: 476px){._1ireglyw .show-above-md{display:none}._zy2m1ule .show-below-md{display:block}}
20
+ @container toolbar-container (max-width: 550px){._167iglyw._167iglyw .show-above-lg{display:none}._kyxb1ule._kyxb1ule .show-below-lg{display:block}}
20
21
  @container toolbar-container (max-width: 575px){._11u4glyw._11u4glyw .show-above-lg{display:none}._v1i61ule._v1i61ule .show-below-lg{display:block}}
21
- @container toolbar-container (max-width: 648px){._e2nbglyw._e2nbglyw._e2nbglyw .show-above-lg{display:none}._ol4q1ule._ol4q1ule._ol4q1ule .show-below-lg{display:block}}
22
+ @container toolbar-container (max-width: 648px){._4kfbglyw._4kfbglyw .show-above-lg{display:none}._j1h31ule._j1h31ule .show-below-lg{display:block}._e2nbglyw._e2nbglyw._e2nbglyw .show-above-lg{display:none}._ol4q1ule._ol4q1ule._ol4q1ule .show-below-lg{display:block}}
22
23
  @container toolbar-container (max-width: 768px){._hfbeglyw .show-above-lg{display:none}._gw6d1ule .show-below-lg{display:block}}
23
24
  @media (max-width:700px){._hmx4glyw .show-above-lg{display:none}._1rrm1ule .show-below-lg{display:block}}
24
25
  @media (max-width:533px){._ut18glyw .show-above-md{display:none}._1nwo1ule .show-below-md{display:block}}
@@ -6,15 +6,35 @@ import "./ResponsiveContainer.compiled.css";
6
6
  import { ax, ix } from "@compiled/react/runtime";
7
7
  import React from 'react';
8
8
  import { cx } from '@atlaskit/css';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
9
10
  import { Box } from '@atlaskit/primitives/compiled';
10
11
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
11
12
  var styles = {
12
13
  responsiveContainer: "_1bsb1osq _7cca15wb _1f38ptqj _1bx91ule _1ehg1ule _1onx1ule _1xt01ule _zg9wglyw _1a2cglyw _sum2glyw _1vtcglyw",
14
+ fullpage: "_t3a8glyw _1x5z1ule _6nrqglyw _1fq21ule _1ireglyw _zy2m1ule _hfbeglyw _gw6d1ule",
15
+ reduced: "_j094glyw _1mc51ule _gipeglyw _311r1ule _11u4glyw _v1i61ule _19x4glyw _qck01ule",
16
+ jiraIssue: "_j094glyw _1mc51ule _gipeglyw _311r1ule _11u4glyw _v1i61ule _19x4glyw _qck01ule",
17
+ jsmComment: "_j094glyw _1mc51ule _gipeglyw _311r1ule _167iglyw _kyxb1ule _19x4glyw _qck01ule",
18
+ confluenceComment: "_j094glyw _1mc51ule _gipeglyw _311r1ule _4kfbglyw _j1h31ule _19x4glyw _qck01ule",
13
19
  responsiveRules: "_t3a8glyw _1x5z1ule _6nrqglyw _1fq21ule _1ireglyw _zy2m1ule _hfbeglyw _gw6d1ule",
14
20
  responsiveRulesReduced: "_j094glyw _1mc51ule _gipeglyw _311r1ule _11u4glyw _v1i61ule _19x4glyw _qck01ule",
15
21
  responsiveRulesReducedOverridden: "_e2nbglyw _ol4q1ule",
16
22
  responsiveRulesWrapper: "_1bx91ule _1ehg1ule _1onx1ule _1xt01ule _zg9wglyw _1a2cglyw _sum2glyw _1vtcglyw _33p2glyw _1dre1ule _u47mglyw _rut51ule _fj5dglyw _5wt61ule _hmx4glyw _1rrm1ule _ut18glyw _1nwo1ule _19fzglyw _1r831ule"
17
23
  };
24
+
25
+ /**
26
+ * Breakpoint preset names for ResponsiveContainer.
27
+ * Each preset defines a specific set of breakpoints optimized for different use cases.
28
+ */
29
+
30
+ // Map preset names to camelCase style keys
31
+ var presetStyleMap = {
32
+ 'fullpage': styles.fullpage,
33
+ 'reduced': styles.reduced,
34
+ 'jira-issue': styles.jiraIssue,
35
+ 'jsm-comment': styles.jsmComment,
36
+ 'confluence-comment': styles.confluenceComment
37
+ };
18
38
  /**
19
39
  * A responsive container that enables container query-based responsive design using CSS container queries.
20
40
  * This component establishes a containment context named 'toolbar-container' that child components can
@@ -55,12 +75,21 @@ var styles = {
55
75
  * </ResponsiveContainer>
56
76
  * ```
57
77
  *
58
- * @param children - React nodes to render within the responsive container context
78
+ * @param preset - Selects the breakpoint preset for the responsive container
79
+ *
80
+ * @param reducedBreakpoints - Legacy prop for reduced breakpoints (deprecated, use preset instead)
59
81
  * @returns A Box component with container query styles applied
60
82
  */
61
83
  export var ResponsiveContainer = function ResponsiveContainer(_ref) {
62
84
  var children = _ref.children,
85
+ breakpointPreset = _ref.breakpointPreset,
63
86
  reducedBreakpoints = _ref.reducedBreakpoints;
87
+ // Use new preset-based logic when preset is provided and feature gate is enabled
88
+ if (breakpointPreset && fg('platform_editor_toolbar_aifc_responsive_improve')) {
89
+ return /*#__PURE__*/React.createElement(Box, {
90
+ xcss: cx(styles.responsiveContainer, presetStyleMap[breakpointPreset])
91
+ }, children);
92
+ }
64
93
  return /*#__PURE__*/React.createElement(Box, {
65
94
  xcss: cx(styles.responsiveContainer, reducedBreakpoints ? styles.responsiveRulesReduced : styles.responsiveRules, reducedBreakpoints && expValEquals('platform_editor_toolbar_aifc_patch_6', 'isEnabled', true) && styles.responsiveRulesReducedOverridden)
66
95
  }, children);
@@ -1,7 +1,7 @@
1
1
 
2
2
  ._2rko1qi0{border-radius:var(--ds-radius-medium,6px)}
3
3
  ._zulp1b66{gap:var(--ds-space-050,4px)}
4
- ._195gpxbi{margin-inline:var(--ds-space-200,1pc)}._16qs1cd0{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #091e4226,0 0 1px #091e424f)}
4
+ ._195gpxbi{margin-inline:var(--ds-space-200,1pc)}._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
5
5
  ._18shglyw [class*=show-above-]:not(:has([data-toolbar-component=section] [data-toolbar-component=button],[data-toolbar-component=button-group] [data-toolbar-component=button])){display:none}
6
6
  ._19bv1b66{padding-left:var(--ds-space-050,4px)}
7
7
  ._1e0c1txw{display:flex}
@@ -13,7 +13,7 @@ import { ToolbarKeyboardNavigationProvider } from './ToolbarKeyboardNavigationPr
13
13
  import { ACTION_SUBJECT, ViewEventEmitter } from './ViewEventEmitter';
14
14
  var styles = {
15
15
  toolbarBase: "_2rko1qi0 _zulp1b66 _1e0c1txw _4cvr1h6o",
16
- toolbar: "_bfhk1bhr _4t3i14no _u5f31b66 _19bv1b66 _16qs1cd0",
16
+ toolbar: "_bfhk1bhr _4t3i14no _u5f31b66 _19bv1b66 _16qs130s",
17
17
  toolbarResponsive: "_195gpxbi",
18
18
  primaryToolbar: "_bfhkvuon _1tkezwfg",
19
19
  toolbarSeparator: "_1mj714no",
@@ -73,9 +73,11 @@ export var Toolbar = function Toolbar(_ref) {
73
73
  export var PrimaryToolbar = function PrimaryToolbar(_ref2) {
74
74
  var children = _ref2.children,
75
75
  label = _ref2.label,
76
+ breakpointPreset = _ref2.breakpointPreset,
76
77
  reducedBreakpoints = _ref2.reducedBreakpoints;
77
78
  if (expValEquals('platform_editor_toolbar_aifc_responsive', 'isEnabled', true)) {
78
79
  return /*#__PURE__*/React.createElement(ResponsiveContainer, {
80
+ breakpointPreset: breakpointPreset,
79
81
  reducedBreakpoints: reducedBreakpoints
80
82
  }, /*#__PURE__*/React.createElement(Box, {
81
83
  xcss: cx(styles.toolbarBase, styles.primaryToolbar, styles.hiddenSelectors),
@@ -7,17 +7,17 @@
7
7
  ._1tke1f4h{min-height:28px}
8
8
  ._4cvr1h6o{align-items:center}
9
9
  ._80om13gf{cursor:not-allowed}
10
- ._bfhkfg4m{background-color:var(--ds-background-selected,#e9f2ff)}
10
+ ._bfhk15s3{background-color:var(--ds-background-selected,#e9f2fe)}
11
11
  ._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
12
12
  ._o5721q9c{white-space:nowrap}
13
- ._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
14
- ._syaz1lh4{color:var(--ds-text-disabled,#091e424f)}
15
- ._syazaqb7{color:var(--ds-text-selected,#0c66e4)}
13
+ ._syaz1gmx{color:var(--ds-text-disabled,#080f214a)}
14
+ ._syaz6x5g{color:var(--ds-text-selected,#1868db)}
15
+ ._syazazsu{color:var(--ds-text-subtle,#505258)}
16
16
  ._u5f3u2gc{padding-right:var(--ds-space-100,8px)}
17
17
  ._1ah3idpf:focus-visible{outline-offset:0}
18
18
  ._g0pbkb7n:focus-visible{z-index:1}
19
19
  ._oh03h2mm:focus-visible{position:relative}
20
- ._irr3166n:hover{background-color:var(--ds-background-neutral-subtle-hovered,#091e420f)}
21
- ._irr3i1yw:hover{background-color:var(--ds-background-selected-hovered,#cce0ff)}
22
- ._1di619ru:active{background-color:var(--ds-background-selected-pressed,#85b8ff)}
23
- ._1di61dty:active{background-color:var(--ds-background-neutral-subtle-pressed,#091e4224)}
20
+ ._irr31dpa:hover{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
21
+ ._irr3ufnl:hover{background-color:var(--ds-background-selected-hovered,#cfe1fd)}
22
+ ._1di6fcek:active{background-color:var(--ds-background-neutral-subtle-pressed,#0b120e24)}
23
+ ._1di6nozp:active{background-color:var(--ds-background-selected-pressed,#8fb8f6)}
@@ -6,10 +6,10 @@ 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 _11c82smr _1e0c1txw _bfhksm61 _o5721q9c _4cvr1h6o _1bah1h6o _1tke1f4h _syaz1gjq _19bvu2gc _u5f3u2gc _1ah3idpf _g0pbkb7n _oh03h2mm",
10
- enabled: "_irr3166n _1di61dty",
11
- disabled: "_syaz1lh4 _80om13gf",
12
- selected: "_bfhkfg4m _syazaqb7 _irr3i1yw _1di619ru"
9
+ button: "_zulp12x7 _2rko12b0 _11c82smr _1e0c1txw _bfhksm61 _o5721q9c _4cvr1h6o _1bah1h6o _1tke1f4h _syazazsu _19bvu2gc _u5f3u2gc _1ah3idpf _g0pbkb7n _oh03h2mm",
10
+ enabled: "_irr31dpa _1di6fcek",
11
+ disabled: "_syaz1gmx _80om13gf",
12
+ selected: "_bfhk15s3 _syaz6x5g _irr3ufnl _1di6nozp"
13
13
  };
14
14
  export var ToolbarButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
15
15
  var iconBefore = _ref.iconBefore,
@@ -1,5 +1,5 @@
1
1
 
2
- ._19it7r9e{border:var(--ds-border-width,1px) solid var(--ds-border,#091e4224)}
2
+ ._19itia51{border:var(--ds-border-width,1px) solid var(--ds-border,#0b120e24)}
3
3
  ._2rko12b0{border-radius:var(--ds-radius-small,4px)}._18u0r5cr{margin-left:var(--ds-space-negative-050,-4px)}
4
4
  ._1bah1h6o{justify-content:center}
5
5
  ._1bsbgktf{width:20px}
@@ -4,7 +4,7 @@ import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
5
5
  import { Box } from '@atlaskit/primitives/compiled';
6
6
  var styles = {
7
- colorSwatch: "_19it7r9e _2rko12b0 _1e0c1txw _1bah1h6o _4cvr1h6o _1bsbgktf _4t3igktf _18u0r5cr _2hwxr5cr"
7
+ colorSwatch: "_19itia51 _2rko12b0 _1e0c1txw _1bah1h6o _4cvr1h6o _1bsbgktf _4t3igktf _18u0r5cr _2hwxr5cr"
8
8
  };
9
9
  export var ToolbarColorSwatch = function ToolbarColorSwatch(_ref) {
10
10
  var children = _ref.children,
@@ -6,15 +6,15 @@
6
6
  ._1tkezwfg{min-height:2pc}
7
7
  ._1ul9eoa3{min-width:225px}
8
8
  ._80om13gf{cursor:not-allowed}
9
- ._bfhkfg4m{background-color:var(--ds-background-selected,#e9f2ff)}
9
+ ._bfhk15s3{background-color:var(--ds-background-selected,#e9f2fe)}
10
10
  ._bfhksm61{background-color:var(--ds-background-neutral-subtle,#00000000)}
11
11
  ._kqswh2mm{position:relative}
12
- ._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
13
- ._syaz1lh4{color:var(--ds-text-disabled,#091e424f)}
14
- ._syazaqb7{color:var(--ds-text-selected,#0c66e4)}
12
+ ._syaz1gmx{color:var(--ds-text-disabled,#080f214a)}
13
+ ._syaz6x5g{color:var(--ds-text-selected,#1868db)}
14
+ ._syazazsu{color:var(--ds-text-subtle,#505258)}
15
15
  ._1bas12b0:focus-visible{border-radius:var(--ds-radius-small,4px)}
16
16
  ._1ah31i6y:focus-visible{outline-offset:var(--ds-space-negative-025,-2px)}
17
- ._irr3166n:hover{background-color:var(--ds-background-neutral-subtle-hovered,#091e420f)}
18
- ._irr3i1yw:hover{background-color:var(--ds-background-selected-hovered,#cce0ff)}
19
- ._1di619ru:active{background-color:var(--ds-background-selected-pressed,#85b8ff)}
20
- ._1di61dty:active{background-color:var(--ds-background-neutral-subtle-pressed,#091e4224)}
17
+ ._irr31dpa:hover{background-color:var(--ds-background-neutral-subtle-hovered,#0515240f)}
18
+ ._irr3ufnl:hover{background-color:var(--ds-background-selected-hovered,#cfe1fd)}
19
+ ._1di6fcek:active{background-color:var(--ds-background-neutral-subtle-pressed,#0b120e24)}
20
+ ._1di6nozp:active{background-color:var(--ds-background-selected-pressed,#8fb8f6)}
@@ -11,10 +11,10 @@ import { Pressable } from '@atlaskit/primitives/compiled';
11
11
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
12
12
  import { useToolbarDropdownMenu } from './ToolbarDropdownMenuContext';
13
13
  var styles = {
14
- toolbarDropdownItem: "_11c82smr _18zrutpp _1rjc1b66 _1e0c1txw _kqswh2mm _bfhksm61 _1bsb1osq _1tkezwfg _1ul9eoa3 _syaz1gjq _1bas12b0 _1ah31i6y",
15
- enabled: "_irr3166n _1di61dty",
16
- disabled: "_syaz1lh4 _80om13gf",
17
- selected: "_bfhkfg4m _syazaqb7 _irr3i1yw _1di619ru"
14
+ toolbarDropdownItem: "_11c82smr _18zrutpp _1rjc1b66 _1e0c1txw _kqswh2mm _bfhksm61 _1bsb1osq _1tkezwfg _1ul9eoa3 _syazazsu _1bas12b0 _1ah31i6y",
15
+ enabled: "_irr31dpa _1di6fcek",
16
+ disabled: "_syaz1gmx _80om13gf",
17
+ selected: "_bfhk15s3 _syaz6x5g _irr3ufnl _1di6nozp"
18
18
  };
19
19
  var CustomDropdownMenuItemButton = /*#__PURE__*/forwardRef(function (_ref, ref) {
20
20
  var children = _ref.children,
@@ -4,4 +4,4 @@
4
4
  ._1e0c1txw{display:flex}
5
5
  ._4cvr1h6o{align-items:center}
6
6
  ._4t3igktf{height:20px}
7
- ._bfhkmuej{background-color:var(--ds-border,#091e4224)}
7
+ ._bfhk1l7x{background-color:var(--ds-border,#0b120e24)}
@@ -18,7 +18,7 @@ var ToolbarSeparator = function ToolbarSeparator() {
18
18
  "data-toolbar-component": "separator",
19
19
  role: "separator",
20
20
  "aria-orientation": "vertical",
21
- className: ax(["_195gu2gc _4t3igktf _1bsbt94y _bfhkmuej"])
21
+ className: ax(["_195gu2gc _4t3igktf _1bsbt94y _bfhk1l7x"])
22
22
  });
23
23
  };
24
24
  export var ToolbarSection = function ToolbarSection(_ref) {
@@ -21,7 +21,7 @@ export var TextColorIcon = function TextColorIcon(_ref) {
21
21
  }, /*#__PURE__*/React.createElement(Icon, {
22
22
  label: label,
23
23
  testId: testId,
24
- color: isDisabled ? "var(--ds-icon-disabled, #091E424F)" : iconColor,
24
+ color: isDisabled ? "var(--ds-icon-disabled, #080F214A)" : iconColor,
25
25
  shouldRecommendSmallIcon: shouldRecommendSmallIcon,
26
26
  spacing: spacing,
27
27
  size: size
@@ -11,7 +11,7 @@ export { ToolbarSection, SeparatorPosition } from './ui/ToolbarSection';
11
11
  export { ToolbarTooltip } from './ui/ToolbarTooltip';
12
12
  export { ToolbarColorSwatch } from './ui/ToolbarColorSwatch';
13
13
  export { useToolbarDropdownMenu, ToolbarDropdownMenuProvider, } from './ui/ToolbarDropdownMenuContext';
14
- export { ResponsiveContainer } from './ui/ResponsiveContainer';
14
+ export { ResponsiveContainer, type BreakpointPreset } from './ui/ResponsiveContainer';
15
15
  export { Show } from './ui/Show';
16
16
  export { AIAdjustLengthIcon } from './ui/icons/AIAdjustLengthIcon';
17
17
  export { AIChatIcon } from './ui/icons/AIChatIcon';
@@ -1,9 +1,26 @@
1
1
  import React, { type ReactNode } from 'react';
2
+ /**
3
+ * Breakpoint preset names for ResponsiveContainer.
4
+ * Each preset defines a specific set of breakpoints optimized for different use cases.
5
+ */
6
+ export type BreakpointPreset = 'fullpage' | 'reduced' | 'jira-issue' | 'jsm-comment' | 'confluence-comment';
2
7
  export type ResponsiveContainerProps = {
3
- children: ReactNode;
4
8
  /**
5
- * This flag changes the breakpoint definitions, which reduces them to cater for smaller editor widths.
9
+ * Selects the breakpoint preset for the responsive container.
10
+ *
11
+ * Available presets:
12
+ * - 'fullpage': (410, 476, 768, 1024) - Editor full-page experiences
13
+ * - 'reduced': (210, 408, 575, 1024) - Default compact toolbars, constrained layouts
14
+ * - 'jira-issue': (210, 408, 575, 1024) - Jira issue view and similar contexts
15
+ * - 'jsm-comment': (210, 408, 550, 1024) - JSM comment editor with canned responses button
16
+ * - 'confluence-comment': (210, 408, 648, 1024) - Confluence comment editor and inline contexts
6
17
  *
18
+ * @default 'fullpage'
19
+ */
20
+ breakpointPreset?: BreakpointPreset;
21
+ children: ReactNode;
22
+ /**
23
+ * Use `preset` prop instead. This flag changes the breakpoint definitions, which reduces them to cater for smaller editor widths.
7
24
  * Usages - for smaller editors such as comments
8
25
  */
9
26
  reducedBreakpoints?: boolean;
@@ -48,10 +65,12 @@ export type ResponsiveContainerProps = {
48
65
  * </ResponsiveContainer>
49
66
  * ```
50
67
  *
51
- * @param children - React nodes to render within the responsive container context
68
+ * @param preset - Selects the breakpoint preset for the responsive container
69
+ *
70
+ * @param reducedBreakpoints - Legacy prop for reduced breakpoints (deprecated, use preset instead)
52
71
  * @returns A Box component with container query styles applied
53
72
  */
54
- export declare const ResponsiveContainer: ({ children, reducedBreakpoints }: ResponsiveContainerProps) => React.JSX.Element;
73
+ export declare const ResponsiveContainer: ({ children, breakpointPreset, reducedBreakpoints }: ResponsiveContainerProps) => React.JSX.Element;
55
74
  /**
56
75
  * A wrapper that supports responsiveness with media queries. It needs to used together with Show component
57
76
  */
@@ -21,5 +21,5 @@ type PrimaryToolbarProps = ToolbarProps & ResponsiveContainerProps;
21
21
  /**
22
22
  * A simple component representing a toolbar without box shadows - used to represent a primary toolbar
23
23
  */
24
- export declare const PrimaryToolbar: ({ children, label, reducedBreakpoints }: PrimaryToolbarProps) => React.JSX.Element;
24
+ export declare const PrimaryToolbar: ({ children, label, breakpointPreset, reducedBreakpoints }: PrimaryToolbarProps) => React.JSX.Element;
25
25
  export {};
@@ -11,7 +11,7 @@ export { ToolbarSection, SeparatorPosition } from './ui/ToolbarSection';
11
11
  export { ToolbarTooltip } from './ui/ToolbarTooltip';
12
12
  export { ToolbarColorSwatch } from './ui/ToolbarColorSwatch';
13
13
  export { useToolbarDropdownMenu, ToolbarDropdownMenuProvider, } from './ui/ToolbarDropdownMenuContext';
14
- export { ResponsiveContainer } from './ui/ResponsiveContainer';
14
+ export { ResponsiveContainer, type BreakpointPreset } from './ui/ResponsiveContainer';
15
15
  export { Show } from './ui/Show';
16
16
  export { AIAdjustLengthIcon } from './ui/icons/AIAdjustLengthIcon';
17
17
  export { AIChatIcon } from './ui/icons/AIChatIcon';
@@ -1,9 +1,26 @@
1
1
  import React, { type ReactNode } from 'react';
2
+ /**
3
+ * Breakpoint preset names for ResponsiveContainer.
4
+ * Each preset defines a specific set of breakpoints optimized for different use cases.
5
+ */
6
+ export type BreakpointPreset = 'fullpage' | 'reduced' | 'jira-issue' | 'jsm-comment' | 'confluence-comment';
2
7
  export type ResponsiveContainerProps = {
3
- children: ReactNode;
4
8
  /**
5
- * This flag changes the breakpoint definitions, which reduces them to cater for smaller editor widths.
9
+ * Selects the breakpoint preset for the responsive container.
10
+ *
11
+ * Available presets:
12
+ * - 'fullpage': (410, 476, 768, 1024) - Editor full-page experiences
13
+ * - 'reduced': (210, 408, 575, 1024) - Default compact toolbars, constrained layouts
14
+ * - 'jira-issue': (210, 408, 575, 1024) - Jira issue view and similar contexts
15
+ * - 'jsm-comment': (210, 408, 550, 1024) - JSM comment editor with canned responses button
16
+ * - 'confluence-comment': (210, 408, 648, 1024) - Confluence comment editor and inline contexts
6
17
  *
18
+ * @default 'fullpage'
19
+ */
20
+ breakpointPreset?: BreakpointPreset;
21
+ children: ReactNode;
22
+ /**
23
+ * Use `preset` prop instead. This flag changes the breakpoint definitions, which reduces them to cater for smaller editor widths.
7
24
  * Usages - for smaller editors such as comments
8
25
  */
9
26
  reducedBreakpoints?: boolean;
@@ -48,10 +65,12 @@ export type ResponsiveContainerProps = {
48
65
  * </ResponsiveContainer>
49
66
  * ```
50
67
  *
51
- * @param children - React nodes to render within the responsive container context
68
+ * @param preset - Selects the breakpoint preset for the responsive container
69
+ *
70
+ * @param reducedBreakpoints - Legacy prop for reduced breakpoints (deprecated, use preset instead)
52
71
  * @returns A Box component with container query styles applied
53
72
  */
54
- export declare const ResponsiveContainer: ({ children, reducedBreakpoints }: ResponsiveContainerProps) => React.JSX.Element;
73
+ export declare const ResponsiveContainer: ({ children, breakpointPreset, reducedBreakpoints }: ResponsiveContainerProps) => React.JSX.Element;
55
74
  /**
56
75
  * A wrapper that supports responsiveness with media queries. It needs to used together with Show component
57
76
  */
@@ -21,5 +21,5 @@ type PrimaryToolbarProps = ToolbarProps & ResponsiveContainerProps;
21
21
  /**
22
22
  * A simple component representing a toolbar without box shadows - used to represent a primary toolbar
23
23
  */
24
- export declare const PrimaryToolbar: ({ children, label, reducedBreakpoints }: PrimaryToolbarProps) => React.JSX.Element;
24
+ export declare const PrimaryToolbar: ({ children, label, breakpointPreset, reducedBreakpoints }: PrimaryToolbarProps) => React.JSX.Element;
25
25
  export {};
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org/"
5
5
  },
6
- "version": "0.17.3",
6
+ "version": "0.17.5",
7
7
  "description": "Common UI for Toolbars across the platform",
8
8
  "atlassian": {
9
9
  "team": "Editor: Jenga",
@@ -26,14 +26,14 @@
26
26
  "@atlaskit/button": "^23.6.0",
27
27
  "@atlaskit/css": "^0.15.0",
28
28
  "@atlaskit/dropdown-menu": "^16.3.0",
29
- "@atlaskit/icon": "^28.5.0",
30
- "@atlaskit/icon-lab": "^5.11.0",
29
+ "@atlaskit/icon": "^29.0.0",
30
+ "@atlaskit/icon-lab": "^5.12.0",
31
31
  "@atlaskit/logo": "^19.9.0",
32
32
  "@atlaskit/platform-feature-flags": "^1.1.0",
33
33
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
34
34
  "@atlaskit/popup": "^4.6.0",
35
35
  "@atlaskit/primitives": "^16.1.0",
36
- "@atlaskit/tmp-editor-statsig": "^13.32.0",
36
+ "@atlaskit/tmp-editor-statsig": "^13.35.0",
37
37
  "@atlaskit/tokens": "^8.0.0",
38
38
  "@atlaskit/tooltip": "^20.8.0",
39
39
  "@babel/runtime": "^7.0.0",
@@ -89,6 +89,9 @@
89
89
  "platform-feature-flags": {
90
90
  "platform_editor_toolbar_aifc_patch_7": {
91
91
  "type": "boolean"
92
+ },
93
+ "platform_editor_toolbar_aifc_responsive_improve": {
94
+ "type": "boolean"
92
95
  }
93
96
  }
94
97
  }