@@ -692,6 +692,17 @@ export const LinkStruct: Describe<LinkElement> = element('Link', {
692692 ] ) ,
693693} ) ;
694694
695+ /**
696+ * A struct for the {@link SkeletonElement} type.
697+ */
698+ export const SkeletonStruct : Describe < SkeletonElement > = element ( 'Skeleton' , {
699+ width : optional ( union ( [ number ( ) , string ( ) ] ) ) ,
700+ height : optional ( union ( [ number ( ) , string ( ) ] ) ) ,
701+ borderRadius : optional (
702+ nullUnion ( [ literal ( 'none' ) , literal ( 'medium' ) , literal ( 'full' ) ] ) ,
703+ ) ,
704+ } ) ;
705+
695706/**
696707 * A struct for the {@link TextElement} type.
697708 */
@@ -701,7 +712,13 @@ export const TextStruct: Describe<TextElement> = element('Text', {
701712 if ( typeof value === 'string' ) {
702713 return string ( ) ;
703714 }
704- return typedUnion ( [ BoldStruct , ItalicStruct , LinkStruct , IconStruct ] ) ;
715+ return typedUnion ( [
716+ BoldStruct ,
717+ ItalicStruct ,
718+ LinkStruct ,
719+ IconStruct ,
720+ SkeletonStruct ,
721+ ] ) ;
705722 } ) ,
706723 ] ) ,
707724 alignment : optional (
@@ -797,6 +814,7 @@ export const BannerStruct: Describe<BannerElement> = element('Banner', {
797814 ButtonStruct ,
798815 BoldStruct ,
799816 ItalicStruct ,
817+ SkeletonStruct ,
800818 ] ) ,
801819 title : string ( ) ,
802820 severity : union ( [
@@ -807,17 +825,6 @@ export const BannerStruct: Describe<BannerElement> = element('Banner', {
807825 ] ) ,
808826} ) ;
809827
810- /**
811- * A struct for the {@link SkeletonElement} type.
812- */
813- export const SkeletonStruct : Describe < SkeletonElement > = element ( 'Skeleton' , {
814- width : union ( [ number ( ) , string ( ) ] ) ,
815- height : union ( [ number ( ) , string ( ) ] ) ,
816- borderRadius : optional (
817- nullUnion ( [ literal ( 'none' ) , literal ( 'medium' ) , literal ( 'full' ) ] ) ,
818- ) ,
819- } ) ;
820-
821828/**
822829 * A struct for the {@link RowElement} type.
823830 */
0 commit comments