@yamada-ui/react 2.1.1-dev-20260303115332 → 2.1.1-dev-20260303170810

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.
Files changed (265) hide show
  1. package/dist/cjs/components/chart/cartesian-chart.cjs +7 -5
  2. package/dist/cjs/components/chart/cartesian-chart.cjs.map +1 -1
  3. package/dist/cjs/components/chart/cartesian-chart.style.cjs +2 -0
  4. package/dist/cjs/components/chart/cartesian-chart.style.cjs.map +1 -1
  5. package/dist/cjs/components/chart/polar-chart.cjs +1 -1
  6. package/dist/cjs/components/chart/polar-chart.cjs.map +1 -1
  7. package/dist/cjs/components/chart/polar-chart.style.cjs +1 -1
  8. package/dist/cjs/components/chart/polar-chart.style.cjs.map +1 -1
  9. package/dist/esm/components/chart/cartesian-chart.js +7 -5
  10. package/dist/esm/components/chart/cartesian-chart.js.map +1 -1
  11. package/dist/esm/components/chart/cartesian-chart.style.js +2 -0
  12. package/dist/esm/components/chart/cartesian-chart.style.js.map +1 -1
  13. package/dist/esm/components/chart/polar-chart.js +1 -1
  14. package/dist/esm/components/chart/polar-chart.js.map +1 -1
  15. package/dist/esm/components/chart/polar-chart.style.js +1 -1
  16. package/dist/esm/components/chart/polar-chart.style.js.map +1 -1
  17. package/dist/types/components/accordion/accordion.d.ts +2 -4
  18. package/dist/types/components/accordion/accordion.style.d.ts +1 -1
  19. package/dist/types/components/accordion/use-accordion.d.ts +11 -11
  20. package/dist/types/components/airy/airy.d.ts +2 -3
  21. package/dist/types/components/alert/alert.d.ts +2 -5
  22. package/dist/types/components/alpha-slider/alpha-slider.d.ts +2 -3
  23. package/dist/types/components/aspect-ratio/aspect-ratio.d.ts +2 -2
  24. package/dist/types/components/autocomplete/autocomplete.d.ts +2 -4
  25. package/dist/types/components/autocomplete/autocomplete.style.d.ts +1 -1
  26. package/dist/types/components/autocomplete/use-autocomplete.d.ts +5 -7
  27. package/dist/types/components/avatar/avatar.d.ts +5 -5
  28. package/dist/types/components/avatar/avatar.style.d.ts +1 -1
  29. package/dist/types/components/avatar/use-avatar-group.d.ts +2 -2
  30. package/dist/types/components/badge/badge.d.ts +2 -2
  31. package/dist/types/components/bleed/bleed.d.ts +2 -2
  32. package/dist/types/components/blockquote/blockquote.d.ts +2 -2
  33. package/dist/types/components/breadcrumb/breadcrumb.d.ts +2 -2
  34. package/dist/types/components/breadcrumb/breadcrumb.style.d.ts +1 -1
  35. package/dist/types/components/breadcrumb/use-breadcrumb.d.ts +2 -2
  36. package/dist/types/components/button/button-group.d.ts +0 -1
  37. package/dist/types/components/button/button.d.ts +2 -3
  38. package/dist/types/components/button/icon-button.d.ts +2 -2
  39. package/dist/types/components/calendar/calendar.d.ts +2 -3
  40. package/dist/types/components/calendar/calendar.style.d.ts +2 -2
  41. package/dist/types/components/calendar/use-calendar.d.ts +8 -9
  42. package/dist/types/components/card/card.d.ts +2 -2
  43. package/dist/types/components/carousel/carousel.d.ts +2 -3
  44. package/dist/types/components/carousel/carousel.style.d.ts +2 -2
  45. package/dist/types/components/carousel/use-carousel.d.ts +3 -3
  46. package/dist/types/components/center/center.d.ts +2 -2
  47. package/dist/types/components/chart/cartesian-chart.d.ts +18 -2
  48. package/dist/types/components/chart/chart.d.ts +5 -5
  49. package/dist/types/components/chart/donut-chart.d.ts +2 -2
  50. package/dist/types/components/chart/line-chart.d.ts +2 -2
  51. package/dist/types/components/chart/pie-chart.d.ts +2 -2
  52. package/dist/types/components/chart/radar-chart.d.ts +2 -2
  53. package/dist/types/components/chart/use-chart.d.ts +2 -2
  54. package/dist/types/components/checkbox/checkbox-group.d.ts +0 -2
  55. package/dist/types/components/checkbox/checkbox.d.ts +5 -6
  56. package/dist/types/components/checkbox/checkbox.style.d.ts +1 -1
  57. package/dist/types/components/checkbox/use-checkbox-group.d.ts +2 -3
  58. package/dist/types/components/checkbox/use-checkbox.d.ts +0 -1
  59. package/dist/types/components/checkbox-card/checkbox-card-group.d.ts +0 -3
  60. package/dist/types/components/checkbox-card/checkbox-card.d.ts +5 -7
  61. package/dist/types/components/checkbox-card/checkbox-card.style.d.ts +1 -1
  62. package/dist/types/components/circle-progress/circle-progress.d.ts +2 -3
  63. package/dist/types/components/close-button/close-button.d.ts +2 -3
  64. package/dist/types/components/code/code.d.ts +2 -2
  65. package/dist/types/components/collapse/collapse.d.ts +2 -3
  66. package/dist/types/components/color-picker/color-picker.d.ts +2 -6
  67. package/dist/types/components/color-picker/color-picker.style.d.ts +1 -1
  68. package/dist/types/components/color-picker/use-color-picker.d.ts +2 -5
  69. package/dist/types/components/color-selector/color-selector.d.ts +2 -6
  70. package/dist/types/components/color-selector/color-selector.style.d.ts +2 -2
  71. package/dist/types/components/color-selector/use-color-selector.d.ts +3 -5
  72. package/dist/types/components/color-swatch/color-swatch.d.ts +2 -2
  73. package/dist/types/components/container/container.d.ts +2 -2
  74. package/dist/types/components/data-list/data-list.d.ts +2 -2
  75. package/dist/types/components/data-list/data-list.style.d.ts +1 -1
  76. package/dist/types/components/date-picker/date-picker.d.ts +2 -5
  77. package/dist/types/components/date-picker/date-picker.style.d.ts +1 -1
  78. package/dist/types/components/date-picker/use-date-picker.d.ts +4 -7
  79. package/dist/types/components/drawer/drawer.d.ts +2 -5
  80. package/dist/types/components/drawer/use-drawer.d.ts +0 -2
  81. package/dist/types/components/dropzone/dropzone.d.ts +4 -7
  82. package/dist/types/components/dropzone/use-dropzone.d.ts +0 -1
  83. package/dist/types/components/editable/editable.d.ts +4 -5
  84. package/dist/types/components/editable/use-editable.d.ts +2 -3
  85. package/dist/types/components/em/em.d.ts +2 -2
  86. package/dist/types/components/empty-state/empty-state.d.ts +2 -2
  87. package/dist/types/components/empty-state/empty-state.style.d.ts +2 -2
  88. package/dist/types/components/fade/fade.d.ts +2 -3
  89. package/dist/types/components/fade-scale/fade-scale.d.ts +0 -1
  90. package/dist/types/components/field/field.d.ts +3 -3
  91. package/dist/types/components/field/use-field-props.d.ts +4 -4
  92. package/dist/types/components/fieldset/fieldset.d.ts +3 -4
  93. package/dist/types/components/file-button/file-button.d.ts +2 -4
  94. package/dist/types/components/file-button/use-file-button.d.ts +18 -20
  95. package/dist/types/components/file-input/file-input.d.ts +2 -4
  96. package/dist/types/components/file-input/use-file-input.d.ts +15 -16
  97. package/dist/types/components/flex/flex.d.ts +2 -2
  98. package/dist/types/components/flip/flip.d.ts +4 -5
  99. package/dist/types/components/flip/flip.style.d.ts +1 -1
  100. package/dist/types/components/float/float.d.ts +2 -2
  101. package/dist/types/components/form/form.d.ts +3 -4
  102. package/dist/types/components/format/format-byte.d.ts +4 -4
  103. package/dist/types/components/format/format-date-time.d.ts +4 -4
  104. package/dist/types/components/format/format-number.d.ts +2 -2
  105. package/dist/types/components/format/use-format-byte.d.ts +0 -1
  106. package/dist/types/components/format/use-format-date-time.d.ts +0 -1
  107. package/dist/types/components/format/use-format-number.d.ts +0 -1
  108. package/dist/types/components/grid/grid-item.d.ts +2 -2
  109. package/dist/types/components/grid/grid.d.ts +2 -2
  110. package/dist/types/components/group/group.d.ts +2 -3
  111. package/dist/types/components/group/use-group.d.ts +2 -2
  112. package/dist/types/components/heading/heading.d.ts +2 -2
  113. package/dist/types/components/highlight/highlight.d.ts +0 -2
  114. package/dist/types/components/hue-slider/hue-slider.d.ts +3 -4
  115. package/dist/types/components/icon/icon.d.ts +5 -5
  116. package/dist/types/components/image/image.d.ts +2 -2
  117. package/dist/types/components/indicator/indicator.d.ts +4 -5
  118. package/dist/types/components/infinite-scroll-area/infinite-scroll-area.d.ts +2 -2
  119. package/dist/types/components/input/input-addon.d.ts +2 -2
  120. package/dist/types/components/input/input-element.d.ts +2 -2
  121. package/dist/types/components/input/input-group.d.ts +0 -2
  122. package/dist/types/components/input/input.d.ts +2 -3
  123. package/dist/types/components/kbd/kbd.d.ts +2 -2
  124. package/dist/types/components/link/link.d.ts +2 -2
  125. package/dist/types/components/link-box/link-box.d.ts +2 -2
  126. package/dist/types/components/list/list.d.ts +2 -2
  127. package/dist/types/components/list/list.style.d.ts +2 -2
  128. package/dist/types/components/loading/loading-provider.d.ts +2 -2
  129. package/dist/types/components/loading/loading.d.ts +3 -4
  130. package/dist/types/components/loading/use-loading-component.d.ts +0 -1
  131. package/dist/types/components/mark/mark.d.ts +2 -2
  132. package/dist/types/components/menu/menu.d.ts +2 -3
  133. package/dist/types/components/menu/use-menu.d.ts +11 -11
  134. package/dist/types/components/modal/modal.d.ts +2 -6
  135. package/dist/types/components/native-accordion/native-accordion.d.ts +2 -2
  136. package/dist/types/components/native-accordion/native-accordion.style.d.ts +2 -2
  137. package/dist/types/components/native-accordion/use-native-accordion.d.ts +2 -2
  138. package/dist/types/components/native-popover/native-popover.d.ts +2 -2
  139. package/dist/types/components/native-select/native-select.d.ts +2 -4
  140. package/dist/types/components/native-select/native-select.style.d.ts +1 -1
  141. package/dist/types/components/native-select/use-native-select.d.ts +0 -1
  142. package/dist/types/components/native-table/native-table.d.ts +4 -4
  143. package/dist/types/components/notice/notice.style.d.ts +1 -1
  144. package/dist/types/components/notice/use-notice.d.ts +0 -3
  145. package/dist/types/components/number-input/number-input.d.ts +2 -3
  146. package/dist/types/components/number-input/number-input.style.d.ts +1 -1
  147. package/dist/types/components/number-input/use-number-input.d.ts +0 -1
  148. package/dist/types/components/pagination/pagination.d.ts +2 -3
  149. package/dist/types/components/pagination/pagination.style.d.ts +1 -1
  150. package/dist/types/components/pagination/use-pagination.d.ts +2 -2
  151. package/dist/types/components/password-input/password-input.d.ts +2 -3
  152. package/dist/types/components/password-input/password-input.style.d.ts +1 -1
  153. package/dist/types/components/password-input/strength-meter.d.ts +2 -2
  154. package/dist/types/components/password-input/strength-meter.style.d.ts +1 -1
  155. package/dist/types/components/password-input/use-password-input.d.ts +2 -3
  156. package/dist/types/components/picture/picture.d.ts +0 -1
  157. package/dist/types/components/pin-input/pin-input.d.ts +2 -4
  158. package/dist/types/components/pin-input/pin-input.style.d.ts +1 -1
  159. package/dist/types/components/pin-input/use-pin-input.d.ts +7 -8
  160. package/dist/types/components/popover/popover.d.ts +2 -3
  161. package/dist/types/components/progress/progress.d.ts +4 -4
  162. package/dist/types/components/progress/use-progress.d.ts +706 -706
  163. package/dist/types/components/qr-code/qr-code.d.ts +2 -2
  164. package/dist/types/components/radio/radio-group.d.ts +0 -2
  165. package/dist/types/components/radio/radio.d.ts +5 -6
  166. package/dist/types/components/radio/radio.style.d.ts +1 -1
  167. package/dist/types/components/radio/use-radio-group.d.ts +2 -3
  168. package/dist/types/components/radio/use-radio.d.ts +0 -1
  169. package/dist/types/components/radio-card/radio-card-group.d.ts +0 -3
  170. package/dist/types/components/radio-card/radio-card.d.ts +5 -7
  171. package/dist/types/components/radio-card/radio-card.style.d.ts +1 -1
  172. package/dist/types/components/rating/rating.style.d.ts +2 -2
  173. package/dist/types/components/rating/use-rating.d.ts +7 -8
  174. package/dist/types/components/reorder/reorder.d.ts +2 -3
  175. package/dist/types/components/reorder/reorder.style.d.ts +1 -1
  176. package/dist/types/components/reorder/use-reorder.d.ts +3 -3
  177. package/dist/types/components/resizable/resizable.d.ts +2 -2
  178. package/dist/types/components/resizable/resizable.style.d.ts +2 -2
  179. package/dist/types/components/resizable/use-resizable.d.ts +2 -2
  180. package/dist/types/components/ripple/ripple.d.ts +2 -3
  181. package/dist/types/components/ripple/use-ripple.d.ts +2 -2
  182. package/dist/types/components/rotate/rotate.d.ts +2 -3
  183. package/dist/types/components/saturation-slider/saturation-slider.d.ts +2 -2
  184. package/dist/types/components/saturation-slider/use-saturation-slider.d.ts +2 -3
  185. package/dist/types/components/scroll-area/scroll-area.d.ts +2 -2
  186. package/dist/types/components/segmented-control/segmented-control.d.ts +2 -3
  187. package/dist/types/components/segmented-control/segmented-control.style.d.ts +2 -2
  188. package/dist/types/components/segmented-control/use-segmented-control.d.ts +9 -10
  189. package/dist/types/components/select/select.d.ts +2 -4
  190. package/dist/types/components/select/select.style.d.ts +1 -1
  191. package/dist/types/components/select/use-select.d.ts +4 -6
  192. package/dist/types/components/separator/separator.d.ts +2 -2
  193. package/dist/types/components/simple-grid/simple-grid.d.ts +2 -3
  194. package/dist/types/components/skeleton/skeleton.d.ts +2 -2
  195. package/dist/types/components/slide/slide.d.ts +2 -3
  196. package/dist/types/components/slide-fade/slide-fade.d.ts +2 -3
  197. package/dist/types/components/slider/slider.d.ts +2 -2
  198. package/dist/types/components/slider/use-slider.d.ts +2 -3
  199. package/dist/types/components/snacks/snacks.d.ts +0 -2
  200. package/dist/types/components/snacks/use-snacks.d.ts +0 -1
  201. package/dist/types/components/stack/h-stack.d.ts +2 -2
  202. package/dist/types/components/stack/stack.d.ts +2 -2
  203. package/dist/types/components/stack/v-stack.d.ts +2 -2
  204. package/dist/types/components/stack/z-stack.d.ts +2 -2
  205. package/dist/types/components/stat/stat.d.ts +2 -2
  206. package/dist/types/components/status/status.d.ts +2 -2
  207. package/dist/types/components/status/status.style.d.ts +2 -2
  208. package/dist/types/components/steps/steps.d.ts +2 -2
  209. package/dist/types/components/steps/steps.style.d.ts +1 -1
  210. package/dist/types/components/steps/use-steps.d.ts +10 -10
  211. package/dist/types/components/switch/switch.d.ts +2 -2
  212. package/dist/types/components/switch/use-switch.d.ts +0 -1
  213. package/dist/types/components/table/table.d.ts +2 -4
  214. package/dist/types/components/tabs/tabs.d.ts +2 -2
  215. package/dist/types/components/tabs/use-tabs.d.ts +16 -16
  216. package/dist/types/components/tag/tag.d.ts +2 -2
  217. package/dist/types/components/text/text.d.ts +2 -2
  218. package/dist/types/components/textarea/textarea.d.ts +2 -4
  219. package/dist/types/components/textarea/use-autosize.d.ts +2 -2
  220. package/dist/types/components/timeline/timeline.d.ts +5 -5
  221. package/dist/types/components/timeline/timeline.style.d.ts +2 -2
  222. package/dist/types/components/tip/tip.d.ts +0 -2
  223. package/dist/types/components/toggle/toggle-group.d.ts +1 -1
  224. package/dist/types/components/toggle/toggle.d.ts +5 -7
  225. package/dist/types/components/toggle/use-toggle-group.d.ts +2 -2
  226. package/dist/types/components/toggle/use-toggle.d.ts +2 -3
  227. package/dist/types/components/tooltip/tooltip.d.ts +2 -4
  228. package/dist/types/components/visually-hidden/visually-hidden.d.ts +2 -2
  229. package/dist/types/components/wrap/wrap.d.ts +2 -3
  230. package/dist/types/core/components/create-component.d.ts +9 -7
  231. package/dist/types/core/components/index.types.d.ts +1 -0
  232. package/dist/types/core/components/use-component-style.d.ts +2 -0
  233. package/dist/types/core/components/utils.d.ts +1 -0
  234. package/dist/types/core/constant.d.ts +1 -0
  235. package/dist/types/core/css/calc.d.ts +1 -0
  236. package/dist/types/core/css/config.d.ts +1 -0
  237. package/dist/types/core/css/css.d.ts +1 -0
  238. package/dist/types/core/css/index.types.d.ts +1 -0
  239. package/dist/types/core/css/styles.d.ts +1 -0
  240. package/dist/types/core/css/token.d.ts +1 -0
  241. package/dist/types/core/css/use-css.d.ts +1 -0
  242. package/dist/types/core/css/utils.d.ts +2 -0
  243. package/dist/types/core/generated-theme-tokens.types.d.ts +1 -0
  244. package/dist/types/core/index.d.ts +2 -0
  245. package/dist/types/core/system/color-mode-provider.d.ts +2 -2
  246. package/dist/types/core/system/config.d.ts +1 -0
  247. package/dist/types/core/system/factory.d.ts +1 -0
  248. package/dist/types/core/system/index.types.d.ts +1 -0
  249. package/dist/types/core/system/storage-script.d.ts +3 -3
  250. package/dist/types/core/system/styled.d.ts +3 -2
  251. package/dist/types/core/system/system-provider.d.ts +2 -2
  252. package/dist/types/core/system/var.d.ts +2 -0
  253. package/dist/types/hooks/use-async-callback/index.d.ts +0 -1
  254. package/dist/types/hooks/use-breakpoint/use-breakpoint-state.d.ts +2 -2
  255. package/dist/types/hooks/use-clickable/index.d.ts +7 -7
  256. package/dist/types/hooks/use-clipboard/index.d.ts +2 -2
  257. package/dist/types/hooks/use-combobox/index.d.ts +12 -13
  258. package/dist/types/hooks/use-counter/index.d.ts +2 -2
  259. package/dist/types/hooks/use-descendants/index.d.ts +2 -2
  260. package/dist/types/hooks/use-field-sizing/index.d.ts +2 -2
  261. package/dist/types/hooks/use-hover/index.d.ts +2 -2
  262. package/dist/types/index.d.ts +0 -103
  263. package/dist/types/providers/i18n-provider/i18n-provider.d.ts +3 -3
  264. package/dist/types/providers/ui-provider/ui-provider.d.ts +2 -3
  265. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"polar-chart.js","names":["props","rest"],"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 SectorProps,\n} from \"recharts\"\nimport type {\n CSSObject,\n CSSProps,\n GenericsComponent,\n HTMLProps,\n HTMLStyledProps,\n ThemeProps,\n} from \"../../core\"\nimport type { Dict, 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 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 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 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 Omit<ChartProps, \"cx\" | \"cy\">, 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 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 withAngleAxis = false,\n withGrid = false,\n withRadiusAxis = false,\n angleAxisProps,\n donutProps,\n gridProps,\n pieProps = donutProps,\n radarProps,\n radialProps,\n radiusAxisProps,\n sectorProps,\n ...rest\n }: PolarChartProps<Y>) => {\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 components={components} {...rest} />\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 | ((props: PieSectorShapeProps, index: number) => 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 } = { ...pieProps, ...props }\n const shape = useCallback(\n (props: any, index: number) => {\n if (isNumber(activeIndex)) props.isActive = index === activeIndex\n\n return <ChartSector {...props} {...runIfFn(sectorProps, props, index)} />\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 {...props}\n {...(labelProp !== true ? runIfFn(labelProp, props) : {})}\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 {...rest}\n {...(labelLineProp !== true ? runIfFn(labelLineProp, rest) : {})}\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 { ...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 } = { ...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 stopColor={color} stopOpacity={0.4} />\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 } = { ...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 HTMLProps<\"text\">,\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 } = { ...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 HTMLProps<\"text\">,\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) => null | ReactElement | undefined)\n | boolean\n | HTMLStyledProps<\"svg\">\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: PieSectorShapeProps) => 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 } = { ...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(\n (props: any) => {\n const color = rest.fill ?? rest.color\n\n return (\n <ChartSector\n color={color}\n {...props}\n {...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<\"svg\">,\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":";;;;;;;;;;;;;;;;;;;;AA+FA,MAAM,oBAAoB,yBAAyB;AA4NnD,MAAM,EACJ,WACA,kBACA,cAAc,wBACd,qBACA,iBAAiB,2BACjB,aACA,cACA,0BACE,oBACF,eACA,gBACD;AAID,MAAa,aAAa,cACP,EACf,YAAY,gBACZ,SACA,gBAAgB,OAChB,WAAW,OACX,iBAAiB,OACjB,gBACA,YACA,WACA,WAAW,YACX,YACA,aACA,iBACA,aACA,GAAG,WACqB;CACxB,MAAM,aAAa,cACX;EACJ;GACE,WAAW;GACX,UAAU,WAAW,oBAAC,mBAAiB,GAAG;GAC3C;EACD;GACE,WAAW;GACX,UAAU,gBAAgB,oBAAC,mBAAiB,GAAG;GAChD;EACD;GACE,WAAW;GACX,UAAU,iBAAiB,oBAAC,oBAAkB,GAAG;GAClD;EACD,GAAG;EACJ,EACD;EAAC;EAAgB;EAAU;EAAe;EAAe,CAC1D;AAwBD,QACE,oBAAC;EAAiB,OAxBK,eAChB;GACI;GACT;GACA;GACA;GACA;GACA;GACA;GACA;GACD,GACD;GACE;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACD,CACF;YAIG,oBAAC;GAAkB;GAAY,GAAI;IAAQ;GAC1B;GAGvB,OACD,CACC,SACC,EACC,eACA,iBACA,iBACA,sBACA,qBACA,0BACA,oBACA,mBACA,SACA,WACA,WACA,gBACA,YACA,0BACA,sBACA,sBACA,uBACA,YACA,WACA,iBACA,sBACA,YACA,kBACA,aACA,kBACA,uBACA,sBACA,wBACA,6BACA,sBACA,2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ACA,GAAG;EACJ,CAAC;AAEF,WAAU,YAAY,QAAQ;AAE9B,QACE,oBAAC,OAAO;EAAI;EAAQ,GAAI,cAAc;YACpC,qBAAC;GAAU,GAAI,gBAAgB;cAC5B,UAEA,YACC,oBAAC;IACC,SAAS;IACT,QAAQ;IACR,UAAS;IACT,+BAAc,UAAU,GAAG,YAAY,EAAE;KACzC,GACA;IACM;GACD;GAGjB,SACD,EAAE"}
