hypnagaga/packages/graphics-components/docs/assets/DocumentCloud.stories-MTL-Zap_.js

1 line
3 KiB
JavaScript

import{p as o,f as m,a as p}from"./props-b4vEeO_8.js";import{J as f,B as y,G as w}from"./runtime-C3rQLW--.js";import{i as g}from"./lifecycle-F2p_Qkk3.js";import{c as k,d as v}from"./create-runtime-stories-7AWWVphH.js";import{s}from"./attributes-Cg6aLqN3.js";import{B as h}from"./Block-D3Ui8rd-.js";var x=m('<iframe class="h-screen" sandbox="allow-scripts allow-same-origin allow-popups allow-forms allow-popups-to-escape-sandbox"></iframe>');function n(t,e){let l=o(e,"width",3,"normal"),d=o(e,"id",3,""),c=o(e,"class",3,"");h(t,{get width(){return l()},get id(){return d()},get class(){return`photo fmy-6 ${c()??""}`},children:(u,S)=>{var i=x();f(()=>{s(i,"src",`https://embed.documentcloud.org/documents/${e.slug??""}/?embed=1&responsive=1&title=1`),s(i,"title",e.altText)}),p(u,i)},$$slots:{default:!0}})}n.__docgen={data:[{name:"slug",visibility:"public",description:"The unique identifier for the document.",keywords:[{name:"required",description:""}],kind:"let",type:{kind:"type",type:"string",text:"string"},static:!1,readonly:!1},{name:"altText",visibility:"public",description:"Alt text for the document.",keywords:[{name:"required",description:""}],kind:"let",type:{kind:"type",type:"string",text:"string"},static:!1,readonly:!1},{name:"width",visibility:"public",description:"Width of the container, one of: normal, wide, wider, widest or fluid",keywords:[],kind:"let",type:{kind:"union",type:[{kind:"const",type:"string",value:"narrower",text:'"narrower"'},{kind:"const",type:"string",value:"narrow",text:'"narrow"'},{kind:"const",type:"string",value:"normal",text:'"normal"'},{kind:"const",type:"string",value:"wide",text:'"wide"'},{kind:"const",type:"string",value:"wider",text:'"wider"'},{kind:"const",type:"string",value:"widest",text:'"widest"'},{kind:"const",type:"string",value:"fluid",text:'"fluid"'}],text:'"narrower" | "narrow" | "normal" | "wide" | "wider" | "widest" | "fluid"'},static:!1,readonly:!1,defaultValue:'"normal"'},{name:"id",visibility:"public",description:"Add an ID to target with SCSS.",keywords:[],kind:"let",type:{kind:"type",type:"string",text:"string"},static:!1,readonly:!1,defaultValue:'""'},{name:"class",visibility:"public",description:"Add a class to target with SCSS.",keywords:[],kind:"let",type:{kind:"type",type:"string",text:"string"},static:!1,readonly:!1}],name:"DocumentCloud.svelte"};const r={title:"Components/Multimedia/DocumentCloud",component:n,argTypes:{width:{control:"select",options:["normal","wide","wider","widest","fluid"]}}},{Story:_}=v();function a(t,e){y(e,!1),g(),_(t,{name:"Demo",args:{slug:"3259984-Trump-Intelligence-Allegations",altText:"These Reports Allege Trump Has Deep Ties To Russia"},parameters:{__svelteCsf:{rawCode:"<DocumentCloud {...args} />"}}}),w()}a.__docgen={version:3,name:"DocumentCloud.stories.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const b=k(a,r),D=["Demo"],C=b.Demo,R=Object.freeze(Object.defineProperty({__proto__:null,Demo:C,__namedExportsOrder:D,default:r},Symbol.toStringTag,{value:"Module"}));export{R as D,C as a};