import {define,union,type,literal,string,object,number,enums,optional,array,size,boolean,defaulted}from'superstruct';import w from'color-string';var P=Object.defineProperty;var N=(p,F)=>P(p,"name",{value:F,configurable:true});function _(p){if(typeof p!="string")return  false;try{return !!w.get(p)}catch{return  false}}N(_,"isColor");var f=define("ColorStringStruct",p=>typeof p=="string"&&_(p)),t=union([type({type:literal("value"),colorValue:f}),type({type:literal("design-token"),tokenName:string()})]);type({type:literal("design-token"),tokenName:string()});var D=object({unit:enums(["rem","px"]),value:number()}),L=union([string(),number()]);var O=enums(["woff2","woff"]),H=type({format:O,type:literal("url"),path:string()}),C=type({family:optional(string()),weight:optional(union([L,size(array(L),2)])),src:optional(array(H)),style:optional(string()),display:optional(enums(["auto","block","swap","fallback","optional"])),variationSettings:optional(string()),unicodeRange:optional(string())});var c=type({fontWeight:optional(union([string(),number()])),textColor:optional(t),hoverColor:optional(t),underline:optional(boolean()),textTransform:optional(enums(["inherit","capitalize","lowercase","uppercase"])),fontStretch:optional(enums(["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"]))}),X=type({min:D,max:optional(D)}),e=type({fontSize:optional(X),lineHeight:optional(union([string(),number()])),fontWeight:optional(union([string(),number()])),letterSpacing:optional(string()),fontFamily:optional(string()),textColor:optional(t),textTransform:optional(enums(["inherit","capitalize","lowercase","uppercase"])),fontStretch:optional(enums(["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"]))});var l=union([e,type({accentColor:optional(t)})]),u=union([l,type({hoverColor:optional(t),backgroundColor:optional(t)})]),x=union([l,type({backgroundColor:optional(t)})]);var ho=object({version:literal(1),oldSillySidebarBgColor:f}),Vo=object({version:literal(2),anotherSillySidebarBgColor:f}),Uo=object({version:literal(3),sidebarBgColor:f}),ko=object({version:literal(4),primaryColor:t,darkColor:t,lightColor:t,enableSidebarIcons:optional(defaulted(boolean(),true))}),Eo=object({version:literal(5),primaryColor:t,darkColor:t,lightColor:t,linkColor:t,enableSidebarIcons:optional(defaulted(boolean(),true))}),Fo=object({version:literal(6),primaryColor:t,darkColor:t,lightColor:t,linkColor:t,enableSidebarIcons:optional(defaulted(boolean(),true)),appearance:type({customFonts:optional(array(C)),pageElements:type({pageTitle:optional(e),pageDescription:optional(e),headingLarge:optional(e),headingMedium:optional(e),headingSmall:optional(e),bodyText:optional(e),link:optional(c)})})}),No=object({version:literal(7),primaryColor:t,darkColor:t,lightColor:t,linkColor:t,enableSidebarIcons:optional(defaulted(boolean(),true)),appearance:type({customFonts:optional(array(C)),navigation:optional(type({primaryNav:optional(u),secondaryNav:optional(x),tabs:optional(l)})),pageElements:type({pageTitle:optional(e),pageDescription:optional(e),headingLarge:optional(e),headingMedium:optional(e),headingSmall:optional(e),bodyText:optional(e),link:optional(c)})})}),zo=object({version:literal(8),primaryColor:t,darkColor:t,lightColor:t,linkColor:t,appearance:type({customFonts:optional(array(C)),navigation:optional(type({primaryNav:optional(u),secondaryNav:optional(x),tabs:optional(l)})),pageElements:type({pageTitle:optional(e),pageDescription:optional(e),headingLarge:optional(e),headingMedium:optional(e),headingSmall:optional(e),bodyText:optional(e),link:optional(c)})})}),To=object({version:literal(9),appearance:type({customFonts:optional(array(C)),navigation:optional(type({primaryNav:optional(u),secondaryNav:optional(x),tabs:optional(l)})),pageElements:type({pageTitle:optional(e),pageDescription:optional(e),headingLarge:optional(e),headingMedium:optional(e),headingSmall:optional(e),bodyText:optional(e),link:optional(c)})})}),j=object({version:literal(10),appearance:type({customFonts:optional(array(C)),navigation:optional(type({primaryNav:optional(u),secondaryNav:optional(x),tabs:optional(l)})),pageElements:type({pageTitle:optional(e),pageDescription:optional(e),headingXLarge:optional(e),headingLarge:optional(e),headingMedium:optional(e),headingSmall:optional(e),headingXSmall:optional(e),bodyText:optional(e),link:optional(c)})})}),Do=j;export{Do as UiConfigStruct,j as UiConfigV10Struct,ho as UiConfigV1Struct,Vo as UiConfigV2Struct,Uo as UiConfigV3Struct,ko as UiConfigV4Struct,Eo as UiConfigV5Struct,Fo as UiConfigV6Struct,No as UiConfigV7Struct,zo as UiConfigV8Struct,To as UiConfigV9Struct};//# sourceMappingURL=ui-config.mjs.map
//# sourceMappingURL=ui-config.mjs.map