This commit is contained in:
André Jaenisch 2024-07-31 10:01:28 +02:00
parent 25a9599191
commit 55cfc3a009
No known key found for this signature in database
GPG key ID: 5A668E771F1ED854
375 changed files with 78206 additions and 2310 deletions

View file

@ -1 +1,2 @@
import{A as a}from"./ZoomOut24-450rB1Ps.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./spread-CgU5AtxT.js";const m={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 p=["Plain"];export{o as Plain,p as __namedExportsOrder,m as default};
import{A as a}from"./ZoomOut24-CRRKQWCt.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./spread-CgU5AtxT.js";const m={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 p=["Plain"];export{o as Plain,p as __namedExportsOrder,m as default};
//# sourceMappingURL=AlertFill16.stories-uEMHsA9r.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"AlertFill16.stories-uEMHsA9r.js","sources":["../../stories/icons/AlertFill16.stories.ts"],"sourcesContent":["/*\n * MIT License\n *\n * Copyright (c) 2020-present Eric Liu\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n */\n\n/*\n * SPDX-FileCopyrightText: 2020 - 2024 Eric Liu\n * SPDX-License-Identifier: MIT\n */\n\nimport type { Meta, StoryObj } from '@storybook/svelte';\nimport { AlertFill16 } from 'svelte-octicons';\n\nconst meta = {\n\ttitle: 'Icons/AlertFill16',\n\tcomponent: AlertFill16,\n\ttags: ['autodocs'],\n\targTypes: {\n\t\tfill: {\n\t\t\tcontrol: 'color'\n\t\t}\n\t}\n} satisfies Meta<AlertFill16>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Plain: Story = {};\n"],"names":["meta","title","component","AlertFill16","tags","argTypes","fill","control","Plain","parameters","docs","source","originalSource"],"mappings":"qIAqBA,MAAMA,EAAO,CACTC,MAAO,oBACPC,UAAWC,EACXC,KAAM,CAAC,UAAS,EAChBC,SAAQ,CACJC,KAAC,CACGC,QAAO,OAChB,CACD,CACF,EAKaC,EAAe,CAAC,YAAEA,EAAAC,WAAA,CAAA,GAAAD,EAAAC,WAAAC,KAAA,CAAA,IAAAF,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,KAAAC,OAAA,CAAAC,eAAA,KAAA,IAAAJ,GAAAA,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,OAAAF,YAAAA,EAAAG,MAAA,CAAA,CAAA"}

View file

@ -1 +0,0 @@
import{S as c,c as m,a as u,v as f,n as r,h as d}from"./index-CP70Tq58.js";import{a as p,f as _,l as o,i as y,d as g}from"./lifecycle-D_bIUHQK.js";import{$ as h}from"./runtime-CZkC8ltm.js";const k=""+new URL("anvil-efIa5oS8.png",import.meta.url).href;function v(s){let e,l,a;return{c(){e=p("img"),this.h()},l(t){e=_(t,"IMG",{src:!0,alt:!0,class:!0}),this.h()},h(){f(e.src,l=k)||o(e,"src",l),o(e,"alt",a=s[2](s[1].alt)),o(e,"class",s[0])},m(t,i){y(t,e,i)},p(t,[i]){i&6&&a!==(a=t[2](t[1].alt))&&o(e,"alt",a),i&1&&o(e,"class",t[0])},i:r,o:r,d(t){t&&g(e)}}}function b(s,e,l){let a;d(s,h,n=>l(2,a=n));let{class:t=""}=e,{i18n:i={alt:""}}=e;return s.$$set=n=>{"class"in n&&l(0,t=n.class),"i18n"in n&&l(1,i=n.i18n)},[t,i,a]}class w extends c{constructor(e){super(),m(this,e,b,v,u,{class:0,i18n:1})}}w.__docgen={version:3,name:"AnvilLogo.svelte",data:[{visibility:"public",description:"Allow defining classList from outside.",keywords:[],name:"class",kind:"const",static:!1,readonly:!0,type:{kind:"type",text:"string",type:"string"},localName:"klass",defaultValue:""},{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:[]};export{w as A};

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"version":3,"file":"AnvilLogo-nLb1tfh1.js","sources":["../../src/lib/assets/anvil.png"],"sourcesContent":["export default \"__VITE_ASSET__C9jOxTIi__\""],"names":["logo"],"mappings":"6LAAA,MAAeA,EAAA,GAAA,IAAA,IAAA,qBAAA,YAAA,GAAA,EAAA"}

View file

@ -1,5 +0,0 @@
import{A as i}from"./AnvilLogo-Cjz8sXHR.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./runtime-CZkC8ltm.js";import"./index-C0Lr04gB.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./tslib.es6-pJfR_DrR.js";const A={title:"Atoms/AnvilLogo",component:i,tags:["autodocs"]},r={},s={args:{class:"w-full"}};var o,a,t;r.parameters={...r.parameters,docs:{...(o=r.parameters)==null?void 0:o.docs,source:{originalSource:"{}",...(t=(a=r.parameters)==null?void 0:a.docs)==null?void 0:t.source}}};var e,c,m;s.parameters={...s.parameters,docs:{...(e=s.parameters)==null?void 0:e.docs,source:{originalSource:`{
args: {
class: 'w-full'
}
}`,...(m=(c=s.parameters)==null?void 0:c.docs)==null?void 0:m.source}}};const h=["Plain","WithClass"];export{r as Plain,s as WithClass,h as __namedExportsOrder,A as default};

View file

@ -0,0 +1,6 @@
import{A as i}from"./AnvilLogo-nLb1tfh1.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./runtime-8AupoRbQ.js";import"./index-C0Lr04gB.js";import"./_commonjsHelpers-Cpj98o6Y.js";const f={title:"Atoms/AnvilLogo",component:i,tags:["autodocs"]},s={},r={args:{class:"w-full"}};var o,a,t;s.parameters={...s.parameters,docs:{...(o=s.parameters)==null?void 0:o.docs,source:{originalSource:"{}",...(t=(a=s.parameters)==null?void 0:a.docs)==null?void 0:t.source}}};var e,c,m;r.parameters={...r.parameters,docs:{...(e=r.parameters)==null?void 0:e.docs,source:{originalSource:`{
args: {
class: 'w-full'
}
}`,...(m=(c=r.parameters)==null?void 0:c.docs)==null?void 0:m.source}}};const A=["Plain","WithClass"];export{s as Plain,r as WithClass,A as __namedExportsOrder,f as default};
//# sourceMappingURL=AnvilLogo.stories-D-v7sXyV.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"AnvilLogo.stories-D-v7sXyV.js","sources":["../../stories/atoms/AnvilLogo.stories.ts"],"sourcesContent":["/* Stories for AnvilLogo atom.\n * Copyright (C) 2024 André Jaenisch\n * SPDX-FileCopyrightText: 2024 André Jaenisch\n * SPDX-License-Identifier: AGPL-3.0-or-later\n *\n * 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.\n *\n * 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.\n *\n * 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/>.\n */\n\nimport type { Meta, StoryObj } from '@storybook/svelte';\n\nimport AnvilLogo from '$lib/components/atoms/AnvilLogo.svelte';\n\nconst meta = {\n\ttitle: 'Atoms/AnvilLogo',\n\tcomponent: AnvilLogo,\n\ttags: ['autodocs']\n} satisfies Meta<AnvilLogo>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Plain: Story = {};\n\nexport const WithClass: Story = {\n\targs: {\n\t\tclass: 'w-full'\n\t}\n};\n"],"names":["meta","title","component","AnvilLogo","tags","Plain","WithClass","args","class","parameters","docs","source","originalSource"],"mappings":"yMAgBA,MAAMA,EAAO,CACTC,MAAO,kBACPC,UAAWC,EACXC,KAAM,CAAC,UAAQ,CACnB,EAKaC,EAAe,CAAC,EAEhBC,EAAmB,CAC5BC,KAAI,CACAC,MAAO,QACb,CACF,YAAEH,EAAAI,WAAA,CAAA,GAAAJ,EAAAI,WAAAC,KAAA,CAAA,IAAAL,EAAAA,EAAAI,aAAAJ,YAAAA,EAAAK,KAAAC,OAAA,CAAAC,eAAA,KAAA,IAAAP,GAAAA,EAAAA,EAAAI,aAAAJ,YAAAA,EAAAK,OAAAL,YAAAA,EAAAM,MAAA,CAAA,CAAA,YAAAL,EAAAG,WAAA,CAAA,GAAAH,EAAAG,WAAAC,KAAA,CAAA,IAAAJ,EAAAA,EAAAG,aAAAH,YAAAA,EAAAI,KAAAC,OAAA,CAAAC,eAAA;AAAA;AAAA;AAAA;AAAA,GAAA,IAAAN,GAAAA,EAAAA,EAAAG,aAAAH,YAAAA,EAAAI,OAAAJ,YAAAA,EAAAK,MAAA,CAAA,CAAA"}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"version":3,"file":"Avatar-CUHWuSMc.js","sources":["../../src/lib/components/atoms/Avatar.svelte"],"sourcesContent":["<!--\nAvatar atom.\nCopyright (C) 2024 André Jaenisch\nSPDX-FileCopyrightText: 2024 André Jaenisch\nSPDX-License-Identifier: AGPL-3.0-or-later\n\nThis 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.\n\nThis 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.\n\nYou should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.\n-->\n\n<script>\n\timport { Avatar } from '@skeletonlabs/skeleton';\n\n\t/**\n\t * URL to Avatar image.\n\t * @type {string | undefined}\n\t */\n\texport let avatar = '';\n\n\t/**\n\t * Name to derive initials from if no avatar is given.\n\t * @type {string | undefined}\n\t */\n\texport let displayName = '';\n</script>\n\n<Avatar src={avatar} alt={displayName} width=\"w-32\" rounded=\"rounded-full\" initials={displayName} />\n"],"names":["cov_d0qd5zavz","actualCoverage","displayName","b","s","$$props"],"mappings":"0hNAcU,OAAAA,EAAA,UAAA,CAAA,OAAAC,CAAA,EAAAA,CAAA,CAAAD,EAAA,y3BAe2E,CAAAE,YAAAA,GAAAF,EAAA,EAAAG,UAAA,GAAA,GAAAH,EAAA,EAAAI,EAAAC,EAAAA,IAAAA,GAAAL,OAAAA,EAAA,EAAAI"}

View file

@ -1 +0,0 @@
import{S as d,c as o,a as l,d as f,e as m,m as u,b as p,t as c,f as y}from"./index-CP70Tq58.js";import{A as r}from"./XPro-_Ll7JVYJ.js";function v(s){let t,i;return t=new r({props:{src:s[0],alt:s[1],width:"w-32",rounded:"rounded-full",initials:s[1]}}),{c(){f(t.$$.fragment)},l(e){m(t.$$.fragment,e)},m(e,a){u(t,e,a),i=!0},p(e,[a]){const n={};a&1&&(n.src=e[0]),a&2&&(n.alt=e[1]),a&2&&(n.initials=e[1]),t.$set(n)},i(e){i||(p(t.$$.fragment,e),i=!0)},o(e){c(t.$$.fragment,e),i=!1},d(e){y(t,e)}}}function g(s,t,i){let{avatar:e=""}=t,{displayName:a=""}=t;return s.$$set=n=>{"avatar"in n&&i(0,e=n.avatar),"displayName"in n&&i(1,a=n.displayName)},[e,a]}class w extends d{constructor(t){super(),o(this,t,g,v,l,{avatar:0,displayName:1})}}r.__docgen={version:3,name:"Avatar.svelte",data:[{keywords:[{name:"type",description:"{string | undefined}"}],visibility:"public",description:"URL to Avatar image.",name:"avatar",kind:"let",static:!1,readonly:!1,type:{kind:"union",text:"string | undefined",type:[{kind:"type",text:"string",type:"string"},{kind:"type",text:"undefined",type:"undefined"}]},defaultValue:""},{keywords:[{name:"type",description:"{string | undefined}"}],visibility:"public",description:"Name to derive initials from if no avatar is given.",name:"displayName",kind:"let",static:!1,readonly:!1,type:{kind:"union",text:"string | undefined",type:[{kind:"type",text:"string",type:"string"},{kind:"type",text:"undefined",type:"undefined"}]},defaultValue:""}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};export{w as A};

View file

@ -1,4 +1,4 @@
import{A as n}from"./Avatar-CaS7JzBb.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./XPro-_Ll7JVYJ.js";import"./each-C4g42ehH.js";import"./index-C0Lr04gB.js";import"./spread-CgU5AtxT.js";import"./globals-D0QH3NT1.js";const v={title:"Atoms/Avatar",component:n,tags:["autodocs"]},a={args:{avatar:"",displayName:"Jane Doe"}},r={args:{...a.args,avatar:"https://codeberg.org/avatars/a9defc12e1826458289a39e3a66792f0adef29a73fb79b71c66560b7d80aac8f?size=280"}};var e,t,o;a.parameters={...a.parameters,docs:{...(e=a.parameters)==null?void 0:e.docs,source:{originalSource:`{
import{A as n}from"./Avatar-CUHWuSMc.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./XPro-DLv5pwJ7.js";import"./each-C4g42ehH.js";import"./index-C0Lr04gB.js";import"./spread-CgU5AtxT.js";import"./globals-D0QH3NT1.js";const v={title:"Atoms/Avatar",component:n,tags:["autodocs"]},a={args:{avatar:"",displayName:"Jane Doe"}},r={args:{...a.args,avatar:"https://codeberg.org/avatars/a9defc12e1826458289a39e3a66792f0adef29a73fb79b71c66560b7d80aac8f?size=280"}};var e,t,o;a.parameters={...a.parameters,docs:{...(e=a.parameters)==null?void 0:e.docs,source:{originalSource:`{
args: {
avatar: '',
displayName: 'Jane Doe'
@ -9,3 +9,4 @@ import{A as n}from"./Avatar-CaS7JzBb.js";import"./index-CP70Tq58.js";import"./li
avatar: 'https://codeberg.org/avatars/a9defc12e1826458289a39e3a66792f0adef29a73fb79b71c66560b7d80aac8f?size=280'
}
}`,...(i=(c=r.parameters)==null?void 0:c.docs)==null?void 0:i.source}}};const P=["Plain","ProfilePicture"];export{a as Plain,r as ProfilePicture,P as __namedExportsOrder,v as default};
//# sourceMappingURL=Avatar.stories-Crc3Ot11.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"Avatar.stories-Crc3Ot11.js","sources":["../../stories/atoms/Avatar.stories.ts"],"sourcesContent":["/* Stories for Avatar atom.\n * Copyright (C) 2024 André Jaenisch\n * SPDX-FileCopyrightText: 2024 André Jaenisch\n * SPDX-License-Identifier: AGPL-3.0-or-later\n *\n * 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.\n *\n * 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.\n *\n * 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/>.\n */\n\nimport type { Meta, StoryObj } from '@storybook/svelte';\n\nimport Avatar from '$lib/components/atoms/Avatar.svelte';\n\nconst meta = {\n\ttitle: 'Atoms/Avatar',\n\tcomponent: Avatar,\n\ttags: ['autodocs']\n} satisfies Meta<Avatar>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Plain: Story = {\n\targs: {\n\t\tavatar: '',\n\t\tdisplayName: 'Jane Doe'\n\t}\n};\n\nexport const ProfilePicture: Story = {\n\targs: {\n\t\t...Plain.args,\n\t\tavatar:\n\t\t\t'https://codeberg.org/avatars/a9defc12e1826458289a39e3a66792f0adef29a73fb79b71c66560b7d80aac8f?size=280'\n\t}\n};\n"],"names":["meta","title","component","Avatar","tags","Plain","args","avatar","displayName","ProfilePicture","parameters","docs","source","originalSource"],"mappings":"kPAgBA,MAAMA,EAAO,CACTC,MAAO,eACPC,UAAWC,EACXC,KAAM,CAAC,UAAQ,CACnB,EAKaC,EAAe,CACxBC,KAAI,CACAC,OAAK,GACLC,YAAa,UACnB,CACF,EAEaC,EAAwB,CACjCH,KAAI,CACA,GAAGD,EAAKC,KACRC,OACI,wGACV,CACF,YAAEF,EAAAK,WAAA,CAAA,GAAAL,EAAAK,WAAAC,KAAA,CAAA,IAAAN,EAAAA,EAAAK,aAAAL,YAAAA,EAAAM,KAAAC,OAAA,CAAAC,eAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAAA,IAAAR,GAAAA,EAAAA,EAAAK,aAAAL,YAAAA,EAAAM,OAAAN,YAAAA,EAAAO,MAAA,CAAA,CAAA,YAAAH,EAAAC,WAAA,CAAA,GAAAD,EAAAC,WAAAC,KAAA,CAAA,IAAAF,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,KAAAC,OAAA,CAAAC,eAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAAA,IAAAJ,GAAAA,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,OAAAF,YAAAA,EAAAG,MAAA,CAAA,CAAA"}

View file

@ -1 +0,0 @@
import{S as p,c as i,a as c,n as r,h as m}from"./index-CP70Tq58.js";import{H as u,e as a,c as b,i as d,d as _}from"./lifecycle-D_bIUHQK.js";import{$ as f}from"./runtime-CZkC8ltm.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 u(!1),o=a(),this.h()},l(e){t=b(e,!1),o=a(),this.h()},h(){t.a=o},m(e,l){t.m(n,e,l),d(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&&(_(o),t.d())}}}function k(s,t,n){let o;return m(s,f,e=>n(0,o=e)),[o]}class v extends p{constructor(t){super(),i(this,t,k,h,c,{})}}v.__docgen={version:3,name:"BlockOrReport.svelte",data:[],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};export{v as B};

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"version":3,"file":"BlockOrReport-DfpRnQQX.js","sources":["../../src/lib/components/atoms/BlockOrReport.svelte"],"sourcesContent":["<!--\nBlockOrReport atom.\nCopyright (C) 2024 André Jaenisch\nSPDX-FileCopyrightText: 2024 André Jaenisch\nSPDX-License-Identifier: AGPL-3.0-or-later\n\nThis 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.\n\nThis 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.\n\nYou should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.\n-->\n\n<script>\n\timport { _ } from 'svelte-i18n';\n</script>\n\n{@html $_('page.profile.activities.block_or_report', {\n\tvalues: {\n\t\tblockElementOpen: '<button type=\"button\" class=\"underline\">',\n\t\tblockElementClose: '</button>',\n\t\treportElementOpen: '<button type=\"button\" class=\"underline\">',\n\t\treportElementClose: '</button>'\n\t}\n})}\n"],"names":["blockElementClose","reportElementOpen","reportElementClose"],"mappings":"+8OAiBOA,kBAAA,YACNC,kBAAM,2CACLC,mBAA4D,2dAFvDF,kBAAA,YACNC,kBAAM,2CACLC,mBAA4D"}

View file

@ -1 +0,0 @@
import{B as a}from"./BlockOrReport-Ba6EyyOa.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./runtime-CZkC8ltm.js";import"./index-C0Lr04gB.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./tslib.es6-pJfR_DrR.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};

View file

@ -0,0 +1,2 @@
import{B as a}from"./BlockOrReport-DfpRnQQX.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./runtime-8AupoRbQ.js";import"./index-C0Lr04gB.js";import"./_commonjsHelpers-Cpj98o6Y.js";const d={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 l=["Plain"];export{o as Plain,l as __namedExportsOrder,d as default};
//# sourceMappingURL=BlockOrReport.stories-CQddrNiF.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"BlockOrReport.stories-CQddrNiF.js","sources":["../../stories/atoms/BlockOrReport.stories.ts"],"sourcesContent":["/* Stories for BlockOrReport atom.\n * Copyright (C) 2024 André Jaenisch\n * SPDX-FileCopyrightText: 2024 André Jaenisch\n * SPDX-License-Identifier: AGPL-3.0-or-later\n *\n * 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.\n *\n * 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.\n *\n * 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/>.\n */\n\nimport type { Meta, StoryObj } from '@storybook/svelte';\n\nimport BlockOrReport from '$lib/components/atoms/BlockOrReport.svelte';\n\nconst meta = {\n\ttitle: 'Atoms/BlockOrReport',\n\tcomponent: BlockOrReport,\n\ttags: ['autodocs']\n} satisfies Meta<BlockOrReport>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Plain: Story = {};\n"],"names":["meta","title","component","BlockOrReport","tags","Plain","parameters","docs","source","originalSource"],"mappings":"6MAgBA,MAAMA,EAAO,CACTC,MAAO,sBACPC,UAAWC,EACXC,KAAM,CAAC,UAAQ,CACnB,EAKaC,EAAe,CAAC,YAAEA,EAAAC,WAAA,CAAA,GAAAD,EAAAC,WAAAC,KAAA,CAAA,IAAAF,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,KAAAC,OAAA,CAAAC,eAAA,KAAA,IAAAJ,GAAAA,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,OAAAF,YAAAA,EAAAG,MAAA,CAAA,CAAA"}

View file

@ -1 +1,2 @@
import{C as a}from"./ZoomOut24-450rB1Ps.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./spread-CgU5AtxT.js";const p={title:"Icons/ChevronLeft24",component:a,tags:["autodocs"],argTypes:{fill:{control:"color"}}},o={};var r,e,t;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(t=(e=o.parameters)==null?void 0:e.docs)==null?void 0:t.source}}};const i=["Plain"];export{o as Plain,i as __namedExportsOrder,p as default};
import{C as a}from"./ZoomOut24-CRRKQWCt.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./spread-CgU5AtxT.js";const p={title:"Icons/ChevronLeft24",component:a,tags:["autodocs"],argTypes:{fill:{control:"color"}}},o={};var r,e,t;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(t=(e=o.parameters)==null?void 0:e.docs)==null?void 0:t.source}}};const i=["Plain"];export{o as Plain,i as __namedExportsOrder,p as default};
//# sourceMappingURL=ChevronLeft24.stories-DC6I927C.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"ChevronLeft24.stories-DC6I927C.js","sources":["../../stories/icons/ChevronLeft24.stories.ts"],"sourcesContent":["/*\n * MIT License\n *\n * Copyright (c) 2020-present Eric Liu\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n */\n\n/*\n * SPDX-FileCopyrightText: 2020 - 2024 Eric Liu\n * SPDX-License-Identifier: MIT\n */\n\nimport type { Meta, StoryObj } from '@storybook/svelte';\nimport { ChevronLeft24 } from 'svelte-octicons';\n\nconst meta = {\n\ttitle: 'Icons/ChevronLeft24',\n\tcomponent: ChevronLeft24,\n\ttags: ['autodocs'],\n\targTypes: {\n\t\tfill: {\n\t\t\tcontrol: 'color'\n\t\t}\n\t}\n} satisfies Meta<ChevronLeft24>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Plain: Story = {};\n"],"names":["meta","title","component","ChevronLeft24","tags","argTypes","fill","control","Plain","parameters","docs","source","originalSource"],"mappings":"qIAqBA,MAAMA,EAAO,CACTC,MAAO,sBACPC,UAAWC,EACXC,KAAM,CAAC,UAAS,EAChBC,SAAQ,CACJC,KAAC,CACGC,QAAO,OAChB,CACD,CACF,EAKaC,EAAe,CAAC,YAAEA,EAAAC,WAAA,CAAA,GAAAD,EAAAC,WAAAC,KAAA,CAAA,IAAAF,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,KAAAC,OAAA,CAAAC,eAAA,KAAA,IAAAJ,GAAAA,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,OAAAF,YAAAA,EAAAG,MAAA,CAAA,CAAA"}

View file

@ -1 +1,2 @@
import{a}from"./ZoomOut24-450rB1Ps.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./spread-CgU5AtxT.js";const m={title:"Icons/ChevronRight24",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 p=["Plain"];export{o as Plain,p as __namedExportsOrder,m as default};
import{a}from"./ZoomOut24-CRRKQWCt.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./spread-CgU5AtxT.js";const m={title:"Icons/ChevronRight24",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 p=["Plain"];export{o as Plain,p as __namedExportsOrder,m as default};
//# sourceMappingURL=ChevronRight24.stories-U1wYReHI.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"ChevronRight24.stories-U1wYReHI.js","sources":["../../stories/icons/ChevronRight24.stories.ts"],"sourcesContent":["/*\n * MIT License\n *\n * Copyright (c) 2020-present Eric Liu\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n */\n\n/*\n * SPDX-FileCopyrightText: 2020 - 2024 Eric Liu\n * SPDX-License-Identifier: MIT\n */\n\nimport type { Meta, StoryObj } from '@storybook/svelte';\nimport { ChevronRight24 } from 'svelte-octicons';\n\nconst meta = {\n\ttitle: 'Icons/ChevronRight24',\n\tcomponent: ChevronRight24,\n\ttags: ['autodocs'],\n\targTypes: {\n\t\tfill: {\n\t\t\tcontrol: 'color'\n\t\t}\n\t}\n} satisfies Meta<ChevronRight24>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Plain: Story = {};\n"],"names":["meta","title","component","ChevronRight24","tags","argTypes","fill","control","Plain","parameters","docs","source","originalSource"],"mappings":"gIAqBA,MAAMA,EAAO,CACTC,MAAO,uBACPC,UAAWC,EACXC,KAAM,CAAC,UAAS,EAChBC,SAAQ,CACJC,KAAC,CACGC,QAAO,OAChB,CACD,CACF,EAKaC,EAAe,CAAC,YAAEA,EAAAC,WAAA,CAAA,GAAAD,EAAAC,WAAAC,KAAA,CAAA,IAAAF,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,KAAAC,OAAA,CAAAC,eAAA,KAAA,IAAAJ,GAAAA,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,OAAAF,YAAAA,EAAAG,MAAA,CAAA,CAAA"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,5 +1,6 @@
import{j as r,M as s,C as t,d as o}from"./index-B9XBPmR5.js";import{u as e}from"./index-DNVTMUiP.js";import"./iframe-BODzaJGd.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./tslib.es6-pJfR_DrR.js";import"./index-DYADbu9O.js";import"./index-B4WlZuP_.js";import"./index-DrFu-skq.js";function l(a){const c={p:"p",...e(),...a.components};return r.jsxs(r.Fragment,{children:[`
import{j as r}from"./jsx-runtime-CyWKYf2h.js";import{u as e}from"./index-BiGGWifx.js";import{ae as s,af as t,ag as o}from"./index-DJZ9AeUI.js";import"./iframe-DwnwnWFz.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./index-J1TP6alb.js";import"./index-B659rHmc.js";import"./index-DrFu-skq.js";function l(a){const c={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}={...e(),...a.components};return c?r.jsx(c,{...a,children:r.jsx(l,{...a})}):l(a)}export{d as default};
//# sourceMappingURL=ColorPalette-o1yYf9ak.js.map

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
import{S as ie,c as le,a as ce,d as ee,e as te,m as se,b as ae,t as oe,f as re,h as ne}from"./index-CP70Tq58.js";import{a as c,t as A,b as T,f as m,h as u,j as I,d as l,k as D,l as n,i as me,m as t,n as P}from"./lifecycle-D_bIUHQK.js";import{$ as ue,a as fe}from"./runtime-CZkC8ltm.js";import{b as de,F as pe}from"./ZoomOut24-450rB1Ps.js";function ve(s){let a,i,f,b=s[0].name+"",h,C,r,N=s[1](s[3].relative_time,{values:{relativeTime:s[2](new Date(s[0].committed))}})+"",V,J,_,d,y,K,$,S=s[1](s[3].actions.copy)+"",O,L,g,k=s[0].hash.slice(0,8)+"",U,M,B,p,w,Q,E,j=s[1](s[3].actions.browse)+"",F,v;return y=new de({props:{fill:"currentColor"}}),w=new pe({props:{fill:"currentColor"}}),{c(){a=c("div"),i=c("div"),f=c("span"),h=A(b),C=T(),r=c("span"),V=A(N),J=T(),_=c("div"),d=c("button"),ee(y.$$.fragment),K=T(),$=c("span"),O=A(S),L=T(),g=c("button"),U=A(k),M=T(),B=c("div"),p=c("button"),ee(w.$$.fragment),Q=T(),E=c("span"),F=A(j),this.h()},l(e){a=m(e,"DIV",{class:!0});var o=u(a);i=m(o,"DIV",{class:!0});var q=u(i);f=m(q,"SPAN",{class:!0});var R=u(f);h=I(R,b),R.forEach(l),C=D(q),r=m(q,"SPAN",{class:!0});var W=u(r);V=I(W,N),W.forEach(l),q.forEach(l),J=D(o),_=m(o,"DIV",{class:!0});var z=u(_);d=m(z,"BUTTON",{type:!0,class:!0});var G=u(d);te(y.$$.fragment,G),K=D(G),$=m(G,"SPAN",{class:!0});var X=u($);O=I(X,S),X.forEach(l),G.forEach(l),L=D(z),g=m(z,"BUTTON",{type:!0,class:!0});var Y=u(g);U=I(Y,k),Y.forEach(l),z.forEach(l),M=D(o),B=m(o,"DIV",{});var Z=u(B);p=m(Z,"BUTTON",{type:!0,class:!0});var H=u(p);te(w.$$.fragment,H),Q=D(H),E=m(H,"SPAN",{class:!0});var x=u(E);F=I(x,j),x.forEach(l),H.forEach(l),Z.forEach(l),o.forEach(l),this.h()},h(){n(f,"class","text-surface-500"),n(r,"class","text-surface-400"),n(i,"class","flex flex-col flex-1"),n($,"class","sr-only"),n(d,"type","button"),n(d,"class","btn-icon border border-surface-100 rounded bg-white self-start"),n(g,"type","button"),n(g,"class","btn border border-surface-100 rounded bg-white min-w-32 self-start"),n(_,"class","flex"),n(E,"class","sr-only"),n(p,"type","button"),n(p,"class","btn-icon border border-surface-100 rounded bg-white"),n(a,"class","flex w-full justify-between gap-4 border border-surface-100")},m(e,o){me(e,a,o),t(a,i),t(i,f),t(f,h),t(i,C),t(i,r),t(r,V),t(a,J),t(a,_),t(_,d),se(y,d,null),t(d,K),t(d,$),t($,O),t(_,L),t(_,g),t(g,U),t(a,M),t(a,B),t(B,p),se(w,p,null),t(p,Q),t(p,E),t(E,F),v=!0},p(e,[o]){(!v||o&1)&&b!==(b=e[0].name+"")&&P(h,b),(!v||o&7)&&N!==(N=e[1](e[3].relative_time,{values:{relativeTime:e[2](new Date(e[0].committed))}})+"")&&P(V,N),(!v||o&2)&&S!==(S=e[1](e[3].actions.copy)+"")&&P(O,S),(!v||o&1)&&k!==(k=e[0].hash.slice(0,8)+"")&&P(U,k),(!v||o&2)&&j!==(j=e[1](e[3].actions.browse)+"")&&P(F,j)},i(e){v||(ae(y.$$.fragment,e),ae(w.$$.fragment,e),v=!0)},o(e){oe(y.$$.fragment,e),oe(w.$$.fragment,e),v=!1},d(e){e&&l(a),re(y),re(w)}}}function be(s,a,i){let f,b;ne(s,ue,r=>i(1,f=r)),ne(s,fe,r=>i(2,b=r));let{commit:h={name:""}}=a;const C={actions:{browse:"page.profile.history.activities.commits.actions.browse",copy:"page.profile.history.activities.commits.actions.copy"},relative_time:"page.profile.history.activities.commits.relative_time"};return s.$$set=r=>{"commit"in r&&i(0,h=r.commit)},[h,f,b,C]}class _e extends ie{constructor(a){super(),le(this,a,be,ve,ce,{commit:0})}}_e.__docgen={version:3,name:"CommitBody.svelte",data:[{keywords:[],visibility:"public",description:"The commit to display.",name:"commit",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"object",type:"object"}}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};export{_e as C};

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"version":3,"file":"CommitBody-bvJPbPpq.js","sources":["../../src/lib/components/atoms/CommitBody.svelte"],"sourcesContent":["<!--\nCommitBody atom.\nCopyright (C) 2024 André Jaenisch\nSPDX-FileCopyrightText: 2024 André Jaenisch\nSPDX-License-Identifier: AGPL-3.0-or-later\n\nThis 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.\n\nThis 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.\n\nYou should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.\n-->\n\n<script>\n\timport { _, date } from 'svelte-i18n';\n\timport { Copy16, FileDirectory16 } from 'svelte-octicons';\n\n\t/**\n\t * The commit to display.\n\t */\n\texport let commit = {\n\t\tname: ''\n\t};\n\n\tconst i18n = {\n\t\tactions: {\n\t\t\tbrowse: 'page.profile.history.activities.commits.actions.browse',\n\t\t\tcopy: 'page.profile.history.activities.commits.actions.copy'\n\t\t},\n\t\trelative_time: 'page.profile.history.activities.commits.relative_time'\n\t};\n</script>\n\n<div class=\"flex w-full justify-between gap-4 border border-surface-100\">\n\t<!-- Detail text -->\n\t<div class=\"flex flex-col flex-1\">\n\t\t<span class=\"text-surface-500\">{commit.name}</span>\n\t\t<span class=\"text-surface-400\"\n\t\t\t>{$_(i18n.relative_time, {\n\t\t\t\tvalues: { relativeTime: $date(new Date(commit.committed)) }\n\t\t\t})}</span\n\t\t>\n\t</div>\n\t<!-- SHA -->\n\t<div class=\"flex\">\n\t\t<button type=\"button\" class=\"btn-icon border border-surface-100 rounded bg-white self-start\">\n\t\t\t<Copy16 fill=\"currentColor\" />\n\t\t\t<span class=\"sr-only\">{$_(i18n.actions.copy)}</span>\n\t\t</button>\n\t\t<!-- Since I cannot successfully define font-mono here, enforce a minimum width for equally sized buttons -->\n\t\t<button\n\t\t\ttype=\"button\"\n\t\t\tclass=\"btn border border-surface-100 rounded bg-white min-w-32 self-start\"\n\t\t>\n\t\t\t{commit.hash.slice(0, 8)}\n\t\t</button>\n\t</div>\n\t<!-- Browse -->\n\t<div>\n\t\t<button type=\"button\" class=\"btn-icon border border-surface-100 rounded bg-white\">\n\t\t\t<FileDirectory16 fill=\"currentColor\" />\n\t\t\t<span class=\"sr-only\">{$_(i18n.actions.browse)}</span>\n\t\t</button>\n\t</div>\n</div>\n"],"names":["values","relativeTime","ctx","Date","committed","target","div3","anchor","cov_1gn0to8ohr","s","div0","span1","div1"],"mappings":"09vBAsCKA,OAAA,CAAAC,aAAEC,EAAA,CAAA,EAAA,IAAAC,KAAKD,EAAc,CAAA,EAAAE,SAAA,60FAuBAC,EAAAC,EAAAC,CAAA,EAAAC,EAAAC,EAAAA,sFAtBZC,EAAAC,CAAA,EAAAH,EAAA,EAAAC,EAAA,EAAA,8CAeVH,EAAAM,CAAA,EAAAJ,EAAA,EAAAC,EAAA,GAAA,wkBAhBCT,OAAA,CAAAC,aAAEC,EAAA,CAAA,EAAA,IAAAC,KAAKD,EAAc,CAAA,EAAAE,SAAA,0tCAxBhB"}

View file

@ -1,9 +0,0 @@
import{C as r}from"./CommitBody-FH4xpO6b.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./runtime-CZkC8ltm.js";import"./index-C0Lr04gB.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./tslib.es6-pJfR_DrR.js";import"./ZoomOut24-450rB1Ps.js";import"./spread-CgU5AtxT.js";const h={title:"Atoms/CommitBody",component:r,tags:["autodocs"]},t={args:{commit:{hash:"abc123def456ghi789jkl0",name:"Added moar tests.",committed:new Date().toISOString()}}};var o,m,e;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:`{
args: {
commit: {
hash: 'abc123def456ghi789jkl0',
name: 'Added moar tests.',
committed: new Date().toISOString()
}
}
}`,...(e=(m=t.parameters)==null?void 0:m.docs)==null?void 0:e.source}}};const u=["Plain"];export{t as Plain,u as __namedExportsOrder,h as default};

View file

@ -0,0 +1,10 @@
import{C as r}from"./CommitBody-bvJPbPpq.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./runtime-8AupoRbQ.js";import"./index-C0Lr04gB.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./ZoomOut24-CRRKQWCt.js";import"./spread-CgU5AtxT.js";const l={title:"Atoms/CommitBody",component:r,tags:["autodocs"]},t={args:{commit:{hash:"abc123def456ghi789jkl0",name:"Added moar tests.",committed:new Date().toISOString()}}};var o,m,e;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:`{
args: {
commit: {
hash: 'abc123def456ghi789jkl0',
name: 'Added moar tests.',
committed: new Date().toISOString()
}
}
}`,...(e=(m=t.parameters)==null?void 0:m.docs)==null?void 0:e.source}}};const h=["Plain"];export{t as Plain,h as __namedExportsOrder,l as default};
//# sourceMappingURL=CommitBody.stories-Codest8s.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"CommitBody.stories-Codest8s.js","sources":["../../stories/atoms/CommitBody.stories.ts"],"sourcesContent":["/* Stories for CommitBody atom.\n * Copyright (C) 2024 André Jaenisch\n * SPDX-FileCopyrightText: 2024 André Jaenisch\n * SPDX-License-Identifier: AGPL-3.0-or-later\n *\n * 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.\n *\n * 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.\n *\n * 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/>.\n */\n\nimport type { Meta, StoryObj } from '@storybook/svelte';\n\nimport CommitBody from '$lib/components/atoms/CommitBody.svelte';\n\nconst meta = {\n\ttitle: 'Atoms/CommitBody',\n\tcomponent: CommitBody,\n\ttags: ['autodocs']\n} satisfies Meta<CommitBody>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Plain: Story = {\n\targs: {\n\t\tcommit: {\n\t\t\thash: 'abc123def456ghi789jkl0',\n\t\t\tname: 'Added moar tests.',\n\t\t\tcommitted: new Date().toISOString()\n\t\t}\n\t}\n};\n"],"names":["meta","title","component","CommitBody","tags","Plain","args","commit","hash","name","committed","Date","toISOString","parameters","docs","source","originalSource"],"mappings":"uQAgBA,MAAMA,EAAO,CACTC,MAAO,mBACPC,UAAWC,EACXC,KAAM,CAAC,UAAQ,CACnB,EAKaC,EAAe,CACxBC,KAAI,CACAC,OAAG,CACCC,KAAM,yBACNC,KAAM,oBACNC,UAAW,IAAIC,KAAK,EAAEC,YAAI,CACnC,CACD,CACF,YAAEP,EAAAQ,WAAA,CAAA,GAAAR,EAAAQ,WAAAC,KAAA,CAAA,IAAAT,EAAAA,EAAAQ,aAAAR,YAAAA,EAAAS,KAAAC,OAAA,CAAAC,eAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAAA,IAAAX,GAAAA,EAAAA,EAAAQ,aAAAR,YAAAA,EAAAS,OAAAT,YAAAA,EAAAU,MAAA,CAAA,CAAA"}

