@atlaskit/dropdown-menu 12.20.4 → 12.21.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 +12 -0
- package/dist/cjs/internal/components/group-title.js +10 -24
- package/dist/es2019/internal/components/group-title.js +9 -23
- package/dist/esm/internal/components/group-title.js +9 -23
- package/dist/types/internal/components/group-title.d.ts +2 -6
- package/dist/types-ts4.5/internal/components/group-title.d.ts +2 -6
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/dropdown-menu
|
|
2
2
|
|
|
3
|
+
## 12.21.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#155054](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/155054)
|
|
8
|
+
[`5e7c49fc3d545`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5e7c49fc3d545) -
|
|
9
|
+
Updated group title styles to use modernized typography.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
3
15
|
## 12.20.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1,31 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.default = void 0;
|
|
7
|
-
var _react = require("
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
|
-
|
|
17
|
-
var itemHeadingContentHeight = _typography.headingSizes.h100.lineHeight;
|
|
18
|
-
var itemHeadingFontSize = _typography.headingSizes.h100.size;
|
|
19
|
-
var headingStyles = (0, _react.css)({
|
|
20
|
-
color: "var(--ds-text-subtle, ".concat(_colors.N300, ")"),
|
|
21
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
|
-
fontSize: itemHeadingFontSize,
|
|
23
|
-
fontWeight: "var(--ds-font-weight-bold, 700)",
|
|
24
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
25
|
-
lineHeight: itemHeadingContentHeight / itemHeadingFontSize,
|
|
26
|
-
paddingBlock: "var(--ds-space-0, 0px)",
|
|
27
|
-
paddingInline: "var(--ds-space-200, 16px)",
|
|
28
|
-
textTransform: 'uppercase'
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _primitives = require("@atlaskit/primitives");
|
|
10
|
+
var headingStyles = (0, _primitives.xcss)({
|
|
11
|
+
color: 'color.text.subtle',
|
|
12
|
+
font: 'font.heading.xxsmall',
|
|
13
|
+
paddingBlock: 'space.0',
|
|
14
|
+
paddingInline: 'space.200'
|
|
29
15
|
});
|
|
30
16
|
|
|
31
17
|
/**
|
|
@@ -38,12 +24,12 @@ var headingStyles = (0, _react.css)({
|
|
|
38
24
|
var GroupTitle = function GroupTitle(_ref) {
|
|
39
25
|
var id = _ref.id,
|
|
40
26
|
title = _ref.title;
|
|
41
|
-
return
|
|
27
|
+
return /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
42
28
|
"data-ds--menu--heading-item": true,
|
|
43
29
|
role: "menuitem",
|
|
44
30
|
id: id,
|
|
45
31
|
"aria-hidden": "true",
|
|
46
|
-
|
|
32
|
+
xcss: headingStyles
|
|
47
33
|
}, title);
|
|
48
34
|
};
|
|
49
35
|
var _default = exports.default = GroupTitle;
|
|
@@ -1,24 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { N300 } from '@atlaskit/theme/colors';
|
|
9
|
-
import { headingSizes } from '@atlaskit/theme/typography';
|
|
10
|
-
const itemHeadingContentHeight = headingSizes.h100.lineHeight;
|
|
11
|
-
const itemHeadingFontSize = headingSizes.h100.size;
|
|
12
|
-
const headingStyles = css({
|
|
13
|
-
color: `var(--ds-text-subtle, ${N300})`,
|
|
14
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
|
-
fontSize: itemHeadingFontSize,
|
|
16
|
-
fontWeight: "var(--ds-font-weight-bold, 700)",
|
|
17
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
|
-
lineHeight: itemHeadingContentHeight / itemHeadingFontSize,
|
|
19
|
-
paddingBlock: "var(--ds-space-0, 0px)",
|
|
20
|
-
paddingInline: "var(--ds-space-200, 16px)",
|
|
21
|
-
textTransform: 'uppercase'
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Box, xcss } from '@atlaskit/primitives';
|
|
3
|
+
const headingStyles = xcss({
|
|
4
|
+
color: 'color.text.subtle',
|
|
5
|
+
font: 'font.heading.xxsmall',
|
|
6
|
+
paddingBlock: 'space.0',
|
|
7
|
+
paddingInline: 'space.200'
|
|
22
8
|
});
|
|
23
9
|
|
|
24
10
|
/**
|
|
@@ -31,11 +17,11 @@ const headingStyles = css({
|
|
|
31
17
|
const GroupTitle = ({
|
|
32
18
|
id,
|
|
33
19
|
title
|
|
34
|
-
}) =>
|
|
20
|
+
}) => /*#__PURE__*/React.createElement(Box, {
|
|
35
21
|
"data-ds--menu--heading-item": true,
|
|
36
22
|
role: "menuitem",
|
|
37
23
|
id: id,
|
|
38
24
|
"aria-hidden": "true",
|
|
39
|
-
|
|
25
|
+
xcss: headingStyles
|
|
40
26
|
}, title);
|
|
41
27
|
export default GroupTitle;
|
|
@@ -1,24 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import { N300 } from '@atlaskit/theme/colors';
|
|
9
|
-
import { headingSizes } from '@atlaskit/theme/typography';
|
|
10
|
-
var itemHeadingContentHeight = headingSizes.h100.lineHeight;
|
|
11
|
-
var itemHeadingFontSize = headingSizes.h100.size;
|
|
12
|
-
var headingStyles = css({
|
|
13
|
-
color: "var(--ds-text-subtle, ".concat(N300, ")"),
|
|
14
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
|
-
fontSize: itemHeadingFontSize,
|
|
16
|
-
fontWeight: "var(--ds-font-weight-bold, 700)",
|
|
17
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
18
|
-
lineHeight: itemHeadingContentHeight / itemHeadingFontSize,
|
|
19
|
-
paddingBlock: "var(--ds-space-0, 0px)",
|
|
20
|
-
paddingInline: "var(--ds-space-200, 16px)",
|
|
21
|
-
textTransform: 'uppercase'
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Box, xcss } from '@atlaskit/primitives';
|
|
3
|
+
var headingStyles = xcss({
|
|
4
|
+
color: 'color.text.subtle',
|
|
5
|
+
font: 'font.heading.xxsmall',
|
|
6
|
+
paddingBlock: 'space.0',
|
|
7
|
+
paddingInline: 'space.200'
|
|
22
8
|
});
|
|
23
9
|
|
|
24
10
|
/**
|
|
@@ -31,12 +17,12 @@ var headingStyles = css({
|
|
|
31
17
|
var GroupTitle = function GroupTitle(_ref) {
|
|
32
18
|
var id = _ref.id,
|
|
33
19
|
title = _ref.title;
|
|
34
|
-
return
|
|
20
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
35
21
|
"data-ds--menu--heading-item": true,
|
|
36
22
|
role: "menuitem",
|
|
37
23
|
id: id,
|
|
38
24
|
"aria-hidden": "true",
|
|
39
|
-
|
|
25
|
+
xcss: headingStyles
|
|
40
26
|
}, title);
|
|
41
27
|
};
|
|
42
28
|
export default GroupTitle;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
/// <reference types="react" />
|
|
6
2
|
/**
|
|
7
3
|
* __Group title__
|
|
8
4
|
*
|
|
@@ -13,5 +9,5 @@ import { jsx } from '@emotion/react';
|
|
|
13
9
|
declare const GroupTitle: ({ id, title }: {
|
|
14
10
|
id: string;
|
|
15
11
|
title: string;
|
|
16
|
-
}) =>
|
|
12
|
+
}) => JSX.Element;
|
|
17
13
|
export default GroupTitle;
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* @jsxRuntime classic
|
|
3
|
-
* @jsx jsx
|
|
4
|
-
*/
|
|
5
|
-
import { jsx } from '@emotion/react';
|
|
1
|
+
/// <reference types="react" />
|
|
6
2
|
/**
|
|
7
3
|
* __Group title__
|
|
8
4
|
*
|
|
@@ -13,5 +9,5 @@ import { jsx } from '@emotion/react';
|
|
|
13
9
|
declare const GroupTitle: ({ id, title }: {
|
|
14
10
|
id: string;
|
|
15
11
|
title: string;
|
|
16
|
-
}) =>
|
|
12
|
+
}) => JSX.Element;
|
|
17
13
|
export default GroupTitle;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/dropdown-menu",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.21.0",
|
|
4
4
|
"description": "A dropdown menu displays a list of actions or options to a user.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"runReact18": true
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atlaskit/button": "^20.
|
|
26
|
+
"@atlaskit/button": "^20.3.0",
|
|
27
27
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
28
28
|
"@atlaskit/ds-lib": "^3.1.0",
|
|
29
|
-
"@atlaskit/icon": "^22.
|
|
29
|
+
"@atlaskit/icon": "^22.23.0",
|
|
30
30
|
"@atlaskit/layering": "^0.7.0",
|
|
31
31
|
"@atlaskit/menu": "^2.13.0",
|
|
32
32
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
33
|
-
"@atlaskit/popup": "^1.
|
|
33
|
+
"@atlaskit/popup": "^1.29.0",
|
|
34
34
|
"@atlaskit/primitives": "^12.2.0",
|
|
35
35
|
"@atlaskit/spinner": "^16.3.0",
|
|
36
36
|
"@atlaskit/theme": "^14.0.0",
|