Updates
|
@ -1 +1 @@
|
|||
import{A as a}from"./ZoomOut24-23fb22e7.js";import"./utils-09ff0c0e.js";import"./lifecycle-96ebe68d.js";import"./index-9669f5df.js";import"./spread-8a54911c.js";const p={title:"Icons/AlertFill16",component:a,tags:["autodocs"],argTypes:{fill:{control:"color"}}},o={};var r,t,e;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(e=(t=o.parameters)==null?void 0:t.docs)==null?void 0:e.source}}};const n=["Plain"];export{o as Plain,n as __namedExportsOrder,p as default};
|
||||
import{A as a}from"./ZoomOut24-a2398075.js";import"./utils-09ff0c0e.js";import"./lifecycle-16e1fb41.js";import"./index-b180c43f.js";import"./spread-8a54911c.js";const p={title:"Icons/AlertFill16",component:a,tags:["autodocs"],argTypes:{fill:{control:"color"}}},o={};var r,t,e;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(e=(t=o.parameters)==null?void 0:t.docs)==null?void 0:e.source}}};const n=["Plain"];export{o as Plain,n as __namedExportsOrder,p as default};
|
33
assets/Avatar-dbcb87cd.js
Normal file
11
assets/Avatar.stories-224fc144.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
import{A as i}from"./Avatar-dbcb87cd.js";import"./utils-09ff0c0e.js";import"./index-b180c43f.js";import"./lifecycle-16e1fb41.js";import"./index-9ff358fd.js";import"./spread-8a54911c.js";import"./each-57bb632b.js";const b={title:"Atoms/Avatar",component:i,tags:["autodocs"]},a={args:{avatar:"",displayName:"Jane Doe"}},r={args:{...a.args,avatar:"https://codeberg.org/avatars/a9defc12e1826458289a39e3a66792f0adef29a73fb79b71c66560b7d80aac8f?size=280"}};var e,t,s;a.parameters={...a.parameters,docs:{...(e=a.parameters)==null?void 0:e.docs,source:{originalSource:`{
|
||||
args: {
|
||||
avatar: '',
|
||||
displayName: 'Jane Doe'
|
||||
}
|
||||
}`,...(s=(t=a.parameters)==null?void 0:t.docs)==null?void 0:s.source}}};var o,c,n;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`{
|
||||
args: {
|
||||
...Plain.args,
|
||||
avatar: 'https://codeberg.org/avatars/a9defc12e1826458289a39e3a66792f0adef29a73fb79b71c66560b7d80aac8f?size=280'
|
||||
}
|
||||
}`,...(n=(c=r.parameters)==null?void 0:c.docs)==null?void 0:n.source}}};const v=["Plain","ProfilePicture"];export{a as Plain,r as ProfilePicture,v as __namedExportsOrder,b as default};
|
|
@ -1,11 +0,0 @@
|
|||
import{A as n}from"./Avatar-dac7a148.js";import"./utils-09ff0c0e.js";import"./index-9669f5df.js";import"./lifecycle-96ebe68d.js";import"./index-9ff358fd.js";import"./spread-8a54911c.js";const v={title:"Atoms/Avatar",component:n,tags:["autodocs"],argTypes:{avatar:{control:"text",description:"An URL to the image"},displayName:{control:"text",description:"If no image is provided, derive initials"}}},a={args:{avatar:"",displayName:"Jane Doe"}},e={args:{...a.args,avatar:"https://codeberg.org/avatars/a9defc12e1826458289a39e3a66792f0adef29a73fb79b71c66560b7d80aac8f?size=280"}};var r,t,o;a.parameters={...a.parameters,docs:{...(r=a.parameters)==null?void 0:r.docs,source:{originalSource:`{
|
||||
args: {
|
||||
avatar: '',
|
||||
displayName: 'Jane Doe'
|
||||
}
|
||||
}`,...(o=(t=a.parameters)==null?void 0:t.docs)==null?void 0:o.source}}};var s,i,c;e.parameters={...e.parameters,docs:{...(s=e.parameters)==null?void 0:s.docs,source:{originalSource:`{
|
||||
args: {
|
||||
...Plain.args,
|
||||
avatar: 'https://codeberg.org/avatars/a9defc12e1826458289a39e3a66792f0adef29a73fb79b71c66560b7d80aac8f?size=280'
|
||||
}
|
||||
}`,...(c=(i=e.parameters)==null?void 0:i.docs)==null?void 0:c.source}}};const u=["Plain","ProfilePicture"];export{a as Plain,e as ProfilePicture,u as __namedExportsOrder,v as default};
|
|
@ -1 +1 @@
|
|||
import{a as i,n as r,c as p}from"./utils-09ff0c0e.js";import{H as c,e as a,c as m,i as u,d as b}from"./lifecycle-96ebe68d.js";import{S as d,i as _}from"./index-9669f5df.js";import{$ as f}from"./runtime-ea3b2d3b.js";function h(s){let t,n=s[0]("page.profile.activities.block_or_report",{values:{blockElementOpen:'<button type="button" class="underline">',blockElementClose:"</button>",reportElementOpen:'<button type="button" class="underline">',reportElementClose:"</button>"}})+"",o;return{c(){t=new c(!1),o=a(),this.h()},l(e){t=m(e,!1),o=a(),this.h()},h(){t.a=o},m(e,l){t.m(n,e,l),u(e,o,l)},p(e,[l]){l&1&&n!==(n=e[0]("page.profile.activities.block_or_report",{values:{blockElementOpen:'<button type="button" class="underline">',blockElementClose:"</button>",reportElementOpen:'<button type="button" class="underline">',reportElementClose:"</button>"}})+"")&&t.p(n)},i:r,o:r,d(e){e&&(b(o),t.d())}}}function k(s,t,n){let o;return p(s,f,e=>n(0,o=e)),[o]}class v extends d{constructor(t){super(),_(this,t,k,h,i,{})}}v.__docgen={version:3,name:"BlockOrReport.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};export{v as B};
|
||||
import{a as i,n as r,c as p}from"./utils-09ff0c0e.js";import{H as c,e as a,c as m,i as u,d as b}from"./lifecycle-16e1fb41.js";import{S as d,i as _}from"./index-b180c43f.js";import{$ as f}from"./runtime-ea3b2d3b.js";function h(s){let t,n=s[0]("page.profile.activities.block_or_report",{values:{blockElementOpen:'<button type="button" class="underline">',blockElementClose:"</button>",reportElementOpen:'<button type="button" class="underline">',reportElementClose:"</button>"}})+"",o;return{c(){t=new c(!1),o=a(),this.h()},l(e){t=m(e,!1),o=a(),this.h()},h(){t.a=o},m(e,l){t.m(n,e,l),u(e,o,l)},p(e,[l]){l&1&&n!==(n=e[0]("page.profile.activities.block_or_report",{values:{blockElementOpen:'<button type="button" class="underline">',blockElementClose:"</button>",reportElementOpen:'<button type="button" class="underline">',reportElementClose:"</button>"}})+"")&&t.p(n)},i:r,o:r,d(e){e&&(b(o),t.d())}}}function k(s,t,n){let o;return p(s,f,e=>n(0,o=e)),[o]}class v extends d{constructor(t){super(),_(this,t,k,h,i,{})}}v.__docgen={version:3,name:"BlockOrReport.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};export{v as B};
|
1
assets/BlockOrReport.stories-16ad9d58.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{B as a}from"./BlockOrReport-64932439.js";import"./utils-09ff0c0e.js";import"./lifecycle-16e1fb41.js";import"./index-b180c43f.js";import"./runtime-ea3b2d3b.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";const l={title:"Atoms/BlockOrReport",component:a,tags:["autodocs"]},o={};var r,t,e;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(e=(t=o.parameters)==null?void 0:t.docs)==null?void 0:e.source}}};const u=["Plain"];export{o as Plain,u as __namedExportsOrder,l as default};
|
|
@ -1,7 +0,0 @@
|
|||
import{B as a}from"./BlockOrReport-360ad42f.js";import"./utils-09ff0c0e.js";import"./lifecycle-96ebe68d.js";import"./index-9669f5df.js";import"./runtime-ea3b2d3b.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";const d={title:"Atoms/BlockOrReport",component:a,tags:["autodocs"]},r={parameters:{controls:{hideNoControlsWarning:!0}}};var o,t,e;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:`{
|
||||
parameters: {
|
||||
controls: {
|
||||
hideNoControlsWarning: true
|
||||
}
|
||||
}
|
||||
}`,...(e=(t=r.parameters)==null?void 0:t.docs)==null?void 0:e.source}}};const u=["Plain"];export{r as Plain,u as __namedExportsOrder,d as default};
|
|
@ -1 +0,0 @@
|
|||
.storybook-button{font-family:Nunito Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-weight:700;border:0;border-radius:3em;cursor:pointer;display:inline-block;line-height:1}.storybook-button--primary{color:#fff;background-color:#1ea7fd}.storybook-button--secondary{color:#333;background-color:transparent;box-shadow:#00000026 0 0 0 1px inset}.storybook-button--small{font-size:12px;padding:10px 16px}.storybook-button--medium{font-size:14px;padding:11px 20px}.storybook-button--large{font-size:16px;padding:12px 24px}
|
|
@ -1 +0,0 @@
|
|||
import{a as m,n as c}from"./utils-09ff0c0e.js";import{a as f,t as k,b as p,f as h,h as g,d as y,j as u,i as _,k as v,u as w,n as C,v as z}from"./lifecycle-96ebe68d.js";import{S as B,i as j}from"./index-9669f5df.js";function V(o){let t,i,s,l,r;return{c(){t=f("button"),i=k(o[1]),this.h()},l(e){t=p(e,"BUTTON",{type:!0,class:!0,style:!0});var n=h(t);i=g(n,o[1]),n.forEach(y),this.h()},h(){u(t,"type","button"),u(t,"class",s=["storybook-button",`storybook-button--${o[0]}`,o[3]].join(" ")),u(t,"style",o[2])},m(e,n){_(e,t,n),v(t,i),l||(r=w(t,"click",o[6]),l=!0)},p(e,[n]){n&2&&C(i,e[1]),n&9&&s!==(s=["storybook-button",`storybook-button--${e[0]}`,e[3]].join(" "))&&u(t,"class",s),n&4&&u(t,"style",e[2])},i:c,o:c,d(e){e&&y(t),l=!1,r()}}}function S(o,t,i){let s,l,{primary:r=!1}=t,{backgroundColor:e=void 0}=t,{size:n="medium"}=t,{label:d=""}=t;function b(a){z.call(this,o,a)}return o.$$set=a=>{"primary"in a&&i(4,r=a.primary),"backgroundColor"in a&&i(5,e=a.backgroundColor),"size"in a&&i(0,n=a.size),"label"in a&&i(1,d=a.label)},o.$$.update=()=>{o.$$.dirty&16&&i(3,s=r?"storybook-button--primary":"storybook-button--secondary"),o.$$.dirty&32&&i(2,l=e?`background-color: ${e}`:"")},[n,d,l,s,r,e,b]}class T extends B{constructor(t){super(),j(this,t,S,V,m,{primary:4,backgroundColor:5,size:0,label:1})}}T.__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{T as B};
|
|
@ -1,20 +0,0 @@
|
|||
import{B as b}from"./Button-d8784d72.js";import"./utils-09ff0c0e.js";import"./lifecycle-96ebe68d.js";import"./index-9669f5df.js";const f={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: {
|
||||
primary: true,
|
||||
label: 'Button'
|
||||
}
|
||||
}`,...(n=(t=r.parameters)==null?void 0:t.docs)==null?void 0:n.source}}};var l,c,m;e.parameters={...e.parameters,docs:{...(l=e.parameters)==null?void 0:l.docs,source:{originalSource:`{
|
||||
args: {
|
||||
label: 'Button'
|
||||
}
|
||||
}`,...(m=(c=e.parameters)==null?void 0:c.docs)==null?void 0:m.source}}};var p,u,i;a.parameters={...a.parameters,docs:{...(p=a.parameters)==null?void 0:p.docs,source:{originalSource:`{
|
||||
args: {
|
||||
size: 'large',
|
||||
label: 'Button'
|
||||
}
|
||||
}`,...(i=(u=a.parameters)==null?void 0:u.docs)==null?void 0:i.source}}};var d,g,B;o.parameters={...o.parameters,docs:{...(d=o.parameters)==null?void 0:d.docs,source:{originalSource:`{
|
||||
args: {
|
||||
size: 'small',
|
||||
label: 'Button'
|
||||
}
|
||||
}`,...(B=(g=o.parameters)==null?void 0:g.docs)==null?void 0:B.source}}};const E=["Primary","Secondary","Large","Small"];export{a as Large,r as Primary,e as Secondary,o as Small,E as __namedExportsOrder,f as default};
|
|
@ -1,3 +1,5 @@
|
|||
import{j as r}from"./jsx-runtime-168a7803.js";import{M as s,C as t,b as o}from"./index-de2c9509.js";import{u as e}from"./index-51661169.js";import"./iframe-230dc4ac.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-725317a4.js";import"./index-11d98b33.js";import"./index-a04a29e8.js";import"./index-356e4a49.js";function l(a){const c=Object.assign({p:"p"},e(),a.components);return r.jsxs(r.Fragment,{children:[r.jsx(s,{title:"Colors"}),`
|
||||
import{j as r}from"./jsx-runtime-ea3d6ccb.js";import{M as s,C as t,b as o}from"./index-6f701dea.js";import{u as e}from"./index-5fd49470.js";import"./iframe-e37939d1.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-725317a4.js";import"./index-11d98b33.js";import"./index-a04a29e8.js";import"./index-356e4a49.js";function l(a){const c=Object.assign({p:"p"},e(),a.components);return r.jsxs(r.Fragment,{children:[`
|
||||
`,`
|
||||
`,r.jsx(s,{title:"Colors"}),`
|
||||
`,r.jsx(c.p,{children:"Consider the value at 500 to be the default."}),`
|
||||
`,r.jsxs(t,{children:[r.jsx(o,{title:"color.primary",subtitle:"Primary",colors:{50:"rgb(var(--color-primary-50))",100:"rgb(var(--color-primary-100))",200:"rgb(var(--color-primary-200))",300:"rgb(var(--color-primary-300))",400:"rgb(var(--color-primary-400))",500:"rgb(var(--color-primary-500))",600:"rgb(var(--color-primary-600))",700:"rgb(var(--color-primary-700))",800:"rgb(var(--color-primary-800))",900:"rgb(var(--color-primary-900))"}}),r.jsx(o,{title:"color.secondary",subtitle:"Secondary",colors:{50:"rgb(var(--color-secondary-50))",100:"rgb(var(--color-secondary-100))",200:"rgb(var(--color-secondary-200))",300:"rgb(var(--color-secondary-300))",400:"rgb(var(--color-secondary-400))",500:"rgb(var(--color-secondary-500))",600:"rgb(var(--color-secondary-600))",700:"rgb(var(--color-secondary-700))",800:"rgb(var(--color-secondary-800))",900:"rgb(var(--color-secondary-900))"}}),r.jsx(o,{title:"color.tertiary",subtitle:"Tertiary",colors:{50:"rgb(var(--color-tertiary-50))",100:"rgb(var(--color-tertiary-100))",200:"rgb(var(--color-tertiary-200))",300:"rgb(var(--color-tertiary-300))",400:"rgb(var(--color-tertiary-400))",500:"rgb(var(--color-tertiary-500))",600:"rgb(var(--color-tertiary-600))",700:"rgb(var(--color-tertiary-700))",800:"rgb(var(--color-tertiary-800))",900:"rgb(var(--color-tertiary-900))"}}),r.jsx(o,{title:"color.success",subtitle:"Success",colors:{50:"rgb(var(--color-success-50))",100:"rgb(var(--color-success-100))",200:"rgb(var(--color-success-200))",300:"rgb(var(--color-success-300))",400:"rgb(var(--color-success-400))",500:"rgb(var(--color-success-500))",600:"rgb(var(--color-success-600))",700:"rgb(var(--color-success-700))",800:"rgb(var(--color-success-800))",900:"rgb(var(--color-success-900))"}}),r.jsx(o,{title:"color.warning",subtitle:"Warning",colors:{50:"rgb(var(--color-warning-50))",100:"rgb(var(--color-warning-100))",200:"rgb(var(--color-warning-200))",300:"rgb(var(--color-warning-300))",400:"rgb(var(--color-warning-400))",500:"rgb(var(--color-warning-500))",600:"rgb(var(--color-warning-600))",700:"rgb(var(--color-warning-700))",800:"rgb(var(--color-warning-800))",900:"rgb(var(--color-warning-900))"}}),r.jsx(o,{title:"color.error",subtitle:"Error",colors:{50:"rgb(var(--color-error-50))",100:"rgb(var(--color-error-100))",200:"rgb(var(--color-error-200))",300:"rgb(var(--color-error-300))",400:"rgb(var(--color-error-400))",500:"rgb(var(--color-error-500))",600:"rgb(var(--color-error-600))",700:"rgb(var(--color-error-700))",800:"rgb(var(--color-error-800))",900:"rgb(var(--color-error-900))"}}),r.jsx(o,{title:"color.surface",subtitle:"Surface",colors:{50:"rgb(var(--color-surface-50))",100:"rgb(var(--color-surface-100))",200:"rgb(var(--color-surface-200))",300:"rgb(var(--color-surface-300))",400:"rgb(var(--color-surface-400))",500:"rgb(var(--color-surface-500))",600:"rgb(var(--color-surface-600))",700:"rgb(var(--color-surface-700))",800:"rgb(var(--color-surface-800))",900:"rgb(var(--color-surface-900))"}})]})]})}function d(a={}){const{wrapper:c}=Object.assign({},e(),a.components);return c?r.jsx(c,Object.assign({},a,{children:r.jsx(l,a)})):l(a)}export{d as default};
|
1
assets/Created-2245d9b8.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{a as k,n as d}from"./utils-09ff0c0e.js";import{e as c,i as h,d as o,a as m,t as b,H as g,b as f,f as p,h as D,c as v,j as u,k as _}from"./lifecycle-16e1fb41.js";import{S as w,i as C}from"./index-b180c43f.js";function y(s){let a,e,t,i;return{c(){a=m("span"),e=b("created "),t=m("date"),i=new g(!1),this.h()},l(l){a=f(l,"SPAN",{});var n=p(a);e=D(n,"created "),t=f(n,"DATE",{datetime:!0});var r=p(t);i=v(r,!1),r.forEach(o),n.forEach(o),this.h()},h(){i.a=null,u(t,"datetime",s[0])},m(l,n){h(l,a,n),_(a,e),_(a,t),i.m(s[1],t)},p(l,n){n&2&&i.p(l[1]),n&1&&u(t,"datetime",l[0])},d(l){l&&o(a)}}}function E(s){let a,e=s[0]&&s[1]&&y(s);return{c(){e&&e.c(),a=c()},l(t){e&&e.l(t),a=c()},m(t,i){e&&e.m(t,i),h(t,a,i)},p(t,[i]){t[0]&&t[1]?e?e.p(t,i):(e=y(t),e.c(),e.m(a.parentNode,a)):e&&(e.d(1),e=null)},i:d,o:d,d(t){t&&o(a),e&&e.d(t)}}}function H(s,a,e){let t,{created_at:i=null}=a,{locale:l="en"}=a;return s.$$set=n=>{"created_at"in n&&e(0,i=n.created_at),"locale"in n&&e(2,l=n.locale)},s.$$.update=()=>{s.$$.dirty&5&&e(1,t=new Intl.DateTimeFormat(l).format(i))},[i,t,l]}class S extends w{constructor(a){super(),C(this,a,H,E,k,{created_at:0,locale:2})}}S.__docgen={version:3,name:"Created.svelte",data:[{keywords:[{name:"type",description:"{Date | null}"}],visibility:"public",description:"Date object for created time.",name:"created_at",kind:"let",static:!1,readonly:!1,type:{kind:"union",text:"Date | null",type:[{kind:"type",text:"Date",type:"Date"},{kind:"type",text:"null",type:"null"}]},defaultValue:null},{keywords:[{name:"type",description:"{string}"}],visibility:"public",description:"Locale to format the datetime according to.",name:"locale",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:"en"}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};export{S as C};
|
|
@ -1 +0,0 @@
|
|||
import{a as b,n as o}from"./utils-09ff0c0e.js";import{e as c,i as y,d as l,a as f,t as k,H as v,b as m,f as _,h as g,c as j,j as p,k as u}from"./lifecycle-96ebe68d.js";import{S as w,i as C}from"./index-9669f5df.js";function h(r){let a,e,t,i;return{c(){a=f("span"),e=k("created "),t=f("date"),i=new v(!1),this.h()},l(n){a=m(n,"SPAN",{});var d=_(a);e=g(d,"created "),t=m(d,"DATE",{datetime:!0});var s=_(t);i=j(s,!1),s.forEach(l),d.forEach(l),this.h()},h(){i.a=null,p(t,"datetime",r[1])},m(n,d){y(n,a,d),u(a,e),u(a,t),i.m(r[0],t)},p(n,d){d&1&&i.p(n[0]),d&2&&p(t,"datetime",n[1])},d(n){n&&l(a)}}}function E(r){let a,e=r[1]&&r[0]&&h(r);return{c(){e&&e.c(),a=c()},l(t){e&&e.l(t),a=c()},m(t,i){e&&e.m(t,i),y(t,a,i)},p(t,[i]){t[1]&&t[0]?e?e.p(t,i):(e=h(t),e.c(),e.m(a.parentNode,a)):e&&(e.d(1),e=null)},i:o,o,d(t){t&&l(a),e&&e.d(t)}}}function H(r,a,e){let{created_at_formatted:t=""}=a,{created_at:i=null}=a;return r.$$set=n=>{"created_at_formatted"in n&&e(0,t=n.created_at_formatted),"created_at"in n&&e(1,i=n.created_at)},[t,i]}class S extends w{constructor(a){super(),C(this,a,H,E,b,{created_at_formatted:0,created_at:1})}}S.__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:[]};export{S as C};
|
6
assets/Created.stories-4a7ac25a.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
import{C as d}from"./Created-2245d9b8.js";import"./utils-09ff0c0e.js";import"./lifecycle-16e1fb41.js";import"./index-b180c43f.js";const g={title:"Atoms/Created",component:d,tags:["autodocs"],argTypes:{created_at:{control:"date"},locale:{control:"radio",options:["en","de","he"]}}},e={args:{created_at:new Date,locale:"en"}},a={};var r,o,t;e.parameters={...e.parameters,docs:{...(r=e.parameters)==null?void 0:r.docs,source:{originalSource:`{
|
||||
args: {
|
||||
created_at: new Date(),
|
||||
locale: 'en'
|
||||
}
|
||||
}`,...(t=(o=e.parameters)==null?void 0:o.docs)==null?void 0:t.source}}};var s,c,n;a.parameters={...a.parameters,docs:{...(s=a.parameters)==null?void 0:s.docs,source:{originalSource:"{}",...(n=(c=a.parameters)==null?void 0:c.docs)==null?void 0:n.source}}};const u=["Plain","Missing"];export{a as Missing,e as Plain,u as __namedExportsOrder,g as default};
|
|
@ -1,9 +0,0 @@
|
|||
import{C as i}from"./Created-4789a277.js";import"./utils-09ff0c0e.js";import"./lifecycle-96ebe68d.js";import"./index-9669f5df.js";const _={title:"Atoms/Created",component:i,tags:["autodocs"],argTypes:{created_at:{control:"date",description:"Date of creation"},created_at_formatted:{control:"text",description:"Localised version of created_at"}}},e={args:{created_at:new Date,created_at_formatted:function(){const d="en-US";return new Intl.DateTimeFormat(d).format(new Date)}()}},t={};var a,r,o;e.parameters={...e.parameters,docs:{...(a=e.parameters)==null?void 0:a.docs,source:{originalSource:`{
|
||||
args: {
|
||||
created_at: new Date(),
|
||||
created_at_formatted: function () {
|
||||
const locale = 'en-US';
|
||||
return new Intl.DateTimeFormat(locale).format(new Date());
|
||||
}()
|
||||
}
|
||||
}`,...(o=(r=e.parameters)==null?void 0:r.docs)==null?void 0:o.source}}};var n,s,c;t.parameters={...t.parameters,docs:{...(n=t.parameters)==null?void 0:n.docs,source:{originalSource:"{}",...(c=(s=t.parameters)==null?void 0:s.docs)==null?void 0:c.source}}};const f=["Plain","Missing"];export{t as Missing,e as Plain,f as __namedExportsOrder,_ as default};
|
|
@ -1 +0,0 @@
|
|||
import{a as P,n as S,c as V}from"./utils-09ff0c0e.js";import{a as b,t as c,l as x,b as k,f as v,h as f,d as m,m as H,j as N,i as w,k as p,n as D}from"./lifecycle-96ebe68d.js";import{S as j,i as q}from"./index-9669f5df.js";import{$ as A}from"./runtime-ea3b2d3b.js";function C(i){let e,n,o=i[2]("page.profile.heading")+"",r,d,s,h,l,_,u,g;return{c(){e=b("h1"),n=b("span"),r=c(o),d=x(),s=c(i[0]),h=x(),l=b("p"),_=c("("),u=c(i[1]),g=c(")"),this.h()},l(t){e=k(t,"H1",{class:!0});var a=v(e);n=k(a,"SPAN",{class:!0});var E=v(n);r=f(E,o),E.forEach(m),d=H(a),s=f(a,i[0]),a.forEach(m),h=H(t),l=k(t,"P",{class:!0});var y=v(l);_=f(y,"("),u=f(y,i[1]),g=f(y,")"),y.forEach(m),this.h()},h(){N(n,"class","sr-only"),N(e,"class","h1 font-semibold text-4xl leading-tight"),N(l,"class","leading-normal my-1")},m(t,a){w(t,e,a),p(e,n),p(n,r),p(e,d),p(e,s),w(t,h,a),w(t,l,a),p(l,_),p(l,u),p(l,g)},p(t,[a]){a&4&&o!==(o=t[2]("page.profile.heading")+"")&&D(r,o),a&1&&D(s,t[0]),a&2&&D(u,t[1])},i:S,o:S,d(t){t&&(m(e),m(h),m(l))}}}function U(i,e,n){let o;V(i,A,s=>n(2,o=s));let{displayName:r=""}=e,{pronoun:d=""}=e;return i.$$set=s=>{"displayName"in s&&n(0,r=s.displayName),"pronoun"in s&&n(1,d=s.pronoun)},[r,d,o]}class z extends j{constructor(e){super(),q(this,e,U,C,P,{displayName:0,pronoun:1})}}z.__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:[]};export{z as D};
|
1
assets/DisplayName-dd14e727.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{a as H,n as w,c as P}from"./utils-09ff0c0e.js";import{a as _,t as y,l as j,e as D,b,f as k,h,d as m,m as E,j as g,i as u,k as c,n as N}from"./lifecycle-16e1fb41.js";import{S as V,i as q}from"./index-b180c43f.js";import{$ as A}from"./runtime-ea3b2d3b.js";function S(l){let e,n,o,p;return{c(){e=_("p"),n=y("("),o=y(l[2]),p=y(")"),this.h()},l(a){e=b(a,"P",{class:!0});var i=k(e);n=h(i,"("),o=h(i,l[2]),p=h(i,")"),i.forEach(m),this.h()},h(){g(e,"class","leading-normal my-1")},m(a,i){u(a,e,i),c(e,n),c(e,o),c(e,p)},p(a,i){i&4&&N(o,a[2])},d(a){a&&m(e)}}}function C(l){let e,n,o=l[3](l[1].heading)+"",p,a,i,r,f,s=l[2]&&S(l);return{c(){e=_("h1"),n=_("span"),p=y(o),a=j(),i=y(l[0]),r=j(),s&&s.c(),f=D(),this.h()},l(t){e=b(t,"H1",{class:!0});var d=k(e);n=b(d,"SPAN",{class:!0});var v=k(n);p=h(v,o),v.forEach(m),a=E(d),i=h(d,l[0]),d.forEach(m),r=E(t),s&&s.l(t),f=D(),this.h()},h(){g(n,"class","sr-only"),g(e,"class","h1 font-semibold text-4xl leading-tight")},m(t,d){u(t,e,d),c(e,n),c(n,p),c(e,a),c(e,i),u(t,r,d),s&&s.m(t,d),u(t,f,d)},p(t,[d]){d&10&&o!==(o=t[3](t[1].heading)+"")&&N(p,o),d&1&&N(i,t[0]),t[2]?s?s.p(t,d):(s=S(t),s.c(),s.m(f.parentNode,f)):s&&(s.d(1),s=null)},i:w,o:w,d(t){t&&(m(e),m(r),m(f)),s&&s.d(t)}}}function T(l,e,n){let o;P(l,A,r=>n(3,o=r));let{displayName:p=""}=e,{i18n:a={heading:""}}=e,{pronoun:i=""}=e;return l.$$set=r=>{"displayName"in r&&n(0,p=r.displayName),"i18n"in r&&n(1,a=r.i18n),"pronoun"in r&&n(2,i=r.pronoun)},[p,a,i,o]}class U extends V{constructor(e){super(),q(this,e,T,C,H,{displayName:0,i18n:1,pronoun:2})}}U.__docgen={version:3,name:"DisplayName.svelte",data:[{keywords:[{name:"type",description:"{string}"}],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:"Translation keys.",name:"i18n",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}},{keywords:[{name:"type",description:"{string}"}],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:[]};export{U as D};
|
16
assets/DisplayName.stories-4a8b9adf.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
import{D as p}from"./DisplayName-dd14e727.js";import"./utils-09ff0c0e.js";import"./lifecycle-16e1fb41.js";import"./index-b180c43f.js";import"./runtime-ea3b2d3b.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";const D={title:"Atoms/DisplayName",component:p,tags:["autodocs"]},e={args:{displayName:"Jane Doe",i18n:{heading:"page.profile.heading"},pronoun:"she/her"}},a={args:{displayName:"Jane Doe",i18n:{heading:"page.profile.heading"}}};var o,n,r;e.parameters={...e.parameters,docs:{...(o=e.parameters)==null?void 0:o.docs,source:{originalSource:`{
|
||||
args: {
|
||||
displayName: 'Jane Doe',
|
||||
i18n: {
|
||||
heading: 'page.profile.heading'
|
||||
},
|
||||
pronoun: 'she/her'
|
||||
}
|
||||
}`,...(r=(n=e.parameters)==null?void 0:n.docs)==null?void 0:r.source}}};var s,i,t;a.parameters={...a.parameters,docs:{...(s=a.parameters)==null?void 0:s.docs,source:{originalSource:`{
|
||||
args: {
|
||||
displayName: 'Jane Doe',
|
||||
i18n: {
|
||||
heading: 'page.profile.heading'
|
||||
}
|
||||
}
|
||||
}`,...(t=(i=a.parameters)==null?void 0:i.docs)==null?void 0:t.source}}};const f=["WithPronoun","WithoutPronoun"];export{e as WithPronoun,a as WithoutPronoun,f as __namedExportsOrder,D as default};
|
|
@ -1,6 +0,0 @@
|
|||
import{D as s}from"./DisplayName-af3c6b6a.js";import"./utils-09ff0c0e.js";import"./lifecycle-96ebe68d.js";import"./index-9669f5df.js";import"./runtime-ea3b2d3b.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";const d={title:"Atoms/DisplayName",component:s,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?"}}},e={args:{displayName:"Jane Doe",pronoun:"she/her"}};var o,r,a;e.parameters={...e.parameters,docs:{...(o=e.parameters)==null?void 0:o.docs,source:{originalSource:`{
|
||||
args: {
|
||||
displayName: 'Jane Doe',
|
||||
pronoun: 'she/her'
|
||||
}
|
||||
}`,...(a=(r=e.parameters)==null?void 0:r.docs)==null?void 0:a.source}}};const h=["Plain"];export{e as Plain,h as __namedExportsOrder,d as default};
|
|
@ -1 +1 @@
|
|||
import{_ as h}from"./iframe-230dc4ac.js";import{e as d,R as o,r as a,f as E,A as R,H as x,D as y}from"./index-de2c9509.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=d;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 v(t);return new Promise(s=>{r.render(o.createElement(D,{callback:()=>s(null)},e))})},f=(e,t)=>{let r=n.get(e);r&&(r.unmount(),n.delete(e))},v=async e=>{let t=n.get(e);return t||(t=c.createRoot(e),n.set(e,t)),t},w={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={...w,...t==null?void 0:t.components},u=y;return new Promise((i,p)=>{h(()=>import("./index-efa6599f.js"),["./index-efa6599f.js","./index-51661169.js","./index-de2c9509.js","./iframe-230dc4ac.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=>{f(e)}}};export{S as DocsRenderer,w as defaultComponents};
|
||||
import{_ as h}from"./iframe-e37939d1.js";import{e as d,R as o,r as a,f as E,A as R,H as x,D as y}from"./index-6f701dea.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=d;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 v(t);return new Promise(s=>{r.render(o.createElement(D,{callback:()=>s(null)},e))})},f=(e,t)=>{let r=n.get(e);r&&(r.unmount(),n.delete(e))},v=async e=>{let t=n.get(e);return t||(t=c.createRoot(e),n.set(e,t)),t},w={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={...w,...t==null?void 0:t.components},u=y;return new Promise((i,p)=>{h(()=>import("./index-9b23ba78.js"),["./index-9b23ba78.js","./index-5fd49470.js","./index-6f701dea.js","./iframe-e37939d1.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=>{f(e)}}};export{S as DocsRenderer,w as defaultComponents};
|
|
@ -1 +0,0 @@
|
|||
.storybook-header{font-family:Nunito Sans,Helvetica Neue,Helvetica,Arial,sans-serif;border-bottom:1px solid rgba(0,0,0,.1);padding:15px 20px;display:flex;align-items:center;justify-content:space-between}.storybook-header svg{display:inline-block;vertical-align:top}.storybook-header h1{font-weight:700;font-size:20px;line-height:1;margin:6px 0 6px 10px;display:inline-block;vertical-align:top}.storybook-header button+button{margin-left:10px}.storybook-header .welcome{color:#333;font-size:14px;margin-right:10px}
|
|
@ -1 +0,0 @@
|
|||
import{a as S,n as j}from"./utils-09ff0c0e.js";import{a as v,l as M,b,f as $,p as C,m as D,d as p,j as F,i as w,k as h,r as I,t as A,h as z,n as T}from"./lifecycle-96ebe68d.js";import{S as W,i as q,b as k,e as N,t as y,g as P,c as E,a as H,m as L,d as V}from"./index-9669f5df.js";import{B}from"./Button-d8784d72.js";function R(m){let t,a,l,r;return t=new B({props:{size:"small",label:"Log in"}}),t.$on("click",m[1]),l=new B({props:{primary:!0,size:"small",label:"Sign up"}}),l.$on("click",m[3]),{c(){E(t.$$.fragment),a=M(),E(l.$$.fragment)},l(n){H(t.$$.fragment,n),a=D(n),H(l.$$.fragment,n)},m(n,c){L(t,n,c),w(n,a,c),L(l,n,c),r=!0},p:j,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&&p(a),V(t,n),V(l,n)}}}function G(m){let t,a,l,r=m[0].name+"",n,c,s,e,f;return e=new B({props:{size:"small",label:"Log out"}}),e.$on("click",m[2]),{c(){t=v("span"),a=A("Welcome, "),l=v("b"),n=A(r),c=A("!"),s=M(),E(e.$$.fragment),this.h()},l(i){t=b(i,"SPAN",{class:!0});var o=$(t);a=z(o,"Welcome, "),l=b(o,"B",{});var g=$(l);n=z(g,r),g.forEach(p),c=z(o,"!"),o.forEach(p),s=D(i),H(e.$$.fragment,i),this.h()},h(){F(t,"class","welcome")},m(i,o){w(i,t,o),h(t,a),h(t,l),h(l,n),h(t,c),w(i,s,o),L(e,i,o),f=!0},p(i,o){(!f||o&1)&&r!==(r=i[0].name+"")&&T(n,r)},i(i){f||(y(e.$$.fragment,i),f=!0)},o(i){k(e.$$.fragment,i),f=!1},d(i){i&&(p(t),p(s)),V(e,i)}}}function J(m){let t,a,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,s,e,f;const i=[G,R],o=[];function g(u,d){return u[0]?0:1}return s=g(m),e=o[s]=i[s](m),{c(){t=v("header"),a=v("div"),l=v("div"),l.innerHTML=r,n=M(),c=v("div"),e.c(),this.h()},l(u){t=b(u,"HEADER",{});var d=$(t);a=b(d,"DIV",{class:!0});var _=$(a);l=b(_,"DIV",{"data-svelte-h":!0}),C(l)!=="svelte-mhlgcu"&&(l.innerHTML=r),n=D(_),c=b(_,"DIV",{});var x=$(c);e.l(x),x.forEach(p),_.forEach(p),d.forEach(p),this.h()},h(){F(a,"class","storybook-header")},m(u,d){w(u,t,d),h(t,a),h(a,l),h(a,n),h(a,c),o[s].m(c,null),f=!0},p(u,[d]){let _=s;s=g(u),s===_?o[s].p(u,d):(P(),k(o[_],1,1,()=>{o[_]=null}),N(),e=o[s],e?e.p(u,d):(e=o[s]=i[s](u),e.c()),y(e,1),e.m(c,null))},i(u){f||(y(e),f=!0)},o(u){k(e),f=!1},d(u){u&&p(t),o[s].d()}}}function K(m,t,a){let{user:l=null}=t;const r=I();function n(e){r("login",e)}function c(e){r("logout",e)}function s(e){r("createAccount",e)}return m.$$set=e=>{"user"in e&&a(0,l=e.user)},[l,n,c,s]}class O extends W{constructor(t){super(),q(this,t,K,J,S,{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};
|
|
@ -1,7 +0,0 @@
|
|||
import{H as c}from"./Header-ea37f6f5.js";import"./utils-09ff0c0e.js";import"./lifecycle-96ebe68d.js";import"./index-9669f5df.js";import"./Button-d8784d72.js";const l={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: {
|
||||
user: {
|
||||
name: 'Jane Doe'
|
||||
}
|
||||
}
|
||||
}`,...(s=(o=e.parameters)==null?void 0:o.docs)==null?void 0:s.source}}};var t,n,m;r.parameters={...r.parameters,docs:{...(t=r.parameters)==null?void 0:t.docs,source:{originalSource:"{}",...(m=(n=r.parameters)==null?void 0:n.docs)==null?void 0:m.source}}};const L=["LoggedIn","LoggedOut"];export{e as LoggedIn,r as LoggedOut,L as __namedExportsOrder,l as default};
|
|
@ -1 +1 @@
|
|||
import{a as l}from"./utils-09ff0c0e.js";import{S as d,i as u,c as f,a as _,m as g,t as $,b as y,d as j}from"./index-9669f5df.js";import{I as P}from"./ImportProject-c6551493.js";import"./lifecycle-96ebe68d.js";import"./ZoomOut24-23fb22e7.js";import"./spread-8a54911c.js";import"./runtime-ea3b2d3b.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";function b(r){let e,o;return e=new P({props:{data:r[0]}}),{c(){f(e.$$.fragment)},l(t){_(e.$$.fragment,t)},m(t,a){g(e,t,a),o=!0},p(t,[a]){const s={};a&1&&(s.data=t[0]),e.$set(s)},i(t){o||($(e.$$.fragment,t),o=!0)},o(t){y(e.$$.fragment,t),o=!1},d(t){j(e,t)}}}function v(r,e,o){let{data:t=null}=e;return r.$$set=a=>{"data"in a&&o(0,t=a.data)},[t]}class p extends d{constructor(e){super(),u(this,e,v,b,l,{data:0})}}p.__docgen={version:3,name:"ImportProject.svelte",data:[{keywords:[],visibility:"public",description:"Data populated by SvelteKit",name:"data",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 E={title:"Pages/ImportProject",component:p,tags:["autodocs"]},n={};var i,m,c;n.parameters={...n.parameters,docs:{...(i=n.parameters)==null?void 0:i.docs,source:{originalSource:"{}",...(c=(m=n.parameters)==null?void 0:m.docs)==null?void 0:c.source}}};const K=["Plain"];export{n as Plain,K as __namedExportsOrder,E as default};
|
||||
import{a as l}from"./utils-09ff0c0e.js";import{S as d,i as u,c as f,b as _,m as g,a as $,t as y,d as j}from"./index-b180c43f.js";import{I as P}from"./ImportProject-43b48812.js";import"./lifecycle-16e1fb41.js";import"./ZoomOut24-a2398075.js";import"./spread-8a54911c.js";import"./runtime-ea3b2d3b.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";function b(r){let e,o;return e=new P({props:{data:r[0]}}),{c(){f(e.$$.fragment)},l(t){_(e.$$.fragment,t)},m(t,a){g(e,t,a),o=!0},p(t,[a]){const s={};a&1&&(s.data=t[0]),e.$set(s)},i(t){o||($(e.$$.fragment,t),o=!0)},o(t){y(e.$$.fragment,t),o=!1},d(t){j(e,t)}}}function v(r,e,o){let{data:t=null}=e;return r.$$set=a=>{"data"in a&&o(0,t=a.data)},[t]}class p extends d{constructor(e){super(),u(this,e,v,b,l,{data:0})}}p.__docgen={version:3,name:"ImportProject.svelte",data:[{keywords:[],visibility:"public",description:"Data populated by SvelteKit",name:"data",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 E={title:"Pages/ImportProject",component:p,tags:["autodocs"]},n={};var i,m,c;n.parameters={...n.parameters,docs:{...(i=n.parameters)==null?void 0:i.docs,source:{originalSource:"{}",...(c=(m=n.parameters)==null?void 0:m.docs)==null?void 0:c.source}}};const K=["Plain"];export{n as Plain,K as __namedExportsOrder,E as default};
|
|
@ -1 +1 @@
|
|||
import{I as m}from"./ImportProject-c6551493.js";import"./utils-09ff0c0e.js";import"./lifecycle-96ebe68d.js";import"./index-9669f5df.js";import"./ZoomOut24-23fb22e7.js";import"./spread-8a54911c.js";import"./runtime-ea3b2d3b.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";const P={title:"Templates/ImportProject",component:m,tags:["autodocs"]},o={};var r,t,e;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(e=(t=o.parameters)==null?void 0:t.docs)==null?void 0:e.source}}};const I=["Plain"];export{o as Plain,I as __namedExportsOrder,P as default};
|
||||
import{I as m}from"./ImportProject-43b48812.js";import"./utils-09ff0c0e.js";import"./lifecycle-16e1fb41.js";import"./index-b180c43f.js";import"./ZoomOut24-a2398075.js";import"./spread-8a54911c.js";import"./runtime-ea3b2d3b.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";const P={title:"Templates/ImportProject",component:m,tags:["autodocs"]},o={};var r,t,e;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(e=(t=o.parameters)==null?void 0:t.docs)==null?void 0:e.source}}};const I=["Plain"];export{o as Plain,I as __namedExportsOrder,P as default};
|
|
@ -1 +1 @@
|
|||
import{I as e}from"./ZoomOut24-23fb22e7.js";import"./utils-09ff0c0e.js";import"./lifecycle-96ebe68d.js";import"./index-9669f5df.js";import"./spread-8a54911c.js";const i={title:"Icons/Info16",component:e,tags:["autodocs"],argTypes:{fill:{control:"color"}}},o={};var r,t,a;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(a=(t=o.parameters)==null?void 0:t.docs)==null?void 0:a.source}}};const l=["Plain"];export{o as Plain,l as __namedExportsOrder,i as default};
|
||||
import{I as e}from"./ZoomOut24-a2398075.js";import"./utils-09ff0c0e.js";import"./lifecycle-16e1fb41.js";import"./index-b180c43f.js";import"./spread-8a54911c.js";const i={title:"Icons/Info16",component:e,tags:["autodocs"],argTypes:{fill:{control:"color"}}},o={};var r,t,a;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(a=(t=o.parameters)==null?void 0:t.docs)==null?void 0:a.source}}};const l=["Plain"];export{o as Plain,l as __namedExportsOrder,i as default};
|
1
assets/Login-c422d948.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{a as F,c as I}from"./utils-09ff0c0e.js";import{a as h,t as L,l as S,b as v,f as _,h as E,d as u,m as D,j as k,i as K,k as d,n as V}from"./lifecycle-16e1fb41.js";import{S as P,i as q,c as x,b as A,m as C,a as H,t as z,d as B}from"./index-b180c43f.js";import{$ as G}from"./runtime-ea3b2d3b.js";import{L as J}from"./LoginForm-a4fce076.js";function M(o){let s,e,l,r=o[3]("page.login.heading")+"",c,g,m,a=o[3]("page.login.intro")+"",b,y,f,p;return f=new J({props:{data:o[0],form:o[1],i18n:o[4],sb:o[2]}}),{c(){s=h("div"),e=h("div"),l=h("h1"),c=L(r),g=S(),m=h("p"),b=L(a),y=S(),x(f.$$.fragment),this.h()},l(t){s=v(t,"DIV",{class:!0});var n=_(s);e=v(n,"DIV",{class:!0});var i=_(e);l=v(i,"H1",{class:!0});var w=_(l);c=E(w,r),w.forEach(u),g=D(i),m=v(i,"P",{});var j=_(m);b=E(j,a),j.forEach(u),y=D(i),A(f.$$.fragment,i),i.forEach(u),n.forEach(u),this.h()},h(){k(l,"class","h1 font-bold"),k(e,"class","space-y-10"),k(s,"class","w-full max-w-md h-full mx-auto flex justify-center items-center py-10")},m(t,n){K(t,s,n),d(s,e),d(e,l),d(l,c),d(e,g),d(e,m),d(m,b),d(e,y),C(f,e,null),p=!0},p(t,[n]){(!p||n&8)&&r!==(r=t[3]("page.login.heading")+"")&&V(c,r),(!p||n&8)&&a!==(a=t[3]("page.login.intro")+"")&&V(b,a);const i={};n&1&&(i.data=t[0]),n&2&&(i.form=t[1]),n&4&&(i.sb=t[2]),f.$set(i)},i(t){p||(H(f.$$.fragment,t),p=!0)},o(t){z(f.$$.fragment,t),p=!1},d(t){t&&u(s),B(f)}}}function N(o,s,e){let l;I(o,G,a=>e(3,l=a));let{data:r={servers:{}}}=s,{form:c={servers:{}}}=s;const g={fields:{account:{label:"page.login.form.fields.account.label"},passphrase:{label:"page.login.form.fields.passphrase.label",placeholder:"page.login.form.fields.passphrase.placeholder"},server:{label:"page.login.form.fields.server.label"}},reset:"page.login.form.reset",submit:"page.login.form.submit",validation:{incorrect:"page.login.form.validation.incorrect",missing:"page.login.form.validation.missing"}};let{sb:m=""}=s;return o.$$set=a=>{"data"in a&&e(0,r=a.data),"form"in a&&e(1,c=a.form),"sb"in a&&e(2,m=a.sb)},[r,c,m,l,g]}class O extends P{constructor(s){super(),q(this,s,N,M,F,{data:0,form:1,sb:2})}}O.__docgen={version:3,name:"Login.svelte",data:[{keywords:[],visibility:"public",description:"PageData provided by SvelteKit.",name:"data",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}},{keywords:[],visibility:"public",description:"Form handling by SvelteKit",name:"form",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}},{keywords:[],visibility:"public",description:"Allow for linking stories in Storybook.",name:"sb",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:""}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};export{O as L};
|
|
@ -1 +0,0 @@
|
|||
import{a as F,c as I}from"./utils-09ff0c0e.js";import{a as b,t as j,l as E,b as v,f as _,h as S,d as u,m as V,j as k,i as q,k as c,n as D}from"./lifecycle-96ebe68d.js";import{S as x,i as A,c as C,a as H,m as K,t as P,b as z,d as B}from"./index-9669f5df.js";import{$ as G}from"./runtime-ea3b2d3b.js";import{L as J}from"./LoginForm-2f669677.js";function M(o){let s,e,n,r=o[2]("page.login.heading")+"",d,p,f,a=o[2]("page.login.intro")+"",h,y,m,g;return m=new J({props:{form:o[0],i18n:o[3],sb:o[1],servers:o[4]}}),{c(){s=b("div"),e=b("div"),n=b("h1"),d=j(r),p=E(),f=b("p"),h=j(a),y=E(),C(m.$$.fragment),this.h()},l(t){s=v(t,"DIV",{class:!0});var l=_(s);e=v(l,"DIV",{class:!0});var i=_(e);n=v(i,"H1",{class:!0});var w=_(n);d=S(w,r),w.forEach(u),p=V(i),f=v(i,"P",{});var L=_(f);h=S(L,a),L.forEach(u),y=V(i),H(m.$$.fragment,i),i.forEach(u),l.forEach(u),this.h()},h(){k(n,"class","h1 font-bold"),k(e,"class","space-y-10"),k(s,"class","w-full max-w-md h-full mx-auto flex justify-center items-center py-10")},m(t,l){q(t,s,l),c(s,e),c(e,n),c(n,d),c(e,p),c(e,f),c(f,h),c(e,y),K(m,e,null),g=!0},p(t,[l]){(!g||l&4)&&r!==(r=t[2]("page.login.heading")+"")&&D(d,r),(!g||l&4)&&a!==(a=t[2]("page.login.intro")+"")&&D(h,a);const i={};l&1&&(i.form=t[0]),l&2&&(i.sb=t[1]),m.$set(i)},i(t){g||(P(m.$$.fragment,t),g=!0)},o(t){z(m.$$.fragment,t),g=!1},d(t){t&&u(s),B(m)}}}function N(o,s,e){let n;I(o,G,a=>e(2,n=a));let{form:r=null}=s;const d={fields:{account:{label:"page.login.form.fields.account.label"},passphrase:{label:"page.login.form.fields.passphrase.label",placeholder:"page.login.form.fields.passphrase.placeholder"},server:{label:"page.login.form.fields.server.label"}},reset:"page.login.form.reset",submit:"page.login.form.submit",validation:{incorrect:"page.login.form.validation.incorrect",missing:"page.login.form.validation.missing"}};let{sb:p=""}=s;const f={1:"fig.fr33domlover.site",2:"grape.fr33domlover.site",3:"walnut.fr33domlover.site"};return o.$$set=a=>{"form"in a&&e(0,r=a.form),"sb"in a&&e(1,p=a.sb)},[r,p,n,d,f]}class O extends x{constructor(s){super(),A(this,s,N,M,F,{form:0,sb:1})}}O.__docgen={version:3,name:"Login.svelte",data:[{keywords:[],visibility:"public",description:"Form handling by SvelteKit",name:"form",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"},defaultValue:null},{keywords:[],visibility:"public",description:"Allow for linking stories in Storybook.",name:"sb",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:""}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};export{O as L};
|
|
@ -1,25 +0,0 @@
|
|||
import{a as v}from"./utils-09ff0c0e.js";import{S as x,i as b,c as j,a as S,m as L,t as h,b as k,d as I}from"./index-9669f5df.js";import{L as w}from"./Login-ef8ee154.js";import"./lifecycle-96ebe68d.js";import"./runtime-ea3b2d3b.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";import"./LoginForm-2f669677.js";function F(r){let n,o;return n=new w({props:{form:r[0]}}),{c(){j(n.$$.fragment)},l(e){S(n.$$.fragment,e)},m(e,t){L(n,e,t),o=!0},p(e,[t]){const c={};t&1&&(c.form=e[0]),n.$set(c)},i(e){o||(h(n.$$.fragment,e),o=!0)},o(e){k(n.$$.fragment,e),o=!1},d(e){I(n,e)}}}function P(r,n,o){let{form:e=null}=n;return r.$$set=t=>{"form"in t&&o(0,e=t.form)},[e]}class $ extends x{constructor(n){super(),b(this,n,P,F,v,{form:0})}}$.__docgen={version:3,name:"Login.svelte",data:[{keywords:[],visibility:"public",description:"Form handling by SvelteKit",name:"form",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 V={title:"Pages/Login",component:$,tags:["autodocs"],argTypes:{form:{controls:"object"}}},a={args:{form:{account:"jane.doe@domain.example",incorrect:!1,missing:!1}}},s={args:{form:{account:"",incorrect:!1,missing:!0}}},i={args:{form:{account:"jane.doe@domain.example",incorrect:!0,missing:!1}}};var m,l,p;a.parameters={...a.parameters,docs:{...(m=a.parameters)==null?void 0:m.docs,source:{originalSource:`{
|
||||
args: {
|
||||
form: {
|
||||
account: 'jane.doe@domain.example',
|
||||
incorrect: false,
|
||||
missing: false
|
||||
}
|
||||
}
|
||||
}`,...(p=(l=a.parameters)==null?void 0:l.docs)==null?void 0:p.source}}};var u,f,d;s.parameters={...s.parameters,docs:{...(u=s.parameters)==null?void 0:u.docs,source:{originalSource:`{
|
||||
args: {
|
||||
form: {
|
||||
account: '',
|
||||
incorrect: false,
|
||||
missing: true
|
||||
}
|
||||
}
|
||||
}`,...(d=(f=s.parameters)==null?void 0:f.docs)==null?void 0:d.source}}};var g,_,y;i.parameters={...i.parameters,docs:{...(g=i.parameters)==null?void 0:g.docs,source:{originalSource:`{
|
||||
args: {
|
||||
form: {
|
||||
account: 'jane.doe@domain.example',
|
||||
incorrect: true,
|
||||
missing: false
|
||||
}
|
||||
}
|
||||
}`,...(y=(_=i.parameters)==null?void 0:_.docs)==null?void 0:y.source}}};const z=["Plain","MissingInput","InvalidFormData"];export{i as InvalidFormData,s as MissingInput,a as Plain,z as __namedExportsOrder,V as default};
|
25
assets/Login.stories-823df1c1.js
Normal file
|
@ -0,0 +1,25 @@
|
|||
import{a as v}from"./utils-09ff0c0e.js";import{S as j,i as k,c as x,b as S,m as L,a as h,t as w,d as I}from"./index-b180c43f.js";import{L as P}from"./Login-c422d948.js";import"./lifecycle-16e1fb41.js";import"./runtime-ea3b2d3b.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";import"./LoginForm-a4fce076.js";import"./each-57bb632b.js";function D(r){let t,a;return t=new P({props:{data:r[0],form:r[1]}}),{c(){x(t.$$.fragment)},l(e){S(t.$$.fragment,e)},m(e,o){L(t,e,o),a=!0},p(e,[o]){const n={};o&1&&(n.data=e[0]),o&2&&(n.form=e[1]),t.$set(n)},i(e){a||(h(t.$$.fragment,e),a=!0)},o(e){w(t.$$.fragment,e),a=!1},d(e){I(t,e)}}}function F(r,t,a){let{data:e={servers:{}}}=t,{form:o=null}=t;return r.$$set=n=>{"data"in n&&a(0,e=n.data),"form"in n&&a(1,o=n.form)},[e,o]}class b extends j{constructor(t){super(),k(this,t,F,D,v,{data:0,form:1})}}b.__docgen={version:3,name:"Login.svelte",data:[{keywords:[],visibility:"public",description:"PageData provided by SvelteKit.",name:"data",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}},{keywords:[],visibility:"public",description:"Form handling by SvelteKit",name:"form",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 z={title:"Pages/Login",component:b,tags:["autodocs"],argTypes:{form:{controls:"object"}}},s={args:{form:{account:"jane.doe@domain.example",incorrect:!1,missing:!1}}},i={args:{form:{account:"",incorrect:!1,missing:!0}}},c={args:{form:{account:"jane.doe@domain.example",incorrect:!0,missing:!1}}};var m,l,d;s.parameters={...s.parameters,docs:{...(m=s.parameters)==null?void 0:m.docs,source:{originalSource:`{
|
||||
args: {
|
||||
form: {
|
||||
account: 'jane.doe@domain.example',
|
||||
incorrect: false,
|
||||
missing: false
|
||||
}
|
||||
}
|
||||
}`,...(d=(l=s.parameters)==null?void 0:l.docs)==null?void 0:d.source}}};var p,f,u;i.parameters={...i.parameters,docs:{...(p=i.parameters)==null?void 0:p.docs,source:{originalSource:`{
|
||||
args: {
|
||||
form: {
|
||||
account: '',
|
||||
incorrect: false,
|
||||
missing: true
|
||||
}
|
||||
}
|
||||
}`,...(u=(f=i.parameters)==null?void 0:f.docs)==null?void 0:u.source}}};var g,y,_;c.parameters={...c.parameters,docs:{...(g=c.parameters)==null?void 0:g.docs,source:{originalSource:`{
|
||||
args: {
|
||||
form: {
|
||||
account: 'jane.doe@domain.example',
|
||||
incorrect: true,
|
||||
missing: false
|
||||
}
|
||||
}
|
||||
}`,...(_=(y=c.parameters)==null?void 0:y.docs)==null?void 0:_.source}}};const A=["Plain","MissingInput","InvalidFormData"];export{c as InvalidFormData,i as MissingInput,s as Plain,A as __namedExportsOrder,z as default};
|
|
@ -1,4 +1,4 @@
|
|||
import{w as d,a as u}from"./chunk-6GSMXRCY-a387bb65.js";import{L as g}from"./Login-ef8ee154.js";import"./chunk-WFFRPTHA-ed72344b.js";import"./preview-errors-dde4324f.js";import"./index-356e4a49.js";import"./index-11d98b33.js";import"./utils-09ff0c0e.js";import"./lifecycle-96ebe68d.js";import"./index-9669f5df.js";import"./runtime-ea3b2d3b.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";import"./LoginForm-2f669677.js";const F={title:"Templates/Login",component:g,tags:["autodocs"],args:{sb:"Templates/Profile"},argTypes:{onSubmit:{action:"submit"},form:{controls:"object"},sb:{control:"radio",options:["Templates/Profile"]}},decorators:[d,u]},r={args:{form:{account:"jane.doe@domain.example",incorrect:!1,missing:!1}}},o={args:{form:{account:"",incorrect:!1,missing:!0}}},a={args:{form:{account:"jane.doe@domain.example",incorrect:!0,missing:!1}}};var e,s,n;r.parameters={...r.parameters,docs:{...(e=r.parameters)==null?void 0:e.docs,source:{originalSource:`{
|
||||
import{w as d,a as u}from"./chunk-6GSMXRCY-a387bb65.js";import{L as g}from"./Login-c422d948.js";import"./chunk-WFFRPTHA-ed72344b.js";import"./preview-errors-dde4324f.js";import"./index-356e4a49.js";import"./index-11d98b33.js";import"./utils-09ff0c0e.js";import"./lifecycle-16e1fb41.js";import"./index-b180c43f.js";import"./runtime-ea3b2d3b.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";import"./LoginForm-a4fce076.js";import"./each-57bb632b.js";const M={title:"Templates/Login",component:g,tags:["autodocs"],args:{sb:"Templates/Profile"},argTypes:{onSubmit:{action:"submit"},form:{controls:"object"},sb:{control:"radio",options:["Templates/Profile"]}},decorators:[d,u]},r={args:{form:{account:"jane.doe@domain.example",incorrect:!1,missing:!1}}},o={args:{form:{account:"",incorrect:!1,missing:!0}}},a={args:{form:{account:"jane.doe@domain.example",incorrect:!0,missing:!1}}};var e,s,n;r.parameters={...r.parameters,docs:{...(e=r.parameters)==null?void 0:e.docs,source:{originalSource:`{
|
||||
args: {
|
||||
form: {
|
||||
account: 'jane.doe@domain.example',
|
||||
|
@ -22,4 +22,4 @@ import{w as d,a as u}from"./chunk-6GSMXRCY-a387bb65.js";import{L as g}from"./Log
|
|||
missing: false
|
||||
}
|
||||
}
|
||||
}`,...(l=(p=a.parameters)==null?void 0:p.docs)==null?void 0:l.source}}};const M=["Plain","MissingInput","InvalidFormData"];export{a as InvalidFormData,o as MissingInput,r as Plain,M as __namedExportsOrder,F as default};
|
||||
}`,...(l=(p=a.parameters)==null?void 0:p.docs)==null?void 0:l.source}}};const _=["Plain","MissingInput","InvalidFormData"];export{a as InvalidFormData,o as MissingInput,r as Plain,_ as __namedExportsOrder,M as default};
|
1
assets/LoginForm-a4fce076.js
Normal file
|
@ -1,4 +1,4 @@
|
|||
import{w as c,a as f}from"./chunk-6GSMXRCY-a387bb65.js";import{L as d}from"./LoginForm-2f669677.js";import"./chunk-WFFRPTHA-ed72344b.js";import"./preview-errors-dde4324f.js";import"./index-356e4a49.js";import"./index-11d98b33.js";import"./utils-09ff0c0e.js";import"./lifecycle-96ebe68d.js";import"./index-9669f5df.js";import"./runtime-ea3b2d3b.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";const T={title:"Organisms/LoginForm",component:d,tags:["autodocs"],args:{sb:"Templates/Profile"},argTypes:{form:{controls:"object"},i18n:{controls:"object"},onSubmit:{action:"submit"},sb:{control:"radio",options:["Templates/Profile"]},servers:{controls:"object"}},decorators:[c,f]},e={args:{form:{account:"jane.doe@domain.example",incorrect:!1,missing:!1},i18n:{fields:{account:{label:"page.login.form.fields.account.label"},passphrase:{label:"page.login.form.fields.passphrase.label",placeholder:"page.login.form.fields.passphrase.placeholder"},server:{label:"page.login.form.fields.server.label"}},reset:"page.login.form.reset",submit:"page.login.form.submit",validation:{incorrect:"page.login.form.validation.incorrect",missing:"page.login.form.validation.missing"}},servers:[]}},a={args:{form:{account:"",incorrect:!1,missing:!0},i18n:{fields:{account:{label:"page.login.form.fields.account.label"},passphrase:{label:"page.login.form.fields.passphrase.label",placeholder:"page.login.form.fields.passphrase.placeholder"},server:{label:"page.login.form.fields.server.label"}},reset:"page.login.form.reset",submit:"page.login.form.submit",validation:{incorrect:"page.login.form.validation.incorrect",missing:"page.login.form.validation.missing"}},servers:[]}},n={args:{form:{account:"jane.doe@domain.example",incorrect:!0,missing:!1},i18n:{fields:{account:{label:"page.login.form.fields.account.label"},passphrase:{label:"page.login.form.fields.passphrase.label",placeholder:"page.login.form.fields.passphrase.placeholder"},server:{label:"page.login.form.fields.server.label"}},reset:"page.login.form.reset",submit:"page.login.form.submit",validation:{incorrect:"page.login.form.validation.incorrect",missing:"page.login.form.validation.missing"}},servers:[]}};var r,o,s;e.parameters={...e.parameters,docs:{...(r=e.parameters)==null?void 0:r.docs,source:{originalSource:`{
|
||||
import{w as c,a as f}from"./chunk-6GSMXRCY-a387bb65.js";import{L as d}from"./LoginForm-a4fce076.js";import"./chunk-WFFRPTHA-ed72344b.js";import"./preview-errors-dde4324f.js";import"./index-356e4a49.js";import"./index-11d98b33.js";import"./utils-09ff0c0e.js";import"./lifecycle-16e1fb41.js";import"./each-57bb632b.js";import"./index-b180c43f.js";import"./runtime-ea3b2d3b.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";const D={title:"Organisms/LoginForm",component:d,tags:["autodocs"],args:{sb:"Templates/Profile"},argTypes:{form:{controls:"object"},i18n:{controls:"object"},onSubmit:{action:"submit"},sb:{control:"radio",options:["Templates/Profile"]},servers:{controls:"object"}},decorators:[c,f]},e={args:{form:{account:"jane.doe@domain.example",incorrect:!1,missing:!1},i18n:{fields:{account:{label:"page.login.form.fields.account.label"},passphrase:{label:"page.login.form.fields.passphrase.label",placeholder:"page.login.form.fields.passphrase.placeholder"},server:{label:"page.login.form.fields.server.label"}},reset:"page.login.form.reset",submit:"page.login.form.submit",validation:{incorrect:"page.login.form.validation.incorrect",missing:"page.login.form.validation.missing"}},servers:[]}},a={args:{form:{account:"",incorrect:!1,missing:!0},i18n:{fields:{account:{label:"page.login.form.fields.account.label"},passphrase:{label:"page.login.form.fields.passphrase.label",placeholder:"page.login.form.fields.passphrase.placeholder"},server:{label:"page.login.form.fields.server.label"}},reset:"page.login.form.reset",submit:"page.login.form.submit",validation:{incorrect:"page.login.form.validation.incorrect",missing:"page.login.form.validation.missing"}},servers:[]}},n={args:{form:{account:"jane.doe@domain.example",incorrect:!0,missing:!1},i18n:{fields:{account:{label:"page.login.form.fields.account.label"},passphrase:{label:"page.login.form.fields.passphrase.label",placeholder:"page.login.form.fields.passphrase.placeholder"},server:{label:"page.login.form.fields.server.label"}},reset:"page.login.form.reset",submit:"page.login.form.submit",validation:{incorrect:"page.login.form.validation.incorrect",missing:"page.login.form.validation.missing"}},servers:[]}};var r,o,s;e.parameters={...e.parameters,docs:{...(r=e.parameters)==null?void 0:r.docs,source:{originalSource:`{
|
||||
args: {
|
||||
form: {
|
||||
account: 'jane.doe@domain.example',
|
||||
|
@ -56,7 +56,7 @@ import{w as c,a as f}from"./chunk-6GSMXRCY-a387bb65.js";import{L as d}from"./Log
|
|||
},
|
||||
servers: []
|
||||
}
|
||||
}`,...(t=(l=a.parameters)==null?void 0:l.docs)==null?void 0:t.source}}};var p,g,m;n.parameters={...n.parameters,docs:{...(p=n.parameters)==null?void 0:p.docs,source:{originalSource:`{
|
||||
}`,...(t=(l=a.parameters)==null?void 0:l.docs)==null?void 0:t.source}}};var p,m,g;n.parameters={...n.parameters,docs:{...(p=n.parameters)==null?void 0:p.docs,source:{originalSource:`{
|
||||
args: {
|
||||
form: {
|
||||
account: 'jane.doe@domain.example',
|
||||
|
@ -85,4 +85,4 @@ import{w as c,a as f}from"./chunk-6GSMXRCY-a387bb65.js";import{L as d}from"./Log
|
|||
},
|
||||
servers: []
|
||||
}
|
||||
}`,...(m=(g=n.parameters)==null?void 0:g.docs)==null?void 0:m.source}}};const D=["Plain","MissingInput","InvalidFormData"];export{n as InvalidFormData,a as MissingInput,e as Plain,D as __namedExportsOrder,T as default};
|
||||
}`,...(g=(m=n.parameters)==null?void 0:m.docs)==null?void 0:g.source}}};const M=["Plain","MissingInput","InvalidFormData"];export{n as InvalidFormData,a as MissingInput,e as Plain,M as __namedExportsOrder,D as default};
|
7
assets/MoreFilters.stories-08b8630d.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
import{a as $,c as j}from"./utils-09ff0c0e.js";import{a as _,t as k,l as w,b,f as g,h as M,m as T,d as f,j as p,i as F,k as d,n as E}from"./lifecycle-16e1fb41.js";import{S as O,i as S,c as C,b as P,m as q,a as B,t as D,d as N}from"./index-b180c43f.js";import{T as R}from"./ZoomOut24-a2398075.js";import{$ as U}from"./runtime-ea3b2d3b.js";import"./spread-8a54911c.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";function z(i){let s,t,r=i[1](i[0].submit)+"",n,a,o,l;return o=new R({props:{fill:"currentColor",class:"ms-4 self-center"}}),{c(){s=_("form"),t=_("button"),n=k(r),a=w(),C(o.$$.fragment),this.h()},l(e){s=b(e,"FORM",{class:!0});var m=g(s);t=b(m,"BUTTON",{type:!0,class:!0});var c=g(t);n=M(c,r),a=T(c),P(o.$$.fragment,c),c.forEach(f),m.forEach(f),this.h()},h(){p(t,"type","submit"),p(t,"class","flex submit text-surface-400"),p(s,"class","bg-surface-100 h-8 flex flex-col justify-center px-4")},m(e,m){F(e,s,m),d(s,t),d(t,n),d(t,a),q(o,t,null),l=!0},p(e,[m]){(!l||m&3)&&r!==(r=e[1](e[0].submit)+"")&&E(n,r)},i(e){l||(B(o.$$.fragment,e),l=!0)},o(e){D(o.$$.fragment,e),l=!1},d(e){e&&f(s),N(o)}}}function A(i,s,t){let r;j(i,U,a=>t(1,r=a));let{i18n:n={submit:""}}=s;return i.$$set=a=>{"i18n"in a&&t(0,n=a.i18n)},[n,r]}class v extends O{constructor(s){super(),S(this,s,A,z,$,{i18n:0})}}v.__docgen={version:3,name:"MoreFilters.svelte",data:[{keywords:[],visibility:"public",description:"Translation keys",name:"i18n",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const W={title:"Molecules/MoreFilters",component:v,tags:["autodocs"]},u={args:{i18n:{submit:"page.projects.form.fields.more_filters.submit"}}};var h,y,x;u.parameters={...u.parameters,docs:{...(h=u.parameters)==null?void 0:h.docs,source:{originalSource:`{
|
||||
args: {
|
||||
i18n: {
|
||||
submit: 'page.projects.form.fields.more_filters.submit'
|
||||
}
|
||||
}
|
||||
}`,...(x=(y=u.parameters)==null?void 0:y.docs)==null?void 0:x.source}}};const X=["Plain"];export{u as Plain,X as __namedExportsOrder,W as default};
|
|
@ -1 +1 @@
|
|||
import{N as e}from"./ZoomOut24-23fb22e7.js";import"./utils-09ff0c0e.js";import"./lifecycle-96ebe68d.js";import"./index-9669f5df.js";import"./spread-8a54911c.js";const n={title:"Icons/NorthStar24",component:e,tags:["autodocs"],argTypes:{fill:{control:"color"}}},o={};var r,t,a;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(a=(t=o.parameters)==null?void 0:t.docs)==null?void 0:a.source}}};const l=["Plain"];export{o as Plain,l as __namedExportsOrder,n as default};
|
||||
import{N as e}from"./ZoomOut24-a2398075.js";import"./utils-09ff0c0e.js";import"./lifecycle-16e1fb41.js";import"./index-b180c43f.js";import"./spread-8a54911c.js";const n={title:"Icons/NorthStar24",component:e,tags:["autodocs"],argTypes:{fill:{control:"color"}}},o={};var r,t,a;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(a=(t=o.parameters)==null?void 0:t.docs)==null?void 0:a.source}}};const l=["Plain"];export{o as Plain,l as __namedExportsOrder,n as default};
|
|
@ -1 +0,0 @@
|
|||
.storybook-page{font-family:Nunito Sans,Helvetica Neue,Helvetica,Arial,sans-serif;font-size:14px;line-height:24px;padding:48px 20px;margin:0 auto;max-width:600px;color:#333}.storybook-page h2{font-weight:700;font-size:32px;line-height:1;margin:0 0 4px;display:inline-block;vertical-align:top}.storybook-page p{margin:1em 0}.storybook-page a{text-decoration:none;color:#1ea7fd}.storybook-page ul{padding-left:30px;margin:1em 0}.storybook-page li{margin-bottom:8px}.storybook-page .tip{display:inline-block;border-radius:1em;font-size:11px;line-height:12px;font-weight:700;background:#e7fdd8;color:#66bf3c;padding:4px 12px;margin-right:10px;vertical-align:top}.storybook-page .tip-wrapper{font-size:13px;line-height:20px;margin-top:40px;margin-bottom:40px}.storybook-page .tip-wrapper svg{display:inline-block;height:12px;width:12px;margin-right:4px;vertical-align:top;margin-top:3px}.storybook-page .tip-wrapper svg path{fill:#1ea7fd}
|
8
assets/Pagination.stories-daecff6d.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
import{a as ht,c as xt}from"./utils-09ff0c0e.js";import{a as l,l as o,t as et,b as i,f as I,m as c,h as at,d as N,r as m,j as n,i as vt,k as a,n as nt}from"./lifecycle-16e1fb41.js";import{S as dt,i as gt,c as st,b as rt,m as lt,a as ot,t as it,d as ct}from"./index-b180c43f.js";import{C as _t,a as Ct}from"./ZoomOut24-a2398075.js";import{$ as yt}from"./runtime-ea3b2d3b.js";import"./spread-8a54911c.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";function $t(h){let t,r,f,b,u=h[1](h[0].previous)+"",P,M,x,J="1",O,v,K="2",R,d,Q="3",T,g,U="4",V,_,W="5",z,C,X="6",B,j,Y="…",D,y,Z="17",F,$,tt="18",G,p,w=h[1](h[0].next)+"",E,H,A,k;return f=new _t({props:{fill:"currentColor"}}),A=new Ct({props:{fill:"currentColor"}}),{c(){t=l("nav"),r=l("a"),st(f.$$.fragment),b=o(),P=et(u),M=o(),x=l("a"),x.textContent=J,O=o(),v=l("a"),v.textContent=K,R=o(),d=l("a"),d.textContent=Q,T=o(),g=l("a"),g.textContent=U,V=o(),_=l("a"),_.textContent=W,z=o(),C=l("a"),C.textContent=X,B=o(),j=l("span"),j.textContent=Y,D=o(),y=l("a"),y.textContent=Z,F=o(),$=l("a"),$.textContent=tt,G=o(),p=l("a"),E=et(w),H=o(),st(A.$$.fragment),this.h()},l(s){t=i(s,"NAV",{class:!0});var e=I(t);r=i(e,"A",{href:!0,class:!0});var S=I(r);rt(f.$$.fragment,S),b=c(S),P=at(S,u),S.forEach(N),M=c(e),x=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),m(x)!=="svelte-ak6ox3"&&(x.textContent=J),O=c(e),v=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),m(v)!=="svelte-10r4717"&&(v.textContent=K),R=c(e),d=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),m(d)!=="svelte-13dre0n"&&(d.textContent=Q),T=c(e),g=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),m(g)!=="svelte-v6bi1q"&&(g.textContent=U),V=c(e),_=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),m(_)!=="svelte-1c7ylf3"&&(_.textContent=W),z=c(e),C=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),m(C)!=="svelte-fk307f"&&(C.textContent=X),B=c(e),j=i(e,"SPAN",{"data-svelte-h":!0}),m(j)!=="svelte-fw8tqc"&&(j.textContent=Y),D=c(e),y=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),m(y)!=="svelte-ypj5a3"&&(y.textContent=Z),F=c(e),$=i(e,"A",{href:!0,class:!0,"data-svelte-h":!0}),m($)!=="svelte-ludw9t"&&($.textContent=tt),G=c(e),p=i(e,"A",{href:!0,class:!0});var q=I(p);E=at(q,w),H=c(q),rt(A.$$.fragment,q),q.forEach(N),e.forEach(N),this.h()},h(){n(r,"href","?page=-1"),n(r,"class","flex gap-2 text-primary-500"),n(x,"href","?page=1"),n(x,"class","text-surface-500"),n(v,"href","?page=2"),n(v,"class","text-surface-500"),n(d,"href","?page=3"),n(d,"class","text-surface-500"),n(g,"href","?page=4"),n(g,"class","bg-primary-500 text-white rounded h-8 w-8 flex justify-center items-center"),n(_,"href","?page=5"),n(_,"class","text-surface-500"),n(C,"href","?page=6"),n(C,"class","text-surface-500"),n(y,"href","?page=17"),n(y,"class","text-surface-500"),n($,"href","?page=18"),n($,"class","text-surface-500"),n(p,"href","?page=+1"),n(p,"class","flex gap-2 text-primary-500"),n(t,"class","flex gap-4 items-center justify-center")},m(s,e){vt(s,t,e),a(t,r),lt(f,r,null),a(r,b),a(r,P),a(t,M),a(t,x),a(t,O),a(t,v),a(t,R),a(t,d),a(t,T),a(t,g),a(t,V),a(t,_),a(t,z),a(t,C),a(t,B),a(t,j),a(t,D),a(t,y),a(t,F),a(t,$),a(t,G),a(t,p),a(p,E),a(p,H),lt(A,p,null),k=!0},p(s,[e]){(!k||e&3)&&u!==(u=s[1](s[0].previous)+"")&&nt(P,u),(!k||e&3)&&w!==(w=s[1](s[0].next)+"")&&nt(E,w)},i(s){k||(ot(f.$$.fragment,s),ot(A.$$.fragment,s),k=!0)},o(s){it(f.$$.fragment,s),it(A.$$.fragment,s),k=!1},d(s){s&&N(t),ct(f),ct(A)}}}function At(h,t,r){let f;xt(h,yt,u=>r(1,f=u));let{i18n:b={next:"",previous:""}}=t;return h.$$set=u=>{"i18n"in u&&r(0,b=u.i18n)},[b,f]}class mt extends dt{constructor(t){super(),gt(this,t,At,$t,ht,{i18n:0})}}mt.__docgen={version:3,name:"Pagination.svelte",data:[{keywords:[],visibility:"public",description:"Translation keys",name:"i18n",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const Nt={title:"Molecules/Pagination",component:mt,tags:["autodocs"]},L={args:{i18n:{next:"page.projects.nav.next",previous:"page.projects.nav.previous"}}};var ft,ut,pt;L.parameters={...L.parameters,docs:{...(ft=L.parameters)==null?void 0:ft.docs,source:{originalSource:`{
|
||||
args: {
|
||||
i18n: {
|
||||
next: 'page.projects.nav.next',
|
||||
previous: 'page.projects.nav.previous'
|
||||
}
|
||||
}
|
||||
}`,...(pt=(ut=L.parameters)==null?void 0:ut.docs)==null?void 0:pt.source}}};const Lt=["Plain"];export{L as Plain,Lt as __namedExportsOrder,Nt as default};
|
1
assets/Profile-00b2c7bb.js
Normal file
19
assets/Profile.stories-0708c72c.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
import{w as n,a as i}from"./chunk-6GSMXRCY-a387bb65.js";import{P as m}from"./Profile-00b2c7bb.js";import"./chunk-WFFRPTHA-ed72344b.js";import"./preview-errors-dde4324f.js";import"./index-356e4a49.js";import"./index-11d98b33.js";import"./utils-09ff0c0e.js";import"./lifecycle-16e1fb41.js";import"./index-b180c43f.js";import"./runtime-ea3b2d3b.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";import"./ZoomOut24-a2398075.js";import"./spread-8a54911c.js";import"./Avatar-dbcb87cd.js";import"./each-57bb632b.js";import"./BlockOrReport-64932439.js";import"./Created-2245d9b8.js";import"./DisplayName-dd14e727.js";const k={title:"Templates/Profile",component:m,tags:["autodocs"],args:{sb:"Templates/ImportProject"},argTypes:{onClick:{action:"click"},data:{controls:"object"},sb:{control:"radio",options:["Templates/ImportProject"]}},decorators:[n,i]},e={args:{data:{user:{avatar:"",created_at:new Date,created_at_formatted:function(){const r="en-US";return new Intl.DateTimeFormat(r).format(new Date)}(),created_with:"Anvil",display_name:"Jane Doe",instance:"domain.example",pronoun:"she/her",username:"jane_doe"}}}};var t,a,o;e.parameters={...e.parameters,docs:{...(t=e.parameters)==null?void 0:t.docs,source:{originalSource:`{
|
||||
args: {
|
||||
data: {
|
||||
user: {
|
||||
avatar: '',
|
||||
created_at: new Date(),
|
||||
created_at_formatted: function () {
|
||||
const locale = 'en-US';
|
||||
return new Intl.DateTimeFormat(locale).format(new Date());
|
||||
}(),
|
||||
created_with: 'Anvil',
|
||||
display_name: 'Jane Doe',
|
||||
instance: 'domain.example',
|
||||
pronoun: 'she/her',
|
||||
username: 'jane_doe'
|
||||
}
|
||||
}
|
||||
}
|
||||
}`,...(o=(a=e.parameters)==null?void 0:a.docs)==null?void 0:o.source}}};const y=["Plain"];export{e as Plain,y as __namedExportsOrder,k as default};
|
|
@ -1,19 +0,0 @@
|
|||
import{a as d}from"./utils-09ff0c0e.js";import{S as p,i as u,c as f,a as _,m as g,t as y,b as w,d as v}from"./index-9669f5df.js";import{P as $}from"./Profile-78582956.js";import"./lifecycle-96ebe68d.js";import"./runtime-ea3b2d3b.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";import"./ZoomOut24-23fb22e7.js";import"./spread-8a54911c.js";import"./Avatar-dac7a148.js";import"./BlockOrReport-360ad42f.js";import"./Created-4789a277.js";import"./DisplayName-af3c6b6a.js";function h(a){let t,n;return t=new $({props:{data:a[0]}}),{c(){f(t.$$.fragment)},l(e){_(t.$$.fragment,e)},m(e,o){g(t,e,o),n=!0},p(e,[o]){const s={};o&1&&(s.data=e[0]),t.$set(s)},i(e){n||(y(t.$$.fragment,e),n=!0)},o(e){w(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}function D(a,t,n){let{data:e=null}=t;return a.$$set=o=>{"data"in o&&n(0,e=o.data)},[e]}class l extends p{constructor(t){super(),u(this,t,D,h,d,{data:0})}}l.__docgen={version:3,name:"Profile.svelte",data:[{keywords:[],visibility:"public",description:"Data populated by SvelteKit",name:"data",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 C={title:"Pages/Profile",component:l,tags:["autodocs"],argTypes:{data:{controls:"object"}}},r={args:{data:{user:{avatar:"",created_at:new Date,created_at_formatted:function(){const a="en-US";return new Intl.DateTimeFormat(a).format(new Date)}(),created_with:"Anvil",display_name:"Jane Doe",instance:"domain.example",pronoun:"she/her",username:"jane_doe"}}}};var i,m,c;r.parameters={...r.parameters,docs:{...(i=r.parameters)==null?void 0:i.docs,source:{originalSource:`{
|
||||
args: {
|
||||
data: {
|
||||
user: {
|
||||
avatar: '',
|
||||
created_at: new Date(),
|
||||
created_at_formatted: function () {
|
||||
const locale = 'en-US';
|
||||
return new Intl.DateTimeFormat(locale).format(new Date());
|
||||
}(),
|
||||
created_with: 'Anvil',
|
||||
display_name: 'Jane Doe',
|
||||
instance: 'domain.example',
|
||||
pronoun: 'she/her',
|
||||
username: 'jane_doe'
|
||||
}
|
||||
}
|
||||
}
|
||||
}`,...(c=(m=r.parameters)==null?void 0:m.docs)==null?void 0:c.source}}};const E=["Plain"];export{r as Plain,E as __namedExportsOrder,C as default};
|
19
assets/Profile.stories-172670f2.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
import{a as p}from"./utils-09ff0c0e.js";import{S as d,i as u,c as f,b as _,m as g,a as y,t as w,d as v}from"./index-b180c43f.js";import{P as $}from"./Profile-00b2c7bb.js";import"./lifecycle-16e1fb41.js";import"./runtime-ea3b2d3b.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";import"./ZoomOut24-a2398075.js";import"./spread-8a54911c.js";import"./Avatar-dbcb87cd.js";import"./each-57bb632b.js";import"./BlockOrReport-64932439.js";import"./Created-2245d9b8.js";import"./DisplayName-dd14e727.js";function h(a){let t,n;return t=new $({props:{data:a[0]}}),{c(){f(t.$$.fragment)},l(e){_(t.$$.fragment,e)},m(e,o){g(t,e,o),n=!0},p(e,[o]){const s={};o&1&&(s.data=e[0]),t.$set(s)},i(e){n||(y(t.$$.fragment,e),n=!0)},o(e){w(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}function D(a,t,n){let{data:e=null}=t;return a.$$set=o=>{"data"in o&&n(0,e=o.data)},[e]}class l extends d{constructor(t){super(),u(this,t,D,h,p,{data:0})}}l.__docgen={version:3,name:"Profile.svelte",data:[{keywords:[],visibility:"public",description:"Data populated by SvelteKit",name:"data",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 E={title:"Pages/Profile",component:l,tags:["autodocs"],argTypes:{data:{controls:"object"}}},r={args:{data:{user:{avatar:"",created_at:new Date,created_at_formatted:function(){const a="en-US";return new Intl.DateTimeFormat(a).format(new Date)}(),created_with:"Anvil",display_name:"Jane Doe",instance:"domain.example",pronoun:"she/her",username:"jane_doe"}}}};var i,m,c;r.parameters={...r.parameters,docs:{...(i=r.parameters)==null?void 0:i.docs,source:{originalSource:`{
|
||||
args: {
|
||||
data: {
|
||||
user: {
|
||||
avatar: '',
|
||||
created_at: new Date(),
|
||||
created_at_formatted: function () {
|
||||
const locale = 'en-US';
|
||||
return new Intl.DateTimeFormat(locale).format(new Date());
|
||||
}(),
|
||||
created_with: 'Anvil',
|
||||
display_name: 'Jane Doe',
|
||||
instance: 'domain.example',
|
||||
pronoun: 'she/her',
|
||||
username: 'jane_doe'
|
||||
}
|
||||
}
|
||||
}
|
||||
}`,...(c=(m=r.parameters)==null?void 0:m.docs)==null?void 0:c.source}}};const K=["Plain"];export{r as Plain,K as __namedExportsOrder,E as default};
|
|
@ -1,19 +0,0 @@
|
|||
import{w as n,a as i}from"./chunk-6GSMXRCY-a387bb65.js";import{P as m}from"./Profile-78582956.js";import"./chunk-WFFRPTHA-ed72344b.js";import"./preview-errors-dde4324f.js";import"./index-356e4a49.js";import"./index-11d98b33.js";import"./utils-09ff0c0e.js";import"./lifecycle-96ebe68d.js";import"./index-9669f5df.js";import"./runtime-ea3b2d3b.js";import"./index-9ff358fd.js";import"./_commonjsHelpers-725317a4.js";import"./ZoomOut24-23fb22e7.js";import"./spread-8a54911c.js";import"./Avatar-dac7a148.js";import"./BlockOrReport-360ad42f.js";import"./Created-4789a277.js";import"./DisplayName-af3c6b6a.js";const b={title:"Templates/Profile",component:m,tags:["autodocs"],args:{sb:"Templates/ImportProject"},argTypes:{onClick:{action:"click"},data:{controls:"object"},sb:{control:"radio",options:["Templates/ImportProject"]}},decorators:[n,i]},e={args:{data:{user:{avatar:"",created_at:new Date,created_at_formatted:function(){const r="en-US";return new Intl.DateTimeFormat(r).format(new Date)}(),created_with:"Anvil",display_name:"Jane Doe",instance:"domain.example",pronoun:"she/her",username:"jane_doe"}}}};var t,a,o;e.parameters={...e.parameters,docs:{...(t=e.parameters)==null?void 0:t.docs,source:{originalSource:`{
|
||||
args: {
|
||||
data: {
|
||||
user: {
|
||||
avatar: '',
|
||||
created_at: new Date(),
|
||||
created_at_formatted: function () {
|
||||
const locale = 'en-US';
|
||||
return new Intl.DateTimeFormat(locale).format(new Date());
|
||||
}(),
|
||||
created_with: 'Anvil',
|
||||
display_name: 'Jane Doe',
|
||||
instance: 'domain.example',
|
||||
pronoun: 'she/her',
|
||||
username: 'jane_doe'
|
||||
}
|
||||
}
|
||||
}
|
||||
}`,...(o=(a=e.parameters)==null?void 0:a.docs)==null?void 0:o.source}}};const k=["Plain"];export{e as Plain,k as __namedExportsOrder,b as default};
|
|
@ -1 +1 @@
|
|||
import{R as a}from"./ZoomOut24-23fb22e7.js";import"./utils-09ff0c0e.js";import"./lifecycle-96ebe68d.js";import"./index-9669f5df.js";import"./spread-8a54911c.js";const n={title:"Icons/Repo24",component:a,tags:["autodocs"],argTypes:{fill:{control:"color"}}},o={};var r,t,e;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(e=(t=o.parameters)==null?void 0:t.docs)==null?void 0:e.source}}};const l=["Plain"];export{o as Plain,l as __namedExportsOrder,n as default};
|
||||
import{R as a}from"./ZoomOut24-a2398075.js";import"./utils-09ff0c0e.js";import"./lifecycle-16e1fb41.js";import"./index-b180c43f.js";import"./spread-8a54911c.js";const n={title:"Icons/Repo24",component:a,tags:["autodocs"],argTypes:{fill:{control:"color"}}},o={};var r,t,e;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(e=(t=o.parameters)==null?void 0:t.docs)==null?void 0:e.source}}};const l=["Plain"];export{o as Plain,l as __namedExportsOrder,n as default};
|
|
@ -1 +1 @@
|
|||
import{S as e}from"./ZoomOut24-23fb22e7.js";import"./utils-09ff0c0e.js";import"./lifecycle-96ebe68d.js";import"./index-9669f5df.js";import"./spread-8a54911c.js";const n={title:"Icons/Star16",component:e,tags:["autodocs"],argTypes:{fill:{control:"color"}}},o={};var r,t,a;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(a=(t=o.parameters)==null?void 0:t.docs)==null?void 0:a.source}}};const l=["Plain"];export{o as Plain,l as __namedExportsOrder,n as default};
|
||||
import{S as e}from"./ZoomOut24-a2398075.js";import"./utils-09ff0c0e.js";import"./lifecycle-16e1fb41.js";import"./index-b180c43f.js";import"./spread-8a54911c.js";const n={title:"Icons/Star16",component:e,tags:["autodocs"],argTypes:{fill:{control:"color"}}},o={};var r,t,a;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(a=(t=o.parameters)==null?void 0:t.docs)==null?void 0:a.source}}};const l=["Plain"];export{o as Plain,l as __namedExportsOrder,n as default};
|
|
@ -1,4 +1,6 @@
|
|||
import{j as e}from"./jsx-runtime-168a7803.js";import{M as o}from"./index-de2c9509.js";import{u as r}from"./index-51661169.js";import"./iframe-230dc4ac.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-725317a4.js";import"./index-11d98b33.js";import"./index-a04a29e8.js";import"./index-356e4a49.js";const s="Lorem ipsum dolor sit amet, consectetur";function i(t){const n=Object.assign({h1:"h1",p:"p",h2:"h2"},r(),t.components);return e.jsxs(e.Fragment,{children:[e.jsx(o,{title:"Typography"}),`
|
||||
import{j as e}from"./jsx-runtime-ea3d6ccb.js";import{M as o}from"./index-6f701dea.js";import{u as r}from"./index-5fd49470.js";import"./iframe-e37939d1.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-725317a4.js";import"./index-11d98b33.js";import"./index-a04a29e8.js";import"./index-356e4a49.js";const s="Lorem ipsum dolor sit amet, consectetur";function i(t){const n=Object.assign({h1:"h1",p:"p",h2:"h2"},r(),t.components);return e.jsxs(e.Fragment,{children:[`
|
||||
`,`
|
||||
`,e.jsx(o,{title:"Typography"}),`
|
||||
`,`
|
||||
`,e.jsx(n.h1,{id:"typography",children:"Typography"}),`
|
||||
`,e.jsx(n.p,{children:`Given that this project uses Tailwind via Skeleton.dev, the usual Storybook
|
|
@ -1 +1 @@
|
|||
import{U as e}from"./ZoomOut24-23fb22e7.js";import"./utils-09ff0c0e.js";import"./lifecycle-96ebe68d.js";import"./index-9669f5df.js";import"./spread-8a54911c.js";const l={title:"Icons/Upload16",component:e,tags:["autodocs"],argTypes:{fill:{control:"color"}}},o={};var r,t,a;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(a=(t=o.parameters)==null?void 0:t.docs)==null?void 0:a.source}}};const n=["Plain"];export{o as Plain,n as __namedExportsOrder,l as default};
|
||||
import{U as e}from"./ZoomOut24-a2398075.js";import"./utils-09ff0c0e.js";import"./lifecycle-16e1fb41.js";import"./index-b180c43f.js";import"./spread-8a54911c.js";const l={title:"Icons/Upload16",component:e,tags:["autodocs"],argTypes:{fill:{control:"color"}}},o={};var r,t,a;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(a=(t=o.parameters)==null?void 0:t.docs)==null?void 0:a.source}}};const n=["Plain"];export{o as Plain,n as __namedExportsOrder,l as default};
|
|
@ -1 +1 @@
|
|||
import{W as T,W as e,a as h}from"./index-de2c9509.js";import"./iframe-230dc4ac.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-6f701dea.js";import"./iframe-e37939d1.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};
|
Before Width: | Height: | Size: 41 KiB |
Before Width: | Height: | Size: 456 KiB |
Before Width: | Height: | Size: 6 KiB |
|
@ -1,15 +0,0 @@
|
|||
<svg width="33" height="32" viewBox="0 0 33 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_10031_177575)">
|
||||
<mask id="mask0_10031_177575" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="4" width="33" height="25">
|
||||
<path d="M32.5034 4.00195H0.503906V28.7758H32.5034V4.00195Z" fill="white"/>
|
||||
</mask>
|
||||
<g mask="url(#mask0_10031_177575)">
|
||||
<path d="M27.5928 6.20817C25.5533 5.27289 23.3662 4.58382 21.0794 4.18916C21.0378 4.18154 20.9962 4.20057 20.9747 4.23864C20.6935 4.73863 20.3819 5.3909 20.1637 5.90358C17.7042 5.53558 15.2573 5.53558 12.8481 5.90358C12.6299 5.37951 12.307 4.73863 12.0245 4.23864C12.003 4.20184 11.9614 4.18281 11.9198 4.18916C9.63431 4.58255 7.44721 5.27163 5.40641 6.20817C5.38874 6.21578 5.3736 6.22848 5.36355 6.24497C1.21508 12.439 0.078646 18.4809 0.636144 24.4478C0.638667 24.477 0.655064 24.5049 0.677768 24.5227C3.41481 26.5315 6.06609 27.7511 8.66815 28.5594C8.70979 28.5721 8.75392 28.5569 8.78042 28.5226C9.39594 27.6826 9.94461 26.7968 10.4151 25.8653C10.4428 25.8107 10.4163 25.746 10.3596 25.7244C9.48927 25.3945 8.66058 24.9922 7.86343 24.5354C7.80038 24.4986 7.79533 24.4084 7.85333 24.3653C8.02108 24.2397 8.18888 24.109 8.34906 23.977C8.37804 23.9529 8.41842 23.9478 8.45249 23.963C13.6894 26.3526 19.359 26.3526 24.5341 23.963C24.5682 23.9465 24.6086 23.9516 24.6388 23.9757C24.799 24.1077 24.9668 24.2397 25.1358 24.3653C25.1938 24.4084 25.19 24.4986 25.127 24.5354C24.3298 25.0011 23.5011 25.3945 22.6296 25.7232C22.5728 25.7447 22.5476 25.8107 22.5754 25.8653C23.0559 26.7955 23.6046 27.6812 24.2087 28.5213C24.234 28.5569 24.2794 28.5721 24.321 28.5594C26.9357 27.7511 29.5869 26.5315 32.324 24.5227C32.348 24.5049 32.3631 24.4783 32.3656 24.4491C33.0328 17.5506 31.2481 11.5584 27.6344 6.24623C27.6256 6.22848 27.6105 6.21578 27.5928 6.20817ZM11.1971 20.8146C9.62043 20.8146 8.32129 19.3679 8.32129 17.5913C8.32129 15.8146 9.59523 14.368 11.1971 14.368C12.8115 14.368 14.0981 15.8273 14.0729 17.5913C14.0729 19.3679 12.7989 20.8146 11.1971 20.8146ZM21.8299 20.8146C20.2533 20.8146 18.9541 19.3679 18.9541 17.5913C18.9541 15.8146 20.228 14.368 21.8299 14.368C23.4444 14.368 24.7309 15.8273 24.7057 17.5913C24.7057 19.3679 23.4444 20.8146 21.8299 20.8146Z" fill="#5865F2"/>
|
||||
</g>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_10031_177575">
|
||||
<rect width="31.9995" height="32" fill="white" transform="translate(0.5)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
Before Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 27 KiB |
1
assets/each-57bb632b.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{t as z,a as B}from"./index-b180c43f.js";import{r as C}from"./utils-09ff0c0e.js";function G(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}function D(n,d){z(n,1,1,()=>{d.delete(n.key)})}function H(n,d){n.f(),D(n,d)}function I(n,d,x,S,A,g,o,j,p,k,a,q){let i=n.length,c=g.length,f=i;const u={};for(;f--;)u[n[f].key]=f;const h=[],w=new Map,m=new Map,_=[];for(f=c;f--;){const e=q(A,g,f),s=x(e);let t=o.get(s);t?S&&_.push(()=>t.p(e,d)):(t=k(s,e),t.c()),w.set(s,h[f]=t),s in u&&m.set(s,Math.abs(f-u[s]))}const M=new Set,v=new Set;function y(e){B(e,1),e.m(j,a),o.set(e.key,e),a=e.first,c--}for(;i&&c;){const e=h[c-1],s=n[i-1],t=e.key,l=s.key;e===s?(a=e.first,i--,c--):w.has(l)?!o.has(t)||M.has(t)?y(e):v.has(l)?i--:m.get(t)>m.get(l)?(v.add(t),y(e)):(M.add(l),i--):(p(s,o),i--)}for(;i--;){const e=n[i];w.has(e.key)||p(e,o)}for(;c;)y(h[c-1]);return C(_),h}export{G as e,H as f,D as o,I as u};
|
|
@ -1 +1 @@
|
|||
const e={import_project:{form:{avatar:"Avatar",components:"Components",fields:{avatar:{label:"Upload image"},description:{label:"Description",placeholder:"Describe the project in less than 100 characters…"},issues:{label:"Issues"},name:{error:"This field is required",label:"Name",placeholder:"Name of the project…"},pr:{label:"Pull Requests"},repository:{hint:"optional: import from git repo",label:"Repository",placeholder:"url of git repository…"}},submit:"Create project"},heading:"Create project",intro:"Add a new F2 project to Anvil."},login:{form:{fields:{account:{label:"Account name"},passphrase:{label:"Passphrase",placeholder:"password"},server:{label:"F2 server"}},reset:"Reset passphrase",submit:"Log in",validation:{incorrect:"Account or password wrong.",missing:"The account field is required."}},heading:"Log in",intro:"To use Anvil with your F2 account, fill in your credentials."},profile:{activities:{block_or_report:"{blockElementOpen}block{blockElementClose} or {reportElementOpen}report{reportElementClose}",like:""},heading:"Profile for",history:{activities:{setup:{description:"The F2 account @{username}@{instance} was successfully set up within {created_with}",summary:"account set up"}},heading:"Activities"},projects:{add_or_import:"{addElementOpen}Add a project{addElementClose} or {importElementOpen}import a project{importElementClose}.",empty:"No projects added yet.",heading:"Projects"}},welcome:"Welcome to Anvil!"},o={page:e};export{o as default,e as page};
|
||||
const e={import_project:{form:{avatar:"Avatar",components:"Components",fields:{avatar:{label:"Upload image"},description:{label:"Description",placeholder:"Describe the project in less than 100 characters…"},issues:{label:"Issues"},name:{error:"This field is required",label:"Name",placeholder:"Name of the project…"},pr:{label:"Pull Requests"},repository:{hint:"optional: import from git repo",label:"Repository",placeholder:"url of git repository…"}},submit:"Create project"},heading:"Create project",intro:"Add a new F2 project to Anvil."},login:{form:{fields:{account:{label:"Account name"},passphrase:{label:"Passphrase",placeholder:"password"},server:{label:"F2 server"}},reset:"Reset passphrase",submit:"Log in",validation:{incorrect:"Account or password wrong.",missing:"The account field is required."}},heading:"Log in",intro:"To use Anvil with your F2 account, fill in your credentials."},profile:{activities:{block_or_report:"{blockElementOpen}block{blockElementClose} or {reportElementOpen}report{reportElementClose}",like:""},heading:"Profile for",history:{activities:{setup:{description:"The F2 account @{username}@{instance} was successfully set up within {created_with}",summary:"account set up"}},heading:"Activities"},projects:{add_or_import:"{addElementOpen}Add a project{addElementClose} or {importElementOpen}import a project{importElementClose}.",empty:"No projects added yet.",heading:"Projects"}},projects:{file_table:{updated:"Updated {relativeTime}"},form:{fields:{more_filters:{submit:"More Filters"},projects:{submit:"My projects"},search:{placeholder:"Search or filter",submit:"Submit"},starred:{submit:"Starred"}}},nav:{next:"Next",previous:"Previous"},table:{heading:{last_updated:"Last updated",name:"Name"}}},welcome:"Welcome to Anvil!"},t={page:e};export{t as default,e as page};
|
|
@ -1,5 +0,0 @@
|
|||
import{a as Y,b as j}from"./utils-09ff0c0e.js";import{e as _,i as O,d as v,o as K,w}from"./lifecycle-96ebe68d.js";import{S as B,i as L,b as d,e as E,t as m,g as R,f as M,c as y,a as T,m as h,d as g}from"./index-9669f5df.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=j(l,a[c]);return{props:l}}return r&&(e=w(r,f(s)),s[8](e)),{c(){e&&y(e.$$.fragment),n=_()},l(t){e&&T(e.$$.fragment,t),n=_()},m(t,o){e&&h(e,t,o),O(t,n,o),i=!0},p(t,o){if(o&2&&r!==(r=t[1])){if(e){R();const l=e;d(l.$$.fragment,1,0,()=>{g(l,1)}),E()}r?(e=w(r,f(t,o)),t[8](e),y(e.$$.fragment),m(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&&m(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){t&&v(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=j(l,a[c]);return{props:l}}return r&&(e=w(r,f(s)),s[7](e)),{c(){e&&y(e.$$.fragment),n=_()},l(t){e&&T(e.$$.fragment,t),n=_()},m(t,o){e&&h(e,t,o),O(t,n,o),i=!0},p(t,o){if(o&1&&r!==(r=t[0].Component)){if(e){R();const l=e;d(l.$$.fragment,1,0,()=>{g(l,1)}),E()}r?(e=w(r,f(t,o)),t[7](e),y(e.$$.fragment),m(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&&m(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){t&&v(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=j(l,a[c]);return{props:l}}return r&&(e=w(r,f(s)),s[6](e)),{c(){e&&y(e.$$.fragment),n=_()},l(t){e&&T(e.$$.fragment,t),n=_()},m(t,o){e&&h(e,t,o),O(t,n,o),i=!0},p(t,o){if(o&2&&r!==(r=t[1])){if(e){R();const l=e;d(l.$$.fragment,1,0,()=>{g(l,1)}),E()}r?(e=w(r,f(t,o)),t[6](e),y(e.$$.fragment),m(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&&m(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){t&&v(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=_()},l(o){n.l(o),i=_()},m(o,l){f[e].m(o,l),O(o,i,l),a=!0},p(o,[l]){let c=e;e=t(o),e===c?f[e].p(o,l):(R(),d(f[c],1,1,()=>{f[c]=null}),E(),n=f[e],n?n.p(o,l):(n=f[e]=r[e](o),n.c()),m(n,1),n.m(i.parentNode,i))},i(o){a||(m(n),a=!0)},o(o){d(n),a=!1},d(o){o&&v(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){M[p?"unshift":"push"](()=>{t=p,n(3,t)})}function S(p){M[p?"unshift":"push"](()=>{o=p,n(4,o)})}function D(p){M[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 B{constructor(e){super(),L(this,e,J,H,Y,{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){T(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||(m(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?
|
||||
Use "() => ({ Component: YourComponent, props: {} })"
|
||||
when defining the story.
|
||||
`}),s.$$set=u=>{"name"in u&&n(4,i=u.name),"kind"in u&&n(5,a=u.kind),"storyFn"in u&&n(6,r=u.storyFn),"showError"in u&&n(7,f=u.showError),"storyContext"in u&&n(8,t=u.storyContext)},s.$$.update=()=>{s.$$.dirty&64&&n(0,{Component:o,props:l={},on:c}=D(r),o,(n(1,l),n(6,r)),(n(2,c),n(6,r)))},[o,l,c,p,i,a,r,f,t]}class V extends B{constructor(e){super(),L(this,e,X,Q,Y,{name:4,kind:5,storyFn:6,showError:7,storyContext:8})}}V.__docgen={version:3,name:"PreviewRender.svelte",data:[{visibility:"public",description:null,keywords:[],name:"name",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"kind",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"storyFn",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"showError",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"storyContext",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const{addons:Z,sanitizeStoryContextUpdate:$}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:x}=__STORYBOOK_MODULE_CORE_EVENTS__;function I(s){return s&&typeof s=="object"&&"default"in s?s.default:s}function N(s,e,n){let i=I(e),a=n&&I(n),r;return!i||Object.keys(i).length===0?r={Component:s.component}:i.Component?r=i:r={Component:i},a?{Component:A,props:{...a,decorator:r}}:r}function ie(s,e){return e.reduce((n,i)=>a=>{let r,f=i(t=>(r=n({...a,...$(t)}),r),a);return r||(r=n(a)),f===r?r:N(a,f,r)},n=>N(n,s(n)))}var C=new Map;function P(s){C.has(s)&&(C.get(s).$destroy(),s.innerHTML="",C.delete(s))}var U=new Set;Z.getChannel().on(x,({storyId:s})=>{U.add(s)});function se({storyFn:s,kind:e,name:n,showMain:i,showError:a,storyContext:r,forceRemount:f},t){let o=C.get(t),l=f;if(U.has(r.id)&&(l=!0,U.delete(r.id)),l&&P(t),!o||l){let c=new V({target:t,props:{storyFn:s,storyContext:r,name:n,kind:e,showError:a}});C.set(t,c)}else o.$set({storyFn:s,storyContext:r,name:n,kind:e,showError:a});return i(),()=>{P(t)}}var le=(s,e)=>{let{id:n,component:i}=e;if(!i)throw new Error(`Unable to render story ${n} as the component annotation is missing from the default export`);return{Component:i,props:s}},ae={renderer:"svelte"};export{ie as applyDecorators,ae as parameters,le as render,se as renderToCanvas};
|
5
assets/entry-preview-b99be3f3.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
import{a as Y,b as w}from"./utils-09ff0c0e.js";import{e as _,i as v,d as E,o as K,u as k}from"./lifecycle-16e1fb41.js";import{S as B,i as L,t as d,e as R,a as m,g as T,f as U,c as y,b as D,m as h,d as g}from"./index-b180c43f.js";import{g as b,a as C}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={};for(let c=0;c<a.length;c+=1)l=w(l,a[c]);return o!==void 0&&o&4&&(l=w(l,b(a,[C(t[2])]))),{props:l}}return r&&(e=k(r,f(s)),s[8](e)),{c(){e&&y(e.$$.fragment),n=_()},l(t){e&&D(e.$$.fragment,t),n=_()},m(t,o){e&&h(e,t,o),v(t,n,o),i=!0},p(t,o){if(o&2&&r!==(r=t[1])){if(e){T();const l=e;d(l.$$.fragment,1,0,()=>{g(l,1)}),R()}r?(e=k(r,f(t,o)),t[8](e),y(e.$$.fragment),m(e.$$.fragment,1),h(e,n.parentNode,n)):e=null}else if(r){const l=o&4?b(a,[C(t[2])]):{};e.$set(l)}},i(t){i||(e&&m(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){t&&E(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}};for(let c=0;c<a.length;c+=1)l=w(l,a[c]);return o!==void 0&&o&1&&(l=w(l,b(a,[C(t[0].props)]))),{props:l}}return r&&(e=k(r,f(s)),s[7](e)),{c(){e&&y(e.$$.fragment),n=_()},l(t){e&&D(e.$$.fragment,t),n=_()},m(t,o){e&&h(e,t,o),v(t,n,o),i=!0},p(t,o){if(o&1&&r!==(r=t[0].Component)){if(e){T();const l=e;d(l.$$.fragment,1,0,()=>{g(l,1)}),R()}r?(e=k(r,f(t,o)),t[7](e),y(e.$$.fragment),m(e.$$.fragment,1),h(e,n.parentNode,n)):e=null}else if(r){const l=o&1?b(a,[C(t[0].props)]):{};o&1038&&(l.$$scope={dirty:o,ctx:t}),e.$set(l)}},i(t){i||(e&&m(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){t&&E(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={};for(let c=0;c<a.length;c+=1)l=w(l,a[c]);return o!==void 0&&o&4&&(l=w(l,b(a,[C(t[2])]))),{props:l}}return r&&(e=k(r,f(s)),s[6](e)),{c(){e&&y(e.$$.fragment),n=_()},l(t){e&&D(e.$$.fragment,t),n=_()},m(t,o){e&&h(e,t,o),v(t,n,o),i=!0},p(t,o){if(o&2&&r!==(r=t[1])){if(e){T();const l=e;d(l.$$.fragment,1,0,()=>{g(l,1)}),R()}r?(e=k(r,f(t,o)),t[6](e),y(e.$$.fragment),m(e.$$.fragment,1),h(e,n.parentNode,n)):e=null}else if(r){const l=o&4?b(a,[C(t[2])]):{};e.$set(l)}},i(t){i||(e&&m(e.$$.fragment,t),i=!0)},o(t){e&&d(e.$$.fragment,t),i=!1},d(t){t&&E(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=_()},l(o){n.l(o),i=_()},m(o,l){f[e].m(o,l),v(o,i,l),a=!0},p(o,[l]){let c=e;e=t(o),e===c?f[e].p(o,l):(T(),d(f[c],1,1,()=>{f[c]=null}),R(),n=f[e],n?n.p(o,l):(n=f[e]=r[e](o),n.c()),m(n,1),n.m(i.parentNode,i))},i(o){a||(m(n),a=!0)},o(o){d(n),a=!1},d(o){o&&E(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){U[p?"unshift":"push"](()=>{t=p,n(3,t)})}function O(p){U[p?"unshift":"push"](()=>{o=p,n(4,o)})}function F(p){U[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,O,F]}class A extends B{constructor(e){super(),L(this,e,J,H,Y,{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){D(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||(m(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(),O=!0;function F(u){return O?(O=!1,{Component:o,props:l,on:c}):u()}const p=Object.fromEntries(Object.entries(t.argTypes).filter(([u,M])=>M.action&&l[u]!=null).map(([u,M])=>[M.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?
|
||||
Use "() => ({ Component: YourComponent, props: {} })"
|
||||
when defining the story.
|
||||
`}),s.$$set=u=>{"name"in u&&n(4,i=u.name),"kind"in u&&n(5,a=u.kind),"storyFn"in u&&n(6,r=u.storyFn),"showError"in u&&n(7,f=u.showError),"storyContext"in u&&n(8,t=u.storyContext)},s.$$.update=()=>{s.$$.dirty&64&&n(0,{Component:o,props:l={},on:c}=F(r),o,(n(1,l),n(6,r)),(n(2,c),n(6,r)))},[o,l,c,p,i,a,r,f,t]}class V extends B{constructor(e){super(),L(this,e,X,Q,Y,{name:4,kind:5,storyFn:6,showError:7,storyContext:8})}}V.__docgen={version:3,name:"PreviewRender.svelte",data:[{visibility:"public",description:null,keywords:[],name:"name",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"kind",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"storyFn",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"showError",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}},{visibility:"public",description:null,keywords:[],name:"storyContext",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"any",type:"any"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};const{addons:Z,sanitizeStoryContextUpdate:$}=__STORYBOOK_MODULE_PREVIEW_API__,{RESET_STORY_ARGS:x}=__STORYBOOK_MODULE_CORE_EVENTS__;function I(s){return s&&typeof s=="object"&&"default"in s?s.default:s}function N(s,e,n){let i=I(e),a=n&&I(n),r;return!i||Object.keys(i).length===0?r={Component:s.component}:i.Component?r=i:r={Component:i},a?{Component:A,props:{...a,decorator:r}}:r}function ie(s,e){return e.reduce((n,i)=>a=>{let r,f=i(t=>(r=n({...a,...$(t)}),r),a);return r||(r=n(a)),f===r?r:N(a,f,r)},n=>N(n,s(n)))}var S=new Map;function P(s){S.has(s)&&(S.get(s).$destroy(),s.innerHTML="",S.delete(s))}var j=new Set;Z.getChannel().on(x,({storyId:s})=>{j.add(s)});function se({storyFn:s,kind:e,name:n,showMain:i,showError:a,storyContext:r,forceRemount:f},t){let o=S.get(t),l=f;if(j.has(r.id)&&(l=!0,j.delete(r.id)),l&&P(t),!o||l){let c=new V({target:t,props:{storyFn:s,storyContext:r,name:n,kind:e,showError:a}});S.set(t,c)}else o.$set({storyFn:s,storyContext:r,name:n,kind:e,showError:a});return i(),()=>{P(t)}}var le=(s,e)=>{let{id:n,component:i}=e;if(!i)throw new Error(`Unable to render story ${n} as the component annotation is missing from the default export`);return{Component:i,props:s}},ae={renderer:"svelte"};export{ie as applyDecorators,ae as parameters,le as render,se as renderToCanvas};
|
Before Width: | Height: | Size: 43 KiB |
|
@ -1,3 +0,0 @@
|
|||
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M16.0001 0C7.16466 0 0 7.17472 0 16.0256C0 23.1061 4.58452 29.1131 10.9419 31.2322C11.7415 31.3805 12.0351 30.8845 12.0351 30.4613C12.0351 30.0791 12.0202 28.8167 12.0133 27.4776C7.56209 28.447 6.62283 25.5868 6.62283 25.5868C5.89499 23.7345 4.8463 23.2419 4.8463 23.2419C3.39461 22.2473 4.95573 22.2678 4.95573 22.2678C6.56242 22.3808 7.40842 23.9192 7.40842 23.9192C8.83547 26.3691 11.1514 25.6609 12.0645 25.2514C12.2081 24.2156 12.6227 23.5087 13.0803 23.1085C9.52648 22.7032 5.7906 21.3291 5.7906 15.1886C5.7906 13.4389 6.41563 12.0094 7.43916 10.8871C7.27303 10.4834 6.72537 8.85349 7.59415 6.64609C7.59415 6.64609 8.93774 6.21539 11.9953 8.28877C13.2716 7.9337 14.6404 7.75563 16.0001 7.74953C17.3599 7.75563 18.7297 7.9337 20.0084 8.28877C23.0623 6.21539 24.404 6.64609 24.404 6.64609C25.2749 8.85349 24.727 10.4834 24.5608 10.8871C25.5868 12.0094 26.2075 13.4389 26.2075 15.1886C26.2075 21.3437 22.4645 22.699 18.9017 23.0957C19.4756 23.593 19.9869 24.5683 19.9869 26.0634C19.9869 28.2077 19.9684 29.9334 19.9684 30.4613C19.9684 30.8877 20.2564 31.3874 21.0674 31.2301C27.4213 29.1086 32 23.1037 32 16.0256C32 7.17472 24.8364 0 16.0001 0ZM5.99257 22.8288C5.95733 22.9084 5.83227 22.9322 5.71834 22.8776C5.60229 22.8253 5.53711 22.7168 5.57474 22.6369C5.60918 22.5549 5.7345 22.5321 5.85029 22.587C5.9666 22.6393 6.03284 22.7489 5.99257 22.8288ZM6.7796 23.5321C6.70329 23.603 6.55412 23.5701 6.45291 23.4581C6.34825 23.3464 6.32864 23.197 6.40601 23.125C6.4847 23.0542 6.62937 23.0874 6.73429 23.1991C6.83895 23.3121 6.85935 23.4605 6.7796 23.5321ZM7.31953 24.4321C7.2215 24.5003 7.0612 24.4363 6.96211 24.2938C6.86407 24.1513 6.86407 23.9804 6.96422 23.9119C7.06358 23.8435 7.2215 23.905 7.32191 24.0465C7.41968 24.1914 7.41968 24.3623 7.31953 24.4321ZM8.23267 25.4743C8.14497 25.5712 7.95818 25.5452 7.82146 25.413C7.68156 25.2838 7.64261 25.1004 7.73058 25.0035C7.81934 24.9064 8.00719 24.9337 8.14497 25.0648C8.28381 25.1938 8.3262 25.3785 8.23267 25.4743ZM9.41281 25.8262C9.37413 25.9517 9.19423 26.0088 9.013 25.9554C8.83203 25.9005 8.7136 25.7535 8.75016 25.6266C8.78778 25.5003 8.96848 25.4408 9.15104 25.4979C9.33174 25.5526 9.45044 25.6985 9.41281 25.8262ZM10.7559 25.9754C10.7604 26.1076 10.6067 26.2172 10.4165 26.2196C10.2252 26.2238 10.0704 26.1169 10.0683 25.9868C10.0683 25.8534 10.2185 25.7448 10.4098 25.7416C10.6001 25.7379 10.7559 25.8441 10.7559 25.9754ZM12.0753 25.9248C12.0981 26.0537 11.9658 26.1862 11.7769 26.2215C11.5912 26.2554 11.4192 26.1758 11.3957 26.0479C11.3726 25.9157 11.5072 25.7833 11.6927 25.7491C11.8819 25.7162 12.0512 25.7937 12.0753 25.9248Z" fill="#161614"/>
|
||||
</svg>
|
Before Width: | Height: | Size: 2.7 KiB |
1
assets/iframe-e37939d1.js
Normal file
|
@ -1 +1 @@
|
|||
import{R as o}from"./index-de2c9509.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-6f701dea.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};
|
|
@ -1 +1 @@
|
|||
import{M as n,a as M,u as D,w as X}from"./index-51661169.js";import"./index-de2c9509.js";import"./iframe-230dc4ac.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-5fd49470.js";import"./index-6f701dea.js";import"./iframe-e37939d1.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};
|
4
assets/index-b180c43f.js
Normal file
|
@ -1,4 +1,4 @@
|
|||
import{r as l}from"./index-de2c9509.js";var f={exports:{}},n={};/**
|
||||
import{r as l}from"./index-6f701dea.js";var f={exports:{}},n={};/**
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
|
@ -1 +1 @@
|
|||
import{_ as N}from"./iframe-230dc4ac.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-e37939d1.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);
|
1
assets/preview-6dfef8c9.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{_ as e}from"./iframe-e37939d1.js";import"../sb-preview/runtime.js";var a={docs:{renderer:async()=>{let{DocsRenderer:r}=await e(()=>import("./DocsRenderer-NNNQARDV-245a6c5d.js"),["./DocsRenderer-NNNQARDV-245a6c5d.js","./iframe-e37939d1.js","./index-6f701dea.js","./_commonjsHelpers-725317a4.js","./index-11d98b33.js","./index-a04a29e8.js","./index-356e4a49.js"],import.meta.url);return new r}}};export{a as parameters};
|
|
@ -1 +1 @@
|
|||
import{_ as e}from"./iframe-230dc4ac.js";import{r as t,i,b as a}from"./runtime-ea3b2d3b.js";import"../sb-preview/runtime.js";import"./index-9ff358fd.js";import"./utils-09ff0c0e.js";import"./_commonjsHelpers-725317a4.js";const n="en";t("de",()=>e(()=>import("./de-4447c9d9.js"),[],import.meta.url));t("en",()=>e(()=>import("./en-e4875910.js"),[],import.meta.url));t("he",()=>e(()=>import("./he-42d86658.js"),[],import.meta.url));i({fallbackLocale:n,initialLocale:window.navigator.language});function c(o){return["he"].includes(o)?"rtl":"ltr"}t("de",()=>e(()=>import("./de-4447c9d9.js"),[],import.meta.url));t("en",()=>e(()=>import("./en-e4875910.js"),[],import.meta.url));t("he",()=>e(()=>import("./he-42d86658.js"),[],import.meta.url));i({fallbackLocale:"en",initialLocale:"en"});a.set("en");function m(o,l){const r=l.globals.locale;return a.set(r),document.dir=c(r),o()}const E={globalTypes:{locale:{description:"Internationalization locale",defaultValue:"en",toolbar:{icon:"globe",items:[{value:"de",title:"German"},{value:"en",title:"English"},{value:"he",title:"Hebrew"}]}}},parameters:{actions:{argTypesRegex:"^on[A-Z].*"},controls:{matchers:{color:/(background|color)$/i,date:/Date$/i}}}},v=[m];export{v as decorators,E as default};
|
||||
import{_ as e}from"./iframe-e37939d1.js";import{r as t,i,b as a}from"./runtime-ea3b2d3b.js";import"../sb-preview/runtime.js";import"./index-9ff358fd.js";import"./utils-09ff0c0e.js";import"./_commonjsHelpers-725317a4.js";const n="en";t("de",()=>e(()=>import("./de-4447c9d9.js"),[],import.meta.url));t("en",()=>e(()=>import("./en-39186d42.js"),[],import.meta.url));t("he",()=>e(()=>import("./he-42d86658.js"),[],import.meta.url));i({fallbackLocale:n,initialLocale:window.navigator.language});function c(o){return["he"].includes(o)?"rtl":"ltr"}t("de",()=>e(()=>import("./de-4447c9d9.js"),[],import.meta.url));t("en",()=>e(()=>import("./en-39186d42.js"),[],import.meta.url));t("he",()=>e(()=>import("./he-42d86658.js"),[],import.meta.url));i({fallbackLocale:"en",initialLocale:"en"});a.set("en");function m(o,l){const r=l.globals.locale;return a.set(r),document.dir=c(r),o()}const E={globalTypes:{locale:{description:"Internationalization locale",defaultValue:"en",toolbar:{icon:"globe",items:[{value:"de",title:"German"},{value:"en",title:"English"},{value:"he",title:"Hebrew"}]}}},parameters:{actions:{argTypesRegex:"^on[A-Z].*"},controls:{matchers:{color:/(background|color)$/i,date:/Date$/i}}}},v=[m];export{v as decorators,E as default};
|
|
@ -1 +1 @@
|
|||
import{a as w}from"./chunk-WFFRPTHA-ed72344b.js";import{o as C,s as x,g as N}from"./lifecycle-96ebe68d.js";import"./preview-errors-dde4324f.js";import"./index-356e4a49.js";function R(t){x("after-navigate-args",t)}function f(t){return[{subscribe(s){let e=N(t);return s(e),()=>{}}},s=>{x(t,s)}]}var[U,F]=f("page-ctx"),[_,H]=f("navigating-ctx"),[S,T]=f("updated-ctx");S.check=()=>{};var D=t=>typeof t=="function"?{callback:t,asRegex:!1}:t,$=[(t,s)=>{var d,v,u,m,L;let e=((d=s.parameters)==null?void 0:d.sveltekit_experimental)??{};return F((v=e==null?void 0:e.stores)==null?void 0:v.page),H((u=e==null?void 0:e.stores)==null?void 0:u.navigating),T((m=e==null?void 0:e.stores)==null?void 0:m.updated),R((L=e==null?void 0:e.navigation)==null?void 0:L.afterNavigate),C(()=>{let h=r=>{let c=r.composedPath().findLast(n=>n instanceof HTMLElement&&n.tagName==="A");if(c&&c instanceof HTMLAnchorElement){let n=c.getAttribute("href");if(!n)return;r.preventDefault();let g=()=>w("navigate")(n,r);if(!e.hrefs){g();return}let a=!0;Object.entries(e.hrefs).forEach(([i,l])=>{let{callback:o,asRegex:p}=D(l);(p?new RegExp(i).test(n):n===i)&&(a=!1,o==null||o(n,r))}),a&&g()}};function E(r,c,n){let g=[];return c.forEach(a=>{var l;let i=((l=e[r])==null?void 0:l[a])&&e[r][a]instanceof Function;if(i||n){let o=({detail:k=[]})=>{let y=Array.isArray(k)?k:[];(i?e[r][a]:w(a))(...y)},p=`storybook:${a}`;g.push({eventType:p,listener:o}),window.addEventListener(p,o)}}),()=>{g.forEach(({eventType:a,listener:i})=>{window.removeEventListener(a,i)})}}let A=E("navigation",["goto","invalidate","invalidateAll","pushState","replaceState"],!0),b=E("forms",["enhance"]);return window.addEventListener("click",h),()=>{window.removeEventListener("click",h),A(),b()}}),t()}];export{$ as decorators};
|
||||
import{a as w}from"./chunk-WFFRPTHA-ed72344b.js";import{o as C,s as x,g as N}from"./lifecycle-16e1fb41.js";import"./preview-errors-dde4324f.js";import"./index-356e4a49.js";function R(t){x("after-navigate-args",t)}function f(t){return[{subscribe(s){let e=N(t);return s(e),()=>{}}},s=>{x(t,s)}]}var[U,F]=f("page-ctx"),[_,H]=f("navigating-ctx"),[S,T]=f("updated-ctx");S.check=()=>{};var D=t=>typeof t=="function"?{callback:t,asRegex:!1}:t,$=[(t,s)=>{var d,v,u,m,L;let e=((d=s.parameters)==null?void 0:d.sveltekit_experimental)??{};return F((v=e==null?void 0:e.stores)==null?void 0:v.page),H((u=e==null?void 0:e.stores)==null?void 0:u.navigating),T((m=e==null?void 0:e.stores)==null?void 0:m.updated),R((L=e==null?void 0:e.navigation)==null?void 0:L.afterNavigate),C(()=>{let h=r=>{let c=r.composedPath().findLast(n=>n instanceof HTMLElement&&n.tagName==="A");if(c&&c instanceof HTMLAnchorElement){let n=c.getAttribute("href");if(!n)return;r.preventDefault();let g=()=>w("navigate")(n,r);if(!e.hrefs){g();return}let a=!0;Object.entries(e.hrefs).forEach(([i,l])=>{let{callback:o,asRegex:p}=D(l);(p?new RegExp(i).test(n):n===i)&&(a=!1,o==null||o(n,r))}),a&&g()}};function E(r,c,n){let g=[];return c.forEach(a=>{var l;let i=((l=e[r])==null?void 0:l[a])&&e[r][a]instanceof Function;if(i||n){let o=({detail:k=[]})=>{let y=Array.isArray(k)?k:[];(i?e[r][a]:w(a))(...y)},p=`storybook:${a}`;g.push({eventType:p,listener:o}),window.addEventListener(p,o)}}),()=>{g.forEach(({eventType:a,listener:i})=>{window.removeEventListener(a,i)})}}let A=E("navigation",["goto","invalidate","invalidateAll","pushState","replaceState"],!0),b=E("forms",["enhance"]);return window.addEventListener("click",h),()=>{window.removeEventListener("click",h),A(),b()}}),t()}];export{$ as decorators};
|
|
@ -1 +0,0 @@
|
|||
import{_ as e}from"./iframe-230dc4ac.js";import"../sb-preview/runtime.js";var a={docs:{renderer:async()=>{let{DocsRenderer:r}=await e(()=>import("./DocsRenderer-NNNQARDV-c2ccd29a.js"),["./DocsRenderer-NNNQARDV-c2ccd29a.js","./iframe-230dc4ac.js","./index-de2c9509.js","./_commonjsHelpers-725317a4.js","./index-11d98b33.js","./index-a04a29e8.js","./index-356e4a49.js"],import.meta.url);return new r}}};export{a as parameters};
|
Before Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 7.1 KiB |
|
@ -1 +1 @@
|
|||
import{S as s,c,s as l}from"./index-de2c9509.js";import"./iframe-230dc4ac.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-6f701dea.js";import"./iframe-e37939d1.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};
|
Before Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 43 KiB |
|
@ -1,12 +0,0 @@
|
|||
<svg width="33" height="32" viewBox="0 0 33 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<g clip-path="url(#clip0_10031_177597)">
|
||||
<path opacity="0.7" fill-rule="evenodd" clip-rule="evenodd" d="M17 7.87059C17 6.48214 17.9812 5.28722 19.3431 5.01709L29.5249 2.99755C31.3238 2.64076 33 4.01717 33 5.85105V22.1344C33 23.5229 32.0188 24.7178 30.6569 24.9879L20.4751 27.0074C18.6762 27.3642 17 25.9878 17 24.1539L17 7.87059Z" fill="#B7F0EF"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M1 5.85245C1 4.01857 2.67623 2.64215 4.47507 2.99895L14.6569 5.01848C16.0188 5.28861 17 6.48354 17 7.87198V24.1553C17 25.9892 15.3238 27.3656 13.5249 27.0088L3.34311 24.9893C1.98119 24.7192 1 23.5242 1 22.1358V5.85245Z" fill="#87E6E5"/>
|
||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M15.543 5.71289C15.543 5.71289 16.8157 5.96289 17.4002 6.57653C17.9847 7.19016 18.4521 9.03107 18.4521 9.03107C18.4521 9.03107 18.4521 25.1106 18.4521 26.9629C18.4521 28.8152 19.3775 31.4174 19.3775 31.4174L17.4002 28.8947L16.2575 31.4174C16.2575 31.4174 15.543 29.0765 15.543 27.122C15.543 25.1674 15.543 5.71289 15.543 5.71289Z" fill="#61C1FD"/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_10031_177597">
|
||||
<rect width="32" height="32" fill="white" transform="translate(0.5)"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.2 KiB |
|
@ -1,4 +0,0 @@
|
|||
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M31.3313 8.44657C30.9633 7.08998 29.8791 6.02172 28.5022 5.65916C26.0067 5.00026 16 5.00026 16 5.00026C16 5.00026 5.99333 5.00026 3.4978 5.65916C2.12102 6.02172 1.03665 7.08998 0.668678 8.44657C0 10.9053 0 16.0353 0 16.0353C0 16.0353 0 21.1652 0.668678 23.6242C1.03665 24.9806 2.12102 26.0489 3.4978 26.4116C5.99333 27.0703 16 27.0703 16 27.0703C16 27.0703 26.0067 27.0703 28.5022 26.4116C29.8791 26.0489 30.9633 24.9806 31.3313 23.6242C32 21.1652 32 16.0353 32 16.0353C32 16.0353 32 10.9053 31.3313 8.44657Z" fill="#ED1D24"/>
|
||||
<path d="M12.7266 20.6934L21.0902 16.036L12.7266 11.3781V20.6934Z" fill="white"/>
|
||||
</svg>
|
Before Width: | Height: | Size: 721 B |
14
iframe.html
|
@ -358,10 +358,22 @@
|
|||
console.warn('unable to connect to top frame for connecting dev tools');
|
||||
}
|
||||
</script>
|
||||
<!--
|
||||
Loading global styles for all Stories.
|
||||
Copyright (C) 2024 André Jaenisch
|
||||
SPDX-FileCopyrightText: 2024 André Jaenisch
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
-->
|
||||
<link rel="preconnect" href="https://rsms.me/" />
|
||||
<link rel="stylesheet" href="https://rsms.me/inter/inter.css" />
|
||||
|
||||
<script type="module" crossorigin src="./assets/iframe-230dc4ac.js"></script>
|
||||
<script type="module" crossorigin src="./assets/iframe-e37939d1.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"generatedAt":1709476642762,"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":true},"framework":{"name":"@storybook/sveltekit","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/svelte","storybookVersion":"7.6.17","storybookVersionSpecifier":"7.6.17","language":"typescript","storybookPackages":{"@storybook/blocks":{"version":"7.6.17"},"@storybook/builder-vite":{"version":"7.6.17"},"@storybook/svelte":{"version":"7.6.17"},"@storybook/sveltekit":{"version":"7.6.17"},"@storybook/test":{"version":"7.6.17"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"7.6.17"}},"addons":{"@storybook/addon-a11y":{"version":"7.6.17"},"@storybook/addon-essentials":{"version":"7.6.17"},"@storybook/addon-links":{"version":"7.6.17"},"@storybook/addon-interactions":{"version":"7.6.17"},"@storybook/addon-toolbar":{"version":null}}}
|
||||
{"generatedAt":1710438106295,"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":true},"framework":{"name":"@storybook/sveltekit","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/svelte","storybookVersion":"7.6.17","storybookVersionSpecifier":"7.6.17","language":"typescript","storybookPackages":{"@storybook/blocks":{"version":"7.6.17"},"@storybook/builder-vite":{"version":"7.6.17"},"@storybook/svelte":{"version":"7.6.17"},"@storybook/sveltekit":{"version":"7.6.17"},"@storybook/test":{"version":"7.6.17"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"7.6.17"}},"addons":{"@storybook/addon-a11y":{"version":"7.6.17"},"@storybook/addon-essentials":{"version":"7.6.17"},"@storybook/addon-links":{"version":"7.6.17"},"@storybook/addon-interactions":{"version":"7.6.17"},"@storybook/addon-toolbar":{"version":null}}}
|
||||
|
|