@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,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,11 +49,13 @@ 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
|
},
|
|
55
60
|
'&:hover': {
|
|
56
61
|
backgroundColor: `var(${VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER})`,
|
|
@@ -67,28 +72,28 @@ 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
|
}
|
|
82
87
|
});
|
|
83
88
|
const siteTitleStyles = css({
|
|
84
89
|
display: 'flex',
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
90
|
+
alignItems: 'center',
|
|
91
|
+
marginInlineEnd: "var(--ds-space-050, 4px)",
|
|
92
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
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
|
}
|
|
@@ -135,7 +140,9 @@ const CustomProductHome = props => {
|
|
|
135
140
|
[VAR_PRODUCT_HOME_BOX_SHADOW_HOVER]: primaryButton.hover.boxShadow
|
|
136
141
|
};
|
|
137
142
|
return jsx(Fragment, null, jsx(Tag, _extends({
|
|
138
|
-
href: href
|
|
143
|
+
href: href
|
|
144
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
145
|
+
,
|
|
139
146
|
style: productHomeButtonDynamicStyles,
|
|
140
147
|
css: productHomeButtonStyles,
|
|
141
148
|
onClick: onClick,
|
|
@@ -159,10 +166,13 @@ const CustomProductHome = props => {
|
|
|
159
166
|
alt: iconAlt,
|
|
160
167
|
"data-testid": testId && `${testId}-icon`
|
|
161
168
|
})), siteTitle && jsx("div", {
|
|
169
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
162
170
|
style: {
|
|
163
171
|
borderRight: theme.mode.productHome.borderRight
|
|
164
172
|
},
|
|
165
|
-
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],
|
|
166
176
|
"data-testid": testId && `${testId}-site-title`
|
|
167
177
|
}, siteTitle));
|
|
168
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,11 +28,13 @@ 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
|
},
|
|
34
39
|
'&:hover': {
|
|
35
40
|
backgroundColor: `var(${VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER})`,
|
|
@@ -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,22 +89,21 @@ 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
|
}
|
|
95
100
|
});
|
|
96
101
|
const siteTitleStyles = css({
|
|
97
102
|
display: 'flex',
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
alignItems: 'center'
|
|
103
|
+
alignItems: 'center',
|
|
104
|
+
marginInlineEnd: "var(--ds-space-050, 4px)",
|
|
105
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
106
|
+
paddingInlineEnd: "var(--ds-space-200, 16px)"
|
|
103
107
|
});
|
|
104
108
|
|
|
105
109
|
// When cleaning up feature flag, these styles can be moved into the above block
|
|
@@ -107,8 +111,8 @@ const featureFlaggedSiteTitleStyles = css({
|
|
|
107
111
|
// Under the FF, we've made the site title handle it's spacing, with the
|
|
108
112
|
// PrimaryItemsContainer not needing to worry about its paddingInlineStart.
|
|
109
113
|
// This makes it cleaner for the title styles to appear and disappear with mq's
|
|
110
|
-
|
|
111
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
114
|
+
marginInlineEnd: "var(--ds-space-100, 8px)",
|
|
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
|
|
112
116
|
[`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
|
|
113
117
|
display: 'none'
|
|
114
118
|
}
|
|
@@ -140,8 +144,6 @@ const ProductHome = ({
|
|
|
140
144
|
const primaryButton = theme.mode.primaryButton;
|
|
141
145
|
const {
|
|
142
146
|
iconColor = 'inherit',
|
|
143
|
-
iconGradientStart = 'inherit',
|
|
144
|
-
iconGradientStop = 'inherit',
|
|
145
147
|
textColor = theme.mode.productHome.color
|
|
146
148
|
} = theme.mode.productHome;
|
|
147
149
|
const Tag = getTag(onClick, href);
|
|
@@ -161,7 +163,9 @@ const ProductHome = ({
|
|
|
161
163
|
[VAR_PRODUCT_HOME_BOX_SHADOW_HOVER]: primaryButton.hover.boxShadow,
|
|
162
164
|
[VAR_LOGO_MAX_WIDTH]: `${logoMaxWidth}px`
|
|
163
165
|
};
|
|
164
|
-
return jsx(Fragment, null, jsx(Tag
|
|
166
|
+
return jsx(Fragment, null, jsx(Tag
|
|
167
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
168
|
+
, _extends({
|
|
165
169
|
style: productHomeButtonDynamicStyles,
|
|
166
170
|
css: productHomeButtonStyles,
|
|
167
171
|
href: href,
|
|
@@ -173,22 +177,21 @@ const ProductHome = ({
|
|
|
173
177
|
css: [customMaxHeightStyles, productLogoStyles],
|
|
174
178
|
"data-testid": testId && `${testId}-logo`
|
|
175
179
|
}, jsx(Logo, {
|
|
176
|
-
iconGradientStart: iconGradientStart,
|
|
177
|
-
iconGradientStop: iconGradientStop,
|
|
178
180
|
iconColor: iconColor,
|
|
179
181
|
textColor: textColor
|
|
180
182
|
})), jsx("div", {
|
|
181
183
|
css: [customMaxHeightStyles, productIconStyles],
|
|
182
184
|
"data-testid": testId && `${testId}-icon`
|
|
183
185
|
}, jsx(Icon, {
|
|
184
|
-
iconGradientStart: iconGradientStart,
|
|
185
|
-
iconGradientStop: iconGradientStop,
|
|
186
186
|
iconColor: iconColor
|
|
187
187
|
}))), siteTitle && jsx("div", {
|
|
188
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
188
189
|
style: {
|
|
189
190
|
borderRight: theme.mode.productHome.borderRight
|
|
190
191
|
},
|
|
191
|
-
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],
|
|
192
195
|
"data-testid": testId && `${testId}-site-title`
|
|
193
196
|
}, siteTitle));
|
|
194
197
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
|
|
3
6
|
import { Fragment } from 'react';
|
|
@@ -23,11 +26,13 @@ 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
|
},
|
|
32
37
|
'&:active': {
|
|
33
38
|
backgroundColor: `var(${VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE})`,
|
|
@@ -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
|
}
|
|
@@ -92,11 +97,12 @@ const productIconStyles = css({
|
|
|
92
97
|
const siteTitleStyles = css({
|
|
93
98
|
display: 'flex',
|
|
94
99
|
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
100
|
alignItems: 'center',
|
|
99
101
|
backgroundColor: 'transparent',
|
|
102
|
+
marginInlineEnd: "var(--ds-space-050, 4px)",
|
|
103
|
+
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
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,
|
|
@@ -131,15 +137,19 @@ export const ProductHomeSkeleton = ({
|
|
|
131
137
|
[VAR_SITE_TITLE_BG_COLOR_AFTER]: theme.mode.skeleton.backgroundColor
|
|
132
138
|
};
|
|
133
139
|
return jsx(Fragment, null, jsx("div", {
|
|
140
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
134
141
|
style: productHomeButtonDynamicStyles,
|
|
135
142
|
css: productHomeButtonStyles
|
|
136
143
|
}, jsx("div", {
|
|
144
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
137
145
|
style: theme.mode.skeleton,
|
|
138
146
|
css: productLogoStyles
|
|
139
147
|
}), jsx("div", {
|
|
148
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
140
149
|
style: theme.mode.skeleton,
|
|
141
150
|
css: productIconStyles
|
|
142
151
|
})), showSiteName && jsx("div", {
|
|
152
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
143
153
|
style: siteTitleDynamicStyles,
|
|
144
154
|
css: siteTitleStyles
|
|
145
155
|
}));
|
|
@@ -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
|
});
|
|
@@ -89,6 +101,7 @@ const SearchComponent = props => {
|
|
|
89
101
|
}, jsx(SearchIcon, {
|
|
90
102
|
label: ""
|
|
91
103
|
})), jsx("input", {
|
|
104
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
92
105
|
style: searchInputDynamicStyles,
|
|
93
106
|
css: [searchInputStyles, newSearchBorderStyles],
|
|
94
107
|
"aria-label": label,
|
|
@@ -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
|
});
|
|
@@ -35,6 +42,7 @@ export const SearchSkeleton = () => {
|
|
|
35
42
|
return jsx(Fragment, null, jsx("div", {
|
|
36
43
|
css: searchInputContainerStyles
|
|
37
44
|
}, jsx("div", {
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
38
46
|
style: theme.mode.skeleton,
|
|
39
47
|
css: searchInputSkeletonStyles
|
|
40
48
|
})), jsx(IconButtonSkeleton, {
|
|
@@ -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,14 +13,15 @@ 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
|
}
|
|
22
26
|
});
|
|
23
27
|
|
|
@@ -37,6 +41,7 @@ export const SkeletonCreateButton = ({
|
|
|
37
41
|
}) => {
|
|
38
42
|
const theme = useTheme();
|
|
39
43
|
return jsx("button", {
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
40
45
|
style: theme.mode.create.default,
|
|
41
46
|
css: skeletonCreateButtonStyles,
|
|
42
47
|
"data-testid": testId,
|
|
@@ -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,
|
|
@@ -45,6 +52,7 @@ export const SkeletonIconButton = ({
|
|
|
45
52
|
}) => {
|
|
46
53
|
const theme = useTheme();
|
|
47
54
|
return jsx("button", {
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
48
56
|
style: theme.mode.iconButton.default,
|
|
49
57
|
"data-testid": testId,
|
|
50
58
|
css: skeletonIconButtonStyles,
|
|
@@ -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,
|
|
@@ -93,7 +102,9 @@ export const SkeletonPrimaryButton = ({
|
|
|
93
102
|
[VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR]: isHighlighted ? primaryButton.default.borderColor : primaryButton.default.color
|
|
94
103
|
};
|
|
95
104
|
return jsx("button", {
|
|
96
|
-
type: "button"
|
|
105
|
+
type: "button"
|
|
106
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
107
|
+
,
|
|
97
108
|
style: dynamicStyles,
|
|
98
109
|
css: [primaryButtonSkeletonStyles, isHighlighted && isHighlightedStyles, isDropdownButton && isDropdownButtonStyles, isHighlighted && (isDropdownButton ? isHighlightedAndDropdownButtonStyles : isHighlightedNotDropdownButtonStyles)],
|
|
99
110
|
"data-testid": testId
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
2
1
|
import { B200, B400, B50, N0, N100, N20, N200, N600, N700 } from '@atlaskit/theme/colors';
|
|
3
2
|
import { hexToRGBA } from './theme-helpers';
|
|
4
3
|
const defaultTheme = {
|
|
@@ -70,13 +69,8 @@ const defaultTheme = {
|
|
|
70
69
|
backgroundColor: `var(--ds-text-brand, ${B400})`,
|
|
71
70
|
color: `var(--ds-text, ${N700})`,
|
|
72
71
|
borderRight: `1px solid ${`var(--ds-border, ${hexToRGBA(N200, 0.3)})`}`,
|
|
73
|
-
// TODO: (DSP-1256) These colors should be moved into the Logo package
|
|
74
72
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
75
|
-
|
|
76
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
77
|
-
iconGradientStop: B200,
|
|
78
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
79
|
-
iconColor: getBooleanFF('platform.design-system-team.brand-refresh-update-product-logos_q7coo') ? '#357DE8' : B200
|
|
73
|
+
iconColor: '#357DE8' // TODO: replace with token after brand refresh
|
|
80
74
|
},
|
|
81
75
|
primaryButton: {
|
|
82
76
|
active: {
|