@acronis-platform/ui-react 2.0.0 → 4.0.0

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 (243) hide show
  1. package/dist/components/ui/accordion-container/accordion-container.js +144 -0
  2. package/dist/components/ui/accordion-container/accordion-container.js.map +1 -0
  3. package/dist/components/ui/app-shell-chat/app-shell-chat.js.map +1 -1
  4. package/dist/components/ui/area-chart/area-chart.js +141 -139
  5. package/dist/components/ui/area-chart/area-chart.js.map +1 -1
  6. package/dist/components/ui/avatar/avatar.js +33 -22
  7. package/dist/components/ui/avatar/avatar.js.map +1 -1
  8. package/dist/components/ui/bar-chart/bar-chart.js +295 -293
  9. package/dist/components/ui/bar-chart/bar-chart.js.map +1 -1
  10. package/dist/components/ui/card/card.js +150 -74
  11. package/dist/components/ui/card/card.js.map +1 -1
  12. package/dist/components/ui/card-section/card-section.js +111 -0
  13. package/dist/components/ui/card-section/card-section.js.map +1 -0
  14. package/dist/components/ui/category-bar/category-bar.js +109 -93
  15. package/dist/components/ui/category-bar/category-bar.js.map +1 -1
  16. package/dist/components/ui/chart/chart-palette.js +113 -0
  17. package/dist/components/ui/chart/chart-palette.js.map +1 -0
  18. package/dist/components/ui/chart/chart.js +176 -129
  19. package/dist/components/ui/chart/chart.js.map +1 -1
  20. package/dist/components/ui/chart-state/chart-state-illustrations.js +310 -0
  21. package/dist/components/ui/chart-state/chart-state-illustrations.js.map +1 -0
  22. package/dist/components/ui/chart-state/chart-state.js +48 -34
  23. package/dist/components/ui/chart-state/chart-state.js.map +1 -1
  24. package/dist/components/ui/chart-widget/chart-widget.js +87 -0
  25. package/dist/components/ui/chart-widget/chart-widget.js.map +1 -0
  26. package/dist/components/ui/composed-chart/composed-chart.js +117 -115
  27. package/dist/components/ui/composed-chart/composed-chart.js.map +1 -1
  28. package/dist/components/ui/confidence-cone/confidence-cone.js +166 -158
  29. package/dist/components/ui/confidence-cone/confidence-cone.js.map +1 -1
  30. package/dist/components/ui/data-table/data-table.js +4 -2
  31. package/dist/components/ui/data-table/data-table.js.map +1 -1
  32. package/dist/components/ui/empty-overlay/empty-overlay.js +49 -0
  33. package/dist/components/ui/empty-overlay/empty-overlay.js.map +1 -0
  34. package/dist/components/ui/funnel-chart/funnel-chart.js +162 -161
  35. package/dist/components/ui/funnel-chart/funnel-chart.js.map +1 -1
  36. package/dist/components/ui/histogram/histogram.js +94 -92
  37. package/dist/components/ui/histogram/histogram.js.map +1 -1
  38. package/dist/components/ui/input/input.js.map +1 -1
  39. package/dist/components/ui/label/label.js +2 -9
  40. package/dist/components/ui/label/label.js.map +1 -1
  41. package/dist/components/ui/line-chart/line-chart.js +143 -141
  42. package/dist/components/ui/line-chart/line-chart.js.map +1 -1
  43. package/dist/components/ui/metric/metric.js +74 -185
  44. package/dist/components/ui/metric/metric.js.map +1 -1
  45. package/dist/components/ui/page-content/page-content.js.map +1 -1
  46. package/dist/components/ui/pie-chart/pie-chart.js +201 -195
  47. package/dist/components/ui/pie-chart/pie-chart.js.map +1 -1
  48. package/dist/components/ui/radar-chart/radar-chart.js +133 -131
  49. package/dist/components/ui/radar-chart/radar-chart.js.map +1 -1
  50. package/dist/components/ui/radial-bar-chart/radial-bar-chart.js +297 -265
  51. package/dist/components/ui/radial-bar-chart/radial-bar-chart.js.map +1 -1
  52. package/dist/components/ui/sankey-chart/sankey-chart.js +123 -101
  53. package/dist/components/ui/sankey-chart/sankey-chart.js.map +1 -1
  54. package/dist/components/ui/scatter-chart/scatter-chart.js +76 -74
  55. package/dist/components/ui/scatter-chart/scatter-chart.js.map +1 -1
  56. package/dist/components/ui/section/section.js +157 -31
  57. package/dist/components/ui/section/section.js.map +1 -1
  58. package/dist/components/ui/stepper/stepper.js +24 -24
  59. package/dist/components/ui/stepper/stepper.js.map +1 -1
  60. package/dist/components/ui/stepper-item/stepper-item.js +43 -24
  61. package/dist/components/ui/stepper-item/stepper-item.js.map +1 -1
  62. package/dist/components/ui/table/table.js +27 -27
  63. package/dist/components/ui/table/table.js.map +1 -1
  64. package/dist/components/ui/treemap/treemap.js +133 -124
  65. package/dist/components/ui/treemap/treemap.js.map +1 -1
  66. package/dist/components/ui/trend-indicator/trend-indicator.js +34 -69
  67. package/dist/components/ui/trend-indicator/trend-indicator.js.map +1 -1
  68. package/dist/components/ui/wizard/wizard.js +59 -0
  69. package/dist/components/ui/wizard/wizard.js.map +1 -0
  70. package/dist/hooks/use-wizard.js +75 -0
  71. package/dist/hooks/use-wizard.js.map +1 -0
  72. package/dist/index.js +540 -525
  73. package/dist/index.js.map +1 -1
  74. package/dist/llms/accordion-container.md +181 -0
  75. package/dist/llms/accordion.md +124 -0
  76. package/dist/llms/alert.md +225 -0
  77. package/dist/llms/app-shell-chat.md +415 -0
  78. package/dist/llms/area-chart.md +355 -0
  79. package/dist/llms/avatar.md +208 -0
  80. package/dist/llms/bar-chart.md +406 -0
  81. package/dist/llms/breadcrumb.md +326 -0
  82. package/dist/llms/button-group.md +298 -0
  83. package/dist/llms/button-icon-input.md +142 -0
  84. package/dist/llms/button-icon-menu.md +209 -0
  85. package/dist/llms/button-icon.md +128 -0
  86. package/dist/llms/button-menu.md +172 -0
  87. package/dist/llms/button.md +185 -0
  88. package/dist/llms/calendar-panel.md +733 -0
  89. package/dist/llms/calendar.md +188 -0
  90. package/dist/llms/card-filter.md +214 -0
  91. package/dist/llms/card-section.md +293 -0
  92. package/dist/llms/card.md +447 -0
  93. package/dist/llms/carousel-dialog.md +156 -0
  94. package/dist/llms/category-bar.md +193 -0
  95. package/dist/llms/chart-state.md +190 -0
  96. package/dist/llms/chart-widget.md +209 -0
  97. package/dist/llms/chart.md +182 -0
  98. package/dist/llms/checkbox.md +257 -0
  99. package/dist/llms/chip.md +195 -0
  100. package/dist/llms/combobox.md +164 -0
  101. package/dist/llms/composed-chart.md +508 -0
  102. package/dist/llms/confidence-cone.md +277 -0
  103. package/dist/llms/data-table.md +474 -0
  104. package/dist/llms/date-range-picker.md +272 -0
  105. package/dist/llms/description-list.md +131 -0
  106. package/dist/llms/dialog-footer-carousel.md +147 -0
  107. package/dist/llms/dialog-footer-default.md +142 -0
  108. package/dist/llms/dialog-root.md +246 -0
  109. package/dist/llms/dialog-welcome.md +223 -0
  110. package/dist/llms/dialog.md +403 -0
  111. package/dist/llms/dropdown-menu.md +193 -0
  112. package/dist/llms/empty-overlay.md +146 -0
  113. package/dist/llms/empty.md +156 -0
  114. package/dist/llms/field.md +185 -0
  115. package/dist/llms/filter-cards.md +157 -0
  116. package/dist/llms/filter-chips.md +323 -0
  117. package/dist/llms/filter-search.md +512 -0
  118. package/dist/llms/form.md +154 -0
  119. package/dist/llms/funnel-chart.md +333 -0
  120. package/dist/llms/grid.md +80 -0
  121. package/dist/llms/histogram.md +190 -0
  122. package/dist/llms/input-date-picker.md +203 -0
  123. package/dist/llms/input-otp.md +173 -0
  124. package/dist/llms/input-password.md +197 -0
  125. package/dist/llms/input-search.md +170 -0
  126. package/dist/llms/input-select.md +278 -0
  127. package/dist/llms/input-text-area.md +271 -0
  128. package/dist/llms/input-text.md +192 -0
  129. package/dist/llms/line-chart.md +369 -0
  130. package/dist/llms/link.md +209 -0
  131. package/dist/llms/loading.md +130 -0
  132. package/dist/llms/meter.md +177 -0
  133. package/dist/llms/metric.md +204 -0
  134. package/dist/llms/number-field.md +122 -0
  135. package/dist/llms/page-content.md +69 -0
  136. package/dist/llms/page-header.md +182 -0
  137. package/dist/llms/pagination.md +133 -0
  138. package/dist/llms/pie-chart.md +307 -0
  139. package/dist/llms/popover.md +252 -0
  140. package/dist/llms/progress-circle.md +126 -0
  141. package/dist/llms/progress.md +111 -0
  142. package/dist/llms/radar-chart.md +316 -0
  143. package/dist/llms/radial-bar-chart.md +319 -0
  144. package/dist/llms/radio.md +255 -0
  145. package/dist/llms/resizable.md +195 -0
  146. package/dist/llms/sankey-chart.md +208 -0
  147. package/dist/llms/scatter-chart.md +239 -0
  148. package/dist/llms/scroll-area.md +183 -0
  149. package/dist/llms/section.md +401 -0
  150. package/dist/llms/select.md +210 -0
  151. package/dist/llms/separator.md +87 -0
  152. package/dist/llms/sheet.md +202 -0
  153. package/dist/llms/sidebar-primary.md +360 -0
  154. package/dist/llms/sidebar-secondary.md +417 -0
  155. package/dist/llms/skeleton.md +81 -0
  156. package/dist/llms/slider.md +97 -0
  157. package/dist/llms/spinner.md +100 -0
  158. package/dist/llms/stack.md +80 -0
  159. package/dist/llms/stepper-item.md +309 -0
  160. package/dist/llms/stepper.md +251 -0
  161. package/dist/llms/switch.md +140 -0
  162. package/dist/llms/table.md +436 -0
  163. package/dist/llms/tabs.md +197 -0
  164. package/dist/llms/tag.md +139 -0
  165. package/dist/llms/timeline.md +361 -0
  166. package/dist/llms/timer.md +259 -0
  167. package/dist/llms/toast.md +241 -0
  168. package/dist/llms/toggle-group.md +121 -0
  169. package/dist/llms/toolbar.md +453 -0
  170. package/dist/llms/tooltip.md +164 -0
  171. package/dist/llms/treemap.md +254 -0
  172. package/dist/llms/trend-indicator.md +132 -0
  173. package/dist/llms/widget-placeholder.md +169 -0
  174. package/dist/llms/wizard.md +412 -0
  175. package/dist/llms.txt +142 -0
  176. package/dist/react.js +540 -525
  177. package/dist/react.js.map +1 -1
  178. package/dist/src/components/ui/accordion-container/accordion-container.d.ts +44 -0
  179. package/dist/src/components/ui/accordion-container/index.d.ts +1 -0
  180. package/dist/src/components/ui/area-chart/area-chart.d.ts +9 -4
  181. package/dist/src/components/ui/avatar/avatar.d.ts +27 -8
  182. package/dist/src/components/ui/bar-chart/bar-chart.d.ts +9 -4
  183. package/dist/src/components/ui/button/button.d.ts +1 -1
  184. package/dist/src/components/ui/card/card.d.ts +69 -8
  185. package/dist/src/components/ui/card/index.d.ts +1 -1
  186. package/dist/src/components/ui/card-section/card-section.d.ts +50 -0
  187. package/dist/src/components/ui/card-section/index.d.ts +1 -0
  188. package/dist/src/components/ui/category-bar/category-bar.d.ts +10 -4
  189. package/dist/src/components/ui/chart/__stories__/palette-control.d.ts +48 -0
  190. package/dist/src/components/ui/chart/__tests__/chart-palette.test.d.ts +1 -0
  191. package/dist/src/components/ui/chart/chart-palette.d.ts +128 -0
  192. package/dist/src/components/ui/chart/chart.d.ts +66 -15
  193. package/dist/src/components/ui/chart/index.d.ts +4 -2
  194. package/dist/src/components/ui/chart-state/chart-state-illustrations.d.ts +6 -0
  195. package/dist/src/components/ui/chart-state/chart-state.d.ts +13 -2
  196. package/dist/src/components/ui/chart-state/index.d.ts +1 -0
  197. package/dist/src/components/ui/chart-widget/chart-widget.d.ts +64 -0
  198. package/dist/src/components/ui/chart-widget/index.d.ts +1 -0
  199. package/dist/src/components/ui/composed-chart/composed-chart.d.ts +12 -7
  200. package/dist/src/components/ui/confidence-cone/confidence-cone.d.ts +10 -5
  201. package/dist/src/components/ui/dialog/dialog.d.ts +1 -1
  202. package/dist/src/components/ui/empty-overlay/empty-overlay.d.ts +20 -0
  203. package/dist/src/components/ui/empty-overlay/index.d.ts +2 -0
  204. package/dist/src/components/ui/funnel-chart/funnel-chart.d.ts +11 -5
  205. package/dist/src/components/ui/grid/grid.d.ts +1 -1
  206. package/dist/src/components/ui/histogram/histogram.d.ts +10 -4
  207. package/dist/src/components/ui/label/index.d.ts +1 -1
  208. package/dist/src/components/ui/label/label.d.ts +1 -5
  209. package/dist/src/components/ui/line-chart/line-chart.d.ts +9 -4
  210. package/dist/src/components/ui/metric/metric.d.ts +13 -14
  211. package/dist/src/components/ui/pie-chart/pie-chart.d.ts +17 -8
  212. package/dist/src/components/ui/radar-chart/radar-chart.d.ts +10 -5
  213. package/dist/src/components/ui/radial-bar-chart/radial-bar-chart.d.ts +17 -6
  214. package/dist/src/components/ui/sankey-chart/sankey-chart.d.ts +10 -5
  215. package/dist/src/components/ui/scatter-chart/scatter-chart.d.ts +10 -5
  216. package/dist/src/components/ui/section/index.d.ts +1 -1
  217. package/dist/src/components/ui/section/section.d.ts +75 -6
  218. package/dist/src/components/ui/sheet/sheet.d.ts +1 -1
  219. package/dist/src/components/ui/stack/stack.d.ts +1 -1
  220. package/dist/src/components/ui/stepper-item/stepper-item.d.ts +6 -5
  221. package/dist/src/components/ui/tag/tag.d.ts +1 -1
  222. package/dist/src/components/ui/treemap/treemap.d.ts +11 -5
  223. package/dist/src/components/ui/trend-indicator/trend-indicator.d.ts +3 -7
  224. package/dist/src/components/ui/wizard/index.d.ts +1 -0
  225. package/dist/src/components/ui/wizard/wizard.d.ts +6 -0
  226. package/dist/src/hooks/index.d.ts +1 -0
  227. package/dist/src/hooks/use-wizard.d.ts +80 -0
  228. package/dist/src/index.d.ts +5 -3
  229. package/dist/ui-react.css +1 -1
  230. package/package.json +12 -6
  231. package/dist/components/ui/app-shell/app-shell.js +0 -75
  232. package/dist/components/ui/app-shell/app-shell.js.map +0 -1
  233. package/dist/components/ui/auth-layout/auth-layout.js +0 -56
  234. package/dist/components/ui/auth-layout/auth-layout.js.map +0 -1
  235. package/dist/components/ui/collapsible/collapsible.js +0 -22
  236. package/dist/components/ui/collapsible/collapsible.js.map +0 -1
  237. package/dist/src/components/ui/app-shell/app-shell.d.ts +0 -8
  238. package/dist/src/components/ui/app-shell/index.d.ts +0 -1
  239. package/dist/src/components/ui/auth-layout/auth-layout.d.ts +0 -6
  240. package/dist/src/components/ui/auth-layout/index.d.ts +0 -1
  241. package/dist/src/components/ui/collapsible/collapsible.d.ts +0 -5
  242. package/dist/src/components/ui/collapsible/index.d.ts +0 -1
  243. package/dist/src/components/ui/label/label.docs.d.ts +0 -10
