@@ -83,49 +83,42 @@ 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 . Content padding = "normal" width = "large ">
86
+ < PageLayout . Pane resizable padding = "normal" divider = "line" sticky = { args . sticky } aria-label = "Side pane ">
87
87
< Box sx = { { display : 'grid' , gap : 3 } } >
88
- { Array . from ( { length : args . numParagraphsInContent } ) . map ( ( _ , i ) => {
89
- const testId = `content ${ i } `
88
+ { Array . from ( { length : args . numParagraphsInPane } ) . map ( ( _ , i ) => {
89
+ const testId = `paragraph ${ 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. 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.
96
+ massa purus.
99
97
</ span >
100
98
</ Box >
101
99
)
102
100
} ) }
103
101
</ Box >
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
- >
102
+ </ PageLayout . Pane >
103
+ < PageLayout . Content padding = "normal" width = "large" >
113
104
< Box sx = { { display : 'grid' , gap : 3 } } >
114
- { Array . from ( { length : args . numParagraphsInPane } ) . map ( ( _ , i ) => {
115
- const testId = `paragraph ${ i } `
105
+ { Array . from ( { length : args . numParagraphsInContent } ) . map ( ( _ , i ) => {
106
+ const testId = `content ${ i } `
116
107
return (
117
108
< Box key = { i } as = "p" sx = { { margin : 0 } } >
118
109
< span data-testid = { testId } >
119
110
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam at enim id lorem tempus egestas a non
120
111
ipsum. Maecenas imperdiet ante quam, at varius lorem molestie vel. Sed at eros consequat, varius tellus
121
112
et, auctor felis. Donec pulvinar lacinia urna nec commodo. Phasellus at imperdiet risus. Donec sit amet
122
- massa purus.
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.
123
116
</ span >
124
117
</ Box >
125
118
)
126
119
} ) }
127
120
</ Box >
128
- </ PageLayout . Pane >
121
+ </ PageLayout . Content >
129
122
< PageLayout . Footer padding = "normal" divider = "line" >
130
123
< Placeholder label = "Footer" height = { 64 } />
131
124
</ PageLayout . Footer >
@@ -158,32 +151,32 @@ export const NestedScrollContainer: Story = args => (
158
151
< PageLayout . Header padding = "normal" divider = "line" >
159
152
< Placeholder label = "Header" height = { 64 } />
160
153
</ PageLayout . Header >
161
- < PageLayout . Content padding = "normal" width = "large ">
154
+ < PageLayout . Pane padding = "normal" divider = "line" sticky aria-label = "Side pane ">
162
155
< Box sx = { { display : 'grid' , gap : 3 } } >
163
- { Array . from ( { length : args . numParagraphsInContent } ) . map ( ( _ , i ) => (
156
+ { Array . from ( { length : args . numParagraphsInPane } ) . map ( ( _ , i ) => (
164
157
< Box key = { i } as = "p" sx = { { margin : 0 } } >
165
158
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam at enim id lorem tempus egestas a non
166
159
ipsum. Maecenas imperdiet ante quam, at varius lorem molestie vel. Sed at eros consequat, varius tellus
167
160
et, auctor felis. Donec pulvinar lacinia urna nec commodo. Phasellus at imperdiet risus. Donec sit amet
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.
161
+ massa purus.
171
162
</ Box >
172
163
) ) }
173
164
</ Box >
174
- </ PageLayout . Content >
175
- < PageLayout . Pane position = "start" padding = "normal" divider = "line" sticky aria-label = "Side pane ">
165
+ </ PageLayout . Pane >
166
+ < PageLayout . Content padding = "normal" width = "large ">
176
167
< Box sx = { { display : 'grid' , gap : 3 } } >
177
- { Array . from ( { length : args . numParagraphsInPane } ) . map ( ( _ , i ) => (
168
+ { Array . from ( { length : args . numParagraphsInContent } ) . map ( ( _ , i ) => (
178
169
< Box key = { i } as = "p" sx = { { margin : 0 } } >
179
170
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam at enim id lorem tempus egestas a non
180
171
ipsum. Maecenas imperdiet ante quam, at varius lorem molestie vel. Sed at eros consequat, varius tellus
181
172
et, auctor felis. Donec pulvinar lacinia urna nec commodo. Phasellus at imperdiet risus. Donec sit amet
182
- massa purus.
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.
183
176
</ Box >
184
177
) ) }
185
178
</ Box >
186
- </ PageLayout . Pane >
179
+ </ PageLayout . Content >
187
180
< PageLayout . Footer padding = "normal" divider = "line" >
188
181
< Placeholder label = "Footer" height = { 64 } />
189
182
</ PageLayout . Footer >
@@ -228,6 +221,23 @@ export const CustomStickyHeader: Story = args => (
228
221
Custom sticky header
229
222
</ Box >
230
223
< 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 >
231
241
< PageLayout . Content padding = "normal" width = "large" >
232
242
< Box sx = { { display : 'grid' , gap : 3 } } data-testid = "scrollContainer" >
233
243
{ Array . from ( { length : args . numParagraphsInContent } ) . map ( ( _ , i ) => {
@@ -248,30 +258,6 @@ export const CustomStickyHeader: Story = args => (
248
258
} ) }
249
259
</ Box >
250
260
</ 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 >
275
261
< PageLayout . Footer padding = "normal" divider = "line" >
276
262
< Placeholder label = "Footer" height = { 64 } />
277
263
</ PageLayout . Footer >
@@ -306,7 +292,7 @@ export const ResizablePane: Story = () => (
306
292
< PageLayout . Header >
307
293
< Placeholder height = { 64 } label = "Header" />
308
294
</ PageLayout . Header >
309
- < PageLayout . Pane resizable position = "start" >
295
+ < PageLayout . Pane resizable >
310
296
< Placeholder height = { 320 } label = "Pane" />
311
297
</ PageLayout . Pane >
312
298
< PageLayout . Content >
@@ -323,7 +309,7 @@ export const ScrollContainerWithinPageLayoutPane: Story = () => (
323
309
< Box sx = { { overflow : 'auto' } } >
324
310
< Placeholder label = "Above inner scroll container" height = { 120 } />
325
311
< PageLayout rowGap = "none" columnGap = "none" padding = "none" containerWidth = "full" >
326
- < PageLayout . Pane position = "start" padding = "normal" divider = "line" sticky aria-label = "Sticky pane" >
312
+ < PageLayout . Pane padding = "normal" divider = "line" sticky aria-label = "Sticky pane" >
327
313
< Box sx = { { overflow : 'auto' } } >
328
314
< PageLayout . Pane padding = "normal" >
329
315
< Placeholder label = "Inner scroll container" height = { 800 } />
0 commit comments