@yamada-ui/react 2.2.10-dev-20261007032253 → 2.2.10-dev-20261007075338
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/chart/cartesian-chart.cjs +3 -2
- package/dist/cjs/components/chart/cartesian-chart.cjs.map +1 -1
- package/dist/cjs/components/chart/cartesian-chart.style.cjs +2 -2
- package/dist/cjs/components/chart/cartesian-chart.style.cjs.map +1 -1
- package/dist/cjs/components/chart/polar-chart.cjs +3 -2
- package/dist/cjs/components/chart/polar-chart.cjs.map +1 -1
- package/dist/cjs/components/chart/polar-chart.style.cjs +2 -2
- package/dist/cjs/components/chart/polar-chart.style.cjs.map +1 -1
- package/dist/esm/components/chart/cartesian-chart.js +3 -2
- package/dist/esm/components/chart/cartesian-chart.js.map +1 -1
- package/dist/esm/components/chart/cartesian-chart.style.js +2 -2
- package/dist/esm/components/chart/cartesian-chart.style.js.map +1 -1
- package/dist/esm/components/chart/polar-chart.js +3 -2
- package/dist/esm/components/chart/polar-chart.js.map +1 -1
- package/dist/esm/components/chart/polar-chart.style.js +2 -2
- package/dist/esm/components/chart/polar-chart.style.js.map +1 -1
- package/dist/types/components/chart/polar-chart.style.d.ts +1 -1
- package/dist/types/components/data-list/data-list.style.d.ts +1 -1
- package/dist/types/components/number-input/number-input.style.d.ts +1 -1
- package/dist/types/components/steps/steps.style.d.ts +1 -1
- package/dist/types/components/timeline/timeline.d.ts +1 -1
- package/dist/types/components/timeline/timeline.style.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"polar-chart.cjs","names":["createShouldForwardProp","createSlotComponent","polarChartStyle","usePolarChart","useMemo","Chart","varAttr","mergeProps","useCallback","useChartPie","styled","Pie","ChartLabelList","useChartSector","Sector","useChartPieLabel","Text","useChartPieLabelLine","Curve","useId","useSystem","useTheme","getCSS","isValidElement","cloneElement","useChartRadar","Radar","useAngleAxis","PolarAngleAxis","useRadiusAxis","PolarRadiusAxis","usePolarGrid","PolarGrid","useChartComponentContext","useChartRadial","RadialBar"],"sources":["../../../../src/components/chart/polar-chart.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactElement, ReactNode } from \"react\"\n\nimport type {\n ActiveDotProps,\n BaseTickContentProps,\n DataKey,\n DotProps,\n LabelListProps,\n LabelProps,\n PieLabelRenderProps,\n PieSectorShapeProps,\n RadialBarSectorProps,\n SectorProps,\n} from \"recharts\"\nimport type { PolarChartProps as OriginalPolarChartProps } from \"recharts/types/util/types\"\nimport type {\n CSSObject,\n CSSProps,\n GenericsComponent,\n HTMLProps,\n HTMLStyledProps,\n ThemeProps,\n} from \"../../core\"\nimport type { Dict, FunctionOf, Merge } from \"../../utils\"\nimport type {\n ChartActiveDot,\n ChartDot,\n ChartLabel,\n ChartLabelListProps,\n ChartLabelList as ChartLabelListType,\n ChartProps,\n ChartTickLine,\n} from \"./chart\"\nimport type { PolarChartStyle } from \"./polar-chart.style\"\nimport type {\n UseAngleAxisProps,\n UseChartPieLabelLineProps,\n UseChartPieLabelProps,\n UseChartPieProps,\n UseChartRadarProps,\n UseChartRadialProps,\n UseChartSectorProps,\n UsePolarChartProps,\n UsePolarGridProps,\n UseRadiusAxisProps,\n} from \"./use-polar-chart\"\nimport {\n cloneElement,\n isValidElement,\n useCallback,\n useId,\n useMemo,\n} from \"react\"\nimport {\n Curve,\n Pie,\n PolarAngleAxis,\n PolarGrid,\n PolarRadiusAxis,\n Radar,\n RadialBar,\n Sector,\n Text,\n} from \"recharts\"\nimport {\n createShouldForwardProp,\n createSlotComponent,\n getCSS,\n mergeProps,\n styled,\n useSystem,\n useTheme,\n varAttr,\n} from \"../../core\"\nimport {\n assignRef,\n cx,\n isFunction,\n isNumber,\n isObject,\n runIfFn,\n splitObject,\n} from \"../../utils\"\nimport { Chart, ChartLabelList, useChartComponentContext } from \"./chart\"\nimport { polarChartStyle } from \"./polar-chart.style\"\nimport {\n useAngleAxis,\n useChartPie,\n useChartPieLabel,\n useChartPieLabelLine,\n useChartRadar,\n useChartRadial,\n useChartSector,\n usePolarChart,\n usePolarGrid,\n useRadiusAxis,\n} from \"./use-polar-chart\"\n\nconst shouldForwardProp = createShouldForwardProp()\n\ninterface ComponentContext extends Pick<\n PolarChartProps,\n | \"angleAxisProps\"\n | \"gridProps\"\n | \"nameKey\"\n | \"pieProps\"\n | \"radarProps\"\n | \"radialProps\"\n | \"radiusAxisProps\"\n | \"sectorProps\"\n> {}\n\nexport interface PolarChartProps<Y extends Dict = Dict>\n extends\n Omit<ChartProps, \"cx\" | \"cy\">,\n UsePolarChartProps<Y>,\n ThemeProps<PolarChartStyle> {\n /**\n * The fill of the active dot.\n */\n activeDotFill?: CSSProps[\"fill\"]\n /**\n * The radius of the active dot.\n */\n activeDotRadius?: CSSProps[\"r\"]\n /**\n * The stroke of the active dot.\n */\n activeDotStroke?: CSSProps[\"stroke\"]\n /**\n * The width of the active dot stroke.\n */\n activeDotStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The stroke of the angle axis line.\n */\n angleAxisLineStroke?: CSSProps[\"stroke\"]\n /**\n * The width of the angle axis line stroke.\n */\n angleAxisLineStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The color of the angle axis text.\n */\n angleAxisTextColor?: CSSProps[\"color\"]\n /**\n * The fill of the angle axis text.\n */\n angleAxisTextFill?: CSSProps[\"fill\"]\n /**\n * The fill of the dot.\n */\n dotFill?: CSSProps[\"fill\"]\n /**\n * The radius of the dot.\n */\n dotRadius?: CSSProps[\"r\"]\n /**\n * The stroke of the dot.\n */\n dotStroke?: CSSProps[\"stroke\"]\n /**\n * The width of the dot stroke.\n */\n dotStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The stroke of the grid.\n */\n gridStroke?: CSSProps[\"stroke\"]\n /**\n * The opacity of the inactive label line.\n */\n inactiveLabelLineOpacity?: CSSProps[\"opacity\"]\n /**\n * The opacity of the inactive label.\n */\n inactiveLabelOpacity?: CSSProps[\"opacity\"]\n /**\n * The opacity of the inactive radar.\n */\n inactiveRadarOpacity?: CSSProps[\"opacity\"]\n /**\n * The opacity of the inactive sector.\n */\n inactiveSectorOpacity?: CSSProps[\"opacity\"]\n /**\n * The color of the label.\n */\n labelColor?: CSSProps[\"color\"]\n /**\n * The fill of the label.\n */\n labelFill?: CSSProps[\"fill\"]\n /**\n * The stroke of the label line.\n */\n labelLineStroke?: CSSProps[\"stroke\"]\n /**\n * The width of the label line stroke.\n */\n labelLineStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The key to use for the angle axis.\n */\n nameKey?: keyof Y\n /**\n * The color of the radar.\n */\n radarColor?: CSSProps[\"color\"]\n /**\n * The fill opacity of the radar.\n */\n radarFillOpacity?: CSSProps[\"fillOpacity\"]\n /**\n * The stroke of the radar.\n */\n radarStroke?: CSSProps[\"stroke\"]\n /**\n * The width of the radar stroke.\n */\n radarStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The color of the radial background.\n */\n radialBackgroundColor?: CSSProps[\"color\"]\n /**\n * The fill of the radial background.\n */\n radialBackgroundFill?: CSSProps[\"fill\"]\n /**\n * The stroke of the radial background.\n */\n radialBackgroundStroke?: CSSProps[\"stroke\"]\n /**\n * The width of the radial background stroke.\n */\n radialBackgroundStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The stroke of the radius axis line.\n */\n radiusAxisLineStroke?: CSSProps[\"stroke\"]\n /**\n * The width of the radius axis line stroke.\n */\n radiusAxisLineStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The color of the radius axis text.\n */\n radiusAxisTextColor?: CSSProps[\"color\"]\n /**\n * The fill of the radius axis text.\n */\n radiusAxisTextFill?: CSSProps[\"fill\"]\n /**\n * The color of the sector.\n */\n sectorColor?: CSSProps[\"color\"]\n /**\n * The fill of the sector.\n */\n sectorFill?: CSSProps[\"fill\"]\n /**\n * The stroke of the sector.\n */\n sectorStroke?: CSSProps[\"stroke\"]\n /**\n * The width of the sector stroke.\n */\n sectorStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * If `true`, angle axis is visible.\n *\n * @default true\n */\n withAngleAxis?: boolean\n /**\n * If `true`, grid is visible.\n *\n * @default true\n */\n withGrid?: boolean\n /**\n * If `true`, radius axis is visible.\n *\n * @default false\n */\n withRadiusAxis?: boolean\n /**\n * Props for the angle axis component.\n */\n angleAxisProps?: UseAngleAxisProps\n /**\n * Props for the polar chart component.\n */\n chartProps?: Omit<OriginalPolarChartProps, \"data\">\n /**\n * Props for the donut component.\n */\n donutProps?: Omit<ChartPieProps, \"data\" | \"dataKey\" | \"nameKey\">\n /**\n * Props for the grid component.\n */\n gridProps?: ChartPolarGridProps\n /**\n * Props for the pie component.\n */\n pieProps?: Omit<ChartPieProps, \"data\" | \"dataKey\" | \"nameKey\">\n /**\n * Props for the radar component.\n */\n radarProps?: Omit<ChartRadarProps, \"data\" | \"dataKey\">\n /**\n * Props for the radial component.\n */\n radialProps?: Omit<ChartRadialProps, \"dataKey\" | \"nameKey\">\n /**\n * Props for the radius axis component.\n */\n radiusAxisProps?: UseRadiusAxisProps\n /**\n * Props for the sector component.\n */\n sectorProps?: ChartSectorProps\n}\n\nconst {\n component,\n ComponentContext,\n PropsContext: PolarChartPropsContext,\n useComponentContext,\n usePropsContext: usePolarChartPropsContext,\n withContext,\n withProvider,\n useSlotComponentProps,\n} = createSlotComponent<PolarChartProps, PolarChartStyle, ComponentContext>(\n \"polar-chart\",\n polarChartStyle,\n)\n\nexport { PolarChartPropsContext, usePolarChartPropsContext }\n\nexport const PolarChart = withProvider(\n <Y extends Dict>({\n components: componentsProp,\n nameKey,\n render,\n withAngleAxis = false,\n withGrid = false,\n withRadiusAxis = false,\n angleAxisProps,\n chartProps,\n donutProps,\n gridProps,\n pieProps = donutProps,\n radarProps,\n radialProps,\n radiusAxisProps,\n sectorProps,\n ...rest\n }: PolarChartProps<Y>) => {\n const { getChartProps, getRootProps } = usePolarChart(rest)\n const components = useMemo(\n () => [\n {\n component: ChartPolarGrid,\n fallback: withGrid ? <ChartPolarGrid /> : null,\n },\n {\n component: ChartAngleAxis,\n fallback: withAngleAxis ? <ChartAngleAxis /> : null,\n },\n {\n component: ChartRadiusAxis,\n fallback: withRadiusAxis ? <ChartRadiusAxis /> : null,\n },\n ...componentsProp,\n ],\n [componentsProp, withGrid, withAngleAxis, withRadiusAxis],\n )\n const componentContext = useMemo(\n () => ({\n nameKey: nameKey as string | undefined,\n angleAxisProps,\n gridProps,\n pieProps,\n radarProps,\n radialProps,\n radiusAxisProps,\n sectorProps,\n }),\n [\n pieProps,\n radarProps,\n sectorProps,\n angleAxisProps,\n radiusAxisProps,\n gridProps,\n nameKey,\n radialProps,\n ],\n )\n\n return (\n <ComponentContext value={componentContext}>\n <Chart\n components={components}\n render={(props) => render(getChartProps({ ...props, ...chartProps }))}\n {...getRootProps()}\n />\n </ComponentContext>\n )\n },\n \"root\",\n)(\n undefined,\n ({\n activeDotFill,\n activeDotRadius,\n activeDotStroke,\n activeDotStrokeWidth,\n angleAxisLineStroke,\n angleAxisLineStrokeWidth,\n angleAxisTextColor,\n angleAxisTextFill,\n dotFill,\n dotRadius,\n dotStroke,\n dotStrokeWidth,\n gridStroke,\n inactiveLabelLineOpacity,\n inactiveLabelOpacity,\n inactiveRadarOpacity,\n inactiveSectorOpacity,\n labelColor,\n labelFill,\n labelLineStroke,\n labelLineStrokeWidth,\n radarColor,\n radarFillOpacity,\n radarStroke,\n radarStrokeWidth,\n radialBackgroundColor,\n radialBackgroundFill,\n radialBackgroundStroke,\n radialBackgroundStrokeWidth,\n radiusAxisLineStroke,\n radiusAxisLineStrokeWidth,\n radiusAxisTextColor,\n radiusAxisTextFill,\n sectorColor,\n sectorFill,\n sectorStroke,\n sectorStrokeWidth,\n ...rest\n }) => ({\n \"--active-dot-fill\": varAttr(activeDotFill, \"colors\"),\n \"--active-dot-r\": activeDotRadius,\n \"--active-dot-stroke\": varAttr(activeDotStroke, \"colors\"),\n \"--active-dot-stroke-width\": activeDotStrokeWidth,\n \"--angle-axis-line-stroke\": varAttr(angleAxisLineStroke, \"colors\"),\n \"--angle-axis-line-stroke-width\": angleAxisLineStrokeWidth,\n \"--angle-axis-text-color\": varAttr(angleAxisTextColor, \"colors\"),\n \"--angle-axis-text-fill\": varAttr(angleAxisTextFill, \"colors\"),\n \"--dot-fill\": varAttr(dotFill, \"colors\"),\n \"--dot-r\": dotRadius,\n \"--dot-stroke\": varAttr(dotStroke, \"colors\"),\n \"--dot-stroke-width\": dotStrokeWidth,\n \"--grid-stroke\": varAttr(gridStroke, \"colors\"),\n \"--inactive-label-line-opacity\": inactiveLabelLineOpacity,\n \"--inactive-label-opacity\": inactiveLabelOpacity,\n \"--inactive-radar-opacity\": inactiveRadarOpacity,\n \"--inactive-sector-opacity\": inactiveSectorOpacity,\n \"--label-color\": varAttr(labelColor, \"colors\"),\n \"--label-fill\": varAttr(labelFill, \"colors\"),\n \"--label-line-stroke\": varAttr(labelLineStroke, \"colors\"),\n \"--label-line-stroke-width\": labelLineStrokeWidth,\n \"--radar-color\": varAttr(radarColor, \"colors\"),\n \"--radar-fill-opacity\": radarFillOpacity,\n \"--radar-stroke\": varAttr(radarStroke, \"colors\"),\n \"--radar-stroke-width\": radarStrokeWidth,\n \"--radial-background-color\": varAttr(radialBackgroundColor, \"colors\"),\n \"--radial-background-fill\": varAttr(radialBackgroundFill, \"colors\"),\n \"--radial-background-stroke\": varAttr(radialBackgroundStroke, \"colors\"),\n \"--radial-background-stroke-width\": radialBackgroundStrokeWidth,\n \"--radius-axis-line-stroke\": varAttr(radiusAxisLineStroke, \"colors\"),\n \"--radius-axis-line-stroke-width\": radiusAxisLineStrokeWidth,\n \"--radius-axis-text-color\": varAttr(radiusAxisTextColor, \"colors\"),\n \"--radius-axis-text-fill\": varAttr(radiusAxisTextFill, \"colors\"),\n \"--sector-color\": varAttr(sectorColor, \"colors\"),\n \"--sector-fill\": varAttr(sectorFill, \"colors\"),\n \"--sector-stroke\": varAttr(sectorStroke, \"colors\"),\n \"--sector-stroke-width\": sectorStrokeWidth,\n ...rest,\n }),\n) as GenericsComponent<{\n <Y extends Dict>(props: PolarChartProps<Y>): ReactElement\n}>\n\nexport type ChartPieLabel =\n | ((props: PieLabelRenderProps) => Partial<ChartPieLabelProps>)\n | boolean\n | Partial<ChartPieLabelProps>\n\nexport type ChartPieLabelLine =\n | ((props: any) => ChartPieLabelLineProps)\n | boolean\n | ChartPieLabelLineProps\n\nexport type ChartPieLabelList = boolean | ChartLabelListProps\n\nexport interface ChartPieProps<Y extends Dict = Dict> extends Merge<\n HTMLStyledProps<\"svg\">,\n Omit<UseChartPieProps, \"data\" | \"dataKey\" | \"label\" | \"labelLine\" | \"nameKey\">\n> {\n /**\n * The key of a group of data which should be unique in an chart.\n */\n dataKey: Exclude<keyof Y, \"fill\">\n /**\n * The key of the name of the data.\n */\n nameKey: Exclude<keyof Y, \"fill\">\n /**\n * The active index of the sector.\n */\n activeIndex?: number\n /**\n * The data to use for the pie.\n */\n data?: Y[]\n /**\n * The label to use for the pie.\n */\n label?: ChartPieLabel\n /**\n * The label line to use for the pie.\n *\n * @default false\n */\n labelLine?: ChartPieLabelLine\n /**\n * If `true`, the label list is visible.\n *\n * @default false\n */\n labelList?: ChartPieLabelList\n /**\n * Props for the sector component.\n */\n sectorProps?:\n | ((\n props: PieSectorShapeProps,\n index: number | string | undefined,\n ) => ChartSectorProps)\n | ChartSectorProps\n}\n\nexport const ChartPie = withContext<\"svg\", ChartPieProps>((props) => {\n const { pieProps } = useComponentContext()\n const {\n activeIndex,\n children,\n label: labelProp,\n labelLine: labelLineProp = false,\n labelList = false,\n nameKey,\n sectorProps,\n ...rest\n } = mergeProps(pieProps, props)()\n const shape = useCallback<FunctionOf<UseChartPieProps[\"shape\"]>>(\n (props, index) => {\n if (isNumber(activeIndex)) props.isActive = index === activeIndex\n\n return (\n <ChartSector\n {...mergeProps(props, runIfFn(sectorProps, props, index))()}\n />\n )\n },\n [activeIndex, sectorProps],\n )\n const label = useMemo<UseChartPieProps[\"label\"]>(() => {\n if (!labelProp) return labelProp\n\n const Component = (props: any) => (\n <ChartPieLabel\n {...mergeProps(\n props,\n labelProp !== true ? runIfFn(labelProp, props) : {},\n )()}\n />\n )\n\n return Component\n }, [labelProp])\n const labelLine = useMemo<UseChartPieProps[\"labelLine\"]>(() => {\n if (!labelLineProp) return labelLineProp\n\n const Component = ({ key: _, ...rest }: any) => (\n <ChartPieLabelLine\n {...mergeProps(\n rest,\n labelLineProp !== true ? runIfFn(labelLineProp, rest) : {},\n )()}\n />\n )\n\n return Component\n }, [labelLineProp])\n const { getPieProps, getRootProps } = useChartPie({\n label,\n labelLine,\n nameKey,\n shape,\n ...rest,\n })\n\n return (\n <styled.svg asChild {...getRootProps()}>\n <Pie {...getPieProps()}>\n {children}\n\n {labelList ? (\n <ChartLabelList\n dataKey={nameKey}\n {...(isObject(labelList) ? labelList : {})}\n />\n ) : null}\n </Pie>\n </styled.svg>\n )\n}, \"pie\")() as GenericsComponent<{\n <Y extends Dict>(props: ChartPieProps<Y>): ReactElement\n}>\n\ninterface ChartSectorProps extends Merge<\n HTMLStyledProps<\"path\">,\n UseChartSectorProps\n> {}\n\nconst ChartSector = withContext<\"path\", ChartSectorProps>((props) => {\n const { sectorProps } = useComponentContext()\n const { getRootProps, getSectorProps } = useChartSector({\n ...sectorProps,\n ...props,\n })\n\n return (\n <styled.path asChild {...getRootProps()}>\n <Sector {...getSectorProps()} />\n </styled.path>\n )\n}, \"sector\")()\n\ninterface ChartPieLabelProps extends Merge<\n HTMLStyledProps<\"text\">,\n UseChartPieLabelProps\n> {}\n\nconst ChartPieLabel = withContext<\"text\", ChartPieLabelProps>((props) => {\n const { getRootProps, getTextProps } = useChartPieLabel(props)\n\n return (\n <styled.text asChild {...getRootProps()}>\n <Text {...getTextProps()} />\n </styled.text>\n )\n}, \"label\")()\n\ninterface ChartPieLabelLineProps extends Merge<\n HTMLStyledProps<\"path\">,\n UseChartPieLabelLineProps\n> {}\n\nconst ChartPieLabelLine = withContext<\"path\", ChartPieLabelLineProps>(\n (props) => {\n const { getCurveProps, getRootProps } = useChartPieLabelLine(props)\n\n return (\n <styled.path asChild {...getRootProps()}>\n <Curve {...getCurveProps()} />\n </styled.path>\n )\n },\n \"labelLine\",\n)()\n\nexport interface ChartDonutProps<\n Y extends Dict = Dict,\n> extends ChartPieProps<Y> {}\n\nexport const ChartDonut = component<\"svg\", ChartDonutProps>(ChartPie, \"donut\")(\n undefined,\n (props) => {\n const { pieProps } = useComponentContext()\n\n return mergeProps(pieProps, props)()\n },\n ({ label, ...rest }) => ({ innerRadius: !label ? \"70%\" : \"50%\", ...rest }),\n) as GenericsComponent<{\n <Y extends Dict>(props: ChartDonutProps<Y>): ReactElement\n}>\n\nexport interface ChartRadarProps<Y extends Dict = Dict> extends Merge<\n HTMLStyledProps<\"path\">,\n Omit<UseChartRadarProps, \"activeDot\" | \"dataKey\" | \"dot\" | \"label\" | \"stroke\">\n> {\n /**\n * The key of a group of data which should be unique in an chart.\n */\n dataKey: keyof Y\n /**\n * The active dot to use for the line.\n *\n * @default true\n */\n activeDot?: ChartActiveDot\n /**\n * The dot to use for the line.\n *\n * @default false\n */\n dot?: ChartDot\n /**\n * The label to use for the line.\n *\n * @default false\n */\n label?: ChartLabelListType\n}\n\nexport const ChartRadar = withContext<\"path\", ChartRadarProps>((props) => {\n const { radarProps } = useComponentContext()\n const {\n activeDot: activeDotProp = true,\n children,\n dataKey,\n dot: dotProp = false,\n label: labelProp = false,\n stroke: strokeProp,\n ...rest\n } = mergeProps(radarProps, props)()\n const id = useId()\n const system = useSystem()\n const { theme } = useTheme()\n const color = strokeProp ?? rest.fill ?? rest.color\n const stroke = JSON.stringify(color)\n const dotProps = useSlotComponentProps({}, \"dot\")\n const activeDotProps = useSlotComponentProps({}, \"activeDot\")\n const labelProps = useSlotComponentProps({}, \"labelList\")\n const css = useMemo(() => getCSS(system, theme), [system, theme])\n const dot = useMemo<UseChartRadarProps[\"dot\"]>(() => {\n if (!dotProp) return dotProp\n\n const className = cx(\n dotProps.className,\n css(dotProps.css),\n css({ fill: color, stroke: color }),\n )\n\n if (isFunction(dotProp)) {\n return (props) =>\n dotProp({ ...props, className: cx(className, props.className) })\n } else if (isValidElement(dotProp)) {\n return cloneElement<any>(dotProp, { className })\n } else if (isObject(dotProp)) {\n const [omittedProps, styleProps] = splitObject<DotProps, CSSObject>(\n dotProp,\n shouldForwardProp,\n )\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className }\n }\n }, [dotProp, dotProps.className, dotProps.css, css, color])\n const activeDot = useMemo<UseChartRadarProps[\"activeDot\"]>(() => {\n if (!activeDotProp) return activeDotProp\n\n const className = cx(\n activeDotProps.className,\n css(activeDotProps.css),\n css({ fill: color, stroke: color }),\n )\n\n if (isFunction(activeDotProp)) {\n return (props) =>\n activeDotProp({ ...props, className: cx(className, props.className) })\n } else if (isValidElement(activeDotProp)) {\n return cloneElement<any>(activeDotProp, { className })\n } else if (isObject(activeDotProp)) {\n const [omittedProps, styleProps] = splitObject<ActiveDotProps, CSSObject>(\n activeDotProp,\n shouldForwardProp,\n )\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className }\n }\n }, [activeDotProp, activeDotProps.className, activeDotProps.css, css, color])\n const label = useMemo<UseChartRadarProps[\"label\"]>(() => {\n if (!labelProp) return labelProp\n\n const className = cx(labelProps.className, css(labelProps.css))\n\n if (isFunction(labelProp)) {\n return (props) =>\n labelProp({ ...props, className: cx(className, props.className) })\n } else if (isValidElement(labelProp)) {\n return cloneElement<any>(labelProp, { className })\n } else if (isObject(labelProp)) {\n const [omittedProps, styleProps] = splitObject<LabelListProps, CSSObject>(\n labelProp,\n shouldForwardProp,\n )\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className }\n }\n }, [labelProp, labelProps.className, labelProps.css, css])\n const { getRadarProps, getRootProps } = useChartRadar({\n activeDot,\n dataKey,\n dot,\n fill: color ? `url(#${id})` : \"\",\n label,\n stroke,\n ...rest,\n })\n\n return (\n <>\n <styled.path asChild {...getRootProps()}>\n <Radar {...getRadarProps()}>{children}</Radar>\n </styled.path>\n\n <linearGradient id={id} x1=\"0\" x2=\"0\" y1=\"0\" y2=\"1\">\n <styled.stop\n stopColor={color}\n stopOpacity={rest.fillOpacity ?? \"{radar-fill-opacity}\"}\n />\n </linearGradient>\n </>\n )\n}, \"radar\")() as GenericsComponent<{\n <Y extends Dict>(props: ChartRadarProps<Y>): ReactElement\n}>\n\nexport type ChartPolarAxisTick =\n | ((props: BaseTickContentProps) => ReactNode)\n | boolean\n | HTMLStyledProps<\"text\">\n | ReactElement\n\nexport type ChartAxisLine = boolean | HTMLStyledProps<\"line\">\n\nexport interface ChartAngleAxisProps<Y extends Dict = Dict> extends Merge<\n HTMLStyledProps<\"text\">,\n Omit<\n UseAngleAxisProps,\n \"axisLine\" | \"dataKey\" | \"label\" | \"tick\" | \"tickLine\"\n >\n> {\n /**\n * The tick line to use for the axis.\n *\n * @default false\n */\n axisLine?: ChartAxisLine\n /**\n * The key of a group of data which should be unique in an chart.\n */\n dataKey?: keyof Y\n /**\n * The label to use for the axis.\n *\n * @default false\n */\n label?: ChartLabel\n /**\n * The tick to use for the axis.\n *\n * @default true\n */\n tick?: ChartPolarAxisTick\n /**\n * The tick line to use for the axis.\n *\n * @default false\n */\n tickLine?: ChartTickLine\n}\n\nexport const ChartAngleAxis = withContext<\"text\", ChartAngleAxisProps>(\n (props) => {\n const { nameKey, angleAxisProps } = useComponentContext()\n const {\n axisLine: axisLineProp = false,\n children,\n label: labelProp = false,\n tick: tickProp = true,\n tickLine: tickLineProp = false,\n ...rest\n } = mergeProps(angleAxisProps, props)()\n const system = useSystem()\n const { theme } = useTheme()\n const tickProps = useSlotComponentProps({}, \"angleAxisTick\")\n const labelProps = useSlotComponentProps({}, \"angleAxisLabel\")\n const tickLineProps = useSlotComponentProps({}, \"angleAxisTickLine\")\n const axisLineProps = useSlotComponentProps({}, \"angleAxisLine\")\n const css = useMemo(() => getCSS(system, theme), [system, theme])\n const tick = useMemo<UseAngleAxisProps[\"tick\"]>(() => {\n if (!tickProp) return tickProp\n\n const className = cx(tickProps.className, css(tickProps.css))\n\n if (isFunction(tickProp)) {\n return (props) =>\n tickProp({ ...props, className: cx(className, props.className) })\n } else if (isValidElement(tickProp)) {\n return cloneElement<any>(tickProp, { className })\n } else if (isObject(tickProp)) {\n const [omittedProps, styleProps] = splitObject<\n BaseTickContentProps,\n CSSObject\n >(tickProp, shouldForwardProp)\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className }\n }\n }, [tickProp, tickProps.className, tickProps.css, css])\n const tickLine = useMemo<UseAngleAxisProps[\"tickLine\"]>(() => {\n if (!tickLineProp) return tickLineProp\n\n const className = cx(tickLineProps.className, css(tickLineProps.css))\n\n if (isObject(tickLineProp)) {\n const [omittedProps, styleProps] = splitObject<\n HTMLProps<\"line\">,\n CSSObject\n >(tickLineProp, shouldForwardProp)\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className }\n }\n }, [tickLineProp, tickLineProps.className, tickLineProps.css, css])\n const axisLine = useMemo<UseAngleAxisProps[\"axisLine\"]>(() => {\n if (!axisLineProp) return axisLineProp\n\n const className = cx(axisLineProps.className, css(axisLineProps.css))\n\n if (isObject(axisLineProp)) {\n const [omittedProps, styleProps] = splitObject<\n HTMLProps<\"line\">,\n CSSObject\n >(axisLineProp, shouldForwardProp)\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className }\n }\n }, [axisLineProp, axisLineProps.className, axisLineProps.css, css])\n const label = useMemo<UseAngleAxisProps[\"label\"]>(() => {\n if (!labelProp) return labelProp\n\n const className = cx(labelProps.className, css(labelProps.css))\n\n if (isFunction(labelProp)) {\n return (props) =>\n labelProp({ ...props, className: cx(className, props.className) })\n } else if (isValidElement(labelProp)) {\n return cloneElement<any>(labelProp, { className })\n } else if (isObject(labelProp)) {\n const [omittedProps, styleProps] = splitObject<LabelProps, CSSObject>(\n labelProp,\n shouldForwardProp,\n )\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className, children: labelProp }\n }\n }, [labelProp, labelProps.className, labelProps.css, css])\n const { getAngleAxisProps, getRootProps } = useAngleAxis({\n axisLine,\n dataKey: nameKey,\n label,\n tick,\n tickLine,\n ...rest,\n })\n\n return (\n <styled.text asChild {...getRootProps()}>\n <PolarAngleAxis {...getAngleAxisProps()}>{children}</PolarAngleAxis>\n </styled.text>\n )\n },\n \"angleAxis\",\n)() as GenericsComponent<{\n <Y extends Dict>(props: ChartAngleAxisProps<Y>): ReactElement\n}>\n\nexport interface ChartRadiusAxisProps<Y extends Dict = Dict> extends Merge<\n HTMLStyledProps<\"text\">,\n Omit<\n UseRadiusAxisProps,\n \"axisLine\" | \"dataKey\" | \"label\" | \"tick\" | \"tickLine\"\n >\n> {\n /**\n * The tick line to use for the axis.\n *\n * @default false\n */\n axisLine?: ChartAxisLine\n /**\n * The key of a group of data which should be unique in an chart.\n */\n dataKey?: keyof Y\n /**\n * The label to use for the axis.\n *\n * @default false\n */\n label?: ChartLabel\n /**\n * The tick to use for the axis.\n *\n * @default true\n */\n tick?: ChartPolarAxisTick\n /**\n * The tick line to use for the axis.\n *\n * @default false\n */\n tickLine?: ChartTickLine\n}\n\nexport const ChartRadiusAxis = withContext<\"text\", ChartRadiusAxisProps>(\n (props) => {\n const { radiusAxisProps } = useComponentContext()\n const {\n axisLine: axisLineProp = false,\n children,\n label: labelProp = false,\n tick: tickProp = true,\n tickLine: tickLineProp = false,\n ...rest\n } = mergeProps(radiusAxisProps, props)()\n const system = useSystem()\n const { theme } = useTheme()\n const tickProps = useSlotComponentProps({}, \"radiusAxisTick\")\n const labelProps = useSlotComponentProps({}, \"radiusAxisLabel\")\n const tickLineProps = useSlotComponentProps({}, \"radiusAxisTickLine\")\n const axisLineProps = useSlotComponentProps({}, \"radiusAxisLine\")\n const css = useMemo(() => getCSS(system, theme), [system, theme])\n const tick = useMemo<UseRadiusAxisProps[\"tick\"]>(() => {\n if (!tickProp) return tickProp\n\n const className = cx(tickProps.className, css(tickProps.css))\n\n if (isFunction(tickProp)) {\n return (props) =>\n tickProp({ ...props, className: cx(className, props.className) })\n } else if (isValidElement(tickProp)) {\n return cloneElement<any>(tickProp, { className })\n } else if (isObject(tickProp)) {\n const [omittedProps, styleProps] = splitObject<\n BaseTickContentProps,\n CSSObject\n >(tickProp, shouldForwardProp)\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className }\n }\n }, [tickProp, tickProps.className, tickProps.css, css])\n const tickLine = useMemo<UseRadiusAxisProps[\"tickLine\"]>(() => {\n if (!tickLineProp) return tickLineProp\n\n const className = cx(tickLineProps.className, css(tickLineProps.css))\n\n if (isObject(tickLineProp)) {\n const [omittedProps, styleProps] = splitObject<\n HTMLProps<\"line\">,\n CSSObject\n >(tickLineProp, shouldForwardProp)\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className }\n }\n }, [tickLineProp, tickLineProps.className, tickLineProps.css, css])\n const axisLine = useMemo<UseRadiusAxisProps[\"axisLine\"]>(() => {\n if (!axisLineProp) return axisLineProp\n\n const className = cx(axisLineProps.className, css(axisLineProps.css))\n\n if (isObject(axisLineProp)) {\n const [omittedProps, styleProps] = splitObject<\n HTMLProps<\"line\">,\n CSSObject\n >(axisLineProp, shouldForwardProp)\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className }\n }\n }, [axisLineProp, axisLineProps.className, axisLineProps.css, css])\n const label = useMemo<UseRadiusAxisProps[\"label\"]>(() => {\n if (!labelProp) return labelProp\n\n const className = cx(labelProps.className, css(labelProps.css))\n\n if (isFunction(labelProp)) {\n return (props) =>\n labelProp({ ...props, className: cx(className, props.className) })\n } else if (isValidElement(labelProp)) {\n return cloneElement<any>(labelProp, { className })\n } else if (isObject(labelProp)) {\n const [omittedProps, styleProps] = splitObject<LabelProps, CSSObject>(\n labelProp,\n shouldForwardProp,\n )\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className, children: labelProp }\n }\n }, [labelProp, labelProps.className, labelProps.css, css])\n const { getRadiusAxisProps, getRootProps } = useRadiusAxis({\n axisLine,\n label,\n tick,\n tickLine,\n ...rest,\n })\n\n return (\n <styled.text asChild {...getRootProps()}>\n <PolarRadiusAxis {...getRadiusAxisProps()}>{children}</PolarRadiusAxis>\n </styled.text>\n )\n },\n \"radiusAxis\",\n)() as GenericsComponent<{\n <Y extends Dict>(props: ChartRadiusAxisProps<Y>): ReactElement\n}>\n\nexport interface ChartPolarGridProps extends Merge<\n HTMLStyledProps<\"line\">,\n UsePolarGridProps\n> {}\n\nexport const ChartPolarGrid = withContext<\"line\", ChartPolarGridProps>(\n (props) => {\n const { gridProps } = useComponentContext()\n const { getPolarGridProps, getRootProps } = usePolarGrid({\n ...gridProps,\n ...props,\n })\n\n return (\n <styled.line asChild {...getRootProps()}>\n <PolarGrid {...getPolarGridProps()} />\n </styled.line>\n )\n },\n \"grid\",\n)()\n\nexport type ChartRadialBackground =\n | ((props: SectorProps) => ReactNode)\n | boolean\n | HTMLStyledProps<\"path\">\n | ReactElement\n\nexport interface ChartRadialProps<Y extends Dict = Dict> extends Merge<\n Omit<HTMLStyledProps<\"svg\">, \"background\">,\n Omit<UseChartRadialProps<Y>, \"background\" | \"dataKey\" | \"label\">\n> {\n /**\n * The key of a group of data which should be unique in an chart.\n */\n dataKey: keyof Y\n /**\n * The background to use for the radial chart.\n */\n background?: ChartRadialBackground\n /**\n * The label to use for the radial.\n *\n * @default false\n */\n label?: ChartLabelListType\n /**\n * If `true`, the label list is visible.\n *\n * @default false\n */\n labelList?: ChartPieLabelList\n /**\n * Props for the sector component.\n */\n sectorProps?:\n | ((props: RadialBarSectorProps) => ChartSectorProps)\n | ChartSectorProps\n}\n\nexport const ChartRadial = withContext<\"svg\", ChartRadialProps>(\n <Y extends Dict>(props: ChartRadialProps<Y>) => {\n const { radialProps } = useComponentContext()\n const {\n background: backgroundProp = true,\n children,\n dataKey,\n label: labelProp = false,\n labelList = false,\n nameKey,\n sectorProps,\n ...rest\n } = mergeProps(radialProps, props)()\n const system = useSystem()\n const { theme } = useTheme()\n const { nameKeyRef } = useChartComponentContext()\n const labelProps = useSlotComponentProps({}, \"labelList\")\n const backgroundProps = useSlotComponentProps({}, \"radialBackground\")\n const css = useMemo(() => getCSS(system, theme), [system, theme])\n const shape = useCallback<FunctionOf<UseChartRadialProps<Y>[\"shape\"]>>(\n (props) => {\n const color = rest.fill ?? rest.color\n\n return (\n <ChartSector\n color={color}\n {...mergeProps(props, runIfFn(sectorProps, props))()}\n />\n )\n },\n [rest.fill, rest.color, sectorProps],\n )\n const label = useMemo<UseChartRadialProps<Y>[\"label\"]>(() => {\n if (!labelProp) return labelProp\n\n const className = cx(labelProps.className, css(labelProps.css))\n\n if (isFunction(labelProp)) {\n return (props) =>\n labelProp({ ...props, className: cx(className, props.className) })\n } else if (isValidElement(labelProp)) {\n return cloneElement<any>(labelProp, { className })\n } else if (isObject(labelProp)) {\n const [omittedProps, styleProps] = splitObject<\n LabelListProps,\n CSSObject\n >(labelProp, shouldForwardProp)\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className }\n }\n }, [labelProp, labelProps.className, labelProps.css, css])\n const background = useMemo<UseChartRadialProps<Y>[\"background\"]>(() => {\n if (!backgroundProp) return backgroundProp\n\n const className = cx(backgroundProps.className, css(backgroundProps.css))\n\n if (isFunction(backgroundProp)) {\n return (props) =>\n backgroundProp({\n ...props,\n className: cx(className, props.className),\n })\n } else if (isValidElement(backgroundProp)) {\n return cloneElement<any>(backgroundProp, { className })\n } else if (isObject(backgroundProp)) {\n const [omittedProps, styleProps] = splitObject<\n HTMLProps<\"path\">,\n CSSObject\n >(backgroundProp, shouldForwardProp)\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className }\n }\n }, [backgroundProp, backgroundProps.className, backgroundProps.css, css])\n const { getRadialProps, getRootProps } = useChartRadial({\n background,\n dataKey: dataKey as DataKey<any>,\n label,\n nameKey,\n shape,\n ...rest,\n })\n\n assignRef(nameKeyRef, nameKey)\n\n return (\n <styled.svg asChild {...getRootProps()}>\n <RadialBar {...getRadialProps()}>\n {children}\n\n {labelList ? (\n <ChartLabelList\n dataKey={nameKey as DataKey<any>}\n offset={4}\n position=\"insideStart\"\n {...(isObject(labelList) ? labelList : {})}\n />\n ) : null}\n </RadialBar>\n </styled.svg>\n )\n },\n \"radial\",\n)() as GenericsComponent<{\n <Y extends Dict>(props: ChartRadialProps<Y>): ReactElement\n}>\n"],"mappings":";;;;;;;;;;;;;;;;;AAoGA,MAAM,oBAAoBA,cAAAA,wBAAwB;AAmOlD,MAAM,EACJ,WACA,kBACA,cAAc,wBACd,qBACA,iBAAiB,2BACjB,aACA,cACA,0BACEC,yBAAAA,oBACF,eACAC,0BAAAA,eACF;AAIA,MAAa,aAAa,cACP,EACf,YAAY,gBACZ,SACA,QACA,gBAAgB,OAChB,WAAW,OACX,iBAAiB,OACjB,gBACA,YACA,YACA,WACA,WAAW,YACX,YACA,aACA,iBACA,aACA,GAAG,WACqB;CACxB,MAAM,EAAE,eAAe,iBAAiBC,wBAAAA,cAAc,IAAI;CAC1D,MAAM,cAAA,GAAaC,MAAAA,QAAAA,OACX;EACJ;GACE,WAAW;GACX,UAAU,WAAW,iBAAA,GAAA,kBAAA,IAAA,CAAC,gBAAD,CAAiB,CAAA,IAAI;EAC5C;EACA;GACE,WAAW;GACX,UAAU,gBAAgB,iBAAA,GAAA,kBAAA,IAAA,CAAC,gBAA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AAU,YAAY,OAAO;CAE7B,OACE,iBAAA,GAAA,kBAAA,IAAA,CAACxB,gBAAAA,OAAO,KAAR;EAAY,SAAA;EAAQ,GAAI,aAAa;EACnC,UAAA,iBAAA,GAAA,kBAAA,KAAA,CAACyB,SAAAA,WAAD;GAAW,GAAI,eAAe;GAA9B,UAAA,CACG,UAEA,YACC,iBAAA,GAAA,kBAAA,IAAA,CAACvB,cAAAA,gBAAD;IACE,SAAS;IACT,QAAQ;IACR,UAAS;IACT,IAAA,GAAA,oBAAA,cAAK,SAAA,CAAS,SAAS,IAAI,YAAY,CAAC;GACzC,CAAA,IACC,IACK;;CACD,CAAA;AAEhB,GACA,QACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"polar-chart.cjs","names":["createShouldForwardProp","createSlotComponent","polarChartStyle","usePolarChart","useMemo","Chart","varAttr","transforms","mergeProps","useCallback","useChartPie","styled","Pie","ChartLabelList","useChartSector","Sector","useChartPieLabel","Text","useChartPieLabelLine","Curve","useId","useSystem","useTheme","getCSS","isValidElement","cloneElement","useChartRadar","Radar","useAngleAxis","PolarAngleAxis","useRadiusAxis","PolarRadiusAxis","usePolarGrid","PolarGrid","useChartComponentContext","useChartRadial","RadialBar"],"sources":["../../../../src/components/chart/polar-chart.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactElement, ReactNode } from \"react\"\n\nimport type {\n ActiveDotProps,\n BaseTickContentProps,\n DataKey,\n DotProps,\n LabelListProps,\n LabelProps,\n PieLabelRenderProps,\n PieSectorShapeProps,\n RadialBarSectorProps,\n SectorProps,\n} from \"recharts\"\nimport type { PolarChartProps as OriginalPolarChartProps } from \"recharts/types/util/types\"\nimport type {\n CSSObject,\n CSSProps,\n GenericsComponent,\n HTMLProps,\n HTMLStyledProps,\n ThemeProps,\n} from \"../../core\"\nimport type { Dict, FunctionOf, Merge } from \"../../utils\"\nimport type {\n ChartActiveDot,\n ChartDot,\n ChartLabel,\n ChartLabelListProps,\n ChartLabelList as ChartLabelListType,\n ChartProps,\n ChartTickLine,\n} from \"./chart\"\nimport type { PolarChartStyle } from \"./polar-chart.style\"\nimport type {\n UseAngleAxisProps,\n UseChartPieLabelLineProps,\n UseChartPieLabelProps,\n UseChartPieProps,\n UseChartRadarProps,\n UseChartRadialProps,\n UseChartSectorProps,\n UsePolarChartProps,\n UsePolarGridProps,\n UseRadiusAxisProps,\n} from \"./use-polar-chart\"\nimport {\n cloneElement,\n isValidElement,\n useCallback,\n useId,\n useMemo,\n} from \"react\"\nimport {\n Curve,\n Pie,\n PolarAngleAxis,\n PolarGrid,\n PolarRadiusAxis,\n Radar,\n RadialBar,\n Sector,\n Text,\n} from \"recharts\"\nimport {\n createShouldForwardProp,\n createSlotComponent,\n getCSS,\n mergeProps,\n styled,\n transforms,\n useSystem,\n useTheme,\n varAttr,\n} from \"../../core\"\nimport {\n assignRef,\n cx,\n isFunction,\n isNumber,\n isObject,\n replaceObject,\n runIfFn,\n splitObject,\n} from \"../../utils\"\nimport { Chart, ChartLabelList, useChartComponentContext } from \"./chart\"\nimport { polarChartStyle } from \"./polar-chart.style\"\nimport {\n useAngleAxis,\n useChartPie,\n useChartPieLabel,\n useChartPieLabelLine,\n useChartRadar,\n useChartRadial,\n useChartSector,\n usePolarChart,\n usePolarGrid,\n useRadiusAxis,\n} from \"./use-polar-chart\"\n\nconst shouldForwardProp = createShouldForwardProp()\n\ninterface ComponentContext extends Pick<\n PolarChartProps,\n | \"angleAxisProps\"\n | \"gridProps\"\n | \"nameKey\"\n | \"pieProps\"\n | \"radarProps\"\n | \"radialProps\"\n | \"radiusAxisProps\"\n | \"sectorProps\"\n> {}\n\nexport interface PolarChartProps<Y extends Dict = Dict>\n extends\n Omit<ChartProps, \"cx\" | \"cy\">,\n UsePolarChartProps<Y>,\n ThemeProps<PolarChartStyle> {\n /**\n * The fill of the active dot.\n */\n activeDotFill?: CSSProps[\"fill\"]\n /**\n * The radius of the active dot.\n */\n activeDotRadius?: CSSProps[\"r\"]\n /**\n * The stroke of the active dot.\n */\n activeDotStroke?: CSSProps[\"stroke\"]\n /**\n * The width of the active dot stroke.\n */\n activeDotStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The stroke of the angle axis line.\n */\n angleAxisLineStroke?: CSSProps[\"stroke\"]\n /**\n * The width of the angle axis line stroke.\n */\n angleAxisLineStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The color of the angle axis text.\n */\n angleAxisTextColor?: CSSProps[\"color\"]\n /**\n * The fill of the angle axis text.\n */\n angleAxisTextFill?: CSSProps[\"fill\"]\n /**\n * The fill of the dot.\n */\n dotFill?: CSSProps[\"fill\"]\n /**\n * The radius of the dot.\n */\n dotRadius?: CSSProps[\"r\"]\n /**\n * The stroke of the dot.\n */\n dotStroke?: CSSProps[\"stroke\"]\n /**\n * The width of the dot stroke.\n */\n dotStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The stroke of the grid.\n */\n gridStroke?: CSSProps[\"stroke\"]\n /**\n * The opacity of the inactive label line.\n */\n inactiveLabelLineOpacity?: CSSProps[\"opacity\"]\n /**\n * The opacity of the inactive label.\n */\n inactiveLabelOpacity?: CSSProps[\"opacity\"]\n /**\n * The opacity of the inactive radar.\n */\n inactiveRadarOpacity?: CSSProps[\"opacity\"]\n /**\n * The opacity of the inactive sector.\n */\n inactiveSectorOpacity?: CSSProps[\"opacity\"]\n /**\n * The color of the label.\n */\n labelColor?: CSSProps[\"color\"]\n /**\n * The fill of the label.\n */\n labelFill?: CSSProps[\"fill\"]\n /**\n * The stroke of the label line.\n */\n labelLineStroke?: CSSProps[\"stroke\"]\n /**\n * The width of the label line stroke.\n */\n labelLineStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The key to use for the angle axis.\n */\n nameKey?: keyof Y\n /**\n * The color of the radar.\n */\n radarColor?: CSSProps[\"color\"]\n /**\n * The fill opacity of the radar.\n */\n radarFillOpacity?: CSSProps[\"fillOpacity\"]\n /**\n * The stroke of the radar.\n */\n radarStroke?: CSSProps[\"stroke\"]\n /**\n * The width of the radar stroke.\n */\n radarStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The color of the radial background.\n */\n radialBackgroundColor?: CSSProps[\"color\"]\n /**\n * The fill of the radial background.\n */\n radialBackgroundFill?: CSSProps[\"fill\"]\n /**\n * The stroke of the radial background.\n */\n radialBackgroundStroke?: CSSProps[\"stroke\"]\n /**\n * The width of the radial background stroke.\n */\n radialBackgroundStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The stroke of the radius axis line.\n */\n radiusAxisLineStroke?: CSSProps[\"stroke\"]\n /**\n * The width of the radius axis line stroke.\n */\n radiusAxisLineStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The color of the radius axis text.\n */\n radiusAxisTextColor?: CSSProps[\"color\"]\n /**\n * The fill of the radius axis text.\n */\n radiusAxisTextFill?: CSSProps[\"fill\"]\n /**\n * The color of the sector.\n */\n sectorColor?: CSSProps[\"color\"]\n /**\n * The fill of the sector.\n */\n sectorFill?: CSSProps[\"fill\"]\n /**\n * The stroke of the sector.\n */\n sectorStroke?: CSSProps[\"stroke\"]\n /**\n * The width of the sector stroke.\n */\n sectorStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * If `true`, angle axis is visible.\n *\n * @default true\n */\n withAngleAxis?: boolean\n /**\n * If `true`, grid is visible.\n *\n * @default true\n */\n withGrid?: boolean\n /**\n * If `true`, radius axis is visible.\n *\n * @default false\n */\n withRadiusAxis?: boolean\n /**\n * Props for the angle axis component.\n */\n angleAxisProps?: UseAngleAxisProps\n /**\n * Props for the polar chart component.\n */\n chartProps?: Omit<OriginalPolarChartProps, \"data\">\n /**\n * Props for the donut component.\n */\n donutProps?: Omit<ChartPieProps, \"data\" | \"dataKey\" | \"nameKey\">\n /**\n * Props for the grid component.\n */\n gridProps?: ChartPolarGridProps\n /**\n * Props for the pie component.\n */\n pieProps?: Omit<ChartPieProps, \"data\" | \"dataKey\" | \"nameKey\">\n /**\n * Props for the radar component.\n */\n radarProps?: Omit<ChartRadarProps, \"data\" | \"dataKey\">\n /**\n * Props for the radial component.\n */\n radialProps?: Omit<ChartRadialProps, \"dataKey\" | \"nameKey\">\n /**\n * Props for the radius axis component.\n */\n radiusAxisProps?: UseRadiusAxisProps\n /**\n * Props for the sector component.\n */\n sectorProps?: ChartSectorProps\n}\n\nconst {\n component,\n ComponentContext,\n PropsContext: PolarChartPropsContext,\n useComponentContext,\n usePropsContext: usePolarChartPropsContext,\n withContext,\n withProvider,\n useSlotComponentProps,\n} = createSlotComponent<PolarChartProps, PolarChartStyle, ComponentContext>(\n \"polar-chart\",\n polarChartStyle,\n)\n\nexport { PolarChartPropsContext, usePolarChartPropsContext }\n\nexport const PolarChart = withProvider(\n <Y extends Dict>({\n components: componentsProp,\n nameKey,\n render,\n withAngleAxis = false,\n withGrid = false,\n withRadiusAxis = false,\n angleAxisProps,\n chartProps,\n donutProps,\n gridProps,\n pieProps = donutProps,\n radarProps,\n radialProps,\n radiusAxisProps,\n sectorProps,\n ...rest\n }: PolarChartProps<Y>) => {\n const { getChartProps, getRootProps } = usePolarChart(rest)\n const components = useMemo(\n () => [\n {\n component: ChartPolarGrid,\n fallback: withGrid ? <ChartPolarGrid /> : null,\n },\n {\n component: ChartAngleAxis,\n fallback: withAngleAxis ? <ChartAngleAxis /> : null,\n },\n {\n component: ChartRadiusAxis,\n fallback: withRadiusAxis ? <ChartRadiusAxis /> : null,\n },\n ...componentsProp,\n ],\n [componentsProp, withGrid, withAngleAxis, withRadiusAxis],\n )\n const componentContext = useMemo(\n () => ({\n nameKey: nameKey as string | undefined,\n angleAxisProps,\n gridProps,\n pieProps,\n radarProps,\n radialProps,\n radiusAxisProps,\n sectorProps,\n }),\n [\n pieProps,\n radarProps,\n sectorProps,\n angleAxisProps,\n radiusAxisProps,\n gridProps,\n nameKey,\n radialProps,\n ],\n )\n\n return (\n <ComponentContext value={componentContext}>\n <Chart\n components={components}\n render={(props) => render(getChartProps({ ...props, ...chartProps }))}\n {...getRootProps()}\n />\n </ComponentContext>\n )\n },\n \"root\",\n)(\n undefined,\n ({\n activeDotFill,\n activeDotRadius,\n activeDotStroke,\n activeDotStrokeWidth,\n angleAxisLineStroke,\n angleAxisLineStrokeWidth,\n angleAxisTextColor,\n angleAxisTextFill,\n dotFill,\n dotRadius,\n dotStroke,\n dotStrokeWidth,\n gridStroke,\n inactiveLabelLineOpacity,\n inactiveLabelOpacity,\n inactiveRadarOpacity,\n inactiveSectorOpacity,\n labelColor,\n labelFill,\n labelLineStroke,\n labelLineStrokeWidth,\n radarColor,\n radarFillOpacity,\n radarStroke,\n radarStrokeWidth,\n radialBackgroundColor,\n radialBackgroundFill,\n radialBackgroundStroke,\n radialBackgroundStrokeWidth,\n radiusAxisLineStroke,\n radiusAxisLineStrokeWidth,\n radiusAxisTextColor,\n radiusAxisTextFill,\n sectorColor,\n sectorFill,\n sectorStroke,\n sectorStrokeWidth,\n ...rest\n }) => ({\n \"--active-dot-fill\": varAttr(activeDotFill, \"colors\"),\n \"--active-dot-r\": replaceObject(activeDotRadius, transforms.px),\n \"--active-dot-stroke\": varAttr(activeDotStroke, \"colors\"),\n \"--active-dot-stroke-width\": activeDotStrokeWidth,\n \"--angle-axis-line-stroke\": varAttr(angleAxisLineStroke, \"colors\"),\n \"--angle-axis-line-stroke-width\": angleAxisLineStrokeWidth,\n \"--angle-axis-text-color\": varAttr(angleAxisTextColor, \"colors\"),\n \"--angle-axis-text-fill\": varAttr(angleAxisTextFill, \"colors\"),\n \"--dot-fill\": varAttr(dotFill, \"colors\"),\n \"--dot-r\": replaceObject(dotRadius, transforms.px),\n \"--dot-stroke\": varAttr(dotStroke, \"colors\"),\n \"--dot-stroke-width\": dotStrokeWidth,\n \"--grid-stroke\": varAttr(gridStroke, \"colors\"),\n \"--inactive-label-line-opacity\": inactiveLabelLineOpacity,\n \"--inactive-label-opacity\": inactiveLabelOpacity,\n \"--inactive-radar-opacity\": inactiveRadarOpacity,\n \"--inactive-sector-opacity\": inactiveSectorOpacity,\n \"--label-color\": varAttr(labelColor, \"colors\"),\n \"--label-fill\": varAttr(labelFill, \"colors\"),\n \"--label-line-stroke\": varAttr(labelLineStroke, \"colors\"),\n \"--label-line-stroke-width\": labelLineStrokeWidth,\n \"--radar-color\": varAttr(radarColor, \"colors\"),\n \"--radar-fill-opacity\": radarFillOpacity,\n \"--radar-stroke\": varAttr(radarStroke, \"colors\"),\n \"--radar-stroke-width\": radarStrokeWidth,\n \"--radial-background-color\": varAttr(radialBackgroundColor, \"colors\"),\n \"--radial-background-fill\": varAttr(radialBackgroundFill, \"colors\"),\n \"--radial-background-stroke\": varAttr(radialBackgroundStroke, \"colors\"),\n \"--radial-background-stroke-width\": radialBackgroundStrokeWidth,\n \"--radius-axis-line-stroke\": varAttr(radiusAxisLineStroke, \"colors\"),\n \"--radius-axis-line-stroke-width\": radiusAxisLineStrokeWidth,\n \"--radius-axis-text-color\": varAttr(radiusAxisTextColor, \"colors\"),\n \"--radius-axis-text-fill\": varAttr(radiusAxisTextFill, \"colors\"),\n \"--sector-color\": varAttr(sectorColor, \"colors\"),\n \"--sector-fill\": varAttr(sectorFill, \"colors\"),\n \"--sector-stroke\": varAttr(sectorStroke, \"colors\"),\n \"--sector-stroke-width\": sectorStrokeWidth,\n ...rest,\n }),\n) as GenericsComponent<{\n <Y extends Dict>(props: PolarChartProps<Y>): ReactElement\n}>\n\nexport type ChartPieLabel =\n | ((props: PieLabelRenderProps) => Partial<ChartPieLabelProps>)\n | boolean\n | Partial<ChartPieLabelProps>\n\nexport type ChartPieLabelLine =\n | ((props: any) => ChartPieLabelLineProps)\n | boolean\n | ChartPieLabelLineProps\n\nexport type ChartPieLabelList = boolean | ChartLabelListProps\n\nexport interface ChartPieProps<Y extends Dict = Dict> extends Merge<\n HTMLStyledProps<\"svg\">,\n Omit<UseChartPieProps, \"data\" | \"dataKey\" | \"label\" | \"labelLine\" | \"nameKey\">\n> {\n /**\n * The key of a group of data which should be unique in an chart.\n */\n dataKey: Exclude<keyof Y, \"fill\">\n /**\n * The key of the name of the data.\n */\n nameKey: Exclude<keyof Y, \"fill\">\n /**\n * The active index of the sector.\n */\n activeIndex?: number\n /**\n * The data to use for the pie.\n */\n data?: Y[]\n /**\n * The label to use for the pie.\n */\n label?: ChartPieLabel\n /**\n * The label line to use for the pie.\n *\n * @default false\n */\n labelLine?: ChartPieLabelLine\n /**\n * If `true`, the label list is visible.\n *\n * @default false\n */\n labelList?: ChartPieLabelList\n /**\n * Props for the sector component.\n */\n sectorProps?:\n | ((\n props: PieSectorShapeProps,\n index: number | string | undefined,\n ) => ChartSectorProps)\n | ChartSectorProps\n}\n\nexport const ChartPie = withContext<\"svg\", ChartPieProps>((props) => {\n const { pieProps } = useComponentContext()\n const {\n activeIndex,\n children,\n label: labelProp,\n labelLine: labelLineProp = false,\n labelList = false,\n nameKey,\n sectorProps,\n ...rest\n } = mergeProps(pieProps, props)()\n const shape = useCallback<FunctionOf<UseChartPieProps[\"shape\"]>>(\n (props, index) => {\n if (isNumber(activeIndex)) props.isActive = index === activeIndex\n\n return (\n <ChartSector\n {...mergeProps(props, runIfFn(sectorProps, props, index))()}\n />\n )\n },\n [activeIndex, sectorProps],\n )\n const label = useMemo<UseChartPieProps[\"label\"]>(() => {\n if (!labelProp) return labelProp\n\n const Component = (props: any) => (\n <ChartPieLabel\n {...mergeProps(\n props,\n labelProp !== true ? runIfFn(labelProp, props) : {},\n )()}\n />\n )\n\n return Component\n }, [labelProp])\n const labelLine = useMemo<UseChartPieProps[\"labelLine\"]>(() => {\n if (!labelLineProp) return labelLineProp\n\n const Component = ({ key: _, ...rest }: any) => (\n <ChartPieLabelLine\n {...mergeProps(\n rest,\n labelLineProp !== true ? runIfFn(labelLineProp, rest) : {},\n )()}\n />\n )\n\n return Component\n }, [labelLineProp])\n const { getPieProps, getRootProps } = useChartPie({\n label,\n labelLine,\n nameKey,\n shape,\n ...rest,\n })\n\n return (\n <styled.svg asChild {...getRootProps()}>\n <Pie {...getPieProps()}>\n {children}\n\n {labelList ? (\n <ChartLabelList\n dataKey={nameKey}\n {...(isObject(labelList) ? labelList : {})}\n />\n ) : null}\n </Pie>\n </styled.svg>\n )\n}, \"pie\")() as GenericsComponent<{\n <Y extends Dict>(props: ChartPieProps<Y>): ReactElement\n}>\n\ninterface ChartSectorProps extends Merge<\n HTMLStyledProps<\"path\">,\n UseChartSectorProps\n> {}\n\nconst ChartSector = withContext<\"path\", ChartSectorProps>((props) => {\n const { sectorProps } = useComponentContext()\n const { getRootProps, getSectorProps } = useChartSector({\n ...sectorProps,\n ...props,\n })\n\n return (\n <styled.path asChild {...getRootProps()}>\n <Sector {...getSectorProps()} />\n </styled.path>\n )\n}, \"sector\")()\n\ninterface ChartPieLabelProps extends Merge<\n HTMLStyledProps<\"text\">,\n UseChartPieLabelProps\n> {}\n\nconst ChartPieLabel = withContext<\"text\", ChartPieLabelProps>((props) => {\n const { getRootProps, getTextProps } = useChartPieLabel(props)\n\n return (\n <styled.text asChild {...getRootProps()}>\n <Text {...getTextProps()} />\n </styled.text>\n )\n}, \"label\")()\n\ninterface ChartPieLabelLineProps extends Merge<\n HTMLStyledProps<\"path\">,\n UseChartPieLabelLineProps\n> {}\n\nconst ChartPieLabelLine = withContext<\"path\", ChartPieLabelLineProps>(\n (props) => {\n const { getCurveProps, getRootProps } = useChartPieLabelLine(props)\n\n return (\n <styled.path asChild {...getRootProps()}>\n <Curve {...getCurveProps()} />\n </styled.path>\n )\n },\n \"labelLine\",\n)()\n\nexport interface ChartDonutProps<\n Y extends Dict = Dict,\n> extends ChartPieProps<Y> {}\n\nexport const ChartDonut = component<\"svg\", ChartDonutProps>(ChartPie, \"donut\")(\n undefined,\n (props) => {\n const { pieProps } = useComponentContext()\n\n return mergeProps(pieProps, props)()\n },\n ({ label, ...rest }) => ({ innerRadius: !label ? \"70%\" : \"50%\", ...rest }),\n) as GenericsComponent<{\n <Y extends Dict>(props: ChartDonutProps<Y>): ReactElement\n}>\n\nexport interface ChartRadarProps<Y extends Dict = Dict> extends Merge<\n HTMLStyledProps<\"path\">,\n Omit<UseChartRadarProps, \"activeDot\" | \"dataKey\" | \"dot\" | \"label\" | \"stroke\">\n> {\n /**\n * The key of a group of data which should be unique in an chart.\n */\n dataKey: keyof Y\n /**\n * The active dot to use for the line.\n *\n * @default true\n */\n activeDot?: ChartActiveDot\n /**\n * The dot to use for the line.\n *\n * @default false\n */\n dot?: ChartDot\n /**\n * The label to use for the line.\n *\n * @default false\n */\n label?: ChartLabelListType\n}\n\nexport const ChartRadar = withContext<\"path\", ChartRadarProps>((props) => {\n const { radarProps } = useComponentContext()\n const {\n activeDot: activeDotProp = true,\n children,\n dataKey,\n dot: dotProp = false,\n label: labelProp = false,\n stroke: strokeProp,\n ...rest\n } = mergeProps(radarProps, props)()\n const id = useId()\n const system = useSystem()\n const { theme } = useTheme()\n const color = strokeProp ?? rest.fill ?? rest.color\n const stroke = JSON.stringify(color)\n const dotProps = useSlotComponentProps({}, \"dot\")\n const activeDotProps = useSlotComponentProps({}, \"activeDot\")\n const labelProps = useSlotComponentProps({}, \"labelList\")\n const css = useMemo(() => getCSS(system, theme), [system, theme])\n const dot = useMemo<UseChartRadarProps[\"dot\"]>(() => {\n if (!dotProp) return dotProp\n\n const className = cx(\n dotProps.className,\n css(dotProps.css),\n css({ fill: color, stroke: color }),\n )\n\n if (isFunction(dotProp)) {\n return (props) =>\n dotProp({ ...props, className: cx(className, props.className) })\n } else if (isValidElement(dotProp)) {\n return cloneElement<any>(dotProp, { className })\n } else if (isObject(dotProp)) {\n const [omittedProps, styleProps] = splitObject<DotProps, CSSObject>(\n dotProp,\n shouldForwardProp,\n )\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className }\n }\n }, [dotProp, dotProps.className, dotProps.css, css, color])\n const activeDot = useMemo<UseChartRadarProps[\"activeDot\"]>(() => {\n if (!activeDotProp) return activeDotProp\n\n const className = cx(\n activeDotProps.className,\n css(activeDotProps.css),\n css({ fill: color, stroke: color }),\n )\n\n if (isFunction(activeDotProp)) {\n return (props) =>\n activeDotProp({ ...props, className: cx(className, props.className) })\n } else if (isValidElement(activeDotProp)) {\n return cloneElement<any>(activeDotProp, { className })\n } else if (isObject(activeDotProp)) {\n const [omittedProps, styleProps] = splitObject<ActiveDotProps, CSSObject>(\n activeDotProp,\n shouldForwardProp,\n )\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className }\n }\n }, [activeDotProp, activeDotProps.className, activeDotProps.css, css, color])\n const label = useMemo<UseChartRadarProps[\"label\"]>(() => {\n if (!labelProp) return labelProp\n\n const className = cx(labelProps.className, css(labelProps.css))\n\n if (isFunction(labelProp)) {\n return (props) =>\n labelProp({ ...props, className: cx(className, props.className) })\n } else if (isValidElement(labelProp)) {\n return cloneElement<any>(labelProp, { className })\n } else if (isObject(labelProp)) {\n const [omittedProps, styleProps] = splitObject<LabelListProps, CSSObject>(\n labelProp,\n shouldForwardProp,\n )\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className }\n }\n }, [labelProp, labelProps.className, labelProps.css, css])\n const { getRadarProps, getRootProps } = useChartRadar({\n activeDot,\n dataKey,\n dot,\n fill: color ? `url(#${id})` : \"\",\n label,\n stroke,\n ...rest,\n })\n\n return (\n <>\n <styled.path asChild {...getRootProps()}>\n <Radar {...getRadarProps()}>{children}</Radar>\n </styled.path>\n\n <linearGradient id={id} x1=\"0\" x2=\"0\" y1=\"0\" y2=\"1\">\n <styled.stop\n stopColor={color}\n stopOpacity={rest.fillOpacity ?? \"{radar-fill-opacity}\"}\n />\n </linearGradient>\n </>\n )\n}, \"radar\")() as GenericsComponent<{\n <Y extends Dict>(props: ChartRadarProps<Y>): ReactElement\n}>\n\nexport type ChartPolarAxisTick =\n | ((props: BaseTickContentProps) => ReactNode)\n | boolean\n | HTMLStyledProps<\"text\">\n | ReactElement\n\nexport type ChartAxisLine = boolean | HTMLStyledProps<\"line\">\n\nexport interface ChartAngleAxisProps<Y extends Dict = Dict> extends Merge<\n HTMLStyledProps<\"text\">,\n Omit<\n UseAngleAxisProps,\n \"axisLine\" | \"dataKey\" | \"label\" | \"tick\" | \"tickLine\"\n >\n> {\n /**\n * The tick line to use for the axis.\n *\n * @default false\n */\n axisLine?: ChartAxisLine\n /**\n * The key of a group of data which should be unique in an chart.\n */\n dataKey?: keyof Y\n /**\n * The label to use for the axis.\n *\n * @default false\n */\n label?: ChartLabel\n /**\n * The tick to use for the axis.\n *\n * @default true\n */\n tick?: ChartPolarAxisTick\n /**\n * The tick line to use for the axis.\n *\n * @default false\n */\n tickLine?: ChartTickLine\n}\n\nexport const ChartAngleAxis = withContext<\"text\", ChartAngleAxisProps>(\n (props) => {\n const { nameKey, angleAxisProps } = useComponentContext()\n const {\n axisLine: axisLineProp = false,\n children,\n label: labelProp = false,\n tick: tickProp = true,\n tickLine: tickLineProp = false,\n ...rest\n } = mergeProps(angleAxisProps, props)()\n const system = useSystem()\n const { theme } = useTheme()\n const tickProps = useSlotComponentProps({}, \"angleAxisTick\")\n const labelProps = useSlotComponentProps({}, \"angleAxisLabel\")\n const tickLineProps = useSlotComponentProps({}, \"angleAxisTickLine\")\n const axisLineProps = useSlotComponentProps({}, \"angleAxisLine\")\n const css = useMemo(() => getCSS(system, theme), [system, theme])\n const tick = useMemo<UseAngleAxisProps[\"tick\"]>(() => {\n if (!tickProp) return tickProp\n\n const className = cx(tickProps.className, css(tickProps.css))\n\n if (isFunction(tickProp)) {\n return (props) =>\n tickProp({ ...props, className: cx(className, props.className) })\n } else if (isValidElement(tickProp)) {\n return cloneElement<any>(tickProp, { className })\n } else if (isObject(tickProp)) {\n const [omittedProps, styleProps] = splitObject<\n BaseTickContentProps,\n CSSObject\n >(tickProp, shouldForwardProp)\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className }\n }\n }, [tickProp, tickProps.className, tickProps.css, css])\n const tickLine = useMemo<UseAngleAxisProps[\"tickLine\"]>(() => {\n if (!tickLineProp) return tickLineProp\n\n const className = cx(tickLineProps.className, css(tickLineProps.css))\n\n if (isObject(tickLineProp)) {\n const [omittedProps, styleProps] = splitObject<\n HTMLProps<\"line\">,\n CSSObject\n >(tickLineProp, shouldForwardProp)\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className }\n }\n }, [tickLineProp, tickLineProps.className, tickLineProps.css, css])\n const axisLine = useMemo<UseAngleAxisProps[\"axisLine\"]>(() => {\n if (!axisLineProp) return axisLineProp\n\n const className = cx(axisLineProps.className, css(axisLineProps.css))\n\n if (isObject(axisLineProp)) {\n const [omittedProps, styleProps] = splitObject<\n HTMLProps<\"line\">,\n CSSObject\n >(axisLineProp, shouldForwardProp)\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className }\n }\n }, [axisLineProp, axisLineProps.className, axisLineProps.css, css])\n const label = useMemo<UseAngleAxisProps[\"label\"]>(() => {\n if (!labelProp) return labelProp\n\n const className = cx(labelProps.className, css(labelProps.css))\n\n if (isFunction(labelProp)) {\n return (props) =>\n labelProp({ ...props, className: cx(className, props.className) })\n } else if (isValidElement(labelProp)) {\n return cloneElement<any>(labelProp, { className })\n } else if (isObject(labelProp)) {\n const [omittedProps, styleProps] = splitObject<LabelProps, CSSObject>(\n labelProp,\n shouldForwardProp,\n )\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className, children: labelProp }\n }\n }, [labelProp, labelProps.className, labelProps.css, css])\n const { getAngleAxisProps, getRootProps } = useAngleAxis({\n axisLine,\n dataKey: nameKey,\n label,\n tick,\n tickLine,\n ...rest,\n })\n\n return (\n <styled.text asChild {...getRootProps()}>\n <PolarAngleAxis {...getAngleAxisProps()}>{children}</PolarAngleAxis>\n </styled.text>\n )\n },\n \"angleAxis\",\n)() as GenericsComponent<{\n <Y extends Dict>(props: ChartAngleAxisProps<Y>): ReactElement\n}>\n\nexport interface ChartRadiusAxisProps<Y extends Dict = Dict> extends Merge<\n HTMLStyledProps<\"text\">,\n Omit<\n UseRadiusAxisProps,\n \"axisLine\" | \"dataKey\" | \"label\" | \"tick\" | \"tickLine\"\n >\n> {\n /**\n * The tick line to use for the axis.\n *\n * @default false\n */\n axisLine?: ChartAxisLine\n /**\n * The key of a group of data which should be unique in an chart.\n */\n dataKey?: keyof Y\n /**\n * The label to use for the axis.\n *\n * @default false\n */\n label?: ChartLabel\n /**\n * The tick to use for the axis.\n *\n * @default true\n */\n tick?: ChartPolarAxisTick\n /**\n * The tick line to use for the axis.\n *\n * @default false\n */\n tickLine?: ChartTickLine\n}\n\nexport const ChartRadiusAxis = withContext<\"text\", ChartRadiusAxisProps>(\n (props) => {\n const { radiusAxisProps } = useComponentContext()\n const {\n axisLine: axisLineProp = false,\n children,\n label: labelProp = false,\n tick: tickProp = true,\n tickLine: tickLineProp = false,\n ...rest\n } = mergeProps(radiusAxisProps, props)()\n const system = useSystem()\n const { theme } = useTheme()\n const tickProps = useSlotComponentProps({}, \"radiusAxisTick\")\n const labelProps = useSlotComponentProps({}, \"radiusAxisLabel\")\n const tickLineProps = useSlotComponentProps({}, \"radiusAxisTickLine\")\n const axisLineProps = useSlotComponentProps({}, \"radiusAxisLine\")\n const css = useMemo(() => getCSS(system, theme), [system, theme])\n const tick = useMemo<UseRadiusAxisProps[\"tick\"]>(() => {\n if (!tickProp) return tickProp\n\n const className = cx(tickProps.className, css(tickProps.css))\n\n if (isFunction(tickProp)) {\n return (props) =>\n tickProp({ ...props, className: cx(className, props.className) })\n } else if (isValidElement(tickProp)) {\n return cloneElement<any>(tickProp, { className })\n } else if (isObject(tickProp)) {\n const [omittedProps, styleProps] = splitObject<\n BaseTickContentProps,\n CSSObject\n >(tickProp, shouldForwardProp)\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className }\n }\n }, [tickProp, tickProps.className, tickProps.css, css])\n const tickLine = useMemo<UseRadiusAxisProps[\"tickLine\"]>(() => {\n if (!tickLineProp) return tickLineProp\n\n const className = cx(tickLineProps.className, css(tickLineProps.css))\n\n if (isObject(tickLineProp)) {\n const [omittedProps, styleProps] = splitObject<\n HTMLProps<\"line\">,\n CSSObject\n >(tickLineProp, shouldForwardProp)\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className }\n }\n }, [tickLineProp, tickLineProps.className, tickLineProps.css, css])\n const axisLine = useMemo<UseRadiusAxisProps[\"axisLine\"]>(() => {\n if (!axisLineProp) return axisLineProp\n\n const className = cx(axisLineProps.className, css(axisLineProps.css))\n\n if (isObject(axisLineProp)) {\n const [omittedProps, styleProps] = splitObject<\n HTMLProps<\"line\">,\n CSSObject\n >(axisLineProp, shouldForwardProp)\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className }\n }\n }, [axisLineProp, axisLineProps.className, axisLineProps.css, css])\n const label = useMemo<UseRadiusAxisProps[\"label\"]>(() => {\n if (!labelProp) return labelProp\n\n const className = cx(labelProps.className, css(labelProps.css))\n\n if (isFunction(labelProp)) {\n return (props) =>\n labelProp({ ...props, className: cx(className, props.className) })\n } else if (isValidElement(labelProp)) {\n return cloneElement<any>(labelProp, { className })\n } else if (isObject(labelProp)) {\n const [omittedProps, styleProps] = splitObject<LabelProps, CSSObject>(\n labelProp,\n shouldForwardProp,\n )\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className, children: labelProp }\n }\n }, [labelProp, labelProps.className, labelProps.css, css])\n const { getRadiusAxisProps, getRootProps } = useRadiusAxis({\n axisLine,\n label,\n tick,\n tickLine,\n ...rest,\n })\n\n return (\n <styled.text asChild {...getRootProps()}>\n <PolarRadiusAxis {...getRadiusAxisProps()}>{children}</PolarRadiusAxis>\n </styled.text>\n )\n },\n \"radiusAxis\",\n)() as GenericsComponent<{\n <Y extends Dict>(props: ChartRadiusAxisProps<Y>): ReactElement\n}>\n\nexport interface ChartPolarGridProps extends Merge<\n HTMLStyledProps<\"line\">,\n UsePolarGridProps\n> {}\n\nexport const ChartPolarGrid = withContext<\"line\", ChartPolarGridProps>(\n (props) => {\n const { gridProps } = useComponentContext()\n const { getPolarGridProps, getRootProps } = usePolarGrid({\n ...gridProps,\n ...props,\n })\n\n return (\n <styled.line asChild {...getRootProps()}>\n <PolarGrid {...getPolarGridProps()} />\n </styled.line>\n )\n },\n \"grid\",\n)()\n\nexport type ChartRadialBackground =\n | ((props: SectorProps) => ReactNode)\n | boolean\n | HTMLStyledProps<\"path\">\n | ReactElement\n\nexport interface ChartRadialProps<Y extends Dict = Dict> extends Merge<\n Omit<HTMLStyledProps<\"svg\">, \"background\">,\n Omit<UseChartRadialProps<Y>, \"background\" | \"dataKey\" | \"label\">\n> {\n /**\n * The key of a group of data which should be unique in an chart.\n */\n dataKey: keyof Y\n /**\n * The background to use for the radial chart.\n */\n background?: ChartRadialBackground\n /**\n * The label to use for the radial.\n *\n * @default false\n */\n label?: ChartLabelListType\n /**\n * If `true`, the label list is visible.\n *\n * @default false\n */\n labelList?: ChartPieLabelList\n /**\n * Props for the sector component.\n */\n sectorProps?:\n | ((props: RadialBarSectorProps) => ChartSectorProps)\n | ChartSectorProps\n}\n\nexport const ChartRadial = withContext<\"svg\", ChartRadialProps>(\n <Y extends Dict>(props: ChartRadialProps<Y>) => {\n const { radialProps } = useComponentContext()\n const {\n background: backgroundProp = true,\n children,\n dataKey,\n label: labelProp = false,\n labelList = false,\n nameKey,\n sectorProps,\n ...rest\n } = mergeProps(radialProps, props)()\n const system = useSystem()\n const { theme } = useTheme()\n const { nameKeyRef } = useChartComponentContext()\n const labelProps = useSlotComponentProps({}, \"labelList\")\n const backgroundProps = useSlotComponentProps({}, \"radialBackground\")\n const css = useMemo(() => getCSS(system, theme), [system, theme])\n const shape = useCallback<FunctionOf<UseChartRadialProps<Y>[\"shape\"]>>(\n (props) => {\n const color = rest.fill ?? rest.color\n\n return (\n <ChartSector\n color={color}\n {...mergeProps(props, runIfFn(sectorProps, props))()}\n />\n )\n },\n [rest.fill, rest.color, sectorProps],\n )\n const label = useMemo<UseChartRadialProps<Y>[\"label\"]>(() => {\n if (!labelProp) return labelProp\n\n const className = cx(labelProps.className, css(labelProps.css))\n\n if (isFunction(labelProp)) {\n return (props) =>\n labelProp({ ...props, className: cx(className, props.className) })\n } else if (isValidElement(labelProp)) {\n return cloneElement<any>(labelProp, { className })\n } else if (isObject(labelProp)) {\n const [omittedProps, styleProps] = splitObject<\n LabelListProps,\n CSSObject\n >(labelProp, shouldForwardProp)\n\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className }\n }\n }, [labelProp, labelProps.className, labelProps.css, css])\n const background = useMemo<UseChartRadialProps<Y>[\"background\"]>(() => {\n if (!backgroundProp) return backgroundProp\n\n const className = cx(backgroundProps.className, css(backgroundProps.css))\n\n if (isFunction(backgroundProp)) {\n return (props) =>\n backgroundProp({\n ...props,\n className: cx(className, props.className),\n })\n } else if (isValidElement(backgroundProp)) {\n return cloneElement<any>(backgroundProp, { className })\n } else if (isObject(backgroundProp)) {\n const [omittedProps, styleProps] = splitObject<\n HTMLProps<\"path\">,\n CSSObject\n >(backgroundProp, shouldForwardProp)\n return {\n ...omittedProps,\n className: cx(className, omittedProps.className, css(styleProps)),\n }\n } else {\n return { className }\n }\n }, [backgroundProp, backgroundProps.className, backgroundProps.css, css])\n const { getRadialProps, getRootProps } = useChartRadial({\n background,\n dataKey: dataKey as DataKey<any>,\n label,\n nameKey,\n shape,\n ...rest,\n })\n\n assignRef(nameKeyRef, nameKey)\n\n return (\n <styled.svg asChild {...getRootProps()}>\n <RadialBar {...getRadialProps()}>\n {children}\n\n {labelList ? (\n <ChartLabelList\n dataKey={nameKey as DataKey<any>}\n offset={4}\n position=\"insideStart\"\n {...(isObject(labelList) ? labelList : {})}\n />\n ) : null}\n </RadialBar>\n </styled.svg>\n )\n },\n \"radial\",\n)() as GenericsComponent<{\n <Y extends Dict>(props: ChartRadialProps<Y>): ReactElement\n}>\n"],"mappings":";;;;;;;;;;;;;;;;;;AAsGA,MAAM,oBAAoBA,cAAAA,wBAAwB;AAmOlD,MAAM,EACJ,WACA,kBACA,cAAc,wBACd,qBACA,iBAAiB,2BACjB,aACA,cACA,0BACEC,yBAAAA,oBACF,eACAC,0BAAAA,eACF;AAIA,MAAa,aAAa,cACP,EACf,YAAY,gBACZ,SACA,QACA,gBAAgB,OAChB,WAAW,OACX,iBAAiB,OACjB,gBACA,YACA,YACA,WACA,WAAW,YACX,YACA,aACA,iBACA,aACA,GAAG,WACqB;CACxB,MAAM,EAAE,eAAe,iBAAiBC,wBAAAA,cAAc,IAAI;CAC1D,MAAM,cAAA,GAAaC,MAAAA,QAAAA,OACX;EACJ;GACE,WAAW;GACX,UAAU,WAAW,iBAAA,GAAA,kBAAA,IAAA,CAAC,gBAAD,CAAiB,CAAA,IAAI;EAC5C;EACA;GACE,WAAW;GACX,UAAU,gBAAgB,iBAAA,GAAA,kBAAA,IAAA,CAAC,gBAAD,CAAiB,CAAA,IAAI;EACjD;EACA;GACE,WAAW;GACX,UAAU,iBAAiB,iBAAA,GAAA,kBAAA,IAAA,CAAC,iBAAD,CAAkB,CAAA,IAAI;EACnD;EACA,GAAG;CACL,GACA;EAAC;EAAgB;EAAU;EAAe;CAAc,CAC1D;CACA,MAAM,oBAAA,GAAmBA,MAAAA,QAAAA,QAChB;EACI;EACT;EACA;EACA;EACA;EACA;EACA;EACA;CACF,IACA;EACE;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CACF;CAEA,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,kBAAD;EAAkB,OAAO;EACvB,UAAA,iBAAA,GAAA,kBAAA,IAAA,CAACC,cAAAA,OAAD;GACc;GACZ,SAAS,UAAU,OAAO,cAAc;IAAE,GAAG;IAA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AC;GACzC,CAAA,IACC,IACK;;CACD,CAAA;AAEhB,GACA,QACF,CAAC,CAAC"}
|
|
@@ -96,7 +96,7 @@ const polarChartStyle = require("../../core/system/config.cjs").defineComponentS
|
|
|
96
96
|
},
|
|
97
97
|
root: {
|
|
98
98
|
"--active-dot-fill": "{radar-color}",
|
|
99
|
-
"--active-dot-r": "
|
|
99
|
+
"--active-dot-r": "4px",
|
|
100
100
|
"--active-dot-stroke": "{radar-color}",
|
|
101
101
|
"--active-dot-stroke-width": "0",
|
|
102
102
|
"--angle-axis-line-stroke": "currentColor",
|
|
@@ -104,7 +104,7 @@ const polarChartStyle = require("../../core/system/config.cjs").defineComponentS
|
|
|
104
104
|
"--angle-axis-text-color": "colors.fg.muted",
|
|
105
105
|
"--angle-axis-text-fill": "currentColor",
|
|
106
106
|
"--dot-fill": "{radar-stroke}",
|
|
107
|
-
"--dot-r": "
|
|
107
|
+
"--dot-r": "4px",
|
|
108
108
|
"--dot-stroke": "{radar-stroke}",
|
|
109
109
|
"--dot-stroke-width": "0",
|
|
110
110
|
"--grid-stroke": "colors.border",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"polar-chart.style.cjs","names":["defineComponentSlotStyle"],"sources":["../../../../src/components/chart/polar-chart.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\n\nexport const polarChartStyle = defineComponentSlotStyle({\n base: {\n activeDot: {\n fill: \"{active-dot-fill}\",\n r: \"{active-dot-r}\",\n stroke: \"{active-dot-stroke}\",\n strokeWidth: \"{active-dot-stroke-width}\",\n },\n angleAxis: {},\n angleAxisLabel: {\n color: \"{angle-axis-text-color}\",\n fill: \"{angle-axis-text-fill}\",\n fontSize: \"xs\",\n fontWeight: \"medium\",\n },\n angleAxisLine: {\n color: \"{angle-axis-text-color}\",\n fill: \"transparent\",\n stroke: \"{angle-axis-line-stroke}\",\n strokeWidth: \"{angle-axis-line-stroke-width}\",\n },\n angleAxisTick: {\n color: \"{angle-axis-text-color}\",\n fill: \"{angle-axis-text-fill}\",\n fontSize: \"xs\",\n fontWeight: \"medium\",\n },\n angleAxisTickLine: {\n color: \"{angle-axis-text-color}\",\n stroke: \"{angle-axis-line-stroke}\",\n strokeWidth: \"{angle-axis-line-stroke-width}\",\n },\n dot: {\n fill: \"{dot-fill}\",\n r: \"{dot-r}\",\n stroke: \"{dot-stroke}\",\n strokeWidth: \"{dot-stroke-width}\",\n },\n grid: { stroke: \"{grid-stroke}\" },\n label: {\n _inactive: { opacity: \"{inactive-label-opacity}\" },\n color: \"{label-color}\",\n fill: \"{label-fill}\",\n fontSize: \"xs\",\n fontWeight: \"medium\",\n },\n labelLine: {\n _inactive: { opacity: \"{inactive-label-line-opacity}\" },\n stroke: \"{label-line-stroke}\",\n strokeWidth: \"{label-line-stroke-width}\",\n },\n labelList: {\n color: \"{label-color}\",\n fill: \"{label-fill}\",\n fontSize: \"xs\",\n fontWeight: \"medium\",\n },\n pie: {},\n radar: {\n \"&:has(path[data-inactive])\": {\n opacity: \"{inactive-radar-opacity}\",\n },\n color: \"{radar-color}\",\n fill: \"{radar-stroke}\",\n fillOpacity: \"{radar-fill-opacity}\",\n stroke: \"{radar-stroke}\",\n strokeWidth: \"{radar-stroke-width}\",\n },\n radial: {},\n radialBackground: {\n color: \"{radial-background-color}\",\n fill: \"{radial-background-fill}\",\n stroke: \"{radial-background-stroke}\",\n strokeWidth: \"{radial-background-stroke-width}\",\n },\n radiusAxis: {},\n radiusAxisLabel: {\n color: \"{radius-axis-text-color}\",\n fill: \"{radius-axis-text-fill}\",\n fontSize: \"xs\",\n fontWeight: \"medium\",\n },\n radiusAxisLine: {\n color: \"{radius-axis-text-color}\",\n stroke: \"{radius-axis-line-stroke}\",\n strokeWidth: \"{radius-axis-line-stroke-width}\",\n },\n radiusAxisTick: {\n color: \"{radius-axis-text-color}\",\n fill: \"{radius-axis-text-fill}\",\n fontSize: \"xs\",\n fontWeight: \"medium\",\n },\n radiusAxisTickLine: {\n color: \"{radius-axis-text-color}\",\n stroke: \"{radius-axis-line-stroke}\",\n strokeWidth: \"{radius-axis-line-stroke-width}\",\n },\n root: {\n \"--active-dot-fill\": \"{radar-color}\",\n \"--active-dot-r\": \"
|
|
1
|
+
{"version":3,"file":"polar-chart.style.cjs","names":["defineComponentSlotStyle"],"sources":["../../../../src/components/chart/polar-chart.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\n\nexport const polarChartStyle = defineComponentSlotStyle({\n base: {\n activeDot: {\n fill: \"{active-dot-fill}\",\n r: \"{active-dot-r}\",\n stroke: \"{active-dot-stroke}\",\n strokeWidth: \"{active-dot-stroke-width}\",\n },\n angleAxis: {},\n angleAxisLabel: {\n color: \"{angle-axis-text-color}\",\n fill: \"{angle-axis-text-fill}\",\n fontSize: \"xs\",\n fontWeight: \"medium\",\n },\n angleAxisLine: {\n color: \"{angle-axis-text-color}\",\n fill: \"transparent\",\n stroke: \"{angle-axis-line-stroke}\",\n strokeWidth: \"{angle-axis-line-stroke-width}\",\n },\n angleAxisTick: {\n color: \"{angle-axis-text-color}\",\n fill: \"{angle-axis-text-fill}\",\n fontSize: \"xs\",\n fontWeight: \"medium\",\n },\n angleAxisTickLine: {\n color: \"{angle-axis-text-color}\",\n stroke: \"{angle-axis-line-stroke}\",\n strokeWidth: \"{angle-axis-line-stroke-width}\",\n },\n dot: {\n fill: \"{dot-fill}\",\n r: \"{dot-r}\",\n stroke: \"{dot-stroke}\",\n strokeWidth: \"{dot-stroke-width}\",\n },\n grid: { stroke: \"{grid-stroke}\" },\n label: {\n _inactive: { opacity: \"{inactive-label-opacity}\" },\n color: \"{label-color}\",\n fill: \"{label-fill}\",\n fontSize: \"xs\",\n fontWeight: \"medium\",\n },\n labelLine: {\n _inactive: { opacity: \"{inactive-label-line-opacity}\" },\n stroke: \"{label-line-stroke}\",\n strokeWidth: \"{label-line-stroke-width}\",\n },\n labelList: {\n color: \"{label-color}\",\n fill: \"{label-fill}\",\n fontSize: \"xs\",\n fontWeight: \"medium\",\n },\n pie: {},\n radar: {\n \"&:has(path[data-inactive])\": {\n opacity: \"{inactive-radar-opacity}\",\n },\n color: \"{radar-color}\",\n fill: \"{radar-stroke}\",\n fillOpacity: \"{radar-fill-opacity}\",\n stroke: \"{radar-stroke}\",\n strokeWidth: \"{radar-stroke-width}\",\n },\n radial: {},\n radialBackground: {\n color: \"{radial-background-color}\",\n fill: \"{radial-background-fill}\",\n stroke: \"{radial-background-stroke}\",\n strokeWidth: \"{radial-background-stroke-width}\",\n },\n radiusAxis: {},\n radiusAxisLabel: {\n color: \"{radius-axis-text-color}\",\n fill: \"{radius-axis-text-fill}\",\n fontSize: \"xs\",\n fontWeight: \"medium\",\n },\n radiusAxisLine: {\n color: \"{radius-axis-text-color}\",\n stroke: \"{radius-axis-line-stroke}\",\n strokeWidth: \"{radius-axis-line-stroke-width}\",\n },\n radiusAxisTick: {\n color: \"{radius-axis-text-color}\",\n fill: \"{radius-axis-text-fill}\",\n fontSize: \"xs\",\n fontWeight: \"medium\",\n },\n radiusAxisTickLine: {\n color: \"{radius-axis-text-color}\",\n stroke: \"{radius-axis-line-stroke}\",\n strokeWidth: \"{radius-axis-line-stroke-width}\",\n },\n root: {\n \"--active-dot-fill\": \"{radar-color}\",\n \"--active-dot-r\": \"4px\",\n \"--active-dot-stroke\": \"{radar-color}\",\n \"--active-dot-stroke-width\": \"0\",\n \"--angle-axis-line-stroke\": \"currentColor\",\n \"--angle-axis-line-stroke-width\": \"1\",\n \"--angle-axis-text-color\": \"colors.fg.muted\",\n \"--angle-axis-text-fill\": \"currentColor\",\n \"--dot-fill\": \"{radar-stroke}\",\n \"--dot-r\": \"4px\",\n \"--dot-stroke\": \"{radar-stroke}\",\n \"--dot-stroke-width\": \"0\",\n \"--grid-stroke\": \"colors.border\",\n \"--inactive-label-line-opacity\": \"0.4\",\n \"--inactive-label-opacity\": \"0.4\",\n \"--inactive-radar-opacity\": \"0.4\",\n \"--inactive-sector-opacity\": \"0.4\",\n \"--label-color\": \"colors.fg.muted\",\n \"--label-fill\": \"currentColor\",\n \"--label-line-stroke\": \"colors.fg.muted\",\n \"--label-line-stroke-width\": \"1\",\n \"--radar-color\": \"colorScheme.solid\",\n \"--radar-fill-opacity\": \"0.4\",\n \"--radar-stroke\": \"currentColor\",\n \"--radar-stroke-width\": \"2\",\n \"--radial-background-color\": \"colors.bg.subtle\",\n \"--radial-background-fill\": \"currentColor\",\n \"--radial-background-stroke\": \"currentColor\",\n \"--radial-background-stroke-width\": \"0\",\n \"--radius-axis-line-stroke\": \"colors.border\",\n \"--radius-axis-line-stroke-width\": \"1\",\n \"--radius-axis-text-color\": \"colors.fg.muted\",\n \"--radius-axis-text-fill\": \"currentColor\",\n \"--sector-color\": \"colorScheme.solid\",\n \"--sector-fill\": \"currentColor\",\n \"--sector-stroke\": \"colors.bg\",\n \"--sector-stroke-width\": \"2\",\n },\n sector: {\n _inactive: { opacity: \"{inactive-sector-opacity}\" },\n color: \"{sector-color}\",\n fill: \"{sector-fill}\",\n stroke: \"{sector-stroke}\",\n strokeWidth: \"{sector-stroke-width}\",\n },\n },\n})\n\nexport type PolarChartStyle = typeof polarChartStyle\n"],"mappings":";AAEA,MAAa,wDAAkBA,CAAAA,CAAAA,yBAAyB,EACtD,MAAM;CACJ,WAAW;EACT,MAAM;EACN,GAAG;EACH,QAAQ;EACR,aAAa;CACf;CACA,WAAW,CAAC;CACZ,gBAAgB;EACd,OAAO;EACP,MAAM;EACN,UAAU;EACV,YAAY;CACd;CACA,eAAe;EACb,OAAO;EACP,MAAM;EACN,QAAQ;EACR,aAAa;CACf;CACA,eAAe;EACb,OAAO;EACP,MAAM;EACN,UAAU;EACV,YAAY;CACd;CACA,mBAAmB;EACjB,OAAO;EACP,QAAQ;EACR,aAAa;CACf;CACA,KAAK;EACH,MAAM;EACN,GAAG;EACH,QAAQ;EACR,aAAa;CACf;CACA,MAAM,EAAE,QAAQ,gBAAgB;CAChC,OAAO;EACL,WAAW,EAAE,SAAS,2BAA2B;EACj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,OAAO;EACP,MAAM;EACN,QAAQ;EACR,aAAa;CACf;AACF,EACF,CAAC"}
|
|
@@ -4,6 +4,7 @@ import { varAttr } from "../../core/system/var.js";
|
|
|
4
4
|
import { useSystem } from "../../core/system/system-provider.js";
|
|
5
5
|
import { useTheme } from "../../core/system/theme-provider.js";
|
|
6
6
|
import { styled } from "../../core/system/factory.js";
|
|
7
|
+
import { transforms } from "../../core/css/config.js";
|
|
7
8
|
import { getCSS } from "../../core/css/use-css.js";
|
|
8
9
|
import { createShouldForwardProp, mergeProps } from "../../core/components/props.js";
|
|
9
10
|
import { createSlotComponent } from "../../core/components/create-component.js";
|
|
@@ -68,7 +69,7 @@ const CartesianChart = withProvider(({ components: componentsProp, render, withG
|
|
|
68
69
|
});
|
|
69
70
|
}, "root")(void 0, ({ activeDotFill, activeDotRadius, activeDotStroke, activeDotStrokeWidth, areaEndFillOpacity, areaFillOpacity, areaStartFillOpacity, barColor, barFill, barFillOpacity, barStroke, barStrokeWidth, dotFill, dotRadius, dotStroke, dotStrokeWidth, gridStroke, inactiveBarOpacity, inactiveLineOpacity, lineColor, lineStroke, lineStrokeWidth, referenceLineColor, referenceLineStroke, referenceLineStrokeWidth, referenceLineTextColor, referenceLineTextFill, xAxisLineStroke, xAxisLineStrokeWidth, xAxisTextColor, xAxisTextFill, yAxisLineStroke, yAxisLineStrokeWidth, yAxisTextColor, yAxisTextFill, ...rest }) => ({
|
|
70
71
|
"--active-dot-fill": varAttr(activeDotFill, "colors"),
|
|
71
|
-
"--active-dot-r": activeDotRadius,
|
|
72
|
+
"--active-dot-r": (0, utils_exports.replaceObject)(activeDotRadius, transforms.px),
|
|
72
73
|
"--active-dot-stroke": varAttr(activeDotStroke, "colors"),
|
|
73
74
|
"--active-dot-stroke-width": activeDotStrokeWidth,
|
|
74
75
|
"--area-end-fill-opacity": areaEndFillOpacity,
|
|
@@ -80,7 +81,7 @@ const CartesianChart = withProvider(({ components: componentsProp, render, withG
|
|
|
80
81
|
"--bar-stroke": varAttr(barStroke, "colors"),
|
|
81
82
|
"--bar-stroke-width": barStrokeWidth,
|
|
82
83
|
"--dot-fill": varAttr(dotFill, "colors"),
|
|
83
|
-
"--dot-r": dotRadius,
|
|
84
|
+
"--dot-r": (0, utils_exports.replaceObject)(dotRadius, transforms.px),
|
|
84
85
|
"--dot-stroke": varAttr(dotStroke, "colors"),
|
|
85
86
|
"--dot-stroke-width": dotStrokeWidth,
|
|
86
87
|
"--grid-stroke": varAttr(gridStroke, "colors"),
|