@atlaskit/atlassian-navigation 3.6.2 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +733 -714
- package/README.md +7 -3
- package/afm-jira/tsconfig.json +58 -0
- package/dist/cjs/components/AtlassianNavigation/index.js +7 -2
- package/dist/cjs/components/AtlassianNavigation/skeleton.js +12 -7
- package/dist/cjs/components/BadgeContainer/index.js +3 -0
- package/dist/cjs/components/Create/index.js +8 -3
- package/dist/cjs/components/Create/skeleton.js +5 -0
- package/dist/cjs/components/IconButton/skeleton.js +7 -2
- package/dist/cjs/components/PrimaryButton/index.js +6 -1
- package/dist/cjs/components/PrimaryButton/skeleton.js +7 -1
- package/dist/cjs/components/PrimaryDropdownButton/index.js +3 -0
- package/dist/cjs/components/PrimaryItemsContainer/index.js +4 -1
- package/dist/cjs/components/PrimaryItemsContainer/skeleton.js +3 -0
- package/dist/cjs/components/ProductHome/custom-product-home.js +18 -8
- package/dist/cjs/components/ProductHome/product-home.js +24 -23
- package/dist/cjs/components/ProductHome/skeleton.js +17 -7
- package/dist/cjs/components/Search/index.js +13 -0
- package/dist/cjs/components/Search/skeleton.js +8 -0
- package/dist/cjs/components/SkeletonCreateButton/index.js +7 -2
- package/dist/cjs/components/SkeletonIconButton/index.js +10 -2
- package/dist/cjs/components/SkeletonPrimaryButton/index.js +12 -2
- package/dist/cjs/theme/default-theme.js +1 -7
- package/dist/es2019/components/AtlassianNavigation/index.js +7 -2
- package/dist/es2019/components/AtlassianNavigation/skeleton.js +12 -7
- package/dist/es2019/components/BadgeContainer/index.js +3 -0
- package/dist/es2019/components/Create/index.js +10 -5
- package/dist/es2019/components/Create/skeleton.js +6 -1
- package/dist/es2019/components/IconButton/skeleton.js +7 -1
- package/dist/es2019/components/PrimaryButton/index.js +6 -1
- package/dist/es2019/components/PrimaryButton/skeleton.js +7 -1
- package/dist/es2019/components/PrimaryDropdownButton/index.js +3 -0
- package/dist/es2019/components/PrimaryItemsContainer/index.js +4 -1
- package/dist/es2019/components/PrimaryItemsContainer/skeleton.js +3 -0
- package/dist/es2019/components/ProductHome/custom-product-home.js +23 -13
- package/dist/es2019/components/ProductHome/product-home.js +27 -24
- package/dist/es2019/components/ProductHome/skeleton.js +21 -11
- package/dist/es2019/components/Search/index.js +15 -2
- package/dist/es2019/components/Search/skeleton.js +10 -2
- package/dist/es2019/components/SkeletonCreateButton/index.js +7 -2
- package/dist/es2019/components/SkeletonIconButton/index.js +10 -2
- package/dist/es2019/components/SkeletonPrimaryButton/index.js +12 -1
- package/dist/es2019/theme/default-theme.js +1 -7
- package/dist/esm/components/AtlassianNavigation/index.js +7 -2
- package/dist/esm/components/AtlassianNavigation/skeleton.js +12 -7
- package/dist/esm/components/BadgeContainer/index.js +3 -0
- package/dist/esm/components/Create/index.js +8 -3
- package/dist/esm/components/Create/skeleton.js +5 -0
- package/dist/esm/components/IconButton/skeleton.js +7 -1
- package/dist/esm/components/PrimaryButton/index.js +6 -1
- package/dist/esm/components/PrimaryButton/skeleton.js +7 -1
- package/dist/esm/components/PrimaryDropdownButton/index.js +3 -0
- package/dist/esm/components/PrimaryItemsContainer/index.js +4 -1
- package/dist/esm/components/PrimaryItemsContainer/skeleton.js +3 -0
- package/dist/esm/components/ProductHome/custom-product-home.js +18 -8
- package/dist/esm/components/ProductHome/product-home.js +24 -23
- package/dist/esm/components/ProductHome/skeleton.js +17 -7
- package/dist/esm/components/Search/index.js +13 -0
- package/dist/esm/components/Search/skeleton.js +8 -0
- package/dist/esm/components/SkeletonCreateButton/index.js +7 -2
- package/dist/esm/components/SkeletonIconButton/index.js +10 -2
- package/dist/esm/components/SkeletonPrimaryButton/index.js +12 -1
- package/dist/esm/theme/default-theme.js +1 -7
- package/dist/types/components/AppSwitcher/index.d.ts +1 -1
- package/dist/types/components/AppSwitcher/types.d.ts +1 -1
- package/dist/types/components/AtlassianNavigation/index.d.ts +4 -1
- package/dist/types/components/AtlassianNavigation/skeleton.d.ts +4 -1
- package/dist/types/components/AtlassianNavigation/types.d.ts +26 -26
- package/dist/types/components/BadgeContainer/index.d.ts +4 -1
- package/dist/types/components/BadgeContainer/types.d.ts +1 -1
- package/dist/types/components/Create/index.d.ts +1 -1
- package/dist/types/components/Create/styles.d.ts +2 -2
- package/dist/types/components/Create/types.d.ts +1 -1
- package/dist/types/components/Help/types.d.ts +2 -2
- package/dist/types/components/IconButton/skeleton.d.ts +4 -1
- package/dist/types/components/IconButton/styles.d.ts +2 -2
- package/dist/types/components/IconButton/types.d.ts +2 -5
- package/dist/types/components/Notifications/types.d.ts +2 -2
- package/dist/types/components/PrimaryButton/skeleton.d.ts +4 -1
- package/dist/types/components/PrimaryButton/styles.d.ts +2 -2
- package/dist/types/components/PrimaryButton/types.d.ts +4 -5
- package/dist/types/components/PrimaryDropdownButton/types.d.ts +1 -1
- package/dist/types/components/PrimaryItemsContainer/index.d.ts +2 -2
- package/dist/types/components/PrimaryItemsContainer/skeleton.d.ts +1 -1
- package/dist/types/components/PrimaryItemsContainer/types.d.ts +1 -1
- package/dist/types/components/PrimaryItemsContainerV2/index.d.ts +2 -2
- package/dist/types/components/ProductHome/custom-product-home.d.ts +1 -1
- package/dist/types/components/ProductHome/product-home.d.ts +1 -1
- package/dist/types/components/ProductHome/skeleton.d.ts +4 -1
- package/dist/types/components/ProductHome/types.d.ts +24 -24
- package/dist/types/components/Profile/index.d.ts +1 -1
- package/dist/types/components/Profile/types.d.ts +1 -1
- package/dist/types/components/Search/index.d.ts +1 -1
- package/dist/types/components/Search/types.d.ts +1 -1
- package/dist/types/components/Settings/types.d.ts +1 -1
- package/dist/types/components/SignIn/index.d.ts +1 -1
- package/dist/types/components/SignIn/types.d.ts +1 -1
- package/dist/types/components/SkeletonCreateButton/index.d.ts +5 -2
- package/dist/types/components/SkeletonIconButton/index.d.ts +5 -2
- package/dist/types/components/SkeletonIconButton/types.d.ts +1 -1
- package/dist/types/components/SkeletonPrimaryButton/index.d.ts +4 -1
- package/dist/types/components/SkeletonPrimaryButton/types.d.ts +1 -1
- package/dist/types/controllers/overflow/index.d.ts +2 -2
- package/dist/types/controllers/overflow/types.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/skeleton-notification-button.d.ts +1 -1
- package/dist/types/skeleton-settings-button.d.ts +1 -1
- package/dist/types/skeleton-switcher-button.d.ts +1 -1
- package/dist/types/theme/default-theme.d.ts +1 -1
- package/dist/types/theme/theme-generator.d.ts +1 -1
- package/dist/types/theme/themes.d.ts +1 -1
- package/dist/types/theme/types.d.ts +1 -3
- package/dist/types-ts4.5/components/AppSwitcher/index.d.ts +1 -1
- package/dist/types-ts4.5/components/AppSwitcher/types.d.ts +1 -1
- package/dist/types-ts4.5/components/AtlassianNavigation/index.d.ts +4 -1
- package/dist/types-ts4.5/components/AtlassianNavigation/skeleton.d.ts +4 -1
- package/dist/types-ts4.5/components/AtlassianNavigation/types.d.ts +26 -26
- package/dist/types-ts4.5/components/BadgeContainer/index.d.ts +4 -1
- package/dist/types-ts4.5/components/BadgeContainer/types.d.ts +1 -1
- package/dist/types-ts4.5/components/Create/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Create/styles.d.ts +2 -2
- package/dist/types-ts4.5/components/Create/types.d.ts +1 -1
- package/dist/types-ts4.5/components/Help/types.d.ts +2 -2
- package/dist/types-ts4.5/components/IconButton/skeleton.d.ts +4 -1
- package/dist/types-ts4.5/components/IconButton/styles.d.ts +2 -2
- package/dist/types-ts4.5/components/IconButton/types.d.ts +2 -5
- package/dist/types-ts4.5/components/Notifications/types.d.ts +2 -2
- package/dist/types-ts4.5/components/PrimaryButton/skeleton.d.ts +4 -1
- package/dist/types-ts4.5/components/PrimaryButton/styles.d.ts +2 -2
- package/dist/types-ts4.5/components/PrimaryButton/types.d.ts +4 -5
- package/dist/types-ts4.5/components/PrimaryDropdownButton/types.d.ts +1 -1
- package/dist/types-ts4.5/components/PrimaryItemsContainer/index.d.ts +2 -2
- package/dist/types-ts4.5/components/PrimaryItemsContainer/skeleton.d.ts +1 -1
- package/dist/types-ts4.5/components/PrimaryItemsContainer/types.d.ts +1 -1
- package/dist/types-ts4.5/components/PrimaryItemsContainerV2/index.d.ts +2 -2
- package/dist/types-ts4.5/components/ProductHome/custom-product-home.d.ts +1 -1
- package/dist/types-ts4.5/components/ProductHome/product-home.d.ts +1 -1
- package/dist/types-ts4.5/components/ProductHome/skeleton.d.ts +4 -1
- package/dist/types-ts4.5/components/ProductHome/types.d.ts +24 -24
- package/dist/types-ts4.5/components/Profile/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Profile/types.d.ts +1 -1
- package/dist/types-ts4.5/components/Search/index.d.ts +1 -1
- package/dist/types-ts4.5/components/Search/types.d.ts +1 -1
- package/dist/types-ts4.5/components/Settings/types.d.ts +1 -1
- package/dist/types-ts4.5/components/SignIn/index.d.ts +1 -1
- package/dist/types-ts4.5/components/SignIn/types.d.ts +1 -1
- package/dist/types-ts4.5/components/SkeletonCreateButton/index.d.ts +5 -2
- package/dist/types-ts4.5/components/SkeletonIconButton/index.d.ts +5 -2
- package/dist/types-ts4.5/components/SkeletonIconButton/types.d.ts +1 -1
- package/dist/types-ts4.5/components/SkeletonPrimaryButton/index.d.ts +4 -1
- package/dist/types-ts4.5/components/SkeletonPrimaryButton/types.d.ts +1 -1
- package/dist/types-ts4.5/controllers/overflow/index.d.ts +2 -2
- package/dist/types-ts4.5/controllers/overflow/types.d.ts +1 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/skeleton-notification-button.d.ts +1 -1
- package/dist/types-ts4.5/skeleton-settings-button.d.ts +1 -1
- package/dist/types-ts4.5/skeleton-switcher-button.d.ts +1 -1
- package/dist/types-ts4.5/theme/default-theme.d.ts +1 -1
- package/dist/types-ts4.5/theme/theme-generator.d.ts +1 -1
- package/dist/types-ts4.5/theme/themes.d.ts +1 -1
- package/dist/types-ts4.5/theme/types.d.ts +1 -3
- package/package.json +108 -113
- package/report.api.md +162 -183
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { css, jsx } from '@emotion/react';
|
|
3
6
|
import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
@@ -10,6 +13,7 @@ import { PrimaryItemsContainer as PrimaryItemsContainerV2 } from '../PrimaryItem
|
|
|
10
13
|
var containerStyles = css({
|
|
11
14
|
display: 'flex',
|
|
12
15
|
boxSizing: 'border-box',
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
17
|
height: HORIZONTAL_GLOBAL_NAV_HEIGHT,
|
|
14
18
|
position: 'relative',
|
|
15
19
|
alignItems: 'center',
|
|
@@ -25,7 +29,7 @@ var leftStyles = css({
|
|
|
25
29
|
height: 'inherit',
|
|
26
30
|
alignItems: 'center',
|
|
27
31
|
flexGrow: 1,
|
|
28
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
32
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
29
33
|
'& > *': {
|
|
30
34
|
flexShrink: 0
|
|
31
35
|
}
|
|
@@ -34,7 +38,7 @@ var rightStyles = css({
|
|
|
34
38
|
display: 'flex',
|
|
35
39
|
alignItems: 'center',
|
|
36
40
|
flexShrink: 0,
|
|
37
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
41
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
38
42
|
'& > *': {
|
|
39
43
|
flexShrink: 0,
|
|
40
44
|
marginInlineEnd: "var(--ds-space-050, 4px)"
|
|
@@ -81,6 +85,7 @@ export var AtlassianNavigation = function AtlassianNavigation(props) {
|
|
|
81
85
|
}, jsx(NavigationAnalyticsContext, {
|
|
82
86
|
data: analyticsData
|
|
83
87
|
}, jsx("header", {
|
|
88
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
84
89
|
style: theme.mode.navigation,
|
|
85
90
|
css: containerStyles,
|
|
86
91
|
"data-testid": testId && "".concat(testId, "-header"),
|
|
@@ -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,14 +14,15 @@ import { SearchSkeleton } from '../Search/skeleton';
|
|
|
11
14
|
var containerStyles = css({
|
|
12
15
|
display: 'flex',
|
|
13
16
|
boxSizing: 'border-box',
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
18
|
height: HORIZONTAL_GLOBAL_NAV_HEIGHT,
|
|
15
|
-
paddingRight: "var(--ds-space-150, 12px)",
|
|
16
|
-
paddingLeft: "var(--ds-space-150, 12px)",
|
|
17
19
|
position: 'relative',
|
|
18
20
|
alignItems: 'center',
|
|
19
21
|
justifyContent: 'space-between',
|
|
20
22
|
flexShrink: 0,
|
|
21
|
-
|
|
23
|
+
borderBlockEnd: "1px solid ".concat("var(--ds-border, ".concat(N30, ")")),
|
|
24
|
+
paddingInlineEnd: "var(--ds-space-150, 12px)",
|
|
25
|
+
paddingInlineStart: "var(--ds-space-150, 12px)"
|
|
22
26
|
});
|
|
23
27
|
var leftStyles = css({
|
|
24
28
|
display: 'flex',
|
|
@@ -26,7 +30,7 @@ var leftStyles = css({
|
|
|
26
30
|
height: 'inherit',
|
|
27
31
|
alignItems: 'center',
|
|
28
32
|
flexGrow: 1,
|
|
29
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
33
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
30
34
|
'& > *': {
|
|
31
35
|
flexShrink: 0
|
|
32
36
|
}
|
|
@@ -35,10 +39,10 @@ var rightStyles = css({
|
|
|
35
39
|
display: 'flex',
|
|
36
40
|
alignItems: 'center',
|
|
37
41
|
flexShrink: 0,
|
|
38
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
42
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
39
43
|
'& > *': {
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
flexShrink: 0,
|
|
45
|
+
marginInlineEnd: "var(--ds-space-050, 4px)"
|
|
42
46
|
}
|
|
43
47
|
});
|
|
44
48
|
|
|
@@ -70,6 +74,7 @@ export var NavigationSkeleton = function NavigationSkeleton(_ref) {
|
|
|
70
74
|
return jsx(ThemeProvider, {
|
|
71
75
|
value: theme
|
|
72
76
|
}, jsx("div", {
|
|
77
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
73
78
|
style: theme.mode.navigation,
|
|
74
79
|
css: containerStyles,
|
|
75
80
|
"data-testid": testId
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { Fragment } from 'react';
|
|
4
7
|
import { css, jsx } from '@emotion/react';
|
|
@@ -12,15 +15,17 @@ import { getCreateButtonTheme } from './styles';
|
|
|
12
15
|
var wrapperStyles = css({
|
|
13
16
|
display: 'flex',
|
|
14
17
|
alignItems: 'center',
|
|
15
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
16
19
|
'& [data-hide-on-smallscreens]': _defineProperty({}, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
17
21
|
display: 'none !important'
|
|
18
22
|
}),
|
|
19
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
24
|
'& [data-hide-on-largescreens]': _defineProperty({}, "@media (min-width: ".concat(CREATE_BREAKPOINT, "px)"), {
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
21
26
|
display: 'none !important'
|
|
22
27
|
}),
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
24
29
|
'&&': {
|
|
25
30
|
marginInlineStart: "var(--ds-space-150, 12px)"
|
|
26
31
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { Fragment } from 'react';
|
|
4
7
|
import { css, jsx } from '@emotion/react';
|
|
@@ -14,6 +17,7 @@ var skeletonStyles = css({
|
|
|
14
17
|
opacity: 0.15
|
|
15
18
|
});
|
|
16
19
|
var mobileStyles = css(_defineProperty({}, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
17
21
|
display: 'none !important'
|
|
18
22
|
}));
|
|
19
23
|
|
|
@@ -22,6 +26,7 @@ var mobileStyles = css(_defineProperty({}, "@media (max-width: ".concat(CREATE_B
|
|
|
22
26
|
export var CreateSkeleton = function CreateSkeleton() {
|
|
23
27
|
var theme = useTheme();
|
|
24
28
|
return jsx(Fragment, null, jsx("div", {
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
25
30
|
style: theme.mode.skeleton,
|
|
26
31
|
css: [skeletonStyles, mobileStyles]
|
|
27
32
|
}), jsx(IconButtonSkeleton, {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
/**
|
|
5
|
+
* @jsxRuntime classic
|
|
6
|
+
*/
|
|
4
7
|
/** @jsx jsx */
|
|
5
8
|
import { css, jsx } from '@emotion/react';
|
|
6
9
|
import { useTheme } from '../../theme';
|
|
@@ -25,7 +28,10 @@ export var IconButtonSkeleton = function IconButtonSkeleton(_ref) {
|
|
|
25
28
|
height: typeof size === 'number' ? size : buttonHeight
|
|
26
29
|
}, theme.mode.skeleton);
|
|
27
30
|
return jsx("div", {
|
|
28
|
-
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
32
|
+
className: className
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
34
|
+
,
|
|
29
35
|
style: dynamicStyles,
|
|
30
36
|
css: skeletonStyles
|
|
31
37
|
});
|
|
@@ -2,6 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
4
4
|
var _excluded = ["children", "testId", "tooltip", "isSelected", "isHighlighted"];
|
|
5
|
+
/**
|
|
6
|
+
* @jsxRuntime classic
|
|
7
|
+
*/
|
|
5
8
|
/** @jsx jsx */
|
|
6
9
|
import { forwardRef } from 'react';
|
|
7
10
|
import { css, jsx } from '@emotion/react';
|
|
@@ -20,10 +23,11 @@ var buttonBaseStyles = css({
|
|
|
20
23
|
flexDirection: 'column'
|
|
21
24
|
});
|
|
22
25
|
var buttonHighlightedStyles = css({
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
24
27
|
'&& > *': {
|
|
25
28
|
color: "var(".concat(VAR_BUTTON_SELECTED_COLOR, ")")
|
|
26
29
|
},
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
27
31
|
'&:after': {
|
|
28
32
|
height: 3,
|
|
29
33
|
position: 'absolute',
|
|
@@ -56,6 +60,7 @@ export var PrimaryButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
56
60
|
buttonProps = _objectWithoutProperties(props, _excluded);
|
|
57
61
|
var theme = useTheme();
|
|
58
62
|
var button = jsx("div", {
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
59
64
|
style: (_ref = {}, _defineProperty(_ref, VAR_BUTTON_SELECTED_COLOR, theme.mode.primaryButton.selected.color), _defineProperty(_ref, VAR_BUTTON_SELECTED_BORDER_COLOR, theme.mode.primaryButton.selected.borderColor), _ref),
|
|
60
65
|
css: [buttonBaseStyles, isHighlighted && buttonHighlightedStyles],
|
|
61
66
|
role: "listitem"
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
|
|
3
6
|
import { css, jsx } from '@emotion/react';
|
|
@@ -17,8 +20,11 @@ var skeletonStyles = css({
|
|
|
17
20
|
export var PrimaryButtonSkeleton = function PrimaryButtonSkeleton(props) {
|
|
18
21
|
var theme = useTheme();
|
|
19
22
|
return jsx("div", {
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
20
24
|
style: theme.mode.skeleton,
|
|
21
|
-
css: skeletonStyles
|
|
25
|
+
css: skeletonStyles
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
27
|
+
,
|
|
22
28
|
className: props.className
|
|
23
29
|
});
|
|
24
30
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
3
|
+
/**
|
|
4
|
+
* @jsxRuntime classic
|
|
5
|
+
*/
|
|
3
6
|
/** @jsx jsx */
|
|
4
7
|
import { useCallback, useState } from 'react';
|
|
5
8
|
import { css, jsx } from '@emotion/react';
|
|
@@ -16,7 +19,7 @@ var containerStyles = css({
|
|
|
16
19
|
flexBasis: 0,
|
|
17
20
|
flexGrow: 1,
|
|
18
21
|
flexShrink: 0,
|
|
19
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
22
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
23
|
'& > *': {
|
|
21
24
|
margin: "0 ".concat("var(--ds-space-050, 4px)"),
|
|
22
25
|
flexShrink: 0
|
|
@@ -3,6 +3,9 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
var _excluded = ["iconAlt", "iconUrl", "logoAlt", "logoUrl", "href", "onClick", "siteTitle", "onMouseDown", "testId", "logoMaxWidth"];
|
|
5
5
|
var _css3;
|
|
6
|
+
/**
|
|
7
|
+
* @jsxRuntime classic
|
|
8
|
+
*/
|
|
6
9
|
/** @jsx jsx */
|
|
7
10
|
import { Fragment } from 'react';
|
|
8
11
|
import { css, jsx } from '@emotion/react';
|
|
@@ -46,11 +49,13 @@ var productHomeButtonStyles = css((_css3 = {
|
|
|
46
49
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
47
50
|
color: 'inherit',
|
|
48
51
|
cursor: 'pointer',
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
49
53
|
'&::-moz-focus-inner': {
|
|
50
54
|
border: 0
|
|
51
55
|
},
|
|
56
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
52
57
|
'&:first-of-type': {
|
|
53
|
-
|
|
58
|
+
marginInlineStart: 0
|
|
54
59
|
},
|
|
55
60
|
'&:hover': {
|
|
56
61
|
backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, ")"),
|
|
@@ -67,7 +72,7 @@ var productHomeButtonStyles = css((_css3 = {
|
|
|
67
72
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
|
|
68
73
|
outline: "2px solid ".concat("var(--ds-border-focused, ".concat(B200, ")"))
|
|
69
74
|
},
|
|
70
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
75
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
71
76
|
'div&': {
|
|
72
77
|
pointerEvents: 'none'
|
|
73
78
|
}
|
|
@@ -78,10 +83,10 @@ var productHomeButtonStyles = css((_css3 = {
|
|
|
78
83
|
}), _css3));
|
|
79
84
|
var siteTitleStyles = css({
|
|
80
85
|
display: 'flex',
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
86
|
+
alignItems: 'center',
|
|
87
|
+
marginInlineEnd: "var(--ds-space-050, 4px)",
|
|
88
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
89
|
+
paddingInlineEnd: "var(--ds-space-200, 16px)"
|
|
85
90
|
});
|
|
86
91
|
var hideSiteTitleStyles = css(_defineProperty({}, "@media (max-width: ".concat(PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
87
92
|
display: 'none'
|
|
@@ -118,7 +123,9 @@ var CustomProductHome = function CustomProductHome(props) {
|
|
|
118
123
|
};
|
|
119
124
|
var productHomeButtonDynamicStyles = (_productHomeButtonDyn = {}, _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_ACTIVE, primaryButton.active.color), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE, primaryButton.active.backgroundColor), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE, primaryButton.active.boxShadow), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_FOCUS, primaryButton.focus.color), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, primaryButton.focus.backgroundColor), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS, primaryButton.focus.boxShadow), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_HOVER, primaryButton.hover.color), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, primaryButton.hover.backgroundColor), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, primaryButton.hover.boxShadow), _productHomeButtonDyn);
|
|
120
125
|
return jsx(Fragment, null, jsx(Tag, _extends({
|
|
121
|
-
href: href
|
|
126
|
+
href: href
|
|
127
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
128
|
+
,
|
|
122
129
|
style: productHomeButtonDynamicStyles,
|
|
123
130
|
css: productHomeButtonStyles,
|
|
124
131
|
onClick: onClick,
|
|
@@ -142,10 +149,13 @@ var CustomProductHome = function CustomProductHome(props) {
|
|
|
142
149
|
alt: iconAlt,
|
|
143
150
|
"data-testid": testId && "".concat(testId, "-icon")
|
|
144
151
|
})), siteTitle && jsx("div", {
|
|
152
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
145
153
|
style: {
|
|
146
154
|
borderRight: theme.mode.productHome.borderRight
|
|
147
155
|
},
|
|
148
|
-
css: [siteTitleStyles,
|
|
156
|
+
css: [siteTitleStyles,
|
|
157
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
158
|
+
getBooleanFF('platform.design-system-team.navigation-v2-no-jank_5yhbd') && hideSiteTitleStyles],
|
|
149
159
|
"data-testid": testId && "".concat(testId, "-site-title")
|
|
150
160
|
}, siteTitle));
|
|
151
161
|
};
|
|
@@ -3,6 +3,9 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
var _excluded = ["icon", "logo", "siteTitle", "onClick", "href", "onMouseDown", "testId", "logoMaxWidth"];
|
|
5
5
|
var _css;
|
|
6
|
+
/**
|
|
7
|
+
* @jsxRuntime classic
|
|
8
|
+
*/
|
|
6
9
|
/** @jsx jsx */
|
|
7
10
|
import { Fragment } from 'react';
|
|
8
11
|
import { css, jsx } from '@emotion/react';
|
|
@@ -29,11 +32,13 @@ var productHomeButtonStyles = css((_css = {
|
|
|
29
32
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
30
33
|
color: 'inherit',
|
|
31
34
|
cursor: 'pointer',
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
32
36
|
'&::-moz-focus-inner': {
|
|
33
37
|
border: 0
|
|
34
38
|
},
|
|
39
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
35
40
|
'&:first-of-type': {
|
|
36
|
-
|
|
41
|
+
marginInlineStart: 0
|
|
37
42
|
},
|
|
38
43
|
'&:hover': {
|
|
39
44
|
backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, ")"),
|
|
@@ -50,7 +55,7 @@ var productHomeButtonStyles = css((_css = {
|
|
|
50
55
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
|
|
51
56
|
outline: "var(--ds-border-width-outline, 2px)".concat(" solid ", "var(--ds-border-focused, #4C9AFF)")
|
|
52
57
|
},
|
|
53
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
58
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
54
59
|
'div&': {
|
|
55
60
|
pointerEvents: 'none'
|
|
56
61
|
}
|
|
@@ -64,11 +69,11 @@ var productLogoStyles = css(_defineProperty({
|
|
|
64
69
|
// productHome is aligned correctly
|
|
65
70
|
display: 'flex',
|
|
66
71
|
maxWidth: "var(".concat(VAR_LOGO_MAX_WIDTH, ")"),
|
|
67
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
72
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
68
73
|
'& > *': {
|
|
69
74
|
maxHeight: 24
|
|
70
75
|
},
|
|
71
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
76
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
72
77
|
'& > span > svg': {
|
|
73
78
|
maxWidth: "var(".concat(VAR_LOGO_MAX_WIDTH, ")")
|
|
74
79
|
}
|
|
@@ -82,7 +87,7 @@ var productIconStyles = css(_defineProperty({
|
|
|
82
87
|
// Ensure anything passed into
|
|
83
88
|
// productHome is aligned correctly
|
|
84
89
|
display: 'flex',
|
|
85
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
90
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
86
91
|
'& > *': {
|
|
87
92
|
maxHeight: 24
|
|
88
93
|
}
|
|
@@ -91,11 +96,10 @@ var productIconStyles = css(_defineProperty({
|
|
|
91
96
|
}));
|
|
92
97
|
var siteTitleStyles = css({
|
|
93
98
|
display: 'flex',
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
alignItems: 'center'
|
|
99
|
+
alignItems: 'center',
|
|
100
|
+
marginInlineEnd: "var(--ds-space-050, 4px)",
|
|
101
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
102
|
+
paddingInlineEnd: "var(--ds-space-200, 16px)"
|
|
99
103
|
});
|
|
100
104
|
|
|
101
105
|
// When cleaning up feature flag, these styles can be moved into the above block
|
|
@@ -103,7 +107,7 @@ var featureFlaggedSiteTitleStyles = css(_defineProperty({
|
|
|
103
107
|
// Under the FF, we've made the site title handle it's spacing, with the
|
|
104
108
|
// PrimaryItemsContainer not needing to worry about its paddingInlineStart.
|
|
105
109
|
// This makes it cleaner for the title styles to appear and disappear with mq's
|
|
106
|
-
|
|
110
|
+
marginInlineEnd: "var(--ds-space-100, 8px)"
|
|
107
111
|
}, "@media (max-width: ".concat(PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
108
112
|
display: 'none'
|
|
109
113
|
}));
|
|
@@ -136,19 +140,17 @@ var ProductHome = function ProductHome(_ref) {
|
|
|
136
140
|
var _theme$mode$productHo = theme.mode.productHome,
|
|
137
141
|
_theme$mode$productHo2 = _theme$mode$productHo.iconColor,
|
|
138
142
|
iconColor = _theme$mode$productHo2 === void 0 ? 'inherit' : _theme$mode$productHo2,
|
|
139
|
-
_theme$mode$productHo3 = _theme$mode$productHo.
|
|
140
|
-
|
|
141
|
-
_theme$mode$productHo4 = _theme$mode$productHo.iconGradientStop,
|
|
142
|
-
iconGradientStop = _theme$mode$productHo4 === void 0 ? 'inherit' : _theme$mode$productHo4,
|
|
143
|
-
_theme$mode$productHo5 = _theme$mode$productHo.textColor,
|
|
144
|
-
textColor = _theme$mode$productHo5 === void 0 ? theme.mode.productHome.color : _theme$mode$productHo5;
|
|
143
|
+
_theme$mode$productHo3 = _theme$mode$productHo.textColor,
|
|
144
|
+
textColor = _theme$mode$productHo3 === void 0 ? theme.mode.productHome.color : _theme$mode$productHo3;
|
|
145
145
|
var Tag = getTag(onClick, href);
|
|
146
146
|
var preventFocusRing = function preventFocusRing(e) {
|
|
147
147
|
e.preventDefault();
|
|
148
148
|
onMouseDown && onMouseDown(e);
|
|
149
149
|
};
|
|
150
150
|
var productHomeButtonDynamicStyles = (_productHomeButtonDyn = {}, _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_ACTIVE, primaryButton.active.color), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE, primaryButton.active.backgroundColor), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE, primaryButton.active.boxShadow), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_FOCUS, primaryButton.focus.color), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, primaryButton.focus.backgroundColor), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS, primaryButton.focus.boxShadow), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_HOVER, primaryButton.hover.color), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, primaryButton.hover.backgroundColor), _defineProperty(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, primaryButton.hover.boxShadow), _defineProperty(_productHomeButtonDyn, VAR_LOGO_MAX_WIDTH, "".concat(logoMaxWidth, "px")), _productHomeButtonDyn);
|
|
151
|
-
return jsx(Fragment, null, jsx(Tag
|
|
151
|
+
return jsx(Fragment, null, jsx(Tag
|
|
152
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
153
|
+
, _extends({
|
|
152
154
|
style: productHomeButtonDynamicStyles,
|
|
153
155
|
css: productHomeButtonStyles,
|
|
154
156
|
href: href,
|
|
@@ -160,22 +162,21 @@ var ProductHome = function ProductHome(_ref) {
|
|
|
160
162
|
css: [customMaxHeightStyles, productLogoStyles],
|
|
161
163
|
"data-testid": testId && "".concat(testId, "-logo")
|
|
162
164
|
}, jsx(Logo, {
|
|
163
|
-
iconGradientStart: iconGradientStart,
|
|
164
|
-
iconGradientStop: iconGradientStop,
|
|
165
165
|
iconColor: iconColor,
|
|
166
166
|
textColor: textColor
|
|
167
167
|
})), jsx("div", {
|
|
168
168
|
css: [customMaxHeightStyles, productIconStyles],
|
|
169
169
|
"data-testid": testId && "".concat(testId, "-icon")
|
|
170
170
|
}, jsx(Icon, {
|
|
171
|
-
iconGradientStart: iconGradientStart,
|
|
172
|
-
iconGradientStop: iconGradientStop,
|
|
173
171
|
iconColor: iconColor
|
|
174
172
|
}))), siteTitle && jsx("div", {
|
|
173
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
175
174
|
style: {
|
|
176
175
|
borderRight: theme.mode.productHome.borderRight
|
|
177
176
|
},
|
|
178
|
-
css: [siteTitleStyles,
|
|
177
|
+
css: [siteTitleStyles,
|
|
178
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
179
|
+
getBooleanFF('platform.design-system-team.navigation-v2-no-jank_5yhbd') && featureFlaggedSiteTitleStyles],
|
|
179
180
|
"data-testid": testId && "".concat(testId, "-site-title")
|
|
180
181
|
}, siteTitle));
|
|
181
182
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
var _css;
|
|
3
|
+
/**
|
|
4
|
+
* @jsxRuntime classic
|
|
5
|
+
*/
|
|
3
6
|
/** @jsx jsx */
|
|
4
7
|
|
|
5
8
|
import { Fragment } from 'react';
|
|
@@ -25,11 +28,13 @@ var productHomeButtonStyles = css((_css = {
|
|
|
25
28
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
26
29
|
color: 'inherit',
|
|
27
30
|
cursor: 'pointer',
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
28
32
|
'&::-moz-focus-inner': {
|
|
29
33
|
border: 0
|
|
30
34
|
},
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
31
36
|
'&:first-of-type': {
|
|
32
|
-
|
|
37
|
+
marginInlineStart: 0
|
|
33
38
|
},
|
|
34
39
|
'&:active': {
|
|
35
40
|
backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE, ")"),
|
|
@@ -47,7 +52,7 @@ var productHomeButtonStyles = css((_css = {
|
|
|
47
52
|
boxShadow: "var(".concat(VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, ")"),
|
|
48
53
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_HOVER, ")")
|
|
49
54
|
},
|
|
50
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
55
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
51
56
|
'div&': {
|
|
52
57
|
pointerEvents: 'none'
|
|
53
58
|
}
|
|
@@ -63,7 +68,7 @@ var productLogoStyles = css(_defineProperty({
|
|
|
63
68
|
height: 24,
|
|
64
69
|
maxHeight: 28,
|
|
65
70
|
opacity: 0.15,
|
|
66
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
71
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
67
72
|
'& > *': {
|
|
68
73
|
maxHeight: 24
|
|
69
74
|
}
|
|
@@ -76,7 +81,7 @@ var productIconStyles = css(_defineProperty({
|
|
|
76
81
|
height: 28,
|
|
77
82
|
borderRadius: "var(--ds-border-radius-circle, 50%)",
|
|
78
83
|
opacity: 0.15,
|
|
79
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
84
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
80
85
|
'& > *': {
|
|
81
86
|
maxHeight: 24
|
|
82
87
|
}
|
|
@@ -86,11 +91,12 @@ var productIconStyles = css(_defineProperty({
|
|
|
86
91
|
var siteTitleStyles = css({
|
|
87
92
|
display: 'flex',
|
|
88
93
|
width: "var(--ds-space-500, 40px)",
|
|
89
|
-
marginRight: "var(--ds-space-050, 4px)",
|
|
90
|
-
marginLeft: "var(--ds-space-050, 4px)",
|
|
91
|
-
paddingRight: "var(--ds-space-200, 16px)",
|
|
92
94
|
alignItems: 'center',
|
|
93
95
|
backgroundColor: 'transparent',
|
|
96
|
+
marginInlineEnd: "var(--ds-space-050, 4px)",
|
|
97
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
98
|
+
paddingInlineEnd: "var(--ds-space-200, 16px)",
|
|
99
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
94
100
|
'&:after': {
|
|
95
101
|
width: '100%',
|
|
96
102
|
height: 14,
|
|
@@ -113,15 +119,19 @@ export var ProductHomeSkeleton = function ProductHomeSkeleton(_ref) {
|
|
|
113
119
|
opacity: theme.mode.skeleton.opacity
|
|
114
120
|
}, VAR_SITE_TITLE_BG_COLOR_AFTER, theme.mode.skeleton.backgroundColor);
|
|
115
121
|
return jsx(Fragment, null, jsx("div", {
|
|
122
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
116
123
|
style: productHomeButtonDynamicStyles,
|
|
117
124
|
css: productHomeButtonStyles
|
|
118
125
|
}, jsx("div", {
|
|
126
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
119
127
|
style: theme.mode.skeleton,
|
|
120
128
|
css: productLogoStyles
|
|
121
129
|
}), jsx("div", {
|
|
130
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
122
131
|
style: theme.mode.skeleton,
|
|
123
132
|
css: productIconStyles
|
|
124
133
|
})), showSiteName && jsx("div", {
|
|
134
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
125
135
|
style: siteTitleDynamicStyles,
|
|
126
136
|
css: siteTitleStyles
|
|
127
137
|
}));
|
|
@@ -2,6 +2,9 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
var _excluded = ["placeholder", "tooltip", "label", "value"];
|
|
5
|
+
/**
|
|
6
|
+
* @jsxRuntime classic
|
|
7
|
+
*/
|
|
5
8
|
/** @jsx jsx */
|
|
6
9
|
import { Fragment } from 'react';
|
|
7
10
|
import { css, jsx } from '@emotion/react';
|
|
@@ -14,6 +17,7 @@ var searchInputContainerStyles = css(_defineProperty({
|
|
|
14
17
|
marginInlineEnd: "var(--ds-space-100, 8px)",
|
|
15
18
|
marginInlineStart: "var(--ds-space-250, 20px)"
|
|
16
19
|
}, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
17
21
|
display: 'none !important'
|
|
18
22
|
}));
|
|
19
23
|
var searchInputIconStyles = css({
|
|
@@ -27,6 +31,7 @@ var searchInputIconStyles = css({
|
|
|
27
31
|
var newSearchBorderStyles = css({
|
|
28
32
|
border: "var(--ds-border-width, 1px)".concat(" solid"),
|
|
29
33
|
'&:focus': {
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
30
35
|
boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " var(", varSearchFocusBorderColor, ")")
|
|
31
36
|
}
|
|
32
37
|
});
|
|
@@ -35,24 +40,31 @@ var searchInputStyles = css({
|
|
|
35
40
|
width: '220px',
|
|
36
41
|
height: "var(--ds-space-400, 32px)",
|
|
37
42
|
padding: "0 ".concat("var(--ds-space-100, 8px)", " 0 ", "var(--ds-space-500, 40px)"),
|
|
43
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
38
44
|
backgroundColor: "var(".concat(varSearchBackgroundColor, ")"),
|
|
39
45
|
border: '2px solid',
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
40
47
|
borderColor: "var(".concat(varSearchBorderColor, ")"),
|
|
41
48
|
borderRadius: "var(--ds-border-radius-200, 6px)",
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
42
50
|
color: "var(".concat(varSearchColor, ")"),
|
|
43
51
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
44
52
|
outline: 'none',
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
45
54
|
'::placeholder': {
|
|
46
55
|
color: 'inherit'
|
|
47
56
|
},
|
|
48
57
|
'&:focus': {
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
49
59
|
borderColor: "var(".concat(varSearchFocusBorderColor, ")")
|
|
50
60
|
},
|
|
51
61
|
'&:hover': {
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
52
63
|
backgroundColor: "var(".concat(varSearchHoverBackgroundColor, ")")
|
|
53
64
|
}
|
|
54
65
|
});
|
|
55
66
|
var searchIconStyles = css(_defineProperty({}, "@media (min-width: ".concat(CREATE_BREAKPOINT, "px)"), {
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
56
68
|
display: 'none !important'
|
|
57
69
|
}));
|
|
58
70
|
var SearchComponent = function SearchComponent(props) {
|
|
@@ -80,6 +92,7 @@ var SearchComponent = function SearchComponent(props) {
|
|
|
80
92
|
}, jsx(SearchIcon, {
|
|
81
93
|
label: ""
|
|
82
94
|
})), jsx("input", {
|
|
95
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
83
96
|
style: searchInputDynamicStyles,
|
|
84
97
|
css: [searchInputStyles, newSearchBorderStyles],
|
|
85
98
|
"aria-label": label,
|