import{u as m,j as s,A as f,d as h,b as y}from"./dataProvider-3f13e24d.js";import{D as t}from"./DateField-cd19e71c.js";import{L as D}from"./Labeled-920c48dc.js";const b={title:"Blocks/Fields/DateField",component:t,parameters:{layout:"centered"},decorators:[e=>g(e)],args:{record:m[0]}},r={render:e=>s(t,{source:"birthday",...e})},o={render:({showTime:e,locales:p,...u})=>s(t,{source:"birthday",showTime:e,locales:p,...u}),args:{showTime:!0,locales:"en-US"},argTypes:{locales:{options:["fr-FR","en-US"],control:{type:"select"}}}},g=e=>s(f,{dataProvider:h,i18nProvider:y,children:s(D,{children:e()})});var a,n,c;r.parameters={...r.parameters,docs:{...(a=r.parameters)==null?void 0:a.docs,source:{originalSource:`{
  render: props => {
    return <DateField source="birthday" {...props} />;
  }
}`,...(c=(n=r.parameters)==null?void 0:n.docs)==null?void 0:c.source}}};var l,d,i;o.parameters={...o.parameters,docs:{...(l=o.parameters)==null?void 0:l.docs,source:{originalSource:`{
  render: ({
    showTime,
    locales,
    ...props
  }) => {
    return <DateField source="birthday" showTime={showTime} locales={locales} {...props} />;
  },
  args: {
    showTime: true,
    locales: 'en-US'
  },
  argTypes: {
    locales: {
      options: ['fr-FR', 'en-US'],
      control: {
        type: 'select'
      }
    }
  }
}`,...(i=(d=o.parameters)==null?void 0:d.docs)==null?void 0:i.source}}};const S=["Default","Custom"],w=Object.freeze(Object.defineProperty({__proto__:null,Custom:o,Default:r,__namedExportsOrder:S,default:b},Symbol.toStringTag,{value:"Module"}));export{o as C,w as D,r as a};
