@yamada-ui/react 2.1.0-next-20260302112233 → 2.1.1-dev-20260303115332

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 (272) hide show
  1. package/dist/cjs/components/chart/area-chart.cjs +0 -1
  2. package/dist/cjs/components/chart/area-chart.cjs.map +1 -1
  3. package/dist/cjs/components/chart/bar-chart.cjs +0 -1
  4. package/dist/cjs/components/chart/bar-chart.cjs.map +1 -1
  5. package/dist/cjs/components/chart/cartesian-chart.cjs +42 -65
  6. package/dist/cjs/components/chart/cartesian-chart.cjs.map +1 -1
  7. package/dist/cjs/components/chart/chart.cjs +13 -22
  8. package/dist/cjs/components/chart/chart.cjs.map +1 -1
  9. package/dist/cjs/components/chart/donut-chart.cjs +0 -1
  10. package/dist/cjs/components/chart/donut-chart.cjs.map +1 -1
  11. package/dist/cjs/components/chart/line-chart.cjs +0 -1
  12. package/dist/cjs/components/chart/line-chart.cjs.map +1 -1
  13. package/dist/cjs/components/chart/pie-chart.cjs +0 -1
  14. package/dist/cjs/components/chart/pie-chart.cjs.map +1 -1
  15. package/dist/cjs/components/chart/polar-chart.cjs +37 -70
  16. package/dist/cjs/components/chart/polar-chart.cjs.map +1 -1
  17. package/dist/cjs/components/chart/radar-chart.cjs +0 -1
  18. package/dist/cjs/components/chart/radar-chart.cjs.map +1 -1
  19. package/dist/cjs/components/chart/radial-chart.cjs +0 -1
  20. package/dist/cjs/components/chart/radial-chart.cjs.map +1 -1
  21. package/dist/cjs/components/chart/use-cartesian-chart.cjs +9 -5
  22. package/dist/cjs/components/chart/use-cartesian-chart.cjs.map +1 -1
  23. package/dist/cjs/components/chart/use-polar-chart.cjs +3 -1
  24. package/dist/cjs/components/chart/use-polar-chart.cjs.map +1 -1
  25. package/dist/cjs/core/system/var.cjs.map +1 -1
  26. package/dist/esm/components/chart/area-chart.js +0 -1
  27. package/dist/esm/components/chart/area-chart.js.map +1 -1
  28. package/dist/esm/components/chart/bar-chart.js +0 -1
  29. package/dist/esm/components/chart/bar-chart.js.map +1 -1
  30. package/dist/esm/components/chart/cartesian-chart.js +43 -66
  31. package/dist/esm/components/chart/cartesian-chart.js.map +1 -1
  32. package/dist/esm/components/chart/chart.js +13 -22
  33. package/dist/esm/components/chart/chart.js.map +1 -1
  34. package/dist/esm/components/chart/donut-chart.js +0 -1
  35. package/dist/esm/components/chart/donut-chart.js.map +1 -1
  36. package/dist/esm/components/chart/line-chart.js +0 -1
  37. package/dist/esm/components/chart/line-chart.js.map +1 -1
  38. package/dist/esm/components/chart/pie-chart.js +0 -1
  39. package/dist/esm/components/chart/pie-chart.js.map +1 -1
  40. package/dist/esm/components/chart/polar-chart.js +37 -70
  41. package/dist/esm/components/chart/polar-chart.js.map +1 -1
  42. package/dist/esm/components/chart/radar-chart.js +0 -1
  43. package/dist/esm/components/chart/radar-chart.js.map +1 -1
  44. package/dist/esm/components/chart/radial-chart.js +0 -1
  45. package/dist/esm/components/chart/radial-chart.js.map +1 -1
  46. package/dist/esm/components/chart/use-cartesian-chart.js +9 -5
  47. package/dist/esm/components/chart/use-cartesian-chart.js.map +1 -1
  48. package/dist/esm/components/chart/use-polar-chart.js +3 -1
  49. package/dist/esm/components/chart/use-polar-chart.js.map +1 -1
  50. package/dist/esm/core/system/var.js.map +1 -1
  51. package/dist/types/components/accordion/accordion.d.ts +2 -2
  52. package/dist/types/components/accordion/accordion.style.d.ts +1 -1
  53. package/dist/types/components/accordion/use-accordion.d.ts +11 -11
  54. package/dist/types/components/airy/airy.d.ts +2 -2
  55. package/dist/types/components/alert/alert.d.ts +2 -2
  56. package/dist/types/components/alert/alert.style.d.ts +1 -1
  57. package/dist/types/components/alpha-slider/alpha-slider.d.ts +2 -2
  58. package/dist/types/components/aspect-ratio/aspect-ratio.d.ts +2 -2
  59. package/dist/types/components/autocomplete/autocomplete.d.ts +2 -2
  60. package/dist/types/components/autocomplete/autocomplete.style.d.ts +1 -1
  61. package/dist/types/components/autocomplete/use-autocomplete.d.ts +5 -5
  62. package/dist/types/components/avatar/avatar.d.ts +5 -5
  63. package/dist/types/components/avatar/avatar.style.d.ts +1 -1
  64. package/dist/types/components/avatar/use-avatar-group.d.ts +2 -2
  65. package/dist/types/components/badge/badge.d.ts +2 -2
  66. package/dist/types/components/bleed/bleed.d.ts +2 -2
  67. package/dist/types/components/blockquote/blockquote.d.ts +2 -2
  68. package/dist/types/components/breadcrumb/breadcrumb.d.ts +2 -2
  69. package/dist/types/components/breadcrumb/breadcrumb.style.d.ts +1 -1
  70. package/dist/types/components/breadcrumb/use-breadcrumb.d.ts +2 -2
  71. package/dist/types/components/button/button.d.ts +2 -2
  72. package/dist/types/components/button/icon-button.d.ts +2 -2
  73. package/dist/types/components/calendar/calendar.d.ts +2 -2
  74. package/dist/types/components/calendar/calendar.style.d.ts +2 -2
  75. package/dist/types/components/calendar/use-calendar.d.ts +8 -8
  76. package/dist/types/components/card/card.d.ts +2 -2
  77. package/dist/types/components/carousel/carousel.d.ts +2 -2
  78. package/dist/types/components/carousel/carousel.style.d.ts +2 -2
  79. package/dist/types/components/carousel/use-carousel.d.ts +3 -3
  80. package/dist/types/components/center/center.d.ts +2 -2
  81. package/dist/types/components/chart/area-chart.d.ts +3 -3
  82. package/dist/types/components/chart/bar-chart.d.ts +3 -3
  83. package/dist/types/components/chart/cartesian-chart.d.ts +19 -7
  84. package/dist/types/components/chart/chart.d.ts +17 -16
  85. package/dist/types/components/chart/donut-chart.d.ts +2 -2
  86. package/dist/types/components/chart/donut-chart.namespace.d.ts +1 -1
  87. package/dist/types/components/chart/index.d.ts +2 -2
  88. package/dist/types/components/chart/line-chart.d.ts +3 -3
  89. package/dist/types/components/chart/pie-chart.d.ts +2 -2
  90. package/dist/types/components/chart/pie-chart.namespace.d.ts +1 -1
  91. package/dist/types/components/chart/polar-chart.d.ts +3 -3
  92. package/dist/types/components/chart/polar-chart.style.d.ts +1 -1
  93. package/dist/types/components/chart/radar-chart.d.ts +2 -2
  94. package/dist/types/components/chart/radar-chart.namespace.d.ts +1 -1
  95. package/dist/types/components/chart/radial-chart.d.ts +2 -2
  96. package/dist/types/components/chart/radial-chart.namespace.d.ts +1 -1
  97. package/dist/types/components/chart/use-cartesian-chart.d.ts +6 -3
  98. package/dist/types/components/chart/use-chart.d.ts +2 -2
  99. package/dist/types/components/chart/use-polar-chart.d.ts +2 -1
  100. package/dist/types/components/checkbox/checkbox.d.ts +5 -5
  101. package/dist/types/components/checkbox/checkbox.style.d.ts +1 -1
  102. package/dist/types/components/checkbox/use-checkbox-group.d.ts +2 -2
  103. package/dist/types/components/checkbox-card/checkbox-card.d.ts +5 -5
  104. package/dist/types/components/checkbox-card/checkbox-card.style.d.ts +1 -1
  105. package/dist/types/components/circle-progress/circle-progress.d.ts +2 -2
  106. package/dist/types/components/close-button/close-button.d.ts +2 -2
  107. package/dist/types/components/code/code.d.ts +2 -2
  108. package/dist/types/components/collapse/collapse.d.ts +2 -2
  109. package/dist/types/components/color-picker/color-picker.d.ts +2 -2
  110. package/dist/types/components/color-picker/use-color-picker.d.ts +2 -2
  111. package/dist/types/components/color-selector/color-selector.d.ts +2 -2
  112. package/dist/types/components/color-selector/color-selector.style.d.ts +2 -2
  113. package/dist/types/components/color-selector/use-color-selector.d.ts +3 -3
  114. package/dist/types/components/color-swatch/color-swatch.d.ts +2 -2
  115. package/dist/types/components/container/container.d.ts +2 -2
  116. package/dist/types/components/data-list/data-list.d.ts +2 -2
  117. package/dist/types/components/data-list/data-list.style.d.ts +1 -1
  118. package/dist/types/components/date-picker/date-picker.d.ts +2 -2
  119. package/dist/types/components/date-picker/date-picker.style.d.ts +1 -1
  120. package/dist/types/components/date-picker/use-date-picker.d.ts +4 -4
  121. package/dist/types/components/drawer/drawer.d.ts +2 -2
  122. package/dist/types/components/dropzone/dropzone.d.ts +5 -5
  123. package/dist/types/components/dropzone/dropzone.style.d.ts +1 -1
  124. package/dist/types/components/editable/editable.d.ts +4 -4
  125. package/dist/types/components/editable/use-editable.d.ts +2 -2
  126. package/dist/types/components/em/em.d.ts +2 -2
  127. package/dist/types/components/empty-state/empty-state.d.ts +2 -2
  128. package/dist/types/components/empty-state/empty-state.style.d.ts +2 -2
  129. package/dist/types/components/fade/fade.d.ts +2 -2
  130. package/dist/types/components/field/field.d.ts +3 -3
  131. package/dist/types/components/field/use-field-props.d.ts +4 -4
  132. package/dist/types/components/fieldset/fieldset.d.ts +3 -3
  133. package/dist/types/components/file-button/file-button.d.ts +2 -2
  134. package/dist/types/components/file-button/use-file-button.d.ts +18 -18
  135. package/dist/types/components/file-input/file-input.d.ts +2 -2
  136. package/dist/types/components/file-input/use-file-input.d.ts +17 -17
  137. package/dist/types/components/flex/flex.d.ts +2 -2
  138. package/dist/types/components/flip/flip.d.ts +4 -4
  139. package/dist/types/components/flip/flip.style.d.ts +1 -1
  140. package/dist/types/components/float/float.d.ts +2 -2
  141. package/dist/types/components/form/form.d.ts +3 -3
  142. package/dist/types/components/form/form.style.d.ts +1 -1
  143. package/dist/types/components/format/format-byte.d.ts +4 -4
  144. package/dist/types/components/format/format-date-time.d.ts +4 -4
  145. package/dist/types/components/format/format-number.d.ts +2 -2
  146. package/dist/types/components/grid/grid-item.d.ts +2 -2
  147. package/dist/types/components/grid/grid.d.ts +2 -2
  148. package/dist/types/components/group/group.d.ts +2 -2
  149. package/dist/types/components/group/use-group.d.ts +2 -2
  150. package/dist/types/components/heading/heading.d.ts +2 -2
  151. package/dist/types/components/hue-slider/hue-slider.d.ts +3 -3
  152. package/dist/types/components/icon/icon.d.ts +5 -5
  153. package/dist/types/components/image/image.d.ts +2 -2
  154. package/dist/types/components/indicator/indicator.d.ts +4 -4
  155. package/dist/types/components/infinite-scroll-area/infinite-scroll-area.d.ts +2 -2
  156. package/dist/types/components/input/input-addon.d.ts +2 -2
  157. package/dist/types/components/input/input-element.d.ts +2 -2
  158. package/dist/types/components/input/input.d.ts +2 -2
  159. package/dist/types/components/kbd/kbd.d.ts +2 -2
  160. package/dist/types/components/link/link.d.ts +2 -2
  161. package/dist/types/components/link-box/link-box.d.ts +2 -2
  162. package/dist/types/components/list/list.d.ts +2 -2
  163. package/dist/types/components/list/list.style.d.ts +2 -2
  164. package/dist/types/components/loading/loading-provider.d.ts +2 -2
  165. package/dist/types/components/loading/loading.d.ts +3 -3
  166. package/dist/types/components/mark/mark.d.ts +2 -2
  167. package/dist/types/components/menu/menu.d.ts +2 -2
  168. package/dist/types/components/menu/menu.style.d.ts +2 -2
  169. package/dist/types/components/menu/use-menu.d.ts +11 -11
  170. package/dist/types/components/modal/modal.d.ts +2 -2
  171. package/dist/types/components/native-accordion/native-accordion.d.ts +2 -2
  172. package/dist/types/components/native-accordion/native-accordion.style.d.ts +2 -2
  173. package/dist/types/components/native-accordion/use-native-accordion.d.ts +2 -2
  174. package/dist/types/components/native-popover/native-popover.d.ts +2 -2
  175. package/dist/types/components/native-select/native-select.d.ts +2 -2
  176. package/dist/types/components/native-table/native-table.d.ts +4 -4
  177. package/dist/types/components/notice/notice.style.d.ts +1 -1
  178. package/dist/types/components/number-input/number-input.d.ts +2 -2
  179. package/dist/types/components/number-input/number-input.style.d.ts +1 -1
  180. package/dist/types/components/pagination/pagination.d.ts +2 -2
  181. package/dist/types/components/pagination/pagination.style.d.ts +1 -1
  182. package/dist/types/components/pagination/use-pagination.d.ts +2 -2
  183. package/dist/types/components/password-input/password-input.d.ts +2 -2
  184. package/dist/types/components/password-input/strength-meter.d.ts +2 -2
  185. package/dist/types/components/password-input/strength-meter.style.d.ts +1 -1
  186. package/dist/types/components/password-input/use-password-input.d.ts +2 -2
  187. package/dist/types/components/pin-input/pin-input.d.ts +2 -2
  188. package/dist/types/components/pin-input/use-pin-input.d.ts +7 -7
  189. package/dist/types/components/popover/popover.d.ts +2 -2
  190. package/dist/types/components/progress/progress.d.ts +4 -4
  191. package/dist/types/components/progress/use-progress.d.ts +706 -706
  192. package/dist/types/components/qr-code/qr-code.d.ts +2 -2
  193. package/dist/types/components/radio/radio.d.ts +5 -5
  194. package/dist/types/components/radio/radio.style.d.ts +1 -1
  195. package/dist/types/components/radio/use-radio-group.d.ts +2 -2
  196. package/dist/types/components/radio-card/radio-card.d.ts +5 -5
  197. package/dist/types/components/radio-card/radio-card.style.d.ts +1 -1
  198. package/dist/types/components/rating/rating.style.d.ts +2 -2
  199. package/dist/types/components/rating/use-rating.d.ts +7 -7
  200. package/dist/types/components/reorder/reorder.d.ts +2 -2
  201. package/dist/types/components/reorder/reorder.style.d.ts +1 -1
  202. package/dist/types/components/reorder/use-reorder.d.ts +3 -3
  203. package/dist/types/components/resizable/resizable.d.ts +2 -2
  204. package/dist/types/components/resizable/resizable.style.d.ts +2 -2
  205. package/dist/types/components/resizable/use-resizable.d.ts +2 -2
  206. package/dist/types/components/ripple/ripple.d.ts +2 -2
  207. package/dist/types/components/ripple/use-ripple.d.ts +2 -2
  208. package/dist/types/components/rotate/rotate.d.ts +2 -2
  209. package/dist/types/components/saturation-slider/saturation-slider.d.ts +2 -2
  210. package/dist/types/components/saturation-slider/use-saturation-slider.d.ts +2 -2
  211. package/dist/types/components/scroll-area/scroll-area.d.ts +2 -2
  212. package/dist/types/components/segmented-control/segmented-control.d.ts +2 -2
  213. package/dist/types/components/segmented-control/segmented-control.style.d.ts +2 -2
  214. package/dist/types/components/segmented-control/use-segmented-control.d.ts +9 -9
  215. package/dist/types/components/select/select.d.ts +2 -2
  216. package/dist/types/components/select/select.style.d.ts +1 -1
  217. package/dist/types/components/select/use-select.d.ts +4 -4
  218. package/dist/types/components/separator/separator.d.ts +2 -2
  219. package/dist/types/components/simple-grid/simple-grid.d.ts +2 -2
  220. package/dist/types/components/skeleton/skeleton.d.ts +2 -2
  221. package/dist/types/components/slide/slide.d.ts +2 -2
  222. package/dist/types/components/slide-fade/slide-fade.d.ts +2 -2
  223. package/dist/types/components/slider/slider.d.ts +2 -2
  224. package/dist/types/components/slider/use-slider.d.ts +2 -2
  225. package/dist/types/components/stack/h-stack.d.ts +2 -2
  226. package/dist/types/components/stack/stack.d.ts +2 -2
  227. package/dist/types/components/stack/v-stack.d.ts +2 -2
  228. package/dist/types/components/stack/z-stack.d.ts +2 -2
  229. package/dist/types/components/stat/stat.d.ts +2 -2
  230. package/dist/types/components/status/status.d.ts +2 -2
  231. package/dist/types/components/status/status.style.d.ts +2 -2
  232. package/dist/types/components/steps/steps.d.ts +2 -2
  233. package/dist/types/components/steps/steps.style.d.ts +1 -1
  234. package/dist/types/components/steps/use-steps.d.ts +10 -10
  235. package/dist/types/components/switch/switch.d.ts +2 -2
  236. package/dist/types/components/table/table.d.ts +2 -2
  237. package/dist/types/components/tabs/tabs.d.ts +2 -2
  238. package/dist/types/components/tabs/tabs.style.d.ts +1 -1
  239. package/dist/types/components/tabs/use-tabs.d.ts +16 -16
  240. package/dist/types/components/tag/tag.d.ts +2 -2
  241. package/dist/types/components/text/text.d.ts +2 -2
  242. package/dist/types/components/textarea/textarea.d.ts +2 -2
  243. package/dist/types/components/textarea/use-autosize.d.ts +2 -2
  244. package/dist/types/components/timeline/timeline.d.ts +5 -5
  245. package/dist/types/components/timeline/timeline.style.d.ts +2 -2
  246. package/dist/types/components/toggle/toggle.d.ts +5 -5
  247. package/dist/types/components/toggle/use-toggle-group.d.ts +2 -2
  248. package/dist/types/components/toggle/use-toggle.d.ts +2 -2
  249. package/dist/types/components/tooltip/tooltip.d.ts +2 -2
  250. package/dist/types/components/visually-hidden/visually-hidden.d.ts +2 -2
  251. package/dist/types/components/wrap/wrap.d.ts +2 -2
  252. package/dist/types/core/components/create-component.d.ts +7 -7
  253. package/dist/types/core/system/color-mode-provider.d.ts +2 -2
  254. package/dist/types/core/system/storage-script.d.ts +3 -3
  255. package/dist/types/core/system/styled.d.ts +2 -2
  256. package/dist/types/core/system/system-provider.d.ts +2 -2
  257. package/dist/types/core/system/var.d.ts +1 -1
  258. package/dist/types/hooks/use-breakpoint/use-breakpoint-state.d.ts +2 -2
  259. package/dist/types/hooks/use-clickable/index.d.ts +9 -9
  260. package/dist/types/hooks/use-clipboard/index.d.ts +2 -2
  261. package/dist/types/hooks/use-combobox/index.d.ts +12 -12
  262. package/dist/types/hooks/use-counter/index.d.ts +2 -2
  263. package/dist/types/hooks/use-descendants/index.d.ts +2 -2
  264. package/dist/types/hooks/use-field-sizing/index.d.ts +2 -2
  265. package/dist/types/hooks/use-hover/index.d.ts +2 -2
  266. package/dist/types/hooks/use-popper/index.d.ts +2 -2
  267. package/dist/types/hooks/use-resize-observer/index.d.ts +3 -3
  268. package/dist/types/index.d.ts +2 -2
  269. package/dist/types/providers/i18n-provider/i18n-provider.d.ts +3 -3
  270. package/dist/types/providers/ui-provider/ui-provider.d.ts +2 -2
  271. package/dist/types/utils/children.d.ts +2 -2
  272. package/package.json +2 -2
