@@ -83,42 +83,49 @@ export const StickyPane: Story = args => (
83
83
< PageLayout . Header padding = "normal" divider = "line" >
84
84
< Placeholder label = "Header" height = { 64 } />
85
85
</ PageLayout . Header >
86
- < PageLayout . Pane resizable padding = "normal" divider = "line" sticky = { args . sticky } aria-label = "Side pane ">
86
+ < PageLayout . Content padding = "normal" width = "large ">
87
87
< Box sx = { { display : 'grid' , gap : 3 } } >
88
- { Array . from ( { length : args . numParagraphsInPane } ) . map ( ( _ , i ) => {
89
- const testId = `paragraph ${ i } `
88
+ { Array . from ( { length : args . numParagraphsInContent } ) . map ( ( _ , i ) => {
89
+ const testId = `content ${ i } `
90
90
return (
91
91
< Box key = { i } as = "p" sx = { { margin : 0 } } >
92
92
< span data-testid = { testId } >
93
93
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam at enim id lorem tempus egestas a non
94
94
ipsum. Maecenas imperdiet ante quam, at varius lorem molestie vel. Sed at eros consequat, varius tellus
95
95
et, auctor felis. Donec pulvinar lacinia urna nec commodo. Phasellus at imperdiet risus. Donec sit amet
96
- massa purus.
96
+ massa purus. Nunc sem lectus, bibendum a sapien nec, tristique tempus felis. Ut porttitor auctor tellus
97
+ in imperdiet. Ut blandit tincidunt augue, quis fringilla nunc tincidunt sed. Vestibulum auctor euismod
98
+ nisi. Nullam tincidunt est in mi tincidunt dictum. Sed consectetur aliquet velit ut ornare.
97
99
</ span >
98
100
</ Box >
99
101
)
100
102
} ) }
101
103
</ Box >
102
- </ PageLayout . Pane >
103
- < PageLayout . Content padding = "normal" width = "large" >
104
+ </ PageLayout . Content >
105
+ < PageLayout . Pane
106
+ position = "start"
107
+ resizable
108
+ padding = "normal"
109
+ divider = "line"
110
+ sticky = { args . sticky }
111
+ aria-label = "Side pane"
112
+ >
104
113
< Box sx = { { display : 'grid' , gap : 3 } } >
105
- { Array . from ( { length : args . numParagraphsInContent } ) . map ( ( _ , i ) => {
106
- const testId = `content ${ i } `
114
+ { Array . from ( { length : args . numParagraphsInPane } ) . map ( ( _ , i ) => {
115
+ const testId = `paragraph ${ i } `
107
116
return (
108
117
< Box key = { i } as = "p" sx = { { margin : 0 } } >
109
118
< span data-testid = { testId } >
110
119
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam at enim id lorem tempus egestas a non
111
120
ipsum. Maecenas imperdiet ante quam, at varius lorem molestie vel. Sed at eros consequat, varius tellus
112
121
et, auctor felis. Donec pulvinar lacinia urna nec commodo. Phasellus at imperdiet risus. Donec sit amet
113
- massa purus. Nunc sem lectus, bibendum a sapien nec, tristique tempus felis. Ut porttitor auctor tellus
114
- in imperdiet. Ut blandit tincidunt augue, quis fringilla nunc tincidunt sed. Vestibulum auctor euismod
115
- nisi. Nullam tincidunt est in mi tincidunt dictum. Sed consectetur aliquet velit ut ornare.
122
+ massa purus.
116
123
</ span >
117
124
</ Box >
118
125
)
119
126
} ) }
120
127
</ Box >
121
- </ PageLayout . Content >
128
+ </ PageLayout . Pane >
122
129
< PageLayout . Footer padding = "normal" divider = "line" >
123
130
< Placeholder label = "Footer" height = { 64 } />
124
131
</ PageLayout . Footer >
@@ -151,32 +158,32 @@ export const NestedScrollContainer: Story = args => (
151
158
< PageLayout . Header padding = "normal" divider = "line" >
152
159
< Placeholder label = "Header" height = { 64 } />
153
160
</ PageLayout . Header >
154
- < PageLayout . Pane padding = "normal" divider = "line" sticky aria-label = "Side pane ">
161
+ < PageLayout . Content padding = "normal" width = "large ">
155
162
< Box sx = { { display : 'grid' , gap : 3 } } >
156
- { Array . from ( { length : args . numParagraphsInPane } ) . map ( ( _ , i ) => (
163
+ { Array . from ( { length : args . numParagraphsInContent } ) . map ( ( _ , i ) => (
157
164
< Box key = { i } as = "p" sx = { { margin : 0 } } >
158
165
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam at enim id lorem tempus egestas a non
159
166
ipsum. Maecenas imperdiet ante quam, at varius lorem molestie vel. Sed at eros consequat, varius tellus
160
167
et, auctor felis. Donec pulvinar lacinia urna nec commodo. Phasellus at imperdiet risus. Donec sit amet
161
- massa purus.
168
+ massa purus. Nunc sem lectus, bibendum a sapien nec, tristique tempus felis. Ut porttitor auctor tellus
169
+ in imperdiet. Ut blandit tincidunt augue, quis fringilla nunc tincidunt sed. Vestibulum auctor euismod
170
+ nisi. Nullam tincidunt est in mi tincidunt dictum. Sed consectetur aliquet velit ut ornare.
162
171
</ Box >
163
172
) ) }
164
173
</ Box >
165
- </ PageLayout . Pane >
166
- < PageLayout . Content padding = "normal" width = "large ">
174
+ </ PageLayout . Content >
175
+ < PageLayout . Pane position = "start" padding = "normal" divider = "line" sticky aria-label = "Side pane ">
167
176
< Box sx = { { display : 'grid' , gap : 3 } } >
168
- { Array . from ( { length : args . numParagraphsInContent } ) . map ( ( _ , i ) => (
177
+ { Array . from ( { length : args . numParagraphsInPane } ) . map ( ( _ , i ) => (
169
178
< Box key = { i } as = "p" sx = { { margin : 0 } } >
170
179
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam at enim id lorem tempus egestas a non
171
180
ipsum. Maecenas imperdiet ante quam, at varius lorem molestie vel. Sed at eros consequat, varius tellus
172
181
et, auctor felis. Donec pulvinar lacinia urna nec commodo. Phasellus at imperdiet risus. Donec sit amet
173
- massa purus. Nunc sem lectus, bibendum a sapien nec, tristique tempus felis. Ut porttitor auctor tellus
174
- in imperdiet. Ut blandit tincidunt augue, quis fringilla nunc tincidunt sed. Vestibulum auctor euismod
175
- nisi. Nullam tincidunt est in mi tincidunt dictum. Sed consectetur aliquet velit ut ornare.
182
+ massa purus.
176
183
</ Box >
177
184
) ) }
178
185
</ Box >
179
- </ PageLayout . Content >
186
+ </ PageLayout . Pane >
180
187
< PageLayout . Footer padding = "normal" divider = "line" >
181
188
< Placeholder label = "Footer" height = { 64 } />
182
189
</ PageLayout . Footer >
@@ -221,23 +228,6 @@ export const CustomStickyHeader: Story = args => (
221
228
Custom sticky header
222
229
</ Box >
223
230
< PageLayout rowGap = "none" columnGap = "none" padding = "none" containerWidth = "full" >
224
- < PageLayout . Pane padding = "normal" divider = "line" aria-label = "Aside pane" sticky offsetHeader = { args . offsetHeader } >
225
- < Box sx = { { display : 'grid' , gap : 3 } } >
226
- { Array . from ( { length : args . numParagraphsInPane } ) . map ( ( _ , i ) => {
227
- const testId = `paragraph${ i } `
228
- return (
229
- < Box key = { i } as = "p" sx = { { margin : 0 } } >
230
- < span data-testid = { testId } >
231
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam at enim id lorem tempus egestas a non
232
- ipsum. Maecenas imperdiet ante quam, at varius lorem molestie vel. Sed at eros consequat, varius
233
- tellus et, auctor felis. Donec pulvinar lacinia urna nec commodo. Phasellus at imperdiet risus. Donec
234
- sit amet massa purus.
235
- </ span >
236
- </ Box >
237
- )
238
- } ) }
239
- </ Box >
240
- </ PageLayout . Pane >
241
231
< PageLayout . Content padding = "normal" width = "large" >
242
232
< Box sx = { { display : 'grid' , gap : 3 } } data-testid = "scrollContainer" >
243
233
{ Array . from ( { length : args . numParagraphsInContent } ) . map ( ( _ , i ) => {
@@ -258,6 +248,30 @@ export const CustomStickyHeader: Story = args => (
258
248
} ) }
259
249
</ Box >
260
250
</ PageLayout . Content >
251
+ < PageLayout . Pane
252
+ position = "start"
253
+ padding = "normal"
254
+ divider = "line"
255
+ aria-label = "Aside pane"
256
+ sticky
257
+ offsetHeader = { args . offsetHeader }
258
+ >
259
+ < Box sx = { { display : 'grid' , gap : 3 } } >
260
+ { Array . from ( { length : args . numParagraphsInPane } ) . map ( ( _ , i ) => {
261
+ const testId = `paragraph${ i } `
262
+ return (
263
+ < Box key = { i } as = "p" sx = { { margin : 0 } } >
264
+ < span data-testid = { testId } >
265
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam at enim id lorem tempus egestas a non
266
+ ipsum. Maecenas imperdiet ante quam, at varius lorem molestie vel. Sed at eros consequat, varius
267
+ tellus et, auctor felis. Donec pulvinar lacinia urna nec commodo. Phasellus at imperdiet risus. Donec
268
+ sit amet massa purus.
269
+ </ span >
270
+ </ Box >
271
+ )
272
+ } ) }
273
+ </ Box >
274
+ </ PageLayout . Pane >
261
275
< PageLayout . Footer padding = "normal" divider = "line" >
262
276
< Placeholder label = "Footer" height = { 64 } />
263
277
</ PageLayout . Footer >
@@ -292,7 +306,7 @@ export const ResizablePane: Story = () => (
292
306
< PageLayout . Header >
293
307
< Placeholder height = { 64 } label = "Header" />
294
308
</ PageLayout . Header >
295
- < PageLayout . Pane resizable >
309
+ < PageLayout . Pane resizable position = "start" >
296
310
< Placeholder height = { 320 } label = "Pane" />
297
311
</ PageLayout . Pane >
298
312
< PageLayout . Content >
@@ -309,7 +323,7 @@ export const ScrollContainerWithinPageLayoutPane: Story = () => (
309
323
< Box sx = { { overflow : 'auto' } } >
310
324
< Placeholder label = "Above inner scroll container" height = { 120 } />
311
325
< PageLayout rowGap = "none" columnGap = "none" padding = "none" containerWidth = "full" >
312
- < PageLayout . Pane padding = "normal" divider = "line" sticky aria-label = "Sticky pane" >
326
+ < PageLayout . Pane position = "start" padding = "normal" divider = "line" sticky aria-label = "Sticky pane" >
313
327
< Box sx = { { overflow : 'auto' } } >
314
328
< PageLayout . Pane padding = "normal" >
315
329
< Placeholder label = "Inner scroll container" height = { 800 } />
0 commit comments