@atlaskit/atlassian-navigation 2.4.0 → 2.5.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 +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 +7 -6
- package/dist/cjs/components/ProductHome/product-home.js +7 -6
- 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/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 +7 -7
- package/dist/es2019/components/ProductHome/product-home.js +7 -7
- 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/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 +7 -7
- package/dist/esm/components/ProductHome/product-home.js +7 -7
- 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/version.json +1 -1
- package/dist/types/common/constants.d.ts +0 -2
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 2.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 2.4.1
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [`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.
|
|
18
|
+
|
|
3
19
|
## 2.4.0
|
|
4
20
|
|
|
5
21
|
### Minor 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,
|
|
@@ -76,15 +77,15 @@ var productHomeButtonStyles = (0, _react2.css)((_css3 = {
|
|
|
76
77
|
pointerEvents: 'none'
|
|
77
78
|
}
|
|
78
79
|
}, (0, _defineProperty2.default)(_css3, "@media (max-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
79
|
-
margin: "0 ".concat(
|
|
80
|
+
margin: "0 ".concat("var(--ds-space-100, 8px)")
|
|
80
81
|
}), (0, _defineProperty2.default)(_css3, "@media (min-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT, "px)"), {
|
|
81
|
-
margin: "0 ".concat(
|
|
82
|
+
margin: "0 ".concat("var(--ds-space-200, 16px)")
|
|
82
83
|
}), _css3));
|
|
83
84
|
var siteTitleStyles = (0, _react2.css)({
|
|
84
85
|
display: 'flex',
|
|
85
|
-
marginRight:
|
|
86
|
-
marginLeft:
|
|
87
|
-
paddingRight:
|
|
86
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
87
|
+
marginLeft: "var(--ds-space-050, 4px)",
|
|
88
|
+
paddingRight: "var(--ds-space-200, 16px)",
|
|
88
89
|
alignItems: 'center'
|
|
89
90
|
});
|
|
90
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,
|
|
@@ -60,9 +61,9 @@ var productHomeButtonStyles = (0, _react2.css)((_css = {
|
|
|
60
61
|
pointerEvents: 'none'
|
|
61
62
|
}
|
|
62
63
|
}, (0, _defineProperty2.default)(_css, "@media (max-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT - 0.1, "px)"), {
|
|
63
|
-
margin: "0 ".concat(
|
|
64
|
+
margin: "0 ".concat("var(--ds-space-100, 8px)")
|
|
64
65
|
}), (0, _defineProperty2.default)(_css, "@media (min-width: ".concat(_constants.PRODUCT_HOME_BREAKPOINT, "px)"), {
|
|
65
|
-
margin: "0 ".concat(
|
|
66
|
+
margin: "0 ".concat("var(--ds-space-200, 16px)")
|
|
66
67
|
}), _css));
|
|
67
68
|
var productLogoStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
68
69
|
// Ensure anything passed into
|
|
@@ -96,9 +97,9 @@ var productIconStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
|
96
97
|
}));
|
|
97
98
|
var siteTitleStyles = (0, _react2.css)({
|
|
98
99
|
display: 'flex',
|
|
99
|
-
marginRight:
|
|
100
|
-
marginLeft:
|
|
101
|
-
paddingRight:
|
|
100
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
101
|
+
marginLeft: "var(--ds-space-050, 4px)",
|
|
102
|
+
paddingRight: "var(--ds-space-200, 16px)",
|
|
102
103
|
alignItems: 'center'
|
|
103
104
|
});
|
|
104
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)({
|
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
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import { N30A, N40A, N900 } from '@atlaskit/theme/colors';
|
|
4
|
-
import {
|
|
4
|
+
import { HORIZONTAL_GLOBAL_NAV_HEIGHT } from '../../common/constants';
|
|
5
5
|
import { defaultTheme, hexToRGBA, ThemeProvider } from '../../theme';
|
|
6
6
|
import { IconButtonSkeleton } from '../IconButton/skeleton';
|
|
7
7
|
import { PrimaryItemsContainerSkeleton } from '../PrimaryItemsContainer/skeleton';
|
|
@@ -12,8 +12,8 @@ const containerStyles = css({
|
|
|
12
12
|
display: 'flex',
|
|
13
13
|
boxSizing: 'border-box',
|
|
14
14
|
height: HORIZONTAL_GLOBAL_NAV_HEIGHT,
|
|
15
|
-
paddingRight:
|
|
16
|
-
paddingLeft:
|
|
15
|
+
paddingRight: "var(--ds-space-150, 12px)",
|
|
16
|
+
paddingLeft: "var(--ds-space-150, 12px)",
|
|
17
17
|
position: 'relative',
|
|
18
18
|
alignItems: 'center',
|
|
19
19
|
justifyContent: 'space-between',
|
|
@@ -29,7 +29,7 @@ const containerStyles = css({
|
|
|
29
29
|
},
|
|
30
30
|
// TODO: (DSP-2087) Remove the below once tokens have launched
|
|
31
31
|
'&::after': {
|
|
32
|
-
height:
|
|
32
|
+
height: "var(--ds-space-050, 4px)",
|
|
33
33
|
position: 'absolute',
|
|
34
34
|
top: '100%',
|
|
35
35
|
right: 0,
|
|
@@ -58,7 +58,7 @@ const rightStyles = css({
|
|
|
58
58
|
flexShrink: 0,
|
|
59
59
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
60
60
|
'& > *': {
|
|
61
|
-
marginRight:
|
|
61
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
62
62
|
flexShrink: 0
|
|
63
63
|
}
|
|
64
64
|
});
|
|
@@ -95,7 +95,7 @@ export const NavigationSkeleton = ({
|
|
|
95
95
|
}, jsx(IconButtonSkeleton, {
|
|
96
96
|
marginLeft: 0,
|
|
97
97
|
marginRight: 5,
|
|
98
|
-
size:
|
|
98
|
+
size: 26
|
|
99
99
|
}), jsx(ProductHomeSkeleton, {
|
|
100
100
|
showSiteName: showSiteName
|
|
101
101
|
}), jsx(PrimaryItemsContainerSkeleton, {
|
|
@@ -107,8 +107,8 @@ export const NavigationSkeleton = ({
|
|
|
107
107
|
}, (_, index) => jsx(IconButtonSkeleton, {
|
|
108
108
|
key: index,
|
|
109
109
|
marginLeft: 0,
|
|
110
|
-
marginRight:
|
|
111
|
-
size:
|
|
110
|
+
marginRight: 4,
|
|
111
|
+
size: 26
|
|
112
112
|
})), jsx(ProfileSkeleton, null))));
|
|
113
113
|
};
|
|
114
114
|
export default NavigationSkeleton;
|
|
@@ -4,7 +4,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
4
4
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
5
5
|
import AddIcon from '@atlaskit/icon/glyph/editor/add';
|
|
6
6
|
import Tooltip from '@atlaskit/tooltip';
|
|
7
|
-
import { CREATE_BREAKPOINT
|
|
7
|
+
import { CREATE_BREAKPOINT } from '../../common/constants';
|
|
8
8
|
import { useTheme } from '../../theme';
|
|
9
9
|
import { IconButton } from '../IconButton';
|
|
10
10
|
import { getCreateButtonTheme } from './styles';
|
|
@@ -27,7 +27,7 @@ const wrapperStyles = css({
|
|
|
27
27
|
},
|
|
28
28
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
29
29
|
'&&': {
|
|
30
|
-
marginLeft:
|
|
30
|
+
marginLeft: "var(--ds-space-150, 12px)"
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
const TooltipSwitch = ({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { Fragment } from 'react';
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
|
-
import { CREATE_BREAKPOINT
|
|
4
|
+
import { CREATE_BREAKPOINT } from '../../common/constants';
|
|
5
5
|
import { useTheme } from '../../theme';
|
|
6
6
|
import { IconButtonSkeleton } from '../IconButton/skeleton';
|
|
7
|
-
const buttonHeight =
|
|
7
|
+
const buttonHeight = "var(--ds-space-400, 32px)";
|
|
8
8
|
const skeletonStyles = css({
|
|
9
9
|
width: 68,
|
|
10
10
|
height: buttonHeight,
|
|
@@ -28,6 +28,6 @@ export const CreateSkeleton = () => {
|
|
|
28
28
|
css: [skeletonStyles, mobileStyles]
|
|
29
29
|
}), jsx(IconButtonSkeleton, {
|
|
30
30
|
css: mobileStyles,
|
|
31
|
-
size:
|
|
31
|
+
size: 26
|
|
32
32
|
}));
|
|
33
33
|
};
|