6 lines
2.3 KiB
JavaScript
6 lines
2.3 KiB
JavaScript
import{a as J,n as w}from"./utils-3fb61e8d.js";import{j as _,k,H as v,q as b,l as g,a as H,m as T,n as D,y as P,d,r as C,b as x,i as N,f as u}from"./lifecycle-de4a075a.js";import{S as U,i as V}from"./index-464a621b.js";function j(i){let e,s,r="Profile for",o,n,m,l,y,p,c;return{c(){e=_("h1"),s=_("span"),s.textContent=r,o=k(),n=new v(!1),m=k(),l=_("p"),y=b("("),p=new v(!1),c=b(")"),this.h()},l(t){e=g(t,"H1",{class:!0});var a=H(e);s=g(a,"SPAN",{class:!0,"data-svelte-h":!0}),T(s)!=="svelte-1gr9hpl"&&(s.textContent=r),o=D(a),n=P(a,!1),a.forEach(d),m=D(t),l=g(t,"P",{class:!0});var h=H(l);y=C(h,"("),p=P(h,!1),c=C(h,")"),h.forEach(d),this.h()},h(){x(s,"class","sr-only"),n.a=null,x(e,"class","h1 font-semibold text-4xl leading-tight"),p.a=c,x(l,"class","leading-normal my-1")},m(t,a){N(t,e,a),u(e,s),u(e,o),n.m(i[0],e),N(t,m,a),N(t,l,a),u(l,y),p.m(i[1],l),u(l,c)},p(t,[a]){a&1&&n.p(t[0]),a&2&&p.p(t[1])},i:w,o:w,d(t){t&&(d(e),d(m),d(l))}}}function O(i,e,s){let{displayName:r=""}=e,{pronoun:o=""}=e;return i.$$set=n=>{"displayName"in n&&s(0,r=n.displayName),"pronoun"in n&&s(1,o=n.pronoun)},[r,o]}class A extends U{constructor(e){super(),V(this,e,O,j,J,{displayName:0,pronoun:1})}}A.__docgen={version:3,name:"DisplayName.svelte",data:[{keywords:[],visibility:"public",description:"Under which name shall the person be known?",name:"displayName",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:""},{keywords:[],visibility:"public",description:"How to correctly address this person.",name:"pronoun",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:""}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const G={title:"Atoms/DisplayName",component:A,tags:["autodocs"],argTypes:{displayName:{control:"text",description:"Under which name shall the person be known?"},pronoun:{control:"text",description:"How shall the person be adressed?"}}},f={args:{displayName:"Jane Doe",pronoun:"she/her"}};var S,E,q;f.parameters={...f.parameters,docs:{...(S=f.parameters)==null?void 0:S.docs,source:{originalSource:`{
|
|
args: {
|
|
displayName: 'Jane Doe',
|
|
pronoun: 'she/her'
|
|
}
|
|
}`,...(q=(E=f.parameters)==null?void 0:E.docs)==null?void 0:q.source}}};const I=["Plain"];export{f as Plain,I as __namedExportsOrder,G as default};
|