@@ -40,17 +40,17 @@ export function blackOrWhiteByContrastSet(set: InteractiveSwatchSet, minContrast
4040// @public
4141export type BooleanCondition = string ;
4242
43- // @public (undocumented)
43+ // @public @deprecated (undocumented)
4444export const BorderFill: {
4545 all: (value : StyleValue ) => StyleProperties ;
4646};
4747
48- // @public (undocumented)
48+ // @public @deprecated (undocumented)
4949export const BorderStyle: {
5050 all: (value : StyleValue ) => StyleProperties ;
5151};
5252
53- // @public (undocumented)
53+ // @public @deprecated (undocumented)
5454export const BorderThickness: {
5555 all: (value : StyleValue ) => StyleProperties ;
5656};
@@ -133,7 +133,7 @@ export function contrastSwatch(palette: Palette, reference: Swatch, minContrast:
133133// @public
134134export const convertStylesToFocusState: (styles : Styles ) => Styles ;
135135
136- // @public (undocumented)
136+ // @public @deprecated (undocumented)
137137export const CornerRadius: {
138138 all: (value : StyleValue ) => StyleProperties ;
139139};
@@ -300,6 +300,9 @@ export type DesignTokenType = ValuesOf<typeof DesignTokenType> | string;
300300// @public
301301export function directionByIsDark(color : RelativeLuminance ): PaletteDirectionValue ;
302302
303+ // @public
304+ export type EffectiveStylePropertiesMap = Map <string , StyleValue >;
305+
303306// @public
304307export class ElementStylesRenderer {
305308 constructor (styles : Styles );
@@ -410,7 +413,7 @@ export function luminanceSwatch(luminance: number): Swatch;
410413// @public
411414export function makeSelector(params : StyleModuleEvaluateParameters , state : InteractiveState ): string ;
412415
413- // @public (undocumented)
416+ // @public @deprecated (undocumented)
414417export const Padding: {
415418 all: (value : StyleValue ) => StyleProperties ;
416419 verticalHorizontal: (valueVertical : StyleValue , valueHorizontal : StyleValue ) => StyleProperties ;
@@ -555,6 +558,9 @@ export type StyleDeclaration = {
555558 properties? : StyleProperties ;
556559};
557560
561+ // @public
562+ export type StyleKey = StyleProperty | StylePropertyShorthand | (string & Record <never , never >);
563+
558564// @public
559565export type StyleModuleEvaluateParameters = StyleModuleTarget & InteractivityDefinition ;
560566
@@ -570,10 +576,10 @@ export interface StyleModuleTarget {
570576}
571577
572578// @public
573- export type StyleProperties = Partial <Record <StylePropertyCss , StyleValue >>;
579+ export type StyleProperties = Partial <Record <StyleKey , StyleValue >>;
574580
575581// @public
576- export type StylePropertiesMap = Map <StylePropertyCss , StyleValue >;
582+ export type StylePropertiesMap = Map <StyleKey , StyleValue >;
577583
578584// @public
579585export const StyleProperty: {
@@ -626,24 +632,41 @@ export const StyleProperty: {
626632// @public
627633export type StyleProperty = ValuesOf <typeof StyleProperty >;
628634
629- // @public
635+ // @public @deprecated
630636export const stylePropertyBorderFillAll: (" borderFillTop" | " borderFillRight" | " borderFillBottom" | " borderFillLeft" )[];
631637
632- // @public
638+ // @public @deprecated
633639export const stylePropertyBorderStyleAll: (" borderStyleTop" | " borderStyleRight" | " borderStyleBottom" | " borderStyleLeft" )[];
634640
635- // @public
641+ // @public @deprecated
636642export const stylePropertyBorderThicknessAll: (" borderThicknessTop" | " borderThicknessRight" | " borderThicknessBottom" | " borderThicknessLeft" )[];
637643
638- // @public
644+ // @public @deprecated
639645export const stylePropertyCornerRadiusAll: (" cornerRadiusTopLeft" | " cornerRadiusTopRight" | " cornerRadiusBottomRight" | " cornerRadiusBottomLeft" )[];
640646
641- // @public
647+ // @public @deprecated
642648export type StylePropertyCss = StyleProperty | (string & Record <never , never >);
643649
644- // @public
650+ // @public @deprecated
645651export const stylePropertyPaddingAll: (" paddingTop" | " paddingRight" | " paddingBottom" | " paddingLeft" )[];
646652
653+ // @public (undocumented)
654+ export const StylePropertyShorthand: {
655+ borderFill: (" borderFillTop" | " borderFillRight" | " borderFillBottom" | " borderFillLeft" )[];
656+ borderThickness: (" borderThicknessTop" | " borderThicknessRight" | " borderThicknessBottom" | " borderThicknessLeft" )[];
657+ borderStyle: (" borderStyleTop" | " borderStyleRight" | " borderStyleBottom" | " borderStyleLeft" )[];
658+ cornerRadius: (" cornerRadiusTopLeft" | " cornerRadiusTopRight" | " cornerRadiusBottomRight" | " cornerRadiusBottomLeft" )[];
659+ margin: (" marginTop" | " marginRight" | " marginBottom" | " marginLeft" )[];
660+ marginHorizontal: (" marginRight" | " marginLeft" )[];
661+ marginVertical: (" marginTop" | " marginBottom" )[];
662+ padding: (" paddingTop" | " paddingRight" | " paddingBottom" | " paddingLeft" )[];
663+ paddingHorizontal: (" paddingRight" | " paddingLeft" )[];
664+ paddingVertical: (" paddingTop" | " paddingBottom" )[];
665+ };
666+
667+ // @public
668+ export type StylePropertyShorthand = keyof typeof StylePropertyShorthand ;
669+
647670// @public
648671export type StyleRule = {
649672 target? : StyleModuleTarget ;
@@ -660,7 +683,7 @@ export class Styles {
660683 static compose(styles : Styles [], properties ? : StyleProperties , name ? : string ): Styles ;
661684 get composed(): Styles [] | undefined ;
662685 get effectiveAdaptiveProperties(): Map <StyleProperty , StyleValue >;
663- get effectiveProperties(): StylePropertiesMap ;
686+ get effectiveProperties(): EffectiveStylePropertiesMap ;
664687 static fromDeclaration(declaration : StyleDeclaration , name ? : string ): Styles ;
665688 static fromProperties(properties : StyleProperties , name ? : string ): Styles ;
666689 readonly name: string | undefined ;
0 commit comments