1
+ {"version":3,"file":"polar-chart.js","names":["props","rest"],"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 SectorProps,\n} from \"recharts\"\nimport type {\n CSSObject,\n CSSProps,\n GenericsComponent,\n HTMLProps,\n HTMLStyledProps,\n ThemeProps,\n} from \"../../core\"\nimport type { Dict, 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 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 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 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 Omit<ChartProps, \"cx\" | \"cy\">, 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 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 withAngleAxis = false,\n withGrid = false,\n withRadiusAxis = false,\n angleAxisProps,\n donutProps,\n gridProps,\n pieProps = donutProps,\n radarProps,\n radialProps,\n radiusAxisProps,\n sectorProps,\n ...rest\n }: PolarChartProps<Y>) => {\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 components={components} {...rest} />\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 | ((props: PieSectorShapeProps, index: number) => 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 } = { ...pieProps, ...props }\n const shape = useCallback(\n (props: any, index: number) => {\n if (isNumber(activeIndex)) props.isActive = index === activeIndex\n\n return <ChartSector {...props} {...runIfFn(sectorProps, props, index)} />\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 {...props}\n {...(labelProp !== true ? runIfFn(labelProp, props) : {})}\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 {...rest}\n {...(labelLineProp !== true ? runIfFn(labelLineProp, rest) : {})}\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 { ...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 } = { ...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 } = { ...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 HTMLProps<\"text\">,\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 } = { ...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 HTMLProps<\"text\">,\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) => null | ReactElement | undefined)\n | boolean\n | HTMLStyledProps<\"svg\">\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: PieSectorShapeProps) => 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 } = { ...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(\n (props: any) => {\n const color = rest.fill ?? rest.color\n\n return (\n <ChartSector\n color={color}\n {...props}\n {...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<\"svg\">,\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":";;;;;;;;;;;;;;;;;;;;AA+FA,MAAM,oBAAoB,yBAAyB;AA4NnD,MAAM,EACJ,WACA,kBACA,cAAc,wBACd,qBACA,iBAAiB,2BACjB,aACA,cACA,0BACE,oBACF,eACA,gBACD;AAID,MAAa,aAAa,cACP,EACf,YAAY,gBACZ,SACA,gBAAgB,OAChB,WAAW,OACX,iBAAiB,OACjB,gBACA,YACA,WACA,WAAW,YACX,YACA,aACA,iBACA,aACA,GAAG,WACqB;CACxB,MAAM,aAAa,cACX;EACJ;GACE,WAAW;GACX,UAAU,WAAW,oBAAC,mBAAiB,GAAG;GAC3C;EACD;GACE,WAAW;GACX,UAAU,gBAAgB,oBAAC,mBAAiB,GAAG;GAChD;EACD;GACE,WAAW;GACX,UAAU,iBAAiB,oBAAC,oBAAkB,GAAG;GAClD;EACD,GAAG;EACJ,EACD;EAAC;EAAgB;EAAU;EAAe;EAAe,CAC1D;AAwBD,QACE,oBAAC;EAAiB,OAxBK,eAChB;GACI;GACT;GACA;GACA;GACA;GACA;GACA;GACA;GACD,GACD;GACE;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACD,CACF;YAIG,oBAAC;GAAkB;GAAY,GAAI;IAAQ;GAC1B;GAGvB,OACD,CACC,SACC,EACC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pC,WAAO;KACL,GAAG;KACH,iCAAc,WAAW,aAAa,WAAW,IAAI,WAAW,CAAC;KAClE;SAED,QAAO,EAAE,WAAW;KAErB;GAAC;GAAgB,gBAAgB;GAAW,gBAAgB;GAAK;GAAI,CAAC;EAG9D;EACT;EACA;EACA;EACA,GAAG;EACJ,CAAC;AAEF,WAAU,YAAY,QAAQ;AAE9B,QACE,oBAAC,OAAO;EAAI;EAAQ,GAAI,cAAc;YACpC,qBAAC;GAAU,GAAI,gBAAgB;cAC5B,UAEA,YACC,oBAAC;IACC,SAAS;IACT,QAAQ;IACR,UAAS;IACT,+BAAc,UAAU,GAAG,YAAY,EAAE;KACzC,GACA;IACM;GACD;GAGjB,SACD,EAAE"}
@@ -120,7 +120,7 @@ const polarChartStyle = defineComponentSlotStyle({ base: {
120
120
  "--label-line-stroke": "colors.fg.muted",
121
121
  "--label-line-stroke-width": "1",
122
122
  "--radar-color": "colorScheme.solid",
123
- "--radar-fill-opacity": "0.6",
123
+ "--radar-fill-opacity": "0.4",
124
124
  "--radar-stroke": "currentColor",
125
125
  "--radar-stroke-width": "2",
126
126
  "--radial-background-color": "colors.bg.subtle",
@@ -1 +1 @@
1
- {"version":3,"file":"polar-chart.style.js","names":[],"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\": \"4\",\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\": \"4\",\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.6\",\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,kBAAkB,yBAAyB,EACtD,MAAM;CACJ,WAAW;EACT,MAAM;EACN,GAAG;EACH,QAAQ;EACR,aAAa;EACd;CACD,WAAW,EAAE;CACb,gBAAgB;EACd,OAAO;EACP,MAAM;EACN,UAAU;EACV,YAAY;EACb;CACD,eAAe;EACb,OAAO;EACP,MAAM;EACN,QAAQ;EACR,aAAa;EACd;CACD,eAAe;EACb,OAAO;EACP,MAAM;EACN,UAAU;EACV,YAAY;EACb;CACD,mBAAmB;EACjB,OAAO;EACP,QAAQ;EACR,aAAa;EACd;CACD,KAAK;EACH,MAAM;EACN,GAAG;EACH,QAAQ;EACR,aAAa;EACd;CACD,MAAM,EAAE,QAAQ,iBAAiB;CACjC,OAAO;EACL,WAAW,EAAE,SAAS,4BAA4B;EAClD,OAAO;EACP,MAAM;EACN,UAAU;EACV,YAAY;EACb;CACD,WAAW;EACT,WAAW,EAAE,SAAS,iCAAiC;EACvD,QAAQ;EACR,aAAa;EACd;CACD,WAAW;EACT,OAAO;EACP,MAAM;EACN,UAAU;EACV,YAAY;EACb;CACD,KAAK,EAAE;CACP,OAAO;EACL,8BAA8B,EAC5B,SAAS,4BACV;EACD,OAAO;EACP,MAAM;EACN,aAAa;EACb,QAAQ;EACR,aAAa;EACd;CACD,QAAQ,EAAE;CACV,kBAAkB;EAChB,OAAO;EACP,MAAM;EACN,QAAQ;EACR,aAAa;EACd;CACD,YAAY,EAAE;CACd,iBAAiB;EACf,OAAO;EACP,MAAM;EACN,UAAU;EACV,YAAY;EACb;CACD,gBAAgB;EACd,OAAO;EACP,QAAQ;EACR,aAAa;EACd;CACD,gBAAgB;EACd,OAAO;EACP,MAAM;EACN,UAAU;EACV,YAAY;EACb;CACD,oBAAoB;EAClB,OAAO;EACP,QAAQ;EACR,aAAa;EACd;CACD,MAAM;EACJ,qBAAqB;EACrB,kBAAkB;EAClB,uBAAuB;EACvB,6BAA6B;EAC7B,4BAA4B;EAC5B,kCAAkC;EAClC,2BAA2B;EAC3B,0BAA0B;EAC1B,cAAc;EACd,WAAW;EACX,gBAAgB;EAChB,sBAAsB;EACtB,iBAAiB;EACjB,iCAAiC;EACjC,4BAA4B;EAC5B,4BAA4B;EAC5B,6BAA6B;EAC7B,iBAAiB;EACjB,gBAAgB;EAChB,uBAAuB;EACvB,6BAA6B;EAC7B,iBAAiB;EACjB,wBAAwB;EACxB,kBAAkB;EAClB,wBAAwB;EACxB,6BAA6B;EAC7B,4BAA4B;EAC5B,8BAA8B;EAC9B,oCAAoC;EACpC,6BAA6B;EAC7B,mCAAmC;EACnC,4BAA4B;EAC5B,2BAA2B;EAC3B,kBAAkB;EAClB,iBAAiB;EACjB,mBAAmB;EACnB,yBAAyB;EAC1B;CACD,QAAQ;EACN,WAAW,EAAE,SAAS,6BAA6B;EACnD,OAAO;EACP,MAAM;EACN,QAAQ;EACR,aAAa;EACd;CACF,EACF,CAAC"}
1
+ {"version":3,"file":"polar-chart.style.js","names":[],"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\": \"4\",\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\": \"4\",\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,kBAAkB,yBAAyB,EACtD,MA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ACX,gBAAgB;EAChB,sBAAsB;EACtB,iBAAiB;EACjB,iCAAiC;EACjC,4BAA4B;EAC5B,4BAA4B;EAC5B,6BAA6B;EAC7B,iBAAiB;EACjB,gBAAgB;EAChB,uBAAuB;EACvB,6BAA6B;EAC7B,iBAAiB;EACjB,wBAAwB;EACxB,kBAAkB;EAClB,wBAAwB;EACxB,6BAA6B;EAC7B,4BAA4B;EAC5B,8BAA8B;EAC9B,oCAAoC;EACpC,6BAA6B;EAC7B,mCAAmC;EACnC,4BAA4B;EAC5B,2BAA2B;EAC3B,kBAAkB;EAClB,iBAAiB;EACjB,mBAAmB;EACnB,yBAAyB;EAC1B;CACD,QAAQ;EACN,WAAW,EAAE,SAAS,6BAA6B;EACnD,OAAO;EACP,MAAM;EACN,QAAQ;EACR,aAAa;EACd;CACF,EACF,CAAC"}
@@ -3,13 +3,11 @@ import { ThemeProps } from "../../core/system/index.types.js";
3
3
  import { Component, HTMLStyledProps } from "../../core/components/index.types.js";
4
4
  import "../../core/index.js";
5
5
  import { WithTransitionProps } from "../motion/index.types.js";
6
- import "../motion/index.js";
7
6
  import { CollapseProps } from "../collapse/collapse.js";
8
- import "../collapse/index.js";
9
7
  import "../../index.js";
10
8
  import { AccordionStyle } from "./accordion.style.js";
11
9
  import { UseAccordionItemProps, UseAccordionProps } from "./use-accordion.js";
12
- import * as react838 from "react";
10
+ import * as react181 from "react";
13
11
 
14
12
  //#region src/components/accordion/accordion.d.ts
15
13
  interface AccordionCallBackProps {
@@ -33,7 +31,7 @@ interface AccordionRootProps extends Omit<HTMLStyledProps, "onChange">, ThemePro
33
31
  */
34
32
  items?: AccordionItem[];
35
33
  }
36
- declare const AccordionPropsContext: react838.Context<Partial<AccordionRootProps> | undefined>, useAccordionPropsContext: () => Partial<AccordionRootProps> | undefined;
34
+ declare const AccordionPropsContext: react181.Context<Partial<AccordionRootProps> | undefined>, useAccordionPropsContext: () => Partial<AccordionRootProps> | undefined;
37
35
  /**
38
36
  * `Accordion` is a component for a list that displays information in an expandable or collapsible manner.
39
37
  *
@@ -3,7 +3,7 @@ import { CSSModifierObject, CSSPropObject, CSSSlotObject } from "../../core/css/
3
3
  import "../../index.js";
4
4
 
5
5
  //#region src/components/accordion/accordion.style.d.ts
6
- declare const accordionStyle: ComponentSlotStyle<"button" | "panel" | "icon" | "item" | "root", CSSPropObject<CSSSlotObject<"button" | "panel" | "icon" | "item" | "root">>, CSSModifierObject<CSSSlotObject<"button" | "panel" | "icon" | "item" | "root">>, {
6
+ declare const accordionStyle: ComponentSlotStyle<"button" | "panel" | "icon" | "root" | "item", CSSPropObject<CSSSlotObject<"button" | "panel" | "icon" | "root" | "item">>, CSSModifierObject<CSSSlotObject<"button" | "panel" | "icon" | "root" | "item">>, {
7
7
  panel: {
8
8
  button: {
9
9
  rounded: "l2";
@@ -2,10 +2,10 @@ import { HTMLProps, PropGetter } from "../../core/components/index.types.js";
2
2
  import "../../core/index.js";
3
3
  import { Descendant } from "../../hooks/use-descendants/index.js";
4
4
  import "../../index.js";
5
- import * as react826 from "react";
5
+ import * as react169 from "react";
6
6
 
7
7
  //#region src/components/accordion/use-accordion.d.ts
8
- declare const AccordionDescendantsContext: react826.Context<{
8
+ declare const AccordionDescendantsContext: react169.Context<{
9
9
  active: (target?: HTMLButtonElement | Descendant<HTMLButtonElement, {}> | null | undefined, options?: FocusOptions) => void;
10
10
  count: () => number;
11
11
  destroy: () => void;
@@ -24,7 +24,7 @@ declare const AccordionDescendantsContext: react826.Context<{
24
24
  prevValue: (indexOrNode: number | HTMLButtonElement | Descendant<HTMLButtonElement, {}> | null, loop?: boolean) => Descendant<HTMLButtonElement, {}> | undefined;
25
25
  register: (props?: {
26
26
  disabled?: boolean | ((node: HTMLButtonElement) => boolean) | undefined;
27
- } | undefined) => react826.RefCallback<HTMLButtonElement>;
27
+ } | undefined) => react169.RefCallback<HTMLButtonElement>;
28
28
  unregister: (node?: HTMLButtonElement | null | undefined) => void;
29
29
  value: (indexOrNode: number | HTMLButtonElement | null) => Descendant<HTMLButtonElement, {}> | undefined;
30
30
  values: () => Descendant<HTMLButtonElement, {}>[];
@@ -50,12 +50,12 @@ declare const AccordionDescendantsContext: react826.Context<{
50
50
  prevValue: (indexOrNode: number | HTMLButtonElement | Descendant<HTMLButtonElement, {}> | null, loop?: boolean) => Descendant<HTMLButtonElement, {}> | undefined;
51
51
  register: (props?: {
52
52
  disabled?: boolean | ((node: HTMLButtonElement) => boolean) | undefined;
53
- } | undefined) => react826.RefCallback<HTMLButtonElement>;
53
+ } | undefined) => react169.RefCallback<HTMLButtonElement>;
54
54
  unregister: (node?: HTMLButtonElement | null | undefined) => void;
55
55
  value: (indexOrNode: number | HTMLButtonElement | null) => Descendant<HTMLButtonElement, {}> | undefined;
56
56
  values: () => Descendant<HTMLButtonElement, {}>[];
57
57
  };
58
- register: react826.RefCallback<HTMLButtonElement>;
58
+ register: react169.RefCallback<HTMLButtonElement>;
59
59
  }, useAccordionDescendants: () => {
60
60
  active: (target?: HTMLButtonElement | Descendant<HTMLButtonElement, {}> | null | undefined, options?: FocusOptions) => void;
61
61
  count: () => number;
@@ -75,15 +75,15 @@ declare const AccordionDescendantsContext: react826.Context<{
75
75
  prevValue: (indexOrNode: number | HTMLButtonElement | Descendant<HTMLButtonElement, {}> | null, loop?: boolean) => Descendant<HTMLButtonElement, {}> | undefined;
76
76
  register: (props?: {
77
77
  disabled?: boolean | ((node: HTMLButtonElement) => boolean) | undefined;
78
- } | undefined) => react826.RefCallback<HTMLButtonElement>;
78
+ } | undefined) => react169.RefCallback<HTMLButtonElement>;
79
79
  unregister: (node?: HTMLButtonElement | null | undefined) => void;
80
80
  value: (indexOrNode: number | HTMLButtonElement | null) => Descendant<HTMLButtonElement, {}> | undefined;
81
81
  values: () => Descendant<HTMLButtonElement, {}>[];
82
82
  };
83
83
  interface AccordionContext extends Omit<UseAccordionReturn, "descendants" | "getRootProps"> {}
84
- declare const AccordionContext: react826.Context<AccordionContext>, useAccordionContext: () => AccordionContext;
84
+ declare const AccordionContext: react169.Context<AccordionContext>, useAccordionContext: () => AccordionContext;
85
85
  interface AccordionItemContext extends Omit<UseAccordionItemReturn, "getItemProps"> {}
86
- declare const AccordionItemContext: react826.Context<AccordionItemContext>, useAccordionItemContext: () => AccordionItemContext;
86
+ declare const AccordionItemContext: react169.Context<AccordionItemContext>, useAccordionItemContext: () => AccordionItemContext;
87
87
  interface UseAccordionProps extends Omit<HTMLProps, "onChange"> {
88
88
  /**
89
89
  * The initial index(es) of the accordion item to expand.
@@ -137,7 +137,7 @@ declare const useAccordion: ({
137
137
  prevValue: (indexOrNode: number | HTMLButtonElement | Descendant<HTMLButtonElement, {}> | null, loop?: boolean) => Descendant<HTMLButtonElement, {}> | undefined;
138
138
  register: (props?: {
139
139
  disabled?: boolean | ((node: HTMLButtonElement) => boolean) | undefined;
140
- } | undefined) => react826.RefCallback<HTMLButtonElement>;
140
+ } | undefined) => react169.RefCallback<HTMLButtonElement>;
141
141
  unregister: (node?: HTMLButtonElement | null | undefined) => void;
142
142
  value: (indexOrNode: number | HTMLButtonElement | null) => Descendant<HTMLButtonElement, {}> | undefined;
143
143
  values: () => Descendant<HTMLButtonElement, {}>[];
@@ -145,8 +145,8 @@ declare const useAccordion: ({
145
145
  focusedIndex: number;
146
146
  index: number | number[];
147
147
  multiple: boolean | undefined;
148
- setFocusedIndex: react826.Dispatch<react826.SetStateAction<number>>;
149
- setIndex: react826.Dispatch<react826.SetStateAction<number | number[]>>;
148
+ setFocusedIndex: react169.Dispatch<react169.SetStateAction<number>>;
149
+ setIndex: react169.Dispatch<react169.SetStateAction<number | number[]>>;
150
150
  toggle: boolean | undefined;
151
151
  getRootProps: PropGetter<"div", undefined, undefined>;
152
152
  };
@@ -3,9 +3,8 @@ import { Component } from "../../core/components/index.types.js";
3
3
  import "../../core/index.js";
4
4
  import { AiryStyle } from "./airy.style.js";
5
5
  import { HTMLMotionProps } from "../motion/index.types.js";
6
- import "../motion/index.js";
7
6
  import "../../index.js";
8
- import * as react818 from "react";
7
+ import * as react44 from "react";
9
8
  import { ReactNode } from "react";
10
9
 
11
10
  //#region src/components/airy/airy.d.ts
@@ -57,7 +56,7 @@ interface AiryProps extends Omit<HTMLMotionProps<"button">, "onChange">, ThemePr
57
56
  */
58
57
  onChange?: (value: KeyframeIdent) => void;
59
58
  }
60
- declare const AiryPropsContext: react818.Context<Partial<AiryProps> | undefined>, useAiryPropsContext: () => Partial<AiryProps> | undefined;
59
+ declare const AiryPropsContext: react44.Context<Partial<AiryProps> | undefined>, useAiryPropsContext: () => Partial<AiryProps> | undefined;
61
60
  /**
62
61
  * `Airy` is a component that creates an airy animation, switching between two elements when one is clicked.
63
62
  *
@@ -3,13 +3,10 @@ import { Component, HTMLStyledProps } from "../../core/components/index.types.js
3
3
  import "../../core/index.js";
4
4
  import { AlertStyle } from "./alert.style.js";
5
5
  import { IconProps } from "../icon/icon.js";
6
- import "../icon/index.js";
7
6
  import { LoadingProps } from "../loading/loading.js";
8
- import "../loading/index.js";
9
7
  import { StatusScheme } from "../status/status.js";
10
- import "../status/index.js";
11
8
  import "../../index.js";
12
- import * as react873 from "react";
9
+ import * as react165 from "react";
13
10
 
14
11
  //#region src/components/alert/alert.d.ts
15
12
  interface AlertRootProps extends HTMLStyledProps, ThemeProps<AlertStyle> {
@@ -20,7 +17,7 @@ interface AlertRootProps extends HTMLStyledProps, ThemeProps<AlertStyle> {
20
17
  */
21
18
  status?: StatusScheme;
22
19
  }
23
- declare const AlertPropsContext: react873.Context<Partial<AlertRootProps> | undefined>, useAlertPropsContext: () => Partial<AlertRootProps> | undefined;
20
+ declare const AlertPropsContext: react165.Context<Partial<AlertRootProps> | undefined>, useAlertPropsContext: () => Partial<AlertRootProps> | undefined;
24
21
  /**
25
22
  * `Alert` is a component that conveys information to the user.
26
23
  *
@@ -3,9 +3,8 @@ import { Component } from "../../core/components/index.types.js";
3
3
  import "../../core/index.js";
4
4
  import { AlphaSliderStyle } from "./alpha-slider.style.js";
5
5
  import { HueSliderOverlayProps, HueSliderRootProps, HueSliderThumbProps, HueSliderTrackProps } from "../hue-slider/hue-slider.js";
6
- import "../hue-slider/index.js";
7
6
  import "../../index.js";
8
- import * as react872 from "react";
7
+ import * as react159 from "react";
9
8
 
10
9
  //#region src/components/alpha-slider/alpha-slider.d.ts
11
10
  interface AlphaSliderRootProps extends WithoutThemeProps<Omit<HueSliderRootProps, "color" | "max" | "step" | "thumbProps" | "trackProps">, AlphaSliderStyle> {
@@ -38,7 +37,7 @@ interface AlphaSliderRootProps extends WithoutThemeProps<Omit<HueSliderRootProps
38
37
  */
39
38
  trackProps?: AlphaSliderTrackProps;
40
39
  }
