@@ -2,10 +2,7 @@ import { css, customElement, FASTElement, html, observable, repeat, when } from
22import { staticallyCompose } from "@microsoft/fast-foundation" ;
33import {
44 StyleProperty ,
5- stylePropertyBorderFillAll ,
6- stylePropertyBorderThicknessAll ,
7- stylePropertyCornerRadiusAll ,
8- stylePropertyPaddingAll
5+ StylePropertyShorthand ,
96} from "@adaptive-web/adaptive-ui" ;
107import {
118 cornerRadiusControl ,
@@ -283,7 +280,7 @@ const template = html<App>`
283280 TokenGlyphType . backgroundSwatch ) }
284281 ${ ( x ) =>
285282 availableTokensTemplate (
286- stylePropertyBorderFillAll ,
283+ StylePropertyShorthand . borderFill ,
287284 "Stroke" ,
288285 "stack" ,
289286 TokenGlyphType . borderSwatch
@@ -312,12 +309,12 @@ const template = html<App>`
312309 ${ ( x ) => availableStylesTemplate ( "Shape" ) }
313310 ${ ( x ) =>
314311 availableTokensTemplate (
315- stylePropertyCornerRadiusAll ,
312+ StylePropertyShorthand . cornerRadius ,
316313 "Corner radius" ,
317314 ) }
318315 ${ ( x ) =>
319316 availableTokensTemplate (
320- stylePropertyBorderThicknessAll ,
317+ StylePropertyShorthand . borderThickness ,
321318 "Stroke thickness" ,
322319 ) }
323320 </div>
@@ -336,7 +333,7 @@ const template = html<App>`
336333 ${ ( x ) => availableStylesTemplate ( "Density" ) }
337334 ${ ( x ) =>
338335 availableTokensTemplate (
339- [ ...stylePropertyPaddingAll , StyleProperty . gap ] ,
336+ [ ...StylePropertyShorthand . padding , StyleProperty . gap ] ,
340337 "Density" ,
341338 ) }
342339 </div>
@@ -673,10 +670,10 @@ export class App extends FASTElement {
673670 private refreshObservables ( ) {
674671 this . backgroundTokens = this . controller . styles . getAppliedDesignTokens ( [ StyleProperty . backgroundFill ] ) ;
675672 this . foregroundTokens = this . controller . styles . getAppliedDesignTokens ( [ StyleProperty . foregroundFill ] ) ;
676- this . borderFillTokens = this . controller . styles . getAppliedDesignTokens ( stylePropertyBorderFillAll ) ;
677- this . borderThicknessTokens = this . controller . styles . getAppliedDesignTokens ( stylePropertyBorderThicknessAll ) ;
678- this . densityTokens = this . controller . styles . getAppliedDesignTokens ( [ ...stylePropertyPaddingAll , StyleProperty . gap ] ) ;
679- this . cornerRadiusTokens = this . controller . styles . getAppliedDesignTokens ( stylePropertyCornerRadiusAll ) ;
673+ this . borderFillTokens = this . controller . styles . getAppliedDesignTokens ( StylePropertyShorthand . borderFill ) ;
674+ this . borderThicknessTokens = this . controller . styles . getAppliedDesignTokens ( StylePropertyShorthand . borderThickness ) ;
675+ this . densityTokens = this . controller . styles . getAppliedDesignTokens ( [ ...StylePropertyShorthand . padding , StyleProperty . gap ] ) ;
676+ this . cornerRadiusTokens = this . controller . styles . getAppliedDesignTokens ( StylePropertyShorthand . cornerRadius ) ;
680677 this . textTokens = this . controller . styles . getAppliedDesignTokens ( [
681678 StyleProperty . fontFamily ,
682679 StyleProperty . fontStyle ,
0 commit comments