"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",o="NicePoll",t="Poll component for quick voting with results visualization.",s="survey",n="1.0.0",l="stable",i=[{name:"poll",type:"PollDefinition",required:!0,description:"Poll definition"},{name:"results",type:"PollResults",description:"Current results"},{name:"onVote",type:"(optionId: string) => Promise<void>",required:!0,description:"Vote callback"},{name:"voted",type:"string",description:"User's voted option ID"},{name:"showResults",type:"boolean",default:"true",description:"Show results after voting"},{name:"showPercentage",type:"boolean",default:"true",description:"Show percentages"},{name:"allowChange",type:"boolean",default:"false",description:"Allow changing vote"}],c=[{title:"Poll",description:"Vote in poll",code:`<NicePoll
  poll={pollDef}
  results={pollResults}
  onVote={handleVote}
  voted={userVote}
  showResults
  showPercentage
/>`}],r={keyboard:["Tab through options","Enter to vote"],aria:["Poll options","Results percentages"]},a=["NicePollLive","NiceSurvey"],p={$schema:e,name:o,description:t,category:s,since:n,status:l,props:i,examples:c,accessibility:r,seeAlso:a};exports.$schema=e;exports.accessibility=r;exports.category=s;exports.default=p;exports.description=t;exports.examples=c;exports.name=o;exports.props=i;exports.seeAlso=a;exports.since=n;exports.status=l;
