@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
package/README.md
CHANGED
|
@@ -10,7 +10,11 @@ yarn add @atlaskit/atlassian-navigation
|
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
|
-
Detailed docs and example usage can be found
|
|
13
|
+
Detailed docs and example usage can be found
|
|
14
|
+
[here](https://atlassian.design/components/atlassian-navigation).
|
|
14
15
|
|
|
15
|
-
To add side navigation, use
|
|
16
|
-
|
|
16
|
+
To add side navigation, use
|
|
17
|
+
[@atlaskit/side-navigation](https://atlaskit.atlassian.com/packages/navigation/side-navigation) To
|
|
18
|
+
control the layout of these navigation elements and add expand/collapse functionality to
|
|
19
|
+
`side-navigation`, use
|
|
20
|
+
[@atlaskit/page-layout](https://atlaskit.atlassian.com/packages/design-system/page-layout).
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.products.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../tsDist/@atlaskit__atlassian-navigation/app",
|
|
7
|
+
"composite": true,
|
|
8
|
+
"rootDir": "../",
|
|
9
|
+
"baseUrl": "../"
|
|
10
|
+
},
|
|
11
|
+
"include": [
|
|
12
|
+
"../src/**/*.ts",
|
|
13
|
+
"../src/**/*.tsx"
|
|
14
|
+
],
|
|
15
|
+
"exclude": [
|
|
16
|
+
"../src/**/__tests__/*",
|
|
17
|
+
"../src/**/*.test.*",
|
|
18
|
+
"../src/**/test.*"
|
|
19
|
+
],
|
|
20
|
+
"references": [
|
|
21
|
+
{
|
|
22
|
+
"path": "../../../analytics/analytics-namespaced-context/afm-jira/tsconfig.json"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"path": "../../button/afm-jira/tsconfig.json"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"path": "../../ds-lib/afm-jira/tsconfig.json"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"path": "../../icon/afm-jira/tsconfig.json"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"path": "../../logo/afm-jira/tsconfig.json"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"path": "../../../platform/feature-flags/afm-jira/tsconfig.json"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"path": "../../popup/afm-jira/tsconfig.json"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"path": "../../primitives/afm-jira/tsconfig.json"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"path": "../../theme/afm-jira/tsconfig.json"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"path": "../../tokens/afm-jira/tsconfig.json"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"path": "../../tooltip/afm-jira/tsconfig.json"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"path": "../../width-detector/afm-jira/tsconfig.json"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
@@ -12,11 +12,15 @@ var _constants = require("../../common/constants");
|
|
|
12
12
|
var _theme = require("../../theme");
|
|
13
13
|
var _PrimaryItemsContainer = require("../PrimaryItemsContainer");
|
|
14
14
|
var _PrimaryItemsContainerV = require("../PrimaryItemsContainerV2");
|
|
15
|
+
/**
|
|
16
|
+
* @jsxRuntime classic
|
|
17
|
+
*/
|
|
15
18
|
/** @jsx jsx */
|
|
16
19
|
|
|
17
20
|
var containerStyles = (0, _react.css)({
|
|
18
21
|
display: 'flex',
|
|
19
22
|
boxSizing: 'border-box',
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
20
24
|
height: _constants.HORIZONTAL_GLOBAL_NAV_HEIGHT,
|
|
21
25
|
position: 'relative',
|
|
22
26
|
alignItems: 'center',
|
|
@@ -32,7 +36,7 @@ var leftStyles = (0, _react.css)({
|
|
|
32
36
|
height: 'inherit',
|
|
33
37
|
alignItems: 'center',
|
|
34
38
|
flexGrow: 1,
|
|
35
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
39
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
36
40
|
'& > *': {
|
|
37
41
|
flexShrink: 0
|
|
38
42
|
}
|
|
@@ -41,7 +45,7 @@ var rightStyles = (0, _react.css)({
|
|
|
41
45
|
display: 'flex',
|
|
42
46
|
alignItems: 'center',
|
|
43
47
|
flexShrink: 0,
|
|
44
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
48
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
45
49
|
'& > *': {
|
|
46
50
|
flexShrink: 0,
|
|
47
51
|
marginInlineEnd: "var(--ds-space-050, 4px)"
|
|
@@ -88,6 +92,7 @@ var AtlassianNavigation = exports.AtlassianNavigation = function AtlassianNaviga
|
|
|
88
92
|
}, (0, _react.jsx)(_analyticsNamespacedContext.NavigationAnalyticsContext, {
|
|
89
93
|
data: analyticsData
|
|
90
94
|
}, (0, _react.jsx)("header", {
|
|
95
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
91
96
|
style: theme.mode.navigation,
|
|
92
97
|
css: containerStyles,
|
|
93
98
|
"data-testid": testId && "".concat(testId, "-header"),
|
|
@@ -13,19 +13,23 @@ var _skeleton2 = require("../PrimaryItemsContainer/skeleton");
|
|
|
13
13
|
var _skeleton3 = require("../ProductHome/skeleton");
|
|
14
14
|
var _skeleton4 = require("../Profile/skeleton");
|
|
15
15
|
var _skeleton5 = require("../Search/skeleton");
|
|
16
|
+
/**
|
|
17
|
+
* @jsxRuntime classic
|
|
18
|
+
*/
|
|
16
19
|
/** @jsx jsx */
|
|
17
20
|
|
|
18
21
|
var containerStyles = (0, _react.css)({
|
|
19
22
|
display: 'flex',
|
|
20
23
|
boxSizing: 'border-box',
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
25
|
height: _constants.HORIZONTAL_GLOBAL_NAV_HEIGHT,
|
|
22
|
-
paddingRight: "var(--ds-space-150, 12px)",
|
|
23
|
-
paddingLeft: "var(--ds-space-150, 12px)",
|
|
24
26
|
position: 'relative',
|
|
25
27
|
alignItems: 'center',
|
|
26
28
|
justifyContent: 'space-between',
|
|
27
29
|
flexShrink: 0,
|
|
28
|
-
|
|
30
|
+
borderBlockEnd: "1px solid ".concat("var(--ds-border, ".concat(_colors.N30, ")")),
|
|
31
|
+
paddingInlineEnd: "var(--ds-space-150, 12px)",
|
|
32
|
+
paddingInlineStart: "var(--ds-space-150, 12px)"
|
|
29
33
|
});
|
|
30
34
|
var leftStyles = (0, _react.css)({
|
|
31
35
|
display: 'flex',
|
|
@@ -33,7 +37,7 @@ var leftStyles = (0, _react.css)({
|
|
|
33
37
|
height: 'inherit',
|
|
34
38
|
alignItems: 'center',
|
|
35
39
|
flexGrow: 1,
|
|
36
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
40
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
37
41
|
'& > *': {
|
|
38
42
|
flexShrink: 0
|
|
39
43
|
}
|
|
@@ -42,10 +46,10 @@ var rightStyles = (0, _react.css)({
|
|
|
42
46
|
display: 'flex',
|
|
43
47
|
alignItems: 'center',
|
|
44
48
|
flexShrink: 0,
|
|
45
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
49
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
46
50
|
'& > *': {
|
|
47
|
-
|
|
48
|
-
|
|
51
|
+
flexShrink: 0,
|
|
52
|
+
marginInlineEnd: "var(--ds-space-050, 4px)"
|
|
49
53
|
}
|
|
50
54
|
});
|
|
51
55
|
|
|
@@ -77,6 +81,7 @@ var NavigationSkeleton = exports.NavigationSkeleton = function NavigationSkeleto
|
|
|
77
81
|
return (0, _react.jsx)(_theme.ThemeProvider, {
|
|
78
82
|
value: theme
|
|
79
83
|
}, (0, _react.jsx)("div", {
|
|
84
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
80
85
|
style: theme.mode.navigation,
|
|
81
86
|
css: containerStyles,
|
|
82
87
|
"data-testid": testId
|
|
@@ -15,20 +15,25 @@ var _constants = require("../../common/constants");
|
|
|
15
15
|
var _theme = require("../../theme");
|
|
16
16
|
var _IconButton = require("../IconButton");
|
|
17
17
|
var _styles = require("./styles");
|
|
18
|
+
/**
|
|
19
|
+
* @jsxRuntime classic
|
|
20
|
+
*/
|
|
18
21
|
/** @jsx jsx */
|
|
19
22
|
|
|
20
23
|
var wrapperStyles = (0, _react2.css)({
|
|
21
24
|
display: 'flex',
|
|
22
25
|
alignItems: 'center',
|
|
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 -- Ignored via go/DSP-18766
|
|
24
27
|
'& [data-hide-on-smallscreens]': (0, _defineProperty2.default)({}, "@media (max-width: ".concat(_constants.CREATE_BREAKPOINT - 1, "px)"), {
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
25
29
|
display: 'none !important'
|
|
26
30
|
}),
|
|
27
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
31
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
28
32
|
'& [data-hide-on-largescreens]': (0, _defineProperty2.default)({}, "@media (min-width: ".concat(_constants.CREATE_BREAKPOINT, "px)"), {
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
29
34
|
display: 'none !important'
|
|
30
35
|
}),
|
|
31
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
36
|
+
// 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
|
|
32
37
|
'&&': {
|
|
33
38
|
marginInlineStart: "var(--ds-space-150, 12px)"
|
|
34
39
|
}
|
|
@@ -11,6 +11,9 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
var _constants = require("../../common/constants");
|
|
12
12
|
var _theme = require("../../theme");
|
|
13
13
|
var _skeleton = require("../IconButton/skeleton");
|
|
14
|
+
/**
|
|
15
|
+
* @jsxRuntime classic
|
|
16
|
+
*/
|
|
14
17
|
/** @jsx jsx */
|
|
15
18
|
|
|
16
19
|
var buttonHeight = "var(--ds-space-400, 32px)";
|
|
@@ -22,6 +25,7 @@ var skeletonStyles = (0, _react2.css)({
|
|
|
22
25
|
opacity: 0.15
|
|
23
26
|
});
|
|
24
27
|
var mobileStyles = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (max-width: ".concat(_constants.CREATE_BREAKPOINT - 1, "px)"), {
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
25
29
|
display: 'none !important'
|
|
26
30
|
}));
|
|
27
31
|
|
|
@@ -30,6 +34,7 @@ var mobileStyles = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (m
|
|
|
30
34
|
var CreateSkeleton = exports.CreateSkeleton = function CreateSkeleton() {
|
|
31
35
|
var theme = (0, _theme.useTheme)();
|
|
32
36
|
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)("div", {
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
33
38
|
style: theme.mode.skeleton,
|
|
34
39
|
css: [skeletonStyles, mobileStyles]
|
|
35
40
|
}), (0, _react2.jsx)(_skeleton.IconButtonSkeleton, {
|
|
@@ -9,7 +9,9 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _theme = require("../../theme");
|
|
11
11
|
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; }
|
|
12
|
-
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) { (0, _defineProperty2.default)(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; } /**
|
|
12
|
+
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) { (0, _defineProperty2.default)(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; } /**
|
|
13
|
+
* @jsxRuntime classic
|
|
14
|
+
*/ /** @jsx jsx */
|
|
13
15
|
var buttonHeight = "var(--ds-space-400, 32px)";
|
|
14
16
|
var skeletonStyles = (0, _react.css)({
|
|
15
17
|
borderRadius: "var(--ds-border-radius-circle, 50%)",
|
|
@@ -31,7 +33,10 @@ var IconButtonSkeleton = exports.IconButtonSkeleton = function IconButtonSkeleto
|
|
|
31
33
|
height: typeof size === 'number' ? size : buttonHeight
|
|
32
34
|
}, theme.mode.skeleton);
|
|
33
35
|
return (0, _react.jsx)("div", {
|
|
34
|
-
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
37
|
+
className: className
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
39
|
+
,
|
|
35
40
|
style: dynamicStyles,
|
|
36
41
|
css: skeletonStyles
|
|
37
42
|
});
|
|
@@ -15,6 +15,9 @@ var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
|
15
15
|
var _theme = require("../../theme");
|
|
16
16
|
var _styles = require("./styles");
|
|
17
17
|
var _excluded = ["children", "testId", "tooltip", "isSelected", "isHighlighted"];
|
|
18
|
+
/**
|
|
19
|
+
* @jsxRuntime classic
|
|
20
|
+
*/
|
|
18
21
|
/** @jsx jsx */
|
|
19
22
|
var VAR_BUTTON_SELECTED_COLOR = '--button-selected-color';
|
|
20
23
|
var VAR_BUTTON_SELECTED_BORDER_COLOR = '--button-selected-border-color';
|
|
@@ -27,10 +30,11 @@ var buttonBaseStyles = (0, _react2.css)({
|
|
|
27
30
|
flexDirection: 'column'
|
|
28
31
|
});
|
|
29
32
|
var buttonHighlightedStyles = (0, _react2.css)({
|
|
30
|
-
// 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, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
31
34
|
'&& > *': {
|
|
32
35
|
color: "var(".concat(VAR_BUTTON_SELECTED_COLOR, ")")
|
|
33
36
|
},
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
34
38
|
'&:after': {
|
|
35
39
|
height: 3,
|
|
36
40
|
position: 'absolute',
|
|
@@ -63,6 +67,7 @@ var PrimaryButton = exports.PrimaryButton = /*#__PURE__*/(0, _react.forwardRef)(
|
|
|
63
67
|
buttonProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
64
68
|
var theme = (0, _theme.useTheme)();
|
|
65
69
|
var button = (0, _react2.jsx)("div", {
|
|
70
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
66
71
|
style: (_ref = {}, (0, _defineProperty2.default)(_ref, VAR_BUTTON_SELECTED_COLOR, theme.mode.primaryButton.selected.color), (0, _defineProperty2.default)(_ref, VAR_BUTTON_SELECTED_BORDER_COLOR, theme.mode.primaryButton.selected.borderColor), _ref),
|
|
67
72
|
css: [buttonBaseStyles, isHighlighted && buttonHighlightedStyles],
|
|
68
73
|
role: "listitem"
|
|
@@ -6,6 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.PrimaryButtonSkeleton = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _theme = require("../../theme");
|
|
9
|
+
/**
|
|
10
|
+
* @jsxRuntime classic
|
|
11
|
+
*/
|
|
9
12
|
/** @jsx jsx */
|
|
10
13
|
|
|
11
14
|
var paddingAll = 4;
|
|
@@ -23,8 +26,11 @@ var skeletonStyles = (0, _react.css)({
|
|
|
23
26
|
var PrimaryButtonSkeleton = exports.PrimaryButtonSkeleton = function PrimaryButtonSkeleton(props) {
|
|
24
27
|
var theme = (0, _theme.useTheme)();
|
|
25
28
|
return (0, _react.jsx)("div", {
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
26
30
|
style: theme.mode.skeleton,
|
|
27
|
-
css: skeletonStyles
|
|
31
|
+
css: skeletonStyles
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
33
|
+
,
|
|
28
34
|
className: props.className
|
|
29
35
|
});
|
|
30
36
|
};
|
|
@@ -11,6 +11,9 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
|
|
12
12
|
var _primitives = require("@atlaskit/primitives");
|
|
13
13
|
var _PrimaryButton = require("../PrimaryButton");
|
|
14
|
+
/**
|
|
15
|
+
* @jsxRuntime classic
|
|
16
|
+
*/
|
|
14
17
|
/** @jsx jsx */
|
|
15
18
|
|
|
16
19
|
var chevronIconStylesWithSpacingFixStyles = (0, _primitives.xcss)({
|
|
@@ -14,6 +14,9 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
14
14
|
var _widthDetector = require("@atlaskit/width-detector");
|
|
15
15
|
var _overflow = require("../../controllers/overflow");
|
|
16
16
|
var _PrimaryDropdownButton = require("../PrimaryDropdownButton");
|
|
17
|
+
/**
|
|
18
|
+
* @jsxRuntime classic
|
|
19
|
+
*/
|
|
17
20
|
/** @jsx jsx */
|
|
18
21
|
|
|
19
22
|
var containerStyles = (0, _react2.css)({
|
|
@@ -24,7 +27,7 @@ var containerStyles = (0, _react2.css)({
|
|
|
24
27
|
flexBasis: 0,
|
|
25
28
|
flexGrow: 1,
|
|
26
29
|
flexShrink: 0,
|
|
27
|
-
// 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
|
|
28
31
|
'& > *': {
|
|
29
32
|
margin: "0 ".concat("var(--ds-space-050, 4px)"),
|
|
30
33
|
flexShrink: 0
|
|
@@ -7,6 +7,9 @@ exports.PrimaryItemsContainerSkeleton = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _react2 = require("@emotion/react");
|
|
9
9
|
var _skeleton = require("../PrimaryButton/skeleton");
|
|
10
|
+
/**
|
|
11
|
+
* @jsxRuntime classic
|
|
12
|
+
*/
|
|
10
13
|
/** @jsx jsx */
|
|
11
14
|
|
|
12
15
|
var primaryButtonSkeletonStyles = (0, _react2.css)({
|
|
@@ -17,6 +17,9 @@ var _theme = require("../../theme");
|
|
|
17
17
|
var _utils = require("./utils");
|
|
18
18
|
var _excluded = ["iconAlt", "iconUrl", "logoAlt", "logoUrl", "href", "onClick", "siteTitle", "onMouseDown", "testId", "logoMaxWidth"];
|
|
19
19
|
var _css3;
|
|
20
|
+
/**
|
|
21
|
+
* @jsxRuntime classic
|
|
22
|
+
*/
|
|
20
23
|
/** @jsx jsx */
|
|
21
24
|
var VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
|
|
22
25
|
var VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE = '--product-home-bg-color-active';
|
|
@@ -53,11 +56,13 @@ var productHomeButtonStyles = (0, _react2.css)((_css3 = {
|
|
|
53
56
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
54
57
|
color: 'inherit',
|
|
55
58
|
cursor: 'pointer',
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
56
60
|
'&::-moz-focus-inner': {
|
|
57
61
|
border: 0
|
|
58
62
|
},
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
59
64
|
'&:first-of-type': {
|
|
60
|
-
|
|
65
|
+
marginInlineStart: 0
|
|
61
66
|
},
|
|
62
67
|
'&:hover': {
|
|
63
68
|
backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, ")"),
|
|
@@ -74,7 +79,7 @@ var productHomeButtonStyles = (0, _react2.css)((_css3 = {
|
|
|
74
79
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
|
|
75
80
|
outline: "2px solid ".concat("var(--ds-border-focused, ".concat(_colors.B200, ")"))
|
|
76
81
|
},
|
|
77
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
82
|
+
// 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
|
|
78
83
|
'div&': {
|
|
79
84
|
pointerEvents: 'none'
|
|
80
85
|
}
|
|
@@ -85,10 +90,10 @@ var productHomeButtonStyles = (0, _react2.css)((_css3 = {
|
|
|
85
90
|
}), _css3));
|
|
86
91
|
var siteTitleStyles = (0, _react2.css)({
|
|
87
92
|
display: 'flex',
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
93
|
+
alignItems: 'center',
|
|
94
|
+
marginInlineEnd: "var(--ds-space-050, 4px)",
|
|
95
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
96
|
+
paddingInlineEnd: "var(--ds-space-200, 16px)"
|
|
92
97
|
});
|
|
93
98
|
var hideSiteTitleStyles = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (max-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
94
99
|
display: 'none'
|
|
@@ -125,7 +130,9 @@ var CustomProductHome = function CustomProductHome(props) {
|
|
|
125
130
|
};
|
|
126
131
|
var productHomeButtonDynamicStyles = (_productHomeButtonDyn = {}, (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_ACTIVE, primaryButton.active.color), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE, primaryButton.active.backgroundColor), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE, primaryButton.active.boxShadow), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_FOCUS, primaryButton.focus.color), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, primaryButton.focus.backgroundColor), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS, primaryButton.focus.boxShadow), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_HOVER, primaryButton.hover.color), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, primaryButton.hover.backgroundColor), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, primaryButton.hover.boxShadow), _productHomeButtonDyn);
|
|
127
132
|
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(Tag, (0, _extends2.default)({
|
|
128
|
-
href: href
|
|
133
|
+
href: href
|
|
134
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
135
|
+
,
|
|
129
136
|
style: productHomeButtonDynamicStyles,
|
|
130
137
|
css: productHomeButtonStyles,
|
|
131
138
|
onClick: onClick,
|
|
@@ -149,10 +156,13 @@ var CustomProductHome = function CustomProductHome(props) {
|
|
|
149
156
|
alt: iconAlt,
|
|
150
157
|
"data-testid": testId && "".concat(testId, "-icon")
|
|
151
158
|
})), siteTitle && (0, _react2.jsx)("div", {
|
|
159
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
152
160
|
style: {
|
|
153
161
|
borderRight: theme.mode.productHome.borderRight
|
|
154
162
|
},
|
|
155
|
-
css: [siteTitleStyles,
|
|
163
|
+
css: [siteTitleStyles,
|
|
164
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
165
|
+
(0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.navigation-v2-no-jank_5yhbd') && hideSiteTitleStyles],
|
|
156
166
|
"data-testid": testId && "".concat(testId, "-site-title")
|
|
157
167
|
}, siteTitle));
|
|
158
168
|
};
|
|
@@ -16,6 +16,9 @@ var _theme = require("../../theme");
|
|
|
16
16
|
var _utils = require("./utils");
|
|
17
17
|
var _excluded = ["icon", "logo", "siteTitle", "onClick", "href", "onMouseDown", "testId", "logoMaxWidth"];
|
|
18
18
|
var _css;
|
|
19
|
+
/**
|
|
20
|
+
* @jsxRuntime classic
|
|
21
|
+
*/
|
|
19
22
|
/** @jsx jsx */
|
|
20
23
|
var VAR_LOGO_MAX_WIDTH = '--logo-max-width';
|
|
21
24
|
var VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
|
|
@@ -36,11 +39,13 @@ var productHomeButtonStyles = (0, _react2.css)((_css = {
|
|
|
36
39
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
37
40
|
color: 'inherit',
|
|
38
41
|
cursor: 'pointer',
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
39
43
|
'&::-moz-focus-inner': {
|
|
40
44
|
border: 0
|
|
41
45
|
},
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
42
47
|
'&:first-of-type': {
|
|
43
|
-
|
|
48
|
+
marginInlineStart: 0
|
|
44
49
|
},
|
|
45
50
|
'&:hover': {
|
|
46
51
|
backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, ")"),
|
|
@@ -57,7 +62,7 @@ var productHomeButtonStyles = (0, _react2.css)((_css = {
|
|
|
57
62
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
|
|
58
63
|
outline: "var(--ds-border-width-outline, 2px)".concat(" solid ", "var(--ds-border-focused, #4C9AFF)")
|
|
59
64
|
},
|
|
60
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
65
|
+
// 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
|
|
61
66
|
'div&': {
|
|
62
67
|
pointerEvents: 'none'
|
|
63
68
|
}
|
|
@@ -71,11 +76,11 @@ var productLogoStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
|
71
76
|
// productHome is aligned correctly
|
|
72
77
|
display: 'flex',
|
|
73
78
|
maxWidth: "var(".concat(VAR_LOGO_MAX_WIDTH, ")"),
|
|
74
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
79
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
75
80
|
'& > *': {
|
|
76
81
|
maxHeight: 24
|
|
77
82
|
},
|
|
78
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
83
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
79
84
|
'& > span > svg': {
|
|
80
85
|
maxWidth: "var(".concat(VAR_LOGO_MAX_WIDTH, ")")
|
|
81
86
|
}
|
|
@@ -89,7 +94,7 @@ var productIconStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
|
89
94
|
// Ensure anything passed into
|
|
90
95
|
// productHome is aligned correctly
|
|
91
96
|
display: 'flex',
|
|
92
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
97
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
93
98
|
'& > *': {
|
|
94
99
|
maxHeight: 24
|
|
95
100
|
}
|
|
@@ -98,11 +103,10 @@ var productIconStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
|
98
103
|
}));
|
|
99
104
|
var siteTitleStyles = (0, _react2.css)({
|
|
100
105
|
display: 'flex',
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
alignItems: 'center'
|
|
106
|
+
alignItems: 'center',
|
|
107
|
+
marginInlineEnd: "var(--ds-space-050, 4px)",
|
|
108
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
109
|
+
paddingInlineEnd: "var(--ds-space-200, 16px)"
|
|
106
110
|
});
|
|
107
111
|
|
|
108
112
|
// When cleaning up feature flag, these styles can be moved into the above block
|
|
@@ -110,7 +114,7 @@ var featureFlaggedSiteTitleStyles = (0, _react2.css)((0, _defineProperty2.defaul
|
|
|
110
114
|
// Under the FF, we've made the site title handle it's spacing, with the
|
|
111
115
|
// PrimaryItemsContainer not needing to worry about its paddingInlineStart.
|
|
112
116
|
// This makes it cleaner for the title styles to appear and disappear with mq's
|
|
113
|
-
|
|
117
|
+
marginInlineEnd: "var(--ds-space-100, 8px)"
|
|
114
118
|
}, "@media (max-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
115
119
|
display: 'none'
|
|
116
120
|
}));
|
|
@@ -143,19 +147,17 @@ var ProductHome = function ProductHome(_ref) {
|
|
|
143
147
|
var _theme$mode$productHo = theme.mode.productHome,
|
|
144
148
|
_theme$mode$productHo2 = _theme$mode$productHo.iconColor,
|
|
145
149
|
iconColor = _theme$mode$productHo2 === void 0 ? 'inherit' : _theme$mode$productHo2,
|
|
146
|
-
_theme$mode$productHo3 = _theme$mode$productHo.
|
|
147
|
-
|
|
148
|
-
_theme$mode$productHo4 = _theme$mode$productHo.iconGradientStop,
|
|
149
|
-
iconGradientStop = _theme$mode$productHo4 === void 0 ? 'inherit' : _theme$mode$productHo4,
|
|
150
|
-
_theme$mode$productHo5 = _theme$mode$productHo.textColor,
|
|
151
|
-
textColor = _theme$mode$productHo5 === void 0 ? theme.mode.productHome.color : _theme$mode$productHo5;
|
|
150
|
+
_theme$mode$productHo3 = _theme$mode$productHo.textColor,
|
|
151
|
+
textColor = _theme$mode$productHo3 === void 0 ? theme.mode.productHome.color : _theme$mode$productHo3;
|
|
152
152
|
var Tag = (0, _utils.getTag)(onClick, href);
|
|
153
153
|
var preventFocusRing = function preventFocusRing(e) {
|
|
154
154
|
e.preventDefault();
|
|
155
155
|
onMouseDown && onMouseDown(e);
|
|
156
156
|
};
|
|
157
157
|
var productHomeButtonDynamicStyles = (_productHomeButtonDyn = {}, (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_ACTIVE, primaryButton.active.color), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE, primaryButton.active.backgroundColor), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE, primaryButton.active.boxShadow), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_FOCUS, primaryButton.focus.color), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, primaryButton.focus.backgroundColor), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS, primaryButton.focus.boxShadow), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_HOVER, primaryButton.hover.color), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, primaryButton.hover.backgroundColor), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, primaryButton.hover.boxShadow), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_LOGO_MAX_WIDTH, "".concat(logoMaxWidth, "px")), _productHomeButtonDyn);
|
|
158
|
-
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(Tag
|
|
158
|
+
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(Tag
|
|
159
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
160
|
+
, (0, _extends2.default)({
|
|
159
161
|
style: productHomeButtonDynamicStyles,
|
|
160
162
|
css: productHomeButtonStyles,
|
|
161
163
|
href: href,
|
|
@@ -167,22 +169,21 @@ var ProductHome = function ProductHome(_ref) {
|
|
|
167
169
|
css: [customMaxHeightStyles, productLogoStyles],
|
|
168
170
|
"data-testid": testId && "".concat(testId, "-logo")
|
|
169
171
|
}, (0, _react2.jsx)(Logo, {
|
|
170
|
-
iconGradientStart: iconGradientStart,
|
|
171
|
-
iconGradientStop: iconGradientStop,
|
|
172
172
|
iconColor: iconColor,
|
|
173
173
|
textColor: textColor
|
|
174
174
|
})), (0, _react2.jsx)("div", {
|
|
175
175
|
css: [customMaxHeightStyles, productIconStyles],
|
|
176
176
|
"data-testid": testId && "".concat(testId, "-icon")
|
|
177
177
|
}, (0, _react2.jsx)(Icon, {
|
|
178
|
-
iconGradientStart: iconGradientStart,
|
|
179
|
-
iconGradientStop: iconGradientStop,
|
|
180
178
|
iconColor: iconColor
|
|
181
179
|
}))), siteTitle && (0, _react2.jsx)("div", {
|
|
180
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
182
181
|
style: {
|
|
183
182
|
borderRight: theme.mode.productHome.borderRight
|
|
184
183
|
},
|
|
185
|
-
css: [siteTitleStyles,
|
|
184
|
+
css: [siteTitleStyles,
|
|
185
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
186
|
+
(0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.navigation-v2-no-jank_5yhbd') && featureFlaggedSiteTitleStyles],
|
|
186
187
|
"data-testid": testId && "".concat(testId, "-site-title")
|
|
187
188
|
}, siteTitle));
|
|
188
189
|
};
|