View file

@ -1 +0,0 @@
import{S as F,c as H,a as J,d as I,e as R,m as T,b as j,t as q,f as z,h as B}from"./index-CP70Tq58.js";import{a as C,b as V,t as k,f as D,h as w,d as _,k as A,j as N,l as O,i as K,m as o,n as P}from"./lifecycle-D_bIUHQK.js";import{a as L,$ as M}from"./runtime-CZkC8ltm.js";import{G as Q,R as U}from"./ZoomOut24-450rB1Ps.js";function W(n){let a,i,m,d,s,l=n[3](new Date(n[0]))+"",c,b,t=n[4](n[5].numberOfCommits,{values:{number:n[1]}})+"",g,S,f,u,E,y,p;return m=new Q({props:{fill:"currentColor"}}),u=new U({props:{fill:"currentColor"}}),{c(){a=C("div"),i=C("span"),I(m.$$.fragment),d=V(),s=C("span"),c=k(l),b=k(" - "),g=k(t),S=V(),f=C("span"),I(u.$$.fragment),E=V(),y=k(n[2]),this.h()},l(e){a=D(e,"DIV",{class:!0});var r=w(a);i=D(r,"SPAN",{class:!0});var G=w(i);R(m.$$.fragment,G),G.forEach(_),d=A(r),s=D(r,"SPAN",{class:!0});var h=w(s);c=N(h,l),b=N(h," - "),g=N(h,t),S=A(h),f=D(h,"SPAN",{class:!0});var v=w(f);R(u.$$.fragment,v),E=A(v),y=N(v,n[2]),v.forEach(_),h.forEach(_),r.forEach(_),this.h()},h(){O(i,"class","bg-white"),O(f,"class","flex gap-2"),O(s,"class","flex gap-6 -ms-3"),O(a,"class","flex gap-6 -ms-6")},m(e,r){K(e,a,r),o(a,i),T(m,i,null),o(a,d),o(a,s),o(s,c),o(s,b),o(s,g),o(s,S),o(s,f),T(u,f,null),o(f,E),o(f,y),p=!0},p(e,[r]){(!p||r&9)&&l!==(l=e[3](new Date(e[0]))+"")&&P(c,l),(!p||r&18)&&t!==(t=e[4](e[5].numberOfCommits,{values:{number:e[1]}})+"")&&P(g,t),(!p||r&4)&&P(y,e[2])},i(e){p||(j(m.$$.fragment,e),j(u.$$.fragment,e),p=!0)},o(e){q(m.$$.fragment,e),q(u.$$.fragment,e),p=!1},d(e){e&&_(a),z(m),z(u)}}}function X(n,a,i){let m,d;B(n,L,t=>i(3,m=t)),B(n,M,t=>i(4,d=t));let{commitDate:s="1970-01-01"}=a,{numberOfCommits:l=0}=a,{repoName:c=""}=a;const b={numberOfCommits:"page.profile.history.activities.commits.number"};return n.$$set=t=>{"commitDate"in t&&i(0,s=t.commitDate),"numberOfCommits"in t&&i(1,l=t.numberOfCommits),"repoName"in t&&i(2,c=t.repoName)},[s,l,c,m,d,b]}class Y extends F{constructor(a){super(),H(this,a,X,W,J,{commitDate:0,numberOfCommits:1,repoName:2})}}Y.__docgen={version:3,name:"CommitDate.svelte",data:[{keywords:[],visibility:"public",description:"The commit date as ISOString.",name:"commitDate",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:"1970-01-01"},{keywords:[],visibility:"public",description:"Number of commits on this repo at this date.",name:"numberOfCommits",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"number",type:"number"},defaultValue:0},{keywords:[],visibility:"public",description:"The name of the repo the commit is associated with.",name:"repoName",kind:"let",static:!1,readonly:!1,type:{kind:"type",text:"string",type:"string"},defaultValue:""}],computed:[],methods:[],components:[],description:null,keywords:[],events:[],slots:[],refs:[]};export{Y as C};

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"version":3,"file":"CommitDate-DhrW5QXO.js","sources":["../../src/lib/components/atoms/CommitDate.svelte"],"sourcesContent":["<!--\nCommitDate atom.\nCopyright (C) 2024 André Jaenisch\nSPDX-FileCopyrightText: 2024 André Jaenisch\nSPDX-License-Identifier: AGPL-3.0-or-later\n\nThis 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.\n\nThis 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.\n\nYou should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.\n-->\n\n<script>\n\timport { _, date } from 'svelte-i18n';\n\timport { GitCommit24, Repo24 } from 'svelte-octicons';\n\n\t/**\n\t * The commit date as ISOString.\n\t */\n\texport let commitDate = '1970-01-01';\n\n\t/**\n\t * Number of commits on this repo at this date.\n\t */\n\texport let numberOfCommits = 0;\n\n\t/**\n\t * The name of the repo the commit is associated with.\n\t */\n\texport let repoName = '';\n\n\tconst i18n = {\n\t\tnumberOfCommits: 'page.profile.history.activities.commits.number'\n\t};\n</script>\n\n<div class=\"flex gap-6 -ms-6\">\n\t<span class=\"bg-white\">\n\t\t<GitCommit24 fill=\"currentColor\" />\n\t</span>\n\t<span class=\"flex gap-6 -ms-3\">\n\t\t<!-- Pluralisation: https://lokalise.com/blog/svelte-i18n/#Pluralization_with_Svelte_i18n -->\n\t\t{$date(new Date(commitDate))} - {$_(i18n.numberOfCommits, {\n\t\t\tvalues: { number: numberOfCommits }\n\t\t})}\n\t\t<span class=\"flex gap-2\">\n\t\t\t<Repo24 fill=\"currentColor\" />\n\t\t\t{repoName}\n\t\t</span>\n\t</span>\n</div>\n"],"names":["div","span0","cov_1ketzn943d","s"],"mappings":"ixhBA2CmCA,EAAAC,CAAA,EAAAC,EAAA,EAAAC"}

