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