@atlaskit/page-layout 3.3.3 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -1
- package/README.md +6 -3
- package/__perf__/examples.tsx +45 -69
- package/__perf__/utils/perf-example.tsx +53 -55
- package/__perf__/utils/product-integration/atlassian-navigation.tsx +80 -77
- package/__perf__/utils/product-integration/create.tsx +12 -15
- package/__perf__/utils/product-integration/help-popup.tsx +38 -38
- package/__perf__/utils/product-integration/notifications-popup.tsx +76 -74
- package/__perf__/utils/product-integration/profile-popup.tsx +53 -53
- package/__perf__/utils/product-integration/sample-footer.tsx +30 -26
- package/__perf__/utils/product-integration/sample-header.tsx +15 -11
- package/__perf__/utils/product-integration/side-navigation.tsx +92 -101
- package/dist/cjs/components/resize-control/grab-area.js +8 -1
- package/dist/cjs/components/resize-control/index.js +9 -3
- package/dist/cjs/components/resize-control/resize-button.js +6 -0
- package/dist/cjs/components/resize-control/shadow.js +9 -5
- package/dist/cjs/components/skip-links/skip-link-components.js +4 -2
- package/dist/cjs/components/skip-links/use-custom-skip-link.js +3 -0
- package/dist/cjs/components/slots/banner-slot.js +12 -5
- package/dist/cjs/components/slots/content.js +6 -0
- package/dist/cjs/components/slots/internal/left-sidebar-inner.js +18 -1
- package/dist/cjs/components/slots/internal/left-sidebar-outer.js +16 -1
- package/dist/cjs/components/slots/internal/resizable-children-wrapper.js +7 -1
- package/dist/cjs/components/slots/internal/slot-focus-ring.js +9 -2
- package/dist/cjs/components/slots/left-panel.js +10 -3
- package/dist/cjs/components/slots/left-sidebar-without-resize.js +5 -0
- package/dist/cjs/components/slots/left-sidebar.js +4 -1
- package/dist/cjs/components/slots/main.js +8 -2
- package/dist/cjs/components/slots/page-layout.js +10 -2
- package/dist/cjs/components/slots/right-panel.js +10 -3
- package/dist/cjs/components/slots/right-sidebar.js +14 -9
- package/dist/cjs/components/slots/slot-dimensions.js +5 -1
- package/dist/cjs/components/slots/top-navigation.js +13 -6
- package/dist/es2019/components/resize-control/grab-area.js +8 -1
- package/dist/es2019/components/resize-control/index.js +10 -2
- package/dist/es2019/components/resize-control/resize-button.js +7 -1
- package/dist/es2019/components/resize-control/shadow.js +8 -5
- package/dist/es2019/components/skip-links/skip-link-components.js +5 -1
- package/dist/es2019/components/skip-links/use-custom-skip-link.js +3 -0
- package/dist/es2019/components/slots/banner-slot.js +12 -5
- package/dist/es2019/components/slots/content.js +5 -0
- package/dist/es2019/components/slots/internal/left-sidebar-inner.js +19 -3
- package/dist/es2019/components/slots/internal/left-sidebar-outer.js +18 -3
- package/dist/es2019/components/slots/internal/resizable-children-wrapper.js +6 -1
- package/dist/es2019/components/slots/internal/slot-focus-ring.js +8 -2
- package/dist/es2019/components/slots/left-panel.js +10 -3
- package/dist/es2019/components/slots/left-sidebar-without-resize.js +5 -0
- package/dist/es2019/components/slots/left-sidebar.js +6 -0
- package/dist/es2019/components/slots/main.js +8 -2
- package/dist/es2019/components/slots/page-layout.js +15 -1
- package/dist/es2019/components/slots/right-panel.js +10 -3
- package/dist/es2019/components/slots/right-sidebar.js +14 -9
- package/dist/es2019/components/slots/slot-dimensions.js +4 -1
- package/dist/es2019/components/slots/top-navigation.js +13 -6
- package/dist/esm/components/resize-control/grab-area.js +8 -1
- package/dist/esm/components/resize-control/index.js +10 -2
- package/dist/esm/components/resize-control/resize-button.js +6 -0
- package/dist/esm/components/resize-control/shadow.js +8 -5
- package/dist/esm/components/skip-links/skip-link-components.js +5 -1
- package/dist/esm/components/skip-links/use-custom-skip-link.js +3 -0
- package/dist/esm/components/slots/banner-slot.js +12 -5
- package/dist/esm/components/slots/content.js +5 -0
- package/dist/esm/components/slots/internal/left-sidebar-inner.js +17 -1
- package/dist/esm/components/slots/internal/left-sidebar-outer.js +16 -1
- package/dist/esm/components/slots/internal/resizable-children-wrapper.js +6 -1
- package/dist/esm/components/slots/internal/slot-focus-ring.js +8 -2
- package/dist/esm/components/slots/left-panel.js +10 -3
- package/dist/esm/components/slots/left-sidebar-without-resize.js +5 -0
- package/dist/esm/components/slots/left-sidebar.js +6 -0
- package/dist/esm/components/slots/main.js +8 -2
- package/dist/esm/components/slots/page-layout.js +10 -2
- package/dist/esm/components/slots/right-panel.js +10 -3
- package/dist/esm/components/slots/right-sidebar.js +14 -9
- package/dist/esm/components/slots/slot-dimensions.js +5 -1
- package/dist/esm/components/slots/top-navigation.js +13 -6
- package/dist/types/components/resize-control/grab-area.d.ts +3 -0
- package/dist/types/components/resize-control/shadow.d.ts +3 -0
- package/dist/types/components/skip-links/skip-link-components.d.ts +3 -0
- package/dist/types/components/slots/content.d.ts +3 -0
- package/dist/types/components/slots/internal/left-sidebar-inner.d.ts +3 -0
- package/dist/types/components/slots/internal/left-sidebar-outer.d.ts +3 -0
- package/dist/types/components/slots/internal/resizable-children-wrapper.d.ts +3 -0
- package/dist/types/components/slots/internal/slot-focus-ring.d.ts +3 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types-ts4.5/components/resize-control/grab-area.d.ts +3 -0
- package/dist/types-ts4.5/components/resize-control/shadow.d.ts +3 -0
- package/dist/types-ts4.5/components/skip-links/skip-link-components.d.ts +3 -0
- package/dist/types-ts4.5/components/slots/content.d.ts +3 -0
- package/dist/types-ts4.5/components/slots/internal/left-sidebar-inner.d.ts +3 -0
- package/dist/types-ts4.5/components/slots/internal/left-sidebar-outer.d.ts +3 -0
- package/dist/types-ts4.5/components/slots/internal/resizable-children-wrapper.d.ts +3 -0
- package/dist/types-ts4.5/components/slots/internal/slot-focus-ring.d.ts +3 -0
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/package.json +123 -123
- package/report.api.md +83 -84
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
2
5
|
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
7
|
import { jsx } from '@emotion/react';
|
|
4
8
|
|
|
5
9
|
import DropboxIcon from '@atlaskit/icon/glyph/dropbox';
|
|
@@ -10,117 +14,104 @@ import QueueIcon from '@atlaskit/icon/glyph/queues';
|
|
|
10
14
|
import SettingsIcon from '@atlaskit/icon/glyph/settings';
|
|
11
15
|
import LanguageIcon from '@atlaskit/icon/glyph/world';
|
|
12
16
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
ButtonItem,
|
|
18
|
+
LinkItem,
|
|
19
|
+
NavigationFooter,
|
|
20
|
+
NavigationHeader,
|
|
21
|
+
NestableNavigationContent,
|
|
22
|
+
NestingItem,
|
|
23
|
+
Section,
|
|
24
|
+
SideNavigation,
|
|
21
25
|
} from '@atlaskit/side-navigation';
|
|
22
26
|
|
|
23
27
|
import SampleFooter from './sample-footer';
|
|
24
28
|
import SampleHeader from './sample-header';
|
|
25
29
|
|
|
26
30
|
const LanguageSettings = () => {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
id="3-1"
|
|
31
|
-
title="Language settings"
|
|
32
|
-
>
|
|
33
|
-
<ButtonItem>Customize</ButtonItem>
|
|
31
|
+
return (
|
|
32
|
+
<NestingItem iconBefore={<LanguageIcon label="" />} id="3-1" title="Language settings">
|
|
33
|
+
<ButtonItem>Customize</ButtonItem>
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
35
|
+
<NestingItem id="3-1-1" title="German Settings">
|
|
36
|
+
<ButtonItem>Hallo Welt!</ButtonItem>
|
|
37
|
+
</NestingItem>
|
|
38
|
+
<NestingItem id="3-1-2" title="English Settings">
|
|
39
|
+
<ButtonItem>Hello World!</ButtonItem>
|
|
40
|
+
</NestingItem>
|
|
41
|
+
</NestingItem>
|
|
42
|
+
);
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
const PerfExample = () => {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
<span />
|
|
116
|
-
</NestingItem>
|
|
117
|
-
</Section>
|
|
118
|
-
</NestableNavigationContent>
|
|
119
|
-
<NavigationFooter>
|
|
120
|
-
<SampleFooter />
|
|
121
|
-
</NavigationFooter>
|
|
122
|
-
</SideNavigation>
|
|
123
|
-
);
|
|
46
|
+
return (
|
|
47
|
+
<SideNavigation label="project" testId="side-navigation">
|
|
48
|
+
<NavigationHeader>
|
|
49
|
+
<SampleHeader />
|
|
50
|
+
</NavigationHeader>
|
|
51
|
+
<NestableNavigationContent initialStack={[]}>
|
|
52
|
+
<Section>
|
|
53
|
+
<ButtonItem iconBefore={<WorkIcon label="" />}>Your work</ButtonItem>
|
|
54
|
+
<LinkItem
|
|
55
|
+
href="https://www.atlassian.com/customers"
|
|
56
|
+
iconBefore={<CustomerIcon label="" />}
|
|
57
|
+
>
|
|
58
|
+
Your customers
|
|
59
|
+
</LinkItem>
|
|
60
|
+
<NestingItem
|
|
61
|
+
id="1"
|
|
62
|
+
isSelected
|
|
63
|
+
title="Queues view"
|
|
64
|
+
testId="nav-side-queues"
|
|
65
|
+
iconBefore={<QueueIcon label="" />}
|
|
66
|
+
>
|
|
67
|
+
<Section title="Queues">
|
|
68
|
+
<ButtonItem>Untriaged</ButtonItem>
|
|
69
|
+
<ButtonItem>My feature work</ButtonItem>
|
|
70
|
+
<ButtonItem>My bugfix work</ButtonItem>
|
|
71
|
+
<ButtonItem>Signals</ButtonItem>
|
|
72
|
+
<ButtonItem>Assigned to me</ButtonItem>
|
|
73
|
+
</Section>
|
|
74
|
+
<Section hasSeparator>
|
|
75
|
+
<ButtonItem>New queue</ButtonItem>
|
|
76
|
+
</Section>
|
|
77
|
+
</NestingItem>
|
|
78
|
+
<NestingItem
|
|
79
|
+
id="2"
|
|
80
|
+
testId="filter-nesting-item"
|
|
81
|
+
title="Filters"
|
|
82
|
+
iconBefore={<FilterIcon label="" />}
|
|
83
|
+
>
|
|
84
|
+
<Section>
|
|
85
|
+
<ButtonItem>Search issues</ButtonItem>
|
|
86
|
+
</Section>
|
|
87
|
+
<Section title="Starred">
|
|
88
|
+
<ButtonItem>Everything me</ButtonItem>
|
|
89
|
+
<ButtonItem>My open issues</ButtonItem>
|
|
90
|
+
<ButtonItem>Reported by me</ButtonItem>
|
|
91
|
+
</Section>
|
|
92
|
+
<Section hasSeparator title="Other">
|
|
93
|
+
<ButtonItem>All issues</ButtonItem>
|
|
94
|
+
<ButtonItem>Open issues</ButtonItem>
|
|
95
|
+
<ButtonItem>Created recently</ButtonItem>
|
|
96
|
+
<ButtonItem>Resolved recently</ButtonItem>
|
|
97
|
+
</Section>
|
|
98
|
+
<Section hasSeparator>
|
|
99
|
+
<ButtonItem>View all filters</ButtonItem>
|
|
100
|
+
</Section>
|
|
101
|
+
</NestingItem>
|
|
102
|
+
<NestingItem id="3" iconBefore={<SettingsIcon label="" />} title="Settings">
|
|
103
|
+
<LanguageSettings />
|
|
104
|
+
</NestingItem>
|
|
105
|
+
<NestingItem id="4" iconBefore={<DropboxIcon label="" />} title="Dropbox" isDisabled>
|
|
106
|
+
<span />
|
|
107
|
+
</NestingItem>
|
|
108
|
+
</Section>
|
|
109
|
+
</NestableNavigationContent>
|
|
110
|
+
<NavigationFooter>
|
|
111
|
+
<SampleFooter />
|
|
112
|
+
</NavigationFooter>
|
|
113
|
+
</SideNavigation>
|
|
114
|
+
);
|
|
124
115
|
};
|
|
125
116
|
|
|
126
117
|
export default PerfExample;
|
|
@@ -14,7 +14,11 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
14
14
|
var _constants = require("../../common/constants");
|
|
15
15
|
var _excluded = ["testId", "valueTextLabel", "isDisabled", "isLeftSidebarCollapsed", "label", "leftSidebarPercentageExpanded", "onKeyDown", "onMouseDown", "onBlur", "onFocus", "ref"];
|
|
16
16
|
/* eslint-disable react/react-in-jsx-scope */
|
|
17
|
+
/**
|
|
18
|
+
* @jsxRuntime classic
|
|
19
|
+
*/
|
|
17
20
|
/** @jsx jsx */
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
22
|
/**
|
|
19
23
|
* Determines the color of the grab line.
|
|
20
24
|
*
|
|
@@ -28,6 +32,7 @@ var grabAreaStyles = (0, _react.css)({
|
|
|
28
32
|
backgroundColor: 'transparent',
|
|
29
33
|
border: 0,
|
|
30
34
|
cursor: 'ew-resize',
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
31
36
|
'&::-moz-focus-inner': {
|
|
32
37
|
border: 0
|
|
33
38
|
},
|
|
@@ -82,7 +87,9 @@ var GrabArea = function GrabArea(_ref) {
|
|
|
82
87
|
// usability.
|
|
83
88
|
,
|
|
84
89
|
role: "slider",
|
|
85
|
-
css: [grabAreaStyles, isLeftSidebarCollapsed && grabAreaCollapsedStyles,
|
|
90
|
+
css: [grabAreaStyles, isLeftSidebarCollapsed && grabAreaCollapsedStyles,
|
|
91
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
92
|
+
(0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.page-layout-resize-button-fix_u0qxv') && isLeftSidebarCollapsed && grabAreaReducedHeightStyles],
|
|
86
93
|
"aria-orientation": "vertical",
|
|
87
94
|
"aria-valuenow": leftSidebarPercentageExpanded,
|
|
88
95
|
"aria-valuemin": 0,
|
|
@@ -20,7 +20,10 @@ var _grabArea = _interopRequireDefault(require("./grab-area"));
|
|
|
20
20
|
var _resizeButton = _interopRequireDefault(require("./resize-button"));
|
|
21
21
|
var _shadow = _interopRequireDefault(require("./shadow"));
|
|
22
22
|
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; }
|
|
23
|
-
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; } /**
|
|
23
|
+
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; } /**
|
|
24
|
+
* @jsxRuntime classic
|
|
25
|
+
*/ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-global-styles, @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
|
+
/* import useUpdateCssVar from '../../controllers/use-update-css-vars'; */
|
|
24
27
|
var cssSelector = (0, _defineProperty2.default)({}, _constants.RESIZE_CONTROL_SELECTOR, true);
|
|
25
28
|
var resizeControlStyles = (0, _react2.css)({
|
|
26
29
|
position: 'absolute',
|
|
@@ -35,10 +38,11 @@ var showResizeButtonStyles = (0, _react2.css)({
|
|
|
35
38
|
|
|
36
39
|
// @ts-expect-error adding `!important` to style rules is currently a type error
|
|
37
40
|
var globalResizingStyles = (0, _react2.css)({
|
|
38
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
41
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
39
42
|
'*': {
|
|
40
43
|
// Setting the cursor to be `ew-resize` on all elements so that even if the user
|
|
41
44
|
// pointer slips off the resize handle, the cursor will still be the resize cursor
|
|
45
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
42
46
|
cursor: 'ew-resize !important',
|
|
43
47
|
// Blocking selection while resizing
|
|
44
48
|
// Notes:
|
|
@@ -46,12 +50,14 @@ var globalResizingStyles = (0, _react2.css)({
|
|
|
46
50
|
// - Safari + Firefox → all good
|
|
47
51
|
// - Chrome → This will undo the current selection while resizing (not ideal)
|
|
48
52
|
// - The current selection will resume after resizing
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
49
54
|
userSelect: 'none !important'
|
|
50
55
|
},
|
|
51
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
56
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
52
57
|
iframe: {
|
|
53
58
|
// Disabling pointer events on iframes when resizing
|
|
54
59
|
// as iframes will swallower user events when the user is over them
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
55
61
|
pointerEvents: 'none !important'
|
|
56
62
|
}
|
|
57
63
|
// Note: We _could_ also disable `pointer-events` on all elements during resizing.
|
|
@@ -17,7 +17,11 @@ var _responsive = require("@atlaskit/primitives/responsive");
|
|
|
17
17
|
var _colors = require("@atlaskit/theme/colors");
|
|
18
18
|
var _constants = require("../../common/constants");
|
|
19
19
|
var _excluded = ["isLeftSidebarCollapsed", "label", "testId"];
|
|
20
|
+
/**
|
|
21
|
+
* @jsxRuntime classic
|
|
22
|
+
*/
|
|
20
23
|
/** @jsx jsx */
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
21
25
|
var increaseHitAreaStyles = (0, _react.css)({
|
|
22
26
|
position: 'absolute',
|
|
23
27
|
insetBlockEnd: "var(--ds-space-negative-100, -8px)",
|
|
@@ -54,11 +58,13 @@ var resizeIconButtonStyles = (0, _react.css)({
|
|
|
54
58
|
outline: 0,
|
|
55
59
|
transform: 'translateX(-50%)',
|
|
56
60
|
transition: "\n background-color ".concat(_durations.smallDurationMs, "ms linear,\n color ").concat(_durations.smallDurationMs, "ms linear,\n opacity ").concat(_durations.mediumDurationMs, "ms ").concat(_curves.easeOut, "\n "),
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
57
62
|
':hover': {
|
|
58
63
|
backgroundColor: "var(--ds-background-selected-bold, ".concat(_colors.B100, ")"),
|
|
59
64
|
color: "var(--ds-text-inverse, ".concat(_colors.N0, ")"),
|
|
60
65
|
opacity: 1
|
|
61
66
|
},
|
|
67
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
62
68
|
':active, :focus': {
|
|
63
69
|
backgroundColor: "var(--ds-background-selected-bold-hovered, ".concat(_colors.B200, ")"),
|
|
64
70
|
color: "var(--ds-text-inverse, ".concat(_colors.N0, ")"),
|
|
@@ -7,19 +7,23 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _motion = require("@atlaskit/motion");
|
|
9
9
|
var _hooks = require("../../common/hooks");
|
|
10
|
+
/**
|
|
11
|
+
* @jsxRuntime classic
|
|
12
|
+
*/
|
|
10
13
|
/** @jsx jsx */
|
|
11
14
|
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
|
+
|
|
12
17
|
var colorStops = "\n rgba(0, 0, 0, 0.2) 0px,\n rgba(0, 0, 0, 0.2) 1px,\n rgba(0, 0, 0, 0.1) 1px,\n rgba(0, 0, 0, 0) 100%\n ";
|
|
13
18
|
var direction = 'to left';
|
|
14
19
|
var transitionDuration = '0.22s';
|
|
15
20
|
var shadowStyles = (0, _react.css)({
|
|
16
21
|
width: 3,
|
|
17
22
|
position: 'absolute',
|
|
18
|
-
top: 0,
|
|
19
|
-
bottom: 0,
|
|
20
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
21
|
-
left: -1,
|
|
22
23
|
background: "var(--ds-border, ".concat("linear-gradient(".concat(direction, ", ").concat(colorStops, ")"), ")"),
|
|
24
|
+
insetBlockEnd: 0,
|
|
25
|
+
insetBlockStart: 0,
|
|
26
|
+
insetInlineStart: -1,
|
|
23
27
|
opacity: 0.5,
|
|
24
28
|
pointerEvents: 'none',
|
|
25
29
|
transitionDuration: transitionDuration,
|
|
@@ -28,8 +32,8 @@ var shadowStyles = (0, _react.css)({
|
|
|
28
32
|
});
|
|
29
33
|
var draggingStyles = (0, _react.css)({
|
|
30
34
|
width: 6,
|
|
31
|
-
left: "var(--ds-space-negative-075, -6px)",
|
|
32
35
|
background: "var(--ds-background-neutral-subtle, ".concat("linear-gradient(".concat(direction, ", ").concat(colorStops, ")"), ")"),
|
|
36
|
+
insetInlineStart: "var(--ds-space-negative-075, -6px)",
|
|
33
37
|
opacity: 0.8
|
|
34
38
|
});
|
|
35
39
|
var Shadow = function Shadow(_ref) {
|
|
@@ -14,8 +14,10 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
14
14
|
var _constants = require("../../common/constants");
|
|
15
15
|
var _controllers = require("../../controllers");
|
|
16
16
|
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; }
|
|
17
|
-
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; } /* eslint-disable @repo/internal/dom-events/no-unsafe-event-listeners */ /**
|
|
18
|
-
|
|
17
|
+
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; } /* eslint-disable @repo/internal/dom-events/no-unsafe-event-listeners */ /**
|
|
18
|
+
* @jsxRuntime classic
|
|
19
|
+
*/ /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
21
|
var prefersReducedMotionStyles = (0, _react.css)((0, _motion.prefersReducedMotion)());
|
|
20
22
|
var skipLinkStyles = (0, _react.css)({
|
|
21
23
|
margin: "var(--ds-space-250, 10px)",
|
|
@@ -6,6 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useCustomSkipLink = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _controllers = require("../../controllers");
|
|
9
|
+
/**
|
|
10
|
+
* @jsxRuntime classic
|
|
11
|
+
*/
|
|
9
12
|
/** @jsx jsx */
|
|
10
13
|
|
|
11
14
|
var useCustomSkipLink = exports.useCustomSkipLink = function useCustomSkipLink(id, skipLinkTitle) {
|
|
@@ -14,20 +14,27 @@ var _utils = require("../../common/utils");
|
|
|
14
14
|
var _controllers = require("../../controllers");
|
|
15
15
|
var _slotFocusRing = _interopRequireDefault(require("./internal/slot-focus-ring"));
|
|
16
16
|
var _slotDimensions = _interopRequireDefault(require("./slot-dimensions"));
|
|
17
|
+
/**
|
|
18
|
+
* @jsxRuntime classic
|
|
19
|
+
*/
|
|
17
20
|
/** @jsx jsx */
|
|
18
21
|
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
23
|
+
|
|
19
24
|
var bannerStyles = (0, _react2.css)({
|
|
25
|
+
// 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
26
|
height: _constants.BANNER_HEIGHT,
|
|
27
|
+
// 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
28
|
gridArea: _constants.BANNER
|
|
22
29
|
});
|
|
23
30
|
var bannerFixedStyles = (0, _react2.css)({
|
|
24
31
|
position: 'fixed',
|
|
25
32
|
zIndex: 2,
|
|
26
|
-
|
|
27
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
28
|
-
|
|
29
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
30
|
-
|
|
33
|
+
insetBlockStart: 0,
|
|
34
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
35
|
+
insetInlineEnd: _constants.RIGHT_PANEL_WIDTH,
|
|
36
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
|
+
insetInlineStart: _constants.LEFT_PANEL_WIDTH
|
|
31
38
|
});
|
|
32
39
|
|
|
33
40
|
/**
|
|
@@ -6,12 +6,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _constants = require("../../common/constants");
|
|
9
|
+
/**
|
|
10
|
+
* @jsxRuntime classic
|
|
11
|
+
*/
|
|
9
12
|
/** @jsx jsx */
|
|
10
13
|
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
+
|
|
11
16
|
var contentStyles = (0, _react.css)({
|
|
12
17
|
display: 'flex',
|
|
13
18
|
height: '100%',
|
|
14
19
|
position: 'relative',
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
15
21
|
gridArea: _constants.CONTENT
|
|
16
22
|
});
|
|
17
23
|
|
|
@@ -11,21 +11,33 @@ var _motion = require("@atlaskit/motion");
|
|
|
11
11
|
var _responsive = require("@atlaskit/primitives/responsive");
|
|
12
12
|
var _constants = require("../../../common/constants");
|
|
13
13
|
var _hooks = require("../../../common/hooks");
|
|
14
|
+
/**
|
|
15
|
+
* @jsxRuntime classic
|
|
16
|
+
*/
|
|
14
17
|
/** @jsx jsx */
|
|
15
18
|
|
|
16
|
-
// eslint-disable-next-line @atlaskit/
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
20
|
+
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
17
22
|
var prefersReducedMotionStyles = (0, _react.css)((0, _motion.prefersReducedMotion)());
|
|
18
23
|
var mobileStyles = (0, _react.css)((0, _defineProperty2.default)({}, _responsive.UNSAFE_media.below.sm, {
|
|
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
|
|
19
25
|
width: "".concat(_constants.MOBILE_COLLAPSED_LEFT_SIDEBAR_WIDTH, "px"),
|
|
20
26
|
position: 'fixed',
|
|
21
27
|
insetBlockEnd: 0,
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
29
|
insetBlockStart: "calc(".concat(_constants.BANNER_HEIGHT, " + ").concat(_constants.TOP_NAVIGATION_HEIGHT, ")"),
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
23
31
|
insetInlineStart: "".concat(_constants.LEFT_PANEL_WIDTH),
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
24
33
|
transition: "width ".concat(_constants.TRANSITION_DURATION, "ms ").concat(_motion.easeOut, " 0s")
|
|
25
34
|
}));
|
|
26
35
|
var mobileInnerFlyoutStyles = (0, _react.css)((0, _defineProperty2.default)({}, _responsive.UNSAFE_media.below.sm, {
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
37
|
width: "min(90vw, ".concat(_constants.MAX_MOBILE_SIDEBAR_FLYOUT_WIDTH, "px)"),
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
39
|
maxWidth: _constants.MAX_MOBILE_SIDEBAR_FLYOUT_WIDTH,
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
29
41
|
transition: "width ".concat(_constants.TRANSITION_DURATION, "ms ").concat(_motion.easeOut, " 0s, box-shadow ").concat(_constants.TRANSITION_DURATION, "ms ").concat(_motion.easeOut, " 0s")
|
|
30
42
|
}));
|
|
31
43
|
|
|
@@ -36,14 +48,19 @@ var mobileInnerFlyoutStyles = (0, _react.css)((0, _defineProperty2.default)({},
|
|
|
36
48
|
* out of its flex container and Main would stretch to occupy all the space.
|
|
37
49
|
*/
|
|
38
50
|
var fixedInnerStyles = (0, _react.css)({
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
39
52
|
width: "".concat(_constants.LEFT_SIDEBAR_WIDTH),
|
|
40
53
|
position: 'fixed',
|
|
41
54
|
insetBlockEnd: 0,
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
42
56
|
insetBlockStart: "calc(".concat(_constants.BANNER_HEIGHT, " + ").concat(_constants.TOP_NAVIGATION_HEIGHT, ")"),
|
|
57
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
43
58
|
insetInlineStart: "".concat(_constants.LEFT_PANEL_WIDTH),
|
|
59
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
44
60
|
transition: "width ".concat(_constants.TRANSITION_DURATION, "ms ").concat(_motion.easeOut, " 0s")
|
|
45
61
|
});
|
|
46
62
|
var fixedInnerFlyoutStyles = (0, _react.css)({
|
|
63
|
+
// 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
64
|
width: _constants.LEFT_SIDEBAR_FLYOUT_WIDTH
|
|
48
65
|
});
|
|
49
66
|
|
|
@@ -16,17 +16,25 @@ var _hooks = require("../../../common/hooks");
|
|
|
16
16
|
var _utils = require("../../../common/utils");
|
|
17
17
|
var _controllers = require("../../../controllers");
|
|
18
18
|
var _slotFocusRing = _interopRequireDefault(require("./slot-focus-ring"));
|
|
19
|
+
/**
|
|
20
|
+
* @jsxRuntime classic
|
|
21
|
+
*/
|
|
19
22
|
/** @jsx jsx */
|
|
20
23
|
|
|
21
|
-
// eslint-disable-next-line @atlaskit/
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
|
+
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
27
|
var prefersReducedMotionStyles = (0, _react2.css)((0, _motion.prefersReducedMotion)());
|
|
23
28
|
var mobileStyles = (0, _react2.css)((0, _defineProperty2.default)({}, _responsive.UNSAFE_media.below.sm, {
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
24
30
|
width: _constants.MOBILE_COLLAPSED_LEFT_SIDEBAR_WIDTH,
|
|
25
31
|
cursor: 'pointer',
|
|
26
32
|
opacity: 1,
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
34
|
transition: "width ".concat(_constants.TRANSITION_DURATION, "ms ").concat(_motion.easeOut, " 0s"),
|
|
28
35
|
'&::after': {
|
|
29
36
|
display: 'inline-block',
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
30
38
|
maxWidth: _constants.MAX_MOBILE_SIDEBAR_FLYOUT_WIDTH,
|
|
31
39
|
content: "''"
|
|
32
40
|
}
|
|
@@ -35,11 +43,14 @@ var mobileFlyoutStyles = (0, _react2.css)((0, _defineProperty2.default)({}, _res
|
|
|
35
43
|
cursor: 'revert'
|
|
36
44
|
}));
|
|
37
45
|
var outerStyles = (0, _react2.css)({
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
38
47
|
width: _constants.LEFT_SIDEBAR_WIDTH,
|
|
39
48
|
position: 'relative',
|
|
40
49
|
zIndex: 1,
|
|
41
50
|
marginInlineStart: "var(--ds-space-0, 0px)",
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
42
52
|
transition: "width ".concat(_constants.TRANSITION_DURATION, "ms ").concat(_motion.easeOut, " 0s"),
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
43
54
|
':hover': {
|
|
44
55
|
'--ds--resize-button--opacity': 1
|
|
45
56
|
}
|
|
@@ -56,16 +67,20 @@ var draggingStyles = (0, _react2.css)({
|
|
|
56
67
|
* so the pseudo element forces it to take up the necessary width.
|
|
57
68
|
*/
|
|
58
69
|
var fixedStyles = (0, _react2.css)({
|
|
70
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
59
71
|
'::after': {
|
|
60
72
|
display: 'inline-block',
|
|
73
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
61
74
|
width: "".concat(_constants.LEFT_SIDEBAR_WIDTH),
|
|
62
75
|
content: "''"
|
|
63
76
|
}
|
|
64
77
|
});
|
|
65
78
|
var flyoutStyles = (0, _react2.css)({
|
|
79
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
66
80
|
width: _constants.LEFT_SIDEBAR_FLYOUT_WIDTH
|
|
67
81
|
});
|
|
68
82
|
var flyoutFixedStyles = (0, _react2.css)({
|
|
83
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
69
84
|
width: _constants.COLLAPSED_LEFT_SIDEBAR_WIDTH
|
|
70
85
|
});
|
|
71
86
|
var selector = (0, _utils.getPageLayoutSlotSelector)('left-sidebar');
|
|
@@ -8,9 +8,14 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var _motion = require("@atlaskit/motion");
|
|
9
9
|
var _constants = require("../../../common/constants");
|
|
10
10
|
var _hooks = require("../../../common/hooks");
|
|
11
|
+
/**
|
|
12
|
+
* @jsxRuntime classic
|
|
13
|
+
*/
|
|
11
14
|
/** @jsx jsx */
|
|
12
15
|
|
|
13
|
-
// eslint-disable-next-line @atlaskit/
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
|
+
|
|
18
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
14
19
|
var prefersReducedMotionStyles = (0, _react.css)((0, _motion.prefersReducedMotion)());
|
|
15
20
|
|
|
16
21
|
/**
|
|
@@ -22,6 +27,7 @@ var prefersReducedMotionStyles = (0, _react.css)((0, _motion.prefersReducedMotio
|
|
|
22
27
|
var hideLeftSidebarContentsStyles = (0, _react.css)({
|
|
23
28
|
opacity: 0,
|
|
24
29
|
transition: "opacity 0ms linear, visibility 0ms linear",
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
25
31
|
transitionDelay: "".concat(_constants.TRANSITION_DURATION - 100, "ms"),
|
|
26
32
|
visibility: 'hidden'
|
|
27
33
|
});
|
|
@@ -6,12 +6,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
|
+
/**
|
|
10
|
+
* @jsxRuntime classic
|
|
11
|
+
*/
|
|
9
12
|
/** @jsx jsx */
|
|
10
13
|
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
|
+
|
|
11
16
|
var focusStyles = (0, _react.css)({
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
12
18
|
':focus': {
|
|
13
19
|
outline: 'none',
|
|
14
|
-
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
20
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles, @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
15
21
|
'> div': {
|
|
16
22
|
boxShadow: "0px 0px 0px 2px inset ".concat("var(--ds-border-focused, ".concat(_colors.B100, ")")),
|
|
17
23
|
outline: 'none'
|
|
@@ -24,9 +30,10 @@ var focusStyles = (0, _react.css)({
|
|
|
24
30
|
* so the nested selector needs to target an extra level deeper.
|
|
25
31
|
*/
|
|
26
32
|
var sidebarFocusStyles = (0, _react.css)({
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
27
34
|
':focus': {
|
|
28
35
|
outline: 'none',
|
|
29
|
-
// 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 -- Ignored via go/DSP-18766
|
|
30
37
|
'> div > div': {
|
|
31
38
|
boxShadow: "0px 0px 0px 2px inset ".concat("var(--ds-border-focused, ".concat(_colors.B100, ")")),
|
|
32
39
|
outline: 'none'
|