@@ -1,11 +1,11 @@
1
1
  import { jsx as o, jsxs as T, Fragment as pe } from "react/jsx-runtime";
2
- import * as kt from "react";
3
- import { cva as gt } from "../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
4
- import { ComposedChart as At, CartesianGrid as Ct, Brush as bt, XAxis as B, YAxis as z, LabelList as Rt, Bar as Lt, Area as Dt, Line as It, ReferenceArea as xt, ReferenceLine as Et } from "recharts";
5
- import { cn as _t } from "../../../lib/utils.js";
6
- import { resolveAnimation as St, resolveCategoryRange as he, resolveChartReferenceValue as Nt, CHART_LABEL_MARGIN as Tt, resolveBrushProps as Bt, resolveRotatedTickAnchor as ve, resolveCartesianLabelPosition as zt, CHART_LABEL_FONT_SIZE as Ot, resolveLabelFillClass as wt, toLabelFormatter as Ft, resolveReferenceLineProps as Vt, resolveXAxisTitle as ue, resolveXAxisHeight as $t, resolveAxisDomain as me, resolveYAxisTitle as ke } from "../chart/chart-format.js";
7
- import { ChartLegendContent as ge, ChartContainer as Mt, ChartTooltip as Ht, ChartTooltipContent as Wt, ChartLegend as Kt } from "../chart/chart.js";
8
- const Xt = gt("", {
2
+ import * as gt from "react";
3
+ import { cva as At } from "../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
4
+ import { ComposedChart as Ct, CartesianGrid as bt, Brush as Rt, XAxis as B, YAxis as z, LabelList as Lt, Bar as Dt, Area as It, Line as xt, ReferenceArea as Et, ReferenceLine as _t } from "recharts";
5
+ import { cn as St } from "../../../lib/utils.js";
6
+ import { resolveAnimation as Nt, resolveCategoryRange as he, resolveChartReferenceValue as Tt, CHART_LABEL_MARGIN as Bt, resolveBrushProps as zt, resolveRotatedTickAnchor as ve, resolveCartesianLabelPosition as Ot, CHART_LABEL_FONT_SIZE as wt, resolveLabelFillClass as Ft, toLabelFormatter as Vt, resolveReferenceLineProps as $t, resolveXAxisTitle as ue, resolveXAxisHeight as Mt, resolveAxisDomain as me, resolveYAxisTitle as ke } from "../chart/chart-format.js";
7
+ import { ChartLegendContent as ge, ChartContainer as Ht, ChartTooltip as Wt, ChartTooltipContent as Kt, ChartLegend as Xt } from "../chart/chart.js";
8
+ const Pt = At("", {
9
9
  variants: {
10
10
  orientation: {
11
11
  vertical: "",
@@ -15,10 +15,11 @@ const Xt = gt("", {
15
15
  defaultVariants: {
16
16
  orientation: "vertical"
17
17
  }
18
- }), Pt = 100, Gt = 50, O = "secondary", Zt = { top: 5, right: 5, bottom: 5, left: 5 }, jt = 0.85, Ut = { top: 16 }, qt = kt.forwardRef(
18
+ }), Gt = 100, Zt = 50, O = "secondary", jt = { top: 5, right: 5, bottom: 5, left: 5 }, Ut = 0.85, qt = { top: 16 }, Jt = gt.forwardRef(
19
19
  ({
20
20
  className: Ae,
21
21
  config: Ce,
22
+ palette: be,
22
23
  data: y,
23
24
  series: c,
24
25
  xKey: d,
@@ -27,26 +28,26 @@ const Xt = gt("", {
27
28
  orientation: g = "vertical",
28
29
  xAxisLabel: w,
29
30
  yAxisLabel: A,
30
- xUnit: be,
31
- yUnit: Re,
31
+ xUnit: Re,
32
+ yUnit: Le,
32
33
  curve: F = "monotone",
33
- barRadius: Le = 4,
34
- barSize: De,
35
- barGap: Ie,
36
- barCategoryGap: xe,
37
- showBackground: Ee = !1,
38
- backgroundFill: _e = "var(--ui-background-surface-secondary)",
39
- showActiveBar: Se = !1,
40
- fillOpacity: Ne = 0.3,
34
+ barRadius: De = 4,
35
+ barSize: Ie,
36
+ barGap: xe,
37
+ barCategoryGap: Ee,
38
+ showBackground: _e = !1,
39
+ backgroundFill: Se = "var(--ui-background-surface-secondary)",
40
+ showActiveBar: Ne = !1,
41
+ fillOpacity: Te = 0.3,
41
42
  strokeWidth: V,
42
- showDots: Te = !1,
43
- showActiveDots: Be,
44
- connectNulls: ze = !1,
43
+ showDots: Be = !1,
44
+ showActiveDots: ze,
45
+ connectNulls: Oe = !1,
45
46
  margin: C,
46
- showGrid: Oe = !0,
47
- showTooltip: we = !0,
48
- tooltipCursor: Fe = !0,
49
- showLegend: Ve = !0,
47
+ showGrid: we = !0,
48
+ showTooltip: Fe = !0,
49
+ tooltipCursor: Ve = !0,
50
+ showLegend: $e = !0,
50
51
  legendPosition: b = "bottom",
51
52
  showXAxis: $ = !0,
52
53
  showYAxis: M = !0,
@@ -55,67 +56,67 @@ const Xt = gt("", {
55
56
  xAxisAngle: f,
56
57
  xAxisInterval: H,
57
58
  yAxisTickCount: W,
58
- yAxisDomain: $e,
59
+ yAxisDomain: Me,
59
60
  yAxisOrientation: D,
60
61
  showSecondaryYAxis: K = !0,
61
62
  secondaryYAxisLabel: I,
62
63
  secondaryYUnit: X,
63
64
  secondaryYTickFormatter: P,
64
65
  secondaryYAxisTickCount: G,
65
- secondaryYAxisDomain: Me,
66
- gridDashed: He,
67
- gridHorizontal: We,
68
- gridVertical: Ke,
69
- tooltipContent: Xe,
70
- animate: Pe,
71
- animationDuration: Ge,
72
- animationBegin: Ze,
73
- animationEasing: je,
66
+ secondaryYAxisDomain: He,
67
+ gridDashed: We,
68
+ gridHorizontal: Ke,
69
+ gridVertical: Xe,
70
+ tooltipContent: Pe,
71
+ animate: Ge,
72
+ animationDuration: Ze,
73
+ animationBegin: je,
74
+ animationEasing: Ue,
74
75
  showLabels: Z = !1,
75
- labelPosition: Ue,
76
- labelFormatter: qe,
77
- showBrush: Je = !1,
78
- brushHeight: Qe,
79
- brushAriaLabel: Ye,
80
- ...et
81
- }, tt) => {
82
- const x = St({
83
- animate: Pe,
84
- animationDuration: Ge,
85
- animationBegin: Ze,
86
- animationEasing: je
87
- }), r = g === "horizontal", j = ue(w), u = c.some((e) => e.yAxis === "secondary"), ot = c.some((e) => e.yAxis !== "secondary"), m = u && !ot, U = D ?? "left", q = U === "left" ? "right" : "left", J = ke(
76
+ labelPosition: qe,
77
+ labelFormatter: Je,
78
+ showBrush: Qe = !1,
79
+ brushHeight: Ye,
80
+ brushAriaLabel: et,
81
+ ...tt
82
+ }, ot) => {
83
+ const x = Nt({
84
+ animate: Ge,
85
+ animationDuration: Ze,
86
+ animationBegin: je,
87
+ animationEasing: Ue
88
+ }), r = g === "horizontal", j = ue(w), u = c.some((e) => e.yAxis === "secondary"), at = c.some((e) => e.yAxis !== "secondary"), m = u && !at, U = D ?? "left", q = U === "left" ? "right" : "left", J = ke(
88
89
  A,
89
90
  r ? "left" : U
90
- ), at = ke(
91
+ ), rt = ke(
91
92
  I,
92
93
  q
93
- ), rt = ue(
94
+ ), it = ue(
94
95
  I,
95
96
  "insideTop"
96
- ), Q = me($e), Y = me(Me), E = (e) => {
97
+ ), Q = me(Me), Y = me(He), E = (e) => {
97
98
  const t = e === "secondary" ? O : void 0;
98
99
  return r ? { xAxisId: t } : { yAxisId: t };
99
- }, ee = m ? E("secondary") : {}, te = $t(w, f), it = h ? Array.isArray(h) ? h : [h] : [], nt = (v ? Array.isArray(v) ? v : [v] : []).map((e) => ({ area: e, range: he(e, y, d) })).filter(
100
+ }, ee = m ? E("secondary") : {}, te = Mt(w, f), nt = h ? Array.isArray(h) ? h : [h] : [], st = (v ? Array.isArray(v) ? v : [v] : []).map((e) => ({ area: e, range: he(e, y, d) })).filter(
100
101
  (e) => e.range !== void 0
101
- ), oe = m ? "secondary" : "primary", ae = (e) => e.yAxis ?? "primary", st = new Map(c.map((e) => [e.key, ae(e)])), lt = (e) => c.filter((t) => ae(t) === e).map((t) => t.key), re = new Set(
102
+ ), oe = m ? "secondary" : "primary", ae = (e) => e.yAxis ?? "primary", lt = new Map(c.map((e) => [e.key, ae(e)])), ct = (e) => c.filter((t) => ae(t) === e).map((t) => t.key), re = new Set(
102
103
  c.filter((e) => e.legendType === "none").map((e) => e.key)
103
104
  ), p = (e) => {
104
105
  var t;
105
106
  return ((t = y[e]) == null ? void 0 : t[d]) ?? void 0;
106
- }, ie = it.map((e) => {
107
+ }, ie = nt.map((e) => {
107
108
  const t = e.category !== void 0 ? he(
108
109
  { from: e.category, to: e.category },
109
110
  y,
110
111
  d
111
- ) : void 0, a = e.yAxis ?? (typeof e.average == "string" ? st.get(e.average) ?? oe : oe), i = Nt(e, y, lt(a)), n = t ? p(t[0]) : void 0;
112
+ ) : void 0, a = e.yAxis ?? (typeof e.average == "string" ? lt.get(e.average) ?? oe : oe), i = Tt(e, y, ct(a)), n = t ? p(t[0]) : void 0;
112
113
  return { line: e, lineAxis: a, position: i !== void 0 ? r ? { x: i } : { y: i } : n !== void 0 ? r ? { y: n } : { x: n } : void 0, isVerticalRule: i !== void 0 === r };
113
114
  }).filter(
114
115
  (e) => e.position !== void 0
115
- ), ne = Z ? Tt : void 0, se = ie.some(
116
+ ), ne = Z ? Bt : void 0, se = ie.some(
116
117
  (e) => e.line.label && e.isVerticalRule
117
- ) ? Ut : void 0, ct = C || ne || se ? {
118
- ...C ? Zt : {},
118
+ ) ? qt : void 0, dt = C || ne || se ? {
119
+ ...C ? jt : {},
119
120
  ...se,
120
121
  ...ne,
121
122
  ...C
@@ -123,7 +124,7 @@ const Xt = gt("", {
123
124
  c.forEach((e, t) => {
124
125
  e.stackId && e.type !== "line" && le.set(`${e.type}-${e.stackId}`, t);
125
126
  });
126
- const dt = () => /* @__PURE__ */ T(pe, { children: [
127
+ const yt = () => /* @__PURE__ */ T(pe, { children: [
127
128
  /* @__PURE__ */ o(
128
129
  B,
129
130
  {
@@ -131,7 +132,7 @@ const Xt = gt("", {
131
132
  hide: !$ || m,
132
133
  tickLine: !1,
133
134
  axisLine: !1,
134
- unit: be,
135
+ unit: Re,
135
136
  tickFormatter: R,
136
137
  angle: f,
137
138
  interval: H,
@@ -168,10 +169,10 @@ const Xt = gt("", {
168
169
  tickFormatter: P,
169
170
  tickCount: G,
170
171
  domain: Y,
171
- label: rt
172
+ label: it
172
173
  }
173
174
  )
174
- ] }), yt = () => /* @__PURE__ */ T(pe, { children: [
175
+ ] }), ft = () => /* @__PURE__ */ T(pe, { children: [
175
176
  /* @__PURE__ */ o(
176
177
  B,
177
178
  {
@@ -197,7 +198,7 @@ const Xt = gt("", {
197
198
  ...D ? { orientation: D } : {},
198
199
  tickLine: !1,
199
200
  axisLine: !1,
200
- unit: Re,
201
+ unit: Le,
201
202
  tickFormatter: L,
202
203
  tickCount: W,
203
204
  domain: Q,
@@ -219,10 +220,10 @@ const Xt = gt("", {
219
220
  tickCount: G,
220
221
  domain: Y,
221
222
  width: I ? 72 : void 0,
222
- label: at
223
+ label: rt
223
224
  }
224
225
  )
225
- ] }), ft = re.size > 0 ? (e) => {
226
+ ] }), pt = re.size > 0 ? (e) => {
226
227
  var t;
227
228
  return /* @__PURE__ */ o(
228
229
  ge,
@@ -233,27 +234,27 @@ const Xt = gt("", {
233
234
  )
234
235
  }
235
236
  );
236
- } : /* @__PURE__ */ o(ge, { verticalAlign: b }), pt = (e, t) => {
237
- const a = e.color ?? `var(--color-${e.key})`, i = Pt + t, n = E(e.yAxis), s = e.stackId && e.type !== "line" ? `${e.type}-${e.stackId}` : void 0, ce = e.fillOpacity ?? Ne, de = e.connectNulls ?? ze, ye = e.showDots ?? Te, k = e.showActiveDots ?? Be, _ = e.legendType ? { legendType: e.legendType } : {}, fe = zt({
238
- labelPosition: Ue,
237
+ } : /* @__PURE__ */ o(ge, { verticalAlign: b }), ht = (e, t) => {
238
+ const a = e.color ?? `var(--color-${e.key})`, i = Gt + t, n = E(e.yAxis), s = e.stackId && e.type !== "line" ? `${e.type}-${e.stackId}` : void 0, ce = e.fillOpacity ?? Te, de = e.connectNulls ?? Oe, ye = e.showDots ?? Be, k = e.showActiveDots ?? ze, _ = e.legendType ? { legendType: e.legendType } : {}, fe = Ot({
239
+ labelPosition: qe,
239
240
  isStacked: s !== void 0,
240
241
  growingEnd: r ? "right" : "top"
241
242
  }), S = Z ? /* @__PURE__ */ o(
242
- Rt,
243
+ Lt,
243
244
  {
244
245
  dataKey: e.key,
245
246
  position: fe,
246
- formatter: Ft(qe),
247
- className: wt(fe, {
247
+ formatter: Vt(Je),
248
+ className: Ft(fe, {
248
249
  translucentSeries: e.type === "area"
249
250
  }),
250
- fontSize: Ot
251
+ fontSize: wt
251
252
  }
252
253
  ) : null;
253
254
  if (e.type === "bar") {
254
- const l = e.barRadius ?? Le, N = s === void 0 || le.get(s) === t, ut = e.showBackground ?? Ee, mt = e.showActiveBar ?? Se;
255
+ const l = e.barRadius ?? De, N = s === void 0 || le.get(s) === t, mt = e.showBackground ?? _e, kt = e.showActiveBar ?? Ne;
255
256
  return /* @__PURE__ */ o(
256
- Lt,
257
+ Dt,
257
258
  {
258
259
  dataKey: e.key,
259
260
  ...n,
@@ -268,8 +269,8 @@ const Xt = gt("", {
268
269
  strokeDasharray: e.strokeDasharray,
269
270
  ...e.strokeWidth !== void 0 ? { strokeWidth: e.strokeWidth } : {}
270
271
  } : {},
271
- ...ut ? { background: { fill: _e } } : {},
272
- ...mt ? { activeBar: { fillOpacity: jt } } : {},
272
+ ...mt ? { background: { fill: Se } } : {},
273
+ ...kt ? { activeBar: { fillOpacity: Ut } } : {},
273
274
  ..._,
274
275
  ...x,
275
276
  children: S
@@ -280,7 +281,7 @@ const Xt = gt("", {
280
281
  if (e.type === "area") {
281
282
  const l = e.strokeWidth ?? V, N = l !== void 0 ? { strokeWidth: l } : {};
282
283
  return /* @__PURE__ */ o(
283
- Dt,
284
+ It,
284
285
  {
285
286
  type: e.curve ?? F,
286
287
  dataKey: e.key,
@@ -303,7 +304,7 @@ const Xt = gt("", {
303
304
  );
304
305
  }
305
306
  return /* @__PURE__ */ o(
306
- It,
307
+ xt,
307
308
  {
308
309
  type: e.curve ?? F,
309
310
  dataKey: e.key,
@@ -321,16 +322,16 @@ const Xt = gt("", {
321
322
  },
322
323
  e.key
323
324
  );
324
- }, ht = ({ area: e, range: t }, a) => {
325
+ }, vt = ({ area: e, range: t }, a) => {
325
326
  const [i, n] = t;
326
327
  return /* @__PURE__ */ o(
327
- xt,
328
+ Et,
328
329
  {
329
330
  ...ee,
330
331
  ...r ? { y1: p(i), y2: p(n) } : { x1: p(i), x2: p(n) },
331
332
  fill: "var(--ui-background-surface-secondary)",
332
333
  fillOpacity: 0.6,
333
- zIndex: Gt,
334
+ zIndex: Zt,
334
335
  ifOverflow: "extendDomain",
335
336
  label: e.label ? {
336
337
  value: e.label,
@@ -341,17 +342,17 @@ const Xt = gt("", {
341
342
  },
342
343
  `${e.label ?? "area"}-${a}`
343
344
  );
344
- }, vt = ({
345
+ }, ut = ({
345
346
  line: e,
346
347
  lineAxis: t,
347
348
  position: a,
348
349
  isVerticalRule: i
349
350
  }, n) => /* @__PURE__ */ o(
350
- Et,
351
+ _t,
351
352
  {
352
353
  ...t === "secondary" && u ? E("secondary") : {},
353
354
  ...a,
354
- ...Vt(
355
+ ...$t(
355
356
  e.label,
356
357
  e.labelPosition ?? (i ? "top" : "insideTopRight")
357
358
  )
@@ -361,58 +362,59 @@ const Xt = gt("", {
361
362
  return /* @__PURE__ */ o(
362
363
  "div",
363
364
  {
364
- ref: tt,
365
+ ref: ot,
365
366
  "data-orientation": g,
366
- className: _t(Xt({ orientation: g }), Ae),
367
- ...et,
367
+ className: St(Pt({ orientation: g }), Ae),
368
+ ...tt,
368
369
  children: /* @__PURE__ */ o(
369
- Mt,
370
+ Ht,
370
371
  {
371
372
  config: Ce,
373
+ palette: be,
372
374
  className: "size-full [&_.recharts-label]:fill-foreground",
373
375
  children: /* @__PURE__ */ T(
374
- At,
376
+ Ct,
375
377
  {
376
378
  data: y,
377
379
  layout: r ? "vertical" : "horizontal",
378
- barSize: De,
379
- barGap: Ie,
380
- barCategoryGap: xe,
381
- margin: ct,
380
+ barSize: Ie,
381
+ barGap: xe,
382
+ barCategoryGap: Ee,
383
+ margin: dt,
382
384
  children: [
383
- Oe && /* @__PURE__ */ o(
384
- Ct,
385
+ we && /* @__PURE__ */ o(
386
+ bt,
385
387
  {
386
388
  ...ee,
387
- horizontal: We ?? !r,
388
- vertical: Ke ?? r,
389
- strokeDasharray: He ? "3 3" : void 0
389
+ horizontal: Ke ?? !r,
390
+ vertical: Xe ?? r,
391
+ strokeDasharray: We ? "3 3" : void 0
390
392
  }
391
393
  ),
392
- r ? dt() : yt(),
393
- we && /* @__PURE__ */ o(
394
- Ht,
394
+ r ? yt() : ft(),
395
+ Fe && /* @__PURE__ */ o(
396
+ Wt,
395
397
  {
396
- ...Fe ? {} : { cursor: !1 },
397
- content: Xe ?? /* @__PURE__ */ o(Wt, {})
398
+ ...Ve ? {} : { cursor: !1 },
399
+ content: Pe ?? /* @__PURE__ */ o(Kt, {})
398
400
  }
399
401
  ),
400
- Ve && /* @__PURE__ */ o(
401
- Kt,
402
+ $e && /* @__PURE__ */ o(
403
+ Xt,
402
404
  {
403
405
  verticalAlign: b,
404
- content: ft
406
+ content: pt
405
407
  }
406
408
  ),
407
- c.map(pt),
408
- nt.map(ht),
409
- ie.map(vt),
410
- Je && /* @__PURE__ */ o(
411
- bt,
409
+ c.map(ht),
410
+ st.map(vt),
411
+ ie.map(ut),
412
+ Qe && /* @__PURE__ */ o(
413
+ Rt,
412
414
  {
413
415
  dataKey: d,
414
416
  tickFormatter: r ? L : R,
415
- ...Bt({ brushHeight: Qe, brushAriaLabel: Ye })
417
+ ...zt({ brushHeight: Ye, brushAriaLabel: et })
416
418
  }
417
419
  )
418
420
  ]
@@ -424,9 +426,9 @@ const Xt = gt("", {
424
426
  );
425
427
  }
426
428
  );
427
- qt.displayName = "ComposedChart";
429
+ Jt.displayName = "ComposedChart";
428
430
  export {
429
- qt as ComposedChart,
430
- Xt as composedChartVariants
431
+ Jt as ComposedChart,
432
+ Pt as composedChartVariants
431
433
  };
432
434
  //# sourceMappingURL=composed-chart.js.map