Anvil/assets/Created.stories-b50ed579.js

10 lines
1.1 KiB
JavaScript
Raw Normal View History

2024-02-23 14:08:28 +01:00
import{C as i}from"./Created-e62609b4.js";import"./utils-09ff0c0e.js";import"./lifecycle-9898a056.js";import"./index-d94d5794.js";const _={title:"Atoms/Created",component:i,tags:["autodocs"],argTypes:{created_at:{control:"date",description:"Date of creation"},created_at_formatted:{control:"text",description:"Localised version of created_at"}}},e={args:{created_at:new Date,created_at_formatted:function(){const d="en-US";return new Intl.DateTimeFormat(d).format(new Date)}()}},t={};var a,r,o;e.parameters={...e.parameters,docs:{...(a=e.parameters)==null?void 0:a.docs,source:{originalSource:`{
2024-02-20 15:10:19 +01:00
args: {
created_at: new Date(),
created_at_formatted: function () {
const locale = 'en-US';
return new Intl.DateTimeFormat(locale).format(new Date());
}()
}
}`,...(o=(r=e.parameters)==null?void 0:r.docs)==null?void 0:o.source}}};var n,s,c;t.parameters={...t.parameters,docs:{...(n=t.parameters)==null?void 0:n.docs,source:{originalSource:"{}",...(c=(s=t.parameters)==null?void 0:s.docs)==null?void 0:c.source}}};const f=["Plain","Missing"];export{t as Missing,e as Plain,f as __namedExportsOrder,_ as default};