@atlaskit/atlassian-navigation 3.6.2 → 4.1.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 +733 -714
- package/README.md +7 -3
- package/afm-jira/tsconfig.json +58 -0
- package/dist/cjs/components/AtlassianNavigation/index.js +7 -2
- package/dist/cjs/components/AtlassianNavigation/skeleton.js +12 -7
- package/dist/cjs/components/BadgeContainer/index.js +3 -0
- package/dist/cjs/components/Create/index.js +8 -3
- package/dist/cjs/components/Create/skeleton.js +5 -0
- package/dist/cjs/components/IconButton/skeleton.js +7 -2
- package/dist/cjs/components/PrimaryButton/index.js +6 -1
- package/dist/cjs/components/PrimaryButton/skeleton.js +7 -1
- package/dist/cjs/components/PrimaryDropdownButton/index.js +3 -0
- package/dist/cjs/components/PrimaryItemsContainer/index.js +4 -1
- package/dist/cjs/components/PrimaryItemsContainer/skeleton.js +3 -0
- package/dist/cjs/components/ProductHome/custom-product-home.js +18 -8
- package/dist/cjs/components/ProductHome/product-home.js +24 -23
- package/dist/cjs/components/ProductHome/skeleton.js +17 -7
- package/dist/cjs/components/Search/index.js +13 -0
- package/dist/cjs/components/Search/skeleton.js +8 -0
- package/dist/cjs/components/SkeletonCreateButton/index.js +7 -2
- package/dist/cjs/components/SkeletonIconButton/index.js +10 -2
- package/dist/cjs/components/SkeletonPrimaryButton/index.js +12 -2
- package/dist/cjs/theme/default-theme.js +1 -7
- package/dist/es2019/components/AtlassianNavigation/index.js +7 -2
- package/dist/es2019/components/AtlassianNavigation/skeleton.js +12 -7
- package/dist/es2019/components/BadgeContainer/index.js +3 -0
- package/dist/es2019/components/Create/index.js +10 -5
- package/dist/es2019/components/Create/skeleton.js +6 -1
- package/dist/es2019/components/IconButton/skeleton.js +7 -1
- package/dist/es2019/components/PrimaryButton/index.js +6 -1
- package/dist/es2019/components/PrimaryButton/skeleton.js +7 -1
- package/dist/es2019/components/PrimaryDropdownButton/index.js +3 -0
- package/dist/es2019/components/PrimaryItemsContainer/index.js +4 -1
- package/dist/es2019/components/PrimaryItemsContainer/skeleton.js +3 -0
- package/dist/es2019/components/ProductHome/custom-product-home.js +23 -13
- package/dist/es2019/components/ProductHome/product-home.js +27 -24
- package/dist/es2019/components/ProductHome/skeleton.js +21 -11
- package/dist/es2019/components/Search/index.js +15 -2
- package/dist/es2019/components/Search/skeleton.js +10 -2
- package/dist/es2019/components/SkeletonCreateButton/index.js +7 -2
- package/dist/es2019/components/SkeletonIconButton/index.js +10 -2
- package/dist/es2019/components/SkeletonPrimaryButton/index.js +12 -1
- package/dist/es2019/theme/default-theme.js +1 -7
- package/dist/esm/components/AtlassianNavigation/index.js +7 -2
- package/dist/esm/components/AtlassianNavigation/skeleton.js +12 -7
- package/dist/esm/components/BadgeContainer/index.js +3 -0
- package/dist/esm/components/Create/index.js +8 -3
- package/dist/esm/components/Create/skeleton.js +5 -0
- package/dist/esm/components/IconButton/skeleton.js +7 -1
- package/dist/esm/components/PrimaryButton/index.js +6 -1
- package/dist/esm/components/PrimaryButton/skeleton.js +7 -1
- package/dist/esm/components/PrimaryDropdownButton/index.js +3 -0
- package/dist/esm/components/PrimaryItemsContainer/index.js +4 -1
- package/dist/esm/components/PrimaryItemsContainer/skeleton.js +3 -0
- package/dist/esm/components/ProductHome/custom-product-home.js +18 -8
- package/dist/esm/components/ProductHome/product-home.js +24 -23
- package/dist/esm/components/ProductHome/skeleton.js +17 -7
- package/dist/esm/components/Search/index.js +13 -0
- package/dist/esm/components/Search/skeleton.js +8 -0
- package/dist/esm/components/SkeletonCreateButton/index.js +7 -2
- package/dist/esm/components/SkeletonIconButton/index.js +10 -2
- package/dist/esm/components/SkeletonPrimaryButton/index.js +12 -1
- package/dist/esm/theme/default-theme.js +1 -7
- package/dist/types/components/AppSwitcher/index.d.ts +1 -1
- package/dist/types/components/AppSwitcher/types.d.ts +1 -1
- package/dist/types/components/AtlassianNavigation/index.d.ts +4 -1
- package/dist/types/components/AtlassianNavigation/skeleton.d.ts +4 -1
- package/dist/types/components/AtlassianNavigation/types.d.ts +26 -26
- package/dist/types/components/BadgeContainer/index.d.ts +4 -1
- package/dist/types/components/BadgeContainer/types.d.ts +1 -1
- package/dist/types/components/Create/index.d.ts +1 -1
- package/dist/types/components/Create/styles.d.ts +2 -2
- package/dist/types/components/Create/types.d.ts +1 -1
- package/dist/types/components/Help/types.d.ts +2 -2
- package/dist/types/components/IconButton/skeleton.d.ts +4 -1
- package/dist/types/components/IconButton/styles.d.ts +2 -2
- package/dist/types/components/IconButton/types.d.ts +2 -5
- package/dist/types/components/Notifications/types.d.ts +2 -2
- package/dist/types/components/PrimaryButton/skeleton.d.ts +4 -1
- package/dist/types/components/PrimaryButton/styles.d.ts +2 -2
- package/dist/types/components/PrimaryButton/types.d.ts +4 -5
- package/dist/types/components/PrimaryDropdownButton/types.d.ts +1 -1
- package/dist/types/components/PrimaryItemsContainer/index.d.ts +2 -2
- package/dist/types/components/PrimaryItemsContainer/skeleton.d.ts +1 -1
- package/dist/types/components/PrimaryItemsContainer/types.d.ts +1 -1
- package/dist/types/components/PrimaryItemsContainerV2/index.d.ts +2 -2
- package/dist/types/components/ProductHome/custom-product-home.d.ts +1 -1
- package/dist/types/components/ProductHome/product-home.d.ts +1 -1
- package/dist/types/components/ProductHome/skeleton.d.ts +4 -1
- package/dist/types/components/ProductHome/types.d.ts +24 -24
- package/dist/types/components/Profile/index.d.ts +1 -1
- package/dist/types/components/Profile/types.d.ts +1 -1
- package/dist/types/components/Search/index.d.ts +1 -1
- package/dist/types/components/Search/types.d.ts +1 -1
- package/dist/types/components/Settings/types.d.ts +1 -1
- package/dist/types/components/SignIn/index.d.ts +1 -1
- package/dist/types/components/SignIn/types.d.ts +1 -1
- package/dist/types/components/SkeletonCreateButton/index.d.ts +5 -2
- package/dist/types/components/SkeletonIconButton/index.d.ts +5 -2
- package/dist/types/components/SkeletonIconButton/types.d.ts +1 -1
- package/dist/types/components/SkeletonPrimaryButton/index.d.ts +4 -1
- package/dist/types/components/SkeletonPrimaryButton/types.d.ts +1 -1
- package/dist/types/controllers/overflow/index.d.ts +2 -2
- package/dist/types/controllers/overflow/types.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/skeleton-notification-button.d.ts +1 -1
- package/dist/types/skeleton-settings-button.d.ts +1 -1
- package/dist/types/skeleton-switcher-button.d.ts +1 -1
- package/dist/types/theme/default-theme.d.ts +1 -1
- package/dist/types/theme/theme-generator.d.ts +1 -1
- package/dist/types/theme/themes.d.ts +1 -1
- package/dist/types/theme/types.d.ts +1 -3
- package/dist/types-ts4.5/components/AppSwitcher/index.d.ts +1 -1
- package/dist/types-ts4.5/components/AppSwitcher/types.d.ts +1 -1
- package/dist/types-ts4.5/components/AtlassianNavigation/index.d.ts +4 -1
- package/dist/types-ts4.5/components/AtlassianNavigation/skeleton.d.ts +4 -1
- package/dist/types-ts4.5/components/AtlassianNavigation/types.d.ts +26 -26
- package/dist/types-ts4.5/components/BadgeContainer/index.d.ts +4 -1
- package/dist/types-ts4.5/components/BadgeContainer/types.d.ts +1 -1
- package/dist/types-ts4.5/components/Create/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Create/styles.d.ts +2 -2
- package/dist/types-ts4.5/components/Create/types.d.ts +1 -1
- package/dist/types-ts4.5/components/Help/types.d.ts +2 -2
- package/dist/types-ts4.5/components/IconButton/skeleton.d.ts +4 -1
- package/dist/types-ts4.5/components/IconButton/styles.d.ts +2 -2
- package/dist/types-ts4.5/components/IconButton/types.d.ts +2 -5
- package/dist/types-ts4.5/components/Notifications/types.d.ts +2 -2
- package/dist/types-ts4.5/components/PrimaryButton/skeleton.d.ts +4 -1
- package/dist/types-ts4.5/components/PrimaryButton/styles.d.ts +2 -2
- package/dist/types-ts4.5/components/PrimaryButton/types.d.ts +4 -5
- package/dist/types-ts4.5/components/PrimaryDropdownButton/types.d.ts +1 -1
- package/dist/types-ts4.5/components/PrimaryItemsContainer/index.d.ts +2 -2
- package/dist/types-ts4.5/components/PrimaryItemsContainer/skeleton.d.ts +1 -1
- package/dist/types-ts4.5/components/PrimaryItemsContainer/types.d.ts +1 -1
- package/dist/types-ts4.5/components/PrimaryItemsContainerV2/index.d.ts +2 -2
- package/dist/types-ts4.5/components/ProductHome/custom-product-home.d.ts +1 -1
- package/dist/types-ts4.5/components/ProductHome/product-home.d.ts +1 -1
- package/dist/types-ts4.5/components/ProductHome/skeleton.d.ts +4 -1
- package/dist/types-ts4.5/components/ProductHome/types.d.ts +24 -24
- package/dist/types-ts4.5/components/Profile/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Profile/types.d.ts +1 -1
- package/dist/types-ts4.5/components/Search/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Search/types.d.ts +1 -1
- package/dist/types-ts4.5/components/Settings/types.d.ts +1 -1
- package/dist/types-ts4.5/components/SignIn/index.d.ts +1 -1
- package/dist/types-ts4.5/components/SignIn/types.d.ts +1 -1
- package/dist/types-ts4.5/components/SkeletonCreateButton/index.d.ts +5 -2
- package/dist/types-ts4.5/components/SkeletonIconButton/index.d.ts +5 -2
- package/dist/types-ts4.5/components/SkeletonIconButton/types.d.ts +1 -1
- package/dist/types-ts4.5/components/SkeletonPrimaryButton/index.d.ts +4 -1
- package/dist/types-ts4.5/components/SkeletonPrimaryButton/types.d.ts +1 -1
- package/dist/types-ts4.5/controllers/overflow/index.d.ts +2 -2
- package/dist/types-ts4.5/controllers/overflow/types.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/skeleton-notification-button.d.ts +1 -1
- 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/dist/types-ts4.5/theme/default-theme.d.ts +1 -1
- package/dist/types-ts4.5/theme/theme-generator.d.ts +1 -1
- package/dist/types-ts4.5/theme/themes.d.ts +1 -1
- package/dist/types-ts4.5/theme/types.d.ts +1 -3
- package/package.json +108 -113
- package/report.api.md +162 -183
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { Fragment } from 'react';
|
|
4
7
|
import { css, jsx } from '@emotion/react';
|
|
@@ -6,10 +9,13 @@ import { CREATE_BREAKPOINT } from '../../common/constants';
|
|
|
6
9
|
import { useTheme } from '../../theme';
|
|
7
10
|
import { IconButtonSkeleton } from '../IconButton/skeleton';
|
|
8
11
|
var searchInputContainerStyles = css(_defineProperty({
|
|
12
|
+
// eslint-disable-next-line @atlaskit/design-system/no-physical-properties
|
|
9
13
|
marginRight: "var(--ds-space-100, 8px)",
|
|
14
|
+
// eslint-disable-next-line @atlaskit/design-system/no-physical-properties
|
|
10
15
|
marginLeft: "var(--ds-space-250, 20px)",
|
|
11
16
|
position: 'relative'
|
|
12
17
|
}, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
13
19
|
display: 'none !important'
|
|
14
20
|
}));
|
|
15
21
|
var searchInputSkeletonStyles = css({
|
|
@@ -21,6 +27,7 @@ var searchInputSkeletonStyles = css({
|
|
|
21
27
|
opacity: 0.15
|
|
22
28
|
});
|
|
23
29
|
var searchIconStyles = css(_defineProperty({}, "@media (min-width: ".concat(CREATE_BREAKPOINT, "px)"), {
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
24
31
|
display: 'none !important'
|
|
25
32
|
}));
|
|
26
33
|
|
|
@@ -31,6 +38,7 @@ export var SearchSkeleton = function SearchSkeleton() {
|
|
|
31
38
|
return jsx(Fragment, null, jsx("div", {
|
|
32
39
|
css: searchInputContainerStyles
|
|
33
40
|
}, jsx("div", {
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
34
42
|
style: theme.mode.skeleton,
|
|
35
43
|
css: searchInputSkeletonStyles
|
|
36
44
|
})), jsx(IconButtonSkeleton, {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { css, jsx } from '@emotion/react';
|
|
3
6
|
import { useTheme } from '../../theme';
|
|
@@ -10,14 +13,15 @@ var skeletonCreateButtonStyles = css({
|
|
|
10
13
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
11
14
|
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
12
15
|
pointerEvents: 'none',
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
13
17
|
':focus, :active, :hover': {
|
|
14
18
|
appearance: 'none',
|
|
15
19
|
border: 0,
|
|
16
20
|
outline: 0
|
|
17
21
|
},
|
|
18
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
22
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
19
23
|
'&&': {
|
|
20
|
-
|
|
24
|
+
marginInlineStart: "var(--ds-space-150, 12px)"
|
|
21
25
|
}
|
|
22
26
|
});
|
|
23
27
|
|
|
@@ -36,6 +40,7 @@ export var SkeletonCreateButton = function SkeletonCreateButton(_ref) {
|
|
|
36
40
|
testId = _ref.testId;
|
|
37
41
|
var theme = useTheme();
|
|
38
42
|
return jsx("button", {
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
39
44
|
style: theme.mode.create.default,
|
|
40
45
|
css: skeletonCreateButtonStyles,
|
|
41
46
|
"data-testid": testId,
|
|
@@ -1,26 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { css, jsx } from '@emotion/react';
|
|
3
6
|
import { useTheme } from '../../theme';
|
|
4
7
|
var skeletonIconButtonStyles = css({
|
|
5
8
|
margin: 0,
|
|
9
|
+
// eslint-disable-next-line @atlaskit/design-system/no-physical-properties
|
|
6
10
|
marginRight: "var(--ds-space-050, 4px)",
|
|
7
11
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-075, 6px)"),
|
|
8
12
|
border: 0,
|
|
9
13
|
borderRadius: "var(--ds-border-radius-circle, 100%)",
|
|
10
14
|
pointerEvents: 'none',
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
11
16
|
':focus, :active, :hover': {
|
|
12
17
|
appearance: 'none',
|
|
13
18
|
border: 0,
|
|
14
19
|
outline: 0
|
|
15
20
|
},
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
16
22
|
'&:only-of-type': {
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/no-physical-properties
|
|
17
24
|
marginRight: 0
|
|
18
25
|
},
|
|
19
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
27
|
'& > span': {
|
|
21
28
|
lineHeight: 'normal'
|
|
22
29
|
},
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
30
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
31
|
'& > img': {
|
|
25
32
|
width: 24,
|
|
26
33
|
height: 24,
|
|
@@ -44,6 +51,7 @@ export var SkeletonIconButton = function SkeletonIconButton(_ref) {
|
|
|
44
51
|
testId = _ref.testId;
|
|
45
52
|
var theme = useTheme();
|
|
46
53
|
return jsx("button", {
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
47
55
|
style: theme.mode.iconButton.default,
|
|
48
56
|
"data-testid": testId,
|
|
49
57
|
css: skeletonIconButtonStyles,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
3
3
|
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; }
|
|
4
|
+
/**
|
|
5
|
+
* @jsxRuntime classic
|
|
6
|
+
*/
|
|
4
7
|
/** @jsx jsx */
|
|
5
8
|
import { css, jsx } from '@emotion/react';
|
|
6
9
|
import { useTheme } from '../../theme';
|
|
@@ -15,16 +18,19 @@ var primaryButtonSkeletonStyles = css({
|
|
|
15
18
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
16
19
|
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
17
20
|
pointerEvents: 'none',
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
18
22
|
':focus, :active, :hover': {
|
|
19
23
|
appearance: 'none',
|
|
20
24
|
border: 0,
|
|
21
25
|
outline: 0
|
|
22
26
|
},
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
23
28
|
'::-moz-focus-inner': {
|
|
24
29
|
border: 0
|
|
25
30
|
}
|
|
26
31
|
});
|
|
27
32
|
var isHighlightedStyles = css({
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
28
34
|
'&:before': {
|
|
29
35
|
height: 3,
|
|
30
36
|
position: 'absolute',
|
|
@@ -37,12 +43,14 @@ var isHighlightedStyles = css({
|
|
|
37
43
|
}
|
|
38
44
|
});
|
|
39
45
|
var isHighlightedAndDropdownButtonStyles = css({
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
40
47
|
'&:before': {
|
|
41
48
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
42
49
|
insetInlineEnd: -10
|
|
43
50
|
}
|
|
44
51
|
});
|
|
45
52
|
var isHighlightedNotDropdownButtonStyles = css({
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
46
54
|
'&:before': {
|
|
47
55
|
insetInlineEnd: "var(--ds-space-025, 2px)"
|
|
48
56
|
}
|
|
@@ -50,6 +58,7 @@ var isHighlightedNotDropdownButtonStyles = css({
|
|
|
50
58
|
var isDropdownButtonStyles = css({
|
|
51
59
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
52
60
|
marginInlineEnd: 18,
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
53
62
|
'&:after': {
|
|
54
63
|
display: 'inline-block',
|
|
55
64
|
width: 4,
|
|
@@ -93,7 +102,9 @@ export var SkeletonPrimaryButton = function SkeletonPrimaryButton(_ref) {
|
|
|
93
102
|
color: primaryButton.selected.color
|
|
94
103
|
}), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR, primaryButton.selected.borderColor), _defineProperty(_objectSpread2, VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR, isHighlighted ? primaryButton.default.borderColor : primaryButton.default.color), _objectSpread2));
|
|
95
104
|
return jsx("button", {
|
|
96
|
-
type: "button"
|
|
105
|
+
type: "button"
|
|
106
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
107
|
+
,
|
|
97
108
|
style: dynamicStyles,
|
|
98
109
|
css: [primaryButtonSkeletonStyles, isHighlighted && isHighlightedStyles, isDropdownButton && isDropdownButtonStyles, isHighlighted && (isDropdownButton ? isHighlightedAndDropdownButtonStyles : isHighlightedNotDropdownButtonStyles)],
|
|
99
110
|
"data-testid": testId
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
import { B200, B400, B50, N0, N100, N20, N200, N600, N700 } from '@atlaskit/theme/colors';
|
|
3
2
|
import { hexToRGBA } from './theme-helpers';
|
|
4
3
|
var defaultTheme = {
|
|
@@ -70,13 +69,8 @@ var defaultTheme = {
|
|
|
70
69
|
backgroundColor: "var(--ds-text-brand, ".concat(B400, ")"),
|
|
71
70
|
color: "var(--ds-text, ".concat(N700, ")"),
|
|
72
71
|
borderRight: "1px solid ".concat("var(--ds-border, ".concat(hexToRGBA(N200, 0.3), ")")),
|
|
73
|
-
// TODO: (DSP-1256) These colors should be moved into the Logo package
|
|
74
72
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
75
|
-
|
|
76
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
77
|
-
iconGradientStop: B200,
|
|
78
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
79
|
-
iconColor: getBooleanFF('platform.design-system-team.brand-refresh-update-product-logos_q7coo') ? '#357DE8' : B200
|
|
73
|
+
iconColor: '#357DE8' // TODO: replace with token after brand refresh
|
|
80
74
|
},
|
|
81
75
|
primaryButton: {
|
|
82
76
|
active: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BaseIconButtonProps } from '../IconButton/types';
|
|
1
|
+
import { type BaseIconButtonProps } from '../IconButton/types';
|
|
2
2
|
export type AppSwitcherProps = BaseIconButtonProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React,
|
|
2
|
-
import { NavigationTheme } from '../../theme';
|
|
1
|
+
import { type default as React, type ReactNode, type ReactNodeArray } from 'react';
|
|
2
|
+
import { type NavigationTheme } from '../../theme';
|
|
3
3
|
export interface AtlassianNavigationProps {
|
|
4
4
|
/**
|
|
5
5
|
* Describes the specific role of this navigation component for users viewing the page with a screen
|
|
@@ -55,18 +55,18 @@ export interface AtlassianNavigationProps {
|
|
|
55
55
|
*/
|
|
56
56
|
theme?: NavigationTheme;
|
|
57
57
|
/**
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
58
|
+
A `testId` prop is provided for specified elements,
|
|
59
|
+
which is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
60
|
+
serving as a hook for automated tests.
|
|
61
|
+
|
|
62
|
+
Will set these elements when defined:
|
|
63
|
+
|
|
64
|
+
- Header element - `{testId}-header`
|
|
65
|
+
- Primary actions container - `{testId}-primary-actions`
|
|
66
|
+
- Secondary actions container - `{testId}-secondary-actions`
|
|
67
|
+
- Overflow menu popup - `{testId}-overflow-menu-popup`
|
|
68
|
+
- Overflow menu button - `{testId}-overflow-menu-trigger`
|
|
69
|
+
*/
|
|
70
70
|
testId?: string;
|
|
71
71
|
}
|
|
72
72
|
export interface NavigationSkeletonProps {
|
|
@@ -91,17 +91,17 @@ export interface NavigationSkeletonProps {
|
|
|
91
91
|
*/
|
|
92
92
|
theme?: NavigationTheme;
|
|
93
93
|
/**
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
94
|
+
A `testId` prop is provided for specified elements,
|
|
95
|
+
which is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
96
|
+
serving as a hook for automated tests.
|
|
97
|
+
|
|
98
|
+
Will set these elements when defined:
|
|
99
|
+
|
|
100
|
+
- Header element - `{testId}-header`
|
|
101
|
+
- Primary actions container - `{testId}-primary-actions`
|
|
102
|
+
- Secondary actions container - `{testId}-secondary-actions`
|
|
103
|
+
- Overflow menu popup - `{testId}-overflow-menu-popup`
|
|
104
|
+
- Overflow menu button - `{testId}-overflow-menu-trigger`
|
|
105
|
+
*/
|
|
106
106
|
testId?: string;
|
|
107
107
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ThemeProps, ThemeTokens } from '@atlaskit/button/types';
|
|
2
|
-
import { NavigationTheme } from '../../theme';
|
|
1
|
+
import { type ThemeProps, type ThemeTokens } from '@atlaskit/button/types';
|
|
2
|
+
import { type NavigationTheme } from '../../theme';
|
|
3
3
|
export declare const getCreateButtonTheme: ({ mode: { create } }: NavigationTheme) => (current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
import { BaseIconButtonProps } from '../IconButton/types';
|
|
1
|
+
import { type ComponentType } from 'react';
|
|
2
|
+
import { type BaseIconButtonProps } from '../IconButton/types';
|
|
3
3
|
export type HelpProps = BaseIconButtonProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Component to be used for the badge.
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { IconButtonSkeletonProps } from './types';
|
|
6
|
+
import { type IconButtonSkeletonProps } from './types';
|
|
4
7
|
export declare const IconButtonSkeleton: ({ className, marginLeft, marginRight, size, }: IconButtonSkeletonProps) => jsx.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ThemeProps, ThemeTokens } from '@atlaskit/button/types';
|
|
2
|
-
import { NavigationTheme } from '../../theme';
|
|
1
|
+
import { type ThemeProps, type ThemeTokens } from '@atlaskit/button/types';
|
|
2
|
+
import { type NavigationTheme } from '../../theme';
|
|
3
3
|
export declare const getIconButtonTheme: ({ mode: { iconButton } }: NavigationTheme) => (current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
2
|
+
import { type CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
3
3
|
export type IconButtonProps = BaseIconButtonProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Icon for the button.
|
|
@@ -60,12 +60,9 @@ export interface BaseIconButtonProps {
|
|
|
60
60
|
target?: string;
|
|
61
61
|
/**
|
|
62
62
|
* Allows for overriding the component used to render the button.
|
|
63
|
-
*
|
|
64
63
|
* This is primarily intended for compatibility with custom
|
|
65
64
|
* routing libraries when using the `href` prop.
|
|
66
|
-
*
|
|
67
|
-
* For further usage information, refer to the [documentation for button](https://atlassian.design/components/button/code).
|
|
68
|
-
*
|
|
65
|
+
* For further usage information, refer to the [documentation for button](/components/button/code).
|
|
69
66
|
* @example
|
|
70
67
|
* ```tsx
|
|
71
68
|
* <Settings
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
import { BaseIconButtonProps } from '../IconButton/types';
|
|
1
|
+
import { type ComponentType } from 'react';
|
|
2
|
+
import { type BaseIconButtonProps } from '../IconButton/types';
|
|
3
3
|
export type NotificationsProps = BaseIconButtonProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Component to be used for the badge.
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { PrimaryButtonSkeletonProps } from './types';
|
|
6
|
+
import { type PrimaryButtonSkeletonProps } from './types';
|
|
4
7
|
export declare const PrimaryButtonSkeleton: (props: PrimaryButtonSkeletonProps) => jsx.JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ThemeProps, ThemeTokens } from '@atlaskit/button/types';
|
|
2
|
-
import { NavigationTheme } from '../../theme';
|
|
1
|
+
import { type ThemeProps, type ThemeTokens } from '@atlaskit/button/types';
|
|
2
|
+
import { type NavigationTheme } from '../../theme';
|
|
3
3
|
export declare const getPrimaryButtonTheme: ({ mode: { primaryButton } }: NavigationTheme) => (current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { AllHTMLAttributes, ComponentType, ElementType } from 'react';
|
|
2
|
-
import { CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
1
|
+
import { type AllHTMLAttributes, type ComponentType, type ElementType } from 'react';
|
|
2
|
+
import { type CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
3
3
|
export type PrimaryButtonProps = Omit<CustomThemeButtonProps, 'appearance' | 'onClick'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Allows for overriding the component used to render the button.
|
|
6
|
-
*
|
|
7
|
-
* This is primarily intended for compatibility with custom
|
|
6
|
+
* This is primarily intended for compatibility with custom
|
|
8
7
|
* routing libraries when using the `href` prop.
|
|
9
8
|
*
|
|
10
|
-
*
|
|
9
|
+
* For further usage information, refer to the [documentation for button](https://atlassian.design/components/button/button-legacy/code).
|
|
11
10
|
*
|
|
12
11
|
* @example
|
|
13
12
|
* ```tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { PrimaryButtonProps } from '../PrimaryButton/types';
|
|
2
|
+
import { type PrimaryButtonProps } from '../PrimaryButton/types';
|
|
3
3
|
export type PrimaryDropdownButtonProps = Omit<PrimaryButtonProps, 'iconAfter'> & {
|
|
4
4
|
/**
|
|
5
5
|
* Will set the appearance of the button to look highlighted.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from '@emotion/react';
|
|
2
|
-
import { NavigationTheme } from '../../theme';
|
|
3
|
-
import { PrimaryItemsContainerProps } from './types';
|
|
2
|
+
import { type NavigationTheme } from '../../theme';
|
|
3
|
+
import { type PrimaryItemsContainerProps } from './types';
|
|
4
4
|
export declare const PrimaryItemsContainer: ({ moreLabel, items, create: Create, theme, testId, }: PrimaryItemsContainerProps & {
|
|
5
5
|
theme: NavigationTheme;
|
|
6
6
|
}) => jsx.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
|
-
import { PrimaryItemsContainerSkeletonProps } from './types';
|
|
3
|
+
import { type PrimaryItemsContainerSkeletonProps } from './types';
|
|
4
4
|
export declare const PrimaryItemsContainerSkeleton: import("react").MemoExoticComponent<({ count }: PrimaryItemsContainerSkeletonProps) => jsx.JSX.Element>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { NavigationTheme } from '../../theme';
|
|
3
|
-
import { PrimaryItemsContainerProps } from '../PrimaryItemsContainer/types';
|
|
2
|
+
import { type NavigationTheme } from '../../theme';
|
|
3
|
+
import { type PrimaryItemsContainerProps } from '../PrimaryItemsContainer/types';
|
|
4
4
|
export declare const PrimaryItemsContainer: React.MemoExoticComponent<({ moreLabel, items, create: Create, theme, testId, }: PrimaryItemsContainerProps & {
|
|
5
5
|
theme: NavigationTheme;
|
|
6
6
|
}) => JSX.Element>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { jsx } from '@emotion/react';
|
|
3
|
-
export declare const ProductHomeSkeleton: ({ showSiteName
|
|
6
|
+
export declare const ProductHomeSkeleton: ({ showSiteName }: {
|
|
4
7
|
showSiteName: boolean;
|
|
5
8
|
}) => jsx.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentType, MouseEvent } from 'react';
|
|
2
|
-
import { LogoProps } from '@atlaskit/logo';
|
|
1
|
+
import { type ComponentType, type MouseEvent } from 'react';
|
|
2
|
+
import { type LogoProps } from '@atlaskit/logo';
|
|
3
3
|
export interface ProductHomeProps {
|
|
4
4
|
/**
|
|
5
5
|
* The product icon.
|
|
@@ -33,17 +33,17 @@ export interface ProductHomeProps {
|
|
|
33
33
|
*/
|
|
34
34
|
siteTitle?: string;
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
36
|
+
A `testId` prop is provided for specified elements,
|
|
37
|
+
which is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
38
|
+
serving as a hook for automated tests.
|
|
39
|
+
|
|
40
|
+
Will set these elements when defined:
|
|
41
|
+
|
|
42
|
+
- Root element of the component - `{testId}-container`
|
|
43
|
+
- Product logo shown at large screen sizes - `{testId}-logo`
|
|
44
|
+
- Product icon shown at small screen sizes - `{testId}-icon`
|
|
45
|
+
- Site title - `{testId}-site-title`
|
|
46
|
+
*/
|
|
47
47
|
testId?: string;
|
|
48
48
|
}
|
|
49
49
|
export interface CustomProductHomeProps {
|
|
@@ -85,16 +85,16 @@ export interface CustomProductHomeProps {
|
|
|
85
85
|
*/
|
|
86
86
|
siteTitle?: string;
|
|
87
87
|
/**
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
88
|
+
A `testId` prop is provided for specified elements,
|
|
89
|
+
which is a unique string that appears as a data attribute `data-testid` in the rendered code,
|
|
90
|
+
serving as a hook for automated tests.
|
|
91
|
+
|
|
92
|
+
Will set these elements when defined:
|
|
93
|
+
|
|
94
|
+
- Root element of the component - `{testId}-container`
|
|
95
|
+
- Product logo shown at large screen sizes - `{testId}-logo`
|
|
96
|
+
- Product icon shown at small screen sizes - `{testId}-icon`
|
|
97
|
+
- Site title - `{testId}-site-title`
|
|
98
|
+
*/
|
|
99
99
|
testId?: string;
|
|
100
100
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { IconButtonProps } from '../IconButton/types';
|
|
1
|
+
import { type IconButtonProps } from '../IconButton/types';
|
|
2
2
|
export type ProfileProps = IconButtonProps;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BaseIconButtonProps } from '../IconButton/types';
|
|
1
|
+
import { type BaseIconButtonProps } from '../IconButton/types';
|
|
2
2
|
export type SettingsProps = BaseIconButtonProps;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BaseIconButtonProps } from '../IconButton/types';
|
|
1
|
+
import { type BaseIconButtonProps } from '../IconButton/types';
|
|
2
2
|
export type SignInProps = BaseIconButtonProps;
|