@atlaskit/atlassian-navigation 2.6.14 → 2.6.15
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 +6 -0
- package/dist/cjs/components/AtlassianNavigation/index.js +3 -3
- package/dist/cjs/components/AtlassianNavigation/skeleton.js +3 -3
- package/dist/cjs/components/Create/index.js +3 -3
- package/dist/cjs/components/PrimaryButton/index.js +1 -1
- package/dist/cjs/components/PrimaryDropdownButton/index.js +5 -5
- package/dist/cjs/components/PrimaryItemsContainer/index.js +1 -1
- package/dist/cjs/components/ProductHome/custom-product-home.js +1 -1
- package/dist/cjs/components/ProductHome/product-home.js +4 -4
- package/dist/cjs/components/ProductHome/skeleton.js +3 -3
- package/dist/cjs/components/SkeletonCreateButton/index.js +1 -1
- package/dist/cjs/components/SkeletonIconButton/index.js +2 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/AtlassianNavigation/index.js +3 -3
- package/dist/es2019/components/AtlassianNavigation/skeleton.js +3 -3
- package/dist/es2019/components/Create/index.js +5 -5
- package/dist/es2019/components/Create/skeleton.js +1 -1
- package/dist/es2019/components/PrimaryButton/index.js +1 -1
- package/dist/es2019/components/PrimaryDropdownButton/index.js +6 -6
- package/dist/es2019/components/PrimaryItemsContainer/index.js +1 -1
- package/dist/es2019/components/PrimaryItemsContainerV2/index.js +1 -1
- package/dist/es2019/components/ProductHome/custom-product-home.js +6 -6
- package/dist/es2019/components/ProductHome/product-home.js +9 -9
- package/dist/es2019/components/ProductHome/skeleton.js +7 -7
- package/dist/es2019/components/Search/index.js +2 -2
- package/dist/es2019/components/Search/skeleton.js +2 -2
- package/dist/es2019/components/SkeletonCreateButton/index.js +1 -1
- package/dist/es2019/components/SkeletonIconButton/index.js +2 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/AtlassianNavigation/index.js +3 -3
- package/dist/esm/components/AtlassianNavigation/skeleton.js +3 -3
- package/dist/esm/components/Create/index.js +3 -3
- package/dist/esm/components/PrimaryButton/index.js +1 -1
- package/dist/esm/components/PrimaryDropdownButton/index.js +6 -6
- package/dist/esm/components/PrimaryItemsContainer/index.js +1 -1
- package/dist/esm/components/ProductHome/custom-product-home.js +1 -1
- package/dist/esm/components/ProductHome/product-home.js +4 -4
- package/dist/esm/components/ProductHome/skeleton.js +3 -3
- package/dist/esm/components/SkeletonCreateButton/index.js +1 -1
- package/dist/esm/components/SkeletonIconButton/index.js +2 -2
- package/dist/esm/version.json +1 -1
- package/package.json +1 -1
- package/tmp/api-report-tmp.d.ts +325 -0
package/CHANGELOG.md
CHANGED
|
@@ -24,7 +24,7 @@ var containerStyles = (0, _react.css)({
|
|
|
24
24
|
alignItems: 'center',
|
|
25
25
|
justifyContent: 'space-between',
|
|
26
26
|
flexShrink: 0,
|
|
27
|
-
// eslint-disable-next-line @
|
|
27
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
28
28
|
'[data-color-mode="light"] &, [data-color-mode="dark"] &': {
|
|
29
29
|
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
30
30
|
borderBottom: "1px solid ".concat("var(--ds-border, #091E4224)"),
|
|
@@ -54,7 +54,7 @@ var leftStyles = (0, _react.css)({
|
|
|
54
54
|
height: 'inherit',
|
|
55
55
|
alignItems: 'center',
|
|
56
56
|
flexGrow: 1,
|
|
57
|
-
// eslint-disable-next-line @
|
|
57
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
58
58
|
'& > *': {
|
|
59
59
|
flexShrink: 0
|
|
60
60
|
}
|
|
@@ -63,7 +63,7 @@ var rightStyles = (0, _react.css)({
|
|
|
63
63
|
display: 'flex',
|
|
64
64
|
alignItems: 'center',
|
|
65
65
|
flexShrink: 0,
|
|
66
|
-
// eslint-disable-next-line @
|
|
66
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
67
67
|
'& > *': {
|
|
68
68
|
marginRight: "var(--ds-space-050, 4px)",
|
|
69
69
|
flexShrink: 0
|
|
@@ -25,7 +25,7 @@ var containerStyles = (0, _react.css)({
|
|
|
25
25
|
alignItems: 'center',
|
|
26
26
|
justifyContent: 'space-between',
|
|
27
27
|
flexShrink: 0,
|
|
28
|
-
// eslint-disable-next-line @
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
29
29
|
'[data-color-mode="light"] &, [data-color-mode="dark"] &': {
|
|
30
30
|
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
31
31
|
borderBottom: "1px solid ".concat("var(--ds-border, #091E4224)"),
|
|
@@ -55,7 +55,7 @@ var leftStyles = (0, _react.css)({
|
|
|
55
55
|
height: 'inherit',
|
|
56
56
|
alignItems: 'center',
|
|
57
57
|
flexGrow: 1,
|
|
58
|
-
// eslint-disable-next-line @
|
|
58
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
59
59
|
'& > *': {
|
|
60
60
|
flexShrink: 0
|
|
61
61
|
}
|
|
@@ -64,7 +64,7 @@ var rightStyles = (0, _react.css)({
|
|
|
64
64
|
display: 'flex',
|
|
65
65
|
alignItems: 'center',
|
|
66
66
|
flexShrink: 0,
|
|
67
|
-
// eslint-disable-next-line @
|
|
67
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
68
68
|
'& > *': {
|
|
69
69
|
marginRight: "var(--ds-space-050, 4px)",
|
|
70
70
|
flexShrink: 0
|
|
@@ -20,15 +20,15 @@ var _styles = require("./styles");
|
|
|
20
20
|
var wrapperStyles = (0, _react2.css)({
|
|
21
21
|
display: 'flex',
|
|
22
22
|
alignItems: 'center',
|
|
23
|
-
// eslint-disable-next-line @
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
24
24
|
'& [data-hide-on-smallscreens]': (0, _defineProperty2.default)({}, "@media (max-width: ".concat(_constants.CREATE_BREAKPOINT - 1, "px)"), {
|
|
25
25
|
display: 'none !important'
|
|
26
26
|
}),
|
|
27
|
-
// eslint-disable-next-line @
|
|
27
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
28
28
|
'& [data-hide-on-largescreens]': (0, _defineProperty2.default)({}, "@media (min-width: ".concat(_constants.CREATE_BREAKPOINT, "px)"), {
|
|
29
29
|
display: 'none !important'
|
|
30
30
|
}),
|
|
31
|
-
// eslint-disable-next-line @
|
|
31
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
32
32
|
'&&': {
|
|
33
33
|
marginLeft: "var(--ds-space-150, 12px)"
|
|
34
34
|
}
|
|
@@ -27,7 +27,7 @@ var buttonBaseStyles = (0, _react2.css)({
|
|
|
27
27
|
flexDirection: 'column'
|
|
28
28
|
});
|
|
29
29
|
var buttonHighlightedStyles = (0, _react2.css)({
|
|
30
|
-
// eslint-disable-next-line @
|
|
30
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
31
31
|
'&& > *': {
|
|
32
32
|
color: "var(".concat(VAR_BUTTON_SELECTED_COLOR, ")")
|
|
33
33
|
},
|
|
@@ -9,12 +9,11 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
9
9
|
var _react = require("react");
|
|
10
10
|
var _react2 = require("@emotion/react");
|
|
11
11
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
|
|
12
|
+
var _primitives = require("@atlaskit/primitives");
|
|
12
13
|
var _PrimaryButton = require("../PrimaryButton");
|
|
13
14
|
/** @jsx jsx */
|
|
14
15
|
|
|
15
|
-
var chevronIconStyles = (0,
|
|
16
|
-
marginRight: "calc(-1 * ".concat("var(--ds-space-100, 8px)", ")"),
|
|
17
|
-
marginLeft: "calc(-1 * ".concat("var(--ds-space-100, 8px)", ")"),
|
|
16
|
+
var chevronIconStyles = (0, _primitives.xcss)({
|
|
18
17
|
opacity: 0.51
|
|
19
18
|
});
|
|
20
19
|
|
|
@@ -29,8 +28,9 @@ var chevronIconStyles = (0, _react2.css)({
|
|
|
29
28
|
*/
|
|
30
29
|
var PrimaryDropdownButton = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
31
30
|
return (0, _react2.jsx)(_PrimaryButton.PrimaryButton, (0, _extends2.default)({
|
|
32
|
-
iconAfter: (0, _react2.jsx)(
|
|
33
|
-
|
|
31
|
+
iconAfter: (0, _react2.jsx)(_primitives.Bleed, {
|
|
32
|
+
xcss: chevronIconStyles,
|
|
33
|
+
inline: "space.100"
|
|
34
34
|
}, (0, _react2.jsx)(_chevronDown.default, {
|
|
35
35
|
label: ""
|
|
36
36
|
})),
|
|
@@ -23,7 +23,7 @@ var containerStyles = (0, _react2.css)({
|
|
|
23
23
|
flexBasis: 0,
|
|
24
24
|
flexGrow: 1,
|
|
25
25
|
flexShrink: 0,
|
|
26
|
-
// eslint-disable-next-line @
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
27
27
|
'& > *': {
|
|
28
28
|
margin: "0 ".concat("var(--ds-space-050, 4px)"),
|
|
29
29
|
flexShrink: 0
|
|
@@ -74,7 +74,7 @@ var productHomeButtonStyles = (0, _react2.css)((_css3 = {
|
|
|
74
74
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
|
|
75
75
|
outline: "2px solid ".concat("var(--ds-border-focused, ".concat(_colors.B200, ")"))
|
|
76
76
|
},
|
|
77
|
-
// eslint-disable-next-line @
|
|
77
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
78
78
|
'div&': {
|
|
79
79
|
pointerEvents: 'none'
|
|
80
80
|
}
|
|
@@ -57,7 +57,7 @@ var productHomeButtonStyles = (0, _react2.css)((_css = {
|
|
|
57
57
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
|
|
58
58
|
outline: "var(--ds-border-width-outline, 2px)".concat(" solid ", "var(--ds-border-focused, #4C9AFF)")
|
|
59
59
|
},
|
|
60
|
-
// eslint-disable-next-line @
|
|
60
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
61
61
|
'div&': {
|
|
62
62
|
pointerEvents: 'none'
|
|
63
63
|
}
|
|
@@ -71,11 +71,11 @@ var productLogoStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
|
71
71
|
// productHome is aligned correctly
|
|
72
72
|
display: 'flex',
|
|
73
73
|
maxWidth: "var(".concat(VAR_LOGO_MAX_WIDTH, ")"),
|
|
74
|
-
// eslint-disable-next-line @
|
|
74
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
75
75
|
'& > *': {
|
|
76
76
|
maxHeight: 24
|
|
77
77
|
},
|
|
78
|
-
// eslint-disable-next-line @
|
|
78
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
79
79
|
'& > span > svg': {
|
|
80
80
|
maxWidth: "var(".concat(VAR_LOGO_MAX_WIDTH, ")")
|
|
81
81
|
}
|
|
@@ -89,7 +89,7 @@ var productIconStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
|
89
89
|
// Ensure anything passed into
|
|
90
90
|
// productHome is aligned correctly
|
|
91
91
|
display: 'flex',
|
|
92
|
-
// eslint-disable-next-line @
|
|
92
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
93
93
|
'& > *': {
|
|
94
94
|
maxHeight: 24
|
|
95
95
|
}
|
|
@@ -53,7 +53,7 @@ var productHomeButtonStyles = (0, _react2.css)((_css = {
|
|
|
53
53
|
boxShadow: "var(".concat(VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, ")"),
|
|
54
54
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_HOVER, ")")
|
|
55
55
|
},
|
|
56
|
-
// eslint-disable-next-line @
|
|
56
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
57
57
|
'div&': {
|
|
58
58
|
pointerEvents: 'none'
|
|
59
59
|
}
|
|
@@ -69,7 +69,7 @@ var productLogoStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
|
69
69
|
height: 24,
|
|
70
70
|
maxHeight: 28,
|
|
71
71
|
opacity: 0.15,
|
|
72
|
-
// eslint-disable-next-line @
|
|
72
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
73
73
|
'& > *': {
|
|
74
74
|
maxHeight: 24
|
|
75
75
|
}
|
|
@@ -82,7 +82,7 @@ var productIconStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
|
82
82
|
height: 28,
|
|
83
83
|
borderRadius: "var(--ds-border-radius-circle, 50%)",
|
|
84
84
|
opacity: 0.15,
|
|
85
|
-
// eslint-disable-next-line @
|
|
85
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
86
86
|
'& > *': {
|
|
87
87
|
maxHeight: 24
|
|
88
88
|
}
|
|
@@ -23,7 +23,7 @@ var skeletonCreateButtonStyles = (0, _react.css)({
|
|
|
23
23
|
border: 0,
|
|
24
24
|
outline: 0
|
|
25
25
|
},
|
|
26
|
-
// eslint-disable-next-line @
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
27
27
|
'&&': {
|
|
28
28
|
marginLeft: "var(--ds-space-150, 12px)"
|
|
29
29
|
}
|
|
@@ -23,11 +23,11 @@ var skeletonIconButtonStyles = (0, _react.css)({
|
|
|
23
23
|
'&:only-of-type': {
|
|
24
24
|
marginRight: 0
|
|
25
25
|
},
|
|
26
|
-
// eslint-disable-next-line @
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
27
27
|
'& > span': {
|
|
28
28
|
lineHeight: 'normal'
|
|
29
29
|
},
|
|
30
|
-
// eslint-disable-next-line @
|
|
30
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
31
31
|
'& > img': {
|
|
32
32
|
width: 24,
|
|
33
33
|
height: 24,
|
package/dist/cjs/version.json
CHANGED
|
@@ -17,7 +17,7 @@ const containerStyles = css({
|
|
|
17
17
|
alignItems: 'center',
|
|
18
18
|
justifyContent: 'space-between',
|
|
19
19
|
flexShrink: 0,
|
|
20
|
-
// eslint-disable-next-line @
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
21
21
|
'[data-color-mode="light"] &, [data-color-mode="dark"] &': {
|
|
22
22
|
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
23
23
|
borderBottom: `1px solid ${"var(--ds-border, #091E4224)"}`,
|
|
@@ -47,7 +47,7 @@ const leftStyles = css({
|
|
|
47
47
|
height: 'inherit',
|
|
48
48
|
alignItems: 'center',
|
|
49
49
|
flexGrow: 1,
|
|
50
|
-
// eslint-disable-next-line @
|
|
50
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
51
51
|
'& > *': {
|
|
52
52
|
flexShrink: 0
|
|
53
53
|
}
|
|
@@ -56,7 +56,7 @@ const rightStyles = css({
|
|
|
56
56
|
display: 'flex',
|
|
57
57
|
alignItems: 'center',
|
|
58
58
|
flexShrink: 0,
|
|
59
|
-
// eslint-disable-next-line @
|
|
59
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
60
60
|
'& > *': {
|
|
61
61
|
marginRight: "var(--ds-space-050, 4px)",
|
|
62
62
|
flexShrink: 0
|
|
@@ -18,7 +18,7 @@ const containerStyles = css({
|
|
|
18
18
|
alignItems: 'center',
|
|
19
19
|
justifyContent: 'space-between',
|
|
20
20
|
flexShrink: 0,
|
|
21
|
-
// eslint-disable-next-line @
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
22
22
|
'[data-color-mode="light"] &, [data-color-mode="dark"] &': {
|
|
23
23
|
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
24
24
|
borderBottom: `1px solid ${"var(--ds-border, #091E4224)"}`,
|
|
@@ -48,7 +48,7 @@ const leftStyles = css({
|
|
|
48
48
|
height: 'inherit',
|
|
49
49
|
alignItems: 'center',
|
|
50
50
|
flexGrow: 1,
|
|
51
|
-
// eslint-disable-next-line @
|
|
51
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
52
52
|
'& > *': {
|
|
53
53
|
flexShrink: 0
|
|
54
54
|
}
|
|
@@ -57,7 +57,7 @@ const rightStyles = css({
|
|
|
57
57
|
display: 'flex',
|
|
58
58
|
alignItems: 'center',
|
|
59
59
|
flexShrink: 0,
|
|
60
|
-
// eslint-disable-next-line @
|
|
60
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
61
61
|
'& > *': {
|
|
62
62
|
marginRight: "var(--ds-space-050, 4px)",
|
|
63
63
|
flexShrink: 0
|
|
@@ -11,21 +11,21 @@ import { getCreateButtonTheme } from './styles';
|
|
|
11
11
|
const wrapperStyles = css({
|
|
12
12
|
display: 'flex',
|
|
13
13
|
alignItems: 'center',
|
|
14
|
-
// eslint-disable-next-line @
|
|
14
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
15
15
|
'& [data-hide-on-smallscreens]': {
|
|
16
|
-
// eslint-disable-next-line @
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
17
17
|
[`@media (max-width: ${CREATE_BREAKPOINT - 1}px)`]: {
|
|
18
18
|
display: 'none !important'
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
// eslint-disable-next-line @
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
22
22
|
'& [data-hide-on-largescreens]': {
|
|
23
|
-
// eslint-disable-next-line @
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
24
24
|
[`@media (min-width: ${CREATE_BREAKPOINT}px)`]: {
|
|
25
25
|
display: 'none !important'
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
-
// eslint-disable-next-line @
|
|
28
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
29
29
|
'&&': {
|
|
30
30
|
marginLeft: "var(--ds-space-150, 12px)"
|
|
31
31
|
}
|
|
@@ -13,7 +13,7 @@ const skeletonStyles = css({
|
|
|
13
13
|
opacity: 0.15
|
|
14
14
|
});
|
|
15
15
|
const mobileStyles = css({
|
|
16
|
-
// eslint-disable-next-line @
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
17
17
|
[`@media (max-width: ${CREATE_BREAKPOINT - 1}px)`]: {
|
|
18
18
|
display: 'none !important'
|
|
19
19
|
}
|
|
@@ -17,7 +17,7 @@ const buttonBaseStyles = css({
|
|
|
17
17
|
flexDirection: 'column'
|
|
18
18
|
});
|
|
19
19
|
const buttonHighlightedStyles = css({
|
|
20
|
-
// eslint-disable-next-line @
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
21
21
|
'&& > *': {
|
|
22
22
|
color: `var(${VAR_BUTTON_SELECTED_COLOR})`
|
|
23
23
|
},
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { jsx } from '@emotion/react';
|
|
5
5
|
import ChevronIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
6
|
+
import { Bleed, xcss } from '@atlaskit/primitives';
|
|
6
7
|
import { PrimaryButton } from '../PrimaryButton';
|
|
7
|
-
const chevronIconStyles =
|
|
8
|
-
marginRight: `calc(-1 * ${"var(--ds-space-100, 8px)"})`,
|
|
9
|
-
marginLeft: `calc(-1 * ${"var(--ds-space-100, 8px)"})`,
|
|
8
|
+
const chevronIconStyles = xcss({
|
|
10
9
|
opacity: 0.51
|
|
11
10
|
});
|
|
12
11
|
|
|
@@ -21,8 +20,9 @@ const chevronIconStyles = css({
|
|
|
21
20
|
*/
|
|
22
21
|
export const PrimaryDropdownButton = /*#__PURE__*/forwardRef((props, ref) => {
|
|
23
22
|
return jsx(PrimaryButton, _extends({
|
|
24
|
-
iconAfter: jsx(
|
|
25
|
-
|
|
23
|
+
iconAfter: jsx(Bleed, {
|
|
24
|
+
xcss: chevronIconStyles,
|
|
25
|
+
inline: "space.100"
|
|
26
26
|
}, jsx(ChevronIcon, {
|
|
27
27
|
label: ""
|
|
28
28
|
})),
|
|
@@ -14,7 +14,7 @@ const containerStyles = css({
|
|
|
14
14
|
flexBasis: 0,
|
|
15
15
|
flexGrow: 1,
|
|
16
16
|
flexShrink: 0,
|
|
17
|
-
// eslint-disable-next-line @
|
|
17
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
18
18
|
'& > *': {
|
|
19
19
|
margin: `0 ${"var(--ds-space-050, 4px)"}`,
|
|
20
20
|
flexShrink: 0
|
|
@@ -17,7 +17,7 @@ const basePrimaryContainerStyles = css({
|
|
|
17
17
|
gap: "var(--ds-space-100, 8px)"
|
|
18
18
|
});
|
|
19
19
|
const smallContainerStyles = css({
|
|
20
|
-
// eslint-disable-next-line @
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
21
21
|
[UNSAFE_media.below.sm]: {
|
|
22
22
|
display: 'flex'
|
|
23
23
|
}
|
|
@@ -20,7 +20,7 @@ const productLogoStyles = css({
|
|
|
20
20
|
// Ensure anything passed into
|
|
21
21
|
// productHome is aligned correctly
|
|
22
22
|
display: 'flex',
|
|
23
|
-
// eslint-disable-next-line @
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
24
24
|
[`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
|
|
25
25
|
display: 'none'
|
|
26
26
|
}
|
|
@@ -32,7 +32,7 @@ const productIconStyles = css({
|
|
|
32
32
|
// Ensure anything passed into
|
|
33
33
|
// productHome is aligned correctly
|
|
34
34
|
display: 'flex',
|
|
35
|
-
// eslint-disable-next-line @
|
|
35
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
36
36
|
[`@media (min-width: ${PRODUCT_HOME_BREAKPOINT}px)`]: {
|
|
37
37
|
display: 'none'
|
|
38
38
|
}
|
|
@@ -67,15 +67,15 @@ const productHomeButtonStyles = css({
|
|
|
67
67
|
color: `var(${VAR_PRODUCT_HOME_COLOR_FOCUS})`,
|
|
68
68
|
outline: `2px solid ${`var(--ds-border-focused, ${B200})`}`
|
|
69
69
|
},
|
|
70
|
-
// eslint-disable-next-line @
|
|
70
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
71
71
|
'div&': {
|
|
72
72
|
pointerEvents: 'none'
|
|
73
73
|
},
|
|
74
|
-
// eslint-disable-next-line @
|
|
74
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
75
75
|
[`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
|
|
76
76
|
margin: `0 ${"var(--ds-space-100, 8px)"}`
|
|
77
77
|
},
|
|
78
|
-
// eslint-disable-next-line @
|
|
78
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
79
79
|
[`@media (min-width: ${PRODUCT_HOME_BREAKPOINT}px)`]: {
|
|
80
80
|
margin: `0 ${"var(--ds-space-200, 16px)"}`
|
|
81
81
|
}
|
|
@@ -88,7 +88,7 @@ const siteTitleStyles = css({
|
|
|
88
88
|
alignItems: 'center'
|
|
89
89
|
});
|
|
90
90
|
const hideSiteTitleStyles = css({
|
|
91
|
-
// eslint-disable-next-line @
|
|
91
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
92
92
|
[`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
|
|
93
93
|
display: 'none'
|
|
94
94
|
}
|
|
@@ -46,15 +46,15 @@ const productHomeButtonStyles = css({
|
|
|
46
46
|
color: `var(${VAR_PRODUCT_HOME_COLOR_FOCUS})`,
|
|
47
47
|
outline: `${"var(--ds-border-width-outline, 2px)"} solid ${"var(--ds-border-focused, #4C9AFF)"}`
|
|
48
48
|
},
|
|
49
|
-
// eslint-disable-next-line @
|
|
49
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
50
50
|
'div&': {
|
|
51
51
|
pointerEvents: 'none'
|
|
52
52
|
},
|
|
53
|
-
// eslint-disable-next-line @
|
|
53
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
54
54
|
[`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
|
|
55
55
|
margin: `0 ${"var(--ds-space-100, 8px)"}`
|
|
56
56
|
},
|
|
57
|
-
// eslint-disable-next-line @
|
|
57
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
58
58
|
[`@media (min-width: ${PRODUCT_HOME_BREAKPOINT}px)`]: {
|
|
59
59
|
margin: `0 ${"var(--ds-space-200, 16px)"}`
|
|
60
60
|
}
|
|
@@ -64,15 +64,15 @@ const productLogoStyles = css({
|
|
|
64
64
|
// productHome is aligned correctly
|
|
65
65
|
display: 'flex',
|
|
66
66
|
maxWidth: `var(${VAR_LOGO_MAX_WIDTH})`,
|
|
67
|
-
// eslint-disable-next-line @
|
|
67
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
68
68
|
'& > *': {
|
|
69
69
|
maxHeight: 24
|
|
70
70
|
},
|
|
71
|
-
// eslint-disable-next-line @
|
|
71
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
72
72
|
'& > span > svg': {
|
|
73
73
|
maxWidth: `var(${VAR_LOGO_MAX_WIDTH})`
|
|
74
74
|
},
|
|
75
|
-
// eslint-disable-next-line @
|
|
75
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
76
76
|
[`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
|
|
77
77
|
display: 'none'
|
|
78
78
|
}
|
|
@@ -84,11 +84,11 @@ const productIconStyles = css({
|
|
|
84
84
|
// Ensure anything passed into
|
|
85
85
|
// productHome is aligned correctly
|
|
86
86
|
display: 'flex',
|
|
87
|
-
// eslint-disable-next-line @
|
|
87
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
88
88
|
'& > *': {
|
|
89
89
|
maxHeight: 24
|
|
90
90
|
},
|
|
91
|
-
// eslint-disable-next-line @
|
|
91
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
92
92
|
[`@media (min-width: ${PRODUCT_HOME_BREAKPOINT}px)`]: {
|
|
93
93
|
display: 'none'
|
|
94
94
|
}
|
|
@@ -101,7 +101,7 @@ const siteTitleStyles = css({
|
|
|
101
101
|
alignItems: 'center'
|
|
102
102
|
});
|
|
103
103
|
const hideSiteTitleStyles = css({
|
|
104
|
-
// eslint-disable-next-line @
|
|
104
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
105
105
|
[`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
|
|
106
106
|
display: 'none'
|
|
107
107
|
}
|
|
@@ -45,15 +45,15 @@ const productHomeButtonStyles = css({
|
|
|
45
45
|
boxShadow: `var(${VAR_PRODUCT_HOME_BOX_SHADOW_HOVER})`,
|
|
46
46
|
color: `var(${VAR_PRODUCT_HOME_COLOR_HOVER})`
|
|
47
47
|
},
|
|
48
|
-
// eslint-disable-next-line @
|
|
48
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
49
49
|
'div&': {
|
|
50
50
|
pointerEvents: 'none'
|
|
51
51
|
},
|
|
52
|
-
// eslint-disable-next-line @
|
|
52
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
53
53
|
[`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
|
|
54
54
|
margin: `0 ${"var(--ds-space-100, 8px)"}`
|
|
55
55
|
},
|
|
56
|
-
// eslint-disable-next-line @
|
|
56
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
57
57
|
[`@media (min-width: ${PRODUCT_HOME_BREAKPOINT}px)`]: {
|
|
58
58
|
margin: `0 ${"var(--ds-space-200, 16px)"}`
|
|
59
59
|
}
|
|
@@ -65,11 +65,11 @@ const productLogoStyles = css({
|
|
|
65
65
|
height: 24,
|
|
66
66
|
maxHeight: 28,
|
|
67
67
|
opacity: 0.15,
|
|
68
|
-
// eslint-disable-next-line @
|
|
68
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
69
69
|
'& > *': {
|
|
70
70
|
maxHeight: 24
|
|
71
71
|
},
|
|
72
|
-
// eslint-disable-next-line @
|
|
72
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
73
73
|
[`@media (max-width: ${PRODUCT_HOME_BREAKPOINT - 0.1}px)`]: {
|
|
74
74
|
display: 'none'
|
|
75
75
|
}
|
|
@@ -80,11 +80,11 @@ const productIconStyles = css({
|
|
|
80
80
|
height: 28,
|
|
81
81
|
borderRadius: "var(--ds-border-radius-circle, 50%)",
|
|
82
82
|
opacity: 0.15,
|
|
83
|
-
// eslint-disable-next-line @
|
|
83
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
84
84
|
'& > *': {
|
|
85
85
|
maxHeight: 24
|
|
86
86
|
},
|
|
87
|
-
// eslint-disable-next-line @
|
|
87
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
88
88
|
[`@media (min-width: ${PRODUCT_HOME_BREAKPOINT}px)`]: {
|
|
89
89
|
display: 'none'
|
|
90
90
|
}
|
|
@@ -10,7 +10,7 @@ const searchInputContainerStyles = css({
|
|
|
10
10
|
marginRight: "var(--ds-space-100, 8px)",
|
|
11
11
|
marginLeft: "var(--ds-space-250, 20px)",
|
|
12
12
|
position: 'relative',
|
|
13
|
-
// eslint-disable-next-line @
|
|
13
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
14
14
|
[`@media (max-width: ${CREATE_BREAKPOINT - 1}px)`]: {
|
|
15
15
|
display: 'none !important'
|
|
16
16
|
}
|
|
@@ -48,7 +48,7 @@ const searchInputStyles = css({
|
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
const searchIconStyles = css({
|
|
51
|
-
// eslint-disable-next-line @
|
|
51
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
52
52
|
[`@media (min-width: ${CREATE_BREAKPOINT}px)`]: {
|
|
53
53
|
display: 'none !important'
|
|
54
54
|
}
|
|
@@ -8,7 +8,7 @@ const searchInputContainerStyles = css({
|
|
|
8
8
|
marginRight: "var(--ds-space-100, 8px)",
|
|
9
9
|
marginLeft: "var(--ds-space-250, 20px)",
|
|
10
10
|
position: 'relative',
|
|
11
|
-
// eslint-disable-next-line @
|
|
11
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
12
12
|
[`@media (max-width: ${CREATE_BREAKPOINT - 1}px)`]: {
|
|
13
13
|
display: 'none !important'
|
|
14
14
|
}
|
|
@@ -22,7 +22,7 @@ const searchInputSkeletonStyles = css({
|
|
|
22
22
|
opacity: 0.15
|
|
23
23
|
});
|
|
24
24
|
const searchIconStyles = css({
|
|
25
|
-
// eslint-disable-next-line @
|
|
25
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
26
26
|
[`@media (min-width: ${CREATE_BREAKPOINT}px)`]: {
|
|
27
27
|
display: 'none !important'
|
|
28
28
|
}
|
|
@@ -16,7 +16,7 @@ const skeletonCreateButtonStyles = css({
|
|
|
16
16
|
border: 0,
|
|
17
17
|
outline: 0
|
|
18
18
|
},
|
|
19
|
-
// eslint-disable-next-line @
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
20
20
|
'&&': {
|
|
21
21
|
marginLeft: "var(--ds-space-150, 12px)"
|
|
22
22
|
}
|
|
@@ -16,11 +16,11 @@ const skeletonIconButtonStyles = css({
|
|
|
16
16
|
'&:only-of-type': {
|
|
17
17
|
marginRight: 0
|
|
18
18
|
},
|
|
19
|
-
// eslint-disable-next-line @
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
20
20
|
'& > span': {
|
|
21
21
|
lineHeight: 'normal'
|
|
22
22
|
},
|
|
23
|
-
// eslint-disable-next-line @
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
24
24
|
'& > img': {
|
|
25
25
|
width: 24,
|
|
26
26
|
height: 24,
|
package/dist/es2019/version.json
CHANGED
|
@@ -17,7 +17,7 @@ var containerStyles = css({
|
|
|
17
17
|
alignItems: 'center',
|
|
18
18
|
justifyContent: 'space-between',
|
|
19
19
|
flexShrink: 0,
|
|
20
|
-
// eslint-disable-next-line @
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
21
21
|
'[data-color-mode="light"] &, [data-color-mode="dark"] &': {
|
|
22
22
|
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
23
23
|
borderBottom: "1px solid ".concat("var(--ds-border, #091E4224)"),
|
|
@@ -47,7 +47,7 @@ var leftStyles = css({
|
|
|
47
47
|
height: 'inherit',
|
|
48
48
|
alignItems: 'center',
|
|
49
49
|
flexGrow: 1,
|
|
50
|
-
// eslint-disable-next-line @
|
|
50
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
51
51
|
'& > *': {
|
|
52
52
|
flexShrink: 0
|
|
53
53
|
}
|
|
@@ -56,7 +56,7 @@ var rightStyles = css({
|
|
|
56
56
|
display: 'flex',
|
|
57
57
|
alignItems: 'center',
|
|
58
58
|
flexShrink: 0,
|
|
59
|
-
// eslint-disable-next-line @
|
|
59
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
60
60
|
'& > *': {
|
|
61
61
|
marginRight: "var(--ds-space-050, 4px)",
|
|
62
62
|
flexShrink: 0
|
|
@@ -18,7 +18,7 @@ var containerStyles = css({
|
|
|
18
18
|
alignItems: 'center',
|
|
19
19
|
justifyContent: 'space-between',
|
|
20
20
|
flexShrink: 0,
|
|
21
|
-
// eslint-disable-next-line @
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
22
22
|
'[data-color-mode="light"] &, [data-color-mode="dark"] &': {
|
|
23
23
|
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
24
24
|
borderBottom: "1px solid ".concat("var(--ds-border, #091E4224)"),
|
|
@@ -48,7 +48,7 @@ var leftStyles = css({
|
|
|
48
48
|
height: 'inherit',
|
|
49
49
|
alignItems: 'center',
|
|
50
50
|
flexGrow: 1,
|
|
51
|
-
// eslint-disable-next-line @
|
|
51
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
52
52
|
'& > *': {
|
|
53
53
|
flexShrink: 0
|
|
54
54
|
}
|
|
@@ -57,7 +57,7 @@ var rightStyles = css({
|
|
|
57
57
|
display: 'flex',
|
|
58
58
|
alignItems: 'center',
|
|
59
59
|
flexShrink: 0,
|
|
60
|
-
// eslint-disable-next-line @
|
|
60
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
61
61
|
'& > *': {
|
|
62
62
|
marginRight: "var(--ds-space-050, 4px)",
|
|
63
63
|
flexShrink: 0
|
|
@@ -12,15 +12,15 @@ import { getCreateButtonTheme } from './styles';
|
|
|
12
12
|
var wrapperStyles = css({
|
|
13
13
|
display: 'flex',
|
|
14
14
|
alignItems: 'center',
|
|
15
|
-
// eslint-disable-next-line @
|
|
15
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
16
16
|
'& [data-hide-on-smallscreens]': _defineProperty({}, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
|
|
17
17
|
display: 'none !important'
|
|
18
18
|
}),
|
|
19
|
-
// eslint-disable-next-line @
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
20
20
|
'& [data-hide-on-largescreens]': _defineProperty({}, "@media (min-width: ".concat(CREATE_BREAKPOINT, "px)"), {
|
|
21
21
|
display: 'none !important'
|
|
22
22
|
}),
|
|
23
|
-
// eslint-disable-next-line @
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
24
24
|
'&&': {
|
|
25
25
|
marginLeft: "var(--ds-space-150, 12px)"
|
|
26
26
|
}
|
|
@@ -20,7 +20,7 @@ var buttonBaseStyles = css({
|
|
|
20
20
|
flexDirection: 'column'
|
|
21
21
|
});
|
|
22
22
|
var buttonHighlightedStyles = css({
|
|
23
|
-
// eslint-disable-next-line @
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
24
24
|
'&& > *': {
|
|
25
25
|
color: "var(".concat(VAR_BUTTON_SELECTED_COLOR, ")")
|
|
26
26
|
},
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { jsx } from '@emotion/react';
|
|
5
5
|
import ChevronIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
6
|
+
import { Bleed, xcss } from '@atlaskit/primitives';
|
|
6
7
|
import { PrimaryButton } from '../PrimaryButton';
|
|
7
|
-
var chevronIconStyles =
|
|
8
|
-
marginRight: "calc(-1 * ".concat("var(--ds-space-100, 8px)", ")"),
|
|
9
|
-
marginLeft: "calc(-1 * ".concat("var(--ds-space-100, 8px)", ")"),
|
|
8
|
+
var chevronIconStyles = xcss({
|
|
10
9
|
opacity: 0.51
|
|
11
10
|
});
|
|
12
11
|
|
|
@@ -21,8 +20,9 @@ var chevronIconStyles = css({
|
|
|
21
20
|
*/
|
|
22
21
|
export var PrimaryDropdownButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
23
22
|
return jsx(PrimaryButton, _extends({
|
|
24
|
-
iconAfter: jsx(
|
|
25
|
-
|
|
23
|
+
iconAfter: jsx(Bleed, {
|
|
24
|
+
xcss: chevronIconStyles,
|
|
25
|
+
inline: "space.100"
|
|
26
26
|
}, jsx(ChevronIcon, {
|
|
27
27
|
label: ""
|
|
28
28
|
})),
|
|
@@ -15,7 +15,7 @@ var containerStyles = css({
|
|
|
15
15
|
flexBasis: 0,
|
|
16
16
|
flexGrow: 1,
|
|
17
17
|
flexShrink: 0,
|
|
18
|
-
// eslint-disable-next-line @
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
19
19
|
'& > *': {
|
|
20
20
|
margin: "0 ".concat("var(--ds-space-050, 4px)"),
|
|
21
21
|
flexShrink: 0
|
|
@@ -67,7 +67,7 @@ var productHomeButtonStyles = css((_css3 = {
|
|
|
67
67
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
|
|
68
68
|
outline: "2px solid ".concat("var(--ds-border-focused, ".concat(B200, ")"))
|
|
69
69
|
},
|
|
70
|
-
// eslint-disable-next-line @
|
|
70
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
71
71
|
'div&': {
|
|
72
72
|
pointerEvents: 'none'
|
|
73
73
|
}
|
|
@@ -50,7 +50,7 @@ var productHomeButtonStyles = css((_css = {
|
|
|
50
50
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
|
|
51
51
|
outline: "var(--ds-border-width-outline, 2px)".concat(" solid ", "var(--ds-border-focused, #4C9AFF)")
|
|
52
52
|
},
|
|
53
|
-
// eslint-disable-next-line @
|
|
53
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
54
54
|
'div&': {
|
|
55
55
|
pointerEvents: 'none'
|
|
56
56
|
}
|
|
@@ -64,11 +64,11 @@ var productLogoStyles = css(_defineProperty({
|
|
|
64
64
|
// productHome is aligned correctly
|
|
65
65
|
display: 'flex',
|
|
66
66
|
maxWidth: "var(".concat(VAR_LOGO_MAX_WIDTH, ")"),
|
|
67
|
-
// eslint-disable-next-line @
|
|
67
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
68
68
|
'& > *': {
|
|
69
69
|
maxHeight: 24
|
|
70
70
|
},
|
|
71
|
-
// eslint-disable-next-line @
|
|
71
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
72
72
|
'& > span > svg': {
|
|
73
73
|
maxWidth: "var(".concat(VAR_LOGO_MAX_WIDTH, ")")
|
|
74
74
|
}
|
|
@@ -82,7 +82,7 @@ var productIconStyles = css(_defineProperty({
|
|
|
82
82
|
// Ensure anything passed into
|
|
83
83
|
// productHome is aligned correctly
|
|
84
84
|
display: 'flex',
|
|
85
|
-
// eslint-disable-next-line @
|
|
85
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
86
86
|
'& > *': {
|
|
87
87
|
maxHeight: 24
|
|
88
88
|
}
|
|
@@ -47,7 +47,7 @@ var productHomeButtonStyles = css((_css = {
|
|
|
47
47
|
boxShadow: "var(".concat(VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, ")"),
|
|
48
48
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_HOVER, ")")
|
|
49
49
|
},
|
|
50
|
-
// eslint-disable-next-line @
|
|
50
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
51
51
|
'div&': {
|
|
52
52
|
pointerEvents: 'none'
|
|
53
53
|
}
|
|
@@ -63,7 +63,7 @@ var productLogoStyles = css(_defineProperty({
|
|
|
63
63
|
height: 24,
|
|
64
64
|
maxHeight: 28,
|
|
65
65
|
opacity: 0.15,
|
|
66
|
-
// eslint-disable-next-line @
|
|
66
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
67
67
|
'& > *': {
|
|
68
68
|
maxHeight: 24
|
|
69
69
|
}
|
|
@@ -76,7 +76,7 @@ var productIconStyles = css(_defineProperty({
|
|
|
76
76
|
height: 28,
|
|
77
77
|
borderRadius: "var(--ds-border-radius-circle, 50%)",
|
|
78
78
|
opacity: 0.15,
|
|
79
|
-
// eslint-disable-next-line @
|
|
79
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
80
80
|
'& > *': {
|
|
81
81
|
maxHeight: 24
|
|
82
82
|
}
|
|
@@ -16,7 +16,7 @@ var skeletonCreateButtonStyles = css({
|
|
|
16
16
|
border: 0,
|
|
17
17
|
outline: 0
|
|
18
18
|
},
|
|
19
|
-
// eslint-disable-next-line @
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
20
20
|
'&&': {
|
|
21
21
|
marginLeft: "var(--ds-space-150, 12px)"
|
|
22
22
|
}
|
|
@@ -16,11 +16,11 @@ var skeletonIconButtonStyles = css({
|
|
|
16
16
|
'&:only-of-type': {
|
|
17
17
|
marginRight: 0
|
|
18
18
|
},
|
|
19
|
-
// eslint-disable-next-line @
|
|
19
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
20
20
|
'& > span': {
|
|
21
21
|
lineHeight: 'normal'
|
|
22
22
|
},
|
|
23
|
-
// eslint-disable-next-line @
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
24
24
|
'& > img': {
|
|
25
25
|
width: 24,
|
|
26
26
|
height: 24,
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/atlassian-navigation"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
/// <reference types="lodash" />
|
|
8
|
+
/// <reference types="react" />
|
|
9
|
+
|
|
10
|
+
import { AllHTMLAttributes } from 'react';
|
|
11
|
+
import { ComponentType } from 'react';
|
|
12
|
+
import { CSSObject } from '@emotion/react';
|
|
13
|
+
import { CustomThemeButtonProps } from '@atlaskit/button/types';
|
|
14
|
+
import { CustomThemeButtonProps as CustomThemeButtonProps_2 } from '@atlaskit/button/custom-theme-button';
|
|
15
|
+
import { ElementType } from 'react';
|
|
16
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
17
|
+
import { jsx } from '@emotion/react';
|
|
18
|
+
import { LogoProps } from '@atlaskit/logo';
|
|
19
|
+
import { MouseEvent as MouseEvent_2 } from 'react';
|
|
20
|
+
import noop from '@atlaskit/ds-lib/noop';
|
|
21
|
+
import { Provider } from 'react';
|
|
22
|
+
import { default as React_2 } from 'react';
|
|
23
|
+
import { ReactChild } from 'react';
|
|
24
|
+
import { ReactNode } from 'react';
|
|
25
|
+
import { ReactNodeArray } from 'react';
|
|
26
|
+
import { RefAttributes } from 'react';
|
|
27
|
+
import { ThemeProps } from '@atlaskit/button/custom-theme-button';
|
|
28
|
+
import { ThemeProps as ThemeProps_2 } from '@atlaskit/button';
|
|
29
|
+
import { ThemeTokens } from '@atlaskit/button/custom-theme-button';
|
|
30
|
+
import { ThemeTokens as ThemeTokens_2 } from '@atlaskit/button';
|
|
31
|
+
|
|
32
|
+
// @public
|
|
33
|
+
export const AppSwitcher: React_2.ForwardRefExoticComponent<BaseIconButtonProps & React_2.RefAttributes<any>>;
|
|
34
|
+
|
|
35
|
+
// @public (undocumented)
|
|
36
|
+
export type AppSwitcherProps = BaseIconButtonProps;
|
|
37
|
+
|
|
38
|
+
// @public
|
|
39
|
+
export const AtlassianNavigation: (props: AtlassianNavigationProps) => jsx.JSX.Element;
|
|
40
|
+
|
|
41
|
+
// @public (undocumented)
|
|
42
|
+
export interface AtlassianNavigationProps {
|
|
43
|
+
label: string;
|
|
44
|
+
moreLabel?: ReactNode;
|
|
45
|
+
primaryItems: ReactNodeArray;
|
|
46
|
+
renderAppSwitcher?: React_2.ComponentType<{}>;
|
|
47
|
+
renderCreate?: React_2.ComponentType<{}>;
|
|
48
|
+
renderHelp?: React_2.ComponentType<{}>;
|
|
49
|
+
renderNotifications?: React_2.ComponentType<{}>;
|
|
50
|
+
renderProductHome: React_2.ComponentType<{}>;
|
|
51
|
+
renderProfile?: React_2.ComponentType<{}>;
|
|
52
|
+
renderSearch?: React_2.ComponentType<{}>;
|
|
53
|
+
renderSettings?: React_2.ComponentType<{}>;
|
|
54
|
+
renderSignIn?: React_2.ComponentType<{}>;
|
|
55
|
+
testId?: string;
|
|
56
|
+
theme?: NavigationTheme;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// @public (undocumented)
|
|
60
|
+
export const atlassianTheme: NavigationTheme;
|
|
61
|
+
|
|
62
|
+
// @public
|
|
63
|
+
interface BaseIconButtonProps {
|
|
64
|
+
component?: CustomThemeButtonProps['component'];
|
|
65
|
+
href?: string;
|
|
66
|
+
id?: string;
|
|
67
|
+
isDisabled?: boolean;
|
|
68
|
+
isSelected?: boolean;
|
|
69
|
+
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
70
|
+
onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: any) => void;
|
|
71
|
+
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
72
|
+
onMouseDown?: React.MouseEventHandler<HTMLElement>;
|
|
73
|
+
onMouseEnter?: React.MouseEventHandler<HTMLElement>;
|
|
74
|
+
onMouseLeave?: React.MouseEventHandler<HTMLElement>;
|
|
75
|
+
onMouseUp?: React.MouseEventHandler<HTMLElement>;
|
|
76
|
+
target?: string;
|
|
77
|
+
testId?: string;
|
|
78
|
+
tooltip: React.ReactNode;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// @public (undocumented)
|
|
82
|
+
type ButtonCSSContext = {
|
|
83
|
+
default: ButtonCSSProperties;
|
|
84
|
+
hover: ButtonCSSProperties;
|
|
85
|
+
focus: ButtonCSSProperties;
|
|
86
|
+
active: ButtonCSSProperties;
|
|
87
|
+
selected: ButtonCSSProperties;
|
|
88
|
+
selectedHover?: ButtonCSSProperties;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
// @public (undocumented)
|
|
92
|
+
type ButtonCSSProperties = CSSProperties & {
|
|
93
|
+
boxShadow: string;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
// @public (undocumented)
|
|
97
|
+
export type Colors = {
|
|
98
|
+
backgroundColor: string;
|
|
99
|
+
color: string;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
// @public
|
|
103
|
+
export const Create: ({ onClick, href, text, buttonTooltip, iconButtonTooltip, testId, }: CreateProps) => jsx.JSX.Element;
|
|
104
|
+
|
|
105
|
+
// @public (undocumented)
|
|
106
|
+
export type CreateCSS = ButtonCSSContext;
|
|
107
|
+
|
|
108
|
+
// @public (undocumented)
|
|
109
|
+
export interface CreateProps {
|
|
110
|
+
buttonTooltip?: React_2.ReactNode;
|
|
111
|
+
href?: string;
|
|
112
|
+
iconButtonTooltip?: React_2.ReactNode;
|
|
113
|
+
onClick?: (e: React_2.MouseEvent<HTMLElement>, analyticsEvent: any) => void;
|
|
114
|
+
testId?: string;
|
|
115
|
+
text: string;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// @public (undocumented)
|
|
119
|
+
type CSSProperties = CSSObject & {
|
|
120
|
+
backgroundColor: string;
|
|
121
|
+
color: string;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
// @public
|
|
125
|
+
export const CustomProductHome: (props: CustomProductHomeProps) => jsx.JSX.Element;
|
|
126
|
+
|
|
127
|
+
// @public (undocumented)
|
|
128
|
+
export interface CustomProductHomeProps {
|
|
129
|
+
href?: string;
|
|
130
|
+
iconAlt: string;
|
|
131
|
+
iconUrl: string;
|
|
132
|
+
logoAlt: string;
|
|
133
|
+
logoMaxWidth?: number;
|
|
134
|
+
logoUrl: string;
|
|
135
|
+
onClick?: (event: MouseEvent_2<HTMLElement>) => void;
|
|
136
|
+
onMouseDown?: (event: MouseEvent_2<HTMLElement>) => void;
|
|
137
|
+
siteTitle?: string;
|
|
138
|
+
testId?: string;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// @public (undocumented)
|
|
142
|
+
export const generateTheme: (themeColors: GenerateThemeArgs) => NavigationTheme;
|
|
143
|
+
|
|
144
|
+
// @public (undocumented)
|
|
145
|
+
export type GenerateThemeArgs = {
|
|
146
|
+
name?: string;
|
|
147
|
+
backgroundColor: string;
|
|
148
|
+
highlightColor: string;
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
// @public
|
|
152
|
+
export const Help: React_2.ForwardRefExoticComponent<BaseIconButtonProps & {
|
|
153
|
+
badge?: React_2.ComponentType<{}> | undefined;
|
|
154
|
+
} & React_2.RefAttributes<any>>;
|
|
155
|
+
|
|
156
|
+
// @public (undocumented)
|
|
157
|
+
export type HelpProps = BaseIconButtonProps & {
|
|
158
|
+
badge?: ComponentType<{}>;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
// @public (undocumented)
|
|
162
|
+
export const HORIZONTAL_GLOBAL_NAV_HEIGHT = 56;
|
|
163
|
+
|
|
164
|
+
// @public
|
|
165
|
+
export const IconButton: React_2.ForwardRefExoticComponent<BaseIconButtonProps & {
|
|
166
|
+
icon: React_2.ReactChild | undefined;
|
|
167
|
+
theme?: ((current: (props: ThemeProps) => ThemeTokens, props: ThemeProps) => ThemeTokens) | undefined;
|
|
168
|
+
} & React_2.RefAttributes<HTMLElement>>;
|
|
169
|
+
|
|
170
|
+
// @public (undocumented)
|
|
171
|
+
export type IconButtonCSS = ButtonCSSContext;
|
|
172
|
+
|
|
173
|
+
// @public (undocumented)
|
|
174
|
+
export type IconButtonProps = BaseIconButtonProps & {
|
|
175
|
+
icon: CustomThemeButtonProps['iconBefore'];
|
|
176
|
+
theme?: CustomThemeButtonProps['theme'];
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
// @public (undocumented)
|
|
180
|
+
type LogoStyleProps = {
|
|
181
|
+
iconGradientStart?: string;
|
|
182
|
+
iconGradientStop?: string;
|
|
183
|
+
iconColor?: string;
|
|
184
|
+
textColor?: string;
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
// @public (undocumented)
|
|
188
|
+
export type Mode = {
|
|
189
|
+
create: CreateCSS;
|
|
190
|
+
iconButton: IconButtonCSS;
|
|
191
|
+
navigation: NavigationCSS;
|
|
192
|
+
primaryButton: PrimaryButtonCSS;
|
|
193
|
+
productHome: ProductHomeCSS;
|
|
194
|
+
search: SearchCSS;
|
|
195
|
+
skeleton: SkeletonCSS;
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
// @public (undocumented)
|
|
199
|
+
export type NavigationCSS = CSSProperties;
|
|
200
|
+
|
|
201
|
+
// @public (undocumented)
|
|
202
|
+
export type NavigationTheme = {
|
|
203
|
+
mode: Mode;
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
// @public
|
|
207
|
+
export const Notifications: React_2.ForwardRefExoticComponent<BaseIconButtonProps & {
|
|
208
|
+
badge: React_2.ComponentType<{}>;
|
|
209
|
+
} & React_2.RefAttributes<any>>;
|
|
210
|
+
|
|
211
|
+
// @public (undocumented)
|
|
212
|
+
export type NotificationsProps = BaseIconButtonProps & {
|
|
213
|
+
badge: ComponentType<{}>;
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
// @public
|
|
217
|
+
export const PrimaryButton: ForwardRefExoticComponent<Omit<CustomThemeButtonProps_2, "appearance" | "onClick"> & {
|
|
218
|
+
component?: ComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any> | undefined;
|
|
219
|
+
isHighlighted?: boolean | undefined;
|
|
220
|
+
testId?: string | undefined;
|
|
221
|
+
tooltip?: ReactNode;
|
|
222
|
+
onClick?: ((event: MouseEvent_2<HTMLElement, MouseEvent>, analyticsEvent: any) => void) | undefined;
|
|
223
|
+
} & RefAttributes<HTMLElement>>;
|
|
224
|
+
|
|
225
|
+
// @public (undocumented)
|
|
226
|
+
export type PrimaryButtonCSS = ButtonCSSContext;
|
|
227
|
+
|
|
228
|
+
// @public (undocumented)
|
|
229
|
+
export type PrimaryButtonProps = Omit<CustomThemeButtonProps, 'appearance' | 'onClick'> & {
|
|
230
|
+
component?: ComponentType<AllHTMLAttributes<HTMLElement>> | ElementType<any>;
|
|
231
|
+
isHighlighted?: boolean;
|
|
232
|
+
testId?: string;
|
|
233
|
+
tooltip?: React.ReactNode;
|
|
234
|
+
onClick?: (event: React.MouseEvent<HTMLElement>, analyticsEvent: any) => void;
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
// @public
|
|
238
|
+
export const PrimaryDropdownButton: ForwardRefExoticComponent<Omit<PrimaryButtonProps, "iconAfter"> & {
|
|
239
|
+
isHighlighted?: boolean | undefined;
|
|
240
|
+
testId?: string | undefined;
|
|
241
|
+
tooltip?: ReactNode;
|
|
242
|
+
} & RefAttributes<HTMLElement>>;
|
|
243
|
+
|
|
244
|
+
// @public (undocumented)
|
|
245
|
+
export type PrimaryDropdownButtonProps = Omit<PrimaryButtonProps, 'iconAfter'> & {
|
|
246
|
+
isHighlighted?: boolean;
|
|
247
|
+
testId?: string;
|
|
248
|
+
tooltip?: React.ReactNode;
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
// @public
|
|
252
|
+
export const ProductHome: ({ icon: Icon, logo: Logo, siteTitle, onClick, href, onMouseDown, testId, logoMaxWidth, ...rest }: ProductHomeProps) => jsx.JSX.Element;
|
|
253
|
+
|
|
254
|
+
// @public (undocumented)
|
|
255
|
+
type ProductHomeCSS = CSSProperties & LogoStyleProps;
|
|
256
|
+
|
|
257
|
+
// @public (undocumented)
|
|
258
|
+
export interface ProductHomeProps {
|
|
259
|
+
href?: string;
|
|
260
|
+
icon: ComponentType<Partial<LogoProps>>;
|
|
261
|
+
logo: ComponentType<Partial<LogoProps>>;
|
|
262
|
+
logoMaxWidth?: number;
|
|
263
|
+
onClick?: (event: MouseEvent_2<HTMLElement>) => void;
|
|
264
|
+
onMouseDown?: (event: MouseEvent_2<HTMLElement>) => void;
|
|
265
|
+
siteTitle?: string;
|
|
266
|
+
testId?: string;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
// @public
|
|
270
|
+
export const Profile: ForwardRefExoticComponent<BaseIconButtonProps & {
|
|
271
|
+
icon: ReactChild | undefined;
|
|
272
|
+
theme?: ((current: (props: ThemeProps_2) => ThemeTokens_2, props: ThemeProps_2) => ThemeTokens_2) | undefined;
|
|
273
|
+
} & RefAttributes<HTMLElement>>;
|
|
274
|
+
|
|
275
|
+
// @public (undocumented)
|
|
276
|
+
export type ProfileProps = IconButtonProps;
|
|
277
|
+
|
|
278
|
+
// @public
|
|
279
|
+
export const Search: (props: SearchProps) => jsx.JSX.Element;
|
|
280
|
+
|
|
281
|
+
// @public (undocumented)
|
|
282
|
+
export type SearchCSS = {
|
|
283
|
+
default: CSSProperties;
|
|
284
|
+
focus: CSSObject;
|
|
285
|
+
hover: CSSObject;
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
// @public (undocumented)
|
|
289
|
+
export type SearchProps = BaseIconButtonProps & {
|
|
290
|
+
placeholder: string;
|
|
291
|
+
label: string;
|
|
292
|
+
value?: string;
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
// @public
|
|
296
|
+
export const Settings: React_2.ForwardRefExoticComponent<BaseIconButtonProps & React_2.RefAttributes<any>>;
|
|
297
|
+
|
|
298
|
+
// @public (undocumented)
|
|
299
|
+
export type SettingsProps = BaseIconButtonProps;
|
|
300
|
+
|
|
301
|
+
// @public
|
|
302
|
+
export const SignIn: (props: SignInProps) => JSX.Element;
|
|
303
|
+
|
|
304
|
+
// @public (undocumented)
|
|
305
|
+
export type SignInProps = BaseIconButtonProps;
|
|
306
|
+
|
|
307
|
+
// @public (undocumented)
|
|
308
|
+
export type SkeletonCSS = CSSObject & {
|
|
309
|
+
backgroundColor: string;
|
|
310
|
+
opacity: number;
|
|
311
|
+
};
|
|
312
|
+
|
|
313
|
+
// @public
|
|
314
|
+
export const ThemeProvider: Provider<NavigationTheme>;
|
|
315
|
+
|
|
316
|
+
// @public
|
|
317
|
+
export const useOverflowStatus: () => {
|
|
318
|
+
isVisible: boolean;
|
|
319
|
+
openOverflowMenu: typeof noop;
|
|
320
|
+
closeOverflowMenu: typeof noop;
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
// (No @packageDocumentation comment for this package)
|
|
324
|
+
|
|
325
|
+
```
|