@atlaskit/side-navigation 3.4.1 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @atlaskit/side-navigation
2
2
 
3
+ ## 3.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#137781](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/137781)
8
+ [`21bfb50836bad`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/21bfb50836bad) -
9
+ Migrated to use new iconography behind a feature flag.
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
15
+ ## 3.4.2
16
+
17
+ ### Patch Changes
18
+
19
+ - [#129726](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/129726)
20
+ [`778c15c1d279a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/778c15c1d279a) -
21
+ [ux] Removed feature flag
22
+ `platform.design-system-team.side-navigation-tokenised-typography-styles` resulting in minor
23
+ visual changes to typography.
24
+
3
25
  ## 3.4.1
4
26
 
5
27
  ### Patch Changes
@@ -30,9 +30,6 @@
30
30
  {
31
31
  "path": "../../motion/afm-cc/tsconfig.json"
32
32
  },
33
- {
34
- "path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
35
- },
36
33
  {
37
34
  "path": "../../primitives/afm-cc/tsconfig.json"
38
35
  },
@@ -29,9 +29,6 @@
29
29
  {
30
30
  "path": "../../motion/afm-jira/tsconfig.json"
31
31
  },
32
- {
33
- "path": "../../../platform/feature-flags/afm-jira/tsconfig.json"
34
- },
35
32
  {
36
33
  "path": "../../primitives/afm-jira/tsconfig.json"
37
34
  },
@@ -29,9 +29,6 @@
29
29
  {
30
30
  "path": "../../motion/afm-post-office/tsconfig.json"
31
31
  },
32
- {
33
- "path": "../../../platform/feature-flags/afm-post-office/tsconfig.json"
34
- },
35
32
  {
36
33
  "path": "../../primitives/afm-post-office/tsconfig.json"
37
34
  },
@@ -10,7 +10,6 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
10
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
11
  var _react = require("react");
12
12
  var _react2 = require("@emotion/react");
13
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
13
  var _colors = require("@atlaskit/theme/colors");
15
14
  var _styles = require("../../common/styles");
16
15
  var _Item = require("../Item");
@@ -21,8 +20,6 @@ var _excluded = ["children", "data-testid"],
21
20
  * @jsx jsx
22
21
  */
23
22
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
24
- 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; }
25
- 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; }
26
23
  var containerStyles = (0, _react2.css)({
27
24
  display: 'block',
28
25
  position: 'relative'
@@ -74,15 +71,10 @@ var Header = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
74
71
  var _ref3;
75
72
  return _ref3 = {
76
73
  userSelect: 'auto'
77
- }, (0, _defineProperty2.default)(_ref3, '[data-item-title]', _objectSpread(_objectSpread({}, (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.side-navigation-tokenised-typography-styles') ? {
78
- font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
79
- } : {
80
- fontSize: '0.875rem',
81
- letterSpacing: '-0.003em',
82
- fontWeight: "var(--ds-font-weight-semibold, 600)"
83
- }), {}, {
74
+ }, (0, _defineProperty2.default)(_ref3, '[data-item-title]', {
75
+ font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
84
76
  color: "var(--ds-text, ".concat(_colors.N500, ")")
85
- })), (0, _defineProperty2.default)(_ref3, 'div&:hover', {
77
+ }), (0, _defineProperty2.default)(_ref3, 'div&:hover', {
86
78
  backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
87
79
  cursor: 'default'
88
80
  }), (0, _defineProperty2.default)(_ref3, 'div&:active', {
@@ -10,7 +10,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
10
10
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
11
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
12
12
  var _react = _interopRequireWildcard(require("react"));
13
- var _arrowLeftCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/arrow-left-circle"));
13
+ var _arrowLeftArrowLeftCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/arrow-left--arrow-left-circle"));
14
14
  var _colors = require("@atlaskit/theme/colors");
15
15
  var _buttonItem = _interopRequireDefault(require("./button-item"));
16
16
  var _excluded = ["cssFn", "iconBefore", "onClick", "isSelected"];
@@ -28,8 +28,9 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
28
28
  var GoBackItem = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
29
29
  var cssFn = _ref.cssFn,
30
30
  _ref$iconBefore = _ref.iconBefore,
31
- iconBefore = _ref$iconBefore === void 0 ? /*#__PURE__*/_react.default.createElement(_arrowLeftCircle.default, {
32
- secondaryColor: "var(--ds-surface, ".concat(_colors.N10, ")"),
31
+ iconBefore = _ref$iconBefore === void 0 ? /*#__PURE__*/_react.default.createElement(_arrowLeftArrowLeftCircle.default, {
32
+ color: "currentColor",
33
+ LEGACY_secondaryColor: "var(--ds-surface, ".concat(_colors.N10, ")"),
33
34
  label: ""
34
35
  }) : _ref$iconBefore,
35
36
  onClick = _ref.onClick,
@@ -13,7 +13,7 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
13
13
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
14
14
  var _react = _interopRequireWildcard(require("react"));
15
15
  var _react2 = require("@emotion/react");
16
- var _arrowRightCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/arrow-right-circle"));
16
+ var _arrowRightArrowRightCircle = _interopRequireDefault(require("@atlaskit/icon/core/migration/arrow-right--arrow-right-circle"));
17
17
  var _primitives = require("@atlaskit/primitives");
18
18
  var _colors = require("@atlaskit/theme/colors");
19
19
  var _styles = require("../../common/styles");
@@ -130,9 +130,10 @@ var NestingItem = function NestingItem(props) {
130
130
  "data-right-arrow": true,
131
131
  xcss: iconContainerStyles,
132
132
  as: "span"
133
- }, (0, _react2.jsx)(_arrowRightCircle.default, {
133
+ }, (0, _react2.jsx)(_arrowRightArrowRightCircle.default, {
134
134
  testId: testId && "".concat(testId, "--item--right-arrow"),
135
- secondaryColor: "var(--ds-surface, ".concat(_colors.N10, ")"),
135
+ color: "currentColor",
136
+ LEGACY_secondaryColor: "var(--ds-surface, ".concat(_colors.N10, ")"),
136
137
  label: ""
137
138
  }))),
138
139
  onClick: onClickHandler,
@@ -7,7 +7,6 @@ import { forwardRef } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { css, jsx } from '@emotion/react';
10
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
11
10
  import { N500 } from '@atlaskit/theme/colors';
12
11
  import { overrideStyleFunction } from '../../common/styles';
13
12
  import { CustomItem } from '../Item';
@@ -61,13 +60,7 @@ const Header = /*#__PURE__*/forwardRef((props, ref) => {
61
60
  const cssFn = overrideStyleFunction(() => ({
62
61
  userSelect: 'auto',
63
62
  ['[data-item-title]']: {
64
- ...(getBooleanFF('platform.design-system-team.side-navigation-tokenised-typography-styles') ? {
65
- font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
66
- } : {
67
- fontSize: '0.875rem',
68
- letterSpacing: '-0.003em',
69
- fontWeight: "var(--ds-font-weight-semibold, 600)"
70
- }),
63
+ font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
71
64
  color: `var(--ds-text, ${N500})`
72
65
  },
73
66
  // Will look interactive if the `component` is anything other than a div.
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { forwardRef, useCallback, useState } from 'react';
3
- import LeftArrow from '@atlaskit/icon/glyph/arrow-left-circle';
3
+ import ArrowLeftIcon from '@atlaskit/icon/core/migration/arrow-left--arrow-left-circle';
4
4
  import { N10 } from '@atlaskit/theme/colors';
5
5
  import ButtonItem from './button-item';
6
6
  /**
@@ -14,8 +14,9 @@ import ButtonItem from './button-item';
14
14
  */
15
15
  const GoBackItem = /*#__PURE__*/forwardRef(({
16
16
  cssFn,
17
- iconBefore = /*#__PURE__*/React.createElement(LeftArrow, {
18
- secondaryColor: `var(--ds-surface, ${N10})`,
17
+ iconBefore = /*#__PURE__*/React.createElement(ArrowLeftIcon, {
18
+ color: "currentColor",
19
+ LEGACY_secondaryColor: `var(--ds-surface, ${N10})`,
19
20
  label: ""
20
21
  }),
21
22
  onClick,
@@ -7,7 +7,7 @@ import React, { Fragment, useCallback, useMemo, useState } from 'react';
7
7
 
8
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
9
  import { jsx } from '@emotion/react';
10
- import RightArrow from '@atlaskit/icon/glyph/arrow-right-circle';
10
+ import ArrowRightIcon from '@atlaskit/icon/core/migration/arrow-right--arrow-right-circle';
11
11
  import { Box, xcss } from '@atlaskit/primitives';
12
12
  import { N10 } from '@atlaskit/theme/colors';
13
13
  import { overrideStyleFunction } from '../../common/styles';
@@ -110,9 +110,10 @@ const NestingItem = props => {
110
110
  "data-right-arrow": true,
111
111
  xcss: iconContainerStyles,
112
112
  as: "span"
113
- }, jsx(RightArrow, {
113
+ }, jsx(ArrowRightIcon, {
114
114
  testId: testId && `${testId}--item--right-arrow`,
115
- secondaryColor: `var(--ds-surface, ${N10})`,
115
+ color: "currentColor",
116
+ LEGACY_secondaryColor: `var(--ds-surface, ${N10})`,
116
117
  label: ""
117
118
  }))),
118
119
  onClick: onClickHandler,
@@ -3,8 +3,6 @@ import _extends from "@babel/runtime/helpers/extends";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["children", "data-testid"],
5
5
  _excluded2 = ["children"];
6
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
8
6
  /**
9
7
  * @jsxRuntime classic
10
8
  * @jsx jsx
@@ -13,7 +11,6 @@ import { forwardRef } from 'react';
13
11
 
14
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
15
13
  import { css, jsx } from '@emotion/react';
16
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
17
14
  import { N500 } from '@atlaskit/theme/colors';
18
15
  import { overrideStyleFunction } from '../../common/styles';
19
16
  import { CustomItem } from '../Item';
@@ -68,15 +65,10 @@ var Header = /*#__PURE__*/forwardRef(function (props, ref) {
68
65
  var _ref3;
69
66
  return _ref3 = {
70
67
  userSelect: 'auto'
71
- }, _defineProperty(_ref3, '[data-item-title]', _objectSpread(_objectSpread({}, getBooleanFF('platform.design-system-team.side-navigation-tokenised-typography-styles') ? {
72
- font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)"
73
- } : {
74
- fontSize: '0.875rem',
75
- letterSpacing: '-0.003em',
76
- fontWeight: "var(--ds-font-weight-semibold, 600)"
77
- }), {}, {
68
+ }, _defineProperty(_ref3, '[data-item-title]', {
69
+ font: "var(--ds-font-heading-xsmall, normal 600 14px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
78
70
  color: "var(--ds-text, ".concat(N500, ")")
79
- })), _defineProperty(_ref3, 'div&:hover', {
71
+ }), _defineProperty(_ref3, 'div&:hover', {
80
72
  backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
81
73
  cursor: 'default'
82
74
  }), _defineProperty(_ref3, 'div&:active', {
@@ -3,7 +3,7 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  var _excluded = ["cssFn", "iconBefore", "onClick", "isSelected"];
5
5
  import React, { forwardRef, useCallback, useState } from 'react';
6
- import LeftArrow from '@atlaskit/icon/glyph/arrow-left-circle';
6
+ import ArrowLeftIcon from '@atlaskit/icon/core/migration/arrow-left--arrow-left-circle';
7
7
  import { N10 } from '@atlaskit/theme/colors';
8
8
  import ButtonItem from './button-item';
9
9
  /**
@@ -18,8 +18,9 @@ import ButtonItem from './button-item';
18
18
  var GoBackItem = /*#__PURE__*/forwardRef(function (_ref, ref) {
19
19
  var cssFn = _ref.cssFn,
20
20
  _ref$iconBefore = _ref.iconBefore,
21
- iconBefore = _ref$iconBefore === void 0 ? /*#__PURE__*/React.createElement(LeftArrow, {
22
- secondaryColor: "var(--ds-surface, ".concat(N10, ")"),
21
+ iconBefore = _ref$iconBefore === void 0 ? /*#__PURE__*/React.createElement(ArrowLeftIcon, {
22
+ color: "currentColor",
23
+ LEGACY_secondaryColor: "var(--ds-surface, ".concat(N10, ")"),
23
24
  label: ""
24
25
  }) : _ref$iconBefore,
25
26
  onClick = _ref.onClick,
@@ -14,7 +14,7 @@ import React, { Fragment, useCallback, useMemo, useState } from 'react';
14
14
 
15
15
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
16
  import { jsx } from '@emotion/react';
17
- import RightArrow from '@atlaskit/icon/glyph/arrow-right-circle';
17
+ import ArrowRightIcon from '@atlaskit/icon/core/migration/arrow-right--arrow-right-circle';
18
18
  import { Box, xcss } from '@atlaskit/primitives';
19
19
  import { N10 } from '@atlaskit/theme/colors';
20
20
  import { overrideStyleFunction } from '../../common/styles';
@@ -121,9 +121,10 @@ var NestingItem = function NestingItem(props) {
121
121
  "data-right-arrow": true,
122
122
  xcss: iconContainerStyles,
123
123
  as: "span"
124
- }, jsx(RightArrow, {
124
+ }, jsx(ArrowRightIcon, {
125
125
  testId: testId && "".concat(testId, "--item--right-arrow"),
126
- secondaryColor: "var(--ds-surface, ".concat(N10, ")"),
126
+ color: "currentColor",
127
+ LEGACY_secondaryColor: "var(--ds-surface, ".concat(N10, ")"),
127
128
  label: ""
128
129
  }))),
129
130
  onClick: onClickHandler,
@@ -66,7 +66,7 @@ export interface NestingItemProps<TCustomComponentProps = CustomItemComponentPro
66
66
  /**
67
67
  * Event that is triggered when a person clicks the element.
68
68
  */
69
- onClick?: (event: React.MouseEvent | React.KeyboardEvent) => void;
69
+ onClick?: (event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>) => void;
70
70
  /**
71
71
  * Description of the item.
72
72
  * This will render smaller text below the primary text of the item as well as slightly increasing the height of the item.
@@ -66,7 +66,7 @@ export interface NestingItemProps<TCustomComponentProps = CustomItemComponentPro
66
66
  /**
67
67
  * Event that is triggered when a person clicks the element.
68
68
  */
69
- onClick?: (event: React.MouseEvent | React.KeyboardEvent) => void;
69
+ onClick?: (event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>) => void;
70
70
  /**
71
71
  * Description of the item.
72
72
  * This will render smaller text below the primary text of the item as well as slightly increasing the height of the item.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/side-navigation",
3
- "version": "3.4.1",
3
+ "version": "3.5.0",
4
4
  "description": "A highly composable side navigation component that supports nested views.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -19,10 +19,6 @@
19
19
  },
20
20
  "atlassian": {
21
21
  "team": "Design System Team",
22
- "releaseModel": "continuous",
23
- "productPushConsumption": [
24
- "jira"
25
- ],
26
22
  "website": {
27
23
  "name": "Side navigation",
28
24
  "category": "Components"
@@ -30,14 +26,13 @@
30
26
  "runReact18": true
31
27
  },
32
28
  "dependencies": {
33
- "@atlaskit/ds-lib": "^2.4.0",
34
- "@atlaskit/icon": "^22.12.0",
29
+ "@atlaskit/ds-lib": "^2.5.0",
30
+ "@atlaskit/icon": "^22.16.0",
35
31
  "@atlaskit/menu": "^2.12.0",
36
32
  "@atlaskit/motion": "^1.9.0",
37
- "@atlaskit/platform-feature-flags": "^0.3.0",
38
- "@atlaskit/primitives": "^12.0.0",
33
+ "@atlaskit/primitives": "^12.1.0",
39
34
  "@atlaskit/theme": "^13.0.0",
40
- "@atlaskit/tokens": "^1.58.0",
35
+ "@atlaskit/tokens": "^1.59.0",
41
36
  "@babel/runtime": "^7.0.0",
42
37
  "@emotion/react": "^11.7.1"
43
38
  },
@@ -89,10 +84,5 @@
89
84
  ]
90
85
  }
91
86
  },
92
- "homepage": "https://atlassian.design/components/side-navigation/",
93
- "platform-feature-flags": {
94
- "platform.design-system-team.side-navigation-tokenised-typography-styles": {
95
- "type": "boolean"
96
- }
97
- }
87
+ "homepage": "https://atlassian.design/components/side-navigation/"
98
88
  }