@atlaskit/atlassian-navigation 3.6.2 → 4.0.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 +720 -714
- package/afm-jira/tsconfig.json +58 -0
- package/dist/cjs/components/AtlassianNavigation/index.js +1 -0
- package/dist/cjs/components/AtlassianNavigation/skeleton.js +6 -5
- package/dist/cjs/components/Create/skeleton.js +1 -0
- package/dist/cjs/components/IconButton/skeleton.js +4 -1
- package/dist/cjs/components/PrimaryButton/index.js +1 -0
- package/dist/cjs/components/PrimaryButton/skeleton.js +4 -1
- package/dist/cjs/components/ProductHome/custom-product-home.js +9 -6
- package/dist/cjs/components/ProductHome/product-home.js +12 -18
- package/dist/cjs/components/ProductHome/skeleton.js +8 -4
- package/dist/cjs/components/Search/index.js +1 -0
- package/dist/cjs/components/Search/skeleton.js +1 -0
- package/dist/cjs/components/SkeletonCreateButton/index.js +2 -1
- package/dist/cjs/components/SkeletonIconButton/index.js +1 -0
- package/dist/cjs/components/SkeletonPrimaryButton/index.js +3 -1
- package/dist/cjs/theme/default-theme.js +1 -7
- package/dist/es2019/components/AtlassianNavigation/index.js +1 -0
- package/dist/es2019/components/AtlassianNavigation/skeleton.js +6 -5
- package/dist/es2019/components/Create/skeleton.js +1 -0
- package/dist/es2019/components/IconButton/skeleton.js +4 -1
- package/dist/es2019/components/PrimaryButton/index.js +1 -0
- package/dist/es2019/components/PrimaryButton/skeleton.js +4 -1
- package/dist/es2019/components/ProductHome/custom-product-home.js +9 -6
- package/dist/es2019/components/ProductHome/product-home.js +10 -14
- package/dist/es2019/components/ProductHome/skeleton.js +8 -4
- package/dist/es2019/components/Search/index.js +1 -0
- package/dist/es2019/components/Search/skeleton.js +1 -0
- package/dist/es2019/components/SkeletonCreateButton/index.js +2 -1
- package/dist/es2019/components/SkeletonIconButton/index.js +1 -0
- package/dist/es2019/components/SkeletonPrimaryButton/index.js +3 -1
- package/dist/es2019/theme/default-theme.js +1 -7
- package/dist/esm/components/AtlassianNavigation/index.js +1 -0
- package/dist/esm/components/AtlassianNavigation/skeleton.js +6 -5
- package/dist/esm/components/Create/skeleton.js +1 -0
- package/dist/esm/components/IconButton/skeleton.js +4 -1
- package/dist/esm/components/PrimaryButton/index.js +1 -0
- package/dist/esm/components/PrimaryButton/skeleton.js +4 -1
- package/dist/esm/components/ProductHome/custom-product-home.js +9 -6
- package/dist/esm/components/ProductHome/product-home.js +12 -18
- package/dist/esm/components/ProductHome/skeleton.js +8 -4
- package/dist/esm/components/Search/index.js +1 -0
- package/dist/esm/components/Search/skeleton.js +1 -0
- package/dist/esm/components/SkeletonCreateButton/index.js +2 -1
- package/dist/esm/components/SkeletonIconButton/index.js +1 -0
- package/dist/esm/components/SkeletonPrimaryButton/index.js +3 -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 +1 -1
- package/dist/types/components/AtlassianNavigation/skeleton.d.ts +1 -1
- package/dist/types/components/AtlassianNavigation/types.d.ts +2 -2
- package/dist/types/components/BadgeContainer/index.d.ts +1 -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 +1 -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 +1 -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/types.d.ts +2 -2
- 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 +1 -1
- package/dist/types/components/SkeletonIconButton/index.d.ts +1 -1
- package/dist/types/components/SkeletonIconButton/types.d.ts +1 -1
- package/dist/types/components/SkeletonPrimaryButton/index.d.ts +1 -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/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 +1 -1
- package/dist/types-ts4.5/components/AtlassianNavigation/skeleton.d.ts +1 -1
- package/dist/types-ts4.5/components/AtlassianNavigation/types.d.ts +2 -2
- package/dist/types-ts4.5/components/BadgeContainer/index.d.ts +1 -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 +1 -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 +1 -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/types.d.ts +2 -2
- 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 +1 -1
- package/dist/types-ts4.5/components/SkeletonIconButton/index.d.ts +1 -1
- package/dist/types-ts4.5/components/SkeletonIconButton/types.d.ts +1 -1
- package/dist/types-ts4.5/components/SkeletonPrimaryButton/index.d.ts +1 -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/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 +9 -14
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.products.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../tsDist/@atlaskit__atlassian-navigation/app",
|
|
7
|
+
"composite": true,
|
|
8
|
+
"rootDir": "../",
|
|
9
|
+
"baseUrl": "../"
|
|
10
|
+
},
|
|
11
|
+
"include": [
|
|
12
|
+
"../src/**/*.ts",
|
|
13
|
+
"../src/**/*.tsx"
|
|
14
|
+
],
|
|
15
|
+
"exclude": [
|
|
16
|
+
"../src/**/__tests__/*",
|
|
17
|
+
"../src/**/*.test.*",
|
|
18
|
+
"../src/**/test.*"
|
|
19
|
+
],
|
|
20
|
+
"references": [
|
|
21
|
+
{
|
|
22
|
+
"path": "../../../analytics/analytics-namespaced-context/afm-jira/tsconfig.json"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"path": "../../button/afm-jira/tsconfig.json"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"path": "../../ds-lib/afm-jira/tsconfig.json"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"path": "../../icon/afm-jira/tsconfig.json"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"path": "../../logo/afm-jira/tsconfig.json"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"path": "../../../platform/feature-flags/afm-jira/tsconfig.json"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"path": "../../popup/afm-jira/tsconfig.json"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"path": "../../primitives/afm-jira/tsconfig.json"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"path": "../../theme/afm-jira/tsconfig.json"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"path": "../../tokens/afm-jira/tsconfig.json"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"path": "../../tooltip/afm-jira/tsconfig.json"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"path": "../../width-detector/afm-jira/tsconfig.json"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
@@ -88,6 +88,7 @@ var AtlassianNavigation = exports.AtlassianNavigation = function AtlassianNaviga
|
|
|
88
88
|
}, (0, _react.jsx)(_analyticsNamespacedContext.NavigationAnalyticsContext, {
|
|
89
89
|
data: analyticsData
|
|
90
90
|
}, (0, _react.jsx)("header", {
|
|
91
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
91
92
|
style: theme.mode.navigation,
|
|
92
93
|
css: containerStyles,
|
|
93
94
|
"data-testid": testId && "".concat(testId, "-header"),
|
|
@@ -19,13 +19,13 @@ var containerStyles = (0, _react.css)({
|
|
|
19
19
|
display: 'flex',
|
|
20
20
|
boxSizing: 'border-box',
|
|
21
21
|
height: _constants.HORIZONTAL_GLOBAL_NAV_HEIGHT,
|
|
22
|
-
paddingRight: "var(--ds-space-150, 12px)",
|
|
23
|
-
paddingLeft: "var(--ds-space-150, 12px)",
|
|
24
22
|
position: 'relative',
|
|
25
23
|
alignItems: 'center',
|
|
26
24
|
justifyContent: 'space-between',
|
|
27
25
|
flexShrink: 0,
|
|
28
|
-
|
|
26
|
+
borderBlockEnd: "1px solid ".concat("var(--ds-border, ".concat(_colors.N30, ")")),
|
|
27
|
+
paddingInlineEnd: "var(--ds-space-150, 12px)",
|
|
28
|
+
paddingInlineStart: "var(--ds-space-150, 12px)"
|
|
29
29
|
});
|
|
30
30
|
var leftStyles = (0, _react.css)({
|
|
31
31
|
display: 'flex',
|
|
@@ -44,8 +44,8 @@ var rightStyles = (0, _react.css)({
|
|
|
44
44
|
flexShrink: 0,
|
|
45
45
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
46
46
|
'& > *': {
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
flexShrink: 0,
|
|
48
|
+
marginInlineEnd: "var(--ds-space-050, 4px)"
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
|
|
@@ -77,6 +77,7 @@ var NavigationSkeleton = exports.NavigationSkeleton = function NavigationSkeleto
|
|
|
77
77
|
return (0, _react.jsx)(_theme.ThemeProvider, {
|
|
78
78
|
value: theme
|
|
79
79
|
}, (0, _react.jsx)("div", {
|
|
80
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
80
81
|
style: theme.mode.navigation,
|
|
81
82
|
css: containerStyles,
|
|
82
83
|
"data-testid": testId
|
|
@@ -30,6 +30,7 @@ var mobileStyles = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (m
|
|
|
30
30
|
var CreateSkeleton = exports.CreateSkeleton = function CreateSkeleton() {
|
|
31
31
|
var theme = (0, _theme.useTheme)();
|
|
32
32
|
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)("div", {
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
33
34
|
style: theme.mode.skeleton,
|
|
34
35
|
css: [skeletonStyles, mobileStyles]
|
|
35
36
|
}), (0, _react2.jsx)(_skeleton.IconButtonSkeleton, {
|
|
@@ -31,7 +31,10 @@ var IconButtonSkeleton = exports.IconButtonSkeleton = function IconButtonSkeleto
|
|
|
31
31
|
height: typeof size === 'number' ? size : buttonHeight
|
|
32
32
|
}, theme.mode.skeleton);
|
|
33
33
|
return (0, _react.jsx)("div", {
|
|
34
|
-
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
35
|
+
className: className
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
37
|
+
,
|
|
35
38
|
style: dynamicStyles,
|
|
36
39
|
css: skeletonStyles
|
|
37
40
|
});
|
|
@@ -63,6 +63,7 @@ var PrimaryButton = exports.PrimaryButton = /*#__PURE__*/(0, _react.forwardRef)(
|
|
|
63
63
|
buttonProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
64
64
|
var theme = (0, _theme.useTheme)();
|
|
65
65
|
var button = (0, _react2.jsx)("div", {
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
66
67
|
style: (_ref = {}, (0, _defineProperty2.default)(_ref, VAR_BUTTON_SELECTED_COLOR, theme.mode.primaryButton.selected.color), (0, _defineProperty2.default)(_ref, VAR_BUTTON_SELECTED_BORDER_COLOR, theme.mode.primaryButton.selected.borderColor), _ref),
|
|
67
68
|
css: [buttonBaseStyles, isHighlighted && buttonHighlightedStyles],
|
|
68
69
|
role: "listitem"
|
|
@@ -23,8 +23,11 @@ var skeletonStyles = (0, _react.css)({
|
|
|
23
23
|
var PrimaryButtonSkeleton = exports.PrimaryButtonSkeleton = function PrimaryButtonSkeleton(props) {
|
|
24
24
|
var theme = (0, _theme.useTheme)();
|
|
25
25
|
return (0, _react.jsx)("div", {
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
26
27
|
style: theme.mode.skeleton,
|
|
27
|
-
css: skeletonStyles
|
|
28
|
+
css: skeletonStyles
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
30
|
+
,
|
|
28
31
|
className: props.className
|
|
29
32
|
});
|
|
30
33
|
};
|
|
@@ -57,7 +57,7 @@ var productHomeButtonStyles = (0, _react2.css)((_css3 = {
|
|
|
57
57
|
border: 0
|
|
58
58
|
},
|
|
59
59
|
'&:first-of-type': {
|
|
60
|
-
|
|
60
|
+
marginInlineStart: 0
|
|
61
61
|
},
|
|
62
62
|
'&:hover': {
|
|
63
63
|
backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, ")"),
|
|
@@ -85,10 +85,10 @@ var productHomeButtonStyles = (0, _react2.css)((_css3 = {
|
|
|
85
85
|
}), _css3));
|
|
86
86
|
var siteTitleStyles = (0, _react2.css)({
|
|
87
87
|
display: 'flex',
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
alignItems: 'center',
|
|
89
|
+
marginInlineEnd: "var(--ds-space-050, 4px)",
|
|
90
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
91
|
+
paddingInlineEnd: "var(--ds-space-200, 16px)"
|
|
92
92
|
});
|
|
93
93
|
var hideSiteTitleStyles = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (max-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
94
94
|
display: 'none'
|
|
@@ -125,7 +125,9 @@ var CustomProductHome = function CustomProductHome(props) {
|
|
|
125
125
|
};
|
|
126
126
|
var productHomeButtonDynamicStyles = (_productHomeButtonDyn = {}, (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_ACTIVE, primaryButton.active.color), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE, primaryButton.active.backgroundColor), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE, primaryButton.active.boxShadow), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_FOCUS, primaryButton.focus.color), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, primaryButton.focus.backgroundColor), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS, primaryButton.focus.boxShadow), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_HOVER, primaryButton.hover.color), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, primaryButton.hover.backgroundColor), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, primaryButton.hover.boxShadow), _productHomeButtonDyn);
|
|
127
127
|
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(Tag, (0, _extends2.default)({
|
|
128
|
-
href: href
|
|
128
|
+
href: href
|
|
129
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
130
|
+
,
|
|
129
131
|
style: productHomeButtonDynamicStyles,
|
|
130
132
|
css: productHomeButtonStyles,
|
|
131
133
|
onClick: onClick,
|
|
@@ -149,6 +151,7 @@ var CustomProductHome = function CustomProductHome(props) {
|
|
|
149
151
|
alt: iconAlt,
|
|
150
152
|
"data-testid": testId && "".concat(testId, "-icon")
|
|
151
153
|
})), siteTitle && (0, _react2.jsx)("div", {
|
|
154
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
152
155
|
style: {
|
|
153
156
|
borderRight: theme.mode.productHome.borderRight
|
|
154
157
|
},
|
|
@@ -40,7 +40,7 @@ var productHomeButtonStyles = (0, _react2.css)((_css = {
|
|
|
40
40
|
border: 0
|
|
41
41
|
},
|
|
42
42
|
'&:first-of-type': {
|
|
43
|
-
|
|
43
|
+
marginInlineStart: 0
|
|
44
44
|
},
|
|
45
45
|
'&:hover': {
|
|
46
46
|
backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, ")"),
|
|
@@ -98,11 +98,10 @@ var productIconStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
|
98
98
|
}));
|
|
99
99
|
var siteTitleStyles = (0, _react2.css)({
|
|
100
100
|
display: 'flex',
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
alignItems: 'center'
|
|
101
|
+
alignItems: 'center',
|
|
102
|
+
marginInlineEnd: "var(--ds-space-050, 4px)",
|
|
103
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
104
|
+
paddingInlineEnd: "var(--ds-space-200, 16px)"
|
|
106
105
|
});
|
|
107
106
|
|
|
108
107
|
// When cleaning up feature flag, these styles can be moved into the above block
|
|
@@ -110,7 +109,7 @@ var featureFlaggedSiteTitleStyles = (0, _react2.css)((0, _defineProperty2.defaul
|
|
|
110
109
|
// Under the FF, we've made the site title handle it's spacing, with the
|
|
111
110
|
// PrimaryItemsContainer not needing to worry about its paddingInlineStart.
|
|
112
111
|
// This makes it cleaner for the title styles to appear and disappear with mq's
|
|
113
|
-
|
|
112
|
+
marginInlineEnd: "var(--ds-space-100, 8px)"
|
|
114
113
|
}, "@media (max-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
115
114
|
display: 'none'
|
|
116
115
|
}));
|
|
@@ -143,19 +142,17 @@ var ProductHome = function ProductHome(_ref) {
|
|
|
143
142
|
var _theme$mode$productHo = theme.mode.productHome,
|
|
144
143
|
_theme$mode$productHo2 = _theme$mode$productHo.iconColor,
|
|
145
144
|
iconColor = _theme$mode$productHo2 === void 0 ? 'inherit' : _theme$mode$productHo2,
|
|
146
|
-
_theme$mode$productHo3 = _theme$mode$productHo.
|
|
147
|
-
|
|
148
|
-
_theme$mode$productHo4 = _theme$mode$productHo.iconGradientStop,
|
|
149
|
-
iconGradientStop = _theme$mode$productHo4 === void 0 ? 'inherit' : _theme$mode$productHo4,
|
|
150
|
-
_theme$mode$productHo5 = _theme$mode$productHo.textColor,
|
|
151
|
-
textColor = _theme$mode$productHo5 === void 0 ? theme.mode.productHome.color : _theme$mode$productHo5;
|
|
145
|
+
_theme$mode$productHo3 = _theme$mode$productHo.textColor,
|
|
146
|
+
textColor = _theme$mode$productHo3 === void 0 ? theme.mode.productHome.color : _theme$mode$productHo3;
|
|
152
147
|
var Tag = (0, _utils.getTag)(onClick, href);
|
|
153
148
|
var preventFocusRing = function preventFocusRing(e) {
|
|
154
149
|
e.preventDefault();
|
|
155
150
|
onMouseDown && onMouseDown(e);
|
|
156
151
|
};
|
|
157
152
|
var productHomeButtonDynamicStyles = (_productHomeButtonDyn = {}, (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_ACTIVE, primaryButton.active.color), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE, primaryButton.active.backgroundColor), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE, primaryButton.active.boxShadow), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_FOCUS, primaryButton.focus.color), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, primaryButton.focus.backgroundColor), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS, primaryButton.focus.boxShadow), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_COLOR_HOVER, primaryButton.hover.color), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER, primaryButton.hover.backgroundColor), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, primaryButton.hover.boxShadow), (0, _defineProperty2.default)(_productHomeButtonDyn, VAR_LOGO_MAX_WIDTH, "".concat(logoMaxWidth, "px")), _productHomeButtonDyn);
|
|
158
|
-
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(Tag
|
|
153
|
+
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(Tag
|
|
154
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
155
|
+
, (0, _extends2.default)({
|
|
159
156
|
style: productHomeButtonDynamicStyles,
|
|
160
157
|
css: productHomeButtonStyles,
|
|
161
158
|
href: href,
|
|
@@ -167,18 +164,15 @@ var ProductHome = function ProductHome(_ref) {
|
|
|
167
164
|
css: [customMaxHeightStyles, productLogoStyles],
|
|
168
165
|
"data-testid": testId && "".concat(testId, "-logo")
|
|
169
166
|
}, (0, _react2.jsx)(Logo, {
|
|
170
|
-
iconGradientStart: iconGradientStart,
|
|
171
|
-
iconGradientStop: iconGradientStop,
|
|
172
167
|
iconColor: iconColor,
|
|
173
168
|
textColor: textColor
|
|
174
169
|
})), (0, _react2.jsx)("div", {
|
|
175
170
|
css: [customMaxHeightStyles, productIconStyles],
|
|
176
171
|
"data-testid": testId && "".concat(testId, "-icon")
|
|
177
172
|
}, (0, _react2.jsx)(Icon, {
|
|
178
|
-
iconGradientStart: iconGradientStart,
|
|
179
|
-
iconGradientStop: iconGradientStop,
|
|
180
173
|
iconColor: iconColor
|
|
181
174
|
}))), siteTitle && (0, _react2.jsx)("div", {
|
|
175
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
182
176
|
style: {
|
|
183
177
|
borderRight: theme.mode.productHome.borderRight
|
|
184
178
|
},
|
|
@@ -35,7 +35,7 @@ var productHomeButtonStyles = (0, _react2.css)((_css = {
|
|
|
35
35
|
border: 0
|
|
36
36
|
},
|
|
37
37
|
'&:first-of-type': {
|
|
38
|
-
|
|
38
|
+
marginInlineStart: 0
|
|
39
39
|
},
|
|
40
40
|
'&:active': {
|
|
41
41
|
backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE, ")"),
|
|
@@ -92,11 +92,11 @@ var productIconStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
|
92
92
|
var siteTitleStyles = (0, _react2.css)({
|
|
93
93
|
display: 'flex',
|
|
94
94
|
width: "var(--ds-space-500, 40px)",
|
|
95
|
-
marginRight: "var(--ds-space-050, 4px)",
|
|
96
|
-
marginLeft: "var(--ds-space-050, 4px)",
|
|
97
|
-
paddingRight: "var(--ds-space-200, 16px)",
|
|
98
95
|
alignItems: 'center',
|
|
99
96
|
backgroundColor: 'transparent',
|
|
97
|
+
marginInlineEnd: "var(--ds-space-050, 4px)",
|
|
98
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
99
|
+
paddingInlineEnd: "var(--ds-space-200, 16px)",
|
|
100
100
|
'&:after': {
|
|
101
101
|
width: '100%',
|
|
102
102
|
height: 14,
|
|
@@ -119,15 +119,19 @@ var ProductHomeSkeleton = exports.ProductHomeSkeleton = function ProductHomeSkel
|
|
|
119
119
|
opacity: theme.mode.skeleton.opacity
|
|
120
120
|
}, VAR_SITE_TITLE_BG_COLOR_AFTER, theme.mode.skeleton.backgroundColor);
|
|
121
121
|
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)("div", {
|
|
122
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
122
123
|
style: productHomeButtonDynamicStyles,
|
|
123
124
|
css: productHomeButtonStyles
|
|
124
125
|
}, (0, _react2.jsx)("div", {
|
|
126
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
125
127
|
style: theme.mode.skeleton,
|
|
126
128
|
css: productLogoStyles
|
|
127
129
|
}), (0, _react2.jsx)("div", {
|
|
130
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
128
131
|
style: theme.mode.skeleton,
|
|
129
132
|
css: productIconStyles
|
|
130
133
|
})), showSiteName && (0, _react2.jsx)("div", {
|
|
134
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
131
135
|
style: siteTitleDynamicStyles,
|
|
132
136
|
css: siteTitleStyles
|
|
133
137
|
}));
|
|
@@ -87,6 +87,7 @@ var SearchComponent = function SearchComponent(props) {
|
|
|
87
87
|
}, (0, _react2.jsx)(_search.default, {
|
|
88
88
|
label: ""
|
|
89
89
|
})), (0, _react2.jsx)("input", {
|
|
90
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
90
91
|
style: searchInputDynamicStyles,
|
|
91
92
|
css: [searchInputStyles, newSearchBorderStyles],
|
|
92
93
|
"aria-label": label,
|
|
@@ -39,6 +39,7 @@ var SearchSkeleton = exports.SearchSkeleton = function SearchSkeleton() {
|
|
|
39
39
|
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)("div", {
|
|
40
40
|
css: searchInputContainerStyles
|
|
41
41
|
}, (0, _react2.jsx)("div", {
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
42
43
|
style: theme.mode.skeleton,
|
|
43
44
|
css: searchInputSkeletonStyles
|
|
44
45
|
})), (0, _react2.jsx)(_skeleton.IconButtonSkeleton, {
|
|
@@ -24,7 +24,7 @@ var skeletonCreateButtonStyles = (0, _react.css)({
|
|
|
24
24
|
},
|
|
25
25
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
26
26
|
'&&': {
|
|
27
|
-
|
|
27
|
+
marginInlineStart: "var(--ds-space-150, 12px)"
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
|
|
@@ -43,6 +43,7 @@ var SkeletonCreateButton = exports.SkeletonCreateButton = function SkeletonCreat
|
|
|
43
43
|
testId = _ref.testId;
|
|
44
44
|
var theme = (0, _theme.useTheme)();
|
|
45
45
|
return (0, _react.jsx)("button", {
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
46
47
|
style: theme.mode.create.default,
|
|
47
48
|
css: skeletonCreateButtonStyles,
|
|
48
49
|
"data-testid": testId,
|
|
@@ -51,6 +51,7 @@ var SkeletonIconButton = exports.SkeletonIconButton = function SkeletonIconButto
|
|
|
51
51
|
testId = _ref.testId;
|
|
52
52
|
var theme = (0, _theme.useTheme)();
|
|
53
53
|
return (0, _react.jsx)("button", {
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
54
55
|
style: theme.mode.iconButton.default,
|
|
55
56
|
"data-testid": testId,
|
|
56
57
|
css: skeletonIconButtonStyles,
|
|
@@ -99,7 +99,9 @@ var SkeletonPrimaryButton = exports.SkeletonPrimaryButton = function SkeletonPri
|
|
|
99
99
|
color: primaryButton.selected.color
|
|
100
100
|
}), {}, (_objectSpread2 = {}, (0, _defineProperty2.default)(_objectSpread2, VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR, primaryButton.selected.borderColor), (0, _defineProperty2.default)(_objectSpread2, VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR, isHighlighted ? primaryButton.default.borderColor : primaryButton.default.color), _objectSpread2));
|
|
101
101
|
return (0, _react.jsx)("button", {
|
|
102
|
-
type: "button"
|
|
102
|
+
type: "button"
|
|
103
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
104
|
+
,
|
|
103
105
|
style: dynamicStyles,
|
|
104
106
|
css: [primaryButtonSkeletonStyles, isHighlighted && isHighlightedStyles, isDropdownButton && isDropdownButtonStyles, isHighlighted && (isDropdownButton ? isHighlightedAndDropdownButtonStyles : isHighlightedNotDropdownButtonStyles)],
|
|
105
107
|
"data-testid": testId
|
|
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.DEFAULT_THEME_NAME = void 0;
|
|
7
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
7
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
8
|
var _themeHelpers = require("./theme-helpers");
|
|
10
9
|
var defaultTheme = {
|
|
@@ -76,13 +75,8 @@ var defaultTheme = {
|
|
|
76
75
|
backgroundColor: "var(--ds-text-brand, ".concat(_colors.B400, ")"),
|
|
77
76
|
color: "var(--ds-text, ".concat(_colors.N700, ")"),
|
|
78
77
|
borderRight: "1px solid ".concat("var(--ds-border, ".concat((0, _themeHelpers.hexToRGBA)(_colors.N200, 0.3), ")")),
|
|
79
|
-
// TODO: (DSP-1256) These colors should be moved into the Logo package
|
|
80
78
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
81
|
-
|
|
82
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
83
|
-
iconGradientStop: _colors.B200,
|
|
84
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
85
|
-
iconColor: (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.brand-refresh-update-product-logos_q7coo') ? '#357DE8' : _colors.B200
|
|
79
|
+
iconColor: '#357DE8' // TODO: replace with token after brand refresh
|
|
86
80
|
},
|
|
87
81
|
primaryButton: {
|
|
88
82
|
active: {
|
|
@@ -80,6 +80,7 @@ export const AtlassianNavigation = props => {
|
|
|
80
80
|
}, jsx(NavigationAnalyticsContext, {
|
|
81
81
|
data: analyticsData
|
|
82
82
|
}, jsx("header", {
|
|
83
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
83
84
|
style: theme.mode.navigation,
|
|
84
85
|
css: containerStyles,
|
|
85
86
|
"data-testid": testId && `${testId}-header`,
|
|
@@ -12,13 +12,13 @@ const containerStyles = css({
|
|
|
12
12
|
display: 'flex',
|
|
13
13
|
boxSizing: 'border-box',
|
|
14
14
|
height: HORIZONTAL_GLOBAL_NAV_HEIGHT,
|
|
15
|
-
paddingRight: "var(--ds-space-150, 12px)",
|
|
16
|
-
paddingLeft: "var(--ds-space-150, 12px)",
|
|
17
15
|
position: 'relative',
|
|
18
16
|
alignItems: 'center',
|
|
19
17
|
justifyContent: 'space-between',
|
|
20
18
|
flexShrink: 0,
|
|
21
|
-
|
|
19
|
+
borderBlockEnd: `1px solid ${`var(--ds-border, ${N30})`}`,
|
|
20
|
+
paddingInlineEnd: "var(--ds-space-150, 12px)",
|
|
21
|
+
paddingInlineStart: "var(--ds-space-150, 12px)"
|
|
22
22
|
});
|
|
23
23
|
const leftStyles = css({
|
|
24
24
|
display: 'flex',
|
|
@@ -37,8 +37,8 @@ const rightStyles = css({
|
|
|
37
37
|
flexShrink: 0,
|
|
38
38
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
39
39
|
'& > *': {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
flexShrink: 0,
|
|
41
|
+
marginInlineEnd: "var(--ds-space-050, 4px)"
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
|
|
@@ -66,6 +66,7 @@ export const NavigationSkeleton = ({
|
|
|
66
66
|
return jsx(ThemeProvider, {
|
|
67
67
|
value: theme
|
|
68
68
|
}, jsx("div", {
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
69
70
|
style: theme.mode.navigation,
|
|
70
71
|
css: containerStyles,
|
|
71
72
|
"data-testid": testId
|
|
@@ -24,6 +24,7 @@ const mobileStyles = css({
|
|
|
24
24
|
export const CreateSkeleton = () => {
|
|
25
25
|
const theme = useTheme();
|
|
26
26
|
return jsx(Fragment, null, jsx("div", {
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
27
28
|
style: theme.mode.skeleton,
|
|
28
29
|
css: [skeletonStyles, mobileStyles]
|
|
29
30
|
}), jsx(IconButtonSkeleton, {
|
|
@@ -24,7 +24,10 @@ export const IconButtonSkeleton = ({
|
|
|
24
24
|
...theme.mode.skeleton
|
|
25
25
|
};
|
|
26
26
|
return jsx("div", {
|
|
27
|
-
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
28
|
+
className: className
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
30
|
+
,
|
|
28
31
|
style: dynamicStyles,
|
|
29
32
|
css: skeletonStyles
|
|
30
33
|
});
|
|
@@ -54,6 +54,7 @@ export const PrimaryButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
54
54
|
} = props;
|
|
55
55
|
const theme = useTheme();
|
|
56
56
|
const button = jsx("div", {
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
57
58
|
style: {
|
|
58
59
|
[VAR_BUTTON_SELECTED_COLOR]: theme.mode.primaryButton.selected.color,
|
|
59
60
|
[VAR_BUTTON_SELECTED_BORDER_COLOR]: theme.mode.primaryButton.selected.borderColor
|
|
@@ -17,8 +17,11 @@ const skeletonStyles = css({
|
|
|
17
17
|
export const PrimaryButtonSkeleton = props => {
|
|
18
18
|
const theme = useTheme();
|
|
19
19
|
return jsx("div", {
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
20
21
|
style: theme.mode.skeleton,
|
|
21
|
-
css: skeletonStyles
|
|
22
|
+
css: skeletonStyles
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
24
|
+
,
|
|
22
25
|
className: props.className
|
|
23
26
|
});
|
|
24
27
|
};
|
|
@@ -50,7 +50,7 @@ const productHomeButtonStyles = css({
|
|
|
50
50
|
border: 0
|
|
51
51
|
},
|
|
52
52
|
'&:first-of-type': {
|
|
53
|
-
|
|
53
|
+
marginInlineStart: 0
|
|
54
54
|
},
|
|
55
55
|
'&:hover': {
|
|
56
56
|
backgroundColor: `var(${VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER})`,
|
|
@@ -82,10 +82,10 @@ const productHomeButtonStyles = css({
|
|
|
82
82
|
});
|
|
83
83
|
const siteTitleStyles = css({
|
|
84
84
|
display: 'flex',
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
alignItems: 'center',
|
|
86
|
+
marginInlineEnd: "var(--ds-space-050, 4px)",
|
|
87
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
88
|
+
paddingInlineEnd: "var(--ds-space-200, 16px)"
|
|
89
89
|
});
|
|
90
90
|
const hideSiteTitleStyles = css({
|
|
91
91
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
@@ -135,7 +135,9 @@ const CustomProductHome = props => {
|
|
|
135
135
|
[VAR_PRODUCT_HOME_BOX_SHADOW_HOVER]: primaryButton.hover.boxShadow
|
|
136
136
|
};
|
|
137
137
|
return jsx(Fragment, null, jsx(Tag, _extends({
|
|
138
|
-
href: href
|
|
138
|
+
href: href
|
|
139
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
140
|
+
,
|
|
139
141
|
style: productHomeButtonDynamicStyles,
|
|
140
142
|
css: productHomeButtonStyles,
|
|
141
143
|
onClick: onClick,
|
|
@@ -159,6 +161,7 @@ const CustomProductHome = props => {
|
|
|
159
161
|
alt: iconAlt,
|
|
160
162
|
"data-testid": testId && `${testId}-icon`
|
|
161
163
|
})), siteTitle && jsx("div", {
|
|
164
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
162
165
|
style: {
|
|
163
166
|
borderRight: theme.mode.productHome.borderRight
|
|
164
167
|
},
|
|
@@ -29,7 +29,7 @@ const productHomeButtonStyles = css({
|
|
|
29
29
|
border: 0
|
|
30
30
|
},
|
|
31
31
|
'&:first-of-type': {
|
|
32
|
-
|
|
32
|
+
marginInlineStart: 0
|
|
33
33
|
},
|
|
34
34
|
'&:hover': {
|
|
35
35
|
backgroundColor: `var(${VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER})`,
|
|
@@ -95,11 +95,10 @@ const productIconStyles = css({
|
|
|
95
95
|
});
|
|
96
96
|
const siteTitleStyles = css({
|
|
97
97
|
display: 'flex',
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
alignItems: 'center'
|
|
98
|
+
alignItems: 'center',
|
|
99
|
+
marginInlineEnd: "var(--ds-space-050, 4px)",
|
|
100
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
101
|
+
paddingInlineEnd: "var(--ds-space-200, 16px)"
|
|
103
102
|
});
|
|
104
103
|
|
|
105
104
|
// When cleaning up feature flag, these styles can be moved into the above block
|
|
@@ -107,7 +106,7 @@ const featureFlaggedSiteTitleStyles = css({
|
|
|
107
106
|
// Under the FF, we've made the site title handle it's spacing, with the
|
|
108
107
|
// PrimaryItemsContainer not needing to worry about its paddingInlineStart.
|
|
109
108
|
// This makes it cleaner for the title styles to appear and disappear with mq's
|
|
110
|
-
|
|
109
|
+
marginInlineEnd: "var(--ds-space-100, 8px)",
|
|
111
110
|
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
112
111
|
[`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
|
|
113
112
|
display: 'none'
|
|
@@ -140,8 +139,6 @@ const ProductHome = ({
|
|
|
140
139
|
const primaryButton = theme.mode.primaryButton;
|
|
141
140
|
const {
|
|
142
141
|
iconColor = 'inherit',
|
|
143
|
-
iconGradientStart = 'inherit',
|
|
144
|
-
iconGradientStop = 'inherit',
|
|
145
142
|
textColor = theme.mode.productHome.color
|
|
146
143
|
} = theme.mode.productHome;
|
|
147
144
|
const Tag = getTag(onClick, href);
|
|
@@ -161,7 +158,9 @@ const ProductHome = ({
|
|
|
161
158
|
[VAR_PRODUCT_HOME_BOX_SHADOW_HOVER]: primaryButton.hover.boxShadow,
|
|
162
159
|
[VAR_LOGO_MAX_WIDTH]: `${logoMaxWidth}px`
|
|
163
160
|
};
|
|
164
|
-
return jsx(Fragment, null, jsx(Tag
|
|
161
|
+
return jsx(Fragment, null, jsx(Tag
|
|
162
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
163
|
+
, _extends({
|
|
165
164
|
style: productHomeButtonDynamicStyles,
|
|
166
165
|
css: productHomeButtonStyles,
|
|
167
166
|
href: href,
|
|
@@ -173,18 +172,15 @@ const ProductHome = ({
|
|
|
173
172
|
css: [customMaxHeightStyles, productLogoStyles],
|
|
174
173
|
"data-testid": testId && `${testId}-logo`
|
|
175
174
|
}, jsx(Logo, {
|
|
176
|
-
iconGradientStart: iconGradientStart,
|
|
177
|
-
iconGradientStop: iconGradientStop,
|
|
178
175
|
iconColor: iconColor,
|
|
179
176
|
textColor: textColor
|
|
180
177
|
})), jsx("div", {
|
|
181
178
|
css: [customMaxHeightStyles, productIconStyles],
|
|
182
179
|
"data-testid": testId && `${testId}-icon`
|
|
183
180
|
}, jsx(Icon, {
|
|
184
|
-
iconGradientStart: iconGradientStart,
|
|
185
|
-
iconGradientStop: iconGradientStop,
|
|
186
181
|
iconColor: iconColor
|
|
187
182
|
}))), siteTitle && jsx("div", {
|
|
183
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
188
184
|
style: {
|
|
189
185
|
borderRight: theme.mode.productHome.borderRight
|
|
190
186
|
},
|
|
@@ -27,7 +27,7 @@ const productHomeButtonStyles = css({
|
|
|
27
27
|
border: 0
|
|
28
28
|
},
|
|
29
29
|
'&:first-of-type': {
|
|
30
|
-
|
|
30
|
+
marginInlineStart: 0
|
|
31
31
|
},
|
|
32
32
|
'&:active': {
|
|
33
33
|
backgroundColor: `var(${VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE})`,
|
|
@@ -92,11 +92,11 @@ const productIconStyles = css({
|
|
|
92
92
|
const siteTitleStyles = css({
|
|
93
93
|
display: 'flex',
|
|
94
94
|
width: "var(--ds-space-500, 40px)",
|
|
95
|
-
marginRight: "var(--ds-space-050, 4px)",
|
|
96
|
-
marginLeft: "var(--ds-space-050, 4px)",
|
|
97
|
-
paddingRight: "var(--ds-space-200, 16px)",
|
|
98
95
|
alignItems: 'center',
|
|
99
96
|
backgroundColor: 'transparent',
|
|
97
|
+
marginInlineEnd: "var(--ds-space-050, 4px)",
|
|
98
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
99
|
+
paddingInlineEnd: "var(--ds-space-200, 16px)",
|
|
100
100
|
'&:after': {
|
|
101
101
|
width: '100%',
|
|
102
102
|
height: 14,
|
|
@@ -131,15 +131,19 @@ export const ProductHomeSkeleton = ({
|
|
|
131
131
|
[VAR_SITE_TITLE_BG_COLOR_AFTER]: theme.mode.skeleton.backgroundColor
|
|
132
132
|
};
|
|
133
133
|
return jsx(Fragment, null, jsx("div", {
|
|
134
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
134
135
|
style: productHomeButtonDynamicStyles,
|
|
135
136
|
css: productHomeButtonStyles
|
|
136
137
|
}, jsx("div", {
|
|
138
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
137
139
|
style: theme.mode.skeleton,
|
|
138
140
|
css: productLogoStyles
|
|
139
141
|
}), jsx("div", {
|
|
142
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
140
143
|
style: theme.mode.skeleton,
|
|
141
144
|
css: productIconStyles
|
|
142
145
|
})), showSiteName && jsx("div", {
|
|
146
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
143
147
|
style: siteTitleDynamicStyles,
|
|
144
148
|
css: siteTitleStyles
|
|
145
149
|
}));
|