"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",t="NiceList",s="List",i="1.0.0",r="stable",n="data",o="list",a="Versatile list with selection, grouping, search, drag-to-reorder, and swipe actions.",c="1.0.0",d=["web","mobile","desktop"],l=["list","selection","grouping","reorder","swipe"],p=[{name:"items",type:"NiceListItem[]",required:!0,description:"List items (key, text, icon, disabled, badge)."},{name:"selectedKeys",type:"string[]",required:!1,description:"Controlled selected keys."},{name:"selectionMode",type:"'none' | 'single' | 'multiple'",required:!1,default:"'none'",description:"Selection mode."},{name:"searchable",type:"boolean",required:!1,description:"Show search box."},{name:"searchPlaceholder",type:"string",required:!1,description:"Search placeholder text."},{name:"grouped",type:"boolean",required:!1,description:"Enable item grouping."},{name:"groupField",type:"string",required:!1,description:"Field to group by."},{name:"reorderable",type:"boolean",required:!1,description:"Enable drag-to-reorder."},{name:"showCheckboxes",type:"boolean",required:!1,description:"Show selection checkboxes."},{name:"bordered",type:"boolean",required:!1,description:"Show borders."},{name:"size",type:"NiceSize",required:!1,default:"'md'",description:"List size."},{name:"loading",type:"boolean",required:!1,description:"Loading state."},{name:"emptyText",type:"string",required:!1,description:"Empty state text."},{name:"swipeActions",type:"SwipeActionConfig",required:!1,description:"Mobile swipe gestures."},{name:"renderItem",type:"(item, index) => ReactNode",required:!1,description:"Custom item renderer."}],m=[{name:"onSelectionChange",parameters:[{name:"keys",type:"string[]"}],description:"Called when selection changes."},{name:"onReorder",parameters:[{name:"items",type:"NiceListItem[]"}],description:"Called after reorder."},{name:"onItemClick",parameters:[{name:"item",type:"NiceListItem"}],description:"Called when item clicked."}],u=[],y=[{title:"Selectable List",code:`<NiceList
  items={users.map(u => ({ key: u.id, text: u.name }))}
  selectionMode="multiple"
  showCheckboxes
  selectedKeys={selectedUsers}
  onSelectionChange={setSelectedUsers}
  searchable
/>`,language:"tsx"},{title:"Reorderable List",code:`<NiceList
  items={tasks}
  reorderable
  onReorder={setTasks}
  renderItem={(item) => <TaskCard task={item} />}
/>`,language:"tsx"}],g=[{name:"NiceDataGrid",relationship:"complex"},{name:"NiceTreeList",relationship:"hierarchical"}],b={$schema:e,name:t,displayName:s,version:i,status:r,category:n,subcategory:o,package:"@nicetoDev/ui",description:a,since:c,platforms:d,keywords:l,props:p,events:m,cssVariables:u,examples:y,related:g};exports.$schema=e;exports.category=n;exports.cssVariables=u;exports.default=b;exports.description=a;exports.displayName=s;exports.events=m;exports.examples=y;exports.keywords=l;exports.name=t;exports.platforms=d;exports.props=p;exports.related=g;exports.since=c;exports.status=r;exports.subcategory=o;exports.version=i;