@@ -28,7 +28,6 @@ const AreaChart = withContext(({ children, series = [], chartProps, ...rest }) =
28
28
  ...props,
29
29
  ...chartProps
30
30
  }) }),
31
- series,
32
31
  ...getRootProps(),
33
32
  children
34
33
  });
@@ -1 +1 @@
1
- {"version":3,"file":"area-chart.cjs","names":["createComponent","areaChartStyle","useAreaChart","CartesianChart","ChartArea","OriginalAreaChart"],"sources":["../../../../src/components/chart/area-chart.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactElement } from \"react\"\nimport type { CartesianChartProps as OriginalCartesianChartProps } from \"recharts/types/util/types\"\nimport type { GenericsComponent, ThemeProps } from \"../../core\"\nimport type { Dict } from \"../../utils\"\nimport type { AreaChartStyle } from \"./area-chart.style\"\nimport type { CartesianChartProps, ChartAreaProps } from \"./cartesian-chart\"\nimport type { UseAreaChartProps } from \"./use-area-chart\"\nimport { useMemo } from \"react\"\nimport { AreaChart as OriginalAreaChart } from \"recharts\"\nimport { createComponent } from \"../../core\"\nimport { areaChartStyle } from \"./area-chart.style\"\nimport { CartesianChart, ChartArea } from \"./cartesian-chart\"\nimport { useAreaChart } from \"./use-area-chart\"\n\nexport interface AreaChartProps<Y extends Dict = Dict>\n extends\n Omit<\n CartesianChartProps<Y>,\n \"barProps\" | \"components\" | \"lineProps\" | \"render\" | \"series\"\n >,\n UseAreaChartProps<Y>,\n ThemeProps<AreaChartStyle> {\n /***\n * If provided, generate areas based on series.\n */\n series?: ChartAreaProps<Y>[]\n /**\n * Props for the area chart component.\n */\n chartProps?: Omit<OriginalCartesianChartProps, \"data\">\n}\n\nconst {\n PropsContext: AreaChartPropsContext,\n usePropsContext: useAreaChartPropsContext,\n withContext,\n} = createComponent<AreaChartProps, AreaChartStyle>(\n \"area-chart\",\n areaChartStyle,\n)\n\nexport { AreaChartPropsContext, useAreaChartPropsContext }\n\n/**\n * `AreaChart` is a component for drawing area charts to compare multiple sets of data.\n *\n * @see https://yamada-ui.com/docs/components/area-chart\n */\nexport const AreaChart = withContext<\"div\", AreaChartProps>(\n <Y extends Dict>({\n children,\n series = [],\n chartProps,\n ...rest\n }: AreaChartProps<Y>) => {\n const { getChartProps, getRootProps } = useAreaChart(rest)\n const components = useMemo(\n () => [\n {\n component: ChartArea,\n fallback: series.map((props, index) => (\n <ChartArea key={index} {...props} />\n )),\n },\n ],\n [series],\n )\n\n return (\n <CartesianChart\n components={components}\n render={(props) => (\n <OriginalAreaChart {...getChartProps({ ...props, ...chartProps })} />\n )}\n series={series}\n {...getRootProps()}\n >\n {children}\n </CartesianChart>\n )\n },\n)() as GenericsComponent<{\n <Y extends Dict>(props: AreaChartProps<Y>): ReactElement\n}>\n"],"mappings":";;;;;;;;;;;;;AAkCA,MAAM,EACJ,cAAc,uBACd,iBAAiB,0BACjB,gBACEA,yCACF,cACAC,wCACD;;;;;;AASD,MAAa,YAAY,aACN,EACf,UACA,SAAS,EAAE,EACX,YACA,GAAG,WACoB;CACvB,MAAM,EAAE,eAAe,iBAAiBC,oCAAa,KAAK;AAa1D,QACE,2CAACC;EACC,qCAbI,CACJ;GACE,WAAWC;GACX,UAAU,OAAO,KAAK,OAAO,UAC3B,2CAACA,qCAAsB,GAAI,SAAX,MAAoB,CACpC;GACH,CACF,EACD,CAAC,OAAO,CACT;EAKG,SAAS,UACP,2CAACC,sBAAkB,GAAI,cAAc;GAAE,GAAG;GAAO,GAAG;GAAY,CAAC,GAAI;EAE/D;EACR,GAAI,cAAc;EAEjB;GACc;EAGtB,EAAE"}
1
+ {"version":3,"file":"area-chart.cjs","names":["createComponent","areaChartStyle","useAreaChart","CartesianChart","ChartArea","OriginalAreaChart"],"sources":["../../../../src/components/chart/area-chart.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactElement } from \"react\"\nimport type { CartesianChartProps as OriginalCartesianChartProps } from \"recharts/types/util/types\"\nimport type { GenericsComponent, ThemeProps } from \"../../core\"\nimport type { Dict } from \"../../utils\"\nimport type { AreaChartStyle } from \"./area-chart.style\"\nimport type { CartesianChartProps, ChartAreaProps } from \"./cartesian-chart\"\nimport type { UseAreaChartProps } from \"./use-area-chart\"\nimport { useMemo } from \"react\"\nimport { AreaChart as OriginalAreaChart } from \"recharts\"\nimport { createComponent } from \"../../core\"\nimport { areaChartStyle } from \"./area-chart.style\"\nimport { CartesianChart, ChartArea } from \"./cartesian-chart\"\nimport { useAreaChart } from \"./use-area-chart\"\n\nexport interface AreaChartProps<Y extends Dict = Dict>\n extends\n Omit<\n CartesianChartProps,\n \"barProps\" | \"components\" | \"lineProps\" | \"render\" | \"series\"\n >,\n UseAreaChartProps<Y>,\n ThemeProps<AreaChartStyle> {\n /***\n * If provided, generate areas based on series.\n */\n series?: ChartAreaProps<Y>[]\n /**\n * Props for the area chart component.\n */\n chartProps?: Omit<OriginalCartesianChartProps, \"data\">\n}\n\nconst {\n PropsContext: AreaChartPropsContext,\n usePropsContext: useAreaChartPropsContext,\n withContext,\n} = createComponent<AreaChartProps, AreaChartStyle>(\n \"area-chart\",\n areaChartStyle,\n)\n\nexport { AreaChartPropsContext, useAreaChartPropsContext }\n\n/**\n * `AreaChart` is a component for drawing area charts to compare multiple sets of data.\n *\n * @see https://yamada-ui.com/docs/components/area-chart\n */\nexport const AreaChart = withContext<\"div\", AreaChartProps>(\n <Y extends Dict>({\n children,\n series = [],\n chartProps,\n ...rest\n }: AreaChartProps<Y>) => {\n const { getChartProps, getRootProps } = useAreaChart(rest)\n const components = useMemo(\n () => [\n {\n component: ChartArea,\n fallback: series.map((props, index) => (\n <ChartArea key={index} {...props} />\n )),\n },\n ],\n [series],\n )\n\n return (\n <CartesianChart\n components={components}\n render={(props) => (\n <OriginalAreaChart {...getChartProps({ ...props, ...chartProps })} />\n )}\n {...getRootProps()}\n >\n {children}\n </CartesianChart>\n )\n },\n)() as GenericsComponent<{\n <Y extends Dict>(props: AreaChartProps<Y>): ReactElement\n}>\n"],"mappings":";;;;;;;;;;;;;AAkCA,MAAM,EACJ,cAAc,uBACd,iBAAiB,0BACjB,gBACEA,yCACF,cACAC,wCACD;;;;;;AASD,MAAa,YAAY,aACN,EACf,UACA,SAAS,EAAE,EACX,YACA,GAAG,WACoB;CACvB,MAAM,EAAE,eAAe,iBAAiBC,oCAAa,KAAK;AAa1D,QACE,2CAACC;EACC,qCAbI,CACJ;GACE,WAAWC;GACX,UAAU,OAAO,KAAK,OAAO,UAC3B,2CAACA,qCAAsB,GAAI,SAAX,MAAoB,CACpC;GACH,CACF,EACD,CAAC,OAAO,CACT;EAKG,SAAS,UACP,2CAACC,sBAAkB,GAAI,cAAc;GAAE,GAAG;GAAO,GAAG;GAAY,CAAC,GAAI;EAEvE,GAAI,cAAc;EAEjB;GACc;EAGtB,EAAE"}
@@ -28,7 +28,6 @@ const BarChart = withContext(({ children, series = [], chartProps, ...rest }) =>
28
28
  ...props,
29
29
  ...chartProps
30
30
  }) }),
