@atlaskit/atlassian-navigation 3.0.1 → 3.0.3
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/components/PrimaryDropdownButton/index.js +1 -5
- package/dist/cjs/components/SkeletonPrimaryButton/index.js +13 -14
- package/dist/cjs/skeleton-help-button.js +1 -1
- package/dist/cjs/skeleton-notification-button.js +1 -1
- package/dist/es2019/components/PrimaryDropdownButton/index.js +1 -5
- package/dist/es2019/components/SkeletonPrimaryButton/index.js +13 -14
- package/dist/es2019/skeleton-help-button.js +1 -1
- package/dist/es2019/skeleton-notification-button.js +1 -1
- package/dist/esm/components/PrimaryDropdownButton/index.js +1 -5
- package/dist/esm/components/SkeletonPrimaryButton/index.js +13 -14
- package/dist/esm/skeleton-help-button.js +1 -1
- package/dist/esm/skeleton-notification-button.js +1 -1
- package/dist/types/components/ProductHome/types.d.ts +3 -3
- package/dist/types/components/Search/types.d.ts +2 -2
- package/dist/types/components/SkeletonPrimaryButton/types.d.ts +1 -1
- package/dist/types/skeleton-help-button.d.ts +2 -2
- package/dist/types/skeleton-notification-button.d.ts +2 -2
- package/dist/types/skeleton-settings-button.d.ts +1 -1
- package/dist/types/skeleton-switcher-button.d.ts +1 -1
- package/dist/types-ts4.5/components/ProductHome/types.d.ts +3 -3
- package/dist/types-ts4.5/components/Search/types.d.ts +2 -2
- package/dist/types-ts4.5/components/SkeletonPrimaryButton/types.d.ts +1 -1
- package/dist/types-ts4.5/skeleton-help-button.d.ts +2 -2
- package/dist/types-ts4.5/skeleton-notification-button.d.ts +2 -2
- package/dist/types-ts4.5/skeleton-settings-button.d.ts +1 -1
- package/dist/types-ts4.5/skeleton-switcher-button.d.ts +1 -1
- package/package.json +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 3.0.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#63677](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63677) [`f320c8ce5039`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f320c8ce5039) - This package has been added to the Jira push model.
|
|
8
|
+
|
|
9
|
+
## 3.0.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#61177](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/61177) [`c8b7446ec45b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c8b7446ec45b) - [ux] Removes opacity from dropdown chevrons to support better color contrast
|
|
14
|
+
|
|
3
15
|
## 3.0.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -14,11 +14,7 @@ var _primitives = require("@atlaskit/primitives");
|
|
|
14
14
|
var _PrimaryButton = require("../PrimaryButton");
|
|
15
15
|
/** @jsx jsx */
|
|
16
16
|
|
|
17
|
-
var chevronIconStyles = (0, _primitives.xcss)({
|
|
18
|
-
opacity: 0.51
|
|
19
|
-
});
|
|
20
17
|
var chevronIconStylesWithSpacingFixStyles = (0, _primitives.xcss)({
|
|
21
|
-
opacity: 0.51,
|
|
22
18
|
marginInlineEnd: "var(--ds-space-negative-050, -0.25rem)"
|
|
23
19
|
});
|
|
24
20
|
|
|
@@ -34,7 +30,7 @@ var chevronIconStylesWithSpacingFixStyles = (0, _primitives.xcss)({
|
|
|
34
30
|
var PrimaryDropdownButton = exports.PrimaryDropdownButton = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
35
31
|
return (0, _react2.jsx)(_PrimaryButton.PrimaryButton, (0, _extends2.default)({
|
|
36
32
|
iconAfter: (0, _react2.jsx)(_primitives.Bleed, {
|
|
37
|
-
xcss: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.icon-button-spacing-fix_o1zc5')
|
|
33
|
+
xcss: [(0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.icon-button-spacing-fix_o1zc5') && chevronIconStylesWithSpacingFixStyles],
|
|
38
34
|
inline: "space.100"
|
|
39
35
|
}, (0, _react2.jsx)(_chevronDown.default, {
|
|
40
36
|
label: ""
|
|
@@ -35,42 +35,41 @@ var isHighlightedStyles = (0, _react.css)({
|
|
|
35
35
|
'&:before': {
|
|
36
36
|
height: 3,
|
|
37
37
|
position: 'absolute',
|
|
38
|
-
bottom: 0,
|
|
39
|
-
left: "var(--ds-space-025, 2px)",
|
|
40
38
|
backgroundColor: "var(".concat(VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR, ")"),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
content: '""'
|
|
39
|
+
borderStartEndRadius: "var(--ds-border-radius-050, 1px)",
|
|
40
|
+
borderStartStartRadius: "var(--ds-border-radius-050, 1px)",
|
|
41
|
+
content: '""',
|
|
42
|
+
insetBlockEnd: 0,
|
|
43
|
+
insetInlineStart: "var(--ds-space-025, 2px)"
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
var isHighlightedAndDropdownButtonStyles = (0, _react.css)({
|
|
47
47
|
'&:before': {
|
|
48
48
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
49
|
-
|
|
49
|
+
insetInlineEnd: -10
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
var isHighlightedNotDropdownButtonStyles = (0, _react.css)({
|
|
53
53
|
'&:before': {
|
|
54
|
-
|
|
54
|
+
insetInlineEnd: "var(--ds-space-025, 2px)"
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
var isDropdownButtonStyles = (0, _react.css)({
|
|
58
58
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
59
|
-
|
|
59
|
+
marginInlineEnd: 18,
|
|
60
60
|
'&:after': {
|
|
61
61
|
display: 'inline-block',
|
|
62
62
|
width: 4,
|
|
63
63
|
height: 4,
|
|
64
|
-
marginLeft: "var(--ds-space-050, 4px)",
|
|
65
64
|
position: 'absolute',
|
|
66
|
-
|
|
67
|
-
left: 'calc(100% - 3px)',
|
|
68
|
-
borderBottom: '2px solid',
|
|
65
|
+
borderBlockEnd: '2px solid',
|
|
69
66
|
borderColor: "var(".concat(VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR, ")"),
|
|
67
|
+
borderInlineEnd: '2px solid',
|
|
70
68
|
borderRadius: "var(--ds-border-radius-050, 1px)",
|
|
71
|
-
borderRight: '2px solid',
|
|
72
69
|
content: '""',
|
|
73
|
-
|
|
70
|
+
insetBlockStart: 'calc(50% - 4px)',
|
|
71
|
+
insetInlineStart: 'calc(100% - 3px)',
|
|
72
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
74
73
|
transform: 'rotate(45deg) scale(1.05)',
|
|
75
74
|
verticalAlign: 'middle'
|
|
76
75
|
}
|
|
@@ -10,7 +10,7 @@ var _questionCircle = _interopRequireDefault(require("@atlaskit/icon/glyph/quest
|
|
|
10
10
|
var _SkeletonIconButton = require("./components/SkeletonIconButton");
|
|
11
11
|
var _theme = require("./theme");
|
|
12
12
|
/**
|
|
13
|
-
* __Skeleton
|
|
13
|
+
* __Skeleton notification button__
|
|
14
14
|
*
|
|
15
15
|
* Skeleton buttons are lightweight HTML button elements with CSS that represent
|
|
16
16
|
* their heavier interactive counterparts, for use when elements of the
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _notification = _interopRequireDefault(require("@atlaskit/icon/glyph/notification"));
|
|
10
10
|
var _SkeletonIconButton = require("./components/SkeletonIconButton");
|
|
11
11
|
/**
|
|
12
|
-
* __Skeleton
|
|
12
|
+
* __Skeleton notification button__
|
|
13
13
|
*
|
|
14
14
|
* Skeleton buttons are lightweight HTML button elements with CSS that represent
|
|
15
15
|
* their heavier interactive counterparts, for use when elements of the
|
|
@@ -6,11 +6,7 @@ import ChevronIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
|
6
6
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
import { Bleed, xcss } from '@atlaskit/primitives';
|
|
8
8
|
import { PrimaryButton } from '../PrimaryButton';
|
|
9
|
-
const chevronIconStyles = xcss({
|
|
10
|
-
opacity: 0.51
|
|
11
|
-
});
|
|
12
9
|
const chevronIconStylesWithSpacingFixStyles = xcss({
|
|
13
|
-
opacity: 0.51,
|
|
14
10
|
marginInlineEnd: `${"var(--ds-space-negative-050, -0.25rem)"}`
|
|
15
11
|
});
|
|
16
12
|
|
|
@@ -26,7 +22,7 @@ const chevronIconStylesWithSpacingFixStyles = xcss({
|
|
|
26
22
|
export const PrimaryDropdownButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
27
23
|
return jsx(PrimaryButton, _extends({
|
|
28
24
|
iconAfter: jsx(Bleed, {
|
|
29
|
-
xcss: getBooleanFF('platform.design-system-team.icon-button-spacing-fix_o1zc5')
|
|
25
|
+
xcss: [getBooleanFF('platform.design-system-team.icon-button-spacing-fix_o1zc5') && chevronIconStylesWithSpacingFixStyles],
|
|
30
26
|
inline: "space.100"
|
|
31
27
|
}, jsx(ChevronIcon, {
|
|
32
28
|
label: ""
|
|
@@ -26,42 +26,41 @@ const isHighlightedStyles = css({
|
|
|
26
26
|
'&:before': {
|
|
27
27
|
height: 3,
|
|
28
28
|
position: 'absolute',
|
|
29
|
-
bottom: 0,
|
|
30
|
-
left: "var(--ds-space-025, 2px)",
|
|
31
29
|
backgroundColor: `var(${VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR})`,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
content: '""'
|
|
30
|
+
borderStartEndRadius: "var(--ds-border-radius-050, 1px)",
|
|
31
|
+
borderStartStartRadius: "var(--ds-border-radius-050, 1px)",
|
|
32
|
+
content: '""',
|
|
33
|
+
insetBlockEnd: 0,
|
|
34
|
+
insetInlineStart: "var(--ds-space-025, 2px)"
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
const isHighlightedAndDropdownButtonStyles = css({
|
|
38
38
|
'&:before': {
|
|
39
39
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
40
|
-
|
|
40
|
+
insetInlineEnd: -10
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
const isHighlightedNotDropdownButtonStyles = css({
|
|
44
44
|
'&:before': {
|
|
45
|
-
|
|
45
|
+
insetInlineEnd: "var(--ds-space-025, 2px)"
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
const isDropdownButtonStyles = css({
|
|
49
49
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
50
|
-
|
|
50
|
+
marginInlineEnd: 18,
|
|
51
51
|
'&:after': {
|
|
52
52
|
display: 'inline-block',
|
|
53
53
|
width: 4,
|
|
54
54
|
height: 4,
|
|
55
|
-
marginLeft: "var(--ds-space-050, 4px)",
|
|
56
55
|
position: 'absolute',
|
|
57
|
-
|
|
58
|
-
left: 'calc(100% - 3px)',
|
|
59
|
-
borderBottom: '2px solid',
|
|
56
|
+
borderBlockEnd: '2px solid',
|
|
60
57
|
borderColor: `var(${VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR})`,
|
|
58
|
+
borderInlineEnd: '2px solid',
|
|
61
59
|
borderRadius: "var(--ds-border-radius-050, 1px)",
|
|
62
|
-
borderRight: '2px solid',
|
|
63
60
|
content: '""',
|
|
64
|
-
|
|
61
|
+
insetBlockStart: 'calc(50% - 4px)',
|
|
62
|
+
insetInlineStart: 'calc(100% - 3px)',
|
|
63
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
65
64
|
transform: 'rotate(45deg) scale(1.05)',
|
|
66
65
|
verticalAlign: 'middle'
|
|
67
66
|
}
|
|
@@ -3,7 +3,7 @@ import QuestionCircleIcon from '@atlaskit/icon/glyph/question-circle';
|
|
|
3
3
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
4
4
|
import { useTheme } from './theme';
|
|
5
5
|
/**
|
|
6
|
-
* __Skeleton
|
|
6
|
+
* __Skeleton notification button__
|
|
7
7
|
*
|
|
8
8
|
* Skeleton buttons are lightweight HTML button elements with CSS that represent
|
|
9
9
|
* their heavier interactive counterparts, for use when elements of the
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import NotificationIcon from '@atlaskit/icon/glyph/notification';
|
|
3
3
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
4
4
|
/**
|
|
5
|
-
* __Skeleton
|
|
5
|
+
* __Skeleton notification button__
|
|
6
6
|
*
|
|
7
7
|
* Skeleton buttons are lightweight HTML button elements with CSS that represent
|
|
8
8
|
* their heavier interactive counterparts, for use when elements of the
|
|
@@ -6,11 +6,7 @@ import ChevronIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
|
6
6
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
import { Bleed, xcss } from '@atlaskit/primitives';
|
|
8
8
|
import { PrimaryButton } from '../PrimaryButton';
|
|
9
|
-
var chevronIconStyles = xcss({
|
|
10
|
-
opacity: 0.51
|
|
11
|
-
});
|
|
12
9
|
var chevronIconStylesWithSpacingFixStyles = xcss({
|
|
13
|
-
opacity: 0.51,
|
|
14
10
|
marginInlineEnd: "var(--ds-space-negative-050, -0.25rem)"
|
|
15
11
|
});
|
|
16
12
|
|
|
@@ -26,7 +22,7 @@ var chevronIconStylesWithSpacingFixStyles = xcss({
|
|
|
26
22
|
export var PrimaryDropdownButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
27
23
|
return jsx(PrimaryButton, _extends({
|
|
28
24
|
iconAfter: jsx(Bleed, {
|
|
29
|
-
xcss: getBooleanFF('platform.design-system-team.icon-button-spacing-fix_o1zc5')
|
|
25
|
+
xcss: [getBooleanFF('platform.design-system-team.icon-button-spacing-fix_o1zc5') && chevronIconStylesWithSpacingFixStyles],
|
|
30
26
|
inline: "space.100"
|
|
31
27
|
}, jsx(ChevronIcon, {
|
|
32
28
|
label: ""
|
|
@@ -29,42 +29,41 @@ var isHighlightedStyles = css({
|
|
|
29
29
|
'&:before': {
|
|
30
30
|
height: 3,
|
|
31
31
|
position: 'absolute',
|
|
32
|
-
bottom: 0,
|
|
33
|
-
left: "var(--ds-space-025, 2px)",
|
|
34
32
|
backgroundColor: "var(".concat(VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR, ")"),
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
content: '""'
|
|
33
|
+
borderStartEndRadius: "var(--ds-border-radius-050, 1px)",
|
|
34
|
+
borderStartStartRadius: "var(--ds-border-radius-050, 1px)",
|
|
35
|
+
content: '""',
|
|
36
|
+
insetBlockEnd: 0,
|
|
37
|
+
insetInlineStart: "var(--ds-space-025, 2px)"
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
var isHighlightedAndDropdownButtonStyles = css({
|
|
41
41
|
'&:before': {
|
|
42
42
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
43
|
-
|
|
43
|
+
insetInlineEnd: -10
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
var isHighlightedNotDropdownButtonStyles = css({
|
|
47
47
|
'&:before': {
|
|
48
|
-
|
|
48
|
+
insetInlineEnd: "var(--ds-space-025, 2px)"
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
var isDropdownButtonStyles = css({
|
|
52
52
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
53
|
-
|
|
53
|
+
marginInlineEnd: 18,
|
|
54
54
|
'&:after': {
|
|
55
55
|
display: 'inline-block',
|
|
56
56
|
width: 4,
|
|
57
57
|
height: 4,
|
|
58
|
-
marginLeft: "var(--ds-space-050, 4px)",
|
|
59
58
|
position: 'absolute',
|
|
60
|
-
|
|
61
|
-
left: 'calc(100% - 3px)',
|
|
62
|
-
borderBottom: '2px solid',
|
|
59
|
+
borderBlockEnd: '2px solid',
|
|
63
60
|
borderColor: "var(".concat(VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR, ")"),
|
|
61
|
+
borderInlineEnd: '2px solid',
|
|
64
62
|
borderRadius: "var(--ds-border-radius-050, 1px)",
|
|
65
|
-
borderRight: '2px solid',
|
|
66
63
|
content: '""',
|
|
67
|
-
|
|
64
|
+
insetBlockStart: 'calc(50% - 4px)',
|
|
65
|
+
insetInlineStart: 'calc(100% - 3px)',
|
|
66
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
68
67
|
transform: 'rotate(45deg) scale(1.05)',
|
|
69
68
|
verticalAlign: 'middle'
|
|
70
69
|
}
|
|
@@ -3,7 +3,7 @@ import QuestionCircleIcon from '@atlaskit/icon/glyph/question-circle';
|
|
|
3
3
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
4
4
|
import { useTheme } from './theme';
|
|
5
5
|
/**
|
|
6
|
-
* __Skeleton
|
|
6
|
+
* __Skeleton notification button__
|
|
7
7
|
*
|
|
8
8
|
* Skeleton buttons are lightweight HTML button elements with CSS that represent
|
|
9
9
|
* their heavier interactive counterparts, for use when elements of the
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import NotificationIcon from '@atlaskit/icon/glyph/notification';
|
|
3
3
|
import { SkeletonIconButton } from './components/SkeletonIconButton';
|
|
4
4
|
/**
|
|
5
|
-
* __Skeleton
|
|
5
|
+
* __Skeleton notification button__
|
|
6
6
|
*
|
|
7
7
|
* Skeleton buttons are lightweight HTML button elements with CSS that represent
|
|
8
8
|
* their heavier interactive counterparts, for use when elements of the
|
|
@@ -3,12 +3,12 @@ import { LogoProps } from '@atlaskit/logo';
|
|
|
3
3
|
export interface ProductHomeProps {
|
|
4
4
|
/**
|
|
5
5
|
* The product icon.
|
|
6
|
-
* Expected to be an Icon from the Atlaskit Logo package. Visible on smaller screen sizes
|
|
6
|
+
* Expected to be an Icon from the Atlaskit Logo package. Visible on smaller screen sizes.
|
|
7
7
|
*/
|
|
8
8
|
icon: ComponentType<Partial<LogoProps>>;
|
|
9
9
|
/**
|
|
10
10
|
* The product logo,
|
|
11
|
-
* visible on larger screen sizes
|
|
11
|
+
* visible on larger screen sizes.
|
|
12
12
|
*/
|
|
13
13
|
logo: ComponentType<Partial<LogoProps>>;
|
|
14
14
|
/**
|
|
@@ -81,7 +81,7 @@ export interface CustomProductHomeProps {
|
|
|
81
81
|
*/
|
|
82
82
|
href?: string;
|
|
83
83
|
/**
|
|
84
|
-
* Name of the site that appears next to the logo
|
|
84
|
+
* Name of the site that appears next to the logo.
|
|
85
85
|
*/
|
|
86
86
|
siteTitle?: string;
|
|
87
87
|
/**
|
|
@@ -5,8 +5,8 @@ export type SearchProps = BaseIconButtonProps & {
|
|
|
5
5
|
*/
|
|
6
6
|
placeholder: string;
|
|
7
7
|
/**
|
|
8
|
-
* Used to describe the search icon and text field for
|
|
9
|
-
* page with a screen reader
|
|
8
|
+
* Used to describe the search icon and text field for people viewing the
|
|
9
|
+
* page with a screen reader.
|
|
10
10
|
*/
|
|
11
11
|
label: string;
|
|
12
12
|
/**
|
|
@@ -10,7 +10,7 @@ export type SkeletonPrimaryButtonProps = {
|
|
|
10
10
|
*/
|
|
11
11
|
children?: ReactNode;
|
|
12
12
|
/**
|
|
13
|
-
* Sets the appearance of the skeleton button to look like a dropdown button
|
|
13
|
+
* Sets the appearance of the skeleton button to look like a dropdown button.
|
|
14
14
|
*/
|
|
15
15
|
isDropdownButton?: boolean;
|
|
16
16
|
/**
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
export type SkeletonHelpButtonProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Describes the specific role of this navigation component for users viewing the page with a screen
|
|
5
|
-
* reader.
|
|
5
|
+
* reader. Use this to differentiate the buttons from other navigation buttons on a page.
|
|
6
6
|
*/
|
|
7
7
|
label: string;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
|
-
* __Skeleton
|
|
10
|
+
* __Skeleton notification button__
|
|
11
11
|
*
|
|
12
12
|
* Skeleton buttons are lightweight HTML button elements with CSS that represent
|
|
13
13
|
* their heavier interactive counterparts, for use when elements of the
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
export type SkeletonNotificationButtonProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Describes the specific role of this navigation component for users viewing the page with a screen
|
|
5
|
-
* reader.
|
|
5
|
+
* reader. Use this to differentiate the buttons from other navigation buttons on a page.
|
|
6
6
|
*/
|
|
7
7
|
label: string;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
|
-
* __Skeleton
|
|
10
|
+
* __Skeleton notification button__
|
|
11
11
|
*
|
|
12
12
|
* Skeleton buttons are lightweight HTML button elements with CSS that represent
|
|
13
13
|
* their heavier interactive counterparts, for use when elements of the
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export type SkeletonSettingsButtonProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Describes the specific role of this navigation component for users viewing the page with a screen
|
|
5
|
-
* reader.
|
|
5
|
+
* reader. Use this to differentiate the buttons from other navigation buttons on a page.
|
|
6
6
|
*/
|
|
7
7
|
label: string;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export type SkeletonSwitcherButtonProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Describes the specific role of this navigation component for users viewing the page with a screen
|
|
5
|
-
* reader.
|
|
5
|
+
* reader. Use this to differentiate the buttons from other navigation buttons on a page.
|
|
6
6
|
*/
|
|
7
7
|
label: string;
|
|
8
8
|
};
|
|
@@ -3,12 +3,12 @@ import { LogoProps } from '@atlaskit/logo';
|
|
|
3
3
|
export interface ProductHomeProps {
|
|
4
4
|
/**
|
|
5
5
|
* The product icon.
|
|
6
|
-
* Expected to be an Icon from the Atlaskit Logo package. Visible on smaller screen sizes
|
|
6
|
+
* Expected to be an Icon from the Atlaskit Logo package. Visible on smaller screen sizes.
|
|
7
7
|
*/
|
|
8
8
|
icon: ComponentType<Partial<LogoProps>>;
|
|
9
9
|
/**
|
|
10
10
|
* The product logo,
|
|
11
|
-
* visible on larger screen sizes
|
|
11
|
+
* visible on larger screen sizes.
|
|
12
12
|
*/
|
|
13
13
|
logo: ComponentType<Partial<LogoProps>>;
|
|
14
14
|
/**
|
|
@@ -81,7 +81,7 @@ export interface CustomProductHomeProps {
|
|
|
81
81
|
*/
|
|
82
82
|
href?: string;
|
|
83
83
|
/**
|
|
84
|
-
* Name of the site that appears next to the logo
|
|
84
|
+
* Name of the site that appears next to the logo.
|
|
85
85
|
*/
|
|
86
86
|
siteTitle?: string;
|
|
87
87
|
/**
|
|
@@ -5,8 +5,8 @@ export type SearchProps = BaseIconButtonProps & {
|
|
|
5
5
|
*/
|
|
6
6
|
placeholder: string;
|
|
7
7
|
/**
|
|
8
|
-
* Used to describe the search icon and text field for
|
|
9
|
-
* page with a screen reader
|
|
8
|
+
* Used to describe the search icon and text field for people viewing the
|
|
9
|
+
* page with a screen reader.
|
|
10
10
|
*/
|
|
11
11
|
label: string;
|
|
12
12
|
/**
|
|
@@ -10,7 +10,7 @@ export type SkeletonPrimaryButtonProps = {
|
|
|
10
10
|
*/
|
|
11
11
|
children?: ReactNode;
|
|
12
12
|
/**
|
|
13
|
-
* Sets the appearance of the skeleton button to look like a dropdown button
|
|
13
|
+
* Sets the appearance of the skeleton button to look like a dropdown button.
|
|
14
14
|
*/
|
|
15
15
|
isDropdownButton?: boolean;
|
|
16
16
|
/**
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
export type SkeletonHelpButtonProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Describes the specific role of this navigation component for users viewing the page with a screen
|
|
5
|
-
* reader.
|
|
5
|
+
* reader. Use this to differentiate the buttons from other navigation buttons on a page.
|
|
6
6
|
*/
|
|
7
7
|
label: string;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
|
-
* __Skeleton
|
|
10
|
+
* __Skeleton notification button__
|
|
11
11
|
*
|
|
12
12
|
* Skeleton buttons are lightweight HTML button elements with CSS that represent
|
|
13
13
|
* their heavier interactive counterparts, for use when elements of the
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
export type SkeletonNotificationButtonProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Describes the specific role of this navigation component for users viewing the page with a screen
|
|
5
|
-
* reader.
|
|
5
|
+
* reader. Use this to differentiate the buttons from other navigation buttons on a page.
|
|
6
6
|
*/
|
|
7
7
|
label: string;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
|
-
* __Skeleton
|
|
10
|
+
* __Skeleton notification button__
|
|
11
11
|
*
|
|
12
12
|
* Skeleton buttons are lightweight HTML button elements with CSS that represent
|
|
13
13
|
* their heavier interactive counterparts, for use when elements of the
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export type SkeletonSettingsButtonProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Describes the specific role of this navigation component for users viewing the page with a screen
|
|
5
|
-
* reader.
|
|
5
|
+
* reader. Use this to differentiate the buttons from other navigation buttons on a page.
|
|
6
6
|
*/
|
|
7
7
|
label: string;
|
|
8
8
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export type SkeletonSwitcherButtonProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Describes the specific role of this navigation component for users viewing the page with a screen
|
|
5
|
-
* reader.
|
|
5
|
+
* reader. Use this to differentiate the buttons from other navigation buttons on a page.
|
|
6
6
|
*/
|
|
7
7
|
label: string;
|
|
8
8
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "A horizontal navigation component for Atlassian products.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -26,23 +26,26 @@
|
|
|
26
26
|
"team": "Design System Team",
|
|
27
27
|
"deprecatedAutoEntryPoints": true,
|
|
28
28
|
"releaseModel": "continuous",
|
|
29
|
+
"productPushConsumption": [
|
|
30
|
+
"jira"
|
|
31
|
+
],
|
|
29
32
|
"website": {
|
|
30
33
|
"name": "Atlassian navigation",
|
|
31
34
|
"category": "Components"
|
|
32
35
|
}
|
|
33
36
|
},
|
|
34
37
|
"dependencies": {
|
|
35
|
-
"@atlaskit/analytics-namespaced-context": "^6.
|
|
36
|
-
"@atlaskit/button": "^17.
|
|
38
|
+
"@atlaskit/analytics-namespaced-context": "^6.9.0",
|
|
39
|
+
"@atlaskit/button": "^17.2.0",
|
|
37
40
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
38
41
|
"@atlaskit/icon": "^22.0.0",
|
|
39
42
|
"@atlaskit/logo": "*",
|
|
40
43
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
41
44
|
"@atlaskit/popup": "^1.11.0",
|
|
42
|
-
"@atlaskit/primitives": "^1.
|
|
45
|
+
"@atlaskit/primitives": "^1.17.0",
|
|
43
46
|
"@atlaskit/theme": "^12.6.0",
|
|
44
|
-
"@atlaskit/tokens": "^1.
|
|
45
|
-
"@atlaskit/tooltip": "^18.
|
|
47
|
+
"@atlaskit/tokens": "^1.33.0",
|
|
48
|
+
"@atlaskit/tooltip": "^18.1.0",
|
|
46
49
|
"@atlaskit/width-detector": "^4.1.0",
|
|
47
50
|
"@babel/runtime": "^7.0.0",
|
|
48
51
|
"@emotion/react": "^11.7.1",
|