41
- declare const AlphaSliderPropsContext: react872.Context<Partial<AlphaSliderRootProps> | undefined>, useAlphaSliderPropsContext: () => Partial<AlphaSliderRootProps> | undefined;
40
+ declare const AlphaSliderPropsContext: react159.Context<Partial<AlphaSliderRootProps> | undefined>, useAlphaSliderPropsContext: () => Partial<AlphaSliderRootProps> | undefined;
42
41
  /**
43
42
  * `AlphaSlider` is a component used to allow the user to select color transparency.
44
43
  *
@@ -2,7 +2,7 @@ import { StyleValue } from "../../core/css/index.types.js";
2
2
  import { Component, HTMLStyledProps } from "../../core/components/index.types.js";
3
3
  import "../../core/index.js";
4
4
  import "../../index.js";
5
- import * as react871 from "react";
5
+ import * as react151 from "react";
6
6
 
7
7
  //#region src/components/aspect-ratio/aspect-ratio.d.ts
8
8
  interface AspectRatioProps extends HTMLStyledProps {
@@ -13,7 +13,7 @@ interface AspectRatioProps extends HTMLStyledProps {
13
13
  */
14
14
  ratio?: StyleValue<number>;
15
15
  }
16
- declare const AspectRatioPropsContext: react871.Context<Partial<AspectRatioProps> | undefined>, useAspectRatioPropsContext: () => Partial<AspectRatioProps> | undefined;
16
+ declare const AspectRatioPropsContext: react151.Context<Partial<AspectRatioProps> | undefined>, useAspectRatioPropsContext: () => Partial<AspectRatioProps> | undefined;
17
17
  /**
18
18
  * `AspectRatio` is a component for embedding things like videos and maps while maintaining the aspect ratio.
19
19
  *
@@ -3,15 +3,13 @@ import { Component, GenericsComponent, HTMLStyledProps } from "../../core/compon
3
3
  import "../../core/index.js";
4
4
  import { AutocompleteStyle } from "./autocomplete.style.js";
5
5
  import { PopoverContentProps, PopupAnimationProps } from "../popover/popover.js";
6
- import "../popover/index.js";
7
6
  import { UseComboboxGroupProps } from "../../hooks/use-combobox/index.js";
8
7
  import { UseInputBorderProps } from "../input/use-input-border.js";
9
8
  import { InputElementProps } from "../input/input-element.js";
10
9
  import { InputGroupRootProps } from "../input/input-group.js";
11
- import "../input/index.js";
12
10
  import { UseAutocompleteOptionProps, UseAutocompleteProps } from "./use-autocomplete.js";
13
11
  import "../../index.js";
14
- import * as react825 from "react";
12
+ import * as react150 from "react";
15
13
  import { ReactElement, ReactNode } from "react";
16
14
 
17
15
  //#region src/components/autocomplete/autocomplete.d.ts
@@ -67,7 +65,7 @@ interface AutocompleteRootProps<Multiple extends boolean = false> extends Omit<H
67
65
  */
