@@ -76,33 +76,19 @@ ${props=>props.$animationStyle&&props.$animationStyle}
76
76
display: flex;
77
77
flex-flow: column;
78
78
height: 100%;
79
- border: ${ ( props ) => props . $style . borderWidth } solid
80
- ${ ( props ) => props . $style . border } ;
79
+ border: ${ ( props ) => props . $style . borderWidth } solid ${ ( props ) => props . $style . border } ;
81
80
border-radius: ${ ( props ) => props . $style . radius } ;
82
81
background-color: ${ ( props ) => props . $style . background } ;
83
82
padding: ${ ( props ) => props . $style . padding } ;
84
83
margin: ${ ( props ) => props . $style . margin } ;
85
- ${ ( props ) =>
86
- props . $style . backgroundImage &&
87
- `background-image: url(${ props . $style . backgroundImage } );` }
88
- ${ ( props ) =>
89
- props . $style . backgroundImageRepeat &&
90
- `background-repeat: ${ props . $style . backgroundImageRepeat } ;` }
91
- ${ ( props ) =>
92
- props . $style . backgroundImageSize &&
93
- `background-size: ${ props . $style . backgroundImageSize } ;` }
94
- ${ ( props ) =>
95
- props . $style . backgroundImagePosition &&
96
- `background-position: ${ props . $style . backgroundImagePosition } ;` }
97
- ${ ( props ) =>
98
- props . $style . backgroundImageOrigin &&
99
- `background-origin: ${ props . $style . backgroundImageOrigin } ;` }
84
+ ${ ( props ) => props . $style . backgroundImage && `background-image: url(${ props . $style . backgroundImage } );` }
85
+ ${ ( props ) => props . $style . backgroundImageRepeat && `background-repeat: ${ props . $style . backgroundImageRepeat } ;` }
86
+ ${ ( props ) => props . $style . backgroundImageSize && `background-size: ${ props . $style . backgroundImageSize } ;` }
87
+ ${ ( props ) => props . $style . backgroundImagePosition && `background-position: ${ props . $style . backgroundImagePosition } ;` }
88
+ ${ ( props ) => props . $style . backgroundImageOrigin && `background-origin: ${ props . $style . backgroundImageOrigin } ;` }
100
89
` ;
101
90
102
- const FloatTextWrapper = styled . div < {
103
- $style : TextStyleType ;
104
- $horizontalAlignment : any ;
105
- } > `
91
+ const FloatTextWrapper = styled . div < { $style : TextStyleType , $horizontalAlignment : any } > `
106
92
${ ( props ) => props . $style && getStyle ( props . $style ) }
107
93
text-align: ${ ( props ) => props . $horizontalAlignment } ;
108
94
padding: ${ ( props ) => props . $style . padding } ;
@@ -190,25 +176,26 @@ export function TriContainer(props: TriContainerProps) {
190
176
return (
191
177
< Wrapper $style = { style } $animationStyle = { animationStyle } >
192
178
{ showHeader && (
193
- < BackgroundColorContext . Provider value = { container . style . background } >
179
+ < BackgroundColorContext . Provider
180
+ value = { container . style . background }
181
+ >
194
182
< HeaderInnerGrid
195
183
{ ...otherHeaderProps }
196
- items = { gridItemCompToGridItems ( headerItems ) }
197
- autoHeight = { true }
198
- emptyRows = { 5 }
199
- minHeight = "46px"
200
- containerPadding = { [ 0 , 0 ] }
201
- showName = { { bottom : showFooter ? 20 : 0 } }
202
- $backgroundColor = { headerStyle ?. headerBackground || 'transparent' }
203
- style = { { padding : headerStyle . containerHeaderPadding } }
204
- />
184
+ items = { gridItemCompToGridItems ( headerItems ) }
185
+ autoHeight = { true }
186
+ emptyRows = { 5 }
187
+ minHeight = "46px"
188
+ containerPadding = { [ 0 , 0 ] }
189
+ showName = { { bottom : showFooter ? 20 : 0 } }
190
+ $backgroundColor = { headerStyle ?. headerBackground || "transparent" }
191
+ style = { { padding : headerStyle . containerHeaderPadding } } />
205
192
</ BackgroundColorContext . Provider >
206
193
) }
207
194
{ showBody && (
208
195
< BackgroundColorContext . Provider value = { container . style . background } >
209
196
< div
210
197
style = { {
211
- overflowY : ' scroll' ,
198
+ overflowY : " scroll" ,
212
199
background : `${ container . style . background } ` ,
213
200
} }
214
201
>
@@ -218,25 +205,25 @@ export function TriContainer(props: TriContainerProps) {
218
205
items = { gridItemCompToGridItems ( bodyItems ) }
219
206
autoHeight = { container . autoHeight }
220
207
emptyRows = { 14 }
221
- minHeight = { showHeader ? ' 143px' : ' 142px' }
208
+ minHeight = { showHeader ? " 143px" : " 142px" }
222
209
containerPadding = { [ 0 , 0 ] }
223
210
hintPlaceholder = { props . hintPlaceholder ?? HintPlaceHolder }
224
- $backgroundColor = { bodyStyle ?. background || ' transparent' }
211
+ $backgroundColor = { bodyStyle ?. background || " transparent" }
225
212
$borderColor = { style ?. border }
226
213
$borderWidth = { style ?. borderWidth }
227
214
style = { {
228
215
float : `${ props . float } ` ,
229
- width : `${ props . float === ' none' ? ' 100%' : `${ props . width } %` } ` ,
230
- height : ' 100%' ,
216
+ width : `${ props . float === " none" ? " 100%" : `${ props . width } %` } ` ,
217
+ height : " 100%" ,
231
218
...container . bodyStyle ,
232
219
} }
233
- />
220
+ />
234
221
< FloatTextWrapper
235
222
$style = { props . style }
236
223
$horizontalAlignment = { props . horizontalAlignment }
237
224
>
238
225
< p >
239
- { props . type === ' markdown' ? (
226
+ { props . type === " markdown" ? (
240
227
< TacoMarkDown > { text . value } </ TacoMarkDown >
241
228
) : (
242
229
text . value
@@ -247,28 +234,24 @@ export function TriContainer(props: TriContainerProps) {
247
234
</ BackgroundColorContext . Provider >
248
235
) }
249
236
{ showFooter && (
250
- < BackgroundColorContext . Provider value = { container . style . background } >
237
+ < BackgroundColorContext . Provider
238
+ value = { container . style . background }
239
+ >
251
240
< FooterInnerGrid
252
241
$showBorder = { showHeader }
253
242
{ ...otherFooterProps }
254
243
items = { gridItemCompToGridItems ( footerItems ) }
255
244
autoHeight = { true }
256
245
emptyRows = { 5 }
257
- minHeight = { ' 48px' }
246
+ minHeight = { " 48px" }
258
247
containerPadding = { [ 0 , 0 ] }
259
- showName = { { top : showHeader ? 20 : 0 } }
260
- $backgroundColor = { footerStyle ?. footerBackground || ' transparent' }
248
+ showName = { { top : showHeader ? 20 : 0 } }
249
+ $backgroundColor = { footerStyle ?. footerBackground || " transparent" }
261
250
$footerBackgroundImage = { footerStyle ?. footerBackgroundImage }
262
- $footerBackgroundImageRepeat = {
263
- footerStyle ?. footerBackgroundImageRepeat
264
- }
251
+ $footerBackgroundImageRepeat = { footerStyle ?. footerBackgroundImageRepeat }
265
252
$footerBackgroundImageSize = { footerStyle ?. footerBackgroundImageSize }
266
- $footerBackgroundImagePosition = {
267
- footerStyle ?. footerBackgroundImagePosition
268
- }
269
- $footerBackgroundImageOrigin = {
270
- footerStyle ?. footerBackgroundImageOrigin
271
- }
253
+ $footerBackgroundImagePosition = { footerStyle ?. footerBackgroundImagePosition }
254
+ $footerBackgroundImageOrigin = { footerStyle ?. footerBackgroundImageOrigin }
272
255
$borderColor = { style ?. border }
273
256
$borderWidth = { style ?. borderWidth }
274
257
style = { { padding : footerStyle . containerFooterPadding } }
0 commit comments