@atlaskit/page-layout 3.3.3 → 3.4.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 +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
package/package.json
CHANGED
|
@@ -1,124 +1,124 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}
|
|
2
|
+
"name": "@atlaskit/page-layout",
|
|
3
|
+
"version": "3.4.0",
|
|
4
|
+
"description": "A collection of components which let you compose an application's page layout.",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"registry": "https://registry.npmjs.org/"
|
|
7
|
+
},
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
9
|
+
"author": "Atlassian Pty Ltd",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"main": "dist/cjs/index.js",
|
|
12
|
+
"module": "dist/esm/index.js",
|
|
13
|
+
"module:es2019": "dist/es2019/index.js",
|
|
14
|
+
"types": "dist/types/index.d.ts",
|
|
15
|
+
"typesVersions": {
|
|
16
|
+
">=4.5 <4.9": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.5/*",
|
|
19
|
+
"dist/types-ts4.5/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"atlaskit:src": "src/index.tsx",
|
|
25
|
+
"af:exports": {
|
|
26
|
+
".": "./src/index.tsx"
|
|
27
|
+
},
|
|
28
|
+
"atlassian": {
|
|
29
|
+
"team": "Design System Team",
|
|
30
|
+
"releaseModel": "continuous",
|
|
31
|
+
"productPushConsumption": [
|
|
32
|
+
"jira"
|
|
33
|
+
],
|
|
34
|
+
"website": {
|
|
35
|
+
"name": "Page layout",
|
|
36
|
+
"category": "Components"
|
|
37
|
+
},
|
|
38
|
+
"runReact18": true
|
|
39
|
+
},
|
|
40
|
+
"homepage": "https://atlassian.design/components/page-layout/",
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@atlaskit/ds-lib": "^2.3.0",
|
|
43
|
+
"@atlaskit/icon": "^22.4.0",
|
|
44
|
+
"@atlaskit/link": "^0.5.0",
|
|
45
|
+
"@atlaskit/motion": "^1.7.0",
|
|
46
|
+
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
47
|
+
"@atlaskit/primitives": "^7.4.0",
|
|
48
|
+
"@atlaskit/theme": "^12.10.0",
|
|
49
|
+
"@atlaskit/tokens": "^1.51.0",
|
|
50
|
+
"@babel/runtime": "^7.0.0",
|
|
51
|
+
"@emotion/react": "^11.7.1",
|
|
52
|
+
"bind-event-listener": "^3.0.0",
|
|
53
|
+
"raf-schd": "^4.0.3"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"react": "^16.8.0 || ^17.0.0 || ~18.2.0",
|
|
57
|
+
"react-dom": "^16.8.0"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@af/accessibility-testing": "*",
|
|
61
|
+
"@af/integration-testing": "*",
|
|
62
|
+
"@atlaskit/atlassian-navigation": "^4.1.0",
|
|
63
|
+
"@atlaskit/atlassian-notifications": "^0.4.0",
|
|
64
|
+
"@atlaskit/drawer": "^7.11.0",
|
|
65
|
+
"@atlaskit/logo": "^14.1.0",
|
|
66
|
+
"@atlaskit/menu": "^2.5.0",
|
|
67
|
+
"@atlaskit/notification-indicator": "^9.2.0",
|
|
68
|
+
"@atlaskit/notification-log-client": "^6.1.0",
|
|
69
|
+
"@atlaskit/popup": "^1.19.0",
|
|
70
|
+
"@atlaskit/side-navigation": "^3.3.0",
|
|
71
|
+
"@atlaskit/ssr": "*",
|
|
72
|
+
"@atlaskit/toggle": "^13.2.0",
|
|
73
|
+
"@atlaskit/tooltip": "^18.5.0",
|
|
74
|
+
"@atlaskit/visual-regression": "*",
|
|
75
|
+
"@testing-library/dom": "^8.17.1",
|
|
76
|
+
"@testing-library/react": "^12.1.5",
|
|
77
|
+
"@testing-library/react-hooks": "^8.0.1",
|
|
78
|
+
"@types/raf-schd": "^4.0.1",
|
|
79
|
+
"jest-emotion": "^10.0.32",
|
|
80
|
+
"raf-stub": "^2.0.1",
|
|
81
|
+
"storybook-addon-performance": "^0.16.0",
|
|
82
|
+
"typescript": "~5.4.2"
|
|
83
|
+
},
|
|
84
|
+
"keywords": [
|
|
85
|
+
"atlaskit",
|
|
86
|
+
"react",
|
|
87
|
+
"ui"
|
|
88
|
+
],
|
|
89
|
+
"techstack": {
|
|
90
|
+
"@atlassian/frontend": {
|
|
91
|
+
"import-structure": "atlassian-conventions"
|
|
92
|
+
},
|
|
93
|
+
"@repo/internal": {
|
|
94
|
+
"dom-events": "use-bind-event-listener",
|
|
95
|
+
"design-system": "v1",
|
|
96
|
+
"ui-components": [
|
|
97
|
+
"lite-mode"
|
|
98
|
+
],
|
|
99
|
+
"analytics": [
|
|
100
|
+
"analytics-next"
|
|
101
|
+
],
|
|
102
|
+
"design-tokens": [
|
|
103
|
+
"color",
|
|
104
|
+
"spacing"
|
|
105
|
+
],
|
|
106
|
+
"theming": [
|
|
107
|
+
"react-context"
|
|
108
|
+
],
|
|
109
|
+
"deprecation": "no-deprecated-imports",
|
|
110
|
+
"styling": [
|
|
111
|
+
"emotion",
|
|
112
|
+
"static"
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"platform-feature-flags": {
|
|
117
|
+
"platform.design-system-team.page-layout-resize-button-fix_u0qxv": {
|
|
118
|
+
"type": "boolean"
|
|
119
|
+
},
|
|
120
|
+
"platform.atlassian.griffin-navigation-redesign": {
|
|
121
|
+
"type": "boolean"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/page-layout"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -34,19 +35,19 @@ export const Content: (props: ContentProps) => jsx.JSX.Element;
|
|
|
34
35
|
|
|
35
36
|
// @public (undocumented)
|
|
36
37
|
interface ContentProps {
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
children: ReactNode;
|
|
39
|
+
testId?: string;
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
// @public (undocumented)
|
|
42
43
|
type DimensionNames =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
| 'bannerHeight'
|
|
45
|
+
| 'leftPanelWidth'
|
|
46
|
+
| 'leftSidebarFlyoutWidth'
|
|
47
|
+
| 'leftSidebarWidth'
|
|
48
|
+
| 'rightPanelWidth'
|
|
49
|
+
| 'rightSidebarWidth'
|
|
50
|
+
| 'topNavigationHeight';
|
|
50
51
|
|
|
51
52
|
// @public (undocumented)
|
|
52
53
|
export type Dimensions = Partial<Record<DimensionNames, number>>;
|
|
@@ -65,68 +66,66 @@ export const LeftSidebar: (props: LeftSidebarProps) => jsx.JSX.Element;
|
|
|
65
66
|
|
|
66
67
|
// @public (undocumented)
|
|
67
68
|
interface LeftSidebarProps extends SlotWidthProps {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
69
|
+
collapsedState?: 'collapsed' | 'expanded';
|
|
70
|
+
onCollapse?: () => void;
|
|
71
|
+
onExpand?: () => void;
|
|
72
|
+
onFlyoutCollapse?: () => void;
|
|
73
|
+
onFlyoutExpand?: () => void;
|
|
74
|
+
onResizeEnd?: (leftSidebarState: LeftSidebarState) => void;
|
|
75
|
+
onResizeStart?: (leftSidebarState: LeftSidebarState) => void;
|
|
76
|
+
overrides?: {
|
|
77
|
+
ResizeButton?: {
|
|
78
|
+
render?: (
|
|
79
|
+
Component: ElementType<ResizeButtonProps>,
|
|
80
|
+
props: ResizeButtonProps,
|
|
81
|
+
) => ReactElement;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
resizeButtonLabel?: string;
|
|
85
|
+
resizeGrabAreaLabel?: string;
|
|
86
|
+
testId?: string;
|
|
87
|
+
valueTextLabel?: string;
|
|
88
|
+
width?: number;
|
|
88
89
|
}
|
|
89
90
|
|
|
90
91
|
// @public (undocumented)
|
|
91
92
|
export type LeftSidebarState = {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
93
|
+
isFlyoutOpen: boolean;
|
|
94
|
+
isResizing: boolean;
|
|
95
|
+
isLeftSidebarCollapsed: boolean;
|
|
96
|
+
leftSidebarWidth: number;
|
|
97
|
+
lastLeftSidebarWidth: number;
|
|
98
|
+
flyoutLockCount: number;
|
|
99
|
+
isFixed: boolean;
|
|
99
100
|
};
|
|
100
101
|
|
|
101
102
|
// @public
|
|
102
|
-
export const LeftSidebarWithoutResize: (
|
|
103
|
-
props: SlotWidthProps,
|
|
104
|
-
) => jsx.JSX.Element;
|
|
103
|
+
export const LeftSidebarWithoutResize: (props: SlotWidthProps) => jsx.JSX.Element;
|
|
105
104
|
|
|
106
105
|
// @public
|
|
107
106
|
export const Main: (props: SlotWidthProps) => jsx.JSX.Element;
|
|
108
107
|
|
|
109
108
|
// @public
|
|
110
109
|
export const PageLayout: ({
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
110
|
+
skipLinksLabel,
|
|
111
|
+
children,
|
|
112
|
+
testId,
|
|
113
|
+
onLeftSidebarExpand,
|
|
114
|
+
onLeftSidebarCollapse,
|
|
116
115
|
}: PageLayoutProps) => jsx.JSX.Element;
|
|
117
116
|
|
|
118
117
|
// @public (undocumented)
|
|
119
118
|
interface PageLayoutProps extends SidebarResizeControllerProps {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
119
|
+
// (undocumented)
|
|
120
|
+
skipLinksLabel?: string;
|
|
121
|
+
testId?: string;
|
|
123
122
|
}
|
|
124
123
|
|
|
125
124
|
// @public (undocumented)
|
|
126
125
|
type ResizeButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
126
|
+
isLeftSidebarCollapsed: boolean;
|
|
127
|
+
label: string;
|
|
128
|
+
testId?: string;
|
|
130
129
|
};
|
|
131
130
|
|
|
132
131
|
// @public (undocumented)
|
|
@@ -143,39 +142,39 @@ export const RightSidebar: (props: SlotWidthProps) => jsx.JSX.Element;
|
|
|
143
142
|
|
|
144
143
|
// @public (undocumented)
|
|
145
144
|
type SidebarResizeControllerProps = {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
145
|
+
children: ReactNode;
|
|
146
|
+
onLeftSidebarExpand?: (leftSidebarState: LeftSidebarState) => void;
|
|
147
|
+
onLeftSidebarCollapse?: (leftSidebarState: LeftSidebarState) => void;
|
|
149
148
|
};
|
|
150
149
|
|
|
151
150
|
// @public (undocumented)
|
|
152
151
|
type SkipLinkData = {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
152
|
+
id: string;
|
|
153
|
+
skipLinkTitle: string;
|
|
154
|
+
listIndex?: number;
|
|
156
155
|
};
|
|
157
156
|
|
|
158
157
|
// @public (undocumented)
|
|
159
158
|
export interface SlotHeightProps extends SlotProps {
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
height?: number;
|
|
160
|
+
shouldPersistHeight?: boolean;
|
|
162
161
|
}
|
|
163
162
|
|
|
164
163
|
// @public (undocumented)
|
|
165
164
|
interface SlotProps {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
165
|
+
children: ReactNode;
|
|
166
|
+
// (undocumented)
|
|
167
|
+
id?: string;
|
|
168
|
+
isFixed?: boolean;
|
|
169
|
+
// (undocumented)
|
|
170
|
+
skipLinkTitle?: string;
|
|
171
|
+
testId?: string;
|
|
173
172
|
}
|
|
174
173
|
|
|
175
174
|
// @public (undocumented)
|
|
176
175
|
export interface SlotWidthProps extends SlotProps {
|
|
177
|
-
|
|
178
|
-
|
|
176
|
+
shouldPersistWidth?: boolean;
|
|
177
|
+
width?: number;
|
|
179
178
|
}
|
|
180
179
|
|
|
181
180
|
// @public (undocumented)
|
|
@@ -186,9 +185,9 @@ export const TopNavigation: (props: SlotHeightProps) => jsx.JSX.Element;
|
|
|
186
185
|
|
|
187
186
|
// @public (undocumented)
|
|
188
187
|
export const useCustomSkipLink: (
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
188
|
+
id: SkipLinkData['id'],
|
|
189
|
+
skipLinkTitle: SkipLinkData['skipLinkTitle'],
|
|
190
|
+
listIndex?: SkipLinkData['listIndex'],
|
|
192
191
|
) => void;
|
|
193
192
|
|
|
194
193
|
// @public
|
|
@@ -196,17 +195,17 @@ export const useLeftSidebarFlyoutLock: () => void;
|
|
|
196
195
|
|
|
197
196
|
// @public (undocumented)
|
|
198
197
|
export const usePageLayoutResize: () => {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
198
|
+
isLeftSidebarCollapsed: boolean;
|
|
199
|
+
expandLeftSidebar: () => void;
|
|
200
|
+
collapseLeftSidebar: (
|
|
201
|
+
event?: KeyboardEvent_2 | MouseEvent_2,
|
|
202
|
+
collapseWithoutTransition?: boolean,
|
|
203
|
+
) => void;
|
|
204
|
+
toggleLeftSidebar: (
|
|
205
|
+
event?: KeyboardEvent_2 | MouseEvent_2,
|
|
206
|
+
collapseWithoutTransition?: boolean,
|
|
207
|
+
) => void;
|
|
208
|
+
leftSidebarState: LeftSidebarState;
|
|
210
209
|
};
|
|
211
210
|
|
|
212
211
|
// (No @packageDocumentation comment for this package)
|
|
@@ -220,8 +219,8 @@ export const usePageLayoutResize: () => {
|
|
|
220
219
|
|
|
221
220
|
```json
|
|
222
221
|
{
|
|
223
|
-
|
|
224
|
-
|
|
222
|
+
"react": "^16.8.0",
|
|
223
|
+
"react-dom": "^16.8.0"
|
|
225
224
|
}
|
|
226
225
|
```
|
|
227
226
|
|