@atlaskit/atlassian-navigation 2.3.5 → 2.4.1
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 +16 -0
- package/dist/cjs/common/constants.js +1 -5
- package/dist/cjs/components/AtlassianNavigation/index.js +4 -4
- package/dist/cjs/components/AtlassianNavigation/skeleton.js +7 -7
- package/dist/cjs/components/Create/index.js +1 -1
- package/dist/cjs/components/Create/skeleton.js +2 -2
- package/dist/cjs/components/IconButton/skeleton.js +3 -4
- package/dist/cjs/components/PrimaryButton/index.js +3 -3
- package/dist/cjs/components/PrimaryButton/skeleton.js +4 -4
- package/dist/cjs/components/PrimaryItemsContainer/index.js +1 -2
- package/dist/cjs/components/PrimaryItemsContainer/skeleton.js +2 -3
- package/dist/cjs/components/ProductHome/custom-product-home.js +9 -9
- package/dist/cjs/components/ProductHome/product-home.js +9 -9
- package/dist/cjs/components/ProductHome/skeleton.js +8 -7
- package/dist/cjs/components/Profile/skeleton.js +1 -2
- package/dist/cjs/components/Search/index.js +4 -3
- package/dist/cjs/components/Search/skeleton.js +4 -4
- package/dist/cjs/components/SignIn/skeleton.js +1 -2
- package/dist/cjs/components/SkeletonPrimaryButton/index.js +1 -1
- package/dist/cjs/theme/default-theme.js +5 -5
- package/dist/cjs/theme/theme-generator.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/common/constants.js +1 -3
- package/dist/es2019/components/AtlassianNavigation/index.js +5 -5
- package/dist/es2019/components/AtlassianNavigation/skeleton.js +8 -8
- package/dist/es2019/components/Create/index.js +2 -2
- package/dist/es2019/components/Create/skeleton.js +3 -3
- package/dist/es2019/components/IconButton/skeleton.js +2 -3
- package/dist/es2019/components/PrimaryButton/index.js +2 -3
- package/dist/es2019/components/PrimaryButton/skeleton.js +3 -3
- package/dist/es2019/components/PrimaryItemsContainer/index.js +1 -2
- package/dist/es2019/components/PrimaryItemsContainer/skeleton.js +2 -3
- package/dist/es2019/components/ProductHome/custom-product-home.js +9 -10
- package/dist/es2019/components/ProductHome/product-home.js +9 -10
- package/dist/es2019/components/ProductHome/skeleton.js +8 -8
- package/dist/es2019/components/Profile/skeleton.js +1 -2
- package/dist/es2019/components/Search/index.js +4 -4
- package/dist/es2019/components/Search/skeleton.js +5 -5
- package/dist/es2019/components/SignIn/skeleton.js +1 -2
- package/dist/es2019/theme/default-theme.js +5 -5
- package/dist/es2019/theme/theme-generator.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/common/constants.js +1 -3
- package/dist/esm/components/AtlassianNavigation/index.js +5 -5
- package/dist/esm/components/AtlassianNavigation/skeleton.js +8 -8
- package/dist/esm/components/Create/index.js +2 -2
- package/dist/esm/components/Create/skeleton.js +3 -3
- package/dist/esm/components/IconButton/skeleton.js +2 -3
- package/dist/esm/components/PrimaryButton/index.js +2 -3
- package/dist/esm/components/PrimaryButton/skeleton.js +3 -3
- package/dist/esm/components/PrimaryItemsContainer/index.js +1 -2
- package/dist/esm/components/PrimaryItemsContainer/skeleton.js +2 -3
- package/dist/esm/components/ProductHome/custom-product-home.js +9 -10
- package/dist/esm/components/ProductHome/product-home.js +9 -10
- package/dist/esm/components/ProductHome/skeleton.js +8 -8
- package/dist/esm/components/Profile/skeleton.js +1 -2
- package/dist/esm/components/Search/index.js +4 -4
- package/dist/esm/components/Search/skeleton.js +5 -5
- package/dist/esm/components/SignIn/skeleton.js +1 -2
- package/dist/esm/theme/default-theme.js +5 -5
- package/dist/esm/theme/theme-generator.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/common/constants.d.ts +0 -2
- package/dist/types/theme/types.d.ts +1 -6
- package/package.json +8 -7
- package/report.api.md +1 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 2.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`f7f852b0a4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f7f852b0a4f) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
|
|
8
|
+
|
|
9
|
+
## 2.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`e3fa4437cf5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e3fa4437cf5) - [ux] Updates focus appearance of components using buttons and custom buttons. These states now use an offset outline which is consistent with other applications of focus in Atlassian components.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 2.3.5
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -3,12 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.varSearchHoverBackgroundColor = exports.varSearchFocusBorderColor = exports.varSearchColor = exports.varSearchBorderColor = exports.varSearchBackgroundColor = exports.
|
|
6
|
+
exports.varSearchHoverBackgroundColor = exports.varSearchFocusBorderColor = exports.varSearchColor = exports.varSearchBorderColor = exports.varSearchBackgroundColor = exports.fontSize = exports.PRODUCT_HOME_BREAKPOINT = exports.HORIZONTAL_GLOBAL_NAV_HEIGHT = exports.CREATE_BREAKPOINT = void 0;
|
|
7
7
|
var _constants = require("@atlaskit/theme/constants");
|
|
8
|
-
var gridSize = (0, _constants.gridSize)();
|
|
9
|
-
exports.gridSize = gridSize;
|
|
10
|
-
var buttonHeight = gridSize * 4;
|
|
11
|
-
exports.buttonHeight = buttonHeight;
|
|
12
8
|
var fontSize = (0, _constants.fontSize)();
|
|
13
9
|
exports.fontSize = fontSize;
|
|
14
10
|
var HORIZONTAL_GLOBAL_NAV_HEIGHT = 56;
|
|
@@ -16,8 +16,8 @@ var containerStyles = (0, _react.css)({
|
|
|
16
16
|
display: 'flex',
|
|
17
17
|
boxSizing: 'border-box',
|
|
18
18
|
height: _constants.HORIZONTAL_GLOBAL_NAV_HEIGHT,
|
|
19
|
-
paddingRight:
|
|
20
|
-
paddingLeft:
|
|
19
|
+
paddingRight: "var(--ds-space-150, 12px)",
|
|
20
|
+
paddingLeft: "var(--ds-space-150, 12px)",
|
|
21
21
|
position: 'relative',
|
|
22
22
|
alignItems: 'center',
|
|
23
23
|
justifyContent: 'space-between',
|
|
@@ -33,7 +33,7 @@ var containerStyles = (0, _react.css)({
|
|
|
33
33
|
},
|
|
34
34
|
// TODO: (DSP-2087) Remove the below once tokens have launched
|
|
35
35
|
'&::after': {
|
|
36
|
-
height:
|
|
36
|
+
height: "var(--ds-space-050, 4px)",
|
|
37
37
|
position: 'absolute',
|
|
38
38
|
top: '100%',
|
|
39
39
|
right: 0,
|
|
@@ -62,7 +62,7 @@ var rightStyles = (0, _react.css)({
|
|
|
62
62
|
flexShrink: 0,
|
|
63
63
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
64
64
|
'& > *': {
|
|
65
|
-
marginRight:
|
|
65
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
66
66
|
flexShrink: 0
|
|
67
67
|
}
|
|
68
68
|
});
|
|
@@ -19,8 +19,8 @@ var containerStyles = (0, _react.css)({
|
|
|
19
19
|
display: 'flex',
|
|
20
20
|
boxSizing: 'border-box',
|
|
21
21
|
height: _constants.HORIZONTAL_GLOBAL_NAV_HEIGHT,
|
|
22
|
-
paddingRight:
|
|
23
|
-
paddingLeft:
|
|
22
|
+
paddingRight: "var(--ds-space-150, 12px)",
|
|
23
|
+
paddingLeft: "var(--ds-space-150, 12px)",
|
|
24
24
|
position: 'relative',
|
|
25
25
|
alignItems: 'center',
|
|
26
26
|
justifyContent: 'space-between',
|
|
@@ -36,7 +36,7 @@ var containerStyles = (0, _react.css)({
|
|
|
36
36
|
},
|
|
37
37
|
// TODO: (DSP-2087) Remove the below once tokens have launched
|
|
38
38
|
'&::after': {
|
|
39
|
-
height:
|
|
39
|
+
height: "var(--ds-space-050, 4px)",
|
|
40
40
|
position: 'absolute',
|
|
41
41
|
top: '100%',
|
|
42
42
|
right: 0,
|
|
@@ -65,7 +65,7 @@ var rightStyles = (0, _react.css)({
|
|
|
65
65
|
flexShrink: 0,
|
|
66
66
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
67
67
|
'& > *': {
|
|
68
|
-
marginRight:
|
|
68
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
69
69
|
flexShrink: 0
|
|
70
70
|
}
|
|
71
71
|
});
|
|
@@ -106,7 +106,7 @@ var NavigationSkeleton = function NavigationSkeleton(_ref) {
|
|
|
106
106
|
}, (0, _react.jsx)(_skeleton.IconButtonSkeleton, {
|
|
107
107
|
marginLeft: 0,
|
|
108
108
|
marginRight: 5,
|
|
109
|
-
size:
|
|
109
|
+
size: 26
|
|
110
110
|
}), (0, _react.jsx)(_skeleton3.ProductHomeSkeleton, {
|
|
111
111
|
showSiteName: showSiteName
|
|
112
112
|
}), (0, _react.jsx)(_skeleton2.PrimaryItemsContainerSkeleton, {
|
|
@@ -119,8 +119,8 @@ var NavigationSkeleton = function NavigationSkeleton(_ref) {
|
|
|
119
119
|
return (0, _react.jsx)(_skeleton.IconButtonSkeleton, {
|
|
120
120
|
key: index,
|
|
121
121
|
marginLeft: 0,
|
|
122
|
-
marginRight:
|
|
123
|
-
size:
|
|
122
|
+
marginRight: 4,
|
|
123
|
+
size: 26
|
|
124
124
|
});
|
|
125
125
|
}), (0, _react.jsx)(_skeleton4.ProfileSkeleton, null))));
|
|
126
126
|
};
|
|
@@ -30,7 +30,7 @@ var wrapperStyles = (0, _react2.css)({
|
|
|
30
30
|
}),
|
|
31
31
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
32
32
|
'&&': {
|
|
33
|
-
marginLeft:
|
|
33
|
+
marginLeft: "var(--ds-space-150, 12px)"
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
var TooltipSwitch = function TooltipSwitch(_ref) {
|
|
@@ -13,7 +13,7 @@ var _theme = require("../../theme");
|
|
|
13
13
|
var _skeleton = require("../IconButton/skeleton");
|
|
14
14
|
/** @jsx jsx */
|
|
15
15
|
|
|
16
|
-
var buttonHeight =
|
|
16
|
+
var buttonHeight = "var(--ds-space-400, 32px)";
|
|
17
17
|
var skeletonStyles = (0, _react2.css)({
|
|
18
18
|
width: 68,
|
|
19
19
|
height: buttonHeight,
|
|
@@ -34,7 +34,7 @@ var CreateSkeleton = function CreateSkeleton() {
|
|
|
34
34
|
css: [skeletonStyles, mobileStyles]
|
|
35
35
|
}), (0, _react2.jsx)(_skeleton.IconButtonSkeleton, {
|
|
36
36
|
css: mobileStyles,
|
|
37
|
-
size:
|
|
37
|
+
size: 26
|
|
38
38
|
}));
|
|
39
39
|
};
|
|
40
40
|
exports.CreateSkeleton = CreateSkeleton;
|
|
@@ -7,11 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.IconButtonSkeleton = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
|
-
var _constants = require("../../common/constants");
|
|
11
10
|
var _theme = require("../../theme");
|
|
12
11
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
13
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
14
|
-
var buttonHeight =
|
|
12
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } /** @jsx jsx */
|
|
13
|
+
var buttonHeight = "var(--ds-space-400, 32px)";
|
|
15
14
|
var skeletonStyles = (0, _react.css)({
|
|
16
15
|
borderRadius: '50%',
|
|
17
16
|
opacity: 0.15
|
|
@@ -26,7 +25,7 @@ var IconButtonSkeleton = function IconButtonSkeleton(_ref) {
|
|
|
26
25
|
size = _ref.size;
|
|
27
26
|
var theme = (0, _theme.useTheme)();
|
|
28
27
|
var dynamicStyles = _objectSpread({
|
|
29
|
-
marginLeft: typeof marginLeft === 'number' ? marginLeft :
|
|
28
|
+
marginLeft: typeof marginLeft === 'number' ? marginLeft : "var(--ds-space-050, 4px)",
|
|
30
29
|
marginRight: typeof marginRight === 'number' ? marginRight : 0,
|
|
31
30
|
width: typeof size === 'number' ? size : buttonHeight,
|
|
32
31
|
height: typeof size === 'number' ? size : buttonHeight
|
|
@@ -12,10 +12,10 @@ var _react = require("react");
|
|
|
12
12
|
var _react2 = require("@emotion/react");
|
|
13
13
|
var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
|
|
14
14
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
15
|
-
var _constants = require("../../common/constants");
|
|
16
15
|
var _theme = require("../../theme");
|
|
17
16
|
var _styles = require("./styles");
|
|
18
17
|
var _excluded = ["children", "testId", "tooltip", "isSelected", "isHighlighted"];
|
|
18
|
+
/** @jsx jsx */
|
|
19
19
|
var VAR_BUTTON_SELECTED_COLOR = '--button-selected-color';
|
|
20
20
|
var VAR_BUTTON_SELECTED_BORDER_COLOR = '--button-selected-border-color';
|
|
21
21
|
var buttonBaseStyles = (0, _react2.css)({
|
|
@@ -34,9 +34,9 @@ var buttonHighlightedStyles = (0, _react2.css)({
|
|
|
34
34
|
'&:after': {
|
|
35
35
|
height: 3,
|
|
36
36
|
position: 'absolute',
|
|
37
|
-
right:
|
|
37
|
+
right: "var(--ds-space-050, 4px)",
|
|
38
38
|
bottom: 0,
|
|
39
|
-
left:
|
|
39
|
+
left: "var(--ds-space-050, 4px)",
|
|
40
40
|
backgroundColor: "var(".concat(VAR_BUTTON_SELECTED_BORDER_COLOR, ")"),
|
|
41
41
|
borderTopLeftRadius: 1,
|
|
42
42
|
borderTopRightRadius: 1,
|
|
@@ -5,16 +5,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.PrimaryButtonSkeleton = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
-
var _constants = require("../../common/constants");
|
|
9
8
|
var _theme = require("../../theme");
|
|
10
9
|
/** @jsx jsx */
|
|
11
10
|
|
|
12
|
-
var paddingAll =
|
|
11
|
+
var paddingAll = 4;
|
|
12
|
+
var buttonHeight = 32;
|
|
13
13
|
var skeletonStyles = (0, _react.css)({
|
|
14
14
|
display: 'inline-flex',
|
|
15
15
|
width: '68px',
|
|
16
|
-
height: "".concat(
|
|
17
|
-
borderRadius: "
|
|
16
|
+
height: "".concat(buttonHeight - paddingAll * 2.5, "px"),
|
|
17
|
+
borderRadius: "var(--ds-radius-100, 4px)",
|
|
18
18
|
opacity: 0.15
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -11,7 +11,6 @@ var _react = require("react");
|
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
12
|
var _popup = _interopRequireDefault(require("@atlaskit/popup"));
|
|
13
13
|
var _widthDetector = require("@atlaskit/width-detector");
|
|
14
|
-
var _constants = require("../../common/constants");
|
|
15
14
|
var _overflow = require("../../controllers/overflow");
|
|
16
15
|
var _PrimaryDropdownButton = require("../PrimaryDropdownButton");
|
|
17
16
|
/** @jsx jsx */
|
|
@@ -26,7 +25,7 @@ var containerStyles = (0, _react2.css)({
|
|
|
26
25
|
flexShrink: 0,
|
|
27
26
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
28
27
|
'& > *': {
|
|
29
|
-
margin: "0 ".concat(
|
|
28
|
+
margin: "0 ".concat("var(--ds-space-050, 4px)"),
|
|
30
29
|
flexShrink: 0
|
|
31
30
|
}
|
|
32
31
|
});
|
|
@@ -6,13 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.PrimaryItemsContainerSkeleton = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _react2 = require("@emotion/react");
|
|
9
|
-
var _constants = require("../../common/constants");
|
|
10
9
|
var _skeleton = require("../PrimaryButton/skeleton");
|
|
11
10
|
/** @jsx jsx */
|
|
12
11
|
|
|
13
12
|
var primaryButtonSkeletonStyles = (0, _react2.css)({
|
|
14
|
-
marginRight:
|
|
15
|
-
marginLeft:
|
|
13
|
+
marginRight: "var(--ds-space-150, 12px)",
|
|
14
|
+
marginLeft: "var(--ds-space-150, 12px)"
|
|
16
15
|
});
|
|
17
16
|
|
|
18
17
|
// Internal only
|
|
@@ -15,6 +15,7 @@ var _theme = require("../../theme");
|
|
|
15
15
|
var _utils = require("./utils");
|
|
16
16
|
var _excluded = ["iconAlt", "iconUrl", "logoAlt", "logoUrl", "href", "onClick", "siteTitle", "onMouseDown", "testId", "logoMaxWidth"];
|
|
17
17
|
var _css3;
|
|
18
|
+
/** @jsx jsx */
|
|
18
19
|
var VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
|
|
19
20
|
var VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE = '--product-home-bg-color-active';
|
|
20
21
|
var VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE = '--product-home-box-shadow-active';
|
|
@@ -43,7 +44,7 @@ var productIconStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
|
43
44
|
}));
|
|
44
45
|
var productHomeButtonStyles = (0, _react2.css)((_css3 = {
|
|
45
46
|
display: 'flex',
|
|
46
|
-
padding:
|
|
47
|
+
padding: "var(--ds-space-050, 4px)",
|
|
47
48
|
alignItems: 'center',
|
|
48
49
|
background: 'none',
|
|
49
50
|
border: 0,
|
|
@@ -66,26 +67,25 @@ var productHomeButtonStyles = (0, _react2.css)((_css3 = {
|
|
|
66
67
|
boxShadow: "var(".concat(VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE, ")"),
|
|
67
68
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_ACTIVE, ")")
|
|
68
69
|
},
|
|
69
|
-
'&:focus': {
|
|
70
|
+
'&:focus-visible': {
|
|
70
71
|
backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, ")"),
|
|
71
|
-
boxShadow: "var(".concat(VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS, ")"),
|
|
72
72
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
|
|
73
|
-
outline:
|
|
73
|
+
outline: "2px solid ".concat("var(--ds-border-focused, #4C9AFF)")
|
|
74
74
|
},
|
|
75
75
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
76
76
|
'div&': {
|
|
77
77
|
pointerEvents: 'none'
|
|
78
78
|
}
|
|
79
79
|
}, (0, _defineProperty2.default)(_css3, "@media (max-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
80
|
-
margin: "0 ".concat(
|
|
80
|
+
margin: "0 ".concat("var(--ds-space-100, 8px)")
|
|
81
81
|
}), (0, _defineProperty2.default)(_css3, "@media (min-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT, "px)"), {
|
|
82
|
-
margin: "0 ".concat(
|
|
82
|
+
margin: "0 ".concat("var(--ds-space-200, 16px)")
|
|
83
83
|
}), _css3));
|
|
84
84
|
var siteTitleStyles = (0, _react2.css)({
|
|
85
85
|
display: 'flex',
|
|
86
|
-
marginRight:
|
|
87
|
-
marginLeft:
|
|
88
|
-
paddingRight:
|
|
86
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
87
|
+
marginLeft: "var(--ds-space-050, 4px)",
|
|
88
|
+
paddingRight: "var(--ds-space-200, 16px)",
|
|
89
89
|
alignItems: 'center'
|
|
90
90
|
});
|
|
91
91
|
|
|
@@ -15,6 +15,7 @@ var _theme = require("../../theme");
|
|
|
15
15
|
var _utils = require("./utils");
|
|
16
16
|
var _excluded = ["icon", "logo", "siteTitle", "onClick", "href", "onMouseDown", "testId", "logoMaxWidth"];
|
|
17
17
|
var _css;
|
|
18
|
+
/** @jsx jsx */
|
|
18
19
|
var VAR_LOGO_MAX_WIDTH = '--logo-max-width';
|
|
19
20
|
var VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
|
|
20
21
|
var VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE = '--product-home-bg-color-active';
|
|
@@ -27,7 +28,7 @@ var VAR_PRODUCT_HOME_BACKGROUND_COLOR_HOVER = '--product-home-bg-color-hover';
|
|
|
27
28
|
var VAR_PRODUCT_HOME_BOX_SHADOW_HOVER = '--product-home-box-shadow-hover';
|
|
28
29
|
var productHomeButtonStyles = (0, _react2.css)((_css = {
|
|
29
30
|
display: 'flex',
|
|
30
|
-
padding:
|
|
31
|
+
padding: "var(--ds-space-050, 4px)",
|
|
31
32
|
alignItems: 'center',
|
|
32
33
|
background: 'none',
|
|
33
34
|
border: 0,
|
|
@@ -50,20 +51,19 @@ var productHomeButtonStyles = (0, _react2.css)((_css = {
|
|
|
50
51
|
boxShadow: "var(".concat(VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE, ")"),
|
|
51
52
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_ACTIVE, ")")
|
|
52
53
|
},
|
|
53
|
-
'&:focus': {
|
|
54
|
+
'&:focus-visible': {
|
|
54
55
|
backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, ")"),
|
|
55
|
-
boxShadow: "var(".concat(VAR_PRODUCT_HOME_BOX_SHADOW_FOCUS, ")"),
|
|
56
56
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
|
|
57
|
-
outline:
|
|
57
|
+
outline: "2px solid ".concat("var(--ds-border-focused, #4C9AFF)")
|
|
58
58
|
},
|
|
59
59
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
60
60
|
'div&': {
|
|
61
61
|
pointerEvents: 'none'
|
|
62
62
|
}
|
|
63
63
|
}, (0, _defineProperty2.default)(_css, "@media (max-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
64
|
-
margin: "0 ".concat(
|
|
64
|
+
margin: "0 ".concat("var(--ds-space-100, 8px)")
|
|
65
65
|
}), (0, _defineProperty2.default)(_css, "@media (min-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT, "px)"), {
|
|
66
|
-
margin: "0 ".concat(
|
|
66
|
+
margin: "0 ".concat("var(--ds-space-200, 16px)")
|
|
67
67
|
}), _css));
|
|
68
68
|
var productLogoStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
69
69
|
// Ensure anything passed into
|
|
@@ -97,9 +97,9 @@ var productIconStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
|
97
97
|
}));
|
|
98
98
|
var siteTitleStyles = (0, _react2.css)({
|
|
99
99
|
display: 'flex',
|
|
100
|
-
marginRight:
|
|
101
|
-
marginLeft:
|
|
102
|
-
paddingRight:
|
|
100
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
101
|
+
marginLeft: "var(--ds-space-050, 4px)",
|
|
102
|
+
paddingRight: "var(--ds-space-200, 16px)",
|
|
103
103
|
alignItems: 'center'
|
|
104
104
|
});
|
|
105
105
|
|
|
@@ -11,6 +11,7 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
var _constants = require("../../common/constants");
|
|
12
12
|
var _theme = require("../../theme");
|
|
13
13
|
var _css;
|
|
14
|
+
/** @jsx jsx */
|
|
14
15
|
var VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
|
|
15
16
|
var VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE = '--product-home-bg-color-active';
|
|
16
17
|
var VAR_PRODUCT_HOME_BOX_SHADOW_ACTIVE = '--product-home-box-shadow-active';
|
|
@@ -23,7 +24,7 @@ var VAR_PRODUCT_HOME_BOX_SHADOW_HOVER = '--product-home-box-shadow-hover';
|
|
|
23
24
|
var VAR_SITE_TITLE_BG_COLOR_AFTER = '--site-title-bg-color-after';
|
|
24
25
|
var productHomeButtonStyles = (0, _react2.css)((_css = {
|
|
25
26
|
display: 'flex',
|
|
26
|
-
padding:
|
|
27
|
+
padding: "var(--ds-space-050, 4px)",
|
|
27
28
|
alignItems: 'center',
|
|
28
29
|
background: 'none',
|
|
29
30
|
border: 0,
|
|
@@ -57,9 +58,9 @@ var productHomeButtonStyles = (0, _react2.css)((_css = {
|
|
|
57
58
|
pointerEvents: 'none'
|
|
58
59
|
}
|
|
59
60
|
}, (0, _defineProperty2.default)(_css, "@media (max-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
60
|
-
margin: "0 ".concat(
|
|
61
|
+
margin: "0 ".concat("var(--ds-space-100, 8px)")
|
|
61
62
|
}), (0, _defineProperty2.default)(_css, "@media (min-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT, "px)"), {
|
|
62
|
-
margin: "0 ".concat(
|
|
63
|
+
margin: "0 ".concat("var(--ds-space-200, 16px)")
|
|
63
64
|
}), _css));
|
|
64
65
|
var productLogoStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
65
66
|
display: 'flex',
|
|
@@ -90,10 +91,10 @@ var productIconStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
|
90
91
|
}));
|
|
91
92
|
var siteTitleStyles = (0, _react2.css)({
|
|
92
93
|
display: 'flex',
|
|
93
|
-
width:
|
|
94
|
-
marginRight:
|
|
95
|
-
marginLeft:
|
|
96
|
-
paddingRight:
|
|
94
|
+
width: "var(--ds-space-500, 40px)",
|
|
95
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
96
|
+
marginLeft: "var(--ds-space-050, 4px)",
|
|
97
|
+
paddingRight: "var(--ds-space-200, 16px)",
|
|
97
98
|
alignItems: 'center',
|
|
98
99
|
backgroundColor: 'transparent',
|
|
99
100
|
'&:after': {
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.ProfileSkeleton = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _constants = require("@atlaskit/theme/constants");
|
|
10
9
|
var _skeleton = require("../IconButton/skeleton");
|
|
11
10
|
// Not exported to consumers, only used in NavigationSkeleton
|
|
12
11
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -14,7 +13,7 @@ var ProfileSkeleton = function ProfileSkeleton() {
|
|
|
14
13
|
return /*#__PURE__*/_react.default.createElement(_skeleton.IconButtonSkeleton, {
|
|
15
14
|
marginLeft: 6,
|
|
16
15
|
marginRight: 6,
|
|
17
|
-
size:
|
|
16
|
+
size: 26
|
|
18
17
|
});
|
|
19
18
|
};
|
|
20
19
|
exports.ProfileSkeleton = ProfileSkeleton;
|
|
@@ -15,8 +15,9 @@ 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
|
+
/** @jsx jsx */
|
|
18
19
|
var searchInputContainerStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
19
|
-
marginRight:
|
|
20
|
+
marginRight: "var(--ds-space-100, 8px)",
|
|
20
21
|
marginLeft: 20,
|
|
21
22
|
position: 'relative'
|
|
22
23
|
}, "@media (max-width: ".concat(_constants.CREATE_BREAKPOINT - 1, "px)"), {
|
|
@@ -33,8 +34,8 @@ var searchInputIconStyles = (0, _react2.css)({
|
|
|
33
34
|
var searchInputStyles = (0, _react2.css)({
|
|
34
35
|
boxSizing: 'border-box',
|
|
35
36
|
width: '220px',
|
|
36
|
-
height: "
|
|
37
|
-
padding: "0 ".concat(
|
|
37
|
+
height: "var(--ds-space-400, 32px)",
|
|
38
|
+
padding: "0 ".concat("var(--ds-space-100, 8px)", " 0 ", "var(--ds-space-500, 40px)"),
|
|
38
39
|
backgroundColor: "var(".concat(_constants.varSearchBackgroundColor, ")"),
|
|
39
40
|
border: '2px solid',
|
|
40
41
|
borderColor: "var(".concat(_constants.varSearchBorderColor, ")"),
|
|
@@ -14,7 +14,7 @@ var _skeleton = require("../IconButton/skeleton");
|
|
|
14
14
|
/** @jsx jsx */
|
|
15
15
|
|
|
16
16
|
var searchInputContainerStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
17
|
-
marginRight:
|
|
17
|
+
marginRight: "var(--ds-space-100, 8px)",
|
|
18
18
|
marginLeft: 20,
|
|
19
19
|
position: 'relative'
|
|
20
20
|
}, "@media (max-width: ".concat(_constants.CREATE_BREAKPOINT - 1, "px)"), {
|
|
@@ -23,8 +23,8 @@ var searchInputContainerStyles = (0, _react2.css)((0, _defineProperty2.default)(
|
|
|
23
23
|
var searchInputSkeletonStyles = (0, _react2.css)({
|
|
24
24
|
boxSizing: 'border-box',
|
|
25
25
|
width: '220px',
|
|
26
|
-
height: "
|
|
27
|
-
padding: "0 ".concat(
|
|
26
|
+
height: "var(--ds-space-400, 32px)",
|
|
27
|
+
padding: "0 ".concat("var(--ds-space-100, 8px)", " 0 ", "var(--ds-space-500, 40px)"),
|
|
28
28
|
borderRadius: 6,
|
|
29
29
|
opacity: 0.15
|
|
30
30
|
});
|
|
@@ -44,7 +44,7 @@ var SearchSkeleton = function SearchSkeleton() {
|
|
|
44
44
|
})), (0, _react2.jsx)(_skeleton.IconButtonSkeleton, {
|
|
45
45
|
css: searchIconStyles,
|
|
46
46
|
marginRight: 5,
|
|
47
|
-
size:
|
|
47
|
+
size: 26
|
|
48
48
|
}));
|
|
49
49
|
};
|
|
50
50
|
exports.SearchSkeleton = SearchSkeleton;
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.SignInSkeleton = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _constants = require("@atlaskit/theme/constants");
|
|
10
9
|
var _skeleton = require("../IconButton/skeleton");
|
|
11
10
|
// Not exported to consumers, only used in NavigationSkeleton
|
|
12
11
|
// eslint-disable-next-line @repo/internal/react/require-jsdoc
|
|
@@ -14,7 +13,7 @@ var SignInSkeleton = function SignInSkeleton() {
|
|
|
14
13
|
return /*#__PURE__*/_react.default.createElement(_skeleton.IconButtonSkeleton, {
|
|
15
14
|
marginLeft: 6,
|
|
16
15
|
marginRight: 6,
|
|
17
|
-
size:
|
|
16
|
+
size: 38
|
|
18
17
|
});
|
|
19
18
|
};
|
|
20
19
|
exports.SignInSkeleton = SignInSkeleton;
|
|
@@ -9,7 +9,7 @@ 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(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
12
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } /** @jsx jsx */
|
|
13
13
|
var VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR = '--primary-button-before-highlighted-background-color';
|
|
14
14
|
var VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR = '--primary-button-after-dropdown-border-color';
|
|
15
15
|
var primaryButtonSkeletonStyles = (0, _react.css)({
|
|
@@ -21,8 +21,8 @@ var defaultTheme = {
|
|
|
21
21
|
},
|
|
22
22
|
focus: {
|
|
23
23
|
color: "var(--ds-text-inverse, ".concat(_colors.N0, ")"),
|
|
24
|
-
backgroundColor:
|
|
25
|
-
boxShadow:
|
|
24
|
+
backgroundColor: '',
|
|
25
|
+
boxShadow: ''
|
|
26
26
|
},
|
|
27
27
|
hover: {
|
|
28
28
|
color: "var(--ds-text-inverse, ".concat(_colors.N0, ")"),
|
|
@@ -48,8 +48,8 @@ var defaultTheme = {
|
|
|
48
48
|
},
|
|
49
49
|
focus: {
|
|
50
50
|
color: "var(--ds-text-subtle, ".concat(_colors.N600, ")"),
|
|
51
|
-
backgroundColor:
|
|
52
|
-
boxShadow:
|
|
51
|
+
backgroundColor: '',
|
|
52
|
+
boxShadow: ''
|
|
53
53
|
},
|
|
54
54
|
hover: {
|
|
55
55
|
color: "var(--ds-text-subtle, ".concat(_colors.B400, ")"),
|
|
@@ -97,7 +97,7 @@ var defaultTheme = {
|
|
|
97
97
|
focus: {
|
|
98
98
|
color: "var(--ds-text-subtle, ".concat(_colors.N600, ")"),
|
|
99
99
|
backgroundColor: '',
|
|
100
|
-
boxShadow:
|
|
100
|
+
boxShadow: ''
|
|
101
101
|
},
|
|
102
102
|
hover: {
|
|
103
103
|
color: "var(--ds-text-subtle, ".concat(_colors.B400, ")"),
|
|
@@ -39,7 +39,7 @@ var generateButtonCSSStates = function generateButtonCSSStates(colors, buttonTyp
|
|
|
39
39
|
color: color
|
|
40
40
|
},
|
|
41
41
|
focus: {
|
|
42
|
-
boxShadow:
|
|
42
|
+
boxShadow: 'none',
|
|
43
43
|
color: color,
|
|
44
44
|
backgroundColor: backgroundColor
|
|
45
45
|
},
|
package/dist/cjs/version.json
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { fontSize as getFontSize
|
|
2
|
-
export const gridSize = getGridSize();
|
|
3
|
-
export const buttonHeight = gridSize * 4;
|
|
1
|
+
import { fontSize as getFontSize } from '@atlaskit/theme/constants';
|
|
4
2
|
export const fontSize = getFontSize();
|
|
5
3
|
export const HORIZONTAL_GLOBAL_NAV_HEIGHT = 56;
|
|
6
4
|
export const PRODUCT_HOME_BREAKPOINT = 1280;
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import { NavigationAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
4
4
|
import { N30A, N40A, N900 } from '@atlaskit/theme/colors';
|
|
5
|
-
import {
|
|
5
|
+
import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
|
|
6
6
|
import { defaultTheme, hexToRGBA, ThemeProvider } from '../../theme';
|
|
7
7
|
import { PrimaryItemsContainer } from '../PrimaryItemsContainer';
|
|
8
8
|
const containerStyles = css({
|
|
9
9
|
display: 'flex',
|
|
10
10
|
boxSizing: 'border-box',
|
|
11
11
|
height: HORIZONTAL_GLOBAL_NAV_HEIGHT,
|
|
12
|
-
paddingRight:
|
|
13
|
-
paddingLeft:
|
|
12
|
+
paddingRight: "var(--ds-space-150, 12px)",
|
|
13
|
+
paddingLeft: "var(--ds-space-150, 12px)",
|
|
14
14
|
position: 'relative',
|
|
15
15
|
alignItems: 'center',
|
|
16
16
|
justifyContent: 'space-between',
|
|
@@ -26,7 +26,7 @@ const containerStyles = css({
|
|
|
26
26
|
},
|
|
27
27
|
// TODO: (DSP-2087) Remove the below once tokens have launched
|
|
28
28
|
'&::after': {
|
|
29
|
-
height:
|
|
29
|
+
height: "var(--ds-space-050, 4px)",
|
|
30
30
|
position: 'absolute',
|
|
31
31
|
top: '100%',
|
|
32
32
|
right: 0,
|
|
@@ -55,7 +55,7 @@ const rightStyles = css({
|
|
|
55
55
|
flexShrink: 0,
|
|
56
56
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
57
57
|
'& > *': {
|
|
58
|
-
marginRight:
|
|
58
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
59
59
|
flexShrink: 0
|
|
60
60
|
}
|
|
61
61
|
});
|