68
66
  rootProps?: InputGroupRootProps;
69
67
  }
70
- declare const AutocompletePropsContext: react825.Context<Partial<AutocompleteRootProps<false>> | undefined>, useAutocompletePropsContext: () => Partial<AutocompleteRootProps<false>> | undefined;
68
+ declare const AutocompletePropsContext: react150.Context<Partial<AutocompleteRootProps<false>> | undefined>, useAutocompletePropsContext: () => Partial<AutocompleteRootProps<false>> | undefined;
71
69
  /**
72
70
  * `Autocomplete` is a component used to display suggestions in response to user text input.
73
71
  *
@@ -3,7 +3,7 @@ import { CSSPropObject, CSSSlotObject } from "../../core/css/index.types.js";
3
3
  import "../../index.js";
4
4
 
5
5
  //#region src/components/autocomplete/autocomplete.style.d.ts
6
- declare const autocompleteStyle: ComponentSlotStyle<"input" | "label" | "option" | "content" | "group" | "separator" | "icon" | "indicator" | "root" | "field" | "empty" | "valueText", CSSPropObject<CSSSlotObject<"input" | "label" | "option" | "content" | "group" | "separator" | "icon" | "indicator" | "root" | "field" | "empty" | "valueText">>, {
6
+ declare const autocompleteStyle: ComponentSlotStyle<"input" | "label" | "option" | "content" | "group" | "separator" | "icon" | "field" | "root" | "indicator" | "empty" | "valueText", CSSPropObject<CSSSlotObject<"input" | "label" | "option" | "content" | "group" | "separator" | "icon" | "field" | "root" | "indicator" | "empty" | "valueText">>, {
7
7
  xs: {
8
8
  empty: {
9
9
  gap: "1.5";
@@ -1,13 +1,11 @@
1
1
  import { HTMLProps, HTMLRefAttributes, PropGetter } from "../../core/components/index.types.js";
2
2
  import "../../core/index.js";
3
3
  import { FieldProps } from "../field/field.js";
4
- import "../field/index.js";
5
4
  import { Descendant, DescendantProps } from "../../hooks/use-descendants/index.js";
6
5
  import { UsePopoverProps } from "../popover/use-popover.js";
7
- import "../popover/index.js";
8
6
  import { ComboboxDescendant, ComboboxDescendantProps, ComboboxItem, ComboboxItemWithValue, UseComboboxItemProps, UseComboboxProps } from "../../hooks/use-combobox/index.js";
9
7
  import "../../index.js";
10
- import * as react819 from "react";
8
+ import * as react152 from "react";
11
9
  import { ChangeEvent, ReactNode } from "react";
12
10
 
13
11
  //#region src/components/autocomplete/use-autocomplete.d.ts
@@ -29,7 +27,7 @@ interface AutocompleteMatcher {
29
27
  (input: string, target?: string): boolean;
30
28
  }
31
29
  interface AutocompleteContext extends Pick<UseAutocompleteReturn, "max" | "value"> {}
32
- declare const AutocompleteContext: react819.Context<AutocompleteContext>, useAutocompleteContext: () => AutocompleteContext;
30
+ declare const AutocompleteContext: react152.Context<AutocompleteContext>, useAutocompleteContext: () => AutocompleteContext;
33
31
  interface UseAutocompleteProps<Multiple extends boolean = false> extends Omit<HTMLProps, "defaultValue" | "onChange" | "ref" | "value">, Omit<UseComboboxProps, "defaultValue" | "initialFocusValue" | "onChange" | "ref" | "value">, HTMLRefAttributes<"input">, FieldProps {
34
32
  /**
35
33
  * If `true`, the autocomplete will allow custom value.
@@ -157,7 +155,7 @@ declare const useAutocomplete: <Multiple extends boolean = false>(props?: UseAut
157
155
  lastValue: () => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
158
156
  nextValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, ComboboxDescendantProps> | null, loop?: boolean) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
159
157
  prevValue: (indexOrNode: number | HTMLDivElement | Descendant<HTMLDivElement, ComboboxDescendantProps> | null, loop?: boolean) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
160
- register: (props?: DescendantProps<HTMLDivElement, ComboboxDescendantProps> | undefined) => react819.RefCallback<HTMLDivElement>;
158
+ register: (props?: DescendantProps<HTMLDivElement, ComboboxDescendantProps> | undefined) => react152.RefCallback<HTMLDivElement>;
161
159
  unregister: (node?: HTMLDivElement | null | undefined) => void;
162
160
  value: (indexOrNode: number | HTMLDivElement | null) => Descendant<HTMLDivElement, ComboboxDescendantProps> | undefined;
163
161
  values: () => Descendant<HTMLDivElement, ComboboxDescendantProps>[];
@@ -167,8 +165,8 @@ declare const useAutocomplete: <Multiple extends boolean = false>(props?: UseAut
167
165
  items: ComboboxItem[];
168
166
  max: number | undefined;
169
167
  open: boolean;
170
- setInputValue: react819.Dispatch<react819.SetStateAction<string>>;
171
- setValue: react819.Dispatch<react819.SetStateAction<Multiple extends true ? string[] : string>>;
168
+ setInputValue: react152.Dispatch<react152.SetStateAction<string>>;
169
+ setValue: react152.Dispatch<react152.SetStateAction<Multiple extends true ? string[] : string>>;
172
170
  value: Multiple extends true ? string[] : string;
173
171
  valueMap: {
174
172
  [key: string]: ComboboxItemWithValue;