This commit is contained in:
André Jaenisch 2024-02-12 12:40:14 +01:00
parent 7c2d288460
commit d68288c44d
No known key found for this signature in database
GPG key ID: 5A668E771F1ED854
30 changed files with 50 additions and 30 deletions

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,11 @@
import{S as b,i as g,s as y,n as l}from"./index-788dbe18.js";import{e as p,t as O,c as d,d as h,m as k,i as s,j as c,h as i}from"./lifecycle-e76756ca.js";function B(C){let t,u="block",o,e,m="report";return{c(){t=p("button"),t.textContent=u,o=O(`
or
`),e=p("button"),e.textContent=m,this.h()},l(n){t=d(n,"BUTTON",{type:!0,class:!0,"data-svelte-h":!0}),h(t)!=="svelte-mh0u3n"&&(t.textContent=u),o=k(n,`
or
`),e=d(n,"BUTTON",{type:!0,class:!0,"data-svelte-h":!0}),h(e)!=="svelte-rtxngq"&&(e.textContent=m),this.h()},h(){s(t,"type","button"),s(t,"class","underline"),s(e,"type","button"),s(e,"class","underline")},m(n,a){c(n,t,a),c(n,o,a),c(n,e,a)},p:l,i:l,o:l,d(n){n&&(i(t),i(o),i(e))}}}class v extends b{constructor(t){super(),g(this,t,null,B,y,{})}}v.__docgen={version:3,name:"BlockOrReport.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const R={title:"Atoms/BlockOrReport",component:v,tags:["autodocs"]},r={parameters:{controls:{hideNoControlsWarning:!0}}};var x,_,f;r.parameters={...r.parameters,docs:{...(x=r.parameters)==null?void 0:x.docs,source:{originalSource:`{
parameters: {
controls: {
hideNoControlsWarning: true
}
}
}`,...(f=(_=r.parameters)==null?void 0:_.docs)==null?void 0:f.source}}};const S=["Plain"];export{r as Plain,S as __namedExportsOrder,R as default};

View file

@ -1 +1 @@
import{S as m,i as f,s as k,n as d}from"./index-4ea67a12.js";import{e as p,t as h,c as g,b as _,m as v,h as y,i as u,j as w,k as C,p as z,n as B,q as j}from"./lifecycle-8571def4.js";function V(o){let t,i,a,l,r;return{c(){t=p("button"),i=h(o[1]),this.h()},l(e){t=g(e,"BUTTON",{type:!0,class:!0,style:!0});var n=_(t);i=v(n,o[1]),n.forEach(y),this.h()},h(){u(t,"type","button"),u(t,"class",a=["storybook-button",`storybook-button--${o[0]}`,o[3]].join(" ")),u(t,"style",o[2])},m(e,n){w(e,t,n),C(t,i),l||(r=z(t,"click",o[6]),l=!0)},p(e,[n]){n&2&&B(i,e[1]),n&9&&a!==(a=["storybook-button",`storybook-button--${e[0]}`,e[3]].join(" "))&&u(t,"class",a),n&4&&u(t,"style",e[2])},i:d,o:d,d(e){e&&y(t),l=!1,r()}}}function q(o,t,i){let a,l,{primary:r=!1}=t,{backgroundColor:e=void 0}=t,{size:n="medium"}=t,{label:c=""}=t;function b(s){j.call(this,o,s)}return o.$$set=s=>{"primary"in s&&i(4,r=s.primary),"backgroundColor"in s&&i(5,e=s.backgroundColor),"size"in s&&i(0,n=s.size),"label"in s&&i(1,c=s.label)},o.$$.update=()=>{o.$$.dirty&16&&i(3,a=r?"storybook-button--primary":"storybook-button--secondary"),o.$$.dirty&32&&i(2,l=e?`background-color: ${e}`:"")},[n,c,l,a,r,e,b]}class S extends m{constructor(t){super(),f(this,t,q,V,k,{primary:4,backgroundColor:5,size:0,label:1})}}S.__docgen={version:3,name:"Button.svelte",data:[{keywords:[],visibility:"public",description:"Is this the principal call to action on the page?",name:"primary",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"boolean",type:"boolean"},defaultValue:!1},{keywords:[],visibility:"public",description:"What background color to use",name:"backgroundColor",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{keywords:[],visibility:"public",description:"How large should the button be?",name:"size",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:"medium"},{keywords:[],visibility:"public",description:"Button contents",name:"label",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:""}],computed:[],methods:[],components:[],description:null,keywords:[],events:[{keywords:[],visibility:"public",description:"",name:"click",parent:"button",modificators:[],locations:null}],slots:[],refs:[]};export{S as B}; import{S as m,i as f,s as k,n as d}from"./index-788dbe18.js";import{e as p,t as h,c as g,b as _,m as v,h as y,i as u,j as w,k as C,p as z,n as B,q as j}from"./lifecycle-e76756ca.js";function V(o){let t,i,a,l,r;return{c(){t=p("button"),i=h(o[1]),this.h()},l(e){t=g(e,"BUTTON",{type:!0,class:!0,style:!0});var n=_(t);i=v(n,o[1]),n.forEach(y),this.h()},h(){u(t,"type","button"),u(t,"class",a=["storybook-button",`storybook-button--${o[0]}`,o[3]].join(" ")),u(t,"style",o[2])},m(e,n){w(e,t,n),C(t,i),l||(r=z(t,"click",o[6]),l=!0)},p(e,[n]){n&2&&B(i,e[1]),n&9&&a!==(a=["storybook-button",`storybook-button--${e[0]}`,e[3]].join(" "))&&u(t,"class",a),n&4&&u(t,"style",e[2])},i:d,o:d,d(e){e&&y(t),l=!1,r()}}}function q(o,t,i){let a,l,{primary:r=!1}=t,{backgroundColor:e=void 0}=t,{size:n="medium"}=t,{label:c=""}=t;function b(s){j.call(this,o,s)}return o.$$set=s=>{"primary"in s&&i(4,r=s.primary),"backgroundColor"in s&&i(5,e=s.backgroundColor),"size"in s&&i(0,n=s.size),"label"in s&&i(1,c=s.label)},o.$$.update=()=>{o.$$.dirty&16&&i(3,a=r?"storybook-button--primary":"storybook-button--secondary"),o.$$.dirty&32&&i(2,l=e?`background-color: ${e}`:"")},[n,c,l,a,r,e,b]}class S extends m{constructor(t){super(),f(this,t,q,V,k,{primary:4,backgroundColor:5,size:0,label:1})}}S.__docgen={version:3,name:"Button.svelte",data:[{keywords:[],visibility:"public",description:"Is this the principal call to action on the page?",name:"primary",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"boolean",type:"boolean"},defaultValue:!1},{keywords:[],visibility:"public",description:"What background color to use",name:"backgroundColor",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{keywords:[],visibility:"public",description:"How large should the button be?",name:"size",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:"medium"},{keywords:[],visibility:"public",description:"Button contents",name:"label",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:""}],computed:[],methods:[],components:[],description:null,keywords:[],events:[{keywords:[],visibility:"public",description:"",name:"click",parent:"button",modificators:[],locations:null}],slots:[],refs:[]};export{S as B};

View file

@ -1,4 +1,4 @@
import{B as b}from"./Button-3f3ec9c8.js";import"./index-4ea67a12.js";import"./lifecycle-8571def4.js";const x={title:"Example/Button",component:b,tags:["autodocs"],argTypes:{backgroundColor:{control:"color"},size:{control:{type:"select"},options:["small","medium","large"]}}},r={args:{primary:!0,label:"Button"}},e={args:{label:"Button"}},a={args:{size:"large",label:"Button"}},o={args:{size:"small",label:"Button"}};var s,t,n;r.parameters={...r.parameters,docs:{...(s=r.parameters)==null?void 0:s.docs,source:{originalSource:`{ import{B as b}from"./Button-d8693ca6.js";import"./index-788dbe18.js";import"./lifecycle-e76756ca.js";const x={title:"Example/Button",component:b,tags:["autodocs"],argTypes:{backgroundColor:{control:"color"},size:{control:{type:"select"},options:["small","medium","large"]}}},r={args:{primary:!0,label:"Button"}},e={args:{label:"Button"}},a={args:{size:"large",label:"Button"}},o={args:{size:"small",label:"Button"}};var s,t,n;r.parameters={...r.parameters,docs:{...(s=r.parameters)==null?void 0:s.docs,source:{originalSource:`{
args: { args: {
primary: true, primary: true,
label: 'Button' label: 'Button'

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{d as p,M as b}from"./index-6c6ef8a7.js";import{u as c}from"./index-e1b5ba6e.js";import"./iframe-e5d9f59b.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-725317a4.js";import"./index-11d98b33.js";import"./index-a04a29e8.js";import"./index-356e4a49.js";var m={exports:{}},a={};/** import{d as p,M as b}from"./index-0311e79d.js";import{u as c}from"./index-1ae9a135.js";import"./iframe-e8bfe329.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-725317a4.js";import"./index-11d98b33.js";import"./index-a04a29e8.js";import"./index-356e4a49.js";var m={exports:{}},a={};/**
* @license React * @license React
* react-jsx-runtime.production.min.js * react-jsx-runtime.production.min.js
* *

View file

@ -0,0 +1,9 @@
import{S as C,i as E,s as A,n as m}from"./index-788dbe18.js";import{r as f,j as T,h as d,e as _,t as F,H,c as p,b as u,m as P,u as I,i as y,k as h}from"./lifecycle-e76756ca.js";function g(o){let a,e,t,r;return{c(){a=_("span"),e=F("created "),t=_("date"),r=new H(!1),this.h()},l(n){a=p(n,"SPAN",{});var s=u(a);e=P(s,"created "),t=p(s,"DATE",{datetime:!0});var l=u(t);r=I(l,!1),l.forEach(d),s.forEach(d),this.h()},h(){r.a=null,y(t,"datetime",o[1])},m(n,s){T(n,a,s),h(a,e),h(a,t),r.m(o[0],t)},p(n,s){s&1&&r.p(n[0]),s&2&&y(t,"datetime",n[1])},d(n){n&&d(a)}}}function M(o){let a,e=o[1]&&o[0]&&g(o);return{c(){e&&e.c(),a=f()},l(t){e&&e.l(t),a=f()},m(t,r){e&&e.m(t,r),T(t,a,r)},p(t,[r]){t[1]&&t[0]?e?e.p(t,r):(e=g(t),e.c(),e.m(a.parentNode,a)):e&&(e.d(1),e=null)},i:m,o:m,d(t){t&&d(a),e&&e.d(t)}}}function N(o,a,e){let{created_at_formatted:t=""}=a,{created_at:r=null}=a;return o.$$set=n=>{"created_at_formatted"in n&&e(0,t=n.created_at_formatted),"created_at"in n&&e(1,r=n.created_at)},[t,r]}class j extends C{constructor(a){super(),E(this,a,N,M,A,{created_at_formatted:0,created_at:1})}}j.__docgen={version:3,name:"Created.svelte",data:[{keywords:[],visibility:"public",description:"Formatted datetime according to the locale.",name:"created_at_formatted",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:""},{keywords:[],visibility:"public",description:"Date object for created time.",name:"created_at",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"},defaultValue:null}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const q={title:"Atoms/Created",component:j,tags:["autodocs"],argTypes:{created_at:{control:"date",description:"Date of creation"},created_at_formatted:{control:"text",description:"Localised version of created_at"}}},i={args:{created_at:new Date,created_at_formatted:function(){const o="en-US";return new Intl.DateTimeFormat(o).format(new Date)}()}},c={};var b,k,w;i.parameters={...i.parameters,docs:{...(b=i.parameters)==null?void 0:b.docs,source:{originalSource:`{
args: {
created_at: new Date(),
created_at_formatted: function () {
const locale = 'en-US';
return new Intl.DateTimeFormat(locale).format(new Date());
}()
}
}`,...(w=(k=i.parameters)==null?void 0:k.docs)==null?void 0:w.source}}};var D,v,S;c.parameters={...c.parameters,docs:{...(D=c.parameters)==null?void 0:D.docs,source:{originalSource:"{}",...(S=(v=c.parameters)==null?void 0:v.docs)==null?void 0:S.source}}};const x=["Plain","Missing"];export{c as Missing,i as Plain,x as __namedExportsOrder,q as default};

View file

@ -1 +1 @@
import{_ as d}from"./iframe-e5d9f59b.js";import{r as h,R as o,d as a,C as E,A as R,H as x,D as y}from"./index-6c6ef8a7.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-725317a4.js";import"./index-11d98b33.js";import"./index-a04a29e8.js";import"./index-356e4a49.js";var c={},m=h;c.createRoot=m.createRoot,c.hydrateRoot=m.hydrateRoot;var n=new Map,D=({callback:e,children:t})=>{let r=a.useRef();return a.useLayoutEffect(()=>{r.current!==e&&(r.current=e,e())},[e]),t},_=async(e,t)=>{let r=await w(t);return new Promise(s=>{r.render(o.createElement(D,{callback:()=>s(null)},e))})},v=(e,t)=>{let r=n.get(e);r&&(r.unmount(),n.delete(e))},w=async e=>{let t=n.get(e);return t||(t=c.createRoot(e),n.set(e,t)),t},f={code:E,a:R,...x},g=class extends a.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:o.createElement(o.Fragment,null,t)}},S=class{constructor(){this.render=async(e,t,r)=>{let s={...f,...t==null?void 0:t.components},u=y;return new Promise((i,p)=>{d(()=>import("./index-8fd31f72.js"),["./index-8fd31f72.js","./index-e1b5ba6e.js","./index-6c6ef8a7.js","./iframe-e5d9f59b.js","./_commonjsHelpers-725317a4.js","./index-11d98b33.js","./index-a04a29e8.js","./index-356e4a49.js"],import.meta.url).then(({MDXProvider:l})=>_(o.createElement(g,{showException:p,key:Math.random()},o.createElement(l,{components:s},o.createElement(u,{context:e,docsParameter:t}))),r)).then(()=>i())})},this.unmount=e=>{v(e)}}};export{S as DocsRenderer,f as defaultComponents}; import{_ as d}from"./iframe-e8bfe329.js";import{r as h,R as o,d as a,C as E,A as R,H as x,D as y}from"./index-0311e79d.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-725317a4.js";import"./index-11d98b33.js";import"./index-a04a29e8.js";import"./index-356e4a49.js";var c={},m=h;c.createRoot=m.createRoot,c.hydrateRoot=m.hydrateRoot;var n=new Map,D=({callback:e,children:t})=>{let r=a.useRef();return a.useLayoutEffect(()=>{r.current!==e&&(r.current=e,e())},[e]),t},_=async(e,t)=>{let r=await w(t);return new Promise(s=>{r.render(o.createElement(D,{callback:()=>s(null)},e))})},v=(e,t)=>{let r=n.get(e);r&&(r.unmount(),n.delete(e))},w=async e=>{let t=n.get(e);return t||(t=c.createRoot(e),n.set(e,t)),t},f={code:E,a:R,...x},g=class extends a.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){let{showException:t}=this.props;t(e)}render(){let{hasError:e}=this.state,{children:t}=this.props;return e?null:o.createElement(o.Fragment,null,t)}},S=class{constructor(){this.render=async(e,t,r)=>{let s={...f,...t==null?void 0:t.components},u=y;return new Promise((i,p)=>{d(()=>import("./index-fa769cec.js"),["./index-fa769cec.js","./index-1ae9a135.js","./index-0311e79d.js","./iframe-e8bfe329.js","./_commonjsHelpers-725317a4.js","./index-11d98b33.js","./index-a04a29e8.js","./index-356e4a49.js"],import.meta.url).then(({MDXProvider:l})=>_(o.createElement(g,{showException:p,key:Math.random()},o.createElement(l,{components:s},o.createElement(u,{context:e,docsParameter:t}))),r)).then(()=>i())})},this.unmount=e=>{v(e)}}};export{S as DocsRenderer,f as defaultComponents};

View file

@ -1 +1 @@
import{S,i as j,s as C,t as k,c as I,a as y,g as T,b as E,d as H,m as L,n as W,e as V}from"./index-4ea67a12.js";import{e as v,a as M,c as b,b as $,d as q,f as D,h as d,i as F,j as w,k as h,l as N,t as A,m as z,n as P}from"./lifecycle-8571def4.js";import{B}from"./Button-3f3ec9c8.js";function R(f){let t,s,l,r;return t=new B({props:{size:"small",label:"Log in"}}),t.$on("click",f[1]),l=new B({props:{primary:!0,size:"small",label:"Sign up"}}),l.$on("click",f[3]),{c(){E(t.$$.fragment),s=M(),E(l.$$.fragment)},l(n){H(t.$$.fragment,n),s=D(n),H(l.$$.fragment,n)},m(n,c){L(t,n,c),w(n,s,c),L(l,n,c),r=!0},p:W,i(n){r||(y(t.$$.fragment,n),y(l.$$.fragment,n),r=!0)},o(n){k(t.$$.fragment,n),k(l.$$.fragment,n),r=!1},d(n){n&&d(s),V(t,n),V(l,n)}}}function G(f){let t,s,l,r=f[0].name+"",n,c,a,e,m;return e=new B({props:{size:"small",label:"Log out"}}),e.$on("click",f[2]),{c(){t=v("span"),s=A("Welcome, "),l=v("b"),n=A(r),c=A("!"),a=M(),E(e.$$.fragment),this.h()},l(i){t=b(i,"SPAN",{class:!0});var o=$(t);s=z(o,"Welcome, "),l=b(o,"B",{});var g=$(l);n=z(g,r),g.forEach(d),c=z(o,"!"),o.forEach(d),a=D(i),H(e.$$.fragment,i),this.h()},h(){F(t,"class","welcome")},m(i,o){w(i,t,o),h(t,s),h(t,l),h(l,n),h(t,c),w(i,a,o),L(e,i,o),m=!0},p(i,o){(!m||o&1)&&r!==(r=i[0].name+"")&&P(n,r)},i(i){m||(y(e.$$.fragment,i),m=!0)},o(i){k(e.$$.fragment,i),m=!1},d(i){i&&(d(t),d(a)),V(e,i)}}}function J(f){let t,s,l,r='<svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M10 0h12a10 10 0 0110 10v12a10 10 0 01-10 10H10A10 10 0 010 22V10A10 10 0 0110 0z" fill="#FFF"></path><path d="M5.3 10.6l10.4 6v11.1l-10.4-6v-11zm11.4-6.2l9.7 5.5-9.7 5.6V4.4z" fill="#555AB9"></path><path d="M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z" fill="#91BAF8"></path></g></svg> <h1>Acme</h1>',n,c,a,e,m;const i=[G,R],o=[];function g(u,p){return u[0]?0:1}return a=g(f),e=o[a]=i[a](f),{c(){t=v("header"),s=v("div"),l=v("div"),l.innerHTML=r,n=M(),c=v("div"),e.c(),this.h()},l(u){t=b(u,"HEADER",{});var p=$(t);s=b(p,"DIV",{class:!0});var _=$(s);l=b(_,"DIV",{"data-svelte-h":!0}),q(l)!=="svelte-mhlgcu"&&(l.innerHTML=r),n=D(_),c=b(_,"DIV",{});var x=$(c);e.l(x),x.forEach(d),_.forEach(d),p.forEach(d),this.h()},h(){F(s,"class","storybook-header")},m(u,p){w(u,t,p),h(t,s),h(s,l),h(s,n),h(s,c),o[a].m(c,null),m=!0},p(u,[p]){let _=a;a=g(u),a===_?o[a].p(u,p):(T(),k(o[_],1,1,()=>{o[_]=null}),I(),e=o[a],e?e.p(u,p):(e=o[a]=i[a](u),e.c()),y(e,1),e.m(c,null))},i(u){m||(y(e),m=!0)},o(u){k(e),m=!1},d(u){u&&d(t),o[a].d()}}}function K(f,t,s){let{user:l=null}=t;const r=N();function n(e){r("login",e)}function c(e){r("logout",e)}function a(e){r("createAccount",e)}return f.$$set=e=>{"user"in e&&s(0,l=e.user)},[l,n,c,a]}class O extends S{constructor(t){super(),j(this,t,K,J,C,{user:0})}}O.__docgen={version:3,name:"Header.svelte",data:[{visibility:"public",description:null,keywords:[],name:"user",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"},defaultValue:null}],computed:[],methods:[],components:[],description:null,keywords:[],events:[{visibility:"public",description:null,keywords:[],name:"login"},{visibility:"public",description:null,keywords:[],name:"logout"},{visibility:"public",description:null,keywords:[],name:"createAccount"}],slots:[],refs:[]};export{O as H}; import{S,i as j,s as C,t as k,c as I,a as y,g as T,b as E,d as H,m as L,n as W,e as V}from"./index-788dbe18.js";import{e as v,a as M,c as b,b as $,d as q,f as D,h as d,i as F,j as w,k as h,l as N,t as A,m as z,n as P}from"./lifecycle-e76756ca.js";import{B}from"./Button-d8693ca6.js";function R(f){let t,s,l,r;return t=new B({props:{size:"small",label:"Log in"}}),t.$on("click",f[1]),l=new B({props:{primary:!0,size:"small",label:"Sign up"}}),l.$on("click",f[3]),{c(){E(t.$$.fragment),s=M(),E(l.$$.fragment)},l(n){H(t.$$.fragment,n),s=D(n),H(l.$$.fragment,n)},m(n,c){L(t,n,c),w(n,s,c),L(l,n,c),r=!0},p:W,i(n){r||(y(t.$$.fragment,n),y(l.$$.fragment,n),r=!0)},o(n){k(t.$$.fragment,n),k(l.$$.fragment,n),r=!1},d(n){n&&d(s),V(t,n),V(l,n)}}}function G(f){let t,s,l,r=f[0].name+"",n,c,a,e,m;return e=new B({props:{size:"small",label:"Log out"}}),e.$on("click",f[2]),{c(){t=v("span"),s=A("Welcome, "),l=v("b"),n=A(r),c=A("!"),a=M(),E(e.$$.fragment),this.h()},l(i){t=b(i,"SPAN",{class:!0});var o=$(t);s=z(o,"Welcome, "),l=b(o,"B",{});var g=$(l);n=z(g,r),g.forEach(d),c=z(o,"!"),o.forEach(d),a=D(i),H(e.$$.fragment,i),this.h()},h(){F(t,"class","welcome")},m(i,o){w(i,t,o),h(t,s),h(t,l),h(l,n),h(t,c),w(i,a,o),L(e,i,o),m=!0},p(i,o){(!m||o&1)&&r!==(r=i[0].name+"")&&P(n,r)},i(i){m||(y(e.$$.fragment,i),m=!0)},o(i){k(e.$$.fragment,i),m=!1},d(i){i&&(d(t),d(a)),V(e,i)}}}function J(f){let t,s,l,r='<svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M10 0h12a10 10 0 0110 10v12a10 10 0 01-10 10H10A10 10 0 010 22V10A10 10 0 0110 0z" fill="#FFF"></path><path d="M5.3 10.6l10.4 6v11.1l-10.4-6v-11zm11.4-6.2l9.7 5.5-9.7 5.6V4.4z" fill="#555AB9"></path><path d="M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z" fill="#91BAF8"></path></g></svg> <h1>Acme</h1>',n,c,a,e,m;const i=[G,R],o=[];function g(u,p){return u[0]?0:1}return a=g(f),e=o[a]=i[a](f),{c(){t=v("header"),s=v("div"),l=v("div"),l.innerHTML=r,n=M(),c=v("div"),e.c(),this.h()},l(u){t=b(u,"HEADER",{});var p=$(t);s=b(p,"DIV",{class:!0});var _=$(s);l=b(_,"DIV",{"data-svelte-h":!0}),q(l)!=="svelte-mhlgcu"&&(l.innerHTML=r),n=D(_),c=b(_,"DIV",{});var x=$(c);e.l(x),x.forEach(d),_.forEach(d),p.forEach(d),this.h()},h(){F(s,"class","storybook-header")},m(u,p){w(u,t,p),h(t,s),h(s,l),h(s,n),h(s,c),o[a].m(c,null),m=!0},p(u,[p]){let _=a;a=g(u),a===_?o[a].p(u,p):(T(),k(o[_],1,1,()=>{o[_]=null}),I(),e=o[a],e?e.p(u,p):(e=o[a]=i[a](u),e.c()),y(e,1),e.m(c,null))},i(u){m||(y(e),m=!0)},o(u){k(e),m=!1},d(u){u&&d(t),o[a].d()}}}function K(f,t,s){let{user:l=null}=t;const r=N();function n(e){r("login",e)}function c(e){r("logout",e)}function a(e){r("createAccount",e)}return f.$$set=e=>{"user"in e&&s(0,l=e.user)},[l,n,c,a]}class O extends S{constructor(t){super(),j(this,t,K,J,C,{user:0})}}O.__docgen={version:3,name:"Header.svelte",data:[{visibility:"public",description:null,keywords:[],name:"user",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"},defaultValue:null}],computed:[],methods:[],components:[],description:null,keywords:[],events:[{visibility:"public",description:null,keywords:[],name:"login"},{visibility:"public",description:null,keywords:[],name:"logout"},{visibility:"public",description:null,keywords:[],name:"createAccount"}],slots:[],refs:[]};export{O as H};

View file

@ -1,4 +1,4 @@
import{H as c}from"./Header-ea47a990.js";import"./index-4ea67a12.js";import"./lifecycle-8571def4.js";import"./Button-3f3ec9c8.js";const i={title:"Example/Header",component:c,tags:["autodocs"],parameters:{layout:"fullscreen"}},e={args:{user:{name:"Jane Doe"}}},r={};var a,o,s;e.parameters={...e.parameters,docs:{...(a=e.parameters)==null?void 0:a.docs,source:{originalSource:`{ import{H as c}from"./Header-d7dc5c21.js";import"./index-788dbe18.js";import"./lifecycle-e76756ca.js";import"./Button-d8693ca6.js";const i={title:"Example/Header",component:c,tags:["autodocs"],parameters:{layout:"fullscreen"}},e={args:{user:{name:"Jane Doe"}}},r={};var a,o,s;e.parameters={...e.parameters,docs:{...(a=e.parameters)==null?void 0:a.docs,source:{originalSource:`{
args: { args: {
user: { user: {
name: 'Jane Doe' name: 'Jane Doe'

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
import{W as T,W as e,a as h}from"./index-6c6ef8a7.js";import"./iframe-e5d9f59b.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-725317a4.js";import"./index-11d98b33.js";import"./index-a04a29e8.js";import"./index-356e4a49.js";export{T as WithToolTipState,e as WithTooltip,h as WithTooltipPure}; import{W as T,W as e,a as h}from"./index-0311e79d.js";import"./iframe-e8bfe329.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-725317a4.js";import"./index-11d98b33.js";import"./index-a04a29e8.js";import"./index-356e4a49.js";export{T as WithToolTipState,e as WithTooltip,h as WithTooltipPure};

View file

@ -1,4 +1,4 @@
import{S as Y,i as B,s as L,t as d,c as O,a as _,g as v,f as j,b as y,d as E,m as h,e as g,h as U}from"./index-4ea67a12.js";import{r as m,j as R,h as T,o as K,u as w}from"./lifecycle-8571def4.js";import{g as k,a as b}from"./spread-8a54911c.js";import{d as W}from"./index-356e4a49.js";function q(s){let e,n,i;const a=[s[2]];var r=s[1];function f(t,o){let l={};if(o!==void 0&&o&4)l=k(a,[b(t[2])]);else for(let c=0;c<a.length;c+=1)l=U(l,a[c]);return{props:l}}return r&&(e=w(r,f(s)),s[8](e)),{c(){e&&y(e.$$.fragment),n=m()},l(t){e&&E(e.$$.fragment,t),n=m()},m(t,o){e&&h(e,t,o),R(t,n,o),i=!0},p(t,o){if(o&2&&r!==(r=t[1])){if(e){v();const l=e;d(l.$$.fragment,1,0,()=>{g(l,1)}),O()}r?(e=w(r,f(t,o)),t[8](e),y(e.$$.fragment),_(e.$$.fragment,1),h(e,n.parentNode,n)):e=null}else if(r){const l=o&4?k(a,[b(t[2])]):{};e.$set(l)}},i(t){i||(e&&_(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){t&&T(n),s[8](null),e&&g(e,t)}}}function z(s){let e,n,i;const a=[s[0].props];var r=s[0].Component;function f(t,o){let l={$$slots:{default:[G]},$$scope:{ctx:t}};if(o!==void 0&&o&1)l=k(a,[b(t[0].props)]);else for(let c=0;c<a.length;c+=1)l=U(l,a[c]);return{props:l}}return r&&(e=w(r,f(s)),s[7](e)),{c(){e&&y(e.$$.fragment),n=m()},l(t){e&&E(e.$$.fragment,t),n=m()},m(t,o){e&&h(e,t,o),R(t,n,o),i=!0},p(t,o){if(o&1&&r!==(r=t[0].Component)){if(e){v();const l=e;d(l.$$.fragment,1,0,()=>{g(l,1)}),O()}r?(e=w(r,f(t,o)),t[7](e),y(e.$$.fragment),_(e.$$.fragment,1),h(e,n.parentNode,n)):e=null}else if(r){const l=o&1?k(a,[b(t[0].props)]):{};o&1038&&(l.$$scope={dirty:o,ctx:t}),e.$set(l)}},i(t){i||(e&&_(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){t&&T(n),s[7](null),e&&g(e,t)}}}function G(s){let e,n,i;const a=[s[2]];var r=s[1];function f(t,o){let l={};if(o!==void 0&&o&4)l=k(a,[b(t[2])]);else for(let c=0;c<a.length;c+=1)l=U(l,a[c]);return{props:l}}return r&&(e=w(r,f(s)),s[6](e)),{c(){e&&y(e.$$.fragment),n=m()},l(t){e&&E(e.$$.fragment,t),n=m()},m(t,o){e&&h(e,t,o),R(t,n,o),i=!0},p(t,o){if(o&2&&r!==(r=t[1])){if(e){v();const l=e;d(l.$$.fragment,1,0,()=>{g(l,1)}),O()}r?(e=w(r,f(t,o)),t[6](e),y(e.$$.fragment),_(e.$$.fragment,1),h(e,n.parentNode,n)):e=null}else if(r){const l=o&4?k(a,[b(t[2])]):{};e.$set(l)}},i(t){i||(e&&_(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){t&&T(n),s[6](null),e&&g(e,t)}}}function H(s){let e,n,i,a;const r=[z,q],f=[];function t(o,l){return o[0]?0:1}return e=t(s),n=f[e]=r[e](s),{c(){n.c(),i=m()},l(o){n.l(o),i=m()},m(o,l){f[e].m(o,l),R(o,i,l),a=!0},p(o,[l]){let c=e;e=t(o),e===c?f[e].p(o,l):(v(),d(f[c],1,1,()=>{f[c]=null}),O(),n=f[e],n?n.p(o,l):(n=f[e]=r[e](o),n.c()),_(n,1),n.m(i.parentNode,i))},i(o){a||(_(n),a=!0)},o(o){d(n),a=!1},d(o){o&&T(i),f[e].d(o)}}}function J(s,e,n){let{decorator:i=void 0}=e,{Component:a}=e,{props:r={}}=e,{on:f=void 0}=e,t,o;function l(){return t||o}f&&Object.keys(f).forEach(p=>{K(()=>l().$on(p,f[p]))});function c(p){j[p?"unshift":"push"](()=>{t=p,n(3,t)})}function S(p){j[p?"unshift":"push"](()=>{o=p,n(4,o)})}function D(p){j[p?"unshift":"push"](()=>{t=p,n(3,t)})}return s.$$set=p=>{"decorator"in p&&n(0,i=p.decorator),"Component"in p&&n(1,a=p.Component),"props"in p&&n(2,r=p.props),"on"in p&&n(5,f=p.on)},[i,a,r,t,o,f,c,S,D]}class A extends Y{constructor(e){super(),B(this,e,J,H,L,{decorator:0,Component:1,props:2,on:5})}}A.__docgen={version:3,name:"SlotDecorator.svelte",data:[{visibility:"public",description:null,keywords:[],name:"decorator",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"Component",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"props",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}},{visibility:"public",description:null,keywords:[],name:"on",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};function Q(s){let e,n;return e=new A({props:{Component:s[0],props:s[1],on:{...s[3],...s[2]}}}),{c(){y(e.$$.fragment)},l(i){E(e.$$.fragment,i)},m(i,a){h(e,i,a),n=!0},p(i,[a]){const r={};a&1&&(r.Component=i[0]),a&2&&(r.props=i[1]),a&4&&(r.on={...i[3],...i[2]}),e.$set(r)},i(i){n||(_(e.$$.fragment,i),n=!0)},o(i){d(e.$$.fragment,i),n=!1},d(i){g(e,i)}}}function X(s,e,n){let{name:i}=e,{kind:a}=e,{storyFn:r}=e,{showError:f}=e,{storyContext:t}=e,{Component:o,props:l={},on:c}=r(),S=!0;function D(u){return S?(S=!1,{Component:o,props:l,on:c}):u()}const p=Object.fromEntries(Object.entries(t.argTypes).filter(([u,F])=>F.action&&l[u]!=null).map(([u,F])=>[F.action,l[u]]));return o||f({title:`Expecting a Svelte component from the story: "${i}" of "${a}".`,description:W` import{S as Y,i as B,s as L,t as d,c as v,a as _,g as O,f as j,b as y,d as E,m as h,e as g,h as U}from"./index-788dbe18.js";import{r as m,j as R,h as T,o as K,v as w}from"./lifecycle-e76756ca.js";import{g as k,a as b}from"./spread-8a54911c.js";import{d as W}from"./index-356e4a49.js";function q(s){let e,n,i;const a=[s[2]];var r=s[1];function f(t,o){let l={};if(o!==void 0&&o&4)l=k(a,[b(t[2])]);else for(let c=0;c<a.length;c+=1)l=U(l,a[c]);return{props:l}}return r&&(e=w(r,f(s)),s[8](e)),{c(){e&&y(e.$$.fragment),n=m()},l(t){e&&E(e.$$.fragment,t),n=m()},m(t,o){e&&h(e,t,o),R(t,n,o),i=!0},p(t,o){if(o&2&&r!==(r=t[1])){if(e){O();const l=e;d(l.$$.fragment,1,0,()=>{g(l,1)}),v()}r?(e=w(r,f(t,o)),t[8](e),y(e.$$.fragment),_(e.$$.fragment,1),h(e,n.parentNode,n)):e=null}else if(r){const l=o&4?k(a,[b(t[2])]):{};e.$set(l)}},i(t){i||(e&&_(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){t&&T(n),s[8](null),e&&g(e,t)}}}function z(s){let e,n,i;const a=[s[0].props];var r=s[0].Component;function f(t,o){let l={$$slots:{default:[G]},$$scope:{ctx:t}};if(o!==void 0&&o&1)l=k(a,[b(t[0].props)]);else for(let c=0;c<a.length;c+=1)l=U(l,a[c]);return{props:l}}return r&&(e=w(r,f(s)),s[7](e)),{c(){e&&y(e.$$.fragment),n=m()},l(t){e&&E(e.$$.fragment,t),n=m()},m(t,o){e&&h(e,t,o),R(t,n,o),i=!0},p(t,o){if(o&1&&r!==(r=t[0].Component)){if(e){O();const l=e;d(l.$$.fragment,1,0,()=>{g(l,1)}),v()}r?(e=w(r,f(t,o)),t[7](e),y(e.$$.fragment),_(e.$$.fragment,1),h(e,n.parentNode,n)):e=null}else if(r){const l=o&1?k(a,[b(t[0].props)]):{};o&1038&&(l.$$scope={dirty:o,ctx:t}),e.$set(l)}},i(t){i||(e&&_(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){t&&T(n),s[7](null),e&&g(e,t)}}}function G(s){let e,n,i;const a=[s[2]];var r=s[1];function f(t,o){let l={};if(o!==void 0&&o&4)l=k(a,[b(t[2])]);else for(let c=0;c<a.length;c+=1)l=U(l,a[c]);return{props:l}}return r&&(e=w(r,f(s)),s[6](e)),{c(){e&&y(e.$$.fragment),n=m()},l(t){e&&E(e.$$.fragment,t),n=m()},m(t,o){e&&h(e,t,o),R(t,n,o),i=!0},p(t,o){if(o&2&&r!==(r=t[1])){if(e){O();const l=e;d(l.$$.fragment,1,0,()=>{g(l,1)}),v()}r?(e=w(r,f(t,o)),t[6](e),y(e.$$.fragment),_(e.$$.fragment,1),h(e,n.parentNode,n)):e=null}else if(r){const l=o&4?k(a,[b(t[2])]):{};e.$set(l)}},i(t){i||(e&&_(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){t&&T(n),s[6](null),e&&g(e,t)}}}function H(s){let e,n,i,a;const r=[z,q],f=[];function t(o,l){return o[0]?0:1}return e=t(s),n=f[e]=r[e](s),{c(){n.c(),i=m()},l(o){n.l(o),i=m()},m(o,l){f[e].m(o,l),R(o,i,l),a=!0},p(o,[l]){let c=e;e=t(o),e===c?f[e].p(o,l):(O(),d(f[c],1,1,()=>{f[c]=null}),v(),n=f[e],n?n.p(o,l):(n=f[e]=r[e](o),n.c()),_(n,1),n.m(i.parentNode,i))},i(o){a||(_(n),a=!0)},o(o){d(n),a=!1},d(o){o&&T(i),f[e].d(o)}}}function J(s,e,n){let{decorator:i=void 0}=e,{Component:a}=e,{props:r={}}=e,{on:f=void 0}=e,t,o;function l(){return t||o}f&&Object.keys(f).forEach(p=>{K(()=>l().$on(p,f[p]))});function c(p){j[p?"unshift":"push"](()=>{t=p,n(3,t)})}function S(p){j[p?"unshift":"push"](()=>{o=p,n(4,o)})}function D(p){j[p?"unshift":"push"](()=>{t=p,n(3,t)})}return s.$$set=p=>{"decorator"in p&&n(0,i=p.decorator),"Component"in p&&n(1,a=p.Component),"props"in p&&n(2,r=p.props),"on"in p&&n(5,f=p.on)},[i,a,r,t,o,f,c,S,D]}class A extends Y{constructor(e){super(),B(this,e,J,H,L,{decorator:0,Component:1,props:2,on:5})}}A.__docgen={version:3,name:"SlotDecorator.svelte",data:[{visibility:"public",description:null,keywords:[],name:"decorator",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"Component",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"props",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}},{visibility:"public",description:null,keywords:[],name:"on",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};function Q(s){let e,n;return e=new A({props:{Component:s[0],props:s[1],on:{...s[3],...s[2]}}}),{c(){y(e.$$.fragment)},l(i){E(e.$$.fragment,i)},m(i,a){h(e,i,a),n=!0},p(i,[a]){const r={};a&1&&(r.Component=i[0]),a&2&&(r.props=i[1]),a&4&&(r.on={...i[3],...i[2]}),e.$set(r)},i(i){n||(_(e.$$.fragment,i),n=!0)},o(i){d(e.$$.fragment,i),n=!1},d(i){g(e,i)}}}function X(s,e,n){let{name:i}=e,{kind:a}=e,{storyFn:r}=e,{showError:f}=e,{storyContext:t}=e,{Component:o,props:l={},on:c}=r(),S=!0;function D(u){return S?(S=!1,{Component:o,props:l,on:c}):u()}const p=Object.fromEntries(Object.entries(t.argTypes).filter(([u,F])=>F.action&&l[u]!=null).map(([u,F])=>[F.action,l[u]]));return o||f({title:`Expecting a Svelte component from the story: "${i}" of "${a}".`,description:W`
Did you forget to return the Svelte component configuration from the story? Did you forget to return the Svelte component configuration from the story?
Use "() => ({ Component: YourComponent, props: {} })" Use "() => ({ Component: YourComponent, props: {} })"
when defining the story. when defining the story.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
import{R as o}from"./index-6c6ef8a7.js";const u=o.createContext({});function c(t){return e;function e(r){const n=a(r.components);return o.createElement(t,{...r,allComponents:n})}}function a(t){const e=o.useContext(u);return o.useMemo(()=>typeof t=="function"?t(e):{...e,...t},[e,t])}const i={};function f({components:t,children:e,disableParentContext:r}){let n;return r?n=typeof t=="function"?t({}):t||i:n=a(t),o.createElement(u.Provider,{value:n},e)}export{u as M,f as a,a as u,c as w}; import{R as o}from"./index-0311e79d.js";const u=o.createContext({});function c(t){return e;function e(r){const n=a(r.components);return o.createElement(t,{...r,allComponents:n})}}function a(t){const e=o.useContext(u);return o.useMemo(()=>typeof t=="function"?t(e):{...e,...t},[e,t])}const i={};function f({components:t,children:e,disableParentContext:r}){let n;return r?n=typeof t=="function"?t({}):t||i:n=a(t),o.createElement(u.Provider,{value:n},e)}export{u as M,f as a,a as u,c as w};

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
import{M as n,a as M,u as D,w as X}from"./index-e1b5ba6e.js";import"./index-6c6ef8a7.js";import"./iframe-e5d9f59b.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-725317a4.js";import"./index-11d98b33.js";import"./index-a04a29e8.js";import"./index-356e4a49.js";export{n as MDXContext,M as MDXProvider,D as useMDXComponents,X as withMDXComponents}; import{M as n,a as M,u as D,w as X}from"./index-1ae9a135.js";import"./index-0311e79d.js";import"./iframe-e8bfe329.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-725317a4.js";import"./index-11d98b33.js";import"./index-a04a29e8.js";import"./index-356e4a49.js";export{n as MDXContext,M as MDXProvider,D as useMDXComponents,X as withMDXComponents};

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
import{_ as e}from"./iframe-e8bfe329.js";import"../sb-preview/runtime.js";var a={docs:{renderer:async()=>{let{DocsRenderer:r}=await e(()=>import("./DocsRenderer-NNNQARDV-696ba2eb.js"),["./DocsRenderer-NNNQARDV-696ba2eb.js","./iframe-e8bfe329.js","./index-0311e79d.js","./_commonjsHelpers-725317a4.js","./index-11d98b33.js","./index-a04a29e8.js","./index-356e4a49.js"],import.meta.url);return new r}}};export{a as parameters};

View file

@ -1 +1 @@
import{I as S,v as I}from"./preview-errors-dde4324f.js";import{o as j,s as b,g as x}from"./lifecycle-8571def4.js";import"./index-356e4a49.js";const{addons:T}=__STORYBOOK_MODULE_PREVIEW_API__,{global:A}=__STORYBOOK_MODULE_GLOBAL__;var k="storybook/actions",B=`${k}/action-event`,C={depth:10,clearOnStoryChange:!0,limit:50},L=(e,n)=>{let t=Object.getPrototypeOf(e);return!t||n(t)?t:L(t,n)},F=e=>!!(typeof e=="object"&&e&&L(e,n=>/^Synthetic(?:Base)?Event$/.test(n.constructor.name))&&typeof e.persist=="function"),N=e=>{if(F(e)){let n=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));n.persist();let t=Object.getOwnPropertyDescriptor(n,"view"),r=t==null?void 0:t.value;return typeof r=="object"&&(r==null?void 0:r.constructor.name)==="Window"&&Object.defineProperty(n,"view",{...t,value:Object.create(r.constructor.prototype)}),n}return e},V=()=>typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?I():Date.now().toString(36)+Math.random().toString(36).substring(2);function R(e,n={}){let t={...C,...n},r=function(...g){var h,i;if(n.implicit){let c=(h="__STORYBOOK_PREVIEW__"in A?A.__STORYBOOK_PREVIEW__:void 0)==null?void 0:h.storyRenders.find(o=>o.phase==="playing"||o.phase==="rendering");if(c){let o=!((i=window==null?void 0:window.FEATURES)!=null&&i.disallowImplicitActionsInRenderV8),s=new S({phase:c.phase,name:e,deprecated:o});if(o)console.warn(s);else throw s}}let f=T.getChannel(),u=V(),v=5,d=g.map(N),O=g.length>1?d:d[0],_={id:u,count:0,data:{name:e,args:O},options:{...t,maxDepth:v+(t.depth||3),allowFunction:t.allowFunction||!1}};f.emit(B,_)};return r.isAction=!0,r}function M(e){b("after-navigate-args",e)}function E(e){return[{subscribe(n){let t=x(e);return n(t),()=>{}}},n=>{b(e,n)}]}var[q,z]=E("page-ctx"),[J,P]=E("navigating-ctx"),[U,W]=E("updated-ctx");U.check=()=>{};var Y=e=>typeof e=="function"?{callback:e,asRegex:!1}:e,Q=[(e,n)=>{var r,g,f,u,v;let t=((r=n.parameters)==null?void 0:r.sveltekit_experimental)??{};return z((g=t==null?void 0:t.stores)==null?void 0:g.page),P((f=t==null?void 0:t.stores)==null?void 0:f.navigating),W((u=t==null?void 0:t.stores)==null?void 0:u.updated),M((v=t==null?void 0:t.navigation)==null?void 0:v.afterNavigate),j(()=>{let d=i=>{let c=i.composedPath().findLast(o=>o instanceof HTMLElement&&o.tagName==="A");if(c&&c instanceof HTMLAnchorElement){let o=c.getAttribute("href");if(!o)return;i.preventDefault();let s=()=>R("navigate")(o,i);if(!t.hrefs){s();return}let a=!0;Object.entries(t.hrefs).forEach(([l,m])=>{let{callback:p,asRegex:y}=Y(m);(y?new RegExp(l).test(o):o===l)&&(a=!1,p==null||p(o,i))}),a&&s()}};function O(i,c,o){let s=[];return c.forEach(a=>{var m;let l=((m=t[i])==null?void 0:m[a])&&t[i][a]instanceof Function;if(l||o){let p=({detail:w=[]})=>{let D=Array.isArray(w)?w:[];(l?t[i][a]:R(a))(...D)},y=`storybook:${a}`;s.push({eventType:y,listener:p}),window.addEventListener(y,p)}}),()=>{s.forEach(({eventType:a,listener:l})=>{window.removeEventListener(a,l)})}}let _=O("navigation",["goto","invalidate","invalidateAll","pushState","replaceState"],!0),h=O("forms",["enhance"]);return window.addEventListener("click",d),()=>{window.removeEventListener("click",d),_(),h()}}),e()}];export{Q as decorators}; import{I as S,v as I}from"./preview-errors-dde4324f.js";import{o as j,s as b,g as x}from"./lifecycle-e76756ca.js";import"./index-356e4a49.js";const{addons:T}=__STORYBOOK_MODULE_PREVIEW_API__,{global:A}=__STORYBOOK_MODULE_GLOBAL__;var k="storybook/actions",B=`${k}/action-event`,C={depth:10,clearOnStoryChange:!0,limit:50},L=(e,n)=>{let t=Object.getPrototypeOf(e);return!t||n(t)?t:L(t,n)},F=e=>!!(typeof e=="object"&&e&&L(e,n=>/^Synthetic(?:Base)?Event$/.test(n.constructor.name))&&typeof e.persist=="function"),N=e=>{if(F(e)){let n=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));n.persist();let t=Object.getOwnPropertyDescriptor(n,"view"),r=t==null?void 0:t.value;return typeof r=="object"&&(r==null?void 0:r.constructor.name)==="Window"&&Object.defineProperty(n,"view",{...t,value:Object.create(r.constructor.prototype)}),n}return e},V=()=>typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?I():Date.now().toString(36)+Math.random().toString(36).substring(2);function R(e,n={}){let t={...C,...n},r=function(...g){var h,i;if(n.implicit){let c=(h="__STORYBOOK_PREVIEW__"in A?A.__STORYBOOK_PREVIEW__:void 0)==null?void 0:h.storyRenders.find(o=>o.phase==="playing"||o.phase==="rendering");if(c){let o=!((i=window==null?void 0:window.FEATURES)!=null&&i.disallowImplicitActionsInRenderV8),s=new S({phase:c.phase,name:e,deprecated:o});if(o)console.warn(s);else throw s}}let f=T.getChannel(),u=V(),v=5,d=g.map(N),O=g.length>1?d:d[0],_={id:u,count:0,data:{name:e,args:O},options:{...t,maxDepth:v+(t.depth||3),allowFunction:t.allowFunction||!1}};f.emit(B,_)};return r.isAction=!0,r}function M(e){b("after-navigate-args",e)}function E(e){return[{subscribe(n){let t=x(e);return n(t),()=>{}}},n=>{b(e,n)}]}var[q,z]=E("page-ctx"),[J,P]=E("navigating-ctx"),[U,W]=E("updated-ctx");U.check=()=>{};var Y=e=>typeof e=="function"?{callback:e,asRegex:!1}:e,Q=[(e,n)=>{var r,g,f,u,v;let t=((r=n.parameters)==null?void 0:r.sveltekit_experimental)??{};return z((g=t==null?void 0:t.stores)==null?void 0:g.page),P((f=t==null?void 0:t.stores)==null?void 0:f.navigating),W((u=t==null?void 0:t.stores)==null?void 0:u.updated),M((v=t==null?void 0:t.navigation)==null?void 0:v.afterNavigate),j(()=>{let d=i=>{let c=i.composedPath().findLast(o=>o instanceof HTMLElement&&o.tagName==="A");if(c&&c instanceof HTMLAnchorElement){let o=c.getAttribute("href");if(!o)return;i.preventDefault();let s=()=>R("navigate")(o,i);if(!t.hrefs){s();return}let a=!0;Object.entries(t.hrefs).forEach(([l,m])=>{let{callback:p,asRegex:y}=Y(m);(y?new RegExp(l).test(o):o===l)&&(a=!1,p==null||p(o,i))}),a&&s()}};function O(i,c,o){let s=[];return c.forEach(a=>{var m;let l=((m=t[i])==null?void 0:m[a])&&t[i][a]instanceof Function;if(l||o){let p=({detail:w=[]})=>{let D=Array.isArray(w)?w:[];(l?t[i][a]:R(a))(...D)},y=`storybook:${a}`;s.push({eventType:y,listener:p}),window.addEventListener(y,p)}}),()=>{s.forEach(({eventType:a,listener:l})=>{window.removeEventListener(a,l)})}}let _=O("navigation",["goto","invalidate","invalidateAll","pushState","replaceState"],!0),h=O("forms",["enhance"]);return window.addEventListener("click",d),()=>{window.removeEventListener("click",d),_(),h()}}),e()}];export{Q as decorators};

View file

@ -1 +0,0 @@
import{_ as e}from"./iframe-e5d9f59b.js";import"../sb-preview/runtime.js";var a={docs:{renderer:async()=>{let{DocsRenderer:r}=await e(()=>import("./DocsRenderer-NNNQARDV-38b05964.js"),["./DocsRenderer-NNNQARDV-38b05964.js","./iframe-e5d9f59b.js","./index-6c6ef8a7.js","./_commonjsHelpers-725317a4.js","./index-11d98b33.js","./index-a04a29e8.js","./index-356e4a49.js"],import.meta.url);return new r}}};export{a as parameters};

View file

@ -1 +1 @@
import{_ as N}from"./iframe-e5d9f59b.js";import"../sb-preview/runtime.js";const{global:T}=__STORYBOOK_MODULE_GLOBAL__,{addons:y}=__STORYBOOK_MODULE_PREVIEW_API__;var n="storybook/a11y",U=`${n}/result`,f=`${n}/request`,g=`${n}/running`,p=`${n}/error`,w=`${n}/manual`,a={RESULT:U,REQUEST:f,RUNNING:g,ERROR:p,MANUAL:w},{document:L,window:d}=T,r=y.getChannel(),o=!1,_,A=async t=>{let{manual:e}=await s(t);e||await l(t)},l=async t=>{_=t;try{let e=await s(t);if(!o){o=!0,r.emit(a.RUNNING);let i=(await N(()=>import("./axe-95259d90.js").then(S=>S.a),["./axe-95259d90.js","./_commonjsHelpers-725317a4.js"],import.meta.url)).default,{element:u="#storybook-root",config:O,options:E={}}=e,R=L.querySelector(u);if(!R)return;i.reset(),O&&i.configure(O);let m=await i.run(R,E),c=JSON.parse(JSON.stringify(m));_===t?r.emit(a.RESULT,c):(o=!1,l(_))}}catch(e){r.emit(a.ERROR,e)}finally{o=!1}},s=async t=>{let{parameters:e}=await d.__STORYBOOK_STORY_STORE__.loadStory({storyId:t})||{};return e.a11y||{config:{},options:{}}};r.on(a.REQUEST,A);r.on(a.MANUAL,l); import{_ as N}from"./iframe-e8bfe329.js";import"../sb-preview/runtime.js";const{global:T}=__STORYBOOK_MODULE_GLOBAL__,{addons:y}=__STORYBOOK_MODULE_PREVIEW_API__;var n="storybook/a11y",U=`${n}/result`,f=`${n}/request`,g=`${n}/running`,p=`${n}/error`,w=`${n}/manual`,a={RESULT:U,REQUEST:f,RUNNING:g,ERROR:p,MANUAL:w},{document:L,window:d}=T,r=y.getChannel(),o=!1,_,A=async t=>{let{manual:e}=await s(t);e||await l(t)},l=async t=>{_=t;try{let e=await s(t);if(!o){o=!0,r.emit(a.RUNNING);let i=(await N(()=>import("./axe-95259d90.js").then(S=>S.a),["./axe-95259d90.js","./_commonjsHelpers-725317a4.js"],import.meta.url)).default,{element:u="#storybook-root",config:O,options:E={}}=e,R=L.querySelector(u);if(!R)return;i.reset(),O&&i.configure(O);let m=await i.run(R,E),c=JSON.parse(JSON.stringify(m));_===t?r.emit(a.RESULT,c):(o=!1,l(_))}}catch(e){r.emit(a.ERROR,e)}finally{o=!1}},s=async t=>{let{parameters:e}=await d.__STORYBOOK_STORY_STORE__.loadStory({storyId:t})||{};return e.a11y||{config:{},options:{}}};r.on(a.REQUEST,A);r.on(a.MANUAL,l);

View file

@ -1 +1 @@
import{S as s,c,s as l}from"./index-6c6ef8a7.js";import"./iframe-e5d9f59b.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-725317a4.js";import"./index-11d98b33.js";import"./index-a04a29e8.js";import"./index-356e4a49.js";export{s as SyntaxHighlighter,c as createCopyToClipboardFunction,l as default}; import{S as s,c,s as l}from"./index-0311e79d.js";import"./iframe-e8bfe329.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-725317a4.js";import"./index-11d98b33.js";import"./index-a04a29e8.js";import"./index-356e4a49.js";export{s as SyntaxHighlighter,c as createCopyToClipboardFunction,l as default};

View file

@ -359,7 +359,7 @@
} }
</script> </script>
<script type="module" crossorigin src="./assets/iframe-e5d9f59b.js"></script> <script type="module" crossorigin src="./assets/iframe-e8bfe329.js"></script>
</head> </head>
<body> <body>

View file

@ -1 +1 @@
{"v":4,"entries":{"configure-your-project--docs":{"id":"configure-your-project--docs","title":"Configure your project","name":"Docs","importPath":"./stories/Configure.mdx","storiesImports":[],"type":"docs","tags":["unattached-mdx","docs"]},"example-button--docs":{"id":"example-button--docs","title":"Example/Button","name":"Docs","importPath":"./stories/Button.stories.ts","type":"docs","tags":["autodocs","docs"],"storiesImports":[]},"example-button--primary":{"type":"story","id":"example-button--primary","name":"Primary","title":"Example/Button","importPath":"./stories/Button.stories.ts","tags":["autodocs","story"]},"example-button--secondary":{"type":"story","id":"example-button--secondary","name":"Secondary","title":"Example/Button","importPath":"./stories/Button.stories.ts","tags":["autodocs","story"]},"example-button--large":{"type":"story","id":"example-button--large","name":"Large","title":"Example/Button","importPath":"./stories/Button.stories.ts","tags":["autodocs","story"]},"example-button--small":{"type":"story","id":"example-button--small","name":"Small","title":"Example/Button","importPath":"./stories/Button.stories.ts","tags":["autodocs","story"]},"example-header--docs":{"id":"example-header--docs","title":"Example/Header","name":"Docs","importPath":"./stories/Header.stories.ts","type":"docs","tags":["autodocs","docs"],"storiesImports":[]},"example-header--logged-in":{"type":"story","id":"example-header--logged-in","name":"Logged In","title":"Example/Header","importPath":"./stories/Header.stories.ts","tags":["autodocs","story"]},"example-header--logged-out":{"type":"story","id":"example-header--logged-out","name":"Logged Out","title":"Example/Header","importPath":"./stories/Header.stories.ts","tags":["autodocs","story"]},"example-page--logged-out":{"type":"story","id":"example-page--logged-out","name":"Logged Out","title":"Example/Page","importPath":"./stories/Page.stories.ts","tags":["story"]},"example-page--logged-in":{"type":"story","id":"example-page--logged-in","name":"Logged In","title":"Example/Page","importPath":"./stories/Page.stories.ts","tags":["play-fn","story"]},"atoms-avatar--docs":{"id":"atoms-avatar--docs","title":"Atoms/Avatar","name":"Docs","importPath":"./stories/atoms/Avatar.stories.ts","type":"docs","tags":["autodocs","docs"],"storiesImports":[]},"atoms-avatar--plain":{"type":"story","id":"atoms-avatar--plain","name":"Plain","title":"Atoms/Avatar","importPath":"./stories/atoms/Avatar.stories.ts","tags":["autodocs","story"]},"atoms-avatar--profile-picture":{"type":"story","id":"atoms-avatar--profile-picture","name":"Profile Picture","title":"Atoms/Avatar","importPath":"./stories/atoms/Avatar.stories.ts","tags":["autodocs","story"]}}} {"v":4,"entries":{"configure-your-project--docs":{"id":"configure-your-project--docs","title":"Configure your project","name":"Docs","importPath":"./stories/Configure.mdx","storiesImports":[],"type":"docs","tags":["unattached-mdx","docs"]},"example-button--docs":{"id":"example-button--docs","title":"Example/Button","name":"Docs","importPath":"./stories/Button.stories.ts","type":"docs","tags":["autodocs","docs"],"storiesImports":[]},"example-button--primary":{"type":"story","id":"example-button--primary","name":"Primary","title":"Example/Button","importPath":"./stories/Button.stories.ts","tags":["autodocs","story"]},"example-button--secondary":{"type":"story","id":"example-button--secondary","name":"Secondary","title":"Example/Button","importPath":"./stories/Button.stories.ts","tags":["autodocs","story"]},"example-button--large":{"type":"story","id":"example-button--large","name":"Large","title":"Example/Button","importPath":"./stories/Button.stories.ts","tags":["autodocs","story"]},"example-button--small":{"type":"story","id":"example-button--small","name":"Small","title":"Example/Button","importPath":"./stories/Button.stories.ts","tags":["autodocs","story"]},"example-header--docs":{"id":"example-header--docs","title":"Example/Header","name":"Docs","importPath":"./stories/Header.stories.ts","type":"docs","tags":["autodocs","docs"],"storiesImports":[]},"example-header--logged-in":{"type":"story","id":"example-header--logged-in","name":"Logged In","title":"Example/Header","importPath":"./stories/Header.stories.ts","tags":["autodocs","story"]},"example-header--logged-out":{"type":"story","id":"example-header--logged-out","name":"Logged Out","title":"Example/Header","importPath":"./stories/Header.stories.ts","tags":["autodocs","story"]},"example-page--logged-out":{"type":"story","id":"example-page--logged-out","name":"Logged Out","title":"Example/Page","importPath":"./stories/Page.stories.ts","tags":["story"]},"example-page--logged-in":{"type":"story","id":"example-page--logged-in","name":"Logged In","title":"Example/Page","importPath":"./stories/Page.stories.ts","tags":["play-fn","story"]},"atoms-avatar--docs":{"id":"atoms-avatar--docs","title":"Atoms/Avatar","name":"Docs","importPath":"./stories/atoms/Avatar.stories.ts","type":"docs","tags":["autodocs","docs"],"storiesImports":[]},"atoms-avatar--plain":{"type":"story","id":"atoms-avatar--plain","name":"Plain","title":"Atoms/Avatar","importPath":"./stories/atoms/Avatar.stories.ts","tags":["autodocs","story"]},"atoms-avatar--profile-picture":{"type":"story","id":"atoms-avatar--profile-picture","name":"Profile Picture","title":"Atoms/Avatar","importPath":"./stories/atoms/Avatar.stories.ts","tags":["autodocs","story"]},"atoms-blockorreport--docs":{"id":"atoms-blockorreport--docs","title":"Atoms/BlockOrReport","name":"Docs","importPath":"./stories/atoms/BlockOrReport.stories.ts","type":"docs","tags":["autodocs","docs"],"storiesImports":[]},"atoms-blockorreport--plain":{"type":"story","id":"atoms-blockorreport--plain","name":"Plain","title":"Atoms/BlockOrReport","importPath":"./stories/atoms/BlockOrReport.stories.ts","tags":["autodocs","story"]},"atoms-created--docs":{"id":"atoms-created--docs","title":"Atoms/Created","name":"Docs","importPath":"./stories/atoms/Created.stories.ts","type":"docs","tags":["autodocs","docs"],"storiesImports":[]},"atoms-created--plain":{"type":"story","id":"atoms-created--plain","name":"Plain","title":"Atoms/Created","importPath":"./stories/atoms/Created.stories.ts","tags":["autodocs","story"]},"atoms-created--missing":{"type":"story","id":"atoms-created--missing","name":"Missing","title":"Atoms/Created","importPath":"./stories/atoms/Created.stories.ts","tags":["autodocs","story"]}}}

View file

@ -1 +1 @@
{"generatedAt":1707672924050,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"metaFramework":{"name":"sveltekit","packageName":"@sveltejs/kit","version":"1.27.5"},"packageManager":{"type":"npm","version":"9.5.1"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/sveltekit","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/svelte","storybookVersion":"7.6.13","storybookVersionSpecifier":"7.6.13","language":"typescript","storybookPackages":{"@storybook/blocks":{"version":"7.6.13"},"@storybook/builder-vite":{"version":"7.6.13"},"@storybook/svelte":{"version":"7.6.13"},"@storybook/sveltekit":{"version":"7.6.13"},"@storybook/test":{"version":"7.6.13"},"eslint-plugin-storybook":{"version":"0.6.15"},"storybook":{"version":"7.6.13"}},"addons":{"@storybook/addon-links":{"version":"7.6.13"},"@storybook/addon-essentials":{"version":"7.6.13"},"@storybook/addon-interactions":{"version":"7.6.13"},"@storybook/addon-a11y":{"version":"7.6.13"}}} {"generatedAt":1707737969695,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"metaFramework":{"name":"sveltekit","packageName":"@sveltejs/kit","version":"1.27.5"},"packageManager":{"type":"npm","version":"9.5.1"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/sveltekit","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/svelte","storybookVersion":"7.6.13","storybookVersionSpecifier":"7.6.13","language":"typescript","storybookPackages":{"@storybook/blocks":{"version":"7.6.13"},"@storybook/builder-vite":{"version":"7.6.13"},"@storybook/svelte":{"version":"7.6.13"},"@storybook/sveltekit":{"version":"7.6.13"},"@storybook/test":{"version":"7.6.13"},"eslint-plugin-storybook":{"version":"0.6.15"},"storybook":{"version":"7.6.13"}},"addons":{"@storybook/addon-links":{"version":"7.6.13"},"@storybook/addon-essentials":{"version":"7.6.13"},"@storybook/addon-interactions":{"version":"7.6.13"},"@storybook/addon-a11y":{"version":"7.6.13"}}}

File diff suppressed because one or more lines are too long