@atlaskit/atlassian-navigation 4.0.0 → 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 +14 -1
- package/README.md +7 -3
- package/dist/cjs/components/AtlassianNavigation/index.js +6 -2
- package/dist/cjs/components/AtlassianNavigation/skeleton.js +6 -2
- 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 +4 -0
- package/dist/cjs/components/IconButton/skeleton.js +3 -1
- package/dist/cjs/components/PrimaryButton/index.js +5 -1
- package/dist/cjs/components/PrimaryButton/skeleton.js +3 -0
- 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 +9 -2
- package/dist/cjs/components/ProductHome/product-home.js +12 -5
- package/dist/cjs/components/ProductHome/skeleton.js +9 -3
- package/dist/cjs/components/Search/index.js +12 -0
- package/dist/cjs/components/Search/skeleton.js +7 -0
- package/dist/cjs/components/SkeletonCreateButton/index.js +5 -1
- package/dist/cjs/components/SkeletonIconButton/index.js +9 -2
- package/dist/cjs/components/SkeletonPrimaryButton/index.js +9 -1
- package/dist/es2019/components/AtlassianNavigation/index.js +6 -2
- package/dist/es2019/components/AtlassianNavigation/skeleton.js +6 -2
- 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 +5 -1
- package/dist/es2019/components/IconButton/skeleton.js +3 -0
- package/dist/es2019/components/PrimaryButton/index.js +5 -1
- package/dist/es2019/components/PrimaryButton/skeleton.js +3 -0
- 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 +14 -7
- package/dist/es2019/components/ProductHome/product-home.js +17 -10
- package/dist/es2019/components/ProductHome/skeleton.js +13 -7
- package/dist/es2019/components/Search/index.js +14 -2
- package/dist/es2019/components/Search/skeleton.js +9 -2
- package/dist/es2019/components/SkeletonCreateButton/index.js +5 -1
- package/dist/es2019/components/SkeletonIconButton/index.js +9 -2
- package/dist/es2019/components/SkeletonPrimaryButton/index.js +9 -0
- package/dist/esm/components/AtlassianNavigation/index.js +6 -2
- package/dist/esm/components/AtlassianNavigation/skeleton.js +6 -2
- 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 +4 -0
- package/dist/esm/components/IconButton/skeleton.js +3 -0
- package/dist/esm/components/PrimaryButton/index.js +5 -1
- package/dist/esm/components/PrimaryButton/skeleton.js +3 -0
- 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 +9 -2
- package/dist/esm/components/ProductHome/product-home.js +12 -5
- package/dist/esm/components/ProductHome/skeleton.js +9 -3
- package/dist/esm/components/Search/index.js +12 -0
- package/dist/esm/components/Search/skeleton.js +7 -0
- package/dist/esm/components/SkeletonCreateButton/index.js +5 -1
- package/dist/esm/components/SkeletonIconButton/index.js +9 -2
- package/dist/esm/components/SkeletonPrimaryButton/index.js +9 -0
- package/dist/types/components/AtlassianNavigation/index.d.ts +3 -0
- package/dist/types/components/AtlassianNavigation/skeleton.d.ts +3 -0
- package/dist/types/components/AtlassianNavigation/types.d.ts +24 -24
- package/dist/types/components/BadgeContainer/index.d.ts +3 -0
- package/dist/types/components/IconButton/skeleton.d.ts +3 -0
- package/dist/types/components/PrimaryButton/skeleton.d.ts +3 -0
- package/dist/types/components/ProductHome/skeleton.d.ts +4 -1
- package/dist/types/components/ProductHome/types.d.ts +22 -22
- package/dist/types/components/SkeletonCreateButton/index.d.ts +4 -1
- package/dist/types/components/SkeletonIconButton/index.d.ts +4 -1
- package/dist/types/components/SkeletonPrimaryButton/index.d.ts +3 -0
- 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-ts4.5/components/AtlassianNavigation/index.d.ts +3 -0
- package/dist/types-ts4.5/components/AtlassianNavigation/skeleton.d.ts +3 -0
- package/dist/types-ts4.5/components/AtlassianNavigation/types.d.ts +24 -24
- package/dist/types-ts4.5/components/BadgeContainer/index.d.ts +3 -0
- package/dist/types-ts4.5/components/IconButton/skeleton.d.ts +3 -0
- package/dist/types-ts4.5/components/PrimaryButton/skeleton.d.ts +3 -0
- package/dist/types-ts4.5/components/ProductHome/skeleton.d.ts +4 -1
- package/dist/types-ts4.5/components/ProductHome/types.d.ts +22 -22
- package/dist/types-ts4.5/components/SkeletonCreateButton/index.d.ts +4 -1
- package/dist/types-ts4.5/components/SkeletonIconButton/index.d.ts +4 -1
- package/dist/types-ts4.5/components/SkeletonPrimaryButton/index.d.ts +3 -0
- 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/package.json +108 -108
- package/report.api.md +162 -183
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { css, jsx } from '@emotion/react';
|
|
3
6
|
import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
@@ -10,6 +13,7 @@ import { PrimaryItemsContainer as PrimaryItemsContainerV2 } from '../PrimaryItem
|
|
|
10
13
|
var containerStyles = css({
|
|
11
14
|
display: 'flex',
|
|
12
15
|
boxSizing: 'border-box',
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
17
|
height: HORIZONTAL_GLOBAL_NAV_HEIGHT,
|
|
14
18
|
position: 'relative',
|
|
15
19
|
alignItems: 'center',
|
|
@@ -25,7 +29,7 @@ var leftStyles = css({
|
|
|
25
29
|
height: 'inherit',
|
|
26
30
|
alignItems: 'center',
|
|
27
31
|
flexGrow: 1,
|
|
28
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
32
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
29
33
|
'& > *': {
|
|
30
34
|
flexShrink: 0
|
|
31
35
|
}
|
|
@@ -34,7 +38,7 @@ var rightStyles = css({
|
|
|
34
38
|
display: 'flex',
|
|
35
39
|
alignItems: 'center',
|
|
36
40
|
flexShrink: 0,
|
|
37
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
41
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
38
42
|
'& > *': {
|
|
39
43
|
flexShrink: 0,
|
|
40
44
|
marginInlineEnd: "var(--ds-space-050, 4px)"
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { css, jsx } from '@emotion/react';
|
|
3
6
|
import { N30 } from '@atlaskit/theme/colors';
|
|
@@ -11,6 +14,7 @@ import { SearchSkeleton } from '../Search/skeleton';
|
|
|
11
14
|
var containerStyles = css({
|
|
12
15
|
display: 'flex',
|
|
13
16
|
boxSizing: 'border-box',
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
18
|
height: HORIZONTAL_GLOBAL_NAV_HEIGHT,
|
|
15
19
|
position: 'relative',
|
|
16
20
|
alignItems: 'center',
|
|
@@ -26,7 +30,7 @@ var leftStyles = css({
|
|
|
26
30
|
height: 'inherit',
|
|
27
31
|
alignItems: 'center',
|
|
28
32
|
flexGrow: 1,
|
|
29
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
33
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
30
34
|
'& > *': {
|
|
31
35
|
flexShrink: 0
|
|
32
36
|
}
|
|
@@ -35,7 +39,7 @@ var rightStyles = css({
|
|
|
35
39
|
display: 'flex',
|
|
36
40
|
alignItems: 'center',
|
|
37
41
|
flexShrink: 0,
|
|
38
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
42
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
39
43
|
'& > *': {
|
|
40
44
|
flexShrink: 0,
|
|
41
45
|
marginInlineEnd: "var(--ds-space-050, 4px)"
|
|
@@ -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';
|
|
@@ -12,15 +15,17 @@ import { getCreateButtonTheme } from './styles';
|
|
|
12
15
|
var wrapperStyles = css({
|
|
13
16
|
display: 'flex',
|
|
14
17
|
alignItems: 'center',
|
|
15
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
16
19
|
'& [data-hide-on-smallscreens]': _defineProperty({}, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
17
21
|
display: 'none !important'
|
|
18
22
|
}),
|
|
19
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
24
|
'& [data-hide-on-largescreens]': _defineProperty({}, "@media (min-width: ".concat(CREATE_BREAKPOINT, "px)"), {
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
21
26
|
display: 'none !important'
|
|
22
27
|
}),
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
28
|
+
// 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
|
|
24
29
|
'&&': {
|
|
25
30
|
marginInlineStart: "var(--ds-space-150, 12px)"
|
|
26
31
|
}
|
|
@@ -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';
|
|
@@ -14,6 +17,7 @@ var skeletonStyles = css({
|
|
|
14
17
|
opacity: 0.15
|
|
15
18
|
});
|
|
16
19
|
var mobileStyles = css(_defineProperty({}, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
17
21
|
display: 'none !important'
|
|
18
22
|
}));
|
|
19
23
|
|
|
@@ -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';
|
|
@@ -2,6 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["children", "testId", "tooltip", "isSelected", "isHighlighted"];
|
|
5
|
+
/**
|
|
6
|
+
* @jsxRuntime classic
|
|
7
|
+
*/
|
|
5
8
|
/** @jsx jsx */
|
|
6
9
|
import { forwardRef } from 'react';
|
|
7
10
|
import { css, jsx } from '@emotion/react';
|
|
@@ -20,10 +23,11 @@ var buttonBaseStyles = css({
|
|
|
20
23
|
flexDirection: 'column'
|
|
21
24
|
});
|
|
22
25
|
var buttonHighlightedStyles = css({
|
|
23
|
-
// 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, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
24
27
|
'&& > *': {
|
|
25
28
|
color: "var(".concat(VAR_BUTTON_SELECTED_COLOR, ")")
|
|
26
29
|
},
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
27
31
|
'&:after': {
|
|
28
32
|
height: 3,
|
|
29
33
|
position: 'absolute',
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
/**
|
|
4
|
+
* @jsxRuntime classic
|
|
5
|
+
*/
|
|
3
6
|
/** @jsx jsx */
|
|
4
7
|
import { useCallback, useState } from 'react';
|
|
5
8
|
import { css, jsx } from '@emotion/react';
|
|
@@ -16,7 +19,7 @@ var containerStyles = css({
|
|
|
16
19
|
flexBasis: 0,
|
|
17
20
|
flexGrow: 1,
|
|
18
21
|
flexShrink: 0,
|
|
19
|
-
// 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 -- Ignored via go/DSP-18766
|
|
20
23
|
'& > *': {
|
|
21
24
|
margin: "0 ".concat("var(--ds-space-050, 4px)"),
|
|
22
25
|
flexShrink: 0
|
|
@@ -3,6 +3,9 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
var _excluded = ["iconAlt", "iconUrl", "logoAlt", "logoUrl", "href", "onClick", "siteTitle", "onMouseDown", "testId", "logoMaxWidth"];
|
|
5
5
|
var _css3;
|
|
6
|
+
/**
|
|
7
|
+
* @jsxRuntime classic
|
|
8
|
+
*/
|
|
6
9
|
/** @jsx jsx */
|
|
7
10
|
import { Fragment } from 'react';
|
|
8
11
|
import { css, jsx } from '@emotion/react';
|
|
@@ -46,9 +49,11 @@ var productHomeButtonStyles = css((_css3 = {
|
|
|
46
49
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
47
50
|
color: 'inherit',
|
|
48
51
|
cursor: 'pointer',
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
49
53
|
'&::-moz-focus-inner': {
|
|
50
54
|
border: 0
|
|
51
55
|
},
|
|
56
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
52
57
|
'&:first-of-type': {
|
|
53
58
|
marginInlineStart: 0
|
|
54
59
|
},
|
|
@@ -67,7 +72,7 @@ var productHomeButtonStyles = css((_css3 = {
|
|
|
67
72
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
|
|
68
73
|
outline: "2px solid ".concat("var(--ds-border-focused, ".concat(B200, ")"))
|
|
69
74
|
},
|
|
70
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
75
|
+
// 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
|
|
71
76
|
'div&': {
|
|
72
77
|
pointerEvents: 'none'
|
|
73
78
|
}
|
|
@@ -148,7 +153,9 @@ var CustomProductHome = function CustomProductHome(props) {
|
|
|
148
153
|
style: {
|
|
149
154
|
borderRight: theme.mode.productHome.borderRight
|
|
150
155
|
},
|
|
151
|
-
css: [siteTitleStyles,
|
|
156
|
+
css: [siteTitleStyles,
|
|
157
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
158
|
+
getBooleanFF('platform.design-system-team.navigation-v2-no-jank_5yhbd') && hideSiteTitleStyles],
|
|
152
159
|
"data-testid": testId && "".concat(testId, "-site-title")
|
|
153
160
|
}, siteTitle));
|
|
154
161
|
};
|
|
@@ -3,6 +3,9 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
var _excluded = ["icon", "logo", "siteTitle", "onClick", "href", "onMouseDown", "testId", "logoMaxWidth"];
|
|
5
5
|
var _css;
|
|
6
|
+
/**
|
|
7
|
+
* @jsxRuntime classic
|
|
8
|
+
*/
|
|
6
9
|
/** @jsx jsx */
|
|
7
10
|
import { Fragment } from 'react';
|
|
8
11
|
import { css, jsx } from '@emotion/react';
|
|
@@ -29,9 +32,11 @@ var productHomeButtonStyles = css((_css = {
|
|
|
29
32
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
30
33
|
color: 'inherit',
|
|
31
34
|
cursor: 'pointer',
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
32
36
|
'&::-moz-focus-inner': {
|
|
33
37
|
border: 0
|
|
34
38
|
},
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
35
40
|
'&:first-of-type': {
|
|
36
41
|
marginInlineStart: 0
|
|
37
42
|
},
|
|
@@ -50,7 +55,7 @@ var productHomeButtonStyles = css((_css = {
|
|
|
50
55
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
|
|
51
56
|
outline: "var(--ds-border-width-outline, 2px)".concat(" solid ", "var(--ds-border-focused, #4C9AFF)")
|
|
52
57
|
},
|
|
53
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
58
|
+
// 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
|
|
54
59
|
'div&': {
|
|
55
60
|
pointerEvents: 'none'
|
|
56
61
|
}
|
|
@@ -64,11 +69,11 @@ var productLogoStyles = css(_defineProperty({
|
|
|
64
69
|
// productHome is aligned correctly
|
|
65
70
|
display: 'flex',
|
|
66
71
|
maxWidth: "var(".concat(VAR_LOGO_MAX_WIDTH, ")"),
|
|
67
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
72
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
68
73
|
'& > *': {
|
|
69
74
|
maxHeight: 24
|
|
70
75
|
},
|
|
71
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
76
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
72
77
|
'& > span > svg': {
|
|
73
78
|
maxWidth: "var(".concat(VAR_LOGO_MAX_WIDTH, ")")
|
|
74
79
|
}
|
|
@@ -82,7 +87,7 @@ var productIconStyles = css(_defineProperty({
|
|
|
82
87
|
// Ensure anything passed into
|
|
83
88
|
// productHome is aligned correctly
|
|
84
89
|
display: 'flex',
|
|
85
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
90
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
86
91
|
'& > *': {
|
|
87
92
|
maxHeight: 24
|
|
88
93
|
}
|
|
@@ -169,7 +174,9 @@ var ProductHome = function ProductHome(_ref) {
|
|
|
169
174
|
style: {
|
|
170
175
|
borderRight: theme.mode.productHome.borderRight
|
|
171
176
|
},
|
|
172
|
-
css: [siteTitleStyles,
|
|
177
|
+
css: [siteTitleStyles,
|
|
178
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
179
|
+
getBooleanFF('platform.design-system-team.navigation-v2-no-jank_5yhbd') && featureFlaggedSiteTitleStyles],
|
|
173
180
|
"data-testid": testId && "".concat(testId, "-site-title")
|
|
174
181
|
}, siteTitle));
|
|
175
182
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
var _css;
|
|
3
|
+
/**
|
|
4
|
+
* @jsxRuntime classic
|
|
5
|
+
*/
|
|
3
6
|
/** @jsx jsx */
|
|
4
7
|
|
|
5
8
|
import { Fragment } from 'react';
|
|
@@ -25,9 +28,11 @@ var productHomeButtonStyles = css((_css = {
|
|
|
25
28
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
26
29
|
color: 'inherit',
|
|
27
30
|
cursor: 'pointer',
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
28
32
|
'&::-moz-focus-inner': {
|
|
29
33
|
border: 0
|
|
30
34
|
},
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
31
36
|
'&:first-of-type': {
|
|
32
37
|
marginInlineStart: 0
|
|
33
38
|
},
|
|
@@ -47,7 +52,7 @@ var productHomeButtonStyles = css((_css = {
|
|
|
47
52
|
boxShadow: "var(".concat(VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, ")"),
|
|
48
53
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_HOVER, ")")
|
|
49
54
|
},
|
|
50
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
55
|
+
// 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
|
|
51
56
|
'div&': {
|
|
52
57
|
pointerEvents: 'none'
|
|
53
58
|
}
|
|
@@ -63,7 +68,7 @@ var productLogoStyles = css(_defineProperty({
|
|
|
63
68
|
height: 24,
|
|
64
69
|
maxHeight: 28,
|
|
65
70
|
opacity: 0.15,
|
|
66
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
71
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
67
72
|
'& > *': {
|
|
68
73
|
maxHeight: 24
|
|
69
74
|
}
|
|
@@ -76,7 +81,7 @@ var productIconStyles = css(_defineProperty({
|
|
|
76
81
|
height: 28,
|
|
77
82
|
borderRadius: "var(--ds-border-radius-circle, 50%)",
|
|
78
83
|
opacity: 0.15,
|
|
79
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
84
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
80
85
|
'& > *': {
|
|
81
86
|
maxHeight: 24
|
|
82
87
|
}
|
|
@@ -91,6 +96,7 @@ var siteTitleStyles = css({
|
|
|
91
96
|
marginInlineEnd: "var(--ds-space-050, 4px)",
|
|
92
97
|
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
93
98
|
paddingInlineEnd: "var(--ds-space-200, 16px)",
|
|
99
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
94
100
|
'&:after': {
|
|
95
101
|
width: '100%',
|
|
96
102
|
height: 14,
|
|
@@ -2,6 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
var _excluded = ["placeholder", "tooltip", "label", "value"];
|
|
5
|
+
/**
|
|
6
|
+
* @jsxRuntime classic
|
|
7
|
+
*/
|
|
5
8
|
/** @jsx jsx */
|
|
6
9
|
import { Fragment } from 'react';
|
|
7
10
|
import { css, jsx } from '@emotion/react';
|
|
@@ -14,6 +17,7 @@ var searchInputContainerStyles = css(_defineProperty({
|
|
|
14
17
|
marginInlineEnd: "var(--ds-space-100, 8px)",
|
|
15
18
|
marginInlineStart: "var(--ds-space-250, 20px)"
|
|
16
19
|
}, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
17
21
|
display: 'none !important'
|
|
18
22
|
}));
|
|
19
23
|
var searchInputIconStyles = css({
|
|
@@ -27,6 +31,7 @@ var searchInputIconStyles = css({
|
|
|
27
31
|
var newSearchBorderStyles = css({
|
|
28
32
|
border: "var(--ds-border-width, 1px)".concat(" solid"),
|
|
29
33
|
'&:focus': {
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
30
35
|
boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " var(", varSearchFocusBorderColor, ")")
|
|
31
36
|
}
|
|
32
37
|
});
|
|
@@ -35,24 +40,31 @@ var searchInputStyles = css({
|
|
|
35
40
|
width: '220px',
|
|
36
41
|
height: "var(--ds-space-400, 32px)",
|
|
37
42
|
padding: "0 ".concat("var(--ds-space-100, 8px)", " 0 ", "var(--ds-space-500, 40px)"),
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
38
44
|
backgroundColor: "var(".concat(varSearchBackgroundColor, ")"),
|
|
39
45
|
border: '2px solid',
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
40
47
|
borderColor: "var(".concat(varSearchBorderColor, ")"),
|
|
41
48
|
borderRadius: "var(--ds-border-radius-200, 6px)",
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
42
50
|
color: "var(".concat(varSearchColor, ")"),
|
|
43
51
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
44
52
|
outline: 'none',
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
45
54
|
'::placeholder': {
|
|
46
55
|
color: 'inherit'
|
|
47
56
|
},
|
|
48
57
|
'&:focus': {
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
49
59
|
borderColor: "var(".concat(varSearchFocusBorderColor, ")")
|
|
50
60
|
},
|
|
51
61
|
'&:hover': {
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
52
63
|
backgroundColor: "var(".concat(varSearchHoverBackgroundColor, ")")
|
|
53
64
|
}
|
|
54
65
|
});
|
|
55
66
|
var searchIconStyles = css(_defineProperty({}, "@media (min-width: ".concat(CREATE_BREAKPOINT, "px)"), {
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
56
68
|
display: 'none !important'
|
|
57
69
|
}));
|
|
58
70
|
var SearchComponent = function SearchComponent(props) {
|
|
@@ -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
|
|
|
@@ -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,12 +13,13 @@ 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
|
}
|
|
@@ -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,
|
|
@@ -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,
|
|
@@ -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
|
}
|