31
- series,
32
31
  ...getRootProps(),
33
32
  children
34
33
  });
@@ -1 +1 @@
1
- {"version":3,"file":"bar-chart.cjs","names":["createComponent","barChartStyle","useBarChart","CartesianChart","ChartBar","OriginalBarChart"],"sources":["../../../../src/components/chart/bar-chart.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactElement } from \"react\"\nimport type { CartesianChartProps as OriginalCartesianChartProps } from \"recharts/types/util/types\"\nimport type { GenericsComponent, ThemeProps } from \"../../core\"\nimport type { Dict } from \"../../utils\"\nimport type { BarChartStyle } from \"./bar-chart.style\"\nimport type { CartesianChartProps, ChartBarProps } from \"./cartesian-chart\"\nimport type { UseBarChartProps } from \"./use-bar-chart\"\nimport { useMemo } from \"react\"\nimport { BarChart as OriginalBarChart } from \"recharts\"\nimport { createComponent } from \"../../core\"\nimport { barChartStyle } from \"./bar-chart.style\"\nimport { CartesianChart, ChartBar } from \"./cartesian-chart\"\nimport { useBarChart } from \"./use-bar-chart\"\n\nexport interface BarChartProps<Y extends Dict = Dict>\n extends\n Omit<\n CartesianChartProps<Y>,\n | \"areaFillOpacity\"\n | \"areaProps\"\n | \"components\"\n | \"lineProps\"\n | \"render\"\n | \"series\"\n >,\n UseBarChartProps<Y>,\n ThemeProps<BarChartStyle> {\n /***\n * If provided, generate bars based on series.\n */\n series?: ChartBarProps<Y>[]\n /**\n * Props for the bar chart component.\n */\n chartProps?: Omit<OriginalCartesianChartProps, \"data\">\n}\n\nconst {\n PropsContext: BarChartPropsContext,\n usePropsContext: useBarChartPropsContext,\n withContext,\n} = createComponent<BarChartProps, BarChartStyle>(\"bar-chart\", barChartStyle)\n\nexport { BarChartPropsContext, useBarChartPropsContext }\n\n/**\n * `BarChart` is a component for drawing bar charts to compare multiple sets of data.\n *\n * @see https://yamada-ui.com/docs/components/bar-chart\n */\nexport const BarChart = withContext<\"div\", BarChartProps>(\n <Y extends Dict>({\n children,\n series = [],\n chartProps,\n ...rest\n }: BarChartProps<Y>) => {\n const { getChartProps, getRootProps } = useBarChart(rest)\n const components = useMemo(\n () => [\n {\n component: ChartBar,\n fallback: series.map((props, index) => (\n <ChartBar key={index} {...props} />\n )),\n },\n ],\n [series],\n )\n\n return (\n <CartesianChart\n components={components}\n render={(props) => (\n <OriginalBarChart {...getChartProps({ ...props, ...chartProps })} />\n )}\n series={series}\n {...getRootProps()}\n >\n {children}\n </CartesianChart>\n )\n },\n)() as GenericsComponent<{\n <Y extends Dict>(props: BarChartProps<Y>): ReactElement\n}>\n"],"mappings":";;;;;;;;;;;;;AAuCA,MAAM,EACJ,cAAc,sBACd,iBAAiB,yBACjB,gBACEA,yCAA8C,aAAaC,sCAAc;;;;;;AAS7E,MAAa,WAAW,aACL,EACf,UACA,SAAS,EAAE,EACX,YACA,GAAG,WACmB;CACtB,MAAM,EAAE,eAAe,iBAAiBC,kCAAY,KAAK;AAazD,QACE,2CAACC;EACC,qCAbI,CACJ;GACE,WAAWC;GACX,UAAU,OAAO,KAAK,OAAO,UAC3B,2CAACA,oCAAqB,GAAI,SAAX,MAAoB,CACnC;GACH,CACF,EACD,CAAC,OAAO,CACT;EAKG,SAAS,UACP,2CAACC,qBAAiB,GAAI,cAAc;GAAE,GAAG;GAAO,GAAG;GAAY,CAAC,GAAI;EAE9D;EACR,GAAI,cAAc;EAEjB;GACc;EAGtB,EAAE"}
1
+ {"version":3,"file":"bar-chart.cjs","names":["createComponent","barChartStyle","useBarChart","CartesianChart","ChartBar","OriginalBarChart"],"sources":["../../../../src/components/chart/bar-chart.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactElement } from \"react\"\nimport type { CartesianChartProps as OriginalCartesianChartProps } from \"recharts/types/util/types\"\nimport type { GenericsComponent, ThemeProps } from \"../../core\"\nimport type { Dict } from \"../../utils\"\nimport type { BarChartStyle } from \"./bar-chart.style\"\nimport type { CartesianChartProps, ChartBarProps } from \"./cartesian-chart\"\nimport type { UseBarChartProps } from \"./use-bar-chart\"\nimport { useMemo } from \"react\"\nimport { BarChart as OriginalBarChart } from \"recharts\"\nimport { createComponent } from \"../../core\"\nimport { barChartStyle } from \"./bar-chart.style\"\nimport { CartesianChart, ChartBar } from \"./cartesian-chart\"\nimport { useBarChart } from \"./use-bar-chart\"\n\nexport interface BarChartProps<Y extends Dict = Dict>\n extends\n Omit<\n CartesianChartProps,\n | \"areaFillOpacity\"\n | \"areaProps\"\n | \"components\"\n | \"lineProps\"\n | \"render\"\n | \"series\"\n >,\n UseBarChartProps<Y>,\n ThemeProps<BarChartStyle> {\n /***\n * If provided, generate bars based on series.\n */\n series?: ChartBarProps<Y>[]\n /**\n * Props for the bar chart component.\n */\n chartProps?: Omit<OriginalCartesianChartProps, \"data\">\n}\n\nconst {\n PropsContext: BarChartPropsContext,\n usePropsContext: useBarChartPropsContext,\n withContext,\n} = createComponent<BarChartProps, BarChartStyle>(\"bar-chart\", barChartStyle)\n\nexport { BarChartPropsContext, useBarChartPropsContext }\n\n/**\n * `BarChart` is a component for drawing bar charts to compare multiple sets of data.\n *\n * @see https://yamada-ui.com/docs/components/bar-chart\n */\nexport const BarChart = withContext<\"div\", BarChartProps>(\n <Y extends Dict>({\n children,\n series = [],\n chartProps,\n ...rest\n }: BarChartProps<Y>) => {\n const { getChartProps, getRootProps } = useBarChart(rest)\n const components = useMemo(\n () => [\n {\n component: ChartBar,\n fallback: series.map((props, index) => (\n <ChartBar key={index} {...props} />\n )),\n },\n ],\n [series],\n )\n\n return (\n <CartesianChart\n components={components}\n render={(props) => (\n <OriginalBarChart {...getChartProps({ ...props, ...chartProps })} />\n )}\n {...getRootProps()}\n >\n {children}\n </CartesianChart>\n )\n },\n)() as GenericsComponent<{\n <Y extends Dict>(props: BarChartProps<Y>): ReactElement\n}>\n"],"mappings":";;;;;;;;;;;;;AAuCA,MAAM,EACJ,cAAc,sBACd,iBAAiB,yBACjB,gBACEA,yCAA8C,aAAaC,sCAAc;;;;;;AAS7E,MAAa,WAAW,aACL,EACf,UACA,SAAS,EAAE,EACX,YACA,GAAG,WACmB;CACtB,MAAM,EAAE,eAAe,iBAAiBC,kCAAY,KAAK;AAazD,QACE,2CAACC;EACC,qCAbI,CACJ;GACE,WAAWC;GACX,UAAU,OAAO,KAAK,OAAO,UAC3B,2CAACA,oCAAqB,GAAI,SAAX,MAAoB,CACnC;GACH,CACF,EACD,CAAC,OAAO,CACT;EAKG,SAAS,UACP,2CAACC,qBAAiB,GAAI,cAAc;GAAE,GAAG;GAAO,GAAG;GAAY,CAAC,GAAI;EAEtE,GAAI,cAAc;EAEjB;GACc;EAGtB,EAAE"}
@@ -105,9 +105,9 @@ const ChartXAxis = withContext((props) => {
105
105
  const tickProps = useSlotComponentProps({}, "xAxisTick");
106
106
  const labelProps = useSlotComponentProps({}, "xAxisLabel");
107
107
  const tickLineProps = useSlotComponentProps({}, "xAxisTickLine");
108
+ const css = (0, react.useMemo)(() => require_use_css.getCSS(system, theme), [system, theme]);
108
109
  const tick = (0, react.useMemo)(() => {
109
110
  if (!tickProp) return tickProp;
110
- const css = require_use_css.getCSS(system, theme);
111
111
  const className = (0, require_utils_index.utils_exports.cx)(tickProps.className, css(tickProps.css));
112
112
  if ((0, require_utils_index.utils_exports.isFunction)(tickProp)) return (props$1) => tickProp({
113
113
  ...props$1,
@@ -122,15 +122,13 @@ const ChartXAxis = withContext((props) => {
122
122
  };
123
123
  } else return { className };
124
124
  }, [
125
- system,
126
- theme,
127
125
  tickProp,
128
126
  tickProps.className,
129
- tickProps.css
127
+ tickProps.css,
128
+ css
130
129
  ]);
131
130
  const tickLine = (0, react.useMemo)(() => {
132
131
  if (!tickLineProp) return tickLineProp;
133
- const css = require_use_css.getCSS(system, theme);
134
132
  const className = (0, require_utils_index.utils_exports.cx)(tickLineProps.className, css(tickLineProps.css));
135
133
  if ((0, require_utils_index.utils_exports.isObject)(tickLineProp)) {
136
134
  const [omittedProps, styleProps] = (0, require_utils_index.utils_exports.splitObject)(tickLineProp, shouldForwardProp);
@@ -140,16 +138,14 @@ const ChartXAxis = withContext((props) => {
140
138
  };
141
139
  } else return { className };
142
140
  }, [
143
- system,
144
- theme,
145
141
  tickLineProp,
146
142
  tickLineProps.className,
147
- tickLineProps.css
143
+ tickLineProps.css,
144
+ css
148
145
  ]);
149
146
  const { getRootProps, getXAxisProps } = require_use_cartesian_chart.useChartXAxis({
150
147
  label: (0, react.useMemo)(() => {
151
148
  if (!labelProp) return labelProp;
152
- const css = require_use_css.getCSS(system, theme);
153
149
  const className = (0, require_utils_index.utils_exports.cx)(labelProps.className, css(labelProps.css));
154
150
  if ((0, require_utils_index.utils_exports.isFunction)(labelProp)) return (props$1) => labelProp({
155
151
  ...props$1,
@@ -167,11 +163,10 @@ const ChartXAxis = withContext((props) => {
167
163
  children: labelProp
168
164
  };
169
165
  }, [
170
- system,
171
- theme,
172
166
  labelProp,
173
167
  labelProps.className,
174
- labelProps.css
168
+ labelProps.css,
169
+ css
175
170
  ]),
176
171
  tick,
177
172
  tickLine,
@@ -197,9 +192,9 @@ const ChartYAxis = withContext((props) => {
197
192
  const tickProps = useSlotComponentProps({}, "yAxisTick");
198
193
  const labelProps = useSlotComponentProps({}, "yAxisLabel");
199
194
  const tickLineProps = useSlotComponentProps({}, "yAxisTickLine");
195
+ const css = (0, react.useMemo)(() => require_use_css.getCSS(system, theme), [system, theme]);
200
196
  const tick = (0, react.useMemo)(() => {
201
197
  if (!tickProp) return tickProp;
202
- const css = require_use_css.getCSS(system, theme);
203
198
  const className = (0, require_utils_index.utils_exports.cx)(tickProps.className, css(tickProps.css));
204
199
  if ((0, require_utils_index.utils_exports.isFunction)(tickProp)) return (props$1) => tickProp({
205
200
  ...props$1,
@@ -214,15 +209,13 @@ const ChartYAxis = withContext((props) => {
214
209
  };
215
210
  } else return { className };
216
211
  }, [
217
- system,
218
- theme,
219
212
  tickProp,
220
213
  tickProps.className,
221
- tickProps.css
214
+ tickProps.css,
215
+ css
222
216
  ]);
223
217
  const tickLine = (0, react.useMemo)(() => {
224
218
  if (!tickLineProp) return tickLineProp;
225
- const css = require_use_css.getCSS(system, theme);
226
219
  const className = (0, require_utils_index.utils_exports.cx)(tickLineProps.className, css(tickLineProps.css));
227
220
  if ((0, require_utils_index.utils_exports.isObject)(tickLineProp)) {
228
221
  const [omittedProps, styleProps] = (0, require_utils_index.utils_exports.splitObject)(tickLineProp, shouldForwardProp);
@@ -232,16 +225,14 @@ const ChartYAxis = withContext((props) => {
232
225
  };
233
226
  } else return { className };
234
227
  }, [
235
- system,
236
- theme,
237
228
  tickLineProp,
238
229
  tickLineProps.className,
239
- tickLineProps.css
230
+ tickLineProps.css,
231
+ css
240
232
  ]);
241
233
  const { getRootProps, getYAxisProps } = require_use_cartesian_chart.useChartYAxis({
242
234
  label: (0, react.useMemo)(() => {
243
235
  if (!labelProp) return labelProp;
244
- const css = require_use_css.getCSS(system, theme);
245
236
  const className = (0, require_utils_index.utils_exports.cx)(labelProps.className, css(labelProps.css));
246
237
  if ((0, require_utils_index.utils_exports.isFunction)(labelProp)) return (props$1) => labelProp({
247
238
  ...props$1,
@@ -259,11 +250,10 @@ const ChartYAxis = withContext((props) => {
259
250
  children: labelProp
260
251
  };
261
252
  }, [
262
- system,
263
- theme,
264
253
  labelProp,
265
254
  labelProps.className,
266
- labelProps.css
255
+ labelProps.css,
256
+ css
267
257
  ]),
268
258
  tick,
269
259
  tickLine,
@@ -292,20 +282,20 @@ const ChartGrid = withContext((props) => {
292
282
  }, "grid")();
293
283
  const ChartLine = withContext((props) => {
294
284
  const { lineProps } = useComponentContext();
295
- const { activeDot: activeDotProp = true, children, dataKey, dot: dotProp = false, label: labelProp = false, ...rest } = {
285
+ const { activeDot: activeDotProp = true, children, dataKey, dot: dotProp = false, label: labelProp = false, stroke: strokeProp, ...rest } = {
296
286
  ...lineProps,
297
287
  ...props
298
288
  };
299
289
  const system = require_system_provider.useSystem();
300
290
  const { theme } = require_theme_provider.useTheme();
301
- const { varMap } = require_chart.useChartComponentContext();
302
- const color = varMap[dataKey.toString()] ?? rest.stroke ?? rest.color;
291
+ const color = strokeProp ?? rest.color;
292
+ const stroke = JSON.stringify(color);
303
293
  const dotProps = useSlotComponentProps({}, "dot");
304
294
  const activeDotProps = useSlotComponentProps({}, "activeDot");
305
295
  const labelProps = useSlotComponentProps({}, "labelList");
296
+ const css = (0, react.useMemo)(() => require_use_css.getCSS(system, theme), [system, theme]);
306
297
  const dot = (0, react.useMemo)(() => {
307
298
  if (!dotProp) return dotProp;
308
- const css = require_use_css.getCSS(system, theme);
309
299
  const className = (0, require_utils_index.utils_exports.cx)(dotProps.className, css(dotProps.css), css({
310
300
  fill: color,
311
301
  stroke: color
@@ -324,16 +314,14 @@ const ChartLine = withContext((props) => {
324
314
  } else return { className };
325
315
  }, [
326
316
  dotProp,
327
- system,
328
- theme,
329
317
  dotProps.className,
330
318
  dotProps.css,
319
+ css,
331
320
  color
332
321
  ]);
333
322
  const { getLineProps, getRootProps } = require_use_cartesian_chart.useChartLine({
334
323
  activeDot: (0, react.useMemo)(() => {
335
324
  if (!activeDotProp) return activeDotProp;
336
- const css = require_use_css.getCSS(system, theme);
337
325
  const className = (0, require_utils_index.utils_exports.cx)(activeDotProps.className, css(activeDotProps.css), css({
338
326
  fill: color,
339
327
  stroke: color
@@ -352,17 +340,15 @@ const ChartLine = withContext((props) => {
352
340
  } else return { className };
353
341
  }, [
354
342
  activeDotProp,
355
- system,
356
- theme,
357
343
  activeDotProps.className,
358
344
  activeDotProps.css,
345
+ css,
359
346
  color
360
347
  ]),
361
348
  dataKey,
362
349
  dot,
363
350
  label: (0, react.useMemo)(() => {
364
351
  if (!labelProp) return labelProp;
365
- const css = require_use_css.getCSS(system, theme);
366
352
  const className = (0, require_utils_index.utils_exports.cx)(labelProps.className, css(labelProps.css));
367
353
  if ((0, require_utils_index.utils_exports.isFunction)(labelProp)) return (props$1) => labelProp({
368
354
  ...props$1,
@@ -377,13 +363,12 @@ const ChartLine = withContext((props) => {
377
363
  };
378
364
  } else return { className };
379
365
  }, [
380
- system,
381
- theme,
382
366
  labelProp,
383
367
  labelProps.className,
384
- labelProps.css
368
+ labelProps.css,
369
+ css
385
370
  ]),
386
- stroke: color,
371
+ stroke,
387
372
  ...rest
388
373
  });
389
374
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.styled.line, {
@@ -397,21 +382,21 @@ const ChartLine = withContext((props) => {
397
382
  }, "line")();
398
383
  const ChartArea = withContext((props) => {
399
384
  const { areaProps } = useComponentContext();
400
- const { activeDot: activeDotProp = true, children, dataKey, dot: dotProp = false, label: labelProp = false, withGradient, ...rest } = {
385
+ const { activeDot: activeDotProp = true, children, dataKey, dot: dotProp = false, label: labelProp = false, stroke: strokeProp, withGradient, ...rest } = {
401
386
  ...areaProps,
402
387
  ...props
403
388
  };
404
389
  const id = (0, react.useId)();
405
390
  const system = require_system_provider.useSystem();
406
391
  const { theme } = require_theme_provider.useTheme();
407
- const { varMap } = require_chart.useChartComponentContext();
408
- const color = varMap[dataKey.toString()] ?? rest.stroke ?? rest.color;
392
+ const color = strokeProp ?? rest.fill ?? rest.color;
393
+ const stroke = JSON.stringify(color);
409
394
  const dotProps = useSlotComponentProps({}, "dot");
410
395
  const activeDotProps = useSlotComponentProps({}, "activeDot");
411
396
  const labelProps = useSlotComponentProps({}, "labelList");
397
+ const css = (0, react.useMemo)(() => require_use_css.getCSS(system, theme), [system, theme]);
412
398
  const dot = (0, react.useMemo)(() => {
413
399
  if (!dotProp) return dotProp;
414
- const css = require_use_css.getCSS(system, theme);
415
400
  const className = (0, require_utils_index.utils_exports.cx)(dotProps.className, css(dotProps.css), css({
416
401
  fill: color,
417
402
  stroke: color
@@ -430,15 +415,13 @@ const ChartArea = withContext((props) => {
430
415
  } else return { className };
431
416
  }, [
432
417
  dotProp,
433
- system,
434
- theme,
435
418
  dotProps.className,
436
419
  dotProps.css,
420
+ css,
437
421
  color
438
422
  ]);
439
423
  const activeDot = (0, react.useMemo)(() => {
440
424
  if (!activeDotProp) return activeDotProp;
441
- const css = require_use_css.getCSS(system, theme);
442
425
  const className = (0, require_utils_index.utils_exports.cx)(activeDotProps.className, css(activeDotProps.css), css({
443
426
  fill: color,
444
427
  stroke: color
@@ -457,15 +440,13 @@ const ChartArea = withContext((props) => {
457
440
  } else return { className };
458
441
  }, [
459
442
  activeDotProp,
460
- system,
461
- theme,
462
443
  activeDotProps.className,
463
444
  activeDotProps.css,
445
+ css,
464
446
  color
465
447
  ]);
466
448
  const label = (0, react.useMemo)(() => {
467
449
  if (!labelProp) return labelProp;
468
- const css = require_use_css.getCSS(system, theme);
469
450
  const className = (0, require_utils_index.utils_exports.cx)(labelProps.className, css(labelProps.css));
470
451
  if ((0, require_utils_index.utils_exports.isFunction)(labelProp)) return (props$1) => labelProp({
471
452
  ...props$1,
@@ -480,11 +461,10 @@ const ChartArea = withContext((props) => {
480
461
  };
481
462
  } else return { className };
482
463
  }, [
483
- system,
484
- theme,
485
464
  labelProp,
486
465
  labelProps.className,
487
- labelProps.css
466
+ labelProps.css,
467
+ css
488
468
  ]);
489
469
  const { getAreaProps, getRootProps } = require_use_cartesian_chart.useChartArea({
490
470
  activeDot,
@@ -492,7 +472,7 @@ const ChartArea = withContext((props) => {
492
472
  dot,
493
473
  fill: color ? `url(#${id})` : "",
494
474
  label,
495
- stroke: color,
475
+ stroke,
496
476
  ...rest
497
477
  });
498
478
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.styled.line, {
@@ -533,21 +513,21 @@ const ChartArea = withContext((props) => {
533
513
  }, "area")();
534
514
  const ChartBar = withContext((props) => {
535
515
  const { barProps } = useComponentContext();
536
- const { children, dataKey, label: labelProp = false, ...rest } = {
516
+ const { children, dataKey, fill: fillProp, label: labelProp = false, ...rest } = {
537
517
  ...barProps,
538
518
  ...props
539
519
  };
540
520
  const system = require_system_provider.useSystem();
541
521
  const { theme } = require_theme_provider.useTheme();
542
- const { varMap } = require_chart.useChartComponentContext();
543
- const color = varMap[dataKey.toString()];
522
+ const color = fillProp ?? rest.color;
523
+ const fill = JSON.stringify(color);
544
524
  const labelProps = useSlotComponentProps({}, "labelList");
525
+ const css = (0, react.useMemo)(() => require_use_css.getCSS(system, theme), [system, theme]);
545
526
  const { getBarProps, getRootProps } = require_use_cartesian_chart.useChartBar({
546
527
  dataKey,
547
- fill: color,
528
+ fill,
548
529
  label: (0, react.useMemo)(() => {
549
530
  if (!labelProp) return labelProp;
550
- const css = require_use_css.getCSS(system, theme);
551
531
  const className = (0, require_utils_index.utils_exports.cx)(labelProps.className, css(labelProps.css));
552
532
  if ((0, require_utils_index.utils_exports.isFunction)(labelProp)) return (props$1) => labelProp({
553
533
  ...props$1,
@@ -562,13 +542,11 @@ const ChartBar = withContext((props) => {
562
542
  };
563
543
  } else return { className };
564
544
  }, [
565
- system,
566
- theme,
567
545
  labelProp,
568
546
  labelProps.className,
569
- labelProps.css
547
+ labelProps.css,
548
+ css
570
549
  ]),
571
- stroke: color,
572
550
  ...rest
573
551
  });
574
552
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.styled.path, {
@@ -589,10 +567,10 @@ const ChartReferenceLine = withContext((props) => {
589
567
  const system = require_system_provider.useSystem();
590
568
  const { theme } = require_theme_provider.useTheme();
591
569
  const labelProps = useSlotComponentProps({}, "referenceLineLabel");
570
+ const css = (0, react.useMemo)(() => require_use_css.getCSS(system, theme), [system, theme]);
592
571
  const { getReferenceLineProps, getRootProps } = require_use_cartesian_chart.useChartReferenceLine({
593
572
  label: (0, react.useMemo)(() => {
594
573
  if (!labelProp) return labelProp;
595
- const css = require_use_css.getCSS(system, theme);
596
574
  const className = (0, require_utils_index.utils_exports.cx)(labelProps.className, css(labelProps.css));
597
575
  if ((0, require_utils_index.utils_exports.isFunction)(labelProp)) return (props$1) => labelProp({
598
576
  ...props$1,
@@ -610,11 +588,10 @@ const ChartReferenceLine = withContext((props) => {
610
588
  children: labelProp
611
589
  };
612
590
  }, [
613
- system,
614
- theme,
615
591
  labelProp,
616
592
  labelProps.className,
617
- labelProps.css
593
+ labelProps.css,
594
+ css
618
595
  ]),
619
596
  ...rest
620
597
  });
@@ -1 +1 @@
1
- {"version":3,"file":"cartesian-chart.cjs","names":["createShouldForwardProp","createSlotComponent","cartesianChartStyle","Chart","varAttr","useSystem","useTheme","getCSS","props","useChartXAxis","styled","XAxis","useChartYAxis","YAxis","useChartGrid","CartesianGrid","useChartComponentContext","useChartLine","Line","useChartArea","Area","useChartBar","Bar","useChartReferenceLine","ReferenceLine"],"sources":["../../../../src/components/chart/cartesian-chart.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactElement, ReactNode } from \"react\"\nimport type {\n ActiveDotProps,\n DotProps,\n LabelListProps,\n LabelProps,\n} from \"recharts\"\nimport type {\n XAxisTickContentProps,\n YAxisTickContentProps,\n} from \"recharts/types/util/types\"\nimport type {\n CSSObject,\n CSSProps,\n GenericsComponent,\n HTMLProps,\n HTMLStyledProps,\n ThemeProps,\n} from \"../../core\"\nimport type { Dict, Merge } from \"../../utils\"\nimport type { CartesianChartStyle } from \"./cartesian-chart.style\"\nimport type {\n ChartActiveDot,\n ChartDot,\n ChartLabel,\n ChartLabelList,\n ChartProps,\n ChartTickLine,\n} from \"./chart\"\nimport type {\n UseChartAreaProps,\n UseChartBarProps,\n UseChartGridProps,\n UseChartLineProps,\n UseChartReferenceLineProps,\n UseChartXAxisProps,\n UseChartYAxisProps,\n} from \"./use-cartesian-chart\"\nimport { cloneElement, isValidElement, useId, useMemo } from \"react\"\nimport {\n Area,\n Bar,\n CartesianGrid,\n Line,\n ReferenceLine,\n XAxis,\n YAxis,\n} from \"recharts\"\nimport {\n createShouldForwardProp,\n createSlotComponent,\n getCSS,\n styled,\n useSystem,\n useTheme,\n varAttr,\n} from \"../../core\"\nimport { cx, isFunction, isObject, splitObject } from \"../../utils\"\nimport { cartesianChartStyle } from \"./cartesian-chart.style\"\nimport { Chart, useChartComponentContext } from \"./chart\"\nimport {\n useChartArea,\n useChartBar,\n useChartGrid,\n useChartLine,\n useChartReferenceLine,\n useChartXAxis,\n useChartYAxis,\n} from \"./use-cartesian-chart\"\n\nconst shouldForwardProp = createShouldForwardProp()\n\ninterface ComponentContext extends Pick<\n CartesianChartProps,\n | \"areaProps\"\n | \"barProps\"\n | \"gridProps\"\n | \"lineProps\"\n | \"referenceLineProps\"\n | \"xAxisProps\"\n | \"yAxisProps\"\n> {}\n\nexport interface CartesianChartProps<Y extends Dict = Dict>\n extends ChartProps<Y>, ThemeProps<CartesianChartStyle> {\n /**\n * The fill color of the active dots.\n */\n activeDotFill?: CSSProps[\"fill\"]\n /**\n * The radius of the active dots.\n */\n activeDotRadius?: CSSProps[\"r\"]\n /**\n * The stroke color of the active dots.\n */\n activeDotStroke?: CSSProps[\"stroke\"]\n /**\n * The stroke width of the active dots.\n */\n activeDotStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The fill opacity of the area.\n */\n areaFillOpacity?: CSSProps[\"fillOpacity\"]\n /**\n * The fill color of the dots.\n */\n dotFill?: CSSProps[\"fill\"]\n /**\n * The radius of the dots.\n */\n dotRadius?: CSSProps[\"r\"]\n /**\n * The stroke color of the dots.\n */\n dotStroke?: CSSProps[\"stroke\"]\n /**\n * The stroke width of the dots.\n */\n dotStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The stroke color of the grid.\n */\n gridStroke?: CSSProps[\"stroke\"]\n /**\n * The opacity of the inactive lines.\n */\n inactiveLineOpacity?: CSSProps[\"opacity\"]\n /**\n * The color of the lines.\n */\n lineColor?: CSSProps[\"color\"]\n /**\n * The stroke color of the lines.\n */\n lineStroke?: CSSProps[\"stroke\"]\n /**\n * The stroke width of the lines.\n */\n lineStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The color of the reference lines.\n */\n referenceLineColor?: CSSProps[\"color\"]\n /**\n * The stroke color of the reference lines.\n */\n referenceLineStroke?: CSSProps[\"stroke\"]\n /**\n * The stroke width of the reference lines.\n */\n referenceLineStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The text color of the reference lines.\n */\n referenceLineTextColor?: CSSProps[\"color\"]\n /**\n * The text fill color of the reference lines.\n */\n referenceLineTextFill?: CSSProps[\"fill\"]\n /**\n * If `true`, grid is visible.\n *\n * @default true\n */\n withGrid?: boolean\n /**\n * If `true`, X axis is visible.\n *\n * @default true\n */\n withXAxis?: boolean\n /**\n * If `true`, Y axis is visible.\n *\n * @default false\n */\n withYAxis?: boolean\n /**\n * The stroke color of the x-axis lines.\n */\n xAxisLineStroke?: CSSProps[\"stroke\"]\n /**\n * The stroke width of the x-axis lines.\n */\n xAxisLineStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The text color of the x-axis.\n */\n xAxisTextColor?: CSSProps[\"color\"]\n /**\n * The text fill color of the x-axis.\n */\n xAxisTextFill?: CSSProps[\"fill\"]\n /**\n * The stroke color of the y-axis lines.\n */\n yAxisLineStroke?: CSSProps[\"stroke\"]\n /**\n * The stroke width of the y-axis lines.\n */\n yAxisLineStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The text color of the y-axis.\n */\n yAxisTextColor?: CSSProps[\"color\"]\n /**\n * The text fill color of the y-axis.\n */\n yAxisTextFill?: CSSProps[\"fill\"]\n /**\n * Props for the area component.\n */\n areaProps?: Omit<ChartAreaProps, \"data\" | \"dataKey\">\n /**\n * Props for the bar component.\n */\n barProps?: Omit<ChartBarProps, \"dataKey\">\n /**\n * Props for the grid component.\n */\n gridProps?: ChartGridProps\n /**\n * Props for the line component.\n */\n lineProps?: Omit<ChartLineProps, \"data\" | \"dataKey\">\n /**\n * Props for the reference line component.\n */\n referenceLineProps?: ChartReferenceLineProps\n /**\n * Props for the x axis component.\n */\n xAxisProps?: ChartXAxisProps\n /**\n * Props for the y axis component.\n */\n yAxisProps?: ChartYAxisProps\n}\n\nconst {\n ComponentContext,\n PropsContext: CartesianChartPropsContext,\n useComponentContext,\n usePropsContext: useCartesianChartPropsContext,\n withContext,\n withProvider,\n useSlotComponentProps,\n} = createSlotComponent<\n CartesianChartProps,\n CartesianChartStyle,\n ComponentContext\n>(\"cartesian-chart\", cartesianChartStyle)\n\nexport { CartesianChartPropsContext, useCartesianChartPropsContext }\n\nexport const CartesianChart = withProvider(\n <Y extends Dict>({\n components: componentsProp,\n withGrid = true,\n withXAxis = true,\n withYAxis = false,\n areaProps,\n barProps,\n gridProps,\n lineProps,\n referenceLineProps,\n xAxisProps,\n yAxisProps,\n ...rest\n }: CartesianChartProps<Y>) => {\n const components = useMemo(\n () => [\n {\n component: ChartGrid,\n fallback: withGrid ? <ChartGrid /> : null,\n },\n {\n component: ChartXAxis,\n fallback: <ChartXAxis hide={!withXAxis} />,\n },\n {\n component: ChartYAxis,\n fallback: <ChartYAxis hide={!withYAxis} />,\n },\n ...componentsProp,\n ],\n [componentsProp, withGrid, withXAxis, withYAxis],\n )\n const componentContext = useMemo(\n () => ({\n areaProps,\n barProps,\n gridProps,\n lineProps,\n referenceLineProps,\n xAxisProps,\n yAxisProps,\n }),\n [\n areaProps,\n barProps,\n gridProps,\n lineProps,\n referenceLineProps,\n xAxisProps,\n yAxisProps,\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 areaFillOpacity,\n dotFill,\n dotRadius,\n dotStroke,\n dotStrokeWidth,\n gridStroke,\n inactiveLineOpacity,\n lineColor,\n lineStroke,\n lineStrokeWidth,\n referenceLineColor,\n referenceLineStroke,\n referenceLineStrokeWidth,\n referenceLineTextColor,\n referenceLineTextFill,\n xAxisLineStroke,\n xAxisLineStrokeWidth,\n xAxisTextColor,\n xAxisTextFill,\n yAxisLineStroke,\n yAxisLineStrokeWidth,\n yAxisTextColor,\n yAxisTextFill,\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 \"--area-fill-opacity\": areaFillOpacity,\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-line-opacity\": inactiveLineOpacity,\n \"--line-color\": varAttr(lineColor, \"colors\"),\n \"--line-stroke\": varAttr(lineStroke, \"colors\"),\n \"--line-stroke-width\": lineStrokeWidth,\n \"--reference-line-color\": varAttr(referenceLineColor, \"colors\"),\n \"--reference-line-stroke\": varAttr(referenceLineStroke, \"colors\"),\n \"--reference-line-stroke-width\": referenceLineStrokeWidth,\n \"--reference-line-text-color\": varAttr(referenceLineTextColor, \"colors\"),\n \"--reference-line-text-fill\": varAttr(referenceLineTextFill, \"colors\"),\n \"--x-axis-line-stroke\": varAttr(xAxisLineStroke, \"colors\"),\n \"--x-axis-line-stroke-width\": xAxisLineStrokeWidth,\n \"--x-axis-text-color\": varAttr(xAxisTextColor, \"colors\"),\n \"--x-axis-text-fill\": varAttr(xAxisTextFill, \"colors\"),\n \"--y-axis-line-stroke\": varAttr(yAxisLineStroke, \"colors\"),\n \"--y-axis-line-stroke-width\": yAxisLineStrokeWidth,\n \"--y-axis-text-color\": varAttr(yAxisTextColor, \"colors\"),\n \"--y-axis-text-fill\": varAttr(yAxisTextFill, \"colors\"),\n ...rest,\n }),\n) as GenericsComponent<{\n <Y extends Dict>(props: CartesianChartProps<Y>): ReactElement\n}>\n\nexport type ChartXAxisTick =\n | ((props: XAxisTickContentProps) => ReactNode)\n | boolean\n | HTMLStyledProps<\"text\">\n | ReactElement\n\nexport interface ChartXAxisProps extends Merge<\n HTMLStyledProps<\"svg\">,\n Omit<UseChartXAxisProps, \"label\" | \"tick\" | \"tickLine\">\n> {\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?: ChartXAxisTick\n /**\n * The tick line to use for the axis.\n *\n * @default false\n */\n tickLine?: ChartTickLine\n}\n\nexport const ChartXAxis = withContext<\"svg\", ChartXAxisProps>((props) => {\n const { xAxisProps } = useComponentContext()\n const {\n children,\n label: labelProp = false,\n tick: tickProp = true,\n tickLine: tickLineProp = false,\n ...rest\n } = { ...xAxisProps, ...props }\n const system = useSystem()\n const { theme } = useTheme()\n const tickProps = useSlotComponentProps({}, \"xAxisTick\")\n const labelProps = useSlotComponentProps({}, \"xAxisLabel\")\n const tickLineProps = useSlotComponentProps({}, \"xAxisTickLine\")\n const tick = useMemo<UseChartXAxisProps[\"tick\"]>(() => {\n if (!tickProp) return tickProp\n\n const css = getCSS(system, theme)\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 }, [system, theme, tickProp, tickProps.className, tickProps.css])\n const tickLine = useMemo<UseChartXAxisProps[\"tickLine\"]>(() => {\n if (!tickLineProp) return tickLineProp\n\n const css = getCSS(system, theme)\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 }, [system, theme, tickLineProp, tickLineProps.className, tickLineProps.css])\n const label = useMemo<UseChartXAxisProps[\"label\"]>(() => {\n if (!labelProp) return labelProp\n\n const css = getCSS(system, theme)\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 }, [system, theme, labelProp, labelProps.className, labelProps.css])\n const { getRootProps, getXAxisProps } = useChartXAxis({\n label,\n tick,\n tickLine,\n ...rest,\n })\n\n return (\n <styled.svg asChild {...getRootProps()}>\n <XAxis {...getXAxisProps()}>{children}</XAxis>\n </styled.svg>\n )\n}, \"xAxis\")()\n\nexport type ChartYAxisTick =\n | ((props: YAxisTickContentProps) => ReactNode)\n | boolean\n | HTMLStyledProps<\"text\">\n | ReactElement\n\nexport interface ChartYAxisProps extends Merge<\n HTMLStyledProps<\"svg\">,\n Omit<UseChartYAxisProps, \"label\" | \"tick\" | \"tickLine\">\n> {\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?: ChartYAxisTick\n /**\n * The tick line to use for the axis.\n *\n * @default false\n */\n tickLine?: ChartTickLine\n}\n\nexport const ChartYAxis = withContext<\"svg\", ChartYAxisProps>((props) => {\n const { yAxisProps } = useComponentContext()\n const {\n children,\n label: labelProp = false,\n tick: tickProp = true,\n tickLine: tickLineProp = false,\n ...rest\n } = { ...yAxisProps, ...props }\n const system = useSystem()\n const { theme } = useTheme()\n const tickProps = useSlotComponentProps({}, \"yAxisTick\")\n const labelProps = useSlotComponentProps({}, \"yAxisLabel\")\n const tickLineProps = useSlotComponentProps({}, \"yAxisTickLine\")\n const tick = useMemo<UseChartYAxisProps[\"tick\"]>(() => {\n if (!tickProp) return tickProp\n\n const css = getCSS(system, theme)\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 }, [system, theme, tickProp, tickProps.className, tickProps.css])\n const tickLine = useMemo<UseChartXAxisProps[\"tickLine\"]>(() => {\n if (!tickLineProp) return tickLineProp\n\n const css = getCSS(system, theme)\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 }, [system, theme, tickLineProp, tickLineProps.className, tickLineProps.css])\n const label = useMemo<UseChartYAxisProps[\"label\"]>(() => {\n if (!labelProp) return labelProp\n\n const css = getCSS(system, theme)\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 }, [system, theme, labelProp, labelProps.className, labelProps.css])\n const { getRootProps, getYAxisProps } = useChartYAxis({\n label,\n tick,\n tickLine,\n ...rest,\n })\n\n return (\n <styled.svg asChild {...getRootProps()}>\n <YAxis {...getYAxisProps()}>{children}</YAxis>\n </styled.svg>\n )\n}, \"yAxis\")()\n\nexport interface ChartGridProps extends Merge<\n HTMLStyledProps<\"line\">,\n UseChartGridProps\n> {}\n\nexport const ChartGrid = withContext<\"line\", ChartGridProps>((props) => {\n const { gridProps } = useComponentContext()\n const { getGridProps, getRootProps } = useChartGrid({\n ...gridProps,\n ...props,\n })\n\n return (\n <styled.line asChild {...getRootProps()}>\n <CartesianGrid {...getGridProps()} />\n </styled.line>\n )\n}, \"grid\")()\n\nexport interface ChartLineProps<Y extends Dict = Dict> extends Merge<\n HTMLStyledProps<\"line\">,\n Omit<UseChartLineProps, \"activeDot\" | \"data\" | \"dataKey\" | \"dot\" | \"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 active dot to use for the line.\n *\n * @default true\n */\n activeDot?: ChartActiveDot\n /**\n * The data to use for the line.\n */\n data?: Y[]\n /**\n * The dot to use for the line.\n *\n * @default false\n */\n dot?: ChartDot\n /**\n * The label list to use for the line.\n *\n * @default false\n */\n label?: ChartLabelList\n}\n\nexport const ChartLine = withContext<\"line\", ChartLineProps>((props) => {\n const { lineProps } = useComponentContext()\n const {\n activeDot: activeDotProp = true,\n children,\n dataKey,\n dot: dotProp = false,\n label: labelProp = false,\n ...rest\n } = { ...lineProps, ...props }\n const system = useSystem()\n const { theme } = useTheme()\n const { varMap } = useChartComponentContext()\n const color = varMap[dataKey.toString()] ?? rest.stroke ?? rest.color\n const dotProps = useSlotComponentProps({}, \"dot\")\n const activeDotProps = useSlotComponentProps({}, \"activeDot\")\n const labelProps = useSlotComponentProps({}, \"labelList\")\n const dot = useMemo<UseChartLineProps[\"dot\"]>(() => {\n if (!dotProp) return dotProp\n\n const css = getCSS(system, theme)\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, system, theme, dotProps.className, dotProps.css, color])\n const activeDot = useMemo<UseChartLineProps[\"activeDot\"]>(() => {\n if (!activeDotProp) return activeDotProp\n\n const css = getCSS(system, theme)\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 }, [\n activeDotProp,\n system,\n theme,\n activeDotProps.className,\n activeDotProps.css,\n color,\n ])\n const label = useMemo<UseChartLineProps[\"label\"]>(() => {\n if (!labelProp) return labelProp\n\n const css = getCSS(system, theme)\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 }, [system, theme, labelProp, labelProps.className, labelProps.css])\n const { getLineProps, getRootProps } = useChartLine({\n activeDot,\n dataKey,\n dot,\n label,\n stroke: color,\n ...rest,\n })\n\n return (\n <styled.line asChild {...getRootProps()}>\n <Line {...getLineProps()}>{children}</Line>\n </styled.line>\n )\n}, \"line\")() as GenericsComponent<{\n <Y extends Dict>(props: ChartLineProps<Y>): ReactElement\n}>\n\nexport interface ChartAreaProps<Y extends Dict = Dict> extends Merge<\n HTMLStyledProps<\"line\">,\n Omit<UseChartAreaProps, \"activeDot\" | \"data\" | \"dataKey\" | \"dot\" | \"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 active dot to use for the line.\n *\n * @default true\n */\n activeDot?: ChartActiveDot\n /**\n * The data to use for the area.\n */\n data?: Y[]\n /**\n * The dot to use for the line.\n *\n * @default false\n */\n dot?: ChartDot\n /**\n * The label list to use for the line.\n *\n * @default false\n */\n label?: ChartLabelList\n /**\n * Determines whether the chart area should be represented with a gradient instead of the solid color.\n */\n withGradient?: boolean\n}\n\nexport const ChartArea = withContext<\"line\", ChartAreaProps>((props) => {\n const { areaProps } = useComponentContext()\n const {\n activeDot: activeDotProp = true,\n children,\n dataKey,\n dot: dotProp = false,\n label: labelProp = false,\n withGradient,\n ...rest\n } = { ...areaProps, ...props }\n const id = useId()\n const system = useSystem()\n const { theme } = useTheme()\n const { varMap } = useChartComponentContext()\n const color = varMap[dataKey.toString()] ?? rest.stroke ?? rest.color\n const dotProps = useSlotComponentProps({}, \"dot\")\n const activeDotProps = useSlotComponentProps({}, \"activeDot\")\n const labelProps = useSlotComponentProps({}, \"labelList\")\n const dot = useMemo<UseChartLineProps[\"dot\"]>(() => {\n if (!dotProp) return dotProp\n\n const css = getCSS(system, theme)\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({\n ...props,\n className: cx(className, props.className),\n })\n } else if (isValidElement(dotProp)) {\n return cloneElement<any>(dotProp, {\n className,\n })\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, system, theme, dotProps.className, dotProps.css, color])\n const activeDot = useMemo<UseChartLineProps[\"activeDot\"]>(() => {\n if (!activeDotProp) return activeDotProp\n\n const css = getCSS(system, theme)\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 }, [\n activeDotProp,\n system,\n theme,\n activeDotProps.className,\n activeDotProps.css,\n color,\n ])\n const label = useMemo<UseChartLineProps[\"label\"]>(() => {\n if (!labelProp) return labelProp\n\n const css = getCSS(system, theme)\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 }, [system, theme, labelProp, labelProps.className, labelProps.css])\n const { getAreaProps, getRootProps } = useChartArea({\n activeDot,\n dataKey,\n dot,\n fill: color ? `url(#${id})` : \"\",\n label,\n stroke: color,\n ...rest,\n })\n\n return (\n <>\n <styled.line asChild {...getRootProps()}>\n <Area {...getAreaProps()}>{children}</Area>\n </styled.line>\n\n <defs>\n {withGradient ? (\n <linearGradient id={id} x1=\"0\" x2=\"0\" y1=\"0\" y2=\"1\">\n <styled.stop asChild stopColor={color} stopOpacity={0.8}>\n <stop offset=\"5%\" />\n </styled.stop>\n <styled.stop asChild stopColor={color} stopOpacity={0.1}>\n <stop offset=\"95%\" />\n </styled.stop>\n </linearGradient>\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 </defs>\n </>\n )\n}, \"area\")() as GenericsComponent<{\n <Y extends Dict>(props: ChartAreaProps<Y>): ReactElement\n}>\n\nexport interface ChartBarProps<Y extends Dict = Dict> extends Merge<\n HTMLStyledProps<\"path\">,\n Omit<UseChartBarProps, \"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 label list to use for the bar.\n *\n * @default false\n */\n label?: ChartLabelList\n}\n\nexport const ChartBar = withContext<\"path\", ChartBarProps>((props) => {\n const { barProps } = useComponentContext()\n const {\n children,\n dataKey,\n label: labelProp = false,\n ...rest\n } = { ...barProps, ...props }\n const system = useSystem()\n const { theme } = useTheme()\n const { varMap } = useChartComponentContext()\n const color = varMap[dataKey.toString()]\n const labelProps = useSlotComponentProps({}, \"labelList\")\n const label = useMemo<UseChartBarProps[\"label\"]>(() => {\n if (!labelProp) return labelProp\n\n const css = getCSS(system, theme)\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 }, [system, theme, labelProp, labelProps.className, labelProps.css])\n const { getBarProps, getRootProps } = useChartBar({\n dataKey,\n fill: color,\n label,\n stroke: color,\n ...rest,\n })\n\n return (\n <styled.path asChild {...getRootProps()}>\n <Bar {...getBarProps()}>{children}</Bar>\n </styled.path>\n )\n}, \"bar\")() as GenericsComponent<{\n <Y extends Dict>(props: ChartBarProps<Y>): ReactElement\n}>\n\nexport interface ChartReferenceLineProps extends Omit<\n Merge<HTMLStyledProps<\"line\">, UseChartReferenceLineProps>,\n \"label\"\n> {\n /**\n * The label to use for the reference line.\n *\n * @default false\n */\n label?: ChartLabel\n}\n\nexport const ChartReferenceLine = withContext<\"line\", ChartReferenceLineProps>(\n (props) => {\n const { referenceLineProps } = useComponentContext()\n const { label: labelProp = false, ...rest } = {\n ...referenceLineProps,\n ...props,\n }\n const system = useSystem()\n const { theme } = useTheme()\n const labelProps = useSlotComponentProps({}, \"referenceLineLabel\")\n const label = useMemo<UseChartReferenceLineProps[\"label\"]>(() => {\n if (!labelProp) return labelProp\n\n const css = getCSS(system, theme)\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 }, [system, theme, labelProp, labelProps.className, labelProps.css])\n const { getReferenceLineProps, getRootProps } = useChartReferenceLine({\n label,\n ...rest,\n })\n\n return (\n <styled.line asChild {...getRootProps()}>\n <ReferenceLine {...getReferenceLineProps()} />\n </styled.line>\n )\n },\n \"referenceLine\",\n)()\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAwEA,MAAM,oBAAoBA,uCAAyB;AA2KnD,MAAM,EACJ,kBACA,cAAc,4BACd,qBACA,iBAAiB,+BACjB,aACA,cACA,0BACEC,6CAIF,mBAAmBC,kDAAoB;AAIzC,MAAa,iBAAiB,cACX,EACf,YAAY,gBACZ,WAAW,MACX,YAAY,MACZ,YAAY,OACZ,WACA,UACA,WACA,WACA,oBACA,YACA,YACA,GAAG,WACyB;CAC5B,MAAM,sCACE;EACJ;GACE,WAAW;GACX,UAAU,WAAW,2CAAC,cAAY,GAAG;GACtC;EACD;GACE,WAAW;GACX,UAAU,2CAAC,cAAW,MAAM,CAAC,YAAa;GAC3C;EACD;GACE,WAAW;GACX,UAAU,2CAAC,cAAW,MAAM,CAAC,YAAa;GAC3C;EACD,GAAG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AO,qDAAc,WAAWA,QAAM,UAAU;IAAE,CAAC;sCAC5C,UAAU,CAClC,gCAAyB,WAAW,EAAE,WAAW,CAAC;4DAChC,UAAU,EAAE;IAC9B,MAAM,CAAC,cAAc,iEACnB,WACA,kBACD;AAED,WAAO;KACL,GAAG;KACH,qDAAc,WAAW,aAAa,WAAW,IAAI,WAAW,CAAC;KAClE;SAED,QAAO;IAAE;IAAW,UAAU;IAAW;KAE1C;GAAC;GAAQ;GAAO;GAAW,WAAW;GAAW,WAAW;GAAI,CAAC;EAGlE,GAAG;EACJ,CAAC;AAEF,QACE,2CAACE,uBAAO;EAAK;EAAQ,GAAI,cAAc;YACrC,2CAACc,0BAAc,GAAI,uBAAuB,GAAI;GAClC;GAGlB,gBACD,EAAE"}
1
+ {"version":3,"file":"cartesian-chart.cjs","names":["createShouldForwardProp","createSlotComponent","cartesianChartStyle","Chart","varAttr","useSystem","useTheme","getCSS","props","useChartXAxis","styled","XAxis","useChartYAxis","YAxis","useChartGrid","CartesianGrid","useChartLine","Line","useChartArea","Area","useChartBar","Bar","useChartReferenceLine","ReferenceLine"],"sources":["../../../../src/components/chart/cartesian-chart.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactElement, ReactNode } from \"react\"\nimport type {\n ActiveDotProps,\n DotProps,\n LabelListProps,\n LabelProps,\n} from \"recharts\"\nimport type {\n XAxisTickContentProps,\n YAxisTickContentProps,\n} from \"recharts/types/util/types\"\nimport type {\n CSSObject,\n CSSProps,\n GenericsComponent,\n HTMLProps,\n HTMLStyledProps,\n ThemeProps,\n} from \"../../core\"\nimport type { Dict, Merge } from \"../../utils\"\nimport type { CartesianChartStyle } from \"./cartesian-chart.style\"\nimport type {\n ChartActiveDot,\n ChartDot,\n ChartLabel,\n ChartLabelList,\n ChartProps,\n ChartTickLine,\n} from \"./chart\"\nimport type {\n UseChartAreaProps,\n UseChartBarProps,\n UseChartGridProps,\n UseChartLineProps,\n UseChartReferenceLineProps,\n UseChartXAxisProps,\n UseChartYAxisProps,\n} from \"./use-cartesian-chart\"\nimport { cloneElement, isValidElement, useId, useMemo } from \"react\"\nimport {\n Area,\n Bar,\n CartesianGrid,\n Line,\n ReferenceLine,\n XAxis,\n YAxis,\n} from \"recharts\"\nimport {\n createShouldForwardProp,\n createSlotComponent,\n getCSS,\n styled,\n useSystem,\n useTheme,\n varAttr,\n} from \"../../core\"\nimport { cx, isFunction, isObject, splitObject } from \"../../utils\"\nimport { cartesianChartStyle } from \"./cartesian-chart.style\"\nimport { Chart } from \"./chart\"\nimport {\n useChartArea,\n useChartBar,\n useChartGrid,\n useChartLine,\n useChartReferenceLine,\n useChartXAxis,\n useChartYAxis,\n} from \"./use-cartesian-chart\"\n\nconst shouldForwardProp = createShouldForwardProp()\n\ninterface ComponentContext extends Pick<\n CartesianChartProps,\n | \"areaProps\"\n | \"barProps\"\n | \"gridProps\"\n | \"lineProps\"\n | \"referenceLineProps\"\n | \"xAxisProps\"\n | \"yAxisProps\"\n> {}\n\nexport interface CartesianChartProps\n extends ChartProps, ThemeProps<CartesianChartStyle> {\n /**\n * The fill color of the active dots.\n */\n activeDotFill?: CSSProps[\"fill\"]\n /**\n * The radius of the active dots.\n */\n activeDotRadius?: CSSProps[\"r\"]\n /**\n * The stroke color of the active dots.\n */\n activeDotStroke?: CSSProps[\"stroke\"]\n /**\n * The stroke width of the active dots.\n */\n activeDotStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The fill opacity of the area.\n */\n areaFillOpacity?: CSSProps[\"fillOpacity\"]\n /**\n * The fill color of the dots.\n */\n dotFill?: CSSProps[\"fill\"]\n /**\n * The radius of the dots.\n */\n dotRadius?: CSSProps[\"r\"]\n /**\n * The stroke color of the dots.\n */\n dotStroke?: CSSProps[\"stroke\"]\n /**\n * The stroke width of the dots.\n */\n dotStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The stroke color of the grid.\n */\n gridStroke?: CSSProps[\"stroke\"]\n /**\n * The opacity of the inactive lines.\n */\n inactiveLineOpacity?: CSSProps[\"opacity\"]\n /**\n * The color of the lines.\n */\n lineColor?: CSSProps[\"color\"]\n /**\n * The stroke color of the lines.\n */\n lineStroke?: CSSProps[\"stroke\"]\n /**\n * The stroke width of the lines.\n */\n lineStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The color of the reference lines.\n */\n referenceLineColor?: CSSProps[\"color\"]\n /**\n * The stroke color of the reference lines.\n */\n referenceLineStroke?: CSSProps[\"stroke\"]\n /**\n * The stroke width of the reference lines.\n */\n referenceLineStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The text color of the reference lines.\n */\n referenceLineTextColor?: CSSProps[\"color\"]\n /**\n * The text fill color of the reference lines.\n */\n referenceLineTextFill?: CSSProps[\"fill\"]\n /**\n * If `true`, grid is visible.\n *\n * @default true\n */\n withGrid?: boolean\n /**\n * If `true`, X axis is visible.\n *\n * @default true\n */\n withXAxis?: boolean\n /**\n * If `true`, Y axis is visible.\n *\n * @default false\n */\n withYAxis?: boolean\n /**\n * The stroke color of the x-axis lines.\n */\n xAxisLineStroke?: CSSProps[\"stroke\"]\n /**\n * The stroke width of the x-axis lines.\n */\n xAxisLineStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The text color of the x-axis.\n */\n xAxisTextColor?: CSSProps[\"color\"]\n /**\n * The text fill color of the x-axis.\n */\n xAxisTextFill?: CSSProps[\"fill\"]\n /**\n * The stroke color of the y-axis lines.\n */\n yAxisLineStroke?: CSSProps[\"stroke\"]\n /**\n * The stroke width of the y-axis lines.\n */\n yAxisLineStrokeWidth?: CSSProps[\"strokeWidth\"]\n /**\n * The text color of the y-axis.\n */\n yAxisTextColor?: CSSProps[\"color\"]\n /**\n * The text fill color of the y-axis.\n */\n yAxisTextFill?: CSSProps[\"fill\"]\n /**\n * Props for the area component.\n */\n areaProps?: Omit<ChartAreaProps, \"data\" | \"dataKey\">\n /**\n * Props for the bar component.\n */\n barProps?: Omit<ChartBarProps, \"dataKey\">\n /**\n * Props for the grid component.\n */\n gridProps?: ChartGridProps\n /**\n * Props for the line component.\n */\n lineProps?: Omit<ChartLineProps, \"data\" | \"dataKey\">\n /**\n * Props for the reference line component.\n */\n referenceLineProps?: ChartReferenceLineProps\n /**\n * Props for the x axis component.\n */\n xAxisProps?: ChartXAxisProps\n /**\n * Props for the y axis component.\n */\n yAxisProps?: ChartYAxisProps\n}\n\nconst {\n ComponentContext,\n PropsContext: CartesianChartPropsContext,\n useComponentContext,\n usePropsContext: useCartesianChartPropsContext,\n withContext,\n withProvider,\n useSlotComponentProps,\n} = createSlotComponent<\n CartesianChartProps,\n CartesianChartStyle,\n ComponentContext\n>(\"cartesian-chart\", cartesianChartStyle)\n\nexport { CartesianChartPropsContext, useCartesianChartPropsContext }\n\nexport const CartesianChart = withProvider(\n ({\n components: componentsProp,\n withGrid = true,\n withXAxis = true,\n withYAxis = false,\n areaProps,\n barProps,\n gridProps,\n lineProps,\n referenceLineProps,\n xAxisProps,\n yAxisProps,\n ...rest\n }: CartesianChartProps) => {\n const components = useMemo(\n () => [\n {\n component: ChartGrid,\n fallback: withGrid ? <ChartGrid /> : null,\n },\n {\n component: ChartXAxis,\n fallback: <ChartXAxis hide={!withXAxis} />,\n },\n {\n component: ChartYAxis,\n fallback: <ChartYAxis hide={!withYAxis} />,\n },\n ...componentsProp,\n ],\n [componentsProp, withGrid, withXAxis, withYAxis],\n )\n const componentContext = useMemo(\n () => ({\n areaProps,\n barProps,\n gridProps,\n lineProps,\n referenceLineProps,\n xAxisProps,\n yAxisProps,\n }),\n [\n areaProps,\n barProps,\n gridProps,\n lineProps,\n referenceLineProps,\n xAxisProps,\n yAxisProps,\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 areaFillOpacity,\n dotFill,\n dotRadius,\n dotStroke,\n dotStrokeWidth,\n gridStroke,\n inactiveLineOpacity,\n lineColor,\n lineStroke,\n lineStrokeWidth,\n referenceLineColor,\n referenceLineStroke,\n referenceLineStrokeWidth,\n referenceLineTextColor,\n referenceLineTextFill,\n xAxisLineStroke,\n xAxisLineStrokeWidth,\n xAxisTextColor,\n xAxisTextFill,\n yAxisLineStroke,\n yAxisLineStrokeWidth,\n yAxisTextColor,\n yAxisTextFill,\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 \"--area-fill-opacity\": areaFillOpacity,\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-line-opacity\": inactiveLineOpacity,\n \"--line-color\": varAttr(lineColor, \"colors\"),\n \"--line-stroke\": varAttr(lineStroke, \"colors\"),\n \"--line-stroke-width\": lineStrokeWidth,\n \"--reference-line-color\": varAttr(referenceLineColor, \"colors\"),\n \"--reference-line-stroke\": varAttr(referenceLineStroke, \"colors\"),\n \"--reference-line-stroke-width\": referenceLineStrokeWidth,\n \"--reference-line-text-color\": varAttr(referenceLineTextColor, \"colors\"),\n \"--reference-line-text-fill\": varAttr(referenceLineTextFill, \"colors\"),\n \"--x-axis-line-stroke\": varAttr(xAxisLineStroke, \"colors\"),\n \"--x-axis-line-stroke-width\": xAxisLineStrokeWidth,\n \"--x-axis-text-color\": varAttr(xAxisTextColor, \"colors\"),\n \"--x-axis-text-fill\": varAttr(xAxisTextFill, \"colors\"),\n \"--y-axis-line-stroke\": varAttr(yAxisLineStroke, \"colors\"),\n \"--y-axis-line-stroke-width\": yAxisLineStrokeWidth,\n \"--y-axis-text-color\": varAttr(yAxisTextColor, \"colors\"),\n \"--y-axis-text-fill\": varAttr(yAxisTextFill, \"colors\"),\n ...rest,\n }),\n)\n\nexport type ChartXAxisTick =\n | ((props: XAxisTickContentProps) => ReactNode)\n | boolean\n | HTMLStyledProps<\"text\">\n | ReactElement\n\nexport interface ChartXAxisProps extends Merge<\n HTMLStyledProps<\"svg\">,\n Omit<UseChartXAxisProps, \"label\" | \"tick\" | \"tickLine\">\n> {\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?: ChartXAxisTick\n /**\n * The tick line to use for the axis.\n *\n * @default false\n */\n tickLine?: ChartTickLine\n}\n\nexport const ChartXAxis = withContext<\"svg\", ChartXAxisProps>((props) => {\n const { xAxisProps } = useComponentContext()\n const {\n children,\n label: labelProp = false,\n tick: tickProp = true,\n tickLine: tickLineProp = false,\n ...rest\n } = { ...xAxisProps, ...props }\n const system = useSystem()\n const { theme } = useTheme()\n const tickProps = useSlotComponentProps({}, \"xAxisTick\")\n const labelProps = useSlotComponentProps({}, \"xAxisLabel\")\n const tickLineProps = useSlotComponentProps({}, \"xAxisTickLine\")\n const css = useMemo(() => getCSS(system, theme), [system, theme])\n const tick = useMemo<UseChartXAxisProps[\"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<UseChartXAxisProps[\"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 label = useMemo<UseChartXAxisProps[\"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 { getRootProps, getXAxisProps } = useChartXAxis({\n label,\n tick,\n tickLine,\n ...rest,\n })\n\n return (\n <styled.svg asChild {...getRootProps()}>\n <XAxis {...getXAxisProps()}>{children}</XAxis>\n </styled.svg>\n )\n}, \"xAxis\")()\n\nexport type ChartYAxisTick =\n | ((props: YAxisTickContentProps) => ReactNode)\n | boolean\n | HTMLStyledProps<\"text\">\n | ReactElement\n\nexport interface ChartYAxisProps extends Merge<\n HTMLStyledProps<\"svg\">,\n Omit<UseChartYAxisProps, \"label\" | \"tick\" | \"tickLine\">\n> {\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?: ChartYAxisTick\n /**\n * The tick line to use for the axis.\n *\n * @default false\n */\n tickLine?: ChartTickLine\n}\n\nexport const ChartYAxis = withContext<\"svg\", ChartYAxisProps>((props) => {\n const { yAxisProps } = useComponentContext()\n const {\n children,\n label: labelProp = false,\n tick: tickProp = true,\n tickLine: tickLineProp = false,\n ...rest\n } = { ...yAxisProps, ...props }\n const system = useSystem()\n const { theme } = useTheme()\n const tickProps = useSlotComponentProps({}, \"yAxisTick\")\n const labelProps = useSlotComponentProps({}, \"yAxisLabel\")\n const tickLineProps = useSlotComponentProps({}, \"yAxisTickLine\")\n const css = useMemo(() => getCSS(system, theme), [system, theme])\n const tick = useMemo<UseChartYAxisProps[\"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<UseChartXAxisProps[\"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 label = useMemo<UseChartYAxisProps[\"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 { getRootProps, getYAxisProps } = useChartYAxis({\n label,\n tick,\n tickLine,\n ...rest,\n })\n\n return (\n <styled.svg asChild {...getRootProps()}>\n <YAxis {...getYAxisProps()}>{children}</YAxis>\n </styled.svg>\n )\n}, \"yAxis\")()\n\nexport interface ChartGridProps extends Merge<\n HTMLStyledProps<\"line\">,\n UseChartGridProps\n> {}\n\nexport const ChartGrid = withContext<\"line\", ChartGridProps>((props) => {\n const { gridProps } = useComponentContext()\n const { getGridProps, getRootProps } = useChartGrid({\n ...gridProps,\n ...props,\n })\n\n return (\n <styled.line asChild {...getRootProps()}>\n <CartesianGrid {...getGridProps()} />\n </styled.line>\n )\n}, \"grid\")()\n\nexport interface ChartLineProps<Y extends Dict = Dict> extends Merge<\n HTMLStyledProps<\"line\">,\n Omit<\n UseChartLineProps,\n \"activeDot\" | \"data\" | \"dataKey\" | \"dot\" | \"label\" | \"stroke\"\n >\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 data to use for the line.\n */\n data?: Y[]\n /**\n * The dot to use for the line.\n *\n * @default false\n */\n dot?: ChartDot\n /**\n * The label list to use for the line.\n *\n * @default false\n */\n label?: ChartLabelList\n}\n\nexport const ChartLine = withContext<\"line\", ChartLineProps>((props) => {\n const { lineProps } = 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 } = { ...lineProps, ...props }\n const system = useSystem()\n const { theme } = useTheme()\n const color = strokeProp ?? 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<UseChartLineProps[\"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<UseChartLineProps[\"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<UseChartLineProps[\"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 { getLineProps, getRootProps } = useChartLine({\n activeDot,\n dataKey,\n dot,\n label,\n stroke,\n ...rest,\n })\n\n return (\n <styled.line asChild {...getRootProps()}>\n <Line {...getLineProps()}>{children}</Line>\n </styled.line>\n )\n}, \"line\")() as GenericsComponent<{\n <Y extends Dict>(props: ChartLineProps<Y>): ReactElement\n}>\n\nexport interface ChartAreaProps<Y extends Dict = Dict> extends Merge<\n HTMLStyledProps<\"line\">,\n Omit<\n UseChartAreaProps,\n \"activeDot\" | \"data\" | \"dataKey\" | \"dot\" | \"label\" | \"stroke\"\n >\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 data to use for the area.\n */\n data?: Y[]\n /**\n * The dot to use for the line.\n *\n * @default false\n */\n dot?: ChartDot\n /**\n * The label list to use for the line.\n *\n * @default false\n */\n label?: ChartLabelList\n /**\n * Determines whether the chart area should be represented with a gradient instead of the solid color.\n */\n withGradient?: boolean\n}\n\nexport const ChartArea = withContext<\"line\", ChartAreaProps>((props) => {\n const { areaProps } = useComponentContext()\n const {\n activeDot: activeDotProp = true,\n children,\n dataKey,\n dot: dotProp = false,\n label: labelProp = false,\n stroke: strokeProp,\n withGradient,\n ...rest\n } = { ...areaProps, ...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<UseChartLineProps[\"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({\n ...props,\n className: cx(className, props.className),\n })\n } else if (isValidElement(dotProp)) {\n return cloneElement<any>(dotProp, {\n className,\n })\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<UseChartLineProps[\"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<UseChartLineProps[\"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 { getAreaProps, getRootProps } = useChartArea({\n activeDot,\n dataKey,\n dot,\n fill: color ? `url(#${id})` : \"\",\n label,\n stroke,\n ...rest,\n })\n\n return (\n <>\n <styled.line asChild {...getRootProps()}>\n <Area {...getAreaProps()}>{children}</Area>\n </styled.line>\n\n <defs>\n {withGradient ? (\n <linearGradient id={id} x1=\"0\" x2=\"0\" y1=\"0\" y2=\"1\">\n <styled.stop asChild stopColor={color} stopOpacity={0.8}>\n <stop offset=\"5%\" />\n </styled.stop>\n <styled.stop asChild stopColor={color} stopOpacity={0.1}>\n <stop offset=\"95%\" />\n </styled.stop>\n </linearGradient>\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 </defs>\n </>\n )\n}, \"area\")() as GenericsComponent<{\n <Y extends Dict>(props: ChartAreaProps<Y>): ReactElement\n}>\n\nexport interface ChartBarProps<Y extends Dict = Dict> extends Merge<\n HTMLStyledProps<\"path\">,\n Omit<UseChartBarProps, \"dataKey\" | \"fill\" | \"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 label list to use for the bar.\n *\n * @default false\n */\n label?: ChartLabelList\n}\n\nexport const ChartBar = withContext<\"path\", ChartBarProps>((props) => {\n const { barProps } = useComponentContext()\n const {\n children,\n dataKey,\n fill: fillProp,\n label: labelProp = false,\n ...rest\n } = { ...barProps, ...props }\n const system = useSystem()\n const { theme } = useTheme()\n const color = fillProp ?? rest.color\n const fill = JSON.stringify(color)\n const labelProps = useSlotComponentProps({}, \"labelList\")\n const css = useMemo(() => getCSS(system, theme), [system, theme])\n const label = useMemo<UseChartBarProps[\"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 { getBarProps, getRootProps } = useChartBar({\n dataKey,\n fill,\n label,\n ...rest,\n })\n\n return (\n <styled.path asChild {...getRootProps()}>\n <Bar {...getBarProps()}>{children}</Bar>\n </styled.path>\n )\n}, \"bar\")() as GenericsComponent<{\n <Y extends Dict>(props: ChartBarProps<Y>): ReactElement\n}>\n\nexport interface ChartReferenceLineProps extends Omit<\n Merge<HTMLStyledProps<\"line\">, UseChartReferenceLineProps>,\n \"label\"\n> {\n /**\n * The label to use for the reference line.\n *\n * @default false\n */\n label?: ChartLabel\n}\n\nexport const ChartReferenceLine = withContext<\"line\", ChartReferenceLineProps>(\n (props) => {\n const { referenceLineProps } = useComponentContext()\n const { label: labelProp = false, ...rest } = {\n ...referenceLineProps,\n ...props,\n }\n const system = useSystem()\n const { theme } = useTheme()\n const labelProps = useSlotComponentProps({}, \"referenceLineLabel\")\n const css = useMemo(() => getCSS(system, theme), [system, theme])\n const label = useMemo<UseChartReferenceLineProps[\"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 { getReferenceLineProps, getRootProps } = useChartReferenceLine({\n label,\n ...rest,\n })\n\n return (\n <styled.line asChild {...getRootProps()}>\n <ReferenceLine {...getReferenceLineProps()} />\n </styled.line>\n )\n },\n \"referenceLine\",\n)()\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAwEA,M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