@atlaskit/atlassian-navigation 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -1
- package/README.md +7 -3
- package/dist/cjs/components/AtlassianNavigation/index.js +6 -2
- package/dist/cjs/components/AtlassianNavigation/skeleton.js +6 -2
- package/dist/cjs/components/BadgeContainer/index.js +3 -0
- package/dist/cjs/components/Create/index.js +8 -3
- package/dist/cjs/components/Create/skeleton.js +4 -0
- package/dist/cjs/components/IconButton/skeleton.js +3 -1
- package/dist/cjs/components/PrimaryButton/index.js +5 -1
- package/dist/cjs/components/PrimaryButton/skeleton.js +3 -0
- package/dist/cjs/components/PrimaryDropdownButton/index.js +3 -0
- package/dist/cjs/components/PrimaryItemsContainer/index.js +4 -1
- package/dist/cjs/components/PrimaryItemsContainer/skeleton.js +3 -0
- package/dist/cjs/components/ProductHome/custom-product-home.js +9 -2
- package/dist/cjs/components/ProductHome/product-home.js +12 -5
- package/dist/cjs/components/ProductHome/skeleton.js +9 -3
- package/dist/cjs/components/Search/index.js +12 -0
- package/dist/cjs/components/Search/skeleton.js +7 -0
- package/dist/cjs/components/SkeletonCreateButton/index.js +5 -1
- package/dist/cjs/components/SkeletonIconButton/index.js +9 -2
- package/dist/cjs/components/SkeletonPrimaryButton/index.js +9 -1
- package/dist/es2019/components/AtlassianNavigation/index.js +6 -2
- package/dist/es2019/components/AtlassianNavigation/skeleton.js +6 -2
- package/dist/es2019/components/BadgeContainer/index.js +3 -0
- package/dist/es2019/components/Create/index.js +10 -5
- package/dist/es2019/components/Create/skeleton.js +5 -1
- package/dist/es2019/components/IconButton/skeleton.js +3 -0
- package/dist/es2019/components/PrimaryButton/index.js +5 -1
- package/dist/es2019/components/PrimaryButton/skeleton.js +3 -0
- package/dist/es2019/components/PrimaryDropdownButton/index.js +3 -0
- package/dist/es2019/components/PrimaryItemsContainer/index.js +4 -1
- package/dist/es2019/components/PrimaryItemsContainer/skeleton.js +3 -0
- package/dist/es2019/components/ProductHome/custom-product-home.js +14 -7
- package/dist/es2019/components/ProductHome/product-home.js +17 -10
- package/dist/es2019/components/ProductHome/skeleton.js +13 -7
- package/dist/es2019/components/Search/index.js +14 -2
- package/dist/es2019/components/Search/skeleton.js +9 -2
- package/dist/es2019/components/SkeletonCreateButton/index.js +5 -1
- package/dist/es2019/components/SkeletonIconButton/index.js +9 -2
- package/dist/es2019/components/SkeletonPrimaryButton/index.js +9 -0
- package/dist/esm/components/AtlassianNavigation/index.js +6 -2
- package/dist/esm/components/AtlassianNavigation/skeleton.js +6 -2
- package/dist/esm/components/BadgeContainer/index.js +3 -0
- package/dist/esm/components/Create/index.js +8 -3
- package/dist/esm/components/Create/skeleton.js +4 -0
- package/dist/esm/components/IconButton/skeleton.js +3 -0
- package/dist/esm/components/PrimaryButton/index.js +5 -1
- package/dist/esm/components/PrimaryButton/skeleton.js +3 -0
- package/dist/esm/components/PrimaryDropdownButton/index.js +3 -0
- package/dist/esm/components/PrimaryItemsContainer/index.js +4 -1
- package/dist/esm/components/PrimaryItemsContainer/skeleton.js +3 -0
- package/dist/esm/components/ProductHome/custom-product-home.js +9 -2
- package/dist/esm/components/ProductHome/product-home.js +12 -5
- package/dist/esm/components/ProductHome/skeleton.js +9 -3
- package/dist/esm/components/Search/index.js +12 -0
- package/dist/esm/components/Search/skeleton.js +7 -0
- package/dist/esm/components/SkeletonCreateButton/index.js +5 -1
- package/dist/esm/components/SkeletonIconButton/index.js +9 -2
- package/dist/esm/components/SkeletonPrimaryButton/index.js +9 -0
- package/dist/types/components/AtlassianNavigation/index.d.ts +3 -0
- package/dist/types/components/AtlassianNavigation/skeleton.d.ts +3 -0
- package/dist/types/components/AtlassianNavigation/types.d.ts +24 -24
- package/dist/types/components/BadgeContainer/index.d.ts +3 -0
- package/dist/types/components/IconButton/skeleton.d.ts +3 -0
- package/dist/types/components/PrimaryButton/skeleton.d.ts +3 -0
- package/dist/types/components/ProductHome/skeleton.d.ts +4 -1
- package/dist/types/components/ProductHome/types.d.ts +22 -22
- package/dist/types/components/SkeletonCreateButton/index.d.ts +4 -1
- package/dist/types/components/SkeletonIconButton/index.d.ts +4 -1
- package/dist/types/components/SkeletonPrimaryButton/index.d.ts +3 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/skeleton-notification-button.d.ts +1 -1
- package/dist/types/skeleton-settings-button.d.ts +1 -1
- package/dist/types/skeleton-switcher-button.d.ts +1 -1
- package/dist/types-ts4.5/components/AtlassianNavigation/index.d.ts +3 -0
- package/dist/types-ts4.5/components/AtlassianNavigation/skeleton.d.ts +3 -0
- package/dist/types-ts4.5/components/AtlassianNavigation/types.d.ts +24 -24
- package/dist/types-ts4.5/components/BadgeContainer/index.d.ts +3 -0
- package/dist/types-ts4.5/components/IconButton/skeleton.d.ts +3 -0
- package/dist/types-ts4.5/components/PrimaryButton/skeleton.d.ts +3 -0
- package/dist/types-ts4.5/components/ProductHome/skeleton.d.ts +4 -1
- package/dist/types-ts4.5/components/ProductHome/types.d.ts +22 -22
- package/dist/types-ts4.5/components/SkeletonCreateButton/index.d.ts +4 -1
- package/dist/types-ts4.5/components/SkeletonIconButton/index.d.ts +4 -1
- package/dist/types-ts4.5/components/SkeletonPrimaryButton/index.d.ts +3 -0
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/skeleton-notification-button.d.ts +1 -1
- package/dist/types-ts4.5/skeleton-settings-button.d.ts +1 -1
- package/dist/types-ts4.5/skeleton-switcher-button.d.ts +1 -1
- package/package.json +108 -108
- package/report.api.md +162 -183
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/atlassian-navigation
|
|
2
2
|
|
|
3
|
+
## 4.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#111696](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/111696)
|
|
8
|
+
[`20c2d58f6f8a9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/20c2d58f6f8a9) -
|
|
9
|
+
Explicitly set jsxRuntime to classic via pragma comments in order to avoid issues where jsxRuntime
|
|
10
|
+
is implicitly set to automatic.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 4.0.0
|
|
4
17
|
|
|
5
18
|
### Major Changes
|
|
@@ -32,7 +45,7 @@
|
|
|
32
45
|
|
|
33
46
|
- [#96462](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/96462)
|
|
34
47
|
[`a21b8dc426e8`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a21b8dc426e8) -
|
|
35
|
-
Add support for React 18.
|
|
48
|
+
Add support for React 18 in non-strict mode.
|
|
36
49
|
|
|
37
50
|
## 3.5.0
|
|
38
51
|
|
package/README.md
CHANGED
|
@@ -10,7 +10,11 @@ yarn add @atlaskit/atlassian-navigation
|
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
|
-
Detailed docs and example usage can be found
|
|
13
|
+
Detailed docs and example usage can be found
|
|
14
|
+
[here](https://atlassian.design/components/atlassian-navigation).
|
|
14
15
|
|
|
15
|
-
To add side navigation, use
|
|
16
|
-
|
|
16
|
+
To add side navigation, use
|
|
17
|
+
[@atlaskit/side-navigation](https://atlaskit.atlassian.com/packages/navigation/side-navigation) To
|
|
18
|
+
control the layout of these navigation elements and add expand/collapse functionality to
|
|
19
|
+
`side-navigation`, use
|
|
20
|
+
[@atlaskit/page-layout](https://atlaskit.atlassian.com/packages/design-system/page-layout).
|
|
@@ -12,11 +12,15 @@ var _constants = require("../../common/constants");
|
|
|
12
12
|
var _theme = require("../../theme");
|
|
13
13
|
var _PrimaryItemsContainer = require("../PrimaryItemsContainer");
|
|
14
14
|
var _PrimaryItemsContainerV = require("../PrimaryItemsContainerV2");
|
|
15
|
+
/**
|
|
16
|
+
* @jsxRuntime classic
|
|
17
|
+
*/
|
|
15
18
|
/** @jsx jsx */
|
|
16
19
|
|
|
17
20
|
var containerStyles = (0, _react.css)({
|
|
18
21
|
display: 'flex',
|
|
19
22
|
boxSizing: 'border-box',
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
20
24
|
height: _constants.HORIZONTAL_GLOBAL_NAV_HEIGHT,
|
|
21
25
|
position: 'relative',
|
|
22
26
|
alignItems: 'center',
|
|
@@ -32,7 +36,7 @@ var leftStyles = (0, _react.css)({
|
|
|
32
36
|
height: 'inherit',
|
|
33
37
|
alignItems: 'center',
|
|
34
38
|
flexGrow: 1,
|
|
35
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
39
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
36
40
|
'& > *': {
|
|
37
41
|
flexShrink: 0
|
|
38
42
|
}
|
|
@@ -41,7 +45,7 @@ var rightStyles = (0, _react.css)({
|
|
|
41
45
|
display: 'flex',
|
|
42
46
|
alignItems: 'center',
|
|
43
47
|
flexShrink: 0,
|
|
44
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
48
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
45
49
|
'& > *': {
|
|
46
50
|
flexShrink: 0,
|
|
47
51
|
marginInlineEnd: "var(--ds-space-050, 4px)"
|
|
@@ -13,11 +13,15 @@ var _skeleton2 = require("../PrimaryItemsContainer/skeleton");
|
|
|
13
13
|
var _skeleton3 = require("../ProductHome/skeleton");
|
|
14
14
|
var _skeleton4 = require("../Profile/skeleton");
|
|
15
15
|
var _skeleton5 = require("../Search/skeleton");
|
|
16
|
+
/**
|
|
17
|
+
* @jsxRuntime classic
|
|
18
|
+
*/
|
|
16
19
|
/** @jsx jsx */
|
|
17
20
|
|
|
18
21
|
var containerStyles = (0, _react.css)({
|
|
19
22
|
display: 'flex',
|
|
20
23
|
boxSizing: 'border-box',
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
21
25
|
height: _constants.HORIZONTAL_GLOBAL_NAV_HEIGHT,
|
|
22
26
|
position: 'relative',
|
|
23
27
|
alignItems: 'center',
|
|
@@ -33,7 +37,7 @@ var leftStyles = (0, _react.css)({
|
|
|
33
37
|
height: 'inherit',
|
|
34
38
|
alignItems: 'center',
|
|
35
39
|
flexGrow: 1,
|
|
36
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
40
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
37
41
|
'& > *': {
|
|
38
42
|
flexShrink: 0
|
|
39
43
|
}
|
|
@@ -42,7 +46,7 @@ var rightStyles = (0, _react.css)({
|
|
|
42
46
|
display: 'flex',
|
|
43
47
|
alignItems: 'center',
|
|
44
48
|
flexShrink: 0,
|
|
45
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
49
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
46
50
|
'& > *': {
|
|
47
51
|
flexShrink: 0,
|
|
48
52
|
marginInlineEnd: "var(--ds-space-050, 4px)"
|
|
@@ -15,20 +15,25 @@ var _constants = require("../../common/constants");
|
|
|
15
15
|
var _theme = require("../../theme");
|
|
16
16
|
var _IconButton = require("../IconButton");
|
|
17
17
|
var _styles = require("./styles");
|
|
18
|
+
/**
|
|
19
|
+
* @jsxRuntime classic
|
|
20
|
+
*/
|
|
18
21
|
/** @jsx jsx */
|
|
19
22
|
|
|
20
23
|
var wrapperStyles = (0, _react2.css)({
|
|
21
24
|
display: 'flex',
|
|
22
25
|
alignItems: 'center',
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
27
|
'& [data-hide-on-smallscreens]': (0, _defineProperty2.default)({}, "@media (max-width: ".concat(_constants.CREATE_BREAKPOINT - 1, "px)"), {
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
25
29
|
display: 'none !important'
|
|
26
30
|
}),
|
|
27
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
31
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
28
32
|
'& [data-hide-on-largescreens]': (0, _defineProperty2.default)({}, "@media (min-width: ".concat(_constants.CREATE_BREAKPOINT, "px)"), {
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
29
34
|
display: 'none !important'
|
|
30
35
|
}),
|
|
31
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
36
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
32
37
|
'&&': {
|
|
33
38
|
marginInlineStart: "var(--ds-space-150, 12px)"
|
|
34
39
|
}
|
|
@@ -11,6 +11,9 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
var _constants = require("../../common/constants");
|
|
12
12
|
var _theme = require("../../theme");
|
|
13
13
|
var _skeleton = require("../IconButton/skeleton");
|
|
14
|
+
/**
|
|
15
|
+
* @jsxRuntime classic
|
|
16
|
+
*/
|
|
14
17
|
/** @jsx jsx */
|
|
15
18
|
|
|
16
19
|
var buttonHeight = "var(--ds-space-400, 32px)";
|
|
@@ -22,6 +25,7 @@ var skeletonStyles = (0, _react2.css)({
|
|
|
22
25
|
opacity: 0.15
|
|
23
26
|
});
|
|
24
27
|
var mobileStyles = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (max-width: ".concat(_constants.CREATE_BREAKPOINT - 1, "px)"), {
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
25
29
|
display: 'none !important'
|
|
26
30
|
}));
|
|
27
31
|
|
|
@@ -9,7 +9,9 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _theme = require("../../theme");
|
|
11
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
|
|
13
|
+
* @jsxRuntime classic
|
|
14
|
+
*/ /** @jsx jsx */
|
|
13
15
|
var buttonHeight = "var(--ds-space-400, 32px)";
|
|
14
16
|
var skeletonStyles = (0, _react.css)({
|
|
15
17
|
borderRadius: "var(--ds-border-radius-circle, 50%)",
|
|
@@ -15,6 +15,9 @@ var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
|
15
15
|
var _theme = require("../../theme");
|
|
16
16
|
var _styles = require("./styles");
|
|
17
17
|
var _excluded = ["children", "testId", "tooltip", "isSelected", "isHighlighted"];
|
|
18
|
+
/**
|
|
19
|
+
* @jsxRuntime classic
|
|
20
|
+
*/
|
|
18
21
|
/** @jsx jsx */
|
|
19
22
|
var VAR_BUTTON_SELECTED_COLOR = '--button-selected-color';
|
|
20
23
|
var VAR_BUTTON_SELECTED_BORDER_COLOR = '--button-selected-border-color';
|
|
@@ -27,10 +30,11 @@ var buttonBaseStyles = (0, _react2.css)({
|
|
|
27
30
|
flexDirection: 'column'
|
|
28
31
|
});
|
|
29
32
|
var buttonHighlightedStyles = (0, _react2.css)({
|
|
30
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
33
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
31
34
|
'&& > *': {
|
|
32
35
|
color: "var(".concat(VAR_BUTTON_SELECTED_COLOR, ")")
|
|
33
36
|
},
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
34
38
|
'&:after': {
|
|
35
39
|
height: 3,
|
|
36
40
|
position: 'absolute',
|
|
@@ -11,6 +11,9 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
|
|
12
12
|
var _primitives = require("@atlaskit/primitives");
|
|
13
13
|
var _PrimaryButton = require("../PrimaryButton");
|
|
14
|
+
/**
|
|
15
|
+
* @jsxRuntime classic
|
|
16
|
+
*/
|
|
14
17
|
/** @jsx jsx */
|
|
15
18
|
|
|
16
19
|
var chevronIconStylesWithSpacingFixStyles = (0, _primitives.xcss)({
|
|
@@ -14,6 +14,9 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
14
14
|
var _widthDetector = require("@atlaskit/width-detector");
|
|
15
15
|
var _overflow = require("../../controllers/overflow");
|
|
16
16
|
var _PrimaryDropdownButton = require("../PrimaryDropdownButton");
|
|
17
|
+
/**
|
|
18
|
+
* @jsxRuntime classic
|
|
19
|
+
*/
|
|
17
20
|
/** @jsx jsx */
|
|
18
21
|
|
|
19
22
|
var containerStyles = (0, _react2.css)({
|
|
@@ -24,7 +27,7 @@ var containerStyles = (0, _react2.css)({
|
|
|
24
27
|
flexBasis: 0,
|
|
25
28
|
flexGrow: 1,
|
|
26
29
|
flexShrink: 0,
|
|
27
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
30
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
28
31
|
'& > *': {
|
|
29
32
|
margin: "0 ".concat("var(--ds-space-050, 4px)"),
|
|
30
33
|
flexShrink: 0
|
|
@@ -7,6 +7,9 @@ exports.PrimaryItemsContainerSkeleton = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _react2 = require("@emotion/react");
|
|
9
9
|
var _skeleton = require("../PrimaryButton/skeleton");
|
|
10
|
+
/**
|
|
11
|
+
* @jsxRuntime classic
|
|
12
|
+
*/
|
|
10
13
|
/** @jsx jsx */
|
|
11
14
|
|
|
12
15
|
var primaryButtonSkeletonStyles = (0, _react2.css)({
|
|
@@ -17,6 +17,9 @@ var _theme = require("../../theme");
|
|
|
17
17
|
var _utils = require("./utils");
|
|
18
18
|
var _excluded = ["iconAlt", "iconUrl", "logoAlt", "logoUrl", "href", "onClick", "siteTitle", "onMouseDown", "testId", "logoMaxWidth"];
|
|
19
19
|
var _css3;
|
|
20
|
+
/**
|
|
21
|
+
* @jsxRuntime classic
|
|
22
|
+
*/
|
|
20
23
|
/** @jsx jsx */
|
|
21
24
|
var VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
|
|
22
25
|
var VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE = '--product-home-bg-color-active';
|
|
@@ -53,9 +56,11 @@ var productHomeButtonStyles = (0, _react2.css)((_css3 = {
|
|
|
53
56
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
54
57
|
color: 'inherit',
|
|
55
58
|
cursor: 'pointer',
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
56
60
|
'&::-moz-focus-inner': {
|
|
57
61
|
border: 0
|
|
58
62
|
},
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
59
64
|
'&:first-of-type': {
|
|
60
65
|
marginInlineStart: 0
|
|
61
66
|
},
|
|
@@ -74,7 +79,7 @@ var productHomeButtonStyles = (0, _react2.css)((_css3 = {
|
|
|
74
79
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
|
|
75
80
|
outline: "2px solid ".concat("var(--ds-border-focused, ".concat(_colors.B200, ")"))
|
|
76
81
|
},
|
|
77
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
82
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
78
83
|
'div&': {
|
|
79
84
|
pointerEvents: 'none'
|
|
80
85
|
}
|
|
@@ -155,7 +160,9 @@ var CustomProductHome = function CustomProductHome(props) {
|
|
|
155
160
|
style: {
|
|
156
161
|
borderRight: theme.mode.productHome.borderRight
|
|
157
162
|
},
|
|
158
|
-
css: [siteTitleStyles,
|
|
163
|
+
css: [siteTitleStyles,
|
|
164
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
165
|
+
(0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.navigation-v2-no-jank_5yhbd') && hideSiteTitleStyles],
|
|
159
166
|
"data-testid": testId && "".concat(testId, "-site-title")
|
|
160
167
|
}, siteTitle));
|
|
161
168
|
};
|
|
@@ -16,6 +16,9 @@ var _theme = require("../../theme");
|
|
|
16
16
|
var _utils = require("./utils");
|
|
17
17
|
var _excluded = ["icon", "logo", "siteTitle", "onClick", "href", "onMouseDown", "testId", "logoMaxWidth"];
|
|
18
18
|
var _css;
|
|
19
|
+
/**
|
|
20
|
+
* @jsxRuntime classic
|
|
21
|
+
*/
|
|
19
22
|
/** @jsx jsx */
|
|
20
23
|
var VAR_LOGO_MAX_WIDTH = '--logo-max-width';
|
|
21
24
|
var VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
|
|
@@ -36,9 +39,11 @@ var productHomeButtonStyles = (0, _react2.css)((_css = {
|
|
|
36
39
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
37
40
|
color: 'inherit',
|
|
38
41
|
cursor: 'pointer',
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
39
43
|
'&::-moz-focus-inner': {
|
|
40
44
|
border: 0
|
|
41
45
|
},
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
42
47
|
'&:first-of-type': {
|
|
43
48
|
marginInlineStart: 0
|
|
44
49
|
},
|
|
@@ -57,7 +62,7 @@ var productHomeButtonStyles = (0, _react2.css)((_css = {
|
|
|
57
62
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_FOCUS, ")"),
|
|
58
63
|
outline: "var(--ds-border-width-outline, 2px)".concat(" solid ", "var(--ds-border-focused, #4C9AFF)")
|
|
59
64
|
},
|
|
60
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
65
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
61
66
|
'div&': {
|
|
62
67
|
pointerEvents: 'none'
|
|
63
68
|
}
|
|
@@ -71,11 +76,11 @@ var productLogoStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
|
71
76
|
// productHome is aligned correctly
|
|
72
77
|
display: 'flex',
|
|
73
78
|
maxWidth: "var(".concat(VAR_LOGO_MAX_WIDTH, ")"),
|
|
74
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
79
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
75
80
|
'& > *': {
|
|
76
81
|
maxHeight: 24
|
|
77
82
|
},
|
|
78
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
83
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
79
84
|
'& > span > svg': {
|
|
80
85
|
maxWidth: "var(".concat(VAR_LOGO_MAX_WIDTH, ")")
|
|
81
86
|
}
|
|
@@ -89,7 +94,7 @@ var productIconStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
|
89
94
|
// Ensure anything passed into
|
|
90
95
|
// productHome is aligned correctly
|
|
91
96
|
display: 'flex',
|
|
92
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
97
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
93
98
|
'& > *': {
|
|
94
99
|
maxHeight: 24
|
|
95
100
|
}
|
|
@@ -176,7 +181,9 @@ var ProductHome = function ProductHome(_ref) {
|
|
|
176
181
|
style: {
|
|
177
182
|
borderRight: theme.mode.productHome.borderRight
|
|
178
183
|
},
|
|
179
|
-
css: [siteTitleStyles,
|
|
184
|
+
css: [siteTitleStyles,
|
|
185
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
186
|
+
(0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.navigation-v2-no-jank_5yhbd') && featureFlaggedSiteTitleStyles],
|
|
180
187
|
"data-testid": testId && "".concat(testId, "-site-title")
|
|
181
188
|
}, siteTitle));
|
|
182
189
|
};
|
|
@@ -11,6 +11,9 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
var _constants = require("../../common/constants");
|
|
12
12
|
var _theme = require("../../theme");
|
|
13
13
|
var _css;
|
|
14
|
+
/**
|
|
15
|
+
* @jsxRuntime classic
|
|
16
|
+
*/
|
|
14
17
|
/** @jsx jsx */
|
|
15
18
|
var VAR_PRODUCT_HOME_COLOR_ACTIVE = '--product-home-color-active';
|
|
16
19
|
var VAR_PRODUCT_HOME_BACKGROUND_COLOR_ACTIVE = '--product-home-bg-color-active';
|
|
@@ -31,9 +34,11 @@ var productHomeButtonStyles = (0, _react2.css)((_css = {
|
|
|
31
34
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
32
35
|
color: 'inherit',
|
|
33
36
|
cursor: 'pointer',
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
34
38
|
'&::-moz-focus-inner': {
|
|
35
39
|
border: 0
|
|
36
40
|
},
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
37
42
|
'&:first-of-type': {
|
|
38
43
|
marginInlineStart: 0
|
|
39
44
|
},
|
|
@@ -53,7 +58,7 @@ var productHomeButtonStyles = (0, _react2.css)((_css = {
|
|
|
53
58
|
boxShadow: "var(".concat(VAR_PRODUCT_HOME_BOX_SHADOW_HOVER, ")"),
|
|
54
59
|
color: "var(".concat(VAR_PRODUCT_HOME_COLOR_HOVER, ")")
|
|
55
60
|
},
|
|
56
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
61
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
57
62
|
'div&': {
|
|
58
63
|
pointerEvents: 'none'
|
|
59
64
|
}
|
|
@@ -69,7 +74,7 @@ var productLogoStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
|
69
74
|
height: 24,
|
|
70
75
|
maxHeight: 28,
|
|
71
76
|
opacity: 0.15,
|
|
72
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
77
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
73
78
|
'& > *': {
|
|
74
79
|
maxHeight: 24
|
|
75
80
|
}
|
|
@@ -82,7 +87,7 @@ var productIconStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
|
82
87
|
height: 28,
|
|
83
88
|
borderRadius: "var(--ds-border-radius-circle, 50%)",
|
|
84
89
|
opacity: 0.15,
|
|
85
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
90
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
86
91
|
'& > *': {
|
|
87
92
|
maxHeight: 24
|
|
88
93
|
}
|
|
@@ -97,6 +102,7 @@ var siteTitleStyles = (0, _react2.css)({
|
|
|
97
102
|
marginInlineEnd: "var(--ds-space-050, 4px)",
|
|
98
103
|
marginInlineStart: "var(--ds-space-050, 4px)",
|
|
99
104
|
paddingInlineEnd: "var(--ds-space-200, 16px)",
|
|
105
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
100
106
|
'&:after': {
|
|
101
107
|
width: '100%',
|
|
102
108
|
height: 14,
|
|
@@ -15,12 +15,16 @@ var _constants = require("../../common/constants");
|
|
|
15
15
|
var _theme = require("../../theme");
|
|
16
16
|
var _IconButton = require("../IconButton");
|
|
17
17
|
var _excluded = ["placeholder", "tooltip", "label", "value"];
|
|
18
|
+
/**
|
|
19
|
+
* @jsxRuntime classic
|
|
20
|
+
*/
|
|
18
21
|
/** @jsx jsx */
|
|
19
22
|
var searchInputContainerStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
20
23
|
position: 'relative',
|
|
21
24
|
marginInlineEnd: "var(--ds-space-100, 8px)",
|
|
22
25
|
marginInlineStart: "var(--ds-space-250, 20px)"
|
|
23
26
|
}, "@media (max-width: ".concat(_constants.CREATE_BREAKPOINT - 1, "px)"), {
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
24
28
|
display: 'none !important'
|
|
25
29
|
}));
|
|
26
30
|
var searchInputIconStyles = (0, _react2.css)({
|
|
@@ -34,6 +38,7 @@ var searchInputIconStyles = (0, _react2.css)({
|
|
|
34
38
|
var newSearchBorderStyles = (0, _react2.css)({
|
|
35
39
|
border: "var(--ds-border-width, 1px)".concat(" solid"),
|
|
36
40
|
'&:focus': {
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
42
|
boxShadow: "inset 0 0 0 ".concat("var(--ds-border-width, 1px)", " var(", _constants.varSearchFocusBorderColor, ")")
|
|
38
43
|
}
|
|
39
44
|
});
|
|
@@ -42,24 +47,31 @@ var searchInputStyles = (0, _react2.css)({
|
|
|
42
47
|
width: '220px',
|
|
43
48
|
height: "var(--ds-space-400, 32px)",
|
|
44
49
|
padding: "0 ".concat("var(--ds-space-100, 8px)", " 0 ", "var(--ds-space-500, 40px)"),
|
|
50
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
45
51
|
backgroundColor: "var(".concat(_constants.varSearchBackgroundColor, ")"),
|
|
46
52
|
border: '2px solid',
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
47
54
|
borderColor: "var(".concat(_constants.varSearchBorderColor, ")"),
|
|
48
55
|
borderRadius: "var(--ds-border-radius-200, 6px)",
|
|
56
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
49
57
|
color: "var(".concat(_constants.varSearchColor, ")"),
|
|
50
58
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
51
59
|
outline: 'none',
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
52
61
|
'::placeholder': {
|
|
53
62
|
color: 'inherit'
|
|
54
63
|
},
|
|
55
64
|
'&:focus': {
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
56
66
|
borderColor: "var(".concat(_constants.varSearchFocusBorderColor, ")")
|
|
57
67
|
},
|
|
58
68
|
'&:hover': {
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
59
70
|
backgroundColor: "var(".concat(_constants.varSearchHoverBackgroundColor, ")")
|
|
60
71
|
}
|
|
61
72
|
});
|
|
62
73
|
var searchIconStyles = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (min-width: ".concat(_constants.CREATE_BREAKPOINT, "px)"), {
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
63
75
|
display: 'none !important'
|
|
64
76
|
}));
|
|
65
77
|
var SearchComponent = function SearchComponent(props) {
|
|
@@ -11,13 +11,19 @@ var _react2 = require("@emotion/react");
|
|
|
11
11
|
var _constants = require("../../common/constants");
|
|
12
12
|
var _theme = require("../../theme");
|
|
13
13
|
var _skeleton = require("../IconButton/skeleton");
|
|
14
|
+
/**
|
|
15
|
+
* @jsxRuntime classic
|
|
16
|
+
*/
|
|
14
17
|
/** @jsx jsx */
|
|
15
18
|
|
|
16
19
|
var searchInputContainerStyles = (0, _react2.css)((0, _defineProperty2.default)({
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/no-physical-properties
|
|
17
21
|
marginRight: "var(--ds-space-100, 8px)",
|
|
22
|
+
// eslint-disable-next-line @atlaskit/design-system/no-physical-properties
|
|
18
23
|
marginLeft: "var(--ds-space-250, 20px)",
|
|
19
24
|
position: 'relative'
|
|
20
25
|
}, "@media (max-width: ".concat(_constants.CREATE_BREAKPOINT - 1, "px)"), {
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
21
27
|
display: 'none !important'
|
|
22
28
|
}));
|
|
23
29
|
var searchInputSkeletonStyles = (0, _react2.css)({
|
|
@@ -29,6 +35,7 @@ var searchInputSkeletonStyles = (0, _react2.css)({
|
|
|
29
35
|
opacity: 0.15
|
|
30
36
|
});
|
|
31
37
|
var searchIconStyles = (0, _react2.css)((0, _defineProperty2.default)({}, "@media (min-width: ".concat(_constants.CREATE_BREAKPOINT, "px)"), {
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
32
39
|
display: 'none !important'
|
|
33
40
|
}));
|
|
34
41
|
|
|
@@ -6,6 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.SkeletonCreateButton = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _theme = require("../../theme");
|
|
9
|
+
/**
|
|
10
|
+
* @jsxRuntime classic
|
|
11
|
+
*/
|
|
9
12
|
/** @jsx jsx */
|
|
10
13
|
|
|
11
14
|
var skeletonCreateButtonStyles = (0, _react.css)({
|
|
@@ -17,12 +20,13 @@ var skeletonCreateButtonStyles = (0, _react.css)({
|
|
|
17
20
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
18
21
|
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
19
22
|
pointerEvents: 'none',
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
20
24
|
':focus, :active, :hover': {
|
|
21
25
|
appearance: 'none',
|
|
22
26
|
border: 0,
|
|
23
27
|
outline: 0
|
|
24
28
|
},
|
|
25
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
29
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
26
30
|
'&&': {
|
|
27
31
|
marginInlineStart: "var(--ds-space-150, 12px)"
|
|
28
32
|
}
|
|
@@ -6,28 +6,35 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.SkeletonIconButton = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _theme = require("../../theme");
|
|
9
|
+
/**
|
|
10
|
+
* @jsxRuntime classic
|
|
11
|
+
*/
|
|
9
12
|
/** @jsx jsx */
|
|
10
13
|
|
|
11
14
|
var skeletonIconButtonStyles = (0, _react.css)({
|
|
12
15
|
margin: 0,
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/no-physical-properties
|
|
13
17
|
marginRight: "var(--ds-space-050, 4px)",
|
|
14
18
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-075, 6px)"),
|
|
15
19
|
border: 0,
|
|
16
20
|
borderRadius: "var(--ds-border-radius-circle, 100%)",
|
|
17
21
|
pointerEvents: 'none',
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
18
23
|
':focus, :active, :hover': {
|
|
19
24
|
appearance: 'none',
|
|
20
25
|
border: 0,
|
|
21
26
|
outline: 0
|
|
22
27
|
},
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
23
29
|
'&:only-of-type': {
|
|
30
|
+
// eslint-disable-next-line @atlaskit/design-system/no-physical-properties
|
|
24
31
|
marginRight: 0
|
|
25
32
|
},
|
|
26
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
33
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
34
|
'& > span': {
|
|
28
35
|
lineHeight: 'normal'
|
|
29
36
|
},
|
|
30
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
37
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
31
38
|
'& > img': {
|
|
32
39
|
width: 24,
|
|
33
40
|
height: 24,
|
|
@@ -9,7 +9,9 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _theme = require("../../theme");
|
|
11
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /**
|
|
13
|
+
* @jsxRuntime classic
|
|
14
|
+
*/ /** @jsx jsx */
|
|
13
15
|
var VAR_PRIMARY_BUTTON_BEFORE_HIGHLIGHTED_BACKGROUND_COLOR = '--primary-button-before-highlighted-background-color';
|
|
14
16
|
var VAR_PRIMARY_BUTTON_AFTER_DROPDOWN_BORDER_COLOR = '--primary-button-after-dropdown-border-color';
|
|
15
17
|
var primaryButtonSkeletonStyles = (0, _react.css)({
|
|
@@ -21,16 +23,19 @@ var primaryButtonSkeletonStyles = (0, _react.css)({
|
|
|
21
23
|
font: "var(--ds-font-body, normal 400 14px/20px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
22
24
|
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
23
25
|
pointerEvents: 'none',
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
24
27
|
':focus, :active, :hover': {
|
|
25
28
|
appearance: 'none',
|
|
26
29
|
border: 0,
|
|
27
30
|
outline: 0
|
|
28
31
|
},
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
29
33
|
'::-moz-focus-inner': {
|
|
30
34
|
border: 0
|
|
31
35
|
}
|
|
32
36
|
});
|
|
33
37
|
var isHighlightedStyles = (0, _react.css)({
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
34
39
|
'&:before': {
|
|
35
40
|
height: 3,
|
|
36
41
|
position: 'absolute',
|
|
@@ -43,12 +48,14 @@ var isHighlightedStyles = (0, _react.css)({
|
|
|
43
48
|
}
|
|
44
49
|
});
|
|
45
50
|
var isHighlightedAndDropdownButtonStyles = (0, _react.css)({
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
46
52
|
'&:before': {
|
|
47
53
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
48
54
|
insetInlineEnd: -10
|
|
49
55
|
}
|
|
50
56
|
});
|
|
51
57
|
var isHighlightedNotDropdownButtonStyles = (0, _react.css)({
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
52
59
|
'&:before': {
|
|
53
60
|
insetInlineEnd: "var(--ds-space-025, 2px)"
|
|
54
61
|
}
|
|
@@ -56,6 +63,7 @@ var isHighlightedNotDropdownButtonStyles = (0, _react.css)({
|
|
|
56
63
|
var isDropdownButtonStyles = (0, _react.css)({
|
|
57
64
|
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
58
65
|
marginInlineEnd: 18,
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
59
67
|
'&:after': {
|
|
60
68
|
display: 'inline-block',
|
|
61
69
|
width: 4,
|