@atlaskit/atlassian-navigation 2.6.5 → 2.6.7
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 +13 -0
- package/dist/cjs/components/AtlassianNavigation/index.js +1 -0
- package/dist/cjs/components/AtlassianNavigation/skeleton.js +1 -0
- package/dist/cjs/components/BadgeContainer/index.js +2 -2
- package/dist/cjs/components/Create/skeleton.js +2 -2
- package/dist/cjs/components/IconButton/skeleton.js +1 -1
- package/dist/cjs/components/IconButton/styles.js +1 -1
- package/dist/cjs/components/PrimaryButton/index.js +2 -2
- package/dist/cjs/components/PrimaryButton/skeleton.js +1 -1
- package/dist/cjs/components/PrimaryDropdownButton/index.js +2 -2
- package/dist/cjs/components/ProductHome/custom-product-home.js +1 -1
- package/dist/cjs/components/ProductHome/product-home.js +2 -2
- package/dist/cjs/components/ProductHome/skeleton.js +3 -3
- package/dist/cjs/components/Search/index.js +6 -4
- package/dist/cjs/components/Search/skeleton.js +2 -2
- package/dist/cjs/components/SkeletonCreateButton/index.js +5 -5
- package/dist/cjs/components/SkeletonIconButton/index.js +4 -4
- package/dist/cjs/components/SkeletonPrimaryButton/index.js +12 -10
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/AtlassianNavigation/index.js +1 -0
- package/dist/es2019/components/AtlassianNavigation/skeleton.js +1 -0
- package/dist/es2019/components/BadgeContainer/index.js +2 -2
- package/dist/es2019/components/Create/skeleton.js +2 -2
- package/dist/es2019/components/IconButton/skeleton.js +1 -1
- package/dist/es2019/components/IconButton/styles.js +1 -1
- package/dist/es2019/components/PrimaryButton/index.js +2 -2
- package/dist/es2019/components/PrimaryButton/skeleton.js +1 -1
- package/dist/es2019/components/PrimaryDropdownButton/index.js +2 -2
- package/dist/es2019/components/ProductHome/custom-product-home.js +1 -1
- package/dist/es2019/components/ProductHome/product-home.js +2 -2
- package/dist/es2019/components/ProductHome/skeleton.js +3 -3
- package/dist/es2019/components/Search/index.js +6 -4
- package/dist/es2019/components/Search/skeleton.js +2 -2
- package/dist/es2019/components/SkeletonCreateButton/index.js +5 -5
- package/dist/es2019/components/SkeletonIconButton/index.js +4 -4
- package/dist/es2019/components/SkeletonPrimaryButton/index.js +12 -10
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/AtlassianNavigation/index.js +1 -0
- package/dist/esm/components/AtlassianNavigation/skeleton.js +1 -0
- package/dist/esm/components/BadgeContainer/index.js +2 -2
- package/dist/esm/components/Create/skeleton.js +2 -2
- package/dist/esm/components/IconButton/skeleton.js +1 -1
- package/dist/esm/components/IconButton/styles.js +1 -1
- package/dist/esm/components/PrimaryButton/index.js +2 -2
- package/dist/esm/components/PrimaryButton/skeleton.js +1 -1
- package/dist/esm/components/PrimaryDropdownButton/index.js +2 -2
- package/dist/esm/components/ProductHome/custom-product-home.js +1 -1
- package/dist/esm/components/ProductHome/product-home.js +2 -2
- package/dist/esm/components/ProductHome/skeleton.js +3 -3
- package/dist/esm/components/Search/index.js +6 -4
- package/dist/esm/components/Search/skeleton.js +2 -2
- package/dist/esm/components/SkeletonCreateButton/index.js +5 -5
- package/dist/esm/components/SkeletonIconButton/index.js +4 -4
- package/dist/esm/components/SkeletonPrimaryButton/index.js +12 -10
- package/dist/esm/version.json +1 -1
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 2.6.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`967dd926bfc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/967dd926bfc) - Updates all navigation components to use border/shape tokens. This is a no-op as these tokens are not enabled in product.
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
|
|
10
|
+
## 2.6.6
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- [`fe65eb90595`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fe65eb90595) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
|
|
15
|
+
|
|
3
16
|
## 2.6.5
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -9,8 +9,8 @@ var _react = require("@emotion/react");
|
|
|
9
9
|
|
|
10
10
|
var badgeContainerStyles = (0, _react.css)({
|
|
11
11
|
position: 'absolute',
|
|
12
|
-
top:
|
|
13
|
-
right:
|
|
12
|
+
top: "calc(-1 * ".concat("var(--ds-space-050, 4px)", ")"),
|
|
13
|
+
right: "calc(-1 * ".concat("var(--ds-space-025, 2px)", ")"),
|
|
14
14
|
pointerEvents: 'none'
|
|
15
15
|
});
|
|
16
16
|
var containerStyles = (0, _react.css)({
|
|
@@ -17,8 +17,8 @@ var buttonHeight = "var(--ds-space-400, 32px)";
|
|
|
17
17
|
var skeletonStyles = (0, _react2.css)({
|
|
18
18
|
width: 68,
|
|
19
19
|
height: buttonHeight,
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
21
|
+
marginInlineStart: "var(--ds-space-150, 12px)",
|
|
22
22
|
opacity: 0.15
|
|
23
23
|
});
|
|
24
24
|
var mobileStyles = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (max-width: ".concat(_constants.CREATE_BREAKPOINT - 1, "px)"), {
|
|
@@ -12,7 +12,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
12
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 buttonHeight = "var(--ds-space-400, 32px)";
|
|
14
14
|
var skeletonStyles = (0, _react.css)({
|
|
15
|
-
borderRadius:
|
|
15
|
+
borderRadius: "var(--ds-border-radius-circle, 50%)",
|
|
16
16
|
opacity: 0.15
|
|
17
17
|
});
|
|
18
18
|
|
|
@@ -16,7 +16,7 @@ var getIconButtonTheme = function getIconButtonTheme(_ref) {
|
|
|
16
16
|
spinnerStyles = _current.spinnerStyles;
|
|
17
17
|
return {
|
|
18
18
|
buttonStyles: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, buttonStyles), {}, {
|
|
19
|
-
borderRadius:
|
|
19
|
+
borderRadius: "var(--ds-border-radius-circle, 100%)",
|
|
20
20
|
display: 'flex',
|
|
21
21
|
margin: '0 2px',
|
|
22
22
|
padding: 4,
|
|
@@ -38,8 +38,8 @@ var buttonHighlightedStyles = (0, _react2.css)({
|
|
|
38
38
|
bottom: 0,
|
|
39
39
|
left: "var(--ds-space-050, 4px)",
|
|
40
40
|
backgroundColor: "var(".concat(VAR_BUTTON_SELECTED_BORDER_COLOR, ")"),
|
|
41
|
-
borderTopLeftRadius:
|
|
42
|
-
borderTopRightRadius:
|
|
41
|
+
borderTopLeftRadius: "var(--ds-border-radius-050, 1px)",
|
|
42
|
+
borderTopRightRadius: "var(--ds-border-radius-050, 1px)",
|
|
43
43
|
content: '""'
|
|
44
44
|
}
|
|
45
45
|
});
|
|
@@ -14,7 +14,7 @@ var skeletonStyles = (0, _react.css)({
|
|
|
14
14
|
display: 'inline-flex',
|
|
15
15
|
width: '68px',
|
|
16
16
|
height: "".concat(buttonHeight - paddingAll * 2.5, "px"),
|
|
17
|
-
borderRadius: "var(--ds-radius
|
|
17
|
+
borderRadius: "var(--ds-border-radius, 4px)",
|
|
18
18
|
opacity: 0.15
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -13,8 +13,8 @@ var _PrimaryButton = require("../PrimaryButton");
|
|
|
13
13
|
/** @jsx jsx */
|
|
14
14
|
|
|
15
15
|
var chevronIconStyles = (0, _react2.css)({
|
|
16
|
-
marginRight:
|
|
17
|
-
marginLeft:
|
|
16
|
+
marginRight: "calc(-1 * ".concat("var(--ds-space-100, 8px)", ")"),
|
|
17
|
+
marginLeft: "calc(-1 * ".concat("var(--ds-space-100, 8px)", ")"),
|
|
18
18
|
opacity: 0.51
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -33,7 +33,7 @@ var productHomeButtonStyles = (0, _react2.css)((_css = {
|
|
|
33
33
|
alignItems: 'center',
|
|
34
34
|
background: 'none',
|
|
35
35
|
border: 0,
|
|
36
|
-
borderRadius:
|
|
36
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
37
37
|
color: 'inherit',
|
|
38
38
|
cursor: 'pointer',
|
|
39
39
|
'&::-moz-focus-inner': {
|
|
@@ -55,7 +55,7 @@ var productHomeButtonStyles = (0, _react2.css)((_css = {
|
|
|
55
55
|
'&:focus-visible': {
|
|
56
56
|
backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, ")"),
|
|
57
57
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
|
|
58
|
-
outline: "2px
|
|
58
|
+
outline: "var(--ds-border-width-100, 2px)".concat(" solid ", "var(--ds-border-focused, #4C9AFF)")
|
|
59
59
|
},
|
|
60
60
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
61
61
|
'div&': {
|
|
@@ -28,7 +28,7 @@ var productHomeButtonStyles = (0, _react2.css)((_css = {
|
|
|
28
28
|
alignItems: 'center',
|
|
29
29
|
background: 'none',
|
|
30
30
|
border: 0,
|
|
31
|
-
borderRadius:
|
|
31
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
32
32
|
color: 'inherit',
|
|
33
33
|
cursor: 'pointer',
|
|
34
34
|
'&::-moz-focus-inner': {
|
|
@@ -80,7 +80,7 @@ var productIconStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
|
80
80
|
display: 'flex',
|
|
81
81
|
width: 28,
|
|
82
82
|
height: 28,
|
|
83
|
-
borderRadius:
|
|
83
|
+
borderRadius: "var(--ds-border-radius-circle, 50%)",
|
|
84
84
|
opacity: 0.15,
|
|
85
85
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
86
86
|
'& > *': {
|
|
@@ -101,7 +101,7 @@ var siteTitleStyles = (0, _react2.css)({
|
|
|
101
101
|
width: '100%',
|
|
102
102
|
height: 14,
|
|
103
103
|
backgroundColor: "var(".concat(VAR_SITE_TITLE_BG_COLOR_AFTER, ")"),
|
|
104
|
-
borderRadius:
|
|
104
|
+
borderRadius: "var(--ds-border-radius, 4px)",
|
|
105
105
|
content: '""'
|
|
106
106
|
}
|
|
107
107
|
});
|
|
@@ -18,7 +18,7 @@ var _excluded = ["placeholder", "tooltip", "label", "value"];
|
|
|
18
18
|
/** @jsx jsx */
|
|
19
19
|
var searchInputContainerStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
20
20
|
marginRight: "var(--ds-space-100, 8px)",
|
|
21
|
-
marginLeft:
|
|
21
|
+
marginLeft: "var(--ds-space-250, 20px)",
|
|
22
22
|
position: 'relative'
|
|
23
23
|
}, "@media (max-width: ".concat(_constants.CREATE_BREAKPOINT - 1, "px)"), {
|
|
24
24
|
display: 'none !important'
|
|
@@ -27,7 +27,9 @@ var searchInputIconStyles = (0, _react2.css)({
|
|
|
27
27
|
width: '20px',
|
|
28
28
|
height: '20px',
|
|
29
29
|
position: 'absolute',
|
|
30
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
30
31
|
top: '5px',
|
|
32
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
31
33
|
left: '10px',
|
|
32
34
|
pointerEvents: 'none'
|
|
33
35
|
});
|
|
@@ -39,7 +41,7 @@ var searchInputStyles = (0, _react2.css)({
|
|
|
39
41
|
backgroundColor: "var(".concat(_constants.varSearchBackgroundColor, ")"),
|
|
40
42
|
border: '2px solid',
|
|
41
43
|
borderColor: "var(".concat(_constants.varSearchBorderColor, ")"),
|
|
42
|
-
borderRadius:
|
|
44
|
+
borderRadius: "var(--ds-border-radius-200, 6px)",
|
|
43
45
|
color: "var(".concat(_constants.varSearchColor, ")"),
|
|
44
46
|
fontSize: "".concat(_constants.fontSize, "px"),
|
|
45
47
|
outline: 'none',
|
|
@@ -65,11 +67,11 @@ var SearchComponent = function SearchComponent(props) {
|
|
|
65
67
|
var theme = (0, _theme.useTheme)();
|
|
66
68
|
var search = theme.mode.search;
|
|
67
69
|
var onChange = function onChange() {
|
|
68
|
-
// @ts-
|
|
70
|
+
// @ts-expect-error
|
|
69
71
|
onClick && onClick.apply(void 0, arguments);
|
|
70
72
|
};
|
|
71
73
|
var onInputClick = function onInputClick() {
|
|
72
|
-
// @ts-
|
|
74
|
+
// @ts-expect-error
|
|
73
75
|
onClick && onClick.apply(void 0, arguments);
|
|
74
76
|
};
|
|
75
77
|
var searchInputDynamicStyles = (_searchInputDynamicSt = {}, (0, _defineProperty2.default)(_searchInputDynamicSt, _constants.varSearchBackgroundColor, search.default.backgroundColor), (0, _defineProperty2.default)(_searchInputDynamicSt, _constants.varSearchColor, search.default.color), (0, _defineProperty2.default)(_searchInputDynamicSt, _constants.varSearchBorderColor, search.default.borderColor), (0, _defineProperty2.default)(_searchInputDynamicSt, _constants.varSearchFocusBorderColor, search.focus.borderColor), (0, _defineProperty2.default)(_searchInputDynamicSt, _constants.varSearchHoverBackgroundColor, search.hover.backgroundColor), _searchInputDynamicSt);
|
|
@@ -15,7 +15,7 @@ var _skeleton = require("../IconButton/skeleton");
|
|
|
15
15
|
|
|
16
16
|
var searchInputContainerStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
17
17
|
marginRight: "var(--ds-space-100, 8px)",
|
|
18
|
-
marginLeft:
|
|
18
|
+
marginLeft: "var(--ds-space-250, 20px)",
|
|
19
19
|
position: 'relative'
|
|
20
20
|
}, "@media (max-width: ".concat(_constants.CREATE_BREAKPOINT - 1, "px)"), {
|
|
21
21
|
display: 'none !important'
|
|
@@ -25,7 +25,7 @@ var searchInputSkeletonStyles = (0, _react2.css)({
|
|
|
25
25
|
width: '220px',
|
|
26
26
|
height: "var(--ds-space-400, 32px)",
|
|
27
27
|
padding: "0 ".concat("var(--ds-space-100, 8px)", " 0 ", "var(--ds-space-500, 40px)"),
|
|
28
|
-
borderRadius:
|
|
28
|
+
borderRadius: "var(--ds-border-radius-200, 6px)",
|
|
29
29
|
opacity: 0.15
|
|
30
30
|
});
|
|
31
31
|
var searchIconStyles = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (min-width: ".concat(_constants.CREATE_BREAKPOINT, "px)"), {
|
|
@@ -10,12 +10,12 @@ var _theme = require("../../theme");
|
|
|
10
10
|
|
|
11
11
|
var skeletonCreateButtonStyles = (0, _react.css)({
|
|
12
12
|
height: 32,
|
|
13
|
-
padding:
|
|
13
|
+
padding: "0 ".concat("var(--ds-space-150, 12px)"),
|
|
14
14
|
alignSelf: 'center',
|
|
15
15
|
border: 0,
|
|
16
|
-
borderRadius:
|
|
17
|
-
fontSize:
|
|
18
|
-
fontWeight: 500,
|
|
16
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
17
|
+
fontSize: "var(--ds-font-size-100, 14px)",
|
|
18
|
+
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
19
19
|
lineHeight: 1,
|
|
20
20
|
pointerEvents: 'none',
|
|
21
21
|
':focus, :active, :hover': {
|
|
@@ -25,7 +25,7 @@ var skeletonCreateButtonStyles = (0, _react.css)({
|
|
|
25
25
|
},
|
|
26
26
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
27
27
|
'&&': {
|
|
28
|
-
marginLeft:
|
|
28
|
+
marginLeft: "var(--ds-space-150, 12px)"
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
|
|
@@ -10,10 +10,10 @@ var _theme = require("../../theme");
|
|
|
10
10
|
|
|
11
11
|
var skeletonIconButtonStyles = (0, _react.css)({
|
|
12
12
|
margin: 0,
|
|
13
|
-
marginRight:
|
|
14
|
-
padding:
|
|
13
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
14
|
+
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-075, 6px)"),
|
|
15
15
|
border: 0,
|
|
16
|
-
borderRadius:
|
|
16
|
+
borderRadius: "var(--ds-border-radius-circle, 100%)",
|
|
17
17
|
pointerEvents: 'none',
|
|
18
18
|
':focus, :active, :hover': {
|
|
19
19
|
appearance: 'none',
|
|
@@ -31,7 +31,7 @@ var skeletonIconButtonStyles = (0, _react.css)({
|
|
|
31
31
|
'& > img': {
|
|
32
32
|
width: 24,
|
|
33
33
|
height: 24,
|
|
34
|
-
borderRadius:
|
|
34
|
+
borderRadius: "var(--ds-border-radius-circle, 100%)",
|
|
35
35
|
verticalAlign: 'middle'
|
|
36
36
|
}
|
|
37
37
|
});
|
|
@@ -13,13 +13,13 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
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)({
|
|
16
|
-
margin:
|
|
17
|
-
padding:
|
|
16
|
+
margin: "0 ".concat("var(--ds-space-075, 6px)"),
|
|
17
|
+
padding: "0 ".concat("var(--ds-space-050, 4px)"),
|
|
18
18
|
position: 'relative',
|
|
19
19
|
appearance: 'none',
|
|
20
20
|
border: 0,
|
|
21
|
-
fontSize:
|
|
22
|
-
fontWeight: 500,
|
|
21
|
+
fontSize: "var(--ds-font-size-100, 14px)",
|
|
22
|
+
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
23
23
|
lineHeight: 1,
|
|
24
24
|
pointerEvents: 'none',
|
|
25
25
|
':focus, :active, :hover': {
|
|
@@ -36,36 +36,38 @@ var isHighlightedStyles = (0, _react.css)({
|
|
|
36
36
|
height: 3,
|
|
37
37
|
position: 'absolute',
|
|
38
38
|
bottom: 0,
|
|
39
|
-
left:
|
|
39
|
+
left: "var(--ds-space-025, 2px)",
|
|
40
40
|
backgroundColor: "var(".concat(VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR, ")"),
|
|
41
|
-
borderTopLeftRadius:
|
|
42
|
-
borderTopRightRadius:
|
|
41
|
+
borderTopLeftRadius: "var(--ds-border-radius-050, 1px)",
|
|
42
|
+
borderTopRightRadius: "var(--ds-border-radius-050, 1px)",
|
|
43
43
|
content: '""'
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
var isHighlightedAndDropdownButtonStyles = (0, _react.css)({
|
|
47
47
|
'&:before': {
|
|
48
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
48
49
|
right: -10
|
|
49
50
|
}
|
|
50
51
|
});
|
|
51
52
|
var isHighlightedNotDropdownButtonStyles = (0, _react.css)({
|
|
52
53
|
'&:before': {
|
|
53
|
-
right:
|
|
54
|
+
right: "var(--ds-space-025, 2px)"
|
|
54
55
|
}
|
|
55
56
|
});
|
|
56
57
|
var isDropdownButtonStyles = (0, _react.css)({
|
|
58
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
57
59
|
marginRight: 18,
|
|
58
60
|
'&:after': {
|
|
59
61
|
display: 'inline-block',
|
|
60
62
|
width: 4,
|
|
61
63
|
height: 4,
|
|
62
|
-
marginLeft:
|
|
64
|
+
marginLeft: "var(--ds-space-050, 4px)",
|
|
63
65
|
position: 'absolute',
|
|
64
66
|
top: 'calc(50% - 4px)',
|
|
65
67
|
left: 'calc(100% - 3px)',
|
|
66
68
|
borderBottom: '2px solid',
|
|
67
69
|
borderColor: "var(".concat(VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR, ")"),
|
|
68
|
-
borderRadius:
|
|
70
|
+
borderRadius: "var(--ds-border-radius-050, 1px)",
|
|
69
71
|
borderRight: '2px solid',
|
|
70
72
|
content: '""',
|
|
71
73
|
opacity: 0.51,
|
package/dist/cjs/version.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { css, jsx } from '@emotion/react';
|
|
3
3
|
const badgeContainerStyles = css({
|
|
4
4
|
position: 'absolute',
|
|
5
|
-
top:
|
|
6
|
-
right:
|
|
5
|
+
top: `calc(-1 * ${"var(--ds-space-050, 4px)"})`,
|
|
6
|
+
right: `calc(-1 * ${"var(--ds-space-025, 2px)"})`,
|
|
7
7
|
pointerEvents: 'none'
|
|
8
8
|
});
|
|
9
9
|
const containerStyles = css({
|
|
@@ -8,8 +8,8 @@ const buttonHeight = "var(--ds-space-400, 32px)";
|
|
|
8
8
|
const skeletonStyles = css({
|
|
9
9
|
width: 68,
|
|
10
10
|
height: buttonHeight,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
12
|
+
marginInlineStart: "var(--ds-space-150, 12px)",
|
|
13
13
|
opacity: 0.15
|
|
14
14
|
});
|
|
15
15
|
const mobileStyles = css({
|
|
@@ -3,7 +3,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
3
3
|
import { useTheme } from '../../theme';
|
|
4
4
|
const buttonHeight = "var(--ds-space-400, 32px)";
|
|
5
5
|
const skeletonStyles = css({
|
|
6
|
-
borderRadius:
|
|
6
|
+
borderRadius: "var(--ds-border-radius-circle, 50%)",
|
|
7
7
|
opacity: 0.15
|
|
8
8
|
});
|
|
9
9
|
|
|
@@ -28,8 +28,8 @@ const buttonHighlightedStyles = css({
|
|
|
28
28
|
bottom: 0,
|
|
29
29
|
left: "var(--ds-space-050, 4px)",
|
|
30
30
|
backgroundColor: `var(${VAR_BUTTON_SELECTED_BORDER_COLOR})`,
|
|
31
|
-
borderTopLeftRadius:
|
|
32
|
-
borderTopRightRadius:
|
|
31
|
+
borderTopLeftRadius: "var(--ds-border-radius-050, 1px)",
|
|
32
|
+
borderTopRightRadius: "var(--ds-border-radius-050, 1px)",
|
|
33
33
|
content: '""'
|
|
34
34
|
}
|
|
35
35
|
});
|
|
@@ -5,8 +5,8 @@ import { css, jsx } from '@emotion/react';
|
|
|
5
5
|
import ChevronIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
6
6
|
import { PrimaryButton } from '../PrimaryButton';
|
|
7
7
|
const chevronIconStyles = css({
|
|
8
|
-
marginRight:
|
|
9
|
-
marginLeft:
|
|
8
|
+
marginRight: `calc(-1 * ${"var(--ds-space-100, 8px)"})`,
|
|
9
|
+
marginLeft: `calc(-1 * ${"var(--ds-space-100, 8px)"})`,
|
|
10
10
|
opacity: 0.51
|
|
11
11
|
});
|
|
12
12
|
|
|
@@ -22,7 +22,7 @@ const productHomeButtonStyles = css({
|
|
|
22
22
|
alignItems: 'center',
|
|
23
23
|
background: 'none',
|
|
24
24
|
border: 0,
|
|
25
|
-
borderRadius:
|
|
25
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
26
26
|
color: 'inherit',
|
|
27
27
|
cursor: 'pointer',
|
|
28
28
|
'&::-moz-focus-inner': {
|
|
@@ -44,7 +44,7 @@ const productHomeButtonStyles = css({
|
|
|
44
44
|
'&:focus-visible': {
|
|
45
45
|
backgroundColor: `var(${VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS})`,
|
|
46
46
|
color: `var(${VAR_PRODUCT_HOME_COLOR_FOCUS})`,
|
|
47
|
-
outline:
|
|
47
|
+
outline: `${"var(--ds-border-width-100, 2px)"} solid ${"var(--ds-border-focused, #4C9AFF)"}`
|
|
48
48
|
},
|
|
49
49
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
50
50
|
'div&': {
|
|
@@ -20,7 +20,7 @@ const productHomeButtonStyles = css({
|
|
|
20
20
|
alignItems: 'center',
|
|
21
21
|
background: 'none',
|
|
22
22
|
border: 0,
|
|
23
|
-
borderRadius:
|
|
23
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
24
24
|
color: 'inherit',
|
|
25
25
|
cursor: 'pointer',
|
|
26
26
|
'&::-moz-focus-inner': {
|
|
@@ -78,7 +78,7 @@ const productIconStyles = css({
|
|
|
78
78
|
display: 'flex',
|
|
79
79
|
width: 28,
|
|
80
80
|
height: 28,
|
|
81
|
-
borderRadius:
|
|
81
|
+
borderRadius: "var(--ds-border-radius-circle, 50%)",
|
|
82
82
|
opacity: 0.15,
|
|
83
83
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
84
84
|
'& > *': {
|
|
@@ -101,7 +101,7 @@ const siteTitleStyles = css({
|
|
|
101
101
|
width: '100%',
|
|
102
102
|
height: 14,
|
|
103
103
|
backgroundColor: `var(${VAR_SITE_TITLE_BG_COLOR_AFTER})`,
|
|
104
|
-
borderRadius:
|
|
104
|
+
borderRadius: "var(--ds-border-radius, 4px)",
|
|
105
105
|
content: '""'
|
|
106
106
|
}
|
|
107
107
|
});
|
|
@@ -8,7 +8,7 @@ import { useTheme } from '../../theme';
|
|
|
8
8
|
import { IconButton } from '../IconButton';
|
|
9
9
|
const searchInputContainerStyles = css({
|
|
10
10
|
marginRight: "var(--ds-space-100, 8px)",
|
|
11
|
-
marginLeft:
|
|
11
|
+
marginLeft: "var(--ds-space-250, 20px)",
|
|
12
12
|
position: 'relative',
|
|
13
13
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
14
14
|
[`@media (max-width: ${CREATE_BREAKPOINT - 1}px)`]: {
|
|
@@ -19,7 +19,9 @@ const searchInputIconStyles = css({
|
|
|
19
19
|
width: '20px',
|
|
20
20
|
height: '20px',
|
|
21
21
|
position: 'absolute',
|
|
22
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
22
23
|
top: '5px',
|
|
24
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
23
25
|
left: '10px',
|
|
24
26
|
pointerEvents: 'none'
|
|
25
27
|
});
|
|
@@ -31,7 +33,7 @@ const searchInputStyles = css({
|
|
|
31
33
|
backgroundColor: `var(${varSearchBackgroundColor})`,
|
|
32
34
|
border: '2px solid',
|
|
33
35
|
borderColor: `var(${varSearchBorderColor})`,
|
|
34
|
-
borderRadius:
|
|
36
|
+
borderRadius: "var(--ds-border-radius-200, 6px)",
|
|
35
37
|
color: `var(${varSearchColor})`,
|
|
36
38
|
fontSize: `${fontSize}px`,
|
|
37
39
|
outline: 'none',
|
|
@@ -61,11 +63,11 @@ const SearchComponent = props => {
|
|
|
61
63
|
const theme = useTheme();
|
|
62
64
|
const search = theme.mode.search;
|
|
63
65
|
const onChange = (...args) => {
|
|
64
|
-
// @ts-
|
|
66
|
+
// @ts-expect-error
|
|
65
67
|
onClick && onClick(...args);
|
|
66
68
|
};
|
|
67
69
|
const onInputClick = (...args) => {
|
|
68
|
-
// @ts-
|
|
70
|
+
// @ts-expect-error
|
|
69
71
|
onClick && onClick(...args);
|
|
70
72
|
};
|
|
71
73
|
const searchInputDynamicStyles = {
|
|
@@ -6,7 +6,7 @@ import { useTheme } from '../../theme';
|
|
|
6
6
|
import { IconButtonSkeleton } from '../IconButton/skeleton';
|
|
7
7
|
const searchInputContainerStyles = css({
|
|
8
8
|
marginRight: "var(--ds-space-100, 8px)",
|
|
9
|
-
marginLeft:
|
|
9
|
+
marginLeft: "var(--ds-space-250, 20px)",
|
|
10
10
|
position: 'relative',
|
|
11
11
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
12
12
|
[`@media (max-width: ${CREATE_BREAKPOINT - 1}px)`]: {
|
|
@@ -18,7 +18,7 @@ const searchInputSkeletonStyles = css({
|
|
|
18
18
|
width: '220px',
|
|
19
19
|
height: "var(--ds-space-400, 32px)",
|
|
20
20
|
padding: `0 ${"var(--ds-space-100, 8px)"} 0 ${"var(--ds-space-500, 40px)"}`,
|
|
21
|
-
borderRadius:
|
|
21
|
+
borderRadius: "var(--ds-border-radius-200, 6px)",
|
|
22
22
|
opacity: 0.15
|
|
23
23
|
});
|
|
24
24
|
const searchIconStyles = css({
|
|
@@ -3,12 +3,12 @@ import { css, jsx } from '@emotion/react';
|
|
|
3
3
|
import { useTheme } from '../../theme';
|
|
4
4
|
const skeletonCreateButtonStyles = css({
|
|
5
5
|
height: 32,
|
|
6
|
-
padding:
|
|
6
|
+
padding: `0 ${"var(--ds-space-150, 12px)"}`,
|
|
7
7
|
alignSelf: 'center',
|
|
8
8
|
border: 0,
|
|
9
|
-
borderRadius:
|
|
10
|
-
fontSize:
|
|
11
|
-
fontWeight: 500,
|
|
9
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
10
|
+
fontSize: "var(--ds-font-size-100, 14px)",
|
|
11
|
+
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
12
12
|
lineHeight: 1,
|
|
13
13
|
pointerEvents: 'none',
|
|
14
14
|
':focus, :active, :hover': {
|
|
@@ -18,7 +18,7 @@ const skeletonCreateButtonStyles = css({
|
|
|
18
18
|
},
|
|
19
19
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
20
20
|
'&&': {
|
|
21
|
-
marginLeft:
|
|
21
|
+
marginLeft: "var(--ds-space-150, 12px)"
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
|
|
@@ -3,10 +3,10 @@ import { css, jsx } from '@emotion/react';
|
|
|
3
3
|
import { useTheme } from '../../theme';
|
|
4
4
|
const skeletonIconButtonStyles = css({
|
|
5
5
|
margin: 0,
|
|
6
|
-
marginRight:
|
|
7
|
-
padding:
|
|
6
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
7
|
+
padding: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-075, 6px)"}`,
|
|
8
8
|
border: 0,
|
|
9
|
-
borderRadius:
|
|
9
|
+
borderRadius: "var(--ds-border-radius-circle, 100%)",
|
|
10
10
|
pointerEvents: 'none',
|
|
11
11
|
':focus, :active, :hover': {
|
|
12
12
|
appearance: 'none',
|
|
@@ -24,7 +24,7 @@ const skeletonIconButtonStyles = css({
|
|
|
24
24
|
'& > img': {
|
|
25
25
|
width: 24,
|
|
26
26
|
height: 24,
|
|
27
|
-
borderRadius:
|
|
27
|
+
borderRadius: "var(--ds-border-radius-circle, 100%)",
|
|
28
28
|
verticalAlign: 'middle'
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -4,13 +4,13 @@ import { useTheme } from '../../theme';
|
|
|
4
4
|
const VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR = '--primary-button-before-highlighted-background-color';
|
|
5
5
|
const VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR = '--primary-button-after-dropdown-border-color';
|
|
6
6
|
const primaryButtonSkeletonStyles = css({
|
|
7
|
-
margin:
|
|
8
|
-
padding:
|
|
7
|
+
margin: `0 ${"var(--ds-space-075, 6px)"}`,
|
|
8
|
+
padding: `0 ${"var(--ds-space-050, 4px)"}`,
|
|
9
9
|
position: 'relative',
|
|
10
10
|
appearance: 'none',
|
|
11
11
|
border: 0,
|
|
12
|
-
fontSize:
|
|
13
|
-
fontWeight: 500,
|
|
12
|
+
fontSize: "var(--ds-font-size-100, 14px)",
|
|
13
|
+
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
14
14
|
lineHeight: 1,
|
|
15
15
|
pointerEvents: 'none',
|
|
16
16
|
':focus, :active, :hover': {
|
|
@@ -27,36 +27,38 @@ const isHighlightedStyles = css({
|
|
|
27
27
|
height: 3,
|
|
28
28
|
position: 'absolute',
|
|
29
29
|
bottom: 0,
|
|
30
|
-
left:
|
|
30
|
+
left: "var(--ds-space-025, 2px)",
|
|
31
31
|
backgroundColor: `var(${VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR})`,
|
|
32
|
-
borderTopLeftRadius:
|
|
33
|
-
borderTopRightRadius:
|
|
32
|
+
borderTopLeftRadius: "var(--ds-border-radius-050, 1px)",
|
|
33
|
+
borderTopRightRadius: "var(--ds-border-radius-050, 1px)",
|
|
34
34
|
content: '""'
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
const isHighlightedAndDropdownButtonStyles = css({
|
|
38
38
|
'&:before': {
|
|
39
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
39
40
|
right: -10
|
|
40
41
|
}
|
|
41
42
|
});
|
|
42
43
|
const isHighlightedNotDropdownButtonStyles = css({
|
|
43
44
|
'&:before': {
|
|
44
|
-
right:
|
|
45
|
+
right: "var(--ds-space-025, 2px)"
|
|
45
46
|
}
|
|
46
47
|
});
|
|
47
48
|
const isDropdownButtonStyles = css({
|
|
49
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
48
50
|
marginRight: 18,
|
|
49
51
|
'&:after': {
|
|
50
52
|
display: 'inline-block',
|
|
51
53
|
width: 4,
|
|
52
54
|
height: 4,
|
|
53
|
-
marginLeft:
|
|
55
|
+
marginLeft: "var(--ds-space-050, 4px)",
|
|
54
56
|
position: 'absolute',
|
|
55
57
|
top: 'calc(50% - 4px)',
|
|
56
58
|
left: 'calc(100% - 3px)',
|
|
57
59
|
borderBottom: '2px solid',
|
|
58
60
|
borderColor: `var(${VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR})`,
|
|
59
|
-
borderRadius:
|
|
61
|
+
borderRadius: "var(--ds-border-radius-050, 1px)",
|
|
60
62
|
borderRight: '2px solid',
|
|
61
63
|
content: '""',
|
|
62
64
|
opacity: 0.51,
|
package/dist/es2019/version.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { css, jsx } from '@emotion/react';
|
|
3
3
|
var badgeContainerStyles = css({
|
|
4
4
|
position: 'absolute',
|
|
5
|
-
top:
|
|
6
|
-
right:
|
|
5
|
+
top: "calc(-1 * ".concat("var(--ds-space-050, 4px)", ")"),
|
|
6
|
+
right: "calc(-1 * ".concat("var(--ds-space-025, 2px)", ")"),
|
|
7
7
|
pointerEvents: 'none'
|
|
8
8
|
});
|
|
9
9
|
var containerStyles = css({
|
|
@@ -9,8 +9,8 @@ var buttonHeight = "var(--ds-space-400, 32px)";
|
|
|
9
9
|
var skeletonStyles = css({
|
|
10
10
|
width: 68,
|
|
11
11
|
height: buttonHeight,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
13
|
+
marginInlineStart: "var(--ds-space-150, 12px)",
|
|
14
14
|
opacity: 0.15
|
|
15
15
|
});
|
|
16
16
|
var mobileStyles = css(_defineProperty({}, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
|
|
@@ -6,7 +6,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
6
6
|
import { useTheme } from '../../theme';
|
|
7
7
|
var buttonHeight = "var(--ds-space-400, 32px)";
|
|
8
8
|
var skeletonStyles = css({
|
|
9
|
-
borderRadius:
|
|
9
|
+
borderRadius: "var(--ds-border-radius-circle, 50%)",
|
|
10
10
|
opacity: 0.15
|
|
11
11
|
});
|
|
12
12
|
|
|
@@ -9,7 +9,7 @@ export var getIconButtonTheme = function getIconButtonTheme(_ref) {
|
|
|
9
9
|
spinnerStyles = _current.spinnerStyles;
|
|
10
10
|
return {
|
|
11
11
|
buttonStyles: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, buttonStyles), {}, {
|
|
12
|
-
borderRadius:
|
|
12
|
+
borderRadius: "var(--ds-border-radius-circle, 100%)",
|
|
13
13
|
display: 'flex',
|
|
14
14
|
margin: '0 2px',
|
|
15
15
|
padding: 4,
|
|
@@ -31,8 +31,8 @@ var buttonHighlightedStyles = css({
|
|
|
31
31
|
bottom: 0,
|
|
32
32
|
left: "var(--ds-space-050, 4px)",
|
|
33
33
|
backgroundColor: "var(".concat(VAR_BUTTON_SELECTED_BORDER_COLOR, ")"),
|
|
34
|
-
borderTopLeftRadius:
|
|
35
|
-
borderTopRightRadius:
|
|
34
|
+
borderTopLeftRadius: "var(--ds-border-radius-050, 1px)",
|
|
35
|
+
borderTopRightRadius: "var(--ds-border-radius-050, 1px)",
|
|
36
36
|
content: '""'
|
|
37
37
|
}
|
|
38
38
|
});
|
|
@@ -5,8 +5,8 @@ import { css, jsx } from '@emotion/react';
|
|
|
5
5
|
import ChevronIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
6
6
|
import { PrimaryButton } from '../PrimaryButton';
|
|
7
7
|
var chevronIconStyles = css({
|
|
8
|
-
marginRight:
|
|
9
|
-
marginLeft:
|
|
8
|
+
marginRight: "calc(-1 * ".concat("var(--ds-space-100, 8px)", ")"),
|
|
9
|
+
marginLeft: "calc(-1 * ".concat("var(--ds-space-100, 8px)", ")"),
|
|
10
10
|
opacity: 0.51
|
|
11
11
|
});
|
|
12
12
|
|
|
@@ -26,7 +26,7 @@ var productHomeButtonStyles = css((_css = {
|
|
|
26
26
|
alignItems: 'center',
|
|
27
27
|
background: 'none',
|
|
28
28
|
border: 0,
|
|
29
|
-
borderRadius:
|
|
29
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
30
30
|
color: 'inherit',
|
|
31
31
|
cursor: 'pointer',
|
|
32
32
|
'&::-moz-focus-inner': {
|
|
@@ -48,7 +48,7 @@ var productHomeButtonStyles = css((_css = {
|
|
|
48
48
|
'&:focus-visible': {
|
|
49
49
|
backgroundColor: "var(".concat(VAR_PRODUCT_HOME_BACKGROUND_COLOR_FOCUS, ")"),
|
|
50
50
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
|
|
51
|
-
outline: "2px
|
|
51
|
+
outline: "var(--ds-border-width-100, 2px)".concat(" solid ", "var(--ds-border-focused, #4C9AFF)")
|
|
52
52
|
},
|
|
53
53
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
54
54
|
'div&': {
|
|
@@ -22,7 +22,7 @@ var productHomeButtonStyles = css((_css = {
|
|
|
22
22
|
alignItems: 'center',
|
|
23
23
|
background: 'none',
|
|
24
24
|
border: 0,
|
|
25
|
-
borderRadius:
|
|
25
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
26
26
|
color: 'inherit',
|
|
27
27
|
cursor: 'pointer',
|
|
28
28
|
'&::-moz-focus-inner': {
|
|
@@ -74,7 +74,7 @@ var productIconStyles = css(_defineProperty({
|
|
|
74
74
|
display: 'flex',
|
|
75
75
|
width: 28,
|
|
76
76
|
height: 28,
|
|
77
|
-
borderRadius:
|
|
77
|
+
borderRadius: "var(--ds-border-radius-circle, 50%)",
|
|
78
78
|
opacity: 0.15,
|
|
79
79
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
80
80
|
'& > *': {
|
|
@@ -95,7 +95,7 @@ var siteTitleStyles = css({
|
|
|
95
95
|
width: '100%',
|
|
96
96
|
height: 14,
|
|
97
97
|
backgroundColor: "var(".concat(VAR_SITE_TITLE_BG_COLOR_AFTER, ")"),
|
|
98
|
-
borderRadius:
|
|
98
|
+
borderRadius: "var(--ds-border-radius, 4px)",
|
|
99
99
|
content: '""'
|
|
100
100
|
}
|
|
101
101
|
});
|
|
@@ -11,7 +11,7 @@ import { useTheme } from '../../theme';
|
|
|
11
11
|
import { IconButton } from '../IconButton';
|
|
12
12
|
var searchInputContainerStyles = css(_defineProperty({
|
|
13
13
|
marginRight: "var(--ds-space-100, 8px)",
|
|
14
|
-
marginLeft:
|
|
14
|
+
marginLeft: "var(--ds-space-250, 20px)",
|
|
15
15
|
position: 'relative'
|
|
16
16
|
}, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
|
|
17
17
|
display: 'none !important'
|
|
@@ -20,7 +20,9 @@ var searchInputIconStyles = css({
|
|
|
20
20
|
width: '20px',
|
|
21
21
|
height: '20px',
|
|
22
22
|
position: 'absolute',
|
|
23
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
23
24
|
top: '5px',
|
|
25
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
24
26
|
left: '10px',
|
|
25
27
|
pointerEvents: 'none'
|
|
26
28
|
});
|
|
@@ -32,7 +34,7 @@ var searchInputStyles = css({
|
|
|
32
34
|
backgroundColor: "var(".concat(varSearchBackgroundColor, ")"),
|
|
33
35
|
border: '2px solid',
|
|
34
36
|
borderColor: "var(".concat(varSearchBorderColor, ")"),
|
|
35
|
-
borderRadius:
|
|
37
|
+
borderRadius: "var(--ds-border-radius-200, 6px)",
|
|
36
38
|
color: "var(".concat(varSearchColor, ")"),
|
|
37
39
|
fontSize: "".concat(fontSize, "px"),
|
|
38
40
|
outline: 'none',
|
|
@@ -58,11 +60,11 @@ var SearchComponent = function SearchComponent(props) {
|
|
|
58
60
|
var theme = useTheme();
|
|
59
61
|
var search = theme.mode.search;
|
|
60
62
|
var onChange = function onChange() {
|
|
61
|
-
// @ts-
|
|
63
|
+
// @ts-expect-error
|
|
62
64
|
onClick && onClick.apply(void 0, arguments);
|
|
63
65
|
};
|
|
64
66
|
var onInputClick = function onInputClick() {
|
|
65
|
-
// @ts-
|
|
67
|
+
// @ts-expect-error
|
|
66
68
|
onClick && onClick.apply(void 0, arguments);
|
|
67
69
|
};
|
|
68
70
|
var searchInputDynamicStyles = (_searchInputDynamicSt = {}, _defineProperty(_searchInputDynamicSt, varSearchBackgroundColor, search.default.backgroundColor), _defineProperty(_searchInputDynamicSt, varSearchColor, search.default.color), _defineProperty(_searchInputDynamicSt, varSearchBorderColor, search.default.borderColor), _defineProperty(_searchInputDynamicSt, varSearchFocusBorderColor, search.focus.borderColor), _defineProperty(_searchInputDynamicSt, varSearchHoverBackgroundColor, search.hover.backgroundColor), _searchInputDynamicSt);
|
|
@@ -7,7 +7,7 @@ import { useTheme } from '../../theme';
|
|
|
7
7
|
import { IconButtonSkeleton } from '../IconButton/skeleton';
|
|
8
8
|
var searchInputContainerStyles = css(_defineProperty({
|
|
9
9
|
marginRight: "var(--ds-space-100, 8px)",
|
|
10
|
-
marginLeft:
|
|
10
|
+
marginLeft: "var(--ds-space-250, 20px)",
|
|
11
11
|
position: 'relative'
|
|
12
12
|
}, "@media (max-width: ".concat(CREATE_BREAKPOINT - 1, "px)"), {
|
|
13
13
|
display: 'none !important'
|
|
@@ -17,7 +17,7 @@ var searchInputSkeletonStyles = css({
|
|
|
17
17
|
width: '220px',
|
|
18
18
|
height: "var(--ds-space-400, 32px)",
|
|
19
19
|
padding: "0 ".concat("var(--ds-space-100, 8px)", " 0 ", "var(--ds-space-500, 40px)"),
|
|
20
|
-
borderRadius:
|
|
20
|
+
borderRadius: "var(--ds-border-radius-200, 6px)",
|
|
21
21
|
opacity: 0.15
|
|
22
22
|
});
|
|
23
23
|
var searchIconStyles = css(_defineProperty({}, "@media (min-width: ".concat(CREATE_BREAKPOINT, "px)"), {
|
|
@@ -3,12 +3,12 @@ import { css, jsx } from '@emotion/react';
|
|
|
3
3
|
import { useTheme } from '../../theme';
|
|
4
4
|
var skeletonCreateButtonStyles = css({
|
|
5
5
|
height: 32,
|
|
6
|
-
padding:
|
|
6
|
+
padding: "0 ".concat("var(--ds-space-150, 12px)"),
|
|
7
7
|
alignSelf: 'center',
|
|
8
8
|
border: 0,
|
|
9
|
-
borderRadius:
|
|
10
|
-
fontSize:
|
|
11
|
-
fontWeight: 500,
|
|
9
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
10
|
+
fontSize: "var(--ds-font-size-100, 14px)",
|
|
11
|
+
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
12
12
|
lineHeight: 1,
|
|
13
13
|
pointerEvents: 'none',
|
|
14
14
|
':focus, :active, :hover': {
|
|
@@ -18,7 +18,7 @@ var skeletonCreateButtonStyles = css({
|
|
|
18
18
|
},
|
|
19
19
|
// eslint-disable-next-line @repo/internal/styles/no-nested-styles
|
|
20
20
|
'&&': {
|
|
21
|
-
marginLeft:
|
|
21
|
+
marginLeft: "var(--ds-space-150, 12px)"
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
|
|
@@ -3,10 +3,10 @@ import { css, jsx } from '@emotion/react';
|
|
|
3
3
|
import { useTheme } from '../../theme';
|
|
4
4
|
var skeletonIconButtonStyles = css({
|
|
5
5
|
margin: 0,
|
|
6
|
-
marginRight:
|
|
7
|
-
padding:
|
|
6
|
+
marginRight: "var(--ds-space-050, 4px)",
|
|
7
|
+
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-075, 6px)"),
|
|
8
8
|
border: 0,
|
|
9
|
-
borderRadius:
|
|
9
|
+
borderRadius: "var(--ds-border-radius-circle, 100%)",
|
|
10
10
|
pointerEvents: 'none',
|
|
11
11
|
':focus, :active, :hover': {
|
|
12
12
|
appearance: 'none',
|
|
@@ -24,7 +24,7 @@ var skeletonIconButtonStyles = css({
|
|
|
24
24
|
'& > img': {
|
|
25
25
|
width: 24,
|
|
26
26
|
height: 24,
|
|
27
|
-
borderRadius:
|
|
27
|
+
borderRadius: "var(--ds-border-radius-circle, 100%)",
|
|
28
28
|
verticalAlign: 'middle'
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -7,13 +7,13 @@ import { useTheme } from '../../theme';
|
|
|
7
7
|
var VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR = '--primary-button-before-highlighted-background-color';
|
|
8
8
|
var VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR = '--primary-button-after-dropdown-border-color';
|
|
9
9
|
var primaryButtonSkeletonStyles = css({
|
|
10
|
-
margin:
|
|
11
|
-
padding:
|
|
10
|
+
margin: "0 ".concat("var(--ds-space-075, 6px)"),
|
|
11
|
+
padding: "0 ".concat("var(--ds-space-050, 4px)"),
|
|
12
12
|
position: 'relative',
|
|
13
13
|
appearance: 'none',
|
|
14
14
|
border: 0,
|
|
15
|
-
fontSize:
|
|
16
|
-
fontWeight: 500,
|
|
15
|
+
fontSize: "var(--ds-font-size-100, 14px)",
|
|
16
|
+
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
17
17
|
lineHeight: 1,
|
|
18
18
|
pointerEvents: 'none',
|
|
19
19
|
':focus, :active, :hover': {
|
|
@@ -30,36 +30,38 @@ var isHighlightedStyles = css({
|
|
|
30
30
|
height: 3,
|
|
31
31
|
position: 'absolute',
|
|
32
32
|
bottom: 0,
|
|
33
|
-
left:
|
|
33
|
+
left: "var(--ds-space-025, 2px)",
|
|
34
34
|
backgroundColor: "var(".concat(VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR, ")"),
|
|
35
|
-
borderTopLeftRadius:
|
|
36
|
-
borderTopRightRadius:
|
|
35
|
+
borderTopLeftRadius: "var(--ds-border-radius-050, 1px)",
|
|
36
|
+
borderTopRightRadius: "var(--ds-border-radius-050, 1px)",
|
|
37
37
|
content: '""'
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
var isHighlightedAndDropdownButtonStyles = css({
|
|
41
41
|
'&:before': {
|
|
42
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
42
43
|
right: -10
|
|
43
44
|
}
|
|
44
45
|
});
|
|
45
46
|
var isHighlightedNotDropdownButtonStyles = css({
|
|
46
47
|
'&:before': {
|
|
47
|
-
right:
|
|
48
|
+
right: "var(--ds-space-025, 2px)"
|
|
48
49
|
}
|
|
49
50
|
});
|
|
50
51
|
var isDropdownButtonStyles = css({
|
|
52
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage-spacing
|
|
51
53
|
marginRight: 18,
|
|
52
54
|
'&:after': {
|
|
53
55
|
display: 'inline-block',
|
|
54
56
|
width: 4,
|
|
55
57
|
height: 4,
|
|
56
|
-
marginLeft:
|
|
58
|
+
marginLeft: "var(--ds-space-050, 4px)",
|
|
57
59
|
position: 'absolute',
|
|
58
60
|
top: 'calc(50% - 4px)',
|
|
59
61
|
left: 'calc(100% - 3px)',
|
|
60
62
|
borderBottom: '2px solid',
|
|
61
63
|
borderColor: "var(".concat(VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR, ")"),
|
|
62
|
-
borderRadius:
|
|
64
|
+
borderRadius: "var(--ds-border-radius-050, 1px)",
|
|
63
65
|
borderRight: '2px solid',
|
|
64
66
|
content: '""',
|
|
65
67
|
opacity: 0.51,
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/atlassian-navigation",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.7",
|
|
4
4
|
"description": "A horizontal navigation component for Atlassian products.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"@atlaskit/icon": "^21.12.0",
|
|
39
39
|
"@atlaskit/logo": "*",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
41
|
-
"@atlaskit/popup": "^1.
|
|
41
|
+
"@atlaskit/popup": "^1.7.0",
|
|
42
42
|
"@atlaskit/primitives": "^0.12.0",
|
|
43
43
|
"@atlaskit/theme": "^12.5.0",
|
|
44
|
-
"@atlaskit/tokens": "^1.
|
|
44
|
+
"@atlaskit/tokens": "^1.6.0",
|
|
45
45
|
"@atlaskit/tooltip": "^17.8.0",
|
|
46
46
|
"@atlaskit/width-detector": "^4.1.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
@@ -92,7 +92,8 @@
|
|
|
92
92
|
"static"
|
|
93
93
|
],
|
|
94
94
|
"design-tokens": [
|
|
95
|
-
"color"
|
|
95
|
+
"color",
|
|
96
|
+
"spacing"
|
|
96
97
|
],
|
|
97
98
|
"deprecation": "no-deprecated-imports"
|
|
98
99
|
}
|