"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",a="NiceForm",n="Form",t="1.0.0",o="stable",i="editors",r="layout",s="Declarative, data-driven form layout with grouping, responsive columns, auto-save, and data source binding.",l="1.0.0",d=["web","mobile","desktop"],c=["form","layout","data-driven","validation","columns"],m=[{name:"items",type:"NiceFormItem[]",required:!0,description:"Field definitions with field, label, type, options, render, etc."},{name:"data",type:"Record<string, any>",required:!1,description:"Inline form data (ignored with dataSource)."},{name:"dataSource",type:"NiceDataSource",required:!1,description:"Two-way data source binding."},{name:"recordKey",type:"unknown",required:!1,description:"Key of record to load/edit."},{name:"columns",type:"number",required:!1,default:"1",description:"Number of grid columns."},{name:"responsiveColumns",type:"Record<number, number>",required:!1,description:"Responsive breakpoints → columns map."},{name:"gap",type:"number | string",required:!1,default:"16",description:"Grid gap."},{name:"labelPosition",type:"'top' | 'left'",required:!1,default:"'top'",description:"Label placement."},{name:"size",type:"NiceSize",required:!1,default:"'md'",description:"Control size."},{name:"readOnly",type:"boolean",required:!1,description:"Read-only mode."},{name:"disabled",type:"boolean",required:!1,description:"Disabled mode."},{name:"autoSaveDelay",type:"number",required:!1,description:"Auto-save delay in ms."}],p=[{name:"onFieldChange",parameters:[{name:"field",type:"string"},{name:"value",type:"any"}],description:"Field change callback (inline mode)."},{name:"onSubmit",parameters:[{name:"data",type:"Record<string, any>"}],description:"Form submit callback."},{name:"onDirtyChange",parameters:[{name:"isDirty",type:"boolean"}],description:"Dirty state change callback."}],u=[],y=[{title:"User Profile Form",code:`<NiceForm
  items={[
    { field: 'name', label: 'Name', required: true },
    { field: 'email', label: 'Email', type: 'email' },
    { field: 'role', label: 'Role', type: 'select', options: roles },
    { field: 'bio', label: 'Bio', colSpan: 2, render: (v, onChange) => (
      <NiceTextArea value={v} onChange={onChange} rows={4} />
    )}
  ]}
  columns={2}
  data={userData}
  onSubmit={handleSave}
/>`,language:"tsx"},{title:"With Data Source",code:`<NiceForm
  items={formFields}
  dataSource={userDataSource}
  recordKey={userId}
  autoSaveDelay={1000}
/>`,language:"tsx"}],b=[{name:"NiceFormBuilder",relationship:"designer"},{name:"NiceValidationGroup",relationship:"validation"}],f={$schema:e,name:a,displayName:n,version:t,status:o,category:i,subcategory:r,package:"@nicetoDev/ui",description:s,since:l,platforms:d,keywords:c,props:m,events:p,cssVariables:u,examples:y,related:b};exports.$schema=e;exports.category=i;exports.cssVariables=u;exports.default=f;exports.description=s;exports.displayName=n;exports.events=p;exports.examples=y;exports.keywords=c;exports.name=a;exports.platforms=d;exports.props=m;exports.related=b;exports.since=l;exports.status=o;exports.subcategory=r;exports.version=t;
