{"version":3,"sources":["../src/use-radar-chart.ts"],"sourcesContent":["import type {\n  CSSUIObject,\n  CSSUIProps,\n  PropGetter,\n  RequiredPropGetter,\n} from \"@yamada-ui/core\"\nimport type { Dict } from \"@yamada-ui/utils\"\nimport type { ComponentPropsWithoutRef } from \"react\"\nimport type * as Recharts from \"recharts\"\nimport type {\n  PolarAngleAxisProps,\n  PolarRadiusAxisProps,\n  RadarChartProps,\n  RadarProps,\n} from \"./chart.types\"\nimport { getVar, useTheme } from \"@yamada-ui/core\"\nimport { cx } from \"@yamada-ui/utils\"\nimport { useCallback, useMemo, useState } from \"react\"\nimport { getClassName, getComponentProps } from \"./chart-utils\"\nimport {\n  dotProperties,\n  polarAngleAxisProperties,\n  polarRadiusAxisProperties,\n  radarChartProperties,\n  radarProperties,\n} from \"./rechart-properties\"\n\nexport interface UseRadarChartOptions {\n  /**\n   * Chart data.\n   */\n  data: Dict[]\n  /**\n   * The key of a group of data which should be unique in an chart.\n   */\n  dataKey: string\n  /**\n   * An array of objects with `dataKey` and `color` keys. Determines which data should be consumed from the `data` array.\n   */\n  series: RadarProps[]\n  /**\n   * Controls fill opacity of all radars.\n   *\n   * @default 1\n   */\n  fillOpacity?: [number, number] | number\n  /**\n   * A function to format Y axis tick.\n   */\n  polarAngleAxisTickFormatter?: (value: number) => string\n  /**\n   * A function to format X axis tick.\n   */\n  polarRadiusAxisTickFormatter?: (value: number) => string\n  /**\n   * Stroke width for the chart radars.\n   *\n   * @default 2\n   */\n  strokeWidth?: number\n  /**\n   * Determines whether activeDots should be displayed.\n   *\n   * @default true\n   */\n  withActiveDots?: boolean\n  /**\n   * Determines whether dots should be displayed.\n   *\n   * @default false\n   */\n  withDots?: boolean\n  /**\n   * Props passed down to recharts `RadarChart` component.\n   */\n  chartProps?: RadarChartProps\n  /**\n   * Props passed down to recharts `PolarAngleAxis` component.\n   */\n  polarAngleAxisProps?: PolarAngleAxisProps\n  /**\n   * Props passed down to recharts `tick` of `PolarAngleAxis` component.\n   */\n  polarAngleAxisTickProps?: CSSUIProps\n  /**\n   * Props passed down to recharts `PolarRadiusAxis` component.\n   */\n  polarRadiusAxisProps?: PolarRadiusAxisProps\n  /**\n   * Props passed down to recharts `tick` of `PolarRadiusAxis` component.\n   */\n  polarRadiusAxisTickProps?: CSSUIProps\n  /**\n   * Props for the radar.\n   */\n  radarProps?: Partial<RadarProps>\n}\n\ninterface UseRadarChartProps extends UseRadarChartOptions {\n  styles: Dict<CSSUIObject | undefined>\n}\n\nexport const useRadarChart = ({\n  data,\n  dataKey,\n  fillOpacity = 0.4,\n  polarAngleAxisTickFormatter,\n  polarRadiusAxisTickFormatter,\n  series,\n  strokeWidth = 2,\n  styles,\n  withActiveDots = false,\n  withDots = false,\n  ...rest\n}: UseRadarChartProps) => {\n  const { theme } = useTheme()\n  const [highlightedArea, setHighlightedArea] = useState<null | string>(null)\n  const shouldHighlight = highlightedArea !== null\n  const {\n    activeDot = {},\n    dimDot,\n    dimRadar,\n    dot = {},\n    ...computedRadarProps\n  } = rest.radarProps ?? {}\n\n  const radarColors: CSSUIProps[\"vars\"] = useMemo(\n    () =>\n      series.map(({ color }, index) => ({\n        name: `radar-${index}`,\n        token: \"colors\",\n        value: color ?? \"transparent\",\n      })),\n    [series],\n  )\n\n  const radarVars: CSSUIProps[\"vars\"] = useMemo(\n    () =>\n      [\n        ...radarColors,\n        { name: \"fill-opacity\", value: fillOpacity },\n      ] as Required<CSSUIProps>[\"vars\"],\n    [fillOpacity, radarColors],\n  )\n\n  const [chartProps, radarChartClassName] = useMemo(\n    () =>\n      getComponentProps<Dict, string>(\n        [rest.chartProps ?? {}, radarChartProperties],\n        styles.chart,\n      )(theme),\n    [rest.chartProps, styles.chart, theme],\n  )\n\n  const [polarAngleAxisProps, polarAngleAxisClassName] = useMemo(\n    () =>\n      getComponentProps<Dict, string>(\n        [rest.polarAngleAxisProps ?? {}, polarAngleAxisProperties],\n        styles.polarAngleAxis,\n      )(theme),\n    [rest.polarAngleAxisProps, styles.polarAngleAxis, theme],\n  )\n\n  const polarAngleAxisTickClassName = useMemo(\n    () =>\n      getClassName({\n        ...styles.polarAngleAxisTick,\n        ...rest.polarAngleAxisTickProps,\n      })(theme),\n    [rest.polarAngleAxisTickProps, styles.polarAngleAxisTick, theme],\n  )\n\n  const [polarRadiusAxisProps, polarRadiusAxisClassName] = useMemo(\n    () =>\n      getComponentProps<Dict, string>(\n        [rest.polarRadiusAxisProps ?? {}, polarRadiusAxisProperties],\n        styles.polarRadiusAxis,\n      )(theme),\n    [rest.polarRadiusAxisProps, styles.polarRadiusAxis, theme],\n  )\n\n  const polarRadiusAxisTickClassName = useMemo(\n    () =>\n      getClassName({\n        ...styles.polarRadiusAxisTick,\n        ...rest.polarRadiusAxisTickProps,\n      })(theme),\n    [rest.polarRadiusAxisTickProps, styles.polarRadiusAxisTick, theme],\n  )\n\n  const [radarProps, radarClassName] = useMemo(() => {\n    const resolvedRadarProps = {\n      fillOpacity: \"$fill-opacity\",\n      ...computedRadarProps,\n    }\n\n    return getComponentProps<Dict, string>(\n      [resolvedRadarProps, radarProperties],\n      styles.radar,\n    )(theme)\n  }, [computedRadarProps, styles.radar, theme])\n\n  const [dimRadarProps, dimRadarClassName] = useMemo(() => {\n    const resolvedDimRadar = {\n      fillOpacity: 0.3,\n      strokeOpacity: 0.3,\n      ...dimRadar,\n    }\n\n    return getComponentProps<Dict, string>([resolvedDimRadar, radarProperties])(\n      theme,\n    )\n  }, [dimRadar, theme])\n\n  const [dotProps, dotClassName] = useMemo(() => {\n    const resolvedDot = { fillOpacity: 1, strokeWidth: 2, ...dot }\n\n    return getComponentProps<Dict, string>(\n      [resolvedDot, dotProperties],\n      styles.dot,\n    )(theme)\n  }, [dot, styles.dot, theme])\n\n  const [activeDotProps, activeDotClassName] = useMemo(\n    () =>\n      getComponentProps<Dict, string>(\n        [activeDot, dotProperties],\n        styles.activeDot,\n      )(theme),\n    [activeDot, styles.activeDot, theme],\n  )\n\n  const [dimDotProps, dimDotClassName] = useMemo(() => {\n    const resolvedDimDot = { fillOpacity: 0, strokeOpacity: 0, ...dimDot }\n    return getComponentProps<Dict, string>([resolvedDimDot, dotProperties])(\n      theme,\n    )\n  }, [dimDot, theme])\n\n  const radarPropList = useMemo(\n    () =>\n      series.map((props, index) => {\n        const {\n          activeDot = {},\n          dataKey,\n          dimDot = {},\n          dimRadar = {},\n          dot = {},\n          ...computedProps\n        } = props\n        const color = getVar(`radar-${index}`)(theme)\n        const dimmed = shouldHighlight && highlightedArea !== dataKey\n        const computedDimRadar = { ...dimRadarProps, ...dimRadar }\n\n        const resolvedProps = {\n          ...radarProps,\n          ...computedProps,\n          ...(dimmed ? computedDimRadar : {}),\n        }\n        const rest = getComponentProps<Dict, string>(\n          [resolvedProps, radarProperties],\n          radarClassName,\n          dimmed ? dimRadarClassName : undefined,\n        )(theme, true)\n\n        let resolvedActiveDot: boolean | Recharts.DotProps\n\n        if (withActiveDots) {\n          const computedActiveDot = {\n            ...activeDotProps,\n            ...activeDot,\n          }\n\n          const [rest, className] = getComponentProps<Dict, string>(\n            [computedActiveDot, dotProperties],\n            activeDotClassName,\n          )(theme)\n\n          resolvedActiveDot = {\n            className: cx(\"ui-radar-chart__active-dot\", className),\n            fill: color,\n            r: 4,\n            stroke: color,\n            ...rest,\n          } as Recharts.DotProps\n        } else {\n          resolvedActiveDot = false\n        }\n\n        let resolvedDot: boolean | Recharts.DotProps\n\n        if (withDots) {\n          const computedDimDot = { ...dimDotProps, ...dimDot }\n          const computedDot = {\n            ...dotProps,\n            ...dot,\n            ...(dimmed ? computedDimDot : {}),\n          }\n\n          const [rest, className] = getComponentProps(\n            [computedDot, dotProperties],\n            dotClassName,\n            dimmed ? dimDotClassName : undefined,\n          )(theme)\n\n          resolvedDot = {\n            className: cx(\"ui-radar-chart__dot\", className),\n            fill: color,\n            r: 4,\n            ...rest,\n          } as Recharts.DotProps\n        } else {\n          resolvedDot = false\n        }\n\n        return {\n          ...rest,\n          activeDot: resolvedActiveDot,\n          color,\n          dataKey,\n          dot: resolvedDot,\n        }\n      }),\n    [\n      activeDotClassName,\n      activeDotProps,\n      dimDotClassName,\n      dimDotProps,\n      dimRadarClassName,\n      dimRadarProps,\n      dotClassName,\n      dotProps,\n      highlightedArea,\n      radarClassName,\n      radarProps,\n      series,\n      shouldHighlight,\n      theme,\n      withActiveDots,\n      withDots,\n    ],\n  )\n\n  const getRadarChartProps: PropGetter<\n    ComponentPropsWithoutRef<typeof Recharts.RadarChart>,\n    ComponentPropsWithoutRef<typeof Recharts.RadarChart>\n  > = useCallback(\n    ({ className, ...props } = {}, ref = null) => ({\n      ref,\n      className: cx(className, radarChartClassName),\n      data,\n      ...props,\n      ...chartProps,\n    }),\n    [data, radarChartClassName, chartProps],\n  )\n\n  const getRadarProps: RequiredPropGetter<\n    { index: number } & Partial<Recharts.RadarProps>,\n    Omit<Recharts.RadarProps, \"ref\">\n  > = useCallback(\n    ({ className: classNameProp, index, ...props }, ref = null) => {\n      const {\n        className,\n        activeDot,\n        color,\n        dataKey = \"\",\n        dot,\n        ...rest\n      } = radarPropList[index] ?? {}\n\n      return {\n        ref,\n        name: dataKey as string,\n        className: cx(classNameProp, className),\n        activeDot,\n        dataKey,\n        dot,\n        fill: color,\n        isAnimationActive: false,\n        stroke: color,\n        strokeWidth,\n        ...(props as Omit<Recharts.RadarProps, \"dataKey\">),\n        ...rest,\n      }\n    },\n    [radarPropList, strokeWidth],\n  )\n\n  const getPolarAngleAxisProps: PropGetter<\n    Recharts.PolarAngleAxisProps,\n    Omit<Recharts.PolarAngleAxisProps, \"ref\">\n  > = useCallback(\n    ({ className, ...props } = {}, ref = null) => ({\n      ref,\n      className: cx(className, polarAngleAxisClassName),\n      dataKey,\n      tick: {\n        className: cx(\n          \"ui-radar-chart__polar-angle-axis-tick\",\n          polarAngleAxisTickClassName,\n        ),\n      },\n      tickFormatter: polarAngleAxisTickFormatter,\n      tickSize: 16,\n      ...props,\n      ...polarAngleAxisProps,\n    }),\n    [\n      dataKey,\n      polarAngleAxisClassName,\n      polarAngleAxisProps,\n      polarAngleAxisTickClassName,\n      polarAngleAxisTickFormatter,\n    ],\n  )\n\n  const getPolarRadiusAxisProps: PropGetter<\n    Recharts.PolarRadiusAxisProps,\n    Omit<Recharts.PolarRadiusAxisProps, \"ref\">\n  > = useCallback(\n    ({ className, ...props } = {}, ref = null) => ({\n      ref,\n      className: cx(className, polarRadiusAxisClassName),\n      tick: {\n        className: cx(\n          \"ui-radar-chart__polar-radius-axis-tick\",\n          polarRadiusAxisTickClassName,\n        ),\n      },\n      tickFormatter: polarRadiusAxisTickFormatter,\n      ...props,\n      ...polarRadiusAxisProps,\n    }),\n    [\n      polarRadiusAxisClassName,\n      polarRadiusAxisProps,\n      polarRadiusAxisTickClassName,\n      polarRadiusAxisTickFormatter,\n    ],\n  )\n\n  return {\n    radarVars,\n    setHighlightedArea,\n    getPolarAngleAxisProps,\n    getPolarRadiusAxisProps,\n    getRadarChartProps,\n    getRadarProps,\n  }\n}\n\nexport type UseRadarChartReturn = ReturnType<typeof useRadarChart>\n"],"mappings":";;;;;;;;;;;;;;AAeA,SAAS,QAAQ,gBAAgB;AACjC,SAAS,UAAU;AACnB,SAAS,aAAa,SAAS,gBAAgB;AAqFxC,IAAM,gBAAgB,CAAC;AAAA,EAC5B;AAAA,EACA;AAAA,EACA,cAAc;AAAA,EACd;AAAA,EACA;AAAA,EACA;AAAA,EACA,cAAc;AAAA,EACd;AAAA,EACA,iBAAiB;AAAA,EACjB,WAAW;AAAA,EACX,GAAG;AACL,MAA0B;AAlH1B;AAmHE,QAAM,EAAE,MAAM,IAAI,SAAS;AAC3B,QAAM,CAAC,iBAAiB,kBAAkB,IAAI,SAAwB,IAAI;AAC1E,QAAM,kBAAkB,oBAAoB;AAC5C,QAAM;AAAA,IACJ,YAAY,CAAC;AAAA,IACb;AAAA,IACA;AAAA,IACA,MAAM,CAAC;AAAA,IACP,GAAG;AAAA,EACL,KAAI,UAAK,eAAL,YAAmB,CAAC;AAExB,QAAM,cAAkC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