"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",t="NicePieChart",a="Pie Chart",n="1.0.0",i="stable",s="charts",r="visualization",o="An SVG pie/donut chart with legend and percentage labels. Supports both pie and donut modes via innerRadius.",l="1.0.0",c=["web","desktop"],d=["pie","donut","chart","visualization","percentage"],u=[{name:"data",type:"NicePieSlice[]",required:!0,description:"Slice data array with label, value, and optional color."},{name:"width",type:"number",required:!1,default:"400",description:"Chart width in pixels."},{name:"height",type:"number",required:!1,default:"400",description:"Chart height in pixels."},{name:"innerRadius",type:"number",required:!1,default:"0",description:"Inner radius (> 0 creates donut chart)."},{name:"title",type:"string",required:!1,description:"Chart title."},{name:"showLegend",type:"boolean",required:!1,default:"true",description:"Show the legend."},{name:"showLabels",type:"boolean",required:!1,default:"true",description:"Show percentage labels on slices."}],p=[],h=[{name:"--nice-pie-label-color",default:"#fff",description:"Slice label color"},{name:"--nice-pie-legend-color",default:"var(--nice-text-color)",description:"Legend text color"}],m=[{title:"Basic Pie Chart",code:`<NicePieChart
  data={[
    { label: 'Chrome', value: 60 },
    { label: 'Firefox', value: 20 },
    { label: 'Safari', value: 15 },
    { label: 'Other', value: 5 }
  ]}
  title="Browser Market Share"
/>`,language:"tsx"},{title:"Donut Chart",code:`<NicePieChart
  data={[
    { label: 'Complete', value: 75, color: '#22c55e' },
    { label: 'Remaining', value: 25, color: '#e5e7eb' }
  ]}
  innerRadius={60}
  showLegend={false}
/>`,language:"tsx"}],b=[{name:"NiceChart",relationship:"alternative"},{name:"NiceFunnel",relationship:"similar"}],g={$schema:e,name:t,displayName:a,version:n,status:i,category:s,subcategory:r,package:"@nicetoDev/ui",description:o,since:l,platforms:c,keywords:d,props:u,events:p,cssVariables:h,examples:m,related:b};exports.$schema=e;exports.category=s;exports.cssVariables=h;exports.default=g;exports.description=o;exports.displayName=a;exports.events=p;exports.examples=m;exports.keywords=d;exports.name=t;exports.platforms=c;exports.props=u;exports.related=b;exports.since=l;exports.status=i;exports.subcategory=r;exports.version=n;
