@@ -10,7 +10,7 @@ import SvgIcon from '../../../shared/svg-icon';
10
10
// State Constructor(s)
11
11
/// ///////////////////////////////////////////
12
12
13
- const TreeGrid = props => (
13
+ export const TreeGrid = props => (
14
14
< table
15
15
className = "slds-table slds-table_bordered slds-tree slds-table_tree"
16
16
role = "treegrid"
@@ -110,29 +110,29 @@ const Row = props => (
110
110
</ a >
111
111
</ div >
112
112
</ th >
113
- < td data-label = "Employees" >
113
+ < td data-label = "Employees" role = "gridcell" >
114
114
< div className = "slds-truncate" title = { props . employees } >
115
115
{ props . employees }
116
116
</ div >
117
117
</ td >
118
- < td data-label = "Phone Number" >
118
+ < td data-label = "Phone Number" role = "gridcell" >
119
119
< div className = "slds-truncate" title = { props . phone } >
120
120
{ props . phone }
121
121
</ div >
122
122
</ td >
123
- < td data-label = "Account Owner" >
123
+ < td data-label = "Account Owner" role = "gridcell" >
124
124
< div className = "slds-truncate" title = { props . owner } >
125
125
< a href = "javascript:void(0);" tabIndex = "-1" >
126
126
{ props . owner }
127
127
</ a >
128
128
</ div >
129
129
</ td >
130
- < td data-label = "Billing City" >
130
+ < td data-label = "Billing City" role = "gridcell" >
131
131
< div className = "slds-truncate" title = { props . city } >
132
132
{ props . city }
133
133
</ div >
134
134
</ td >
135
- < td className = "slds-cell-shrink" >
135
+ < td className = "slds-cell-shrink" role = "gridcell" >
136
136
< ButtonIcon
137
137
aria-haspopup = "true"
138
138
assistiveText = { `More actions for ${ props . name } ` }
@@ -146,7 +146,7 @@ const Row = props => (
146
146
</ tr >
147
147
) ;
148
148
149
- const Default = props => (
149
+ export const DefaultRows = props => (
150
150
< tbody >
151
151
< Row
152
152
aria-level = "1"
@@ -195,7 +195,7 @@ const Default = props => (
195
195
</ tbody >
196
196
) ;
197
197
198
- const Expanded = props => (
198
+ export const ExpandedRow = props => (
199
199
< Row
200
200
aria-level = "2"
201
201
aria-posinset = "1"
@@ -208,7 +208,7 @@ const Expanded = props => (
208
208
/>
209
209
) ;
210
210
211
- const DeepNesting = props => (
211
+ export const DeepNestingRows = props => (
212
212
< tbody >
213
213
< Row
214
214
aria-level = "1"
@@ -367,7 +367,7 @@ const DeepNesting = props => (
367
367
368
368
export default (
369
369
< TreeGrid >
370
- < Default />
370
+ < DefaultRows />
371
371
</ TreeGrid >
372
372
) ;
373
373
@@ -377,7 +377,7 @@ export let states = [
377
377
label : 'Expanded' ,
378
378
element : (
379
379
< TreeGrid >
380
- < Default isExpanded additionalItem = { < Expanded /> } />
380
+ < DefaultRows isExpanded additionalItem = { < ExpandedRow /> } />
381
381
</ TreeGrid >
382
382
)
383
383
} ,
@@ -386,7 +386,7 @@ export let states = [
386
386
label : 'Deeply nested branches' ,
387
387
element : (
388
388
< TreeGrid >
389
- < DeepNesting />
389
+ < DeepNestingRows />
390
390
</ TreeGrid >
391
391
)
392
392
}
0 commit comments