@atlaskit/menu 1.9.4 → 1.9.6

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,17 @@
1
1
  # @atlaskit/menu
2
2
 
3
+ ## 1.9.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`71c51a488d7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/71c51a488d7) - Removes max-height constraint on compact density.
8
+
9
+ ## 1.9.5
10
+
11
+ ### Patch Changes
12
+
13
+ - [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility testing.
14
+
3
15
  ## 1.9.4
4
16
 
5
17
  ### Patch Changes
@@ -85,7 +85,6 @@ var spacingMapStyles = {
85
85
  }),
86
86
  compact: (0, _react2.css)({
87
87
  minHeight: 32,
88
- maxHeight: 32,
89
88
  // 4 * 2 (8) + icon (24) === 32
90
89
  paddingBlock: "var(--ds-space-050, 4px)",
91
90
  paddingInline: "var(--ds-space-150, 12px)"
@@ -15,7 +15,7 @@ var _constants = require("@atlaskit/theme/constants");
15
15
  var _typography = require("@atlaskit/theme/typography");
16
16
  var _headingItem = _interopRequireDefault(require("../menu-item/heading-item"));
17
17
  var _excluded = ["children", "overrides", "title", "testId", "isScrollable", "hasSeparator", "id", "isList"];
18
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
18
+ /* eslint-disable @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview */
19
19
  /** @jsx jsx */
20
20
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
21
21
  var gridSize = (0, _constants.gridSize)();
@@ -38,7 +38,7 @@ var sectionStyles = (0, _react2.css)({
38
38
  height: sectionPaddingTopBottom,
39
39
  content: '""'
40
40
  },
41
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
41
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
42
42
  '& [data-ds--menu--heading-item]': {
43
43
  marginTop: itemHeadingTopMargin,
44
44
  marginBottom: itemHeadingBottomMargin,
@@ -46,7 +46,7 @@ var sectionStyles = (0, _react2.css)({
46
46
  marginTop: itemHeadingTopMargin - sectionPaddingTopBottom
47
47
  }
48
48
  },
49
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
49
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
50
50
  '& [data-ds--menu--skeleton-heading-item]': {
51
51
  marginTop: skeletonHeadingTopMargin,
52
52
  marginBottom: skeletonHeadingBottomMargin,
@@ -74,7 +74,7 @@ var separatorStyles = (0, _react2.css)({
74
74
  });
75
75
  var noSeparatorStyles = (0, _react2.css)({
76
76
  // this is to ensure that adjacent sections without separators don't get additional margins.
77
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
77
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
78
78
  '[data-section] + &': {
79
79
  marginTop: -6
80
80
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/menu",
3
- "version": "1.9.4",
3
+ "version": "1.9.6",
4
4
  "sideEffects": false
5
5
  }
@@ -74,7 +74,6 @@ const spacingMapStyles = {
74
74
  }),
75
75
  compact: css({
76
76
  minHeight: 32,
77
- maxHeight: 32,
78
77
  // 4 * 2 (8) + icon (24) === 32
79
78
  paddingBlock: "var(--ds-space-050, 4px)",
80
79
  paddingInline: "var(--ds-space-150, 12px)"
@@ -1,5 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
2
+ /* eslint-disable @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview */
3
3
  /** @jsx jsx */
4
4
  import { Children, forwardRef, Fragment } from 'react';
5
5
  import { css, jsx } from '@emotion/react';
@@ -29,7 +29,7 @@ const sectionStyles = css({
29
29
  height: sectionPaddingTopBottom,
30
30
  content: '""'
31
31
  },
32
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
32
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
33
33
  '& [data-ds--menu--heading-item]': {
34
34
  marginTop: itemHeadingTopMargin,
35
35
  marginBottom: itemHeadingBottomMargin,
@@ -37,7 +37,7 @@ const sectionStyles = css({
37
37
  marginTop: itemHeadingTopMargin - sectionPaddingTopBottom
38
38
  }
39
39
  },
40
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
40
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
41
41
  '& [data-ds--menu--skeleton-heading-item]': {
42
42
  marginTop: skeletonHeadingTopMargin,
43
43
  marginBottom: skeletonHeadingBottomMargin,
@@ -65,7 +65,7 @@ const separatorStyles = css({
65
65
  });
66
66
  const noSeparatorStyles = css({
67
67
  // this is to ensure that adjacent sections without separators don't get additional margins.
68
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
68
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
69
69
  '[data-section] + &': {
70
70
  marginTop: -6
71
71
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/menu",
3
- "version": "1.9.4",
3
+ "version": "1.9.6",
4
4
  "sideEffects": false
5
5
  }
@@ -77,7 +77,6 @@ var spacingMapStyles = {
77
77
  }),
78
78
  compact: css({
79
79
  minHeight: 32,
80
- maxHeight: 32,
81
80
  // 4 * 2 (8) + icon (24) === 32
82
81
  paddingBlock: "var(--ds-space-050, 4px)",
83
82
  paddingInline: "var(--ds-space-150, 12px)"
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  var _excluded = ["children", "overrides", "title", "testId", "isScrollable", "hasSeparator", "id", "isList"];
4
- /* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
4
+ /* eslint-disable @atlaskit/design-system/ensure-design-token-usage, @atlaskit/design-system/ensure-design-token-usage/preview */
5
5
  /** @jsx jsx */
6
6
  import { Children, forwardRef, Fragment } from 'react';
7
7
  import { css, jsx } from '@emotion/react';
@@ -31,7 +31,7 @@ var sectionStyles = css({
31
31
  height: sectionPaddingTopBottom,
32
32
  content: '""'
33
33
  },
34
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
34
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
35
35
  '& [data-ds--menu--heading-item]': {
36
36
  marginTop: itemHeadingTopMargin,
37
37
  marginBottom: itemHeadingBottomMargin,
@@ -39,7 +39,7 @@ var sectionStyles = css({
39
39
  marginTop: itemHeadingTopMargin - sectionPaddingTopBottom
40
40
  }
41
41
  },
42
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
42
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
43
43
  '& [data-ds--menu--skeleton-heading-item]': {
44
44
  marginTop: skeletonHeadingTopMargin,
45
45
  marginBottom: skeletonHeadingBottomMargin,
@@ -67,7 +67,7 @@ var separatorStyles = css({
67
67
  });
68
68
  var noSeparatorStyles = css({
69
69
  // this is to ensure that adjacent sections without separators don't get additional margins.
70
- // eslint-disable-next-line @repo/internal/styles/no-nested-styles
70
+ // eslint-disable-next-line @atlaskit/design-system/no-nested-styles
71
71
  '[data-section] + &': {
72
72
  marginTop: -6
73
73
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/menu",
3
- "version": "1.9.4",
3
+ "version": "1.9.6",
4
4
  "sideEffects": false
5
5
  }
@@ -111,7 +111,7 @@ export interface SectionProps {
111
111
  */
112
112
  title?: string;
113
113
  /**
114
- * Specifically adds <ul> and <li> elements around the items for better semantic markup if it is a list of items
114
+ * Adds `<ul>` and `<li>` tags around the items for better semantic markup in a list of items.
115
115
  */
116
116
  isList?: boolean;
117
117
  }
@@ -111,7 +111,7 @@ export interface SectionProps {
111
111
  */
112
112
  title?: string;
113
113
  /**
114
- * Specifically adds <ul> and <li> elements around the items for better semantic markup if it is a list of items
114
+ * Adds `<ul>` and `<li>` tags around the items for better semantic markup in a list of items.
115
115
  */
116
116
  isList?: boolean;
117
117
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/menu",
3
- "version": "1.9.4",
3
+ "version": "1.9.6",
4
4
  "description": "A collection of composable menu components that can be used anywhere.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,40 +12,19 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
- "typesVersions": {
16
- ">=4.5 <4.9": {
17
- "*": [
18
- "dist/types-ts4.5/*",
19
- "dist/types-ts4.5/index.d.ts"
20
- ]
21
- }
22
- },
23
15
  "sideEffects": false,
24
16
  "atlaskit:src": "src/index.tsx",
25
17
  "atlassian": {
26
- "team": "Design System Team",
27
- "releaseModel": "continuous",
18
+ "team": "Design System Pyxis",
28
19
  "productPushConsumption": [
29
20
  "jira"
30
21
  ],
22
+ "releaseModel": "continuous",
31
23
  "website": {
32
24
  "name": "Menu",
33
25
  "category": "Components"
34
26
  }
35
27
  },
36
- "af:exports": {
37
- "./button-item": "./src/entry-points/menu-item/button-item.tsx",
38
- "./link-item": "./src/entry-points/menu-item/link-item.tsx",
39
- "./custom-item": "./src/entry-points/menu-item/custom-item.tsx",
40
- "./heading-item": "./src/entry-points/menu-item/heading-item.tsx",
41
- "./skeleton-item": "./src/entry-points/menu-item/skeleton-item.tsx",
42
- "./skeleton-heading-item": "./src/entry-points/menu-item/skeleton-heading-item.tsx",
43
- "./section": "./src/entry-points/menu-section/section.tsx",
44
- "./menu-group": "./src/entry-points/menu-section/menu-group.tsx",
45
- "./popup-menu-group": "./src/entry-points/menu-section/popup-menu-group.tsx",
46
- "./types": "./src/types.tsx",
47
- ".": "./src/index.tsx"
48
- },
49
28
  "dependencies": {
50
29
  "@atlaskit/ds-explorations": "^2.2.0",
51
30
  "@atlaskit/ds-lib": "^2.2.0",
@@ -53,7 +32,7 @@
53
32
  "@atlaskit/platform-feature-flags": "^0.2.0",
54
33
  "@atlaskit/primitives": "^1.0.0",
55
34
  "@atlaskit/theme": "^12.5.0",
56
- "@atlaskit/tokens": "^1.11.0",
35
+ "@atlaskit/tokens": "^1.13.0",
57
36
  "@babel/runtime": "^7.0.0",
58
37
  "@emotion/react": "^11.7.1"
59
38
  },
@@ -62,6 +41,8 @@
62
41
  "react-dom": "^16.8.0"
63
42
  },
64
43
  "devDependencies": {
44
+ "@af/accessibility-testing": "*",
45
+ "@af/visual-regression": "*",
65
46
  "@atlaskit/visual-regression": "*",
66
47
  "@atlaskit/webdriver-runner": "*",
67
48
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
@@ -72,7 +53,6 @@
72
53
  "@types/react-router-dom": "^4.3.1",
73
54
  "ast-types": "^0.13.3",
74
55
  "bind-event-listener": "^2.1.1",
75
- "jest-axe": "^4.0.0",
76
56
  "jscodeshift": "^0.13.0",
77
57
  "react-router-dom": "^4.2.2",
78
58
  "storybook-addon-performance": "^0.16.0",
@@ -103,6 +83,27 @@
103
83
  "deprecation": "no-deprecated-imports"
104
84
  }
105
85
  },
86
+ "typesVersions": {
87
+ ">=4.5 <4.9": {
88
+ "*": [
89
+ "dist/types-ts4.5/*",
90
+ "dist/types-ts4.5/index.d.ts"
91
+ ]
92
+ }
93
+ },
94
+ "af:exports": {
95
+ "./button-item": "./src/entry-points/menu-item/button-item.tsx",
96
+ "./link-item": "./src/entry-points/menu-item/link-item.tsx",
97
+ "./custom-item": "./src/entry-points/menu-item/custom-item.tsx",
98
+ "./heading-item": "./src/entry-points/menu-item/heading-item.tsx",
99
+ "./skeleton-item": "./src/entry-points/menu-item/skeleton-item.tsx",
100
+ "./skeleton-heading-item": "./src/entry-points/menu-item/skeleton-heading-item.tsx",
101
+ "./section": "./src/entry-points/menu-section/section.tsx",
102
+ "./menu-group": "./src/entry-points/menu-section/menu-group.tsx",
103
+ "./popup-menu-group": "./src/entry-points/menu-section/popup-menu-group.tsx",
104
+ "./types": "./src/types.tsx",
105
+ ".": "./src/index.tsx"
106
+ },
106
107
  "platform-feature-flags": {
107
108
  "platform.design-system-team.menu-selected-state-change_0see9": {
108
109
  "type": "boolean"
@@ -110,4 +111,4 @@
110
111
  },
111
112
  "homepage": "https://atlassian.design/components/menu/",
112
113
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
113
- }
114
+ }