@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
|
@@ -11,6 +11,9 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
var _constants = require("../../common/constants");
|
|
12
12
|
var _theme = require("../../theme");
|
|
13
13
|
var _css;
|
|
14
|
+
/**
|
|
15
|
+
* @jsxRuntime classic
|
|
16
|
+
*/
|
|
14
17
|
/** @jsx jsx */
|
|
15
18
|
var VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
|
|
16
19
|
var VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE = '--product-home-bg-color-active';
|
|
@@ -31,11 +34,13 @@ var productHomeButtonStyles = (0, _react2.css)((_css = {
|
|
|
31
34
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
32
35
|
color: 'inherit',
|
|
33
36
|
cursor: 'pointer',
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
34
38
|
'&::-moz-focus-inner': {
|
|
35
39
|
border: 0
|
|
36
40
|
},
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
37
42
|
'&:first-of-type': {
|
|
38
|
-
|
|
43
|
+
marginInlineStart: 0
|
|
39
44
|
},
|
|
40
45
|
'&:active': {
|
|
41
46
|
backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE, ")"),
|
|
@@ -53,7 +58,7 @@ var productHomeButtonStyles = (0, _react2.css)((_css = {
|
|
|
53
58
|
boxShadow: "var(".concat(VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, ")"),
|
|
54
59
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_HOVER, ")")
|
|
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-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
57
62
|
'div&': {
|
|
58
63
|
pointerEvents: 'none'
|
|
59
64
|
}
|
|
@@ -69,7 +74,7 @@ var productLogoStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
|
69
74
|
height: 24,
|
|
70
75
|
maxHeight: 28,
|
|
71
76
|
opacity: 0.15,
|
|
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-nested-selectors -- Ignored via go/DSP-18766
|
|
73
78
|
'& > *': {
|
|
74
79
|
maxHeight: 24
|
|
75
80
|
}
|
|
@@ -82,7 +87,7 @@ var productIconStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
|
82
87
|
height: 28,
|
|
83
88
|
borderRadius: "var(--ds-border-radius-circle, 50%)",
|
|
84
89
|
opacity: 0.15,
|
|
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
|
}
|
|
@@ -92,11 +97,12 @@ var productIconStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
|
92
97
|
var siteTitleStyles = (0, _react2.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,
|
|
@@ -119,15 +125,19 @@ var ProductHomeSkeleton = exports.ProductHomeSkeleton = function ProductHomeSkel
|
|
|
119
125
|
opacity: theme.mode.skeleton.opacity
|
|
120
126
|
}, VAR_SITE_TITLE_BG_COLOR_AFTER, theme.mode.skeleton.backgroundColor);
|
|
121
127
|
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)("div", {
|
|
128
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
122
129
|
style: productHomeButtonDynamicStyles,
|
|
123
130
|
css: productHomeButtonStyles
|
|
124
131
|
}, (0, _react2.jsx)("div", {
|
|
132
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
125
133
|
style: theme.mode.skeleton,
|
|
126
134
|
css: productLogoStyles
|
|
127
135
|
}), (0, _react2.jsx)("div", {
|
|
136
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
128
137
|
style: theme.mode.skeleton,
|
|
129
138
|
css: productIconStyles
|
|
130
139
|
})), showSiteName && (0, _react2.jsx)("div", {
|
|
140
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
131
141
|
style: siteTitleDynamicStyles,
|
|
132
142
|
css: siteTitleStyles
|
|
133
143
|
}));
|
|
@@ -15,12 +15,16 @@ var _constants = require("../../common/constants");
|
|
|
15
15
|
var _theme = require("../../theme");
|
|
16
16
|
var _IconButton = require("../IconButton");
|
|
17
17
|
var _excluded = ["placeholder", "tooltip", "label", "value"];
|
|
18
|
+
/**
|
|
19
|
+
* @jsxRuntime classic
|
|
20
|
+
*/
|
|
18
21
|
/** @jsx jsx */
|
|
19
22
|
var searchInputContainerStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
20
23
|
position: 'relative',
|
|
21
24
|
marginInlineEnd: "var(--ds-space-100, 8px)",
|
|
22
25
|
marginInlineStart: "var(--ds-space-250, 20px)"
|
|
23
26
|
}, "@media (max-width: ".concat(_constants.CREATE_BREAKPOINT - 1, "px)"), {
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
24
28
|
display: 'none !important'
|
|
25
29
|
}));
|
|
26
30
|
var searchInputIconStyles = (0, _react2.css)({
|
|
@@ -34,6 +38,7 @@ var searchInputIconStyles = (0, _react2.css)({
|
|
|
34
38
|
var newSearchBorderStyles = (0, _react2.css)({
|
|
35
39
|
border: "var(--ds-border-width, 1px)".concat(" solid"),
|
|
36
40
|
'&:focus': {
|
|
41
|
+
// 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
42
|
boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " var(", _constants.varSearchFocusBorderColor, ")")
|
|
38
43
|
}
|
|
39
44
|
});
|
|
@@ -42,24 +47,31 @@ var searchInputStyles = (0, _react2.css)({
|
|
|
42
47
|
width: '220px',
|
|
43
48
|
height: "var(--ds-space-400, 32px)",
|
|
44
49
|
padding: "0 ".concat("var(--ds-space-100, 8px)", " 0 ", "var(--ds-space-500, 40px)"),
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
45
51
|
backgroundColor: "var(".concat(_constants.varSearchBackgroundColor, ")"),
|
|
46
52
|
border: '2px solid',
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
47
54
|
borderColor: "var(".concat(_constants.varSearchBorderColor, ")"),
|
|
48
55
|
borderRadius: "var(--ds-border-radius-200, 6px)",
|
|
56
|
+
// 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
57
|
color: "var(".concat(_constants.varSearchColor, ")"),
|
|
50
58
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
51
59
|
outline: 'none',
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
52
61
|
'::placeholder': {
|
|
53
62
|
color: 'inherit'
|
|
54
63
|
},
|
|
55
64
|
'&:focus': {
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
56
66
|
borderColor: "var(".concat(_constants.varSearchFocusBorderColor, ")")
|
|
57
67
|
},
|
|
58
68
|
'&:hover': {
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
59
70
|
backgroundColor: "var(".concat(_constants.varSearchHoverBackgroundColor, ")")
|
|
60
71
|
}
|
|
61
72
|
});
|
|
62
73
|
var searchIconStyles = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (min-width: ".concat(_constants.CREATE_BREAKPOINT, "px)"), {
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
63
75
|
display: 'none !important'
|
|
64
76
|
}));
|
|
65
77
|
var SearchComponent = function SearchComponent(props) {
|
|
@@ -87,6 +99,7 @@ var SearchComponent = function SearchComponent(props) {
|
|
|
87
99
|
}, (0, _react2.jsx)(_search.default, {
|
|
88
100
|
label: ""
|
|
89
101
|
})), (0, _react2.jsx)("input", {
|
|
102
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
90
103
|
style: searchInputDynamicStyles,
|
|
91
104
|
css: [searchInputStyles, newSearchBorderStyles],
|
|
92
105
|
"aria-label": label,
|
|
@@ -11,13 +11,19 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
var _constants = require("../../common/constants");
|
|
12
12
|
var _theme = require("../../theme");
|
|
13
13
|
var _skeleton = require("../IconButton/skeleton");
|
|
14
|
+
/**
|
|
15
|
+
* @jsxRuntime classic
|
|
16
|
+
*/
|
|
14
17
|
/** @jsx jsx */
|
|
15
18
|
|
|
16
19
|
var searchInputContainerStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/no-physical-properties
|
|
17
21
|
marginRight: "var(--ds-space-100, 8px)",
|
|
22
|
+
// eslint-disable-next-line @atlaskit/design-system/no-physical-properties
|
|
18
23
|
marginLeft: "var(--ds-space-250, 20px)",
|
|
19
24
|
position: 'relative'
|
|
20
25
|
}, "@media (max-width: ".concat(_constants.CREATE_BREAKPOINT - 1, "px)"), {
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
21
27
|
display: 'none !important'
|
|
22
28
|
}));
|
|
23
29
|
var searchInputSkeletonStyles = (0, _react2.css)({
|
|
@@ -29,6 +35,7 @@ var searchInputSkeletonStyles = (0, _react2.css)({
|
|
|
29
35
|
opacity: 0.15
|
|
30
36
|
});
|
|
31
37
|
var searchIconStyles = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (min-width: ".concat(_constants.CREATE_BREAKPOINT, "px)"), {
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
32
39
|
display: 'none !important'
|
|
33
40
|
}));
|
|
34
41
|
|
|
@@ -39,6 +46,7 @@ var SearchSkeleton = exports.SearchSkeleton = function SearchSkeleton() {
|
|
|
39
46
|
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)("div", {
|
|
40
47
|
css: searchInputContainerStyles
|
|
41
48
|
}, (0, _react2.jsx)("div", {
|
|
49
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
42
50
|
style: theme.mode.skeleton,
|
|
43
51
|
css: searchInputSkeletonStyles
|
|
44
52
|
})), (0, _react2.jsx)(_skeleton.IconButtonSkeleton, {
|
|
@@ -6,6 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.SkeletonCreateButton = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _theme = require("../../theme");
|
|
9
|
+
/**
|
|
10
|
+
* @jsxRuntime classic
|
|
11
|
+
*/
|
|
9
12
|
/** @jsx jsx */
|
|
10
13
|
|
|
11
14
|
var skeletonCreateButtonStyles = (0, _react.css)({
|
|
@@ -17,14 +20,15 @@ var skeletonCreateButtonStyles = (0, _react.css)({
|
|
|
17
20
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
18
21
|
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
19
22
|
pointerEvents: 'none',
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
20
24
|
':focus, :active, :hover': {
|
|
21
25
|
appearance: 'none',
|
|
22
26
|
border: 0,
|
|
23
27
|
outline: 0
|
|
24
28
|
},
|
|
25
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
26
30
|
'&&': {
|
|
27
|
-
|
|
31
|
+
marginInlineStart: "var(--ds-space-150, 12px)"
|
|
28
32
|
}
|
|
29
33
|
});
|
|
30
34
|
|
|
@@ -43,6 +47,7 @@ var SkeletonCreateButton = exports.SkeletonCreateButton = function SkeletonCreat
|
|
|
43
47
|
testId = _ref.testId;
|
|
44
48
|
var theme = (0, _theme.useTheme)();
|
|
45
49
|
return (0, _react.jsx)("button", {
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
46
51
|
style: theme.mode.create.default,
|
|
47
52
|
css: skeletonCreateButtonStyles,
|
|
48
53
|
"data-testid": testId,
|
|
@@ -6,28 +6,35 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.SkeletonIconButton = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _theme = require("../../theme");
|
|
9
|
+
/**
|
|
10
|
+
* @jsxRuntime classic
|
|
11
|
+
*/
|
|
9
12
|
/** @jsx jsx */
|
|
10
13
|
|
|
11
14
|
var skeletonIconButtonStyles = (0, _react.css)({
|
|
12
15
|
margin: 0,
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/no-physical-properties
|
|
13
17
|
marginRight: "var(--ds-space-050, 4px)",
|
|
14
18
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-075, 6px)"),
|
|
15
19
|
border: 0,
|
|
16
20
|
borderRadius: "var(--ds-border-radius-circle, 100%)",
|
|
17
21
|
pointerEvents: 'none',
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
18
23
|
':focus, :active, :hover': {
|
|
19
24
|
appearance: 'none',
|
|
20
25
|
border: 0,
|
|
21
26
|
outline: 0
|
|
22
27
|
},
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
23
29
|
'&:only-of-type': {
|
|
30
|
+
// eslint-disable-next-line @atlaskit/design-system/no-physical-properties
|
|
24
31
|
marginRight: 0
|
|
25
32
|
},
|
|
26
|
-
// 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
|
|
27
34
|
'& > span': {
|
|
28
35
|
lineHeight: 'normal'
|
|
29
36
|
},
|
|
30
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
37
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
31
38
|
'& > img': {
|
|
32
39
|
width: 24,
|
|
33
40
|
height: 24,
|
|
@@ -51,6 +58,7 @@ var SkeletonIconButton = exports.SkeletonIconButton = function SkeletonIconButto
|
|
|
51
58
|
testId = _ref.testId;
|
|
52
59
|
var theme = (0, _theme.useTheme)();
|
|
53
60
|
return (0, _react.jsx)("button", {
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
54
62
|
style: theme.mode.iconButton.default,
|
|
55
63
|
"data-testid": testId,
|
|
56
64
|
css: skeletonIconButtonStyles,
|
|
@@ -9,7 +9,9 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _theme = require("../../theme");
|
|
11
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
|
|
13
|
+
* @jsxRuntime classic
|
|
14
|
+
*/ /** @jsx jsx */
|
|
13
15
|
var VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR = '--primary-button-before-highlighted-background-color';
|
|
14
16
|
var VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR = '--primary-button-after-dropdown-border-color';
|
|
15
17
|
var primaryButtonSkeletonStyles = (0, _react.css)({
|
|
@@ -21,16 +23,19 @@ var primaryButtonSkeletonStyles = (0, _react.css)({
|
|
|
21
23
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
22
24
|
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
23
25
|
pointerEvents: 'none',
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
24
27
|
':focus, :active, :hover': {
|
|
25
28
|
appearance: 'none',
|
|
26
29
|
border: 0,
|
|
27
30
|
outline: 0
|
|
28
31
|
},
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
29
33
|
'::-moz-focus-inner': {
|
|
30
34
|
border: 0
|
|
31
35
|
}
|
|
32
36
|
});
|
|
33
37
|
var isHighlightedStyles = (0, _react.css)({
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
34
39
|
'&:before': {
|
|
35
40
|
height: 3,
|
|
36
41
|
position: 'absolute',
|
|
@@ -43,12 +48,14 @@ var isHighlightedStyles = (0, _react.css)({
|
|
|
43
48
|
}
|
|
44
49
|
});
|
|
45
50
|
var isHighlightedAndDropdownButtonStyles = (0, _react.css)({
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
46
52
|
'&:before': {
|
|
47
53
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
48
54
|
insetInlineEnd: -10
|
|
49
55
|
}
|
|
50
56
|
});
|
|
51
57
|
var isHighlightedNotDropdownButtonStyles = (0, _react.css)({
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
52
59
|
'&:before': {
|
|
53
60
|
insetInlineEnd: "var(--ds-space-025, 2px)"
|
|
54
61
|
}
|
|
@@ -56,6 +63,7 @@ var isHighlightedNotDropdownButtonStyles = (0, _react.css)({
|
|
|
56
63
|
var isDropdownButtonStyles = (0, _react.css)({
|
|
57
64
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
58
65
|
marginInlineEnd: 18,
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
59
67
|
'&:after': {
|
|
60
68
|
display: 'inline-block',
|
|
61
69
|
width: 4,
|
|
@@ -99,7 +107,9 @@ var SkeletonPrimaryButton = exports.SkeletonPrimaryButton = function SkeletonPri
|
|
|
99
107
|
color: primaryButton.selected.color
|
|
100
108
|
}), {}, (_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
109
|
return (0, _react.jsx)("button", {
|
|
102
|
-
type: "button"
|
|
110
|
+
type: "button"
|
|
111
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
112
|
+
,
|
|
103
113
|
style: dynamicStyles,
|
|
104
114
|
css: [primaryButtonSkeletonStyles, isHighlighted && isHighlightedStyles, isDropdownButton && isDropdownButtonStyles, isHighlighted && (isDropdownButton ? isHighlightedAndDropdownButtonStyles : isHighlightedNotDropdownButtonStyles)],
|
|
105
115
|
"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: {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { css, jsx } from '@emotion/react';
|
|
3
6
|
import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
@@ -10,6 +13,7 @@ import { PrimaryItemsContainer as PrimaryItemsContainerV2 } from '../PrimaryItem
|
|
|
10
13
|
const containerStyles = css({
|
|
11
14
|
display: 'flex',
|
|
12
15
|
boxSizing: 'border-box',
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
17
|
height: HORIZONTAL_GLOBAL_NAV_HEIGHT,
|
|
14
18
|
position: 'relative',
|
|
15
19
|
alignItems: 'center',
|
|
@@ -25,7 +29,7 @@ const leftStyles = css({
|
|
|
25
29
|
height: 'inherit',
|
|
26
30
|
alignItems: 'center',
|
|
27
31
|
flexGrow: 1,
|
|
28
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
32
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
29
33
|
'& > *': {
|
|
30
34
|
flexShrink: 0
|
|
31
35
|
}
|
|
@@ -34,7 +38,7 @@ const rightStyles = css({
|
|
|
34
38
|
display: 'flex',
|
|
35
39
|
alignItems: 'center',
|
|
36
40
|
flexShrink: 0,
|
|
37
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
41
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
38
42
|
'& > *': {
|
|
39
43
|
flexShrink: 0,
|
|
40
44
|
marginInlineEnd: "var(--ds-space-050, 4px)"
|
|
@@ -80,6 +84,7 @@ export const AtlassianNavigation = props => {
|
|
|
80
84
|
}, jsx(NavigationAnalyticsContext, {
|
|
81
85
|
data: analyticsData
|
|
82
86
|
}, jsx("header", {
|
|
87
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
83
88
|
style: theme.mode.navigation,
|
|
84
89
|
css: containerStyles,
|
|
85
90
|
"data-testid": testId && `${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
|
const containerStyles = css({
|
|
12
15
|
display: 'flex',
|
|
13
16
|
boxSizing: 'border-box',
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
18
|
height: HORIZONTAL_GLOBAL_NAV_HEIGHT,
|
|
15
|
-
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 ${`var(--ds-border, ${N30})`}`,
|
|
24
|
+
paddingInlineEnd: "var(--ds-space-150, 12px)",
|
|
25
|
+
paddingInlineStart: "var(--ds-space-150, 12px)"
|
|
22
26
|
});
|
|
23
27
|
const leftStyles = css({
|
|
24
28
|
display: 'flex',
|
|
@@ -26,7 +30,7 @@ const leftStyles = css({
|
|
|
26
30
|
height: 'inherit',
|
|
27
31
|
alignItems: 'center',
|
|
28
32
|
flexGrow: 1,
|
|
29
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
33
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
30
34
|
'& > *': {
|
|
31
35
|
flexShrink: 0
|
|
32
36
|
}
|
|
@@ -35,10 +39,10 @@ const rightStyles = css({
|
|
|
35
39
|
display: 'flex',
|
|
36
40
|
alignItems: 'center',
|
|
37
41
|
flexShrink: 0,
|
|
38
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
42
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
39
43
|
'& > *': {
|
|
40
|
-
|
|
41
|
-
|
|
44
|
+
flexShrink: 0,
|
|
45
|
+
marginInlineEnd: "var(--ds-space-050, 4px)"
|
|
42
46
|
}
|
|
43
47
|
});
|
|
44
48
|
|
|
@@ -66,6 +70,7 @@ export const NavigationSkeleton = ({
|
|
|
66
70
|
return jsx(ThemeProvider, {
|
|
67
71
|
value: theme
|
|
68
72
|
}, jsx("div", {
|
|
73
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
69
74
|
style: theme.mode.navigation,
|
|
70
75
|
css: containerStyles,
|
|
71
76
|
"data-testid": testId
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { Fragment } from 'react';
|
|
3
6
|
import { css, jsx } from '@emotion/react';
|
|
@@ -11,21 +14,23 @@ import { getCreateButtonTheme } from './styles';
|
|
|
11
14
|
const wrapperStyles = css({
|
|
12
15
|
display: 'flex',
|
|
13
16
|
alignItems: 'center',
|
|
14
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
17
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
15
18
|
'& [data-hide-on-smallscreens]': {
|
|
16
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
17
20
|
[`@media (max-width: ${CREATE_BREAKPOINT - 1}px)`]: {
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
18
22
|
display: 'none !important'
|
|
19
23
|
}
|
|
20
24
|
},
|
|
21
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
25
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
22
26
|
'& [data-hide-on-largescreens]': {
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
27
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
24
28
|
[`@media (min-width: ${CREATE_BREAKPOINT}px)`]: {
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
25
30
|
display: 'none !important'
|
|
26
31
|
}
|
|
27
32
|
},
|
|
28
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
33
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
29
34
|
'&&': {
|
|
30
35
|
marginInlineStart: "var(--ds-space-150, 12px)"
|
|
31
36
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
import { Fragment } from 'react';
|
|
3
6
|
import { css, jsx } from '@emotion/react';
|
|
@@ -13,8 +16,9 @@ const skeletonStyles = css({
|
|
|
13
16
|
opacity: 0.15
|
|
14
17
|
});
|
|
15
18
|
const mobileStyles = css({
|
|
16
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
17
20
|
[`@media (max-width: ${CREATE_BREAKPOINT - 1}px)`]: {
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
18
22
|
display: 'none !important'
|
|
19
23
|
}
|
|
20
24
|
});
|
|
@@ -24,6 +28,7 @@ const mobileStyles = css({
|
|
|
24
28
|
export const CreateSkeleton = () => {
|
|
25
29
|
const theme = useTheme();
|
|
26
30
|
return jsx(Fragment, null, jsx("div", {
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
27
32
|
style: theme.mode.skeleton,
|
|
28
33
|
css: [skeletonStyles, mobileStyles]
|
|
29
34
|
}), 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';
|
|
@@ -24,7 +27,10 @@ export const IconButtonSkeleton = ({
|
|
|
24
27
|
...theme.mode.skeleton
|
|
25
28
|
};
|
|
26
29
|
return jsx("div", {
|
|
27
|
-
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
31
|
+
className: className
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
33
|
+
,
|
|
28
34
|
style: dynamicStyles,
|
|
29
35
|
css: skeletonStyles
|
|
30
36
|
});
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { forwardRef } from 'react';
|
|
4
7
|
import { css, jsx } from '@emotion/react';
|
|
@@ -17,10 +20,11 @@ const buttonBaseStyles = css({
|
|
|
17
20
|
flexDirection: 'column'
|
|
18
21
|
});
|
|
19
22
|
const buttonHighlightedStyles = css({
|
|
20
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
21
24
|
'&& > *': {
|
|
22
25
|
color: `var(${VAR_BUTTON_SELECTED_COLOR})`
|
|
23
26
|
},
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
24
28
|
'&:after': {
|
|
25
29
|
height: 3,
|
|
26
30
|
position: 'absolute',
|
|
@@ -54,6 +58,7 @@ export const PrimaryButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
54
58
|
} = props;
|
|
55
59
|
const theme = useTheme();
|
|
56
60
|
const button = jsx("div", {
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
57
62
|
style: {
|
|
58
63
|
[VAR_BUTTON_SELECTED_COLOR]: theme.mode.primaryButton.selected.color,
|
|
59
64
|
[VAR_BUTTON_SELECTED_BORDER_COLOR]: theme.mode.primaryButton.selected.borderColor
|
|
@@ -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 @@ const skeletonStyles = css({
|
|
|
17
20
|
export const PrimaryButtonSkeleton = props => {
|
|
18
21
|
const 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,4 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
3
6
|
import { useCallback, useState } from 'react';
|
|
4
7
|
import { css, jsx } from '@emotion/react';
|
|
@@ -15,7 +18,7 @@ const containerStyles = css({
|
|
|
15
18
|
flexBasis: 0,
|
|
16
19
|
flexGrow: 1,
|
|
17
20
|
flexShrink: 0,
|
|
18
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
19
22
|
'& > *': {
|
|
20
23
|
margin: `0 ${"var(--ds-space-050, 4px)"}`,
|
|
21
24
|
flexShrink: 0
|