7 lines
2.2 KiB
JavaScript
7 lines
2.2 KiB
JavaScript
import{p as n,f as h,a as b}from"./props-b4vEeO_8.js";import{J as k,G as v,B as x,I as u,n as g,k as _,N as A}from"./runtime-C3rQLW--.js";import{s as j}from"./snippet-C5kbqVpq.js";import{a as S}from"./actions-BHcvdwVC.js";import{s as p,a as W}from"./attributes-Cg6aLqN3.js";const s=(a,e)=>(Object.entries(e).forEach(([i,t])=>{a.style.setProperty(`--${i}`,t)}),{update(i){Object.entries(i).forEach(([t,d])=>{a.style.setProperty(`--${t}`,d),delete e[t]}),Object.keys(e).forEach(t=>{a.style.removeProperty(`--${t}`)}),e=i}});var V=h('<main id="main-content"><article><!></article></main>');function E(a,e){x(e,!0);let i=n(e,"embedded",3,!1),t=n(e,"id",3,""),d=n(e,"role",3,null),r=n(e,"columnWidths",19,()=>({narrower:330,narrow:510,normal:660,wide:930,wider:1200})),y=A(()=>({"narrower-column-width":r().narrower+"px","narrow-column-width":r().narrow+"px","normal-column-width":r().normal+"px","wide-column-width":r().wide+"px","wider-column-width":r().wider+"px"}));var c=V(),l=u(c);let m;var f=u(l);j(f,()=>e.children??g),S(l,(o,w)=>s==null?void 0:s(o,w),()=>_(y)),k(o=>{p(l,"id",t()),p(l,"role",d()),m=W(l,1,"svelte-jd0c2r",null,m,o)},[()=>({embedded:i()})]),b(a,c),v()}E.__docgen={data:[{name:"embedded",visibility:"public",description:"Set to true for embeddables.",keywords:[],kind:"let",type:{kind:"type",type:"boolean",text:"boolean"},static:!1,readonly:!1,defaultValue:"false"},{name:"id",visibility:"public",description:"Add an id to the article tag to target it with custom CSS.",keywords:[],kind:"let",type:{kind:"type",type:"string",text:"string"},static:!1,readonly:!1,defaultValue:'""'},{name:"role",visibility:"public",description:"ARIA role of the article",keywords:[],kind:"let",type:{kind:"type",type:"string",text:"string"},static:!1,readonly:!1,defaultValue:"null"},{name:"columnWidths",visibility:"public",description:"Set custom widths for the normal, wide and wider column dimensions",keywords:[],kind:"let",type:{kind:"type",type:"object",text:"ColumnWidths"},static:!1,readonly:!1,defaultValue:`{
|
|
narrower: 330,
|
|
narrow: 510,
|
|
normal: 660,
|
|
wide: 930,
|
|
wider: 1200,
|
|
}`},{name:"children",visibility:"public",keywords:[],kind:"let",type:{kind:"function",text:"Snippet<[]>"},static:!1,readonly:!1}],name:"Article.svelte"};export{E as A};
|