View file

@ -0,0 +1,8 @@
import{C as r}from"./CommitDate-DhrW5QXO.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./runtime-8AupoRbQ.js";import"./index-C0Lr04gB.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./ZoomOut24-CRRKQWCt.js";import"./spread-CgU5AtxT.js";const d={title:"Atoms/CommitDate",component:r,tags:["autodocs"]},t={args:{commitDate:new Date().toISOString().slice(0,10),numberOfCommits:2,repoName:"Anvil Testing"}};var e,o,m;t.parameters={...t.parameters,docs:{...(e=t.parameters)==null?void 0:e.docs,source:{originalSource:`{
args: {
commitDate: new Date().toISOString().slice(0, '1970-01-01'.length),
numberOfCommits: 2,
repoName: 'Anvil Testing'
}
}`,...(m=(o=t.parameters)==null?void 0:o.docs)==null?void 0:m.source}}};const u=["Plain"];export{t as Plain,u as __namedExportsOrder,d as default};
//# sourceMappingURL=CommitDate.stories-B-uKtPtI.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"CommitDate.stories-B-uKtPtI.js","sources":["../../stories/atoms/CommitDate.stories.ts"],"sourcesContent":["/* Stories for CommitDate atom.\n * Copyright (C) 2024 André Jaenisch\n * SPDX-FileCopyrightText: 2024 André Jaenisch\n * SPDX-License-Identifier: AGPL-3.0-or-later\n *\n * 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.\n *\n * 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.\n *\n * 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/>.\n */\n\nimport type { Meta, StoryObj } from '@storybook/svelte';\n\nimport CommitDate from '$lib/components/atoms/CommitDate.svelte';\n\nconst meta = {\n\ttitle: 'Atoms/CommitDate',\n\tcomponent: CommitDate,\n\ttags: ['autodocs']\n} satisfies Meta<CommitDate>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Plain: Story = {\n\targs: {\n\t\tcommitDate: new Date().toISOString().slice(0, '1970-01-01'.length),\n\t\tnumberOfCommits: 2,\n\t\trepoName: 'Anvil Testing'\n\t}\n};\n"],"names":["meta","title","component","CommitDate","tags","Plain","args","commitDate","Date","toISOString","slice","numberOfCommits","repoName","parameters","docs","source","originalSource"],"mappings":"uQAgBA,MAAMA,EAAO,CACTC,MAAO,mBACPC,UAAWC,EACXC,KAAM,CAAC,UAAQ,CACnB,EAKaC,EAAe,CACxBC,KAAI,CACAC,eAAgBC,OAAOC,YAAcC,EAAAA,MAAM,EAAG,EAAe,EAC7DC,gBAAa,EACbC,SAAU,eAChB,CACF,YAAEP,EAAAQ,WAAA,CAAA,GAAAR,EAAAQ,WAAAC,KAAA,CAAA,IAAAT,EAAAA,EAAAQ,aAAAR,YAAAA,EAAAS,KAAAC,OAAA,CAAAC,eAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAAA,IAAAX,GAAAA,EAAAA,EAAAQ,aAAAR,YAAAA,EAAAS,OAAAT,YAAAA,EAAAU,MAAA,CAAA,CAAA"}

View file

@ -1,7 +0,0 @@
import{C as r}from"./CommitDate-19ChJWCX.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./runtime-CZkC8ltm.js";import"./index-C0Lr04gB.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./tslib.es6-pJfR_DrR.js";import"./ZoomOut24-450rB1Ps.js";import"./spread-CgU5AtxT.js";const u={title:"Atoms/CommitDate",component:r,tags:["autodocs"]},t={args:{commitDate:new Date().toISOString().slice(0,10),numberOfCommits:2,repoName:"Anvil Testing"}};var e,o,m;t.parameters={...t.parameters,docs:{...(e=t.parameters)==null?void 0:e.docs,source:{originalSource:`{
args: {
commitDate: new Date().toISOString().slice(0, '1970-01-01'.length),
numberOfCommits: 2,
repoName: 'Anvil Testing'
}
}`,...(m=(o=t.parameters)==null?void 0:o.docs)==null?void 0:m.source}}};const D=["Plain"];export{t as Plain,D as __namedExportsOrder,u as default};

View file

@ -1 +1,2 @@
import{b as e}from"./ZoomOut24-450rB1Ps.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./spread-CgU5AtxT.js";const n={title:"Icons/Copy16",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 i=["Plain"];export{o as Plain,i as __namedExportsOrder,n as default};
import{b as e}from"./ZoomOut24-CRRKQWCt.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./spread-CgU5AtxT.js";const n={title:"Icons/Copy16",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 i=["Plain"];export{o as Plain,i as __namedExportsOrder,n as default};
//# sourceMappingURL=Copy16.stories-f-KV0ZMM.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"Copy16.stories-f-KV0ZMM.js","sources":["../../stories/icons/Copy16.stories.ts"],"sourcesContent":["/*\n * MIT License\n *\n * Copyright (c) 2020-present Eric Liu\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n */\n\n/*\n * SPDX-FileCopyrightText: 2020 - 2024 Eric Liu\n * SPDX-License-Identifier: MIT\n */\n\nimport type { Meta, StoryObj } from '@storybook/svelte';\nimport { Copy16 } from 'svelte-octicons';\n\nconst meta = {\n\ttitle: 'Icons/Copy16',\n\tcomponent: Copy16,\n\ttags: ['autodocs'],\n\targTypes: {\n\t\tfill: {\n\t\t\tcontrol: 'color'\n\t\t}\n\t}\n} satisfies Meta<Copy16>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Plain: Story = {};\n"],"names":["meta","title","component","Copy16","tags","argTypes","fill","control","Plain","parameters","docs","source","originalSource"],"mappings":"qIAqBA,MAAMA,EAAO,CACTC,MAAO,eACPC,UAAWC,EACXC,KAAM,CAAC,UAAS,EAChBC,SAAQ,CACJC,KAAC,CACGC,QAAO,OAChB,CACD,CACF,EAKaC,EAAe,CAAC,YAAEA,EAAAC,WAAA,CAAA,GAAAD,EAAAC,WAAAC,KAAA,CAAA,IAAAF,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,KAAAC,OAAA,CAAAC,eAAA,KAAA,IAAAJ,GAAAA,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,OAAAF,YAAAA,EAAAG,MAAA,CAAA,CAAA"}

View file

@ -1 +0,0 @@
import{S as b,c as g,a as v,n as c}from"./index-CP70Tq58.js";import{e as m,i as k,d,a as f,t as S,H as D,f as u,h as p,j as w,c as C,l as _,m as y}from"./lifecycle-D_bIUHQK.js";function h(n){let a,e,t,l,o;return{c(){a=f("span"),e=S("created "),t=f("time"),l=new D(!1),this.h()},l(i){a=u(i,"SPAN",{});var s=p(a);e=w(s,"created "),t=u(s,"TIME",{datetime:!0});var r=p(t);l=C(r,!1),r.forEach(d),s.forEach(d),this.h()},h(){var i;l.a=null,_(t,"datetime",o=(i=n[0])==null?void 0:i.toISOString())},m(i,s){k(i,a,s),y(a,e),y(a,t),l.m(n[1],t)},p(i,s){var r;s&2&&l.p(i[1]),s&1&&o!==(o=(r=i[0])==null?void 0:r.toISOString())&&_(t,"datetime",o)},d(i){i&&d(a)}}}function I(n){let a,e=n[0]&&n[1]&&h(n);return{c(){e&&e.c(),a=m()},l(t){e&&e.l(t),a=m()},m(t,l){e&&e.m(t,l),k(t,a,l)},p(t,[l]){t[0]&&t[1]?e?e.p(t,l):(e=h(t),e.c(),e.m(a.parentNode,a)):e&&(e.d(1),e=null)},i:c,o:c,d(t){t&&d(a),e&&e.d(t)}}}function E(n,a,e){let t,{created_at:l=null}=a,{locale:o="en"}=a;return n.$$set=i=>{"created_at"in i&&e(0,l=i.created_at),"locale"in i&&e(2,o=i.locale)},n.$$.update=()=>{n.$$.dirty&5&&e(1,t=new Intl.DateTimeFormat(o).format(l))},[l,t,o]}class H extends b{constructor(a){super(),g(this,a,E,I,v,{created_at:0,locale:2})}}H.__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:[],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{H as C};

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"version":3,"file":"Created-_AWArHoy.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}

View file

@ -1,6 +1,7 @@
import{C as d}from"./Created-TehUZe-O.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";const l={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:`{
import{C as d}from"./Created-_AWArHoy.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";const l={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 g=["Plain","Missing"];export{a as Missing,e as Plain,g as __namedExportsOrder,l as default};
//# sourceMappingURL=Created.stories-BZPQ4yGu.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"Created.stories-BZPQ4yGu.js","sources":["../../stories/atoms/Created.stories.ts"],"sourcesContent":["/* Stories for Created atom.\n * Copyright (C) 2024 André Jaenisch\n * SPDX-FileCopyrightText: 2024 André Jaenisch\n * SPDX-License-Identifier: AGPL-3.0-or-later\n *\n * 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.\n *\n * 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.\n *\n * 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/>.\n */\n\nimport type { Meta, StoryObj } from '@storybook/svelte';\n\nimport Created from '$lib/components/atoms/Created.svelte';\n\nconst meta = {\n\ttitle: 'Atoms/Created',\n\tcomponent: Created,\n\ttags: ['autodocs'],\n\targTypes: {\n\t\tcreated_at: { control: 'date' },\n\t\tlocale: {\n\t\t\tcontrol: 'radio',\n\t\t\toptions: ['en', 'de', 'he']\n\t\t}\n\t}\n} satisfies Meta<Created>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Plain: Story = {\n\targs: {\n\t\tcreated_at: new Date(),\n\t\tlocale: 'en'\n\t}\n};\n\nexport const Missing: Story = {};\n"],"names":["meta","title","component","Created","tags","argTypes","created_at","control","locale","options","Plain","args","Date","Missing","parameters","docs","source","originalSource"],"mappings":"sGAgBA,MAAMA,EAAO,CACTC,MAAO,gBACPC,UAAWC,EACXC,KAAM,CAAC,UAAS,EAChBC,SAAQ,CACJC,WAAY,CAAEC,QAAS,MAAG,EAC1BC,OAAG,CACCD,QAAQ,QACRE,QAAS,CAAC,KAAM,KAAE,IAAA,CAC3B,CACD,CACF,EAKaC,EAAe,CACxBC,KAAI,CACAL,eAAgBM,KAChBJ,OAAM,IACZ,CACF,EAEaK,EAAiB,CAAC,YAAEH,EAAAI,WAAA,CAAA,GAAAJ,EAAAI,WAAAC,KAAA,CAAA,IAAAL,EAAAA,EAAAI,aAAAJ,YAAAA,EAAAK,KAAAC,OAAA,CAAAC,eAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAAA,IAAAP,GAAAA,EAAAA,EAAAI,aAAAJ,YAAAA,EAAAK,OAAAL,YAAAA,EAAAM,MAAA,CAAA,CAAA,YAAAH,EAAAC,WAAA,CAAA,GAAAD,EAAAC,WAAAC,KAAA,CAAA,IAAAF,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,KAAAC,OAAA,CAAAC,eAAA,KAAA,IAAAJ,GAAAA,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,OAAAF,YAAAA,EAAAG,MAAA,CAAA,CAAA"}

View file

@ -1 +0,0 @@
import{S as H,c as P,a as V,n as w,h as q}from"./index-CP70Tq58.js";import{a as _,t as y,b as j,e as D,f as b,h as k,j as h,d as c,k as E,l as g,i as u,m,n as N}from"./lifecycle-D_bIUHQK.js";import{$ as A}from"./runtime-CZkC8ltm.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 s=k(e);n=h(s,"("),o=h(s,l[2]),p=h(s,")"),s.forEach(c),this.h()},h(){g(e,"class","leading-normal my-1")},m(a,s){u(a,e,s),m(e,n),m(e,o),m(e,p)},p(a,s){s&4&&N(o,a[2])},d(a){a&&c(e)}}}function C(l){let e,n,o=l[3](l[1].heading)+"",p,a,s,r,f,i=l[2]&&S(l);return{c(){e=_("h1"),n=_("span"),p=y(o),a=j(),s=y(l[0]),r=j(),i&&i.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(c),a=E(d),s=h(d,l[0]),d.forEach(c),r=E(t),i&&i.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),m(e,n),m(n,p),m(e,a),m(e,s),u(t,r,d),i&&i.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(s,t[0]),t[2]?i?i.p(t,d):(i=S(t),i.c(),i.m(f.parentNode,f)):i&&(i.d(1),i=null)},i:w,o:w,d(t){t&&(c(e),c(r),c(f)),i&&i.d(t)}}}function T(l,e,n){let o;q(l,A,r=>n(3,o=r));let{displayName:p=""}=e,{i18n:a={heading:""}}=e,{pronoun:s=""}=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,s=r.pronoun)},[p,a,s,o]}class U extends H{constructor(e){super(),P(this,e,T,C,V,{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};

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"version":3,"file":"DisplayName-De32hBd4.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}

View file

@ -1,16 +0,0 @@
import{D as p}from"./DisplayName-CjT3AqU3.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./runtime-CZkC8ltm.js";import"./index-C0Lr04gB.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./tslib.es6-pJfR_DrR.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};

View file

@ -0,0 +1,17 @@
import{D as p}from"./DisplayName-De32hBd4.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./runtime-8AupoRbQ.js";import"./index-C0Lr04gB.js";import"./_commonjsHelpers-Cpj98o6Y.js";const l={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 D=["WithPronoun","WithoutPronoun"];export{e as WithPronoun,a as WithoutPronoun,D as __namedExportsOrder,l as default};
//# sourceMappingURL=DisplayName.stories-DooryBPe.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"DisplayName.stories-DooryBPe.js","sources":["../../stories/atoms/DisplayName.stories.ts"],"sourcesContent":["/* Stories for DisplayName atom.\n * Copyright (C) 2024 André Jaenisch\n * SPDX-FileCopyrightText: 2024 André Jaenisch\n * SPDX-License-Identifier: AGPL-3.0-or-later\n *\n * 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.\n *\n * 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.\n *\n * 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/>.\n */\n\nimport type { Meta, StoryObj } from '@storybook/svelte';\n\nimport DisplayName from '$lib/components/atoms/DisplayName.svelte';\n\nconst meta = {\n\ttitle: 'Atoms/DisplayName',\n\tcomponent: DisplayName,\n\ttags: ['autodocs']\n} satisfies Meta<DisplayName>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const WithPronoun: Story = {\n\targs: {\n\t\tdisplayName: 'Jane Doe',\n\t\ti18n: {\n\t\t\theading: 'page.profile.heading'\n\t\t},\n\t\tpronoun: 'she/her'\n\t}\n};\n\nexport const WithoutPronoun: Story = {\n\targs: {\n\t\tdisplayName: 'Jane Doe',\n\t\ti18n: {\n\t\t\theading: 'page.profile.heading'\n\t\t}\n\t}\n};\n"],"names":["meta","title","component","DisplayName","tags","WithPronoun","args","displayName","i18n","heading","pronoun","WithoutPronoun","parameters","docs","source","originalSource"],"mappings":"2MAgBA,MAAMA,EAAO,CACTC,MAAO,oBACPC,UAAWC,EACXC,KAAM,CAAC,UAAQ,CACnB,EAKaC,EAAqB,CAC9BC,KAAI,CACAC,YAAa,WACbC,KAAC,CACGC,QAAS,sBACjB,EACIC,QAAS,SACf,CACF,EAEaC,EAAwB,CACjCL,KAAI,CACAC,YAAa,WACbC,KAAC,CACGC,QAAS,sBAClB,CACD,CACF,YAAEJ,EAAAO,WAAA,CAAA,GAAAP,EAAAO,WAAAC,KAAA,CAAA,IAAAR,EAAAA,EAAAO,aAAAP,YAAAA,EAAAQ,KAAAC,OAAA,CAAAC,eAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAAA,IAAAV,GAAAA,EAAAA,EAAAO,aAAAP,YAAAA,EAAAQ,OAAAR,YAAAA,EAAAS,MAAA,CAAA,CAAA,YAAAH,EAAAC,WAAA,CAAA,GAAAD,EAAAC,WAAAC,KAAA,CAAA,IAAAF,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,KAAAC,OAAA,CAAAC,eAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAAA,IAAAJ,GAAAA,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,OAAAF,YAAAA,EAAAG,MAAA,CAAA,CAAA"}

View file

@ -1,2 +0,0 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-CKbopum4.js","./index-DNVTMUiP.js","./index-B9XBPmR5.js","./iframe-BODzaJGd.js","./_commonjsHelpers-Cpj98o6Y.js","./tslib.es6-pJfR_DrR.js","./index-DYADbu9O.js","./index-B4WlZuP_.js","./index-DrFu-skq.js"])))=>i.map(i=>d[i]);
import{_ as d}from"./iframe-BODzaJGd.js";import{r as h,R as o,e as i,f as E,A as R,H as x,D as y}from"./index-B9XBPmR5.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./tslib.es6-pJfR_DrR.js";import"./index-DYADbu9O.js";import"./index-B4WlZuP_.js";import"./index-DrFu-skq.js";var m={},u=h;m.createRoot=u.createRoot,m.hydrateRoot=u.hydrateRoot;var n=new Map,D=({callback:t,children:e})=>{let r=i.useRef();return i.useLayoutEffect(()=>{r.current!==t&&(r.current=t,t())},[t]),e},v=async(t,e,r)=>{let s=await _(e,r);return new Promise(a=>{s.render(o.createElement(D,{callback:()=>a(null)},t))})},w=(t,e)=>{let r=n.get(t);r&&(r.unmount(),n.delete(t))},_=async(t,e)=>{let r=n.get(t);return r||(r=m.createRoot(t,e),n.set(t,r)),r},f={code:E,a:R,...x},g=class extends i.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){let{showException:e}=this.props;e(t)}render(){let{hasError:t}=this.state,{children:e}=this.props;return t?null:o.createElement(o.Fragment,null,e)}},T=class{constructor(){this.render=async(t,e,r)=>{let s={...f,...e==null?void 0:e.components},a=y;return new Promise((p,l)=>{d(async()=>{const{MDXProvider:c}=await import("./index-CKbopum4.js");return{MDXProvider:c}},__vite__mapDeps([0,1,2,3,4,5,6,7,8]),import.meta.url).then(({MDXProvider:c})=>v(o.createElement(g,{showException:l,key:Math.random()},o.createElement(c,{components:s},o.createElement(a,{context:t,docsParameter:e}))),r)).then(()=>p())})},this.unmount=t=>{w(t)}}};export{T as DocsRenderer,f as defaultComponents};

View file

@ -0,0 +1,3 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index-DE6KOxVj.js","./index-BiGGWifx.js","./index-DJZ9AeUI.js","./iframe-DwnwnWFz.js","./_commonjsHelpers-Cpj98o6Y.js","./index-J1TP6alb.js","./index-B659rHmc.js","./index-DrFu-skq.js"])))=>i.map(i=>d[i]);
import{_ as h}from"./iframe-DwnwnWFz.js";import{aj as d,ah as o,ai as i,ak as E,al as R,am as x,an as y}from"./index-DJZ9AeUI.js";import"../sb-preview/runtime.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./index-J1TP6alb.js";import"./index-B659rHmc.js";import"./index-DrFu-skq.js";var m={},u=d;m.createRoot=u.createRoot,m.hydrateRoot=u.hydrateRoot;var n=new Map,v=({callback:t,children:e})=>{let r=i.useRef();return i.useLayoutEffect(()=>{r.current!==t&&(r.current=t,t())},[t]),e},w=async(t,e,r)=>{let a=await _(e,r);return new Promise(s=>{a.render(o.createElement(v,{callback:()=>s(null)},t))})},D=(t,e)=>{let r=n.get(t);r&&(r.unmount(),n.delete(t))},_=async(t,e)=>{let r=n.get(t);return r||(r=m.createRoot(t,e),n.set(t,r)),r},f={code:E,a:R,...x},g=class extends i.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){let{showException:e}=this.props;e(t)}render(){let{hasError:t}=this.state,{children:e}=this.props;return t?null:o.createElement(o.Fragment,null,e)}},T=class{constructor(){this.render=async(t,e,r)=>{let a={...f,...e==null?void 0:e.components},s=y;return new Promise((p,l)=>{h(async()=>{const{MDXProvider:c}=await import("./index-DE6KOxVj.js");return{MDXProvider:c}},__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url).then(({MDXProvider:c})=>w(o.createElement(g,{showException:l,key:Math.random()},o.createElement(c,{components:a},o.createElement(s,{context:t,docsParameter:e}))),r)).then(()=>p())})},this.unmount=t=>{D(t)}}};export{T as DocsRenderer,f as defaultComponents};
//# sourceMappingURL=DocsRenderer-PKQXORMH-DLxU8e9l.js.map

File diff suppressed because one or more lines are too long

View file

@ -1 +1,2 @@
import{i as t}from"./ZoomOut24-450rB1Ps.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./spread-CgU5AtxT.js";const i={title:"Icons/EyeClosed16",component:t,tags:["autodocs"],argTypes:{fill:{control:"color"}}},o={};var r,e,s;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(s=(e=o.parameters)==null?void 0:e.docs)==null?void 0:s.source}}};const l=["Plain"];export{o as Plain,l as __namedExportsOrder,i as default};
import{i as t}from"./ZoomOut24-CRRKQWCt.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./spread-CgU5AtxT.js";const i={title:"Icons/EyeClosed16",component:t,tags:["autodocs"],argTypes:{fill:{control:"color"}}},o={};var r,e,s;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(s=(e=o.parameters)==null?void 0:e.docs)==null?void 0:s.source}}};const l=["Plain"];export{o as Plain,l as __namedExportsOrder,i as default};
//# sourceMappingURL=EyeClosed16.stories-Crylu0Cn.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"EyeClosed16.stories-Crylu0Cn.js","sources":["../../stories/icons/EyeClosed16.stories.ts"],"sourcesContent":["/*\n * MIT License\n *\n * Copyright (c) 2020-present Eric Liu\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n */\n\n/*\n * SPDX-FileCopyrightText: 2020 - 2024 Eric Liu\n * SPDX-License-Identifier: MIT\n */\n\nimport type { Meta, StoryObj } from '@storybook/svelte';\nimport { EyeClosed16 } from 'svelte-octicons';\n\nconst meta = {\n\ttitle: 'Icons/EyeClosed16',\n\tcomponent: EyeClosed16,\n\ttags: ['autodocs'],\n\targTypes: {\n\t\tfill: {\n\t\t\tcontrol: 'color'\n\t\t}\n\t}\n} satisfies Meta<EyeClosed16>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Plain: Story = {};\n"],"names":["meta","title","component","EyeClosed16","tags","argTypes","fill","control","Plain","parameters","docs","source","originalSource"],"mappings":"qIAqBA,MAAMA,EAAO,CACTC,MAAO,oBACPC,UAAWC,EACXC,KAAM,CAAC,UAAS,EAChBC,SAAQ,CACJC,KAAC,CACGC,QAAO,OAChB,CACD,CACF,EAKaC,EAAe,CAAC,YAAEA,EAAAC,WAAA,CAAA,GAAAD,EAAAC,WAAAC,KAAA,CAAA,IAAAF,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,KAAAC,OAAA,CAAAC,eAAA,KAAA,IAAAJ,GAAAA,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,OAAAF,YAAAA,EAAAG,MAAA,CAAA,CAAA"}

View file

@ -1 +1,2 @@
import{F as a}from"./ZoomOut24-450rB1Ps.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./spread-CgU5AtxT.js";const p={title:"Icons/FileDirectory16",component:a,tags:["autodocs"],argTypes:{fill:{control:"color"}}},o={};var r,e,t;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(t=(e=o.parameters)==null?void 0:e.docs)==null?void 0:t.source}}};const l=["Plain"];export{o as Plain,l as __namedExportsOrder,p as default};
import{F as a}from"./ZoomOut24-CRRKQWCt.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./spread-CgU5AtxT.js";const p={title:"Icons/FileDirectory16",component:a,tags:["autodocs"],argTypes:{fill:{control:"color"}}},o={};var r,e,t;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:"{}",...(t=(e=o.parameters)==null?void 0:e.docs)==null?void 0:t.source}}};const l=["Plain"];export{o as Plain,l as __namedExportsOrder,p as default};
//# sourceMappingURL=FileDirectory16.stories-OPWrmww5.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"FileDirectory16.stories-OPWrmww5.js","sources":["../../stories/icons/FileDirectory16.stories.ts"],"sourcesContent":["/*\n * MIT License\n *\n * Copyright (c) 2020-present Eric Liu\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n */\n\n/*\n * SPDX-FileCopyrightText: 2020 - 2024 Eric Liu\n * SPDX-License-Identifier: MIT\n */\n\nimport type { Meta, StoryObj } from '@storybook/svelte';\nimport { FileDirectory16 } from 'svelte-octicons';\n\nconst meta = {\n\ttitle: 'Icons/FileDirectory16',\n\tcomponent: FileDirectory16,\n\ttags: ['autodocs'],\n\targTypes: {\n\t\tfill: {\n\t\t\tcontrol: 'color'\n\t\t}\n\t}\n} satisfies Meta<FileDirectory16>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Plain: Story = {};\n"],"names":["meta","title","component","FileDirectory16","tags","argTypes","fill","control","Plain","parameters","docs","source","originalSource"],"mappings":"qIAqBA,MAAMA,EAAO,CACTC,MAAO,wBACPC,UAAWC,EACXC,KAAM,CAAC,UAAS,EAChBC,SAAQ,CACJC,KAAC,CACGC,QAAO,OAChB,CACD,CACF,EAKaC,EAAe,CAAC,YAAEA,EAAAC,WAAA,CAAA,GAAAD,EAAAC,WAAAC,KAAA,CAAA,IAAAF,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,KAAAC,OAAA,CAAAC,eAAA,KAAA,IAAAJ,GAAAA,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,OAAAF,YAAAA,EAAAG,MAAA,CAAA,CAAA"}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"version":3,"file":"FileTable-B8nDvUIs.js","sources":["../../src/lib/components/organisms/FileTable.svelte"],"sourcesContent":["<!--\nFileTable organism.\nCopyright (C) 2024 André Jaenisch\nSPDX-FileCopyrightText: 2024 André Jaenisch\nSPDX-License-Identifier: AGPL-3.0-or-later\n\nThis 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.\n\nThis 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.\n\nYou should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.\n-->\n\n<script>\n\timport {\n\t\tEyeClosed16,\n\t\tRepoForked16,\n\t\tRepo24,\n\t\tStar16,\n\t\tTriangleDown16,\n\t\tTriangleDown24\n\t} from 'svelte-octicons';\n\timport { _ } from 'svelte-i18n';\n\n\t/**\n\t * Translation keys.\n\t */\n\texport let i18n = {\n\t\theading: {\n\t\t\tlastUpdated: '',\n\t\t\tname: ''\n\t\t},\n\t\ttable: {\n\t\t\tupdated: ''\n\t\t}\n\t};\n\n\t/**\n\t * Available projects.\n\t */\n\texport let projects = [];\n</script>\n\n<table class=\"w-4/5 min-w-96 px-4 mx-auto\">\n\t<thead>\n\t\t<tr class=\"flex justify-between gap-4 bg-surface-100 h-8\">\n\t\t\t<th class=\"flex text-surface-400 mx-4\">\n\t\t\t\t{$_(i18n.heading.name)}\n\t\t\t\t<TriangleDown24 fill=\"currentColor\" />\n\t\t\t</th>\n\t\t\t<th class=\"text-surface-400 mx-4\">\n\t\t\t\t{$_(i18n.heading.lastUpdated)}\n\t\t\t</th>\n\t\t</tr>\n\t</thead>\n\t<tbody>\n\t\t{#each projects as project}\n\t\t\t<tr class=\"flex justify-between gap-4 bg-white border\">\n\t\t\t\t<td class=\"flex mx-4 gap-4\">\n\t\t\t\t\t<Repo24 fill=\"currentColor\" />\n\t\t\t\t\t<div class=\"flex flex-col\">\n\t\t\t\t\t\t<div class=\"flex\">\n\t\t\t\t\t\t\t<span class=\"text-primary-500\">{project.name}</span>\n\t\t\t\t\t\t\t{#each project.members as member}\n\t\t\t\t\t\t\t\t<a href=\"/people/{member.slug}\">\n\t\t\t\t\t\t\t\t\t<img src={member.avatar} alt={member.name} />\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"text-surface-400\">\n\t\t\t\t\t\t\t{project.description}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"flex gap-2\">\n\t\t\t\t\t\t\t{#each project.tags as tag}\n\t\t\t\t\t\t\t\t<a href={tag.link} class=\"bg-primary-100 text-primary-500 rounded-full px-2\">\n\t\t\t\t\t\t\t\t\t{tag.name}\n\t\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t\t{/each}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</td>\n\t\t\t\t<td>\n\t\t\t\t\t<div class=\"flex flex-col px-4 py-4\">\n\t\t\t\t\t\t<div class=\"flex justify-between gap-4\">\n\t\t\t\t\t\t\t<button type=\"submit\" class=\"bg-white text-surface-200 rounded border px-4 py-2\">\n\t\t\t\t\t\t\t\t<RepoForked16 fill=\"currentColor\" />\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t<button type=\"submit\" class=\"bg-white text-surface-200 rounded border px-4 py-2\">\n\t\t\t\t\t\t\t\t<Star16 fill=\"currentColor\" />\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t<button type=\"submit\" class=\"bg-white text-surface-200 rounded border px-4 py-2 flex\">\n\t\t\t\t\t\t\t\t<EyeClosed16 fill=\"currentColor\" />\n\t\t\t\t\t\t\t\t<TriangleDown16 fill=\"currentColor\" />\n\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class=\"text-surface-400\">\n\t\t\t\t\t\t\t{$_(i18n.table.updated, {\n\t\t\t\t\t\t\t\tvalues: {\n\t\t\t\t\t\t\t\t\trelativeTime: project.lastUpdated.toISOString()\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</td>\n\t\t\t</tr>\n\t\t{/each}\n\t</tbody>\n</table>\n"],"names":["values","append_hydration","div4","button1","cov_97ddjplgj","s","button2","div6","div5","projects","b","$$props"],"mappings":"w15DAiEmBA,OAAA,27JAAAC,EADOC,EAAAC,CAAA,EAAAC,EAAA,EAAAC,EAAA,GAAA,oDAC2BH,EAAAI,CAAA,EAAAF,EAAA,EAAAC,EAAA,GAAA,oGAAdE,EAAAC,CAAA,EAAAJ,EAAA,EAAAC,EAAA,GAAA,gwCAApBL,CAAAA,+hJA5CMS,SAAAA,GAAAL,EAAA,EAAAM,iBAAAN,EAAA,EAAAC,EAAAM,GAAAA,IAAAA,GAAAP,OAAAA,EAAA,EAAAC"}

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
import{w as d,a as g}from"./chunk-FAE4I7JY-D8NatdpV.js";import{F as u}from"./FileTable-BY0AF4yr.js";import"./chunk-MZXVCX43-5rTpxkNE.js";import"./v4-D8aEg3BZ.js";import"./index-DYADbu9O.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./each-C4g42ehH.js";import"./ZoomOut24-450rB1Ps.js";import"./spread-CgU5AtxT.js";import"./runtime-CZkC8ltm.js";import"./index-C0Lr04gB.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./tslib.es6-pJfR_DrR.js";const T={title:"Organisms/FileTable",component:u,tags:["autodocs"],args:{sb:"Templates/Profile"},argTypes:{onSubmit:{action:"submit"},sb:{control:"radio",options:["Templates/Profile"]}},decorators:[d,g]},e={args:{i18n:{heading:{lastUpdated:"page.projects.table.heading.last_updated",name:"page.projects.table.heading.name"},table:{updated:"page.projects.file_table.updated"}},projects:[]}},a={args:{i18n:{heading:{lastUpdated:"page.projects.table.heading.last_updated",name:"page.projects.table.heading.name"},table:{updated:"page.projects.file_table.updated"}},projects:[{name:"Project A",description:"This software project is a web-based application that will allow users to book appointments online.",avatar:"https://example.com",lastUpdated:new Date(Date.now()-3*30*24*60*60*1e3),members:[{name:"Person A",avatar:"https://example.com",slug:"a"},{name:"Person B",avatar:"https://example.com",slug:"b"},{name:"Person C",avatar:"https://example.com",slug:"c"}],tags:[{name:"ActivityPub",link:"/tag/ActivityPub"},{name:"css",link:"/tag/css"},{name:"guile",link:"/tag/guile"}]}]}},t={args:{i18n:{heading:{lastUpdated:"page.projects.table.heading.last_updated",name:"page.projects.table.heading.name"},table:{updated:"page.projects.file_table.updated"}},projects:[{name:"Project A",description:"This software project is a web-based application that will allow users to book appointments online.",avatar:"https://example.com",lastUpdated:new Date(Date.now()-3*30*24*60*60*1e3),members:[{name:"Person A",avatar:"https://example.com",slug:"a"},{name:"Person B",avatar:"https://example.com",slug:"b"},{name:"Person C",avatar:"https://example.com",slug:"c"}],tags:[{name:"ActivityPub",link:"/tag/ActivityPub"},{name:"css",link:"/tag/css"},{name:"guile",link:"/tag/guile"}]},{name:"Project B",description:"This software project is a web-based application that will allow users to book appointments online.",avatar:"https://example.com",lastUpdated:new Date(Date.now()-3*30*24*60*60*1e3),members:[{name:"Person A",avatar:"https://example.com",slug:"a"},{name:"Person B",avatar:"https://example.com",slug:"b"}],tags:[{name:"ActivityPub",link:"/tag/ActivityPub"},{name:"css",link:"/tag/css"},{name:"guile",link:"/tag/guile"}]}]}};var n,s,o;e.parameters={...e.parameters,docs:{...(n=e.parameters)==null?void 0:n.docs,source:{originalSource:`{
import{w as d,a as g}from"./chunk-NQQ3TO7D-D125W6ms.js";import{F as u}from"./FileTable-B8nDvUIs.js";import"./chunk-454WOBUV-5rTpxkNE.js";import"./v4-D8aEg3BZ.js";import"./index-J1TP6alb.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./each-C4g42ehH.js";import"./ZoomOut24-CRRKQWCt.js";import"./spread-CgU5AtxT.js";import"./runtime-8AupoRbQ.js";import"./index-C0Lr04gB.js";import"./_commonjsHelpers-Cpj98o6Y.js";const U={title:"Organisms/FileTable",component:u,tags:["autodocs"],args:{sb:"Templates/Profile"},argTypes:{onSubmit:{action:"submit"},sb:{control:"radio",options:["Templates/Profile"]}},decorators:[d,g]},e={args:{i18n:{heading:{lastUpdated:"page.projects.table.heading.last_updated",name:"page.projects.table.heading.name"},table:{updated:"page.projects.file_table.updated"}},projects:[]}},a={args:{i18n:{heading:{lastUpdated:"page.projects.table.heading.last_updated",name:"page.projects.table.heading.name"},table:{updated:"page.projects.file_table.updated"}},projects:[{name:"Project A",description:"This software project is a web-based application that will allow users to book appointments online.",avatar:"https://example.com",lastUpdated:new Date(Date.now()-3*30*24*60*60*1e3),members:[{name:"Person A",avatar:"https://example.com",slug:"a"},{name:"Person B",avatar:"https://example.com",slug:"b"},{name:"Person C",avatar:"https://example.com",slug:"c"}],tags:[{name:"ActivityPub",link:"/tag/ActivityPub"},{name:"css",link:"/tag/css"},{name:"guile",link:"/tag/guile"}]}]}},t={args:{i18n:{heading:{lastUpdated:"page.projects.table.heading.last_updated",name:"page.projects.table.heading.name"},table:{updated:"page.projects.file_table.updated"}},projects:[{name:"Project A",description:"This software project is a web-based application that will allow users to book appointments online.",avatar:"https://example.com",lastUpdated:new Date(Date.now()-3*30*24*60*60*1e3),members:[{name:"Person A",avatar:"https://example.com",slug:"a"},{name:"Person B",avatar:"https://example.com",slug:"b"},{name:"Person C",avatar:"https://example.com",slug:"c"}],tags:[{name:"ActivityPub",link:"/tag/ActivityPub"},{name:"css",link:"/tag/css"},{name:"guile",link:"/tag/guile"}]},{name:"Project B",description:"This software project is a web-based application that will allow users to book appointments online.",avatar:"https://example.com",lastUpdated:new Date(Date.now()-3*30*24*60*60*1e3),members:[{name:"Person A",avatar:"https://example.com",slug:"a"},{name:"Person B",avatar:"https://example.com",slug:"b"}],tags:[{name:"ActivityPub",link:"/tag/ActivityPub"},{name:"css",link:"/tag/css"},{name:"guile",link:"/tag/guile"}]}]}};var n,s,o;e.parameters={...e.parameters,docs:{...(n=e.parameters)==null?void 0:n.docs,source:{originalSource:`{
args: {
i18n: {
heading: {
@ -120,4 +120,5 @@ import{w as d,a as g}from"./chunk-FAE4I7JY-D8NatdpV.js";import{F as u}from"./Fil
}]
}]
}
}`,...(c=(m=t.parameters)==null?void 0:m.docs)==null?void 0:c.source}}};const B=["NoProjects","SingleProject","MultipleProjects"];export{t as MultipleProjects,e as NoProjects,a as SingleProject,B as __namedExportsOrder,T as default};
}`,...(c=(m=t.parameters)==null?void 0:m.docs)==null?void 0:c.source}}};const T=["NoProjects","SingleProject","MultipleProjects"];export{t as MultipleProjects,e as NoProjects,a as SingleProject,T as __namedExportsOrder,U as default};
//# sourceMappingURL=FileTable.stories-BUJcT0a2.js.map

File diff suppressed because one or more lines are too long

View file

@ -1 +1,2 @@
import{j as a}from"./ZoomOut24-450rB1Ps.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./spread-CgU5AtxT.js";const p={title:"Icons/Filter24",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,p as default};
import{j as a}from"./ZoomOut24-CRRKQWCt.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./spread-CgU5AtxT.js";const p={title:"Icons/Filter24",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,p as default};
//# sourceMappingURL=Filter24.stories-Cwny18Wd.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"Filter24.stories-Cwny18Wd.js","sources":["../../stories/icons/Filter24.stories.ts"],"sourcesContent":["/*\n * MIT License\n *\n * Copyright (c) 2020-present Eric Liu\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n */\n\n/*\n * SPDX-FileCopyrightText: 2020 - 2024 Eric Liu\n * SPDX-License-Identifier: MIT\n */\n\nimport type { Meta, StoryObj } from '@storybook/svelte';\nimport { Filter24 } from 'svelte-octicons';\n\nconst meta = {\n\ttitle: 'Icons/Filter24',\n\tcomponent: Filter24,\n\ttags: ['autodocs'],\n\targTypes: {\n\t\tfill: {\n\t\t\tcontrol: 'color'\n\t\t}\n\t}\n} satisfies Meta<Filter24>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Plain: Story = {};\n"],"names":["meta","title","component","Filter24","tags","argTypes","fill","control","Plain","parameters","docs","source","originalSource"],"mappings":"qIAqBA,MAAMA,EAAO,CACTC,MAAO,iBACPC,UAAWC,EACXC,KAAM,CAAC,UAAS,EAChBC,SAAQ,CACJC,KAAC,CACGC,QAAO,OAChB,CACD,CACF,EAKaC,EAAe,CAAC,YAAEA,EAAAC,WAAA,CAAA,GAAAD,EAAAC,WAAAC,KAAA,CAAA,IAAAF,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,KAAAC,OAAA,CAAAC,eAAA,KAAA,IAAAJ,GAAAA,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,OAAAF,YAAAA,EAAAG,MAAA,CAAA,CAAA"}

View file

@ -1 +1,2 @@
import{G as e}from"./ZoomOut24-450rB1Ps.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./spread-CgU5AtxT.js";const p={title:"Icons/GitCommit24",component:e,tags:["autodocs"],argTypes:{fill:{control:"color"}}},o={};var t,r,a;o.parameters={...o.parameters,docs:{...(t=o.parameters)==null?void 0:t.docs,source:{originalSource:"{}",...(a=(r=o.parameters)==null?void 0:r.docs)==null?void 0:a.source}}};const n=["Plain"];export{o as Plain,n as __namedExportsOrder,p as default};
import{G as e}from"./ZoomOut24-CRRKQWCt.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./spread-CgU5AtxT.js";const p={title:"Icons/GitCommit24",component:e,tags:["autodocs"],argTypes:{fill:{control:"color"}}},o={};var t,r,a;o.parameters={...o.parameters,docs:{...(t=o.parameters)==null?void 0:t.docs,source:{originalSource:"{}",...(a=(r=o.parameters)==null?void 0:r.docs)==null?void 0:a.source}}};const n=["Plain"];export{o as Plain,n as __namedExportsOrder,p as default};
//# sourceMappingURL=GitCommit24.stories-BuDY9scJ.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"GitCommit24.stories-BuDY9scJ.js","sources":["../../stories/icons/GitCommit24.stories.ts"],"sourcesContent":["/*\n * MIT License\n *\n * Copyright (c) 2020-present Eric Liu\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n */\n\n/*\n * SPDX-FileCopyrightText: 2020 - 2024 Eric Liu\n * SPDX-License-Identifier: MIT\n */\n\nimport type { Meta, StoryObj } from '@storybook/svelte';\nimport { GitCommit24 } from 'svelte-octicons';\n\nconst meta = {\n\ttitle: 'Icons/GitCommit24',\n\tcomponent: GitCommit24,\n\ttags: ['autodocs'],\n\targTypes: {\n\t\tfill: {\n\t\t\tcontrol: 'color'\n\t\t}\n\t}\n} satisfies Meta<GitCommit24>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Plain: Story = {};\n"],"names":["meta","title","component","GitCommit24","tags","argTypes","fill","control","Plain","parameters","docs","source","originalSource"],"mappings":"qIAqBA,MAAMA,EAAO,CACTC,MAAO,oBACPC,UAAWC,EACXC,KAAM,CAAC,UAAS,EAChBC,SAAQ,CACJC,KAAC,CACGC,QAAO,OAChB,CACD,CACF,EAKaC,EAAe,CAAC,YAAEA,EAAAC,WAAA,CAAA,GAAAD,EAAAC,WAAAC,KAAA,CAAA,IAAAF,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,KAAAC,OAAA,CAAAC,eAAA,KAAA,IAAAJ,GAAAA,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,OAAAF,YAAAA,EAAAG,MAAA,CAAA,CAAA"}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
import{I as m}from"./ImportProject-BaHbCqzM.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./ZoomOut24-450rB1Ps.js";import"./spread-CgU5AtxT.js";import"./runtime-CZkC8ltm.js";import"./index-C0Lr04gB.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./tslib.es6-pJfR_DrR.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};

View file

@ -1 +0,0 @@
import{S as d,c as l,a as u,d as f,e as _,m as g,b as $,t as y,f as j}from"./index-CP70Tq58.js";import{I as P}from"./ImportProject-BaHbCqzM.js";import"./lifecycle-D_bIUHQK.js";import"./ZoomOut24-450rB1Ps.js";import"./spread-CgU5AtxT.js";import"./runtime-CZkC8ltm.js";import"./index-C0Lr04gB.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./tslib.es6-pJfR_DrR.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={}}=e;return r.$$set=a=>{"data"in a&&o(0,t=a.data)},[t]}class p extends d{constructor(e){super(),l(this,e,v,b,u,{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"}}],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};

View file

@ -0,0 +1,2 @@
import{I as a}from"./ImportProject-DeWDBk1o.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./ZoomOut24-CRRKQWCt.js";import"./spread-CgU5AtxT.js";import"./runtime-8AupoRbQ.js";import"./index-C0Lr04gB.js";import"./_commonjsHelpers-Cpj98o6Y.js";const u={title:"Templates/ImportProject",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 P=["Plain"];export{o as Plain,P as __namedExportsOrder,u as default};
//# sourceMappingURL=ImportProject.stories-DISo4i2x.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"ImportProject.stories-DISo4i2x.js","sources":["../../stories/templates/ImportProject.stories.ts"],"sourcesContent":["/* Stories for ImportProject template.\n * Copyright (C) 2024 André Jaenisch\n * SPDX-FileCopyrightText: 2024 André Jaenisch\n * SPDX-License-Identifier: AGPL-3.0-or-later\n *\n * 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.\n *\n * 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.\n *\n * 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/>.\n */\n\nimport type { Meta, StoryObj } from '@storybook/svelte';\n\nimport ImportProject from '$lib/components/templates/ImportProject.svelte';\n\nconst meta = {\n\ttitle: 'Templates/ImportProject',\n\tcomponent: ImportProject,\n\ttags: ['autodocs']\n} satisfies Meta<ImportProject>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Plain: Story = {};\n"],"names":["meta","title","component","ImportProject","tags","Plain","parameters","docs","source","originalSource"],"mappings":"0QAgBA,MAAMA,EAAO,CACTC,MAAO,0BACPC,UAAWC,EACXC,KAAM,CAAC,UAAQ,CACnB,EAKaC,EAAe,CAAC,YAAEA,EAAAC,WAAA,CAAA,GAAAD,EAAAC,WAAAC,KAAA,CAAA,IAAAF,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,KAAAC,OAAA,CAAAC,eAAA,KAAA,IAAAJ,GAAAA,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,OAAAF,YAAAA,EAAAG,MAAA,CAAA,CAAA"}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"version":3,"file":"ImportProject.stories-DgC1pRix.js","sources":["../../stories/pages/ImportProject.stories.ts"],"sourcesContent":["/* Stories for ImportProject page.\n * Copyright (C) 2024 André Jaenisch\n * SPDX-FileCopyrightText: 2024 André Jaenisch\n * SPDX-License-Identifier: AGPL-3.0-or-later\n *\n * 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.\n *\n * 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.\n *\n * 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/>.\n */\n\nimport type { Meta, StoryObj } from '@storybook/svelte';\n\nimport ImportProject from '$lib/components/pages/ImportProject.svelte';\n\nconst meta = {\n\ttitle: 'Pages/ImportProject',\n\tcomponent: ImportProject,\n\ttags: ['autodocs']\n} satisfies Meta<ImportProject>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Plain: Story = {};\n"],"names":["meta","title","component","ImportProject","tags","Plain","parameters","docs","source","originalSource"],"mappings":"2+MAgBA,MAAMA,EAAO,CACTC,MAAO,sBACPC,UAAWC,EACXC,KAAM,CAAC,UAAQ,CACnB,EAKaC,EAAe,CAAC,YAAEA,EAAAC,WAAA,CAAA,GAAAD,EAAAC,WAAAC,KAAA,CAAA,IAAAF,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,KAAAC,OAAA,CAAAC,eAAA,KAAA,IAAAJ,GAAAA,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,OAAAF,YAAAA,EAAAG,MAAA,CAAA,CAAA"}

View file

@ -1 +1,2 @@
import{k as e}from"./ZoomOut24-450rB1Ps.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./spread-CgU5AtxT.js";const p={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 i=["Plain"];export{o as Plain,i as __namedExportsOrder,p as default};
import{k as e}from"./ZoomOut24-CRRKQWCt.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./spread-CgU5AtxT.js";const p={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 i=["Plain"];export{o as Plain,i as __namedExportsOrder,p as default};
//# sourceMappingURL=Info16.stories-UaFufoXt.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"Info16.stories-UaFufoXt.js","sources":["../../stories/icons/Info16.stories.ts"],"sourcesContent":["/*\n * MIT License\n *\n * Copyright (c) 2020-present Eric Liu\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n */\n\n/*\n * SPDX-FileCopyrightText: 2020 - 2024 Eric Liu\n * SPDX-License-Identifier: MIT\n */\n\nimport type { Meta, StoryObj } from '@storybook/svelte';\nimport { Info16 } from 'svelte-octicons';\n\nconst meta = {\n\ttitle: 'Icons/Info16',\n\tcomponent: Info16,\n\ttags: ['autodocs'],\n\targTypes: {\n\t\tfill: {\n\t\t\tcontrol: 'color'\n\t\t}\n\t}\n} satisfies Meta<Info16>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Plain: Story = {};\n"],"names":["meta","title","component","Info16","tags","argTypes","fill","control","Plain","parameters","docs","source","originalSource"],"mappings":"qIAqBA,MAAMA,EAAO,CACTC,MAAO,eACPC,UAAWC,EACXC,KAAM,CAAC,UAAS,EAChBC,SAAQ,CACJC,KAAC,CACGC,QAAO,OAChB,CACD,CACF,EAKaC,EAAe,CAAC,YAAEA,EAAAC,WAAA,CAAA,GAAAD,EAAAC,WAAAC,KAAA,CAAA,IAAAF,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,KAAAC,OAAA,CAAAC,eAAA,KAAA,IAAAJ,GAAAA,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,OAAAF,YAAAA,EAAAG,MAAA,CAAA,CAAA"}

View file

@ -1 +0,0 @@
import{S as F,c as I,a as K,d as P,e as q,m as x,b as A,t as C,f as H,h as z}from"./index-CP70Tq58.js";import{a as h,t as L,b as S,f as v,h as _,j as E,d as u,k as D,l as k,i as B,m as c,n as V}from"./lifecycle-D_bIUHQK.js";import{$ as G}from"./runtime-CZkC8ltm.js";import{L as J}from"./LoginForm-CqctntT1.js";function M(n){let s,e,l,r=n[3]("page.login.heading")+"",d,g,f,a=n[3]("page.login.intro")+"",b,y,m,p;return m=new J({props:{data:n[0],form:n[1],i18n:n[4],sb:n[2]}}),{c(){s=h("div"),e=h("div"),l=h("h1"),d=L(r),g=S(),f=h("p"),b=L(a),y=S(),P(m.$$.fragment),this.h()},l(t){s=v(t,"DIV",{class:!0});var o=_(s);e=v(o,"DIV",{class:!0});var i=_(e);l=v(i,"H1",{class:!0});var w=_(l);d=E(w,r),w.forEach(u),g=D(i),f=v(i,"P",{});var j=_(f);b=E(j,a),j.forEach(u),y=D(i),q(m.$$.fragment,i),i.forEach(u),o.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,o){B(t,s,o),c(s,e),c(e,l),c(l,d),c(e,g),c(e,f),c(f,b),c(e,y),x(m,e,null),p=!0},p(t,[o]){(!p||o&8)&&r!==(r=t[3]("page.login.heading")+"")&&V(d,r),(!p||o&8)&&a!==(a=t[3]("page.login.intro")+"")&&V(b,a);const i={};o&1&&(i.data=t[0]),o&2&&(i.form=t[1]),o&4&&(i.sb=t[2]),m.$set(i)},i(t){p||(A(m.$$.fragment,t),p=!0)},o(t){C(m.$$.fragment,t),p=!1},d(t){t&&u(s),H(m)}}}function N(n,s,e){let l;z(n,G,a=>e(3,l=a));let{data:r={servers:{}}}=s,{form:d={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:f=""}=s;return n.$$set=a=>{"data"in a&&e(0,r=a.data),"form"in a&&e(1,d=a.form),"sb"in a&&e(2,f=a.sb)},[r,d,f,l,g]}class O extends F{constructor(s){super(),I(this,s,N,M,K,{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};

2
assets/Login-_s2_tivS.js Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"version":3,"file":"Login-_s2_tivS.js","sources":["../../src/lib/components/templates/Login.svelte"],"sourcesContent":["<!--\nLogin template.\nCopyright (C) 2024 André Jaenisch\nSPDX-FileCopyrightText: 2024 André Jaenisch\nSPDX-License-Identifier: AGPL-3.0-or-later\n\nThis 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.\n\nThis 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.\n\nYou should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.\n-->\n\n<script>\n\timport { _ } from 'svelte-i18n';\n\n\timport LoginForm from '../organisms/LoginForm.svelte';\n\n\t/**\n\t * PageData provided by SvelteKit.\n\t */\n\texport let data = {\n\t\tservers: {}\n\t};\n\n\t/**\n\t * Form handling by SvelteKit\n\t */\n\texport let form = {\n\t\tservers: {}\n\t};\n\n\t/**\n\t * Translation keys to enable reuse\n\t */\n\tconst i18n = {\n\t\tfields: {\n\t\t\taccount: {\n\t\t\t\tlabel: 'page.login.form.fields.account.label'\n\t\t\t},\n\t\t\tpassphrase: {\n\t\t\t\tlabel: 'page.login.form.fields.passphrase.label',\n\t\t\t\tplaceholder: 'page.login.form.fields.passphrase.placeholder'\n\t\t\t},\n\t\t\tserver: {\n\t\t\t\tlabel: 'page.login.form.fields.server.label'\n\t\t\t}\n\t\t},\n\t\treset: 'page.login.form.reset',\n\t\tsubmit: 'page.login.form.submit',\n\t\tvalidation: {\n\t\t\tincorrect: 'page.login.form.validation.incorrect',\n\t\t\tmissing: 'page.login.form.validation.missing'\n\t\t}\n\t};\n\n\t/**\n\t * Allow for linking stories in Storybook.\n\t */\n\texport let sb = '';\n</script>\n\n<div class=\"w-full max-w-md h-full mx-auto flex justify-center items-center py-10\">\n\t<div class=\"space-y-10\">\n\t\t<h1 class=\"h1 font-bold\">{$_('page.login.heading')}</h1>\n\t\t<p>{$_('page.login.intro')}</p>\n\t\t<LoginForm {data} {form} {i18n} {sb} />\n\t</div>\n</div>\n"],"names":["form","cov_1euqxuzx57","b","label"],"mappings":"22lBAgBQ,CAAAA,KAAAA,GAASC,EAAAC,EAAAA,iFAiDXC,MAAA"}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"version":3,"file":"Login.stories-BDLWlpTw.js","sources":["../../src/lib/components/pages/Login.svelte","../../stories/pages/Login.stories.ts"],"sourcesContent":["<!--\nLogin page.\nCopyright (C) 2024 André Jaenisch\nSPDX-FileCopyrightText: 2024 André Jaenisch\nSPDX-License-Identifier: AGPL-3.0-or-later\n\nThis 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.\n\nThis 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.\n\nYou should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.\n-->\n\n<script>\n\timport LoginTemplate from '../templates/Login.svelte';\n\n\t/**\n\t * PageData provided by SvelteKit.\n\t */\n\texport let data = {\n\t\tservers: {}\n\t};\n\n\t/**\n\t * Form handling by SvelteKit\n\t */\n\texport let form = null;\n</script>\n\n<LoginTemplate {data} {form} />\n","/* Stories for Login page.\n * Copyright (C) 2024 André Jaenisch\n * SPDX-FileCopyrightText: 2024 André Jaenisch\n * SPDX-License-Identifier: AGPL-3.0-or-later\n *\n * 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.\n *\n * 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.\n *\n * 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/>.\n */\n\nimport type { Meta, StoryObj } from '@storybook/svelte';\n\nimport Login from '$lib/components/pages/Login.svelte';\n\nconst meta = {\n\ttitle: 'Pages/Login',\n\tcomponent: Login,\n\ttags: ['autodocs'],\n\targTypes: {\n\t\tform: { controls: 'object' }\n\t}\n} satisfies Meta<Login>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Plain: Story = {\n\targs: {\n\t\tdata: {\n\t\t\tservers: {}\n\t\t},\n\t\tform: {\n\t\t\taccount: 'jane.doe@domain.example',\n\t\t\tincorrect: false,\n\t\t\tmissing: false\n\t\t}\n\t}\n};\n\nexport const MissingInput: Story = {\n\targs: {\n\t\tdata: {\n\t\t\tservers: {}\n\t\t},\n\t\tform: {\n\t\t\taccount: '',\n\t\t\tincorrect: false,\n\t\t\tmissing: true\n\t\t}\n\t}\n};\n\nexport const InvalidFormData: Story = {\n\targs: {\n\t\tdata: {\n\t\t\tservers: {}\n\t\t},\n\t\tform: {\n\t\t\taccount: 'jane.doe@domain.example',\n\t\t\tincorrect: true,\n\t\t\tmissing: false\n\t\t}\n\t}\n};\n"],"names":["cov_du07k6e0z","actualCoverage","meta","title","component","Login","tags","argTypes","form","controls","Plain","args","data","servers","account","incorrect","missing","MissingInput","InvalidFormData","parameters","docs","source","originalSource"],"mappings":"mtMAcQ,OAAAA,EAAA,UAAA,CAAA,OAAAC,CAAA,EAAAA,CAAA,CAAAD,EAAA,goDCER,MAAME,EAAO,CACTC,MAAO,cACPC,UAAWC,EACXC,KAAM,CAAC,UAAS,EAChBC,SAAQ,CACJC,KAAM,CAAEC,SAAU,QAAI,CAC5B,CACF,EAKaC,EAAe,CACxBC,KAAI,CACAC,KAAC,CACGC,QAAE,CAAA,CACV,EACIL,KAAC,CACGM,QAAS,0BACTC,UAAQ,GACRC,QAAK,EACd,CACD,CACF,EAEaC,EAAsB,CAC/BN,KAAI,CACAC,KAAC,CACGC,QAAE,CAAA,CACV,EACIL,KAAC,CACGM,QAAG,GACHC,UAAQ,GACRC,QAAI,EACb,CACD,CACF,EAEaE,EAAyB,CAClCP,KAAI,CACAC,KAAC,CACGC,QAAE,CAAA,CACV,EACIL,KAAC,CACGM,QAAS,0BACTC,UAAO,GACPC,QAAK,EACd,CACD,CACF,YAAEN,EAAAS,WAAA,CAAA,GAAAT,EAAAS,WAAAC,KAAA,CAAA,IAAAV,EAAAA,EAAAS,aAAAT,YAAAA,EAAAU,KAAAC,OAAA,CAAAC,eAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAAA,IAAAZ,GAAAA,EAAAA,EAAAS,aAAAT,YAAAA,EAAAU,OAAAV,YAAAA,EAAAW,MAAA,CAAA,CAAA,YAAAJ,EAAAE,WAAA,CAAA,GAAAF,EAAAE,WAAAC,KAAA,CAAA,IAAAH,EAAAA,EAAAE,aAAAF,YAAAA,EAAAG,KAAAC,OAAA,CAAAC,eAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAAA,IAAAL,GAAAA,EAAAA,EAAAE,aAAAF,YAAAA,EAAAG,OAAAH,YAAAA,EAAAI,MAAA,CAAA,CAAA,YAAAH,EAAAC,WAAA,CAAA,GAAAD,EAAAC,WAAAC,KAAA,CAAA,IAAAF,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,KAAAC,OAAA,CAAAC,eAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAAA,IAAAJ,GAAAA,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,OAAAF,YAAAA,EAAAG,MAAA,CAAA,CAAA"}

View file

@ -1,34 +0,0 @@
import{S as b,c as j,a as k,d as x,e as S,m as L,b as h,t as w,f as I}from"./index-CP70Tq58.js";import{L as P}from"./Login-D4kEifl9.js";import"./lifecycle-D_bIUHQK.js";import"./runtime-CZkC8ltm.js";import"./index-C0Lr04gB.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./tslib.es6-pJfR_DrR.js";import"./LoginForm-CqctntT1.js";import"./each-C4g42ehH.js";function D(o){let t,n;return t=new P({props:{data:o[0],form:o[1]}}),{c(){x(t.$$.fragment)},l(e){S(t.$$.fragment,e)},m(e,r){L(t,e,r),n=!0},p(e,[r]){const a={};r&1&&(a.data=e[0]),r&2&&(a.form=e[1]),t.$set(a)},i(e){n||(h(t.$$.fragment,e),n=!0)},o(e){w(t.$$.fragment,e),n=!1},d(e){I(t,e)}}}function F(o,t,n){let{data:e={servers:{}}}=t,{form:r=null}=t;return o.$$set=a=>{"data"in a&&n(0,e=a.data),"form"in a&&n(1,r=a.form)},[e,r]}class _ extends b{constructor(t){super(),j(this,t,F,D,k,{data:0,form:1})}}_.__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:_,tags:["autodocs"],argTypes:{form:{controls:"object"}}},s={args:{data:{servers:{}},form:{account:"jane.doe@domain.example",incorrect:!1,missing:!1}}},i={args:{data:{servers:{}},form:{account:"",incorrect:!1,missing:!0}}},c={args:{data:{servers:{}},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: {
data: {
servers: {}
},
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: {
data: {
servers: {}
},
form: {
account: '',
incorrect: false,
missing: true
}
}
}`,...(u=(f=i.parameters)==null?void 0:f.docs)==null?void 0:u.source}}};var g,v,y;c.parameters={...c.parameters,docs:{...(g=c.parameters)==null?void 0:g.docs,source:{originalSource:`{
args: {
data: {
servers: {}
},
form: {
account: 'jane.doe@domain.example',
incorrect: true,
missing: false
}
}
}`,...(y=(v=c.parameters)==null?void 0:v.docs)==null?void 0:y.source}}};const A=["Plain","MissingInput","InvalidFormData"];export{c as InvalidFormData,i as MissingInput,s as Plain,A as __namedExportsOrder,z as default};

View file

@ -0,0 +1,35 @@
import{w as l,a as u}from"./chunk-NQQ3TO7D-D125W6ms.js";import{L as g}from"./Login-_s2_tivS.js";import"./chunk-454WOBUV-5rTpxkNE.js";import"./v4-D8aEg3BZ.js";import"./index-J1TP6alb.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./runtime-8AupoRbQ.js";import"./index-C0Lr04gB.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./LoginForm-DtR3F2ZT.js";import"./each-C4g42ehH.js";const D={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:[l,u]},r={args:{data:{servers:{}},form:{account:"jane.doe@domain.example",incorrect:!1,missing:!1}}},a={args:{data:{servers:{}},form:{account:"",incorrect:!1,missing:!0}}},e={args:{data:{servers:{}},form:{account:"jane.doe@domain.example",incorrect:!0,missing:!1}}};var s,o,n;r.parameters={...r.parameters,docs:{...(s=r.parameters)==null?void 0:s.docs,source:{originalSource:`{
args: {
data: {
servers: {}
},
form: {
account: 'jane.doe@domain.example',
incorrect: false,
missing: false
}
}
}`,...(n=(o=r.parameters)==null?void 0:o.docs)==null?void 0:n.source}}};var t,i,m;a.parameters={...a.parameters,docs:{...(t=a.parameters)==null?void 0:t.docs,source:{originalSource:`{
args: {
data: {
servers: {}
},
form: {
account: '',
incorrect: false,
missing: true
}
}
}`,...(m=(i=a.parameters)==null?void 0:i.docs)==null?void 0:m.source}}};var c,p,d;e.parameters={...e.parameters,docs:{...(c=e.parameters)==null?void 0:c.docs,source:{originalSource:`{
args: {
data: {
servers: {}
},
form: {
account: 'jane.doe@domain.example',
incorrect: true,
missing: false
}
}
}`,...(d=(p=e.parameters)==null?void 0:p.docs)==null?void 0:d.source}}};const F=["Plain","MissingInput","InvalidFormData"];export{e as InvalidFormData,a as MissingInput,r as Plain,F as __namedExportsOrder,D as default};
//# sourceMappingURL=Login.stories-C30QbIlm.js.map

View file

@ -0,0 +1 @@
{"version":3,"file":"Login.stories-C30QbIlm.js","sources":["../../stories/templates/Login.stories.ts"],"sourcesContent":["/* Stories for Login template.\n * Copyright (C) 2024 André Jaenisch\n * SPDX-FileCopyrightText: 2024 André Jaenisch\n * SPDX-License-Identifier: AGPL-3.0-or-later\n *\n * 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.\n *\n * 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.\n *\n * 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/>.\n */\n\nimport { withActions } from '@storybook/addon-actions/decorator';\nimport { withLinks } from '@storybook/addon-links';\nimport type { Meta, StoryObj } from '@storybook/svelte';\n\nimport Login from '$lib/components/templates/Login.svelte';\n\nconst meta = {\n\ttitle: 'Templates/Login',\n\tcomponent: Login,\n\ttags: ['autodocs'],\n\targs: {\n\t\tsb: 'Templates/Profile'\n\t},\n\targTypes: {\n\t\tonSubmit: { action: 'submit' },\n\t\tform: { controls: 'object' },\n\t\tsb: { control: 'radio', options: ['Templates/Profile'] }\n\t},\n\tdecorators: [withActions, withLinks]\n} satisfies Meta<Login>;\n\nexport default meta;\ntype Story = StoryObj<typeof meta>;\n\nexport const Plain: Story = {\n\targs: {\n\t\tdata: {\n\t\t\tservers: {}\n\t\t},\n\t\tform: {\n\t\t\taccount: 'jane.doe@domain.example',\n\t\t\tincorrect: false,\n\t\t\tmissing: false\n\t\t}\n\t}\n};\n\nexport const MissingInput: Story = {\n\targs: {\n\t\tdata: {\n\t\t\tservers: {}\n\t\t},\n\t\tform: {\n\t\t\taccount: '',\n\t\t\tincorrect: false,\n\t\t\tmissing: true\n\t\t}\n\t}\n};\n\nexport const InvalidFormData: Story = {\n\targs: {\n\t\tdata: {\n\t\t\tservers: {}\n\t\t},\n\t\tform: {\n\t\t\taccount: 'jane.doe@domain.example',\n\t\t\tincorrect: true,\n\t\t\tmissing: false\n\t\t}\n\t}\n};\n"],"names":["meta","title","component","Login","tags","args","sb","argTypes","onSubmit","action","form","controls","control","options","decorators","withActions","withLinks","Plain","data","servers","account","incorrect","missing","MissingInput","InvalidFormData","parameters","docs","source","originalSource"],"mappings":"kZAkBA,MAAMA,EAAO,CACTC,MAAO,kBACPC,UAAWC,EACXC,KAAM,CAAC,UAAS,EAChBC,KAAI,CACAC,GAAI,mBACT,EACCC,SAAQ,CACJC,SAAU,CAAEC,OAAQ,QAAK,EACzBC,KAAM,CAAEC,SAAU,QAAK,EACvBL,GAAI,CAAEM,QAAS,QAASC,QAAS,CAAC,mBAAgB,CAAA,CACvD,EACCC,WAAY,CAACC,EAAaC,CAAO,CACrC,EAKaC,EAAe,CACxBZ,KAAI,CACAa,KAAC,CACGC,QAAE,CAAA,CACV,EACIT,KAAC,CACGU,QAAS,0BACTC,UAAQ,GACRC,QAAK,EACd,CACD,CACF,EAEaC,EAAsB,CAC/BlB,KAAI,CACAa,KAAC,CACGC,QAAE,CAAA,CACV,EACIT,KAAC,CACGU,QAAG,GACHC,UAAQ,GACRC,QAAI,EACb,CACD,CACF,EAEaE,EAAyB,CAClCnB,KAAI,CACAa,KAAC,CACGC,QAAE,CAAA,CACV,EACIT,KAAC,CACGU,QAAS,0BACTC,UAAO,GACPC,QAAK,EACd,CACD,CACF,YAAEL,EAAAQ,WAAA,CAAA,GAAAR,EAAAQ,WAAAC,KAAA,CAAA,IAAAT,EAAAA,EAAAQ,aAAAR,YAAAA,EAAAS,KAAAC,OAAA,CAAAC,eAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAAA,IAAAX,GAAAA,EAAAA,EAAAQ,aAAAR,YAAAA,EAAAS,OAAAT,YAAAA,EAAAU,MAAA,CAAA,CAAA,YAAAJ,EAAAE,WAAA,CAAA,GAAAF,EAAAE,WAAAC,KAAA,CAAA,IAAAH,EAAAA,EAAAE,aAAAF,YAAAA,EAAAG,KAAAC,OAAA,CAAAC,eAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAAA,IAAAL,GAAAA,EAAAA,EAAAE,aAAAF,YAAAA,EAAAG,OAAAH,YAAAA,EAAAI,MAAA,CAAA,CAAA,YAAAH,EAAAC,WAAA,CAAA,GAAAD,EAAAC,WAAAC,KAAA,CAAA,IAAAF,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,KAAAC,OAAA,CAAAC,eAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAAA,IAAAJ,GAAAA,EAAAA,EAAAC,aAAAD,YAAAA,EAAAE,OAAAF,YAAAA,EAAAG,MAAA,CAAA,CAAA"}

View file

@ -1,34 +0,0 @@
import{w as l,a as u}from"./chunk-FAE4I7JY-D8NatdpV.js";import{L as g}from"./Login-D4kEifl9.js";import"./chunk-MZXVCX43-5rTpxkNE.js";import"./v4-D8aEg3BZ.js";import"./index-DYADbu9O.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./runtime-CZkC8ltm.js";import"./index-C0Lr04gB.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./tslib.es6-pJfR_DrR.js";import"./LoginForm-CqctntT1.js";import"./each-C4g42ehH.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:[l,u]},r={args:{data:{servers:{}},form:{account:"jane.doe@domain.example",incorrect:!1,missing:!1}}},a={args:{data:{servers:{}},form:{account:"",incorrect:!1,missing:!0}}},e={args:{data:{servers:{}},form:{account:"jane.doe@domain.example",incorrect:!0,missing:!1}}};var s,o,n;r.parameters={...r.parameters,docs:{...(s=r.parameters)==null?void 0:s.docs,source:{originalSource:`{
args: {
data: {
servers: {}
},
form: {
account: 'jane.doe@domain.example',
incorrect: false,
missing: false
}
}
}`,...(n=(o=r.parameters)==null?void 0:o.docs)==null?void 0:n.source}}};var t,i,m;a.parameters={...a.parameters,docs:{...(t=a.parameters)==null?void 0:t.docs,source:{originalSource:`{
args: {
data: {
servers: {}
},
form: {
account: '',
incorrect: false,
missing: true
}
}
}`,...(m=(i=a.parameters)==null?void 0:i.docs)==null?void 0:m.source}}};var c,p,d;e.parameters={...e.parameters,docs:{...(c=e.parameters)==null?void 0:c.docs,source:{originalSource:`{
args: {
data: {
servers: {}
},
form: {
account: 'jane.doe@domain.example',
incorrect: true,
missing: false
}
}
}`,...(d=(p=e.parameters)==null?void 0:p.docs)==null?void 0:d.source}}};const M=["Plain","MissingInput","InvalidFormData"];export{e as InvalidFormData,a as MissingInput,r as Plain,M as __namedExportsOrder,F as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
{"version":3,"file":"LoginForm-DtR3F2ZT.js","sources":["../../src/lib/components/organisms/LoginForm.svelte"],"sourcesContent":["<!--\nLoginForm organism.\nCopyright (C) 2024 André Jaenisch\nSPDX-FileCopyrightText: 2024 André Jaenisch\nSPDX-License-Identifier: AGPL-3.0-or-later\n\nThis 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.\n\nThis 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.\n\nYou should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.\n-->\n\n<script>\n\timport { _ } from 'svelte-i18n';\n\n\t/**\n\t * PageData provided by SvelteKit.\n\t */\n\texport let data = {\n\t\tservers: {}\n\t};\n\n\t/**\n\t * Form handling by SvelteKit\n\t */\n\texport let form = {\n\t\tservers: {}\n\t};\n\n\t/**\n\t * Translation keys to enable reuse\n\t */\n\texport let i18n = {\n\t\tfields: {\n\t\t\taccount: {\n\t\t\t\tlabel: ''\n\t\t\t},\n\t\t\tpassphrase: {\n\t\t\t\tlabel: '',\n\t\t\t\tplaceholder: ''\n\t\t\t},\n\t\t\tserver: {\n\t\t\t\tlabel: ''\n\t\t\t}\n\t\t},\n\t\treset: '',\n\t\tsubmit: '',\n\t\tvalidation: {\n\t\t\tincorrect: '',\n\t\t\tmissing: ''\n\t\t}\n\t};\n\n\t/**\n\t * Allow for linking stories in Storybook.\n\t */\n\texport let sb = '';\n</script>\n\n<form class=\"space-y-4\" name=\"login\" method=\"POST\" action=\"?/login\">\n\t{#if form?.missing}\n\t\t<p class=\"error\">{$_(i18n.validation.missing)}</p>\n\t{/if}\n\t{#if form?.incorrect}\n\t\t<p class=\"error\">{$_(i18n.validation.incorrect)}</p>\n\t{/if}\n\t<label class=\"label\">\n\t\t<span>{$_(i18n.fields.server.label)}</span>\n\t\t<select class=\"select\" name=\"server\">\n\t\t\t{#each Object.entries(data.servers) as [value, label]}\n\t\t\t\t<option {value}>{label}</option>\n\t\t\t{/each}\n\t\t</select>\n\t</label>\n\t<label class=\"label\">\n\t\t<span>{$_(i18n.fields.account.label)}</span>\n\t\t<input class=\"input\" name=\"account\" type=\"text\" value={form?.account ?? ''} />\n\t</label>\n\t<label class=\"label\">\n\t\t<span>{$_(i18n.fields.passphrase.label)}</span>\n\t\t<input\n\t\t\tclass=\"input\"\n\t\t\tname=\"passphrase\"\n\t\t\ttype=\"password\"\n\t\t\tplaceholder={$_(i18n.fields.passphrase.placeholder)}\n\t\t/>\n\t</label>\n\t<div class=\"text-right\">\n\t\t<a href=\"/\" class=\"btn btn-bg-initial\">\n\t\t\t{$_(i18n.reset)}\n\t\t</a>\n\t</div>\n\t<button type=\"submit\" class=\"w-full btn variant-filled-primary\" data-sb-kind={sb}>\n\t\t{$_(i18n.submit)}\n\t</button>\n</form>\n"],"names":["ctx","submit","t13","if_block0","cov_zidqh8wio","s","b","missing","create_if_block_1","form_1","label0","set_data","t13_value","$$props","sb"],"mappings":"wtoDAiEEA,EAAmD,CAAA,EAAAA,EAAAC,CAAAA,EAAAA,MAAA,MAHjCC,EAAAC,GAAAC,EAAA,EAAAC,EAAA,EAAA,IAAAD,EAAA,EAAAE,EAAAN,EAAAA,EAAAA,CAAAA,MAAAA,GAAAA,EAAAO,CAAAA,IAAAP,YAAAA,GAAAO,WAAAH,EAAA,EAAAE,EAAAE,EAAAA,EAAAA,CAAAA,IAAAA,GAAAR,CAAA,+7HAGAS,EAAAC,CAAA,EAAAN,EAAAC,EAAAA,qoBAHAL,EAAAA,EAAA,CAAA,IAAAA,MAAAA,EAAAO,SAAAH,IAAAE,EAAA,EAAA,EAAA,CAAA,IAAAF,IAAAC,s3DAGlBL,IAAAA,EAAAA,EAAAA,EAAAA,CAAAA,IAAAA,EAAAA,KAAAA,IAAAA,EAAAA,EAAAA,EAAAA,CAAAA,IAAAA,KAAAA,EAAAA,KAAmDA,EAAA,CAAA,EAAAC,MAAA,EAAA,MAAAG,EAAA,EAAAE,EAAAF,EAAAA,EAAAA,CAAAA,IAAAA,EAAA,EAAAC,EAAA,GAAA,IAAAM,EAAAT,EAAAU,CAAA,GAAAR,EAAAE,EAAAA,WAAAF,EAAA,EAAAC,qsBAHF,GAAAD,EAAA,EAAA,EAAA,GAAA,IAAAS,GAAA,CAAAC,GAAAA,GAAAV,EAAA,EAAAE,EAAA,EAAA,EAAA,CAAA,IAAA,GAAAF,GAAAA,EAAA,EAAAC,EAAA,GAAA,IAAAQ,GAAAT,OAAAA,EAAAC,EAAAA"}

View file

@ -1,4 +1,4 @@
import{w as f,a as c}from"./chunk-FAE4I7JY-D8NatdpV.js";import{L as d}from"./LoginForm-CqctntT1.js";import"./chunk-MZXVCX43-5rTpxkNE.js";import"./v4-D8aEg3BZ.js";import"./index-DYADbu9O.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./each-C4g42ehH.js";import"./runtime-CZkC8ltm.js";import"./index-C0Lr04gB.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./tslib.es6-pJfR_DrR.js";const T={title:"Organisms/LoginForm",component:d,tags:["autodocs"],args:{sb:"Templates/Profile"},argTypes:{onSubmit:{action:"submit"},sb:{control:"radio",options:["Templates/Profile"]}},decorators:[f,c]},e={args:{data:{servers:{1:"fig.fr33domlover.site",2:"grape.fr33domlover.site",3:"walnut.fr33domlover.site"}},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"}}}},a={args:{data:{servers:{1:"fig.fr33domlover.site",2:"grape.fr33domlover.site",3:"walnut.fr33domlover.site"}},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"}}}},r={args:{data:{servers:{1:"fig.fr33domlover.site",2:"grape.fr33domlover.site",3:"walnut.fr33domlover.site"}},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"}}}};var o,n,s;e.parameters={...e.parameters,docs:{...(o=e.parameters)==null?void 0:o.docs,source:{originalSource:`{
import{w as f,a as c}from"./chunk-NQQ3TO7D-D125W6ms.js";import{L as d}from"./LoginForm-DtR3F2ZT.js";import"./chunk-454WOBUV-5rTpxkNE.js";import"./v4-D8aEg3BZ.js";import"./index-J1TP6alb.js";import"./index-CP70Tq58.js";import"./lifecycle-D_bIUHQK.js";import"./each-C4g42ehH.js";import"./runtime-8AupoRbQ.js";import"./index-C0Lr04gB.js";import"./_commonjsHelpers-Cpj98o6Y.js";const S={title:"Organisms/LoginForm",component:d,tags:["autodocs"],args:{sb:"Templates/Profile"},argTypes:{onSubmit:{action:"submit"},sb:{control:"radio",options:["Templates/Profile"]}},decorators:[f,c]},e={args:{data:{servers:{1:"fig.fr33domlover.site",2:"grape.fr33domlover.site",3:"walnut.fr33domlover.site"}},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"}}}},a={args:{data:{servers:{1:"fig.fr33domlover.site",2:"grape.fr33domlover.site",3:"walnut.fr33domlover.site"}},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"}}}},r={args:{data:{servers:{1:"fig.fr33domlover.site",2:"grape.fr33domlover.site",3:"walnut.fr33domlover.site"}},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"}}}};var o,n,s;e.parameters={...e.parameters,docs:{...(o=e.parameters)==null?void 0:o.docs,source:{originalSource:`{
args: {
data: {
servers: {
@ -103,4 +103,5 @@ import{w as f,a as c}from"./chunk-FAE4I7JY-D8NatdpV.js";import{L as d}from"./Log
}
}
}
}`,...(p=(g=r.parameters)==null?void 0:g.docs)==null?void 0:p.source}}};const D=["Plain","MissingInput","InvalidFormData"];export{r as InvalidFormData,a as MissingInput,e as Plain,D as __namedExportsOrder,T as default};
}`,...(p=(g=r.parameters)==null?void 0:g.docs)==null?void 0:p.source}}};const T=["Plain","MissingInput","InvalidFormData"];export{r as InvalidFormData,a as MissingInput,e as Plain,T as __namedExportsOrder,S as default};
//# sourceMappingURL=LoginForm.stories-BBA56Hj7.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show more