@atlaskit/atlassian-navigation 4.0.0 → 4.1.1
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 +20 -1
- package/README.md +7 -3
- package/dist/cjs/components/AtlassianNavigation/index.js +7 -2
- package/dist/cjs/components/AtlassianNavigation/skeleton.js +7 -2
- package/dist/cjs/components/BadgeContainer/index.js +4 -0
- package/dist/cjs/components/Create/index.js +10 -3
- package/dist/cjs/components/Create/skeleton.js +6 -0
- package/dist/cjs/components/IconButton/skeleton.js +3 -1
- package/dist/cjs/components/PrimaryButton/index.js +6 -1
- package/dist/cjs/components/PrimaryButton/skeleton.js +5 -0
- package/dist/cjs/components/PrimaryDropdownButton/index.js +5 -0
- package/dist/cjs/components/PrimaryItemsContainer/index.js +6 -1
- package/dist/cjs/components/PrimaryItemsContainer/skeleton.js +7 -2
- package/dist/cjs/components/ProductHome/custom-product-home.js +10 -2
- package/dist/cjs/components/ProductHome/product-home.js +13 -5
- package/dist/cjs/components/ProductHome/skeleton.js +10 -3
- package/dist/cjs/components/Search/index.js +13 -0
- package/dist/cjs/components/Search/skeleton.js +9 -0
- package/dist/cjs/components/SkeletonCreateButton/index.js +6 -1
- package/dist/cjs/components/SkeletonIconButton/index.js +10 -2
- package/dist/cjs/components/SkeletonPrimaryButton/index.js +9 -1
- package/dist/es2019/components/AtlassianNavigation/index.js +7 -2
- package/dist/es2019/components/AtlassianNavigation/skeleton.js +7 -2
- package/dist/es2019/components/BadgeContainer/index.js +4 -0
- package/dist/es2019/components/Create/index.js +12 -5
- package/dist/es2019/components/Create/skeleton.js +7 -1
- package/dist/es2019/components/IconButton/skeleton.js +4 -0
- package/dist/es2019/components/PrimaryButton/index.js +7 -1
- package/dist/es2019/components/PrimaryButton/skeleton.js +4 -0
- package/dist/es2019/components/PrimaryDropdownButton/index.js +5 -0
- package/dist/es2019/components/PrimaryItemsContainer/index.js +6 -1
- package/dist/es2019/components/PrimaryItemsContainer/skeleton.js +7 -2
- package/dist/es2019/components/ProductHome/custom-product-home.js +16 -7
- package/dist/es2019/components/ProductHome/product-home.js +19 -10
- package/dist/es2019/components/ProductHome/skeleton.js +15 -7
- package/dist/es2019/components/Search/index.js +16 -2
- package/dist/es2019/components/Search/skeleton.js +11 -2
- package/dist/es2019/components/SkeletonCreateButton/index.js +6 -1
- package/dist/es2019/components/SkeletonIconButton/index.js +10 -2
- package/dist/es2019/components/SkeletonPrimaryButton/index.js +10 -0
- package/dist/esm/components/AtlassianNavigation/index.js +7 -2
- package/dist/esm/components/AtlassianNavigation/skeleton.js +7 -2
- package/dist/esm/components/BadgeContainer/index.js +4 -0
- package/dist/esm/components/Create/index.js +10 -3
- package/dist/esm/components/Create/skeleton.js +6 -0
- package/dist/esm/components/IconButton/skeleton.js +4 -0
- package/dist/esm/components/PrimaryButton/index.js +7 -1
- package/dist/esm/components/PrimaryButton/skeleton.js +4 -0
- package/dist/esm/components/PrimaryDropdownButton/index.js +5 -0
- package/dist/esm/components/PrimaryItemsContainer/index.js +6 -1
- package/dist/esm/components/PrimaryItemsContainer/skeleton.js +7 -2
- package/dist/esm/components/ProductHome/custom-product-home.js +11 -2
- package/dist/esm/components/ProductHome/product-home.js +14 -5
- package/dist/esm/components/ProductHome/skeleton.js +11 -3
- package/dist/esm/components/Search/index.js +14 -0
- package/dist/esm/components/Search/skeleton.js +9 -0
- package/dist/esm/components/SkeletonCreateButton/index.js +6 -1
- package/dist/esm/components/SkeletonIconButton/index.js +10 -2
- package/dist/esm/components/SkeletonPrimaryButton/index.js +10 -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
|
@@ -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 */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
15
|
var VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR = '--primary-button-before-highlighted-background-color';
|
|
14
16
|
var VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR = '--primary-button-after-dropdown-border-color';
|
|
15
17
|
var primaryButtonSkeletonStyles = (0, _react.css)({
|
|
@@ -21,16 +23,19 @@ var primaryButtonSkeletonStyles = (0, _react.css)({
|
|
|
21
23
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
22
24
|
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
23
25
|
pointerEvents: 'none',
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
24
27
|
':focus, :active, :hover': {
|
|
25
28
|
appearance: 'none',
|
|
26
29
|
border: 0,
|
|
27
30
|
outline: 0
|
|
28
31
|
},
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
29
33
|
'::-moz-focus-inner': {
|
|
30
34
|
border: 0
|
|
31
35
|
}
|
|
32
36
|
});
|
|
33
37
|
var isHighlightedStyles = (0, _react.css)({
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
34
39
|
'&:before': {
|
|
35
40
|
height: 3,
|
|
36
41
|
position: 'absolute',
|
|
@@ -43,12 +48,14 @@ var isHighlightedStyles = (0, _react.css)({
|
|
|
43
48
|
}
|
|
44
49
|
});
|
|
45
50
|
var isHighlightedAndDropdownButtonStyles = (0, _react.css)({
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
46
52
|
'&:before': {
|
|
47
53
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
48
54
|
insetInlineEnd: -10
|
|
49
55
|
}
|
|
50
56
|
});
|
|
51
57
|
var isHighlightedNotDropdownButtonStyles = (0, _react.css)({
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
52
59
|
'&:before': {
|
|
53
60
|
insetInlineEnd: "var(--ds-space-025, 2px)"
|
|
54
61
|
}
|
|
@@ -56,6 +63,7 @@ var isHighlightedNotDropdownButtonStyles = (0, _react.css)({
|
|
|
56
63
|
var isDropdownButtonStyles = (0, _react.css)({
|
|
57
64
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
58
65
|
marginInlineEnd: 18,
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
59
67
|
'&:after': {
|
|
60
68
|
display: 'inline-block',
|
|
61
69
|
width: 4,
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
6
|
import { css, jsx } from '@emotion/react';
|
|
3
7
|
import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
4
8
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
@@ -10,6 +14,7 @@ import { PrimaryItemsContainer as PrimaryItemsContainerV2 } from '../PrimaryItem
|
|
|
10
14
|
const containerStyles = css({
|
|
11
15
|
display: 'flex',
|
|
12
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
|
|
13
18
|
height: HORIZONTAL_GLOBAL_NAV_HEIGHT,
|
|
14
19
|
position: 'relative',
|
|
15
20
|
alignItems: 'center',
|
|
@@ -25,7 +30,7 @@ const leftStyles = css({
|
|
|
25
30
|
height: 'inherit',
|
|
26
31
|
alignItems: 'center',
|
|
27
32
|
flexGrow: 1,
|
|
28
|
-
// 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
|
|
29
34
|
'& > *': {
|
|
30
35
|
flexShrink: 0
|
|
31
36
|
}
|
|
@@ -34,7 +39,7 @@ const rightStyles = css({
|
|
|
34
39
|
display: 'flex',
|
|
35
40
|
alignItems: 'center',
|
|
36
41
|
flexShrink: 0,
|
|
37
|
-
// 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
|
|
38
43
|
'& > *': {
|
|
39
44
|
flexShrink: 0,
|
|
40
45
|
marginInlineEnd: "var(--ds-space-050, 4px)"
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
6
|
import { css, jsx } from '@emotion/react';
|
|
3
7
|
import { N30 } from '@atlaskit/theme/colors';
|
|
4
8
|
import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
|
|
@@ -11,6 +15,7 @@ import { SearchSkeleton } from '../Search/skeleton';
|
|
|
11
15
|
const containerStyles = css({
|
|
12
16
|
display: 'flex',
|
|
13
17
|
boxSizing: 'border-box',
|
|
18
|
+
// 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
19
|
height: HORIZONTAL_GLOBAL_NAV_HEIGHT,
|
|
15
20
|
position: 'relative',
|
|
16
21
|
alignItems: 'center',
|
|
@@ -26,7 +31,7 @@ const leftStyles = css({
|
|
|
26
31
|
height: 'inherit',
|
|
27
32
|
alignItems: 'center',
|
|
28
33
|
flexGrow: 1,
|
|
29
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
34
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
30
35
|
'& > *': {
|
|
31
36
|
flexShrink: 0
|
|
32
37
|
}
|
|
@@ -35,7 +40,7 @@ const rightStyles = css({
|
|
|
35
40
|
display: 'flex',
|
|
36
41
|
alignItems: 'center',
|
|
37
42
|
flexShrink: 0,
|
|
38
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
43
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
39
44
|
'& > *': {
|
|
40
45
|
flexShrink: 0,
|
|
41
46
|
marginInlineEnd: "var(--ds-space-050, 4px)"
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { Fragment } from 'react';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
8
|
import { css, jsx } from '@emotion/react';
|
|
4
9
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
5
10
|
import AddIcon from '@atlaskit/icon/glyph/editor/add';
|
|
@@ -11,21 +16,23 @@ import { getCreateButtonTheme } from './styles';
|
|
|
11
16
|
const wrapperStyles = css({
|
|
12
17
|
display: 'flex',
|
|
13
18
|
alignItems: 'center',
|
|
14
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
15
20
|
'& [data-hide-on-smallscreens]': {
|
|
16
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
17
22
|
[`@media (max-width: ${CREATE_BREAKPOINT - 1}px)`]: {
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
18
24
|
display: 'none !important'
|
|
19
25
|
}
|
|
20
26
|
},
|
|
21
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
27
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
22
28
|
'& [data-hide-on-largescreens]': {
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
24
30
|
[`@media (min-width: ${CREATE_BREAKPOINT}px)`]: {
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
25
32
|
display: 'none !important'
|
|
26
33
|
}
|
|
27
34
|
},
|
|
28
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
35
|
+
// 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
|
|
29
36
|
'&&': {
|
|
30
37
|
marginInlineStart: "var(--ds-space-150, 12px)"
|
|
31
38
|
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { Fragment } from 'react';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
8
|
import { css, jsx } from '@emotion/react';
|
|
4
9
|
import { CREATE_BREAKPOINT } from '../../common/constants';
|
|
5
10
|
import { useTheme } from '../../theme';
|
|
@@ -13,8 +18,9 @@ const skeletonStyles = css({
|
|
|
13
18
|
opacity: 0.15
|
|
14
19
|
});
|
|
15
20
|
const mobileStyles = css({
|
|
16
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
17
22
|
[`@media (max-width: ${CREATE_BREAKPOINT - 1}px)`]: {
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
18
24
|
display: 'none !important'
|
|
19
25
|
}
|
|
20
26
|
});
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
6
|
import { css, jsx } from '@emotion/react';
|
|
3
7
|
import { useTheme } from '../../theme';
|
|
4
8
|
const buttonHeight = "var(--ds-space-400, 32px)";
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { forwardRef } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
9
|
import { css, jsx } from '@emotion/react';
|
|
5
10
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
6
11
|
import Tooltip from '@atlaskit/tooltip';
|
|
@@ -17,10 +22,11 @@ const buttonBaseStyles = css({
|
|
|
17
22
|
flexDirection: 'column'
|
|
18
23
|
});
|
|
19
24
|
const buttonHighlightedStyles = css({
|
|
20
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
25
|
+
// 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
|
|
21
26
|
'&& > *': {
|
|
22
27
|
color: `var(${VAR_BUTTON_SELECTED_COLOR})`
|
|
23
28
|
},
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
24
30
|
'&:after': {
|
|
25
31
|
height: 3,
|
|
26
32
|
position: 'absolute',
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
7
|
import { css, jsx } from '@emotion/react';
|
|
4
8
|
import { useTheme } from '../../theme';
|
|
5
9
|
const paddingAll = 4;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { forwardRef } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
9
|
import { jsx } from '@emotion/react';
|
|
5
10
|
import ChevronIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
6
11
|
import { Bleed, xcss } from '@atlaskit/primitives';
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { useCallback, useState } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
9
|
import { css, jsx } from '@emotion/react';
|
|
5
10
|
import Popup from '@atlaskit/popup';
|
|
6
11
|
import { N700 } from '@atlaskit/theme/colors';
|
|
@@ -15,7 +20,7 @@ const containerStyles = css({
|
|
|
15
20
|
flexBasis: 0,
|
|
16
21
|
flexGrow: 1,
|
|
17
22
|
flexShrink: 0,
|
|
18
|
-
// 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
|
|
19
24
|
'& > *': {
|
|
20
25
|
margin: `0 ${"var(--ds-space-050, 4px)"}`,
|
|
21
26
|
flexShrink: 0
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { Fragment, memo } from 'react';
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
8
|
import { css, jsx } from '@emotion/react';
|
|
4
9
|
import { PrimaryButtonSkeleton } from '../PrimaryButton/skeleton';
|
|
5
10
|
const primaryButtonSkeletonStyles = css({
|
|
6
|
-
|
|
7
|
-
|
|
11
|
+
marginInlineEnd: "var(--ds-space-150, 12px)",
|
|
12
|
+
marginInlineStart: "var(--ds-space-150, 12px)"
|
|
8
13
|
});
|
|
9
14
|
|
|
10
15
|
// Internal only
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { Fragment } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
9
|
import { css, jsx } from '@emotion/react';
|
|
5
10
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
6
11
|
import { B200 } from '@atlaskit/theme/colors';
|
|
@@ -20,7 +25,7 @@ const productLogoStyles = css({
|
|
|
20
25
|
// Ensure anything passed into
|
|
21
26
|
// productHome is aligned correctly
|
|
22
27
|
display: 'flex',
|
|
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-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
24
29
|
[`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
|
|
25
30
|
display: 'none'
|
|
26
31
|
}
|
|
@@ -32,7 +37,7 @@ const productIconStyles = css({
|
|
|
32
37
|
// Ensure anything passed into
|
|
33
38
|
// productHome is aligned correctly
|
|
34
39
|
display: 'flex',
|
|
35
|
-
// 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-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
36
41
|
[`@media (min-width: ${PRODUCT_HOME_BREAKPOINT}px)`]: {
|
|
37
42
|
display: 'none'
|
|
38
43
|
}
|
|
@@ -46,9 +51,11 @@ const productHomeButtonStyles = css({
|
|
|
46
51
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
47
52
|
color: 'inherit',
|
|
48
53
|
cursor: 'pointer',
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
49
55
|
'&::-moz-focus-inner': {
|
|
50
56
|
border: 0
|
|
51
57
|
},
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
52
59
|
'&:first-of-type': {
|
|
53
60
|
marginInlineStart: 0
|
|
54
61
|
},
|
|
@@ -67,15 +74,15 @@ const productHomeButtonStyles = css({
|
|
|
67
74
|
color: `var(${VAR_PRODUCT_HOME_COLOR_FOCUS})`,
|
|
68
75
|
outline: `2px solid ${`var(--ds-border-focused, ${B200})`}`
|
|
69
76
|
},
|
|
70
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
77
|
+
// 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
78
|
'div&': {
|
|
72
79
|
pointerEvents: 'none'
|
|
73
80
|
},
|
|
74
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
81
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
75
82
|
[`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
|
|
76
83
|
margin: `0 ${"var(--ds-space-100, 8px)"}`
|
|
77
84
|
},
|
|
78
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
85
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
79
86
|
[`@media (min-width: ${PRODUCT_HOME_BREAKPOINT}px)`]: {
|
|
80
87
|
margin: `0 ${"var(--ds-space-200, 16px)"}`
|
|
81
88
|
}
|
|
@@ -88,7 +95,7 @@ const siteTitleStyles = css({
|
|
|
88
95
|
paddingInlineEnd: "var(--ds-space-200, 16px)"
|
|
89
96
|
});
|
|
90
97
|
const hideSiteTitleStyles = css({
|
|
91
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
98
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
92
99
|
[`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
|
|
93
100
|
display: 'none'
|
|
94
101
|
}
|
|
@@ -165,7 +172,9 @@ const CustomProductHome = props => {
|
|
|
165
172
|
style: {
|
|
166
173
|
borderRight: theme.mode.productHome.borderRight
|
|
167
174
|
},
|
|
168
|
-
css: [siteTitleStyles,
|
|
175
|
+
css: [siteTitleStyles,
|
|
176
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
177
|
+
getBooleanFF('platform.design-system-team.navigation-v2-no-jank_5yhbd') && hideSiteTitleStyles],
|
|
169
178
|
"data-testid": testId && `${testId}-site-title`
|
|
170
179
|
}, siteTitle));
|
|
171
180
|
};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { Fragment } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
9
|
import { css, jsx } from '@emotion/react';
|
|
5
10
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
6
11
|
import { PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
|
|
@@ -25,9 +30,11 @@ const productHomeButtonStyles = css({
|
|
|
25
30
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
26
31
|
color: 'inherit',
|
|
27
32
|
cursor: 'pointer',
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
28
34
|
'&::-moz-focus-inner': {
|
|
29
35
|
border: 0
|
|
30
36
|
},
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
31
38
|
'&:first-of-type': {
|
|
32
39
|
marginInlineStart: 0
|
|
33
40
|
},
|
|
@@ -46,15 +53,15 @@ const productHomeButtonStyles = css({
|
|
|
46
53
|
color: `var(${VAR_PRODUCT_HOME_COLOR_FOCUS})`,
|
|
47
54
|
outline: `${"var(--ds-border-width-outline, 2px)"} solid ${"var(--ds-border-focused, #4C9AFF)"}`
|
|
48
55
|
},
|
|
49
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
56
|
+
// 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
|
|
50
57
|
'div&': {
|
|
51
58
|
pointerEvents: 'none'
|
|
52
59
|
},
|
|
53
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
60
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
54
61
|
[`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
|
|
55
62
|
margin: `0 ${"var(--ds-space-100, 8px)"}`
|
|
56
63
|
},
|
|
57
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
64
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
58
65
|
[`@media (min-width: ${PRODUCT_HOME_BREAKPOINT}px)`]: {
|
|
59
66
|
margin: `0 ${"var(--ds-space-200, 16px)"}`
|
|
60
67
|
}
|
|
@@ -64,15 +71,15 @@ const productLogoStyles = css({
|
|
|
64
71
|
// productHome is aligned correctly
|
|
65
72
|
display: 'flex',
|
|
66
73
|
maxWidth: `var(${VAR_LOGO_MAX_WIDTH})`,
|
|
67
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
74
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
68
75
|
'& > *': {
|
|
69
76
|
maxHeight: 24
|
|
70
77
|
},
|
|
71
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
78
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
72
79
|
'& > span > svg': {
|
|
73
80
|
maxWidth: `var(${VAR_LOGO_MAX_WIDTH})`
|
|
74
81
|
},
|
|
75
|
-
// 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-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
76
83
|
[`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
|
|
77
84
|
display: 'none'
|
|
78
85
|
}
|
|
@@ -84,11 +91,11 @@ const productIconStyles = css({
|
|
|
84
91
|
// Ensure anything passed into
|
|
85
92
|
// productHome is aligned correctly
|
|
86
93
|
display: 'flex',
|
|
87
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
94
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
88
95
|
'& > *': {
|
|
89
96
|
maxHeight: 24
|
|
90
97
|
},
|
|
91
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
98
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
92
99
|
[`@media (min-width: ${PRODUCT_HOME_BREAKPOINT}px)`]: {
|
|
93
100
|
display: 'none'
|
|
94
101
|
}
|
|
@@ -107,7 +114,7 @@ const featureFlaggedSiteTitleStyles = css({
|
|
|
107
114
|
// PrimaryItemsContainer not needing to worry about its paddingInlineStart.
|
|
108
115
|
// This makes it cleaner for the title styles to appear and disappear with mq's
|
|
109
116
|
marginInlineEnd: "var(--ds-space-100, 8px)",
|
|
110
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
117
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
111
118
|
[`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
|
|
112
119
|
display: 'none'
|
|
113
120
|
}
|
|
@@ -184,7 +191,9 @@ const ProductHome = ({
|
|
|
184
191
|
style: {
|
|
185
192
|
borderRight: theme.mode.productHome.borderRight
|
|
186
193
|
},
|
|
187
|
-
css: [siteTitleStyles,
|
|
194
|
+
css: [siteTitleStyles,
|
|
195
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
196
|
+
getBooleanFF('platform.design-system-team.navigation-v2-no-jank_5yhbd') && featureFlaggedSiteTitleStyles],
|
|
188
197
|
"data-testid": testId && `${testId}-site-title`
|
|
189
198
|
}, siteTitle));
|
|
190
199
|
};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
|
|
3
6
|
import { Fragment } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
9
|
import { css, jsx } from '@emotion/react';
|
|
5
10
|
import { PRODUCT_HOME_BREAKPOINT } from '../../common/constants';
|
|
6
11
|
import { useTheme } from '../../theme';
|
|
@@ -23,9 +28,11 @@ const productHomeButtonStyles = css({
|
|
|
23
28
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
24
29
|
color: 'inherit',
|
|
25
30
|
cursor: 'pointer',
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
26
32
|
'&::-moz-focus-inner': {
|
|
27
33
|
border: 0
|
|
28
34
|
},
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
29
36
|
'&:first-of-type': {
|
|
30
37
|
marginInlineStart: 0
|
|
31
38
|
},
|
|
@@ -45,15 +52,15 @@ const productHomeButtonStyles = css({
|
|
|
45
52
|
boxShadow: `var(${VAR_PRODUCT_HOME_BOX_SHADOW_HOVER})`,
|
|
46
53
|
color: `var(${VAR_PRODUCT_HOME_COLOR_HOVER})`
|
|
47
54
|
},
|
|
48
|
-
// 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
|
|
49
56
|
'div&': {
|
|
50
57
|
pointerEvents: 'none'
|
|
51
58
|
},
|
|
52
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
59
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
53
60
|
[`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
|
|
54
61
|
margin: `0 ${"var(--ds-space-100, 8px)"}`
|
|
55
62
|
},
|
|
56
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
63
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
57
64
|
[`@media (min-width: ${PRODUCT_HOME_BREAKPOINT}px)`]: {
|
|
58
65
|
margin: `0 ${"var(--ds-space-200, 16px)"}`
|
|
59
66
|
}
|
|
@@ -65,11 +72,11 @@ const productLogoStyles = css({
|
|
|
65
72
|
height: 24,
|
|
66
73
|
maxHeight: 28,
|
|
67
74
|
opacity: 0.15,
|
|
68
|
-
// 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 -- Ignored via go/DSP-18766
|
|
69
76
|
'& > *': {
|
|
70
77
|
maxHeight: 24
|
|
71
78
|
},
|
|
72
|
-
// 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-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
73
80
|
[`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
|
|
74
81
|
display: 'none'
|
|
75
82
|
}
|
|
@@ -80,11 +87,11 @@ const productIconStyles = css({
|
|
|
80
87
|
height: 28,
|
|
81
88
|
borderRadius: "var(--ds-border-radius-circle, 50%)",
|
|
82
89
|
opacity: 0.15,
|
|
83
|
-
// 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
|
|
84
91
|
'& > *': {
|
|
85
92
|
maxHeight: 24
|
|
86
93
|
},
|
|
87
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
94
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
88
95
|
[`@media (min-width: ${PRODUCT_HOME_BREAKPOINT}px)`]: {
|
|
89
96
|
display: 'none'
|
|
90
97
|
}
|
|
@@ -97,6 +104,7 @@ const siteTitleStyles = css({
|
|
|
97
104
|
marginInlineEnd: "var(--ds-space-050, 4px)",
|
|
98
105
|
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
99
106
|
paddingInlineEnd: "var(--ds-space-200, 16px)",
|
|
107
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
100
108
|
'&:after': {
|
|
101
109
|
width: '100%',
|
|
102
110
|
height: 14,
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { Fragment } from 'react';
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
9
|
import { css, jsx } from '@emotion/react';
|
|
5
10
|
import SearchIcon from '@atlaskit/icon/glyph/search';
|
|
6
11
|
import { CREATE_BREAKPOINT, varSearchBackgroundColor, varSearchBorderColor, varSearchColor, varSearchFocusBorderColor, varSearchHoverBackgroundColor } from '../../common/constants';
|
|
@@ -10,8 +15,9 @@ const searchInputContainerStyles = css({
|
|
|
10
15
|
position: 'relative',
|
|
11
16
|
marginInlineEnd: "var(--ds-space-100, 8px)",
|
|
12
17
|
marginInlineStart: "var(--ds-space-250, 20px)",
|
|
13
|
-
// 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-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
14
19
|
[`@media (max-width: ${CREATE_BREAKPOINT - 1}px)`]: {
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
15
21
|
display: 'none !important'
|
|
16
22
|
}
|
|
17
23
|
});
|
|
@@ -26,6 +32,7 @@ const searchInputIconStyles = css({
|
|
|
26
32
|
const newSearchBorderStyles = css({
|
|
27
33
|
border: `${"var(--ds-border-width, 1px)"} solid`,
|
|
28
34
|
'&:focus': {
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
29
36
|
boxShadow: `inset 0 0 0 ${"var(--ds-border-width, 1px)"} var(${varSearchFocusBorderColor})`
|
|
30
37
|
}
|
|
31
38
|
});
|
|
@@ -34,26 +41,33 @@ const searchInputStyles = css({
|
|
|
34
41
|
width: '220px',
|
|
35
42
|
height: "var(--ds-space-400, 32px)",
|
|
36
43
|
padding: `0 ${"var(--ds-space-100, 8px)"} 0 ${"var(--ds-space-500, 40px)"}`,
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
45
|
backgroundColor: `var(${varSearchBackgroundColor})`,
|
|
38
46
|
border: '2px solid',
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
39
48
|
borderColor: `var(${varSearchBorderColor})`,
|
|
40
49
|
borderRadius: "var(--ds-border-radius-200, 6px)",
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
41
51
|
color: `var(${varSearchColor})`,
|
|
42
52
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
43
53
|
outline: 'none',
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
44
55
|
'::placeholder': {
|
|
45
56
|
color: 'inherit'
|
|
46
57
|
},
|
|
47
58
|
'&:focus': {
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
48
60
|
borderColor: `var(${varSearchFocusBorderColor})`
|
|
49
61
|
},
|
|
50
62
|
'&:hover': {
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
51
64
|
backgroundColor: `var(${varSearchHoverBackgroundColor})`
|
|
52
65
|
}
|
|
53
66
|
});
|
|
54
67
|
const searchIconStyles = css({
|
|
55
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
68
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
56
69
|
[`@media (min-width: ${CREATE_BREAKPOINT}px)`]: {
|
|
70
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
57
71
|
display: 'none !important'
|
|
58
72
|
}
|
|
59
73
|
});
|