@brightlocal/ui-components 3.2.0 → 3.3.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.
- package/AI_USAGE.md +10 -0
- package/README.md +3 -1
- package/component-meta.json +1271 -428
- package/deprecations.json +44 -0
- package/dist/_virtual/_rolldown/runtime.cjs +1 -0
- package/dist/accordion.cjs +1 -1
- package/dist/accordion.js +73 -102
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.d.ts +6 -4
- package/dist/alert-dialog.d.ts.map +1 -1
- package/dist/alert-dialog.js +85 -133
- package/dist/alert.cjs +1 -1
- package/dist/alert.d.ts +4 -4
- package/dist/alert.d.ts.map +1 -1
- package/dist/alert.js +106 -168
- package/dist/aspect-ratio.cjs +1 -1
- package/dist/aspect-ratio.js +13 -16
- package/dist/avatar.cjs +1 -1
- package/dist/avatar.js +30 -45
- package/dist/badge.cjs +1 -1
- package/dist/badge.d.ts +23 -1
- package/dist/badge.d.ts.map +1 -1
- package/dist/badge.js +90 -91
- package/dist/banner.cjs +1 -1
- package/dist/banner.js +102 -148
- package/dist/blocks/empty-state.cjs +1 -1
- package/dist/blocks/empty-state.d.ts +20 -3
- package/dist/blocks/empty-state.d.ts.map +1 -1
- package/dist/blocks/empty-state.js +73 -140
- package/dist/blocks/input-list.cjs +2 -2
- package/dist/blocks/input-list.d.ts +2 -2
- package/dist/blocks/input-list.d.ts.map +1 -1
- package/dist/blocks/input-list.js +136 -176
- package/dist/blocks/progress-state.cjs +1 -1
- package/dist/blocks/progress-state.js +223 -347
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts +11 -6
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +763 -1092
- package/dist/brand-illustration-motif.cjs +1 -1
- package/dist/brand-illustration-motif.js +40 -61
- package/dist/breadcrumb.cjs +1 -1
- package/dist/breadcrumb.js +62 -102
- package/dist/button-group.cjs +1 -1
- package/dist/button-group.js +23 -31
- package/dist/button.cjs +1 -1
- package/dist/button.d.ts +4 -2
- package/dist/button.d.ts.map +1 -1
- package/dist/button.js +149 -189
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.d.ts +87 -3
- package/dist/calendar.d.ts.map +1 -1
- package/dist/calendar.js +116 -173
- package/dist/callout.cjs +1 -1
- package/dist/callout.js +73 -96
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts +10 -4
- package/dist/card.d.ts.map +1 -1
- package/dist/card.js +233 -316
- package/dist/carousel.cjs +1 -1
- package/dist/carousel.d.ts +3 -3
- package/dist/carousel.d.ts.map +1 -1
- package/dist/carousel.js +174 -268
- package/dist/centred-layout.cjs +1 -1
- package/dist/centred-layout.js +27 -48
- package/dist/chart-empty.cjs +1 -1
- package/dist/chart-empty.js +18 -27
- package/dist/chart.cjs +7 -7
- package/dist/chart.d.ts +23 -13
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.js +445 -651
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +36 -69
- package/dist/chip.cjs +1 -1
- package/dist/chip.js +116 -173
- package/dist/collapsible.cjs +1 -1
- package/dist/collapsible.d.ts.map +1 -1
- package/dist/collapsible.js +35 -41
- package/dist/combobox.cjs +3 -3
- package/dist/combobox.d.ts +14 -4
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +439 -638
- package/dist/command.cjs +1 -1
- package/dist/command.d.ts.map +1 -1
- package/dist/command.js +273 -420
- package/dist/context-menu.cjs +1 -1
- package/dist/context-menu.d.ts +5 -5
- package/dist/context-menu.d.ts.map +1 -1
- package/dist/context-menu.js +121 -191
- package/dist/data-table.cjs +1 -1
- package/dist/data-table.d.ts +280 -129
- package/dist/data-table.d.ts.map +1 -1
- package/dist/data-table.js +687 -948
- package/dist/date-picker.cjs +1 -1
- package/dist/date-picker.d.ts +15 -4
- package/dist/date-picker.d.ts.map +1 -1
- package/dist/date-picker.js +156 -231
- package/dist/delta.cjs +1 -0
- package/dist/delta.d.ts +79 -0
- package/dist/delta.d.ts.map +1 -0
- package/dist/delta.js +62 -0
- package/dist/description.cjs +1 -1
- package/dist/description.js +11 -20
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.d.ts +1 -1
- package/dist/dialog.d.ts.map +1 -1
- package/dist/dialog.js +76 -116
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.d.ts +11 -11
- package/dist/drawer.d.ts.map +1 -1
- package/dist/drawer.js +76 -134
- package/dist/dropdown-menu.cjs +1 -1
- package/dist/dropdown-menu.d.ts +6 -6
- package/dist/dropdown-menu.d.ts.map +1 -1
- package/dist/dropdown-menu.js +179 -300
- package/dist/field.cjs +1 -1
- package/dist/field.d.ts +9 -9
- package/dist/field.d.ts.map +1 -1
- package/dist/field.js +166 -286
- package/dist/global-layout.cjs +1 -1
- package/dist/global-layout.js +203 -342
- package/dist/grid.cjs +1 -1
- package/dist/grid.js +16 -29
- package/dist/header.cjs +1 -1
- package/dist/header.js +21 -38
- package/dist/height-transition.cjs +1 -1
- package/dist/height-transition.js +38 -55
- package/dist/hooks/use-breakpoint.cjs +1 -1
- package/dist/hooks/use-breakpoint.js +9 -9
- package/dist/hooks/use-debounce.cjs +1 -1
- package/dist/hooks/use-debounce.js +12 -11
- package/dist/hooks/use-delayed-pending.cjs +1 -1
- package/dist/hooks/use-delayed-pending.js +8 -9
- package/dist/hooks/use-filter-search-params.cjs +1 -0
- package/dist/hooks/use-filter-search-params.d.ts +93 -0
- package/dist/hooks/use-filter-search-params.d.ts.map +1 -0
- package/dist/hooks/use-filter-search-params.js +122 -0
- package/dist/hooks/use-mobile.cjs +1 -1
- package/dist/hooks/use-mobile.js +6 -6
- package/dist/hooks/use-overlay-pointer-lock.cjs +1 -1
- package/dist/hooks/use-overlay-pointer-lock.js +8 -9
- package/dist/hooks/use-prefers-reduced-motion.cjs +1 -1
- package/dist/hooks/use-prefers-reduced-motion.js +5 -8
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.d.ts +1 -1
- package/dist/hover-card.d.ts.map +1 -1
- package/dist/hover-card.js +30 -62
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +630 -608
- package/dist/info-tooltip.cjs +1 -1
- package/dist/info-tooltip.js +22 -36
- package/dist/input-chip.cjs +1 -1
- package/dist/input-chip.d.ts +32 -3
- package/dist/input-chip.d.ts.map +1 -1
- package/dist/input-chip.js +181 -230
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.js +174 -221
- package/dist/input-otp.cjs +1 -1
- package/dist/input-otp.d.ts +3 -3
- package/dist/input-otp.d.ts.map +1 -1
- package/dist/input-otp.js +102 -146
- package/dist/input-password.cjs +1 -1
- package/dist/input-password.d.ts +12 -16
- package/dist/input-password.d.ts.map +1 -1
- package/dist/input-password.js +139 -171
- package/dist/input.cjs +1 -1
- package/dist/input.d.ts.map +1 -1
- package/dist/input.js +51 -73
- package/dist/label.cjs +1 -1
- package/dist/label.js +20 -38
- package/dist/lib/block-illustration.cjs +1 -1
- package/dist/lib/block-illustration.d.ts +1 -1
- package/dist/lib/block-illustration.d.ts.map +1 -1
- package/dist/lib/block-illustration.js +16 -18
- package/dist/lib/compose-event-handlers.cjs +1 -0
- package/dist/lib/compose-event-handlers.d.ts +9 -0
- package/dist/lib/compose-event-handlers.d.ts.map +1 -0
- package/dist/lib/compose-event-handlers.js +8 -0
- package/dist/lib/download-file.cjs +1 -0
- package/dist/lib/download-file.d.ts +14 -0
- package/dist/lib/download-file.d.ts.map +1 -0
- package/dist/lib/download-file.js +40 -0
- package/dist/lib/empty-canvas.cjs +1 -1
- package/dist/lib/empty-canvas.js +28 -56
- package/dist/lib/empty-chip.cjs +1 -1
- package/dist/lib/empty-chip.d.ts +14 -3
- package/dist/lib/empty-chip.d.ts.map +1 -1
- package/dist/lib/empty-chip.js +15 -11
- package/dist/lib/field-aria.cjs +1 -0
- package/dist/lib/field-aria.d.ts +34 -0
- package/dist/lib/field-aria.d.ts.map +1 -0
- package/dist/lib/field-aria.js +52 -0
- package/dist/lib/image-file-info.cjs +1 -0
- package/dist/lib/image-file-info.d.ts +25 -0
- package/dist/lib/image-file-info.d.ts.map +1 -0
- package/dist/lib/image-file-info.js +67 -0
- package/dist/lib/media-viewer-content.cjs +1 -0
- package/dist/lib/media-viewer-content.d.ts +102 -0
- package/dist/lib/media-viewer-content.d.ts.map +1 -0
- package/dist/lib/media-viewer-content.js +650 -0
- package/dist/lib/media-viewer-internal.cjs +1 -0
- package/dist/lib/media-viewer-internal.d.ts +98 -0
- package/dist/lib/media-viewer-internal.d.ts.map +1 -0
- package/dist/lib/media-viewer-internal.js +61 -0
- package/dist/lib/media-viewer-motion.cjs +1 -0
- package/dist/lib/media-viewer-motion.d.ts +40 -0
- package/dist/lib/media-viewer-motion.d.ts.map +1 -0
- package/dist/lib/media-viewer-motion.js +37 -0
- package/dist/lib/motion.cjs +1 -1
- package/dist/lib/motion.d.ts +8 -0
- package/dist/lib/motion.d.ts.map +1 -1
- package/dist/lib/motion.js +11 -10
- package/dist/lib/optical-center.cjs +1 -1
- package/dist/lib/optical-center.d.ts +1 -1
- package/dist/lib/optical-center.d.ts.map +1 -1
- package/dist/lib/optical-center.js +12 -5
- package/dist/lib/spring-settle.cjs +1 -1
- package/dist/lib/spring-settle.js +1 -1
- package/dist/lib/table-internal.cjs +1 -0
- package/dist/lib/table-internal.d.ts +62 -0
- package/dist/lib/table-internal.d.ts.map +1 -0
- package/dist/lib/table-internal.js +18 -0
- package/dist/lib/use-controllable.cjs +1 -0
- package/dist/lib/use-controllable.d.ts +12 -0
- package/dist/lib/use-controllable.d.ts.map +1 -0
- package/dist/lib/use-controllable.js +15 -0
- package/dist/lib/use-dev-warning.cjs +1 -1
- package/dist/lib/utils.cjs +1 -1
- package/dist/lib/utils.js +26 -33
- package/dist/link.cjs +1 -1
- package/dist/link.d.ts +1 -1
- package/dist/link.js +78 -124
- package/dist/list.cjs +1 -1
- package/dist/list.d.ts +8 -0
- package/dist/list.d.ts.map +1 -1
- package/dist/list.js +94 -156
- package/dist/loading.cjs +1 -1
- package/dist/loading.js +124 -151
- package/dist/logo-mark.cjs +1 -0
- package/dist/logo-mark.d.ts +79 -0
- package/dist/logo-mark.d.ts.map +1 -0
- package/dist/logo-mark.js +219 -0
- package/dist/logo.cjs +1 -1
- package/dist/logo.d.ts +1 -1
- package/dist/logo.d.ts.map +1 -1
- package/dist/logo.js +51 -87
- package/dist/map.cjs +1 -1
- package/dist/map.d.ts.map +1 -1
- package/dist/map.js +390 -586
- package/dist/media-empty.cjs +1 -1
- package/dist/media-empty.js +27 -42
- package/dist/media-viewer.cjs +1 -0
- package/dist/media-viewer.d.ts +224 -0
- package/dist/media-viewer.d.ts.map +1 -0
- package/dist/media-viewer.js +295 -0
- package/dist/menubar.cjs +1 -1
- package/dist/menubar.d.ts +14 -14
- package/dist/menubar.d.ts.map +1 -1
- package/dist/menubar.js +130 -267
- package/dist/multi-select-filter.cjs +1 -1
- package/dist/multi-select-filter.d.ts +9 -1
- package/dist/multi-select-filter.d.ts.map +1 -1
- package/dist/multi-select-filter.js +357 -446
- package/dist/navigation-menu.cjs +1 -1
- package/dist/navigation-menu.js +108 -172
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.d.ts +36 -12
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.js +208 -281
- package/dist/popover.cjs +1 -1
- package/dist/popover.d.ts +1 -1
- package/dist/popover.d.ts.map +1 -1
- package/dist/popover.js +34 -45
- package/dist/progress.cjs +1 -1
- package/dist/progress.d.ts +17 -2
- package/dist/progress.d.ts.map +1 -1
- package/dist/progress.js +116 -162
- package/dist/radio-group.cjs +1 -1
- package/dist/radio-group.js +90 -146
- package/dist/rating.cjs +1 -1
- package/dist/rating.d.ts +80 -13
- package/dist/rating.d.ts.map +1 -1
- package/dist/rating.js +70 -65
- package/dist/relative-date.cjs +1 -1
- package/dist/relative-date.d.ts.map +1 -1
- package/dist/relative-date.js +73 -89
- package/dist/resizable.cjs +1 -1
- package/dist/resizable.d.ts +39 -23
- package/dist/resizable.d.ts.map +1 -1
- package/dist/resizable.js +42 -44
- package/dist/result-count.cjs +1 -0
- package/dist/result-count.d.ts +110 -0
- package/dist/result-count.d.ts.map +1 -0
- package/dist/result-count.js +49 -0
- package/dist/route-progress.cjs +1 -1
- package/dist/route-progress.js +58 -102
- package/dist/scroll-area.cjs +1 -1
- package/dist/scroll-area.d.ts +9 -1
- package/dist/scroll-area.d.ts.map +1 -1
- package/dist/scroll-area.js +44 -79
- package/dist/select.cjs +2 -2
- package/dist/select.d.ts +10 -10
- package/dist/select.d.ts.map +1 -1
- package/dist/select.js +118 -238
- package/dist/separator.cjs +1 -1
- package/dist/separator.js +90 -78
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts +8 -5
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.js +250 -317
- package/dist/single-select-filter.cjs +1 -1
- package/dist/single-select-filter.d.ts +32 -0
- package/dist/single-select-filter.d.ts.map +1 -1
- package/dist/single-select-filter.js +201 -203
- package/dist/skeleton.cjs +1 -1
- package/dist/skeleton.js +24 -38
- package/dist/slider.cjs +1 -1
- package/dist/slider.js +51 -81
- package/dist/sonner.cjs +1 -1
- package/dist/sonner.d.ts +1 -1
- package/dist/sonner.d.ts.map +1 -1
- package/dist/sonner.js +101 -125
- package/dist/spinner.cjs +1 -1
- package/dist/spinner.js +22 -31
- package/dist/split-layout.cjs +1 -1
- package/dist/split-layout.js +52 -101
- package/dist/status.cjs +1 -0
- package/dist/status.d.ts +51 -0
- package/dist/status.d.ts.map +1 -0
- package/dist/status.js +60 -0
- package/dist/stepper.cjs +1 -1
- package/dist/stepper.js +184 -316
- package/dist/switch.cjs +1 -1
- package/dist/switch.js +17 -32
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts +103 -30
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +170 -209
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.d.ts.map +1 -1
- package/dist/tabs.js +102 -147
- package/dist/text-reveal-motion.cjs +1 -1
- package/dist/text-reveal-motion.js +307 -363
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.d.ts.map +1 -1
- package/dist/textarea.js +22 -35
- package/dist/toggle-group.cjs +1 -1
- package/dist/toggle-group.js +43 -62
- package/dist/toggle.cjs +1 -1
- package/dist/toggle.js +34 -46
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.d.ts +2 -2
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.js +157 -249
- package/dist/typography-heading.cjs +1 -1
- package/dist/typography-heading.js +25 -61
- package/dist/typography-text.cjs +1 -1
- package/dist/typography-text.js +27 -57
- package/dist/typography.cjs +1 -1
- package/dist/typography.js +132 -340
- package/package.json +46 -46
- package/src/blocks/empty-state.tsx +34 -18
- package/src/blocks/sidebar.tsx +86 -31
- package/src/components/accordion.tsx +1 -1
- package/src/components/alert-dialog.tsx +4 -2
- package/src/components/badge.tsx +127 -15
- package/src/components/breadcrumb.tsx +1 -1
- package/src/components/button.tsx +8 -6
- package/src/components/calendar.tsx +155 -9
- package/src/components/card.tsx +63 -10
- package/src/components/carousel.tsx +4 -1
- package/src/components/chart.tsx +151 -17
- package/src/components/checkbox.tsx +1 -1
- package/src/components/collapsible.tsx +4 -1
- package/src/components/combobox.tsx +40 -7
- package/src/components/command.tsx +9 -10
- package/src/components/context-menu.tsx +4 -4
- package/src/components/data-table.tsx +619 -237
- package/src/components/date-picker.tsx +31 -4
- package/src/components/delta.tsx +217 -0
- package/src/components/drawer.tsx +5 -5
- package/src/components/dropdown-menu.tsx +4 -4
- package/src/components/field.tsx +36 -15
- package/src/components/global-layout.tsx +1 -1
- package/src/components/input-chip.tsx +51 -7
- package/src/components/input-group.tsx +1 -1
- package/src/components/input-password.tsx +15 -19
- package/src/components/input.tsx +10 -1
- package/src/components/list.tsx +14 -2
- package/src/components/logo-mark.tsx +345 -0
- package/src/components/map.tsx +18 -20
- package/src/components/media-viewer.tsx +908 -0
- package/src/components/multi-select-filter.tsx +255 -121
- package/src/components/navigation-menu.tsx +2 -2
- package/src/components/pagination.tsx +86 -26
- package/src/components/progress.tsx +91 -23
- package/src/components/rating.tsx +200 -74
- package/src/components/relative-date.tsx +19 -11
- package/src/components/resizable.tsx +86 -33
- package/src/components/result-count.tsx +253 -0
- package/src/components/scroll-area.tsx +31 -5
- package/src/components/select.tsx +2 -2
- package/src/components/sheet.tsx +14 -4
- package/src/components/single-select-filter.tsx +136 -41
- package/src/components/slider.tsx +2 -2
- package/src/components/status.tsx +162 -0
- package/src/components/switch.tsx +1 -1
- package/src/components/table.tsx +278 -106
- package/src/components/tabs.tsx +1 -0
- package/src/components/textarea.tsx +20 -2
- package/src/components/toggle.tsx +2 -2
- package/src/components/tooltip.tsx +11 -20
- package/src/hooks/use-filter-search-params.ts +302 -0
- package/src/index.ts +6 -0
- package/src/lib/compose-event-handlers.ts +14 -0
- package/src/lib/download-file.ts +61 -0
- package/src/lib/empty-chip.tsx +52 -0
- package/src/lib/field-aria.tsx +97 -0
- package/src/lib/image-file-info.ts +102 -0
- package/src/lib/media-viewer-content.tsx +1587 -0
- package/src/lib/media-viewer-internal.tsx +191 -0
- package/src/lib/media-viewer-motion.ts +120 -0
- package/src/lib/motion.ts +9 -0
- package/src/lib/table-internal.ts +74 -0
- package/src/lib/use-controllable.ts +43 -0
- package/src/lib/empty-chip.ts +0 -24
package/dist/chart.js
CHANGED
|
@@ -1,308 +1,248 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
1
|
+
"use client";
|
|
2
|
+
import { ChartEmpty as ot } from "./chart-empty.js";
|
|
3
|
+
import * as b from "react";
|
|
4
|
+
import { cn as x } from "@brightlocal/ui-components/lib/utils";
|
|
5
|
+
import { Fragment as A, jsx as i, jsxs as N } from "react/jsx-runtime";
|
|
5
6
|
import { Slot as j, Slottable as O } from "@radix-ui/react-slot";
|
|
6
|
-
import { cva as
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return
|
|
7
|
+
import { cva as D } from "class-variance-authority";
|
|
8
|
+
import * as _ from "recharts";
|
|
9
|
+
import { Area as ut, AreaChart as ht, Bar as ft, BarChart as pt, CartesianGrid as mt, Cell as gt, Customized as vt, Label as Ct, LabelList as bt, Legend as xt, Line as yt, LineChart as kt, Pie as Nt, PieChart as Lt, PolarAngleAxis as _t, PolarGrid as wt, PolarRadiusAxis as $t, Radar as St, RadarChart as Pt, RadialBar as zt, RadialBarChart as Et, Rectangle as Rt, ReferenceLine as Tt, ResponsiveContainer as It, Sector as At, Tooltip as jt, XAxis as Ot, YAxis as Dt } from "recharts";
|
|
10
|
+
var $ = b.createContext(null);
|
|
11
|
+
function z() {
|
|
12
|
+
const e = b.useContext($);
|
|
13
|
+
if (!e) throw new Error("useChart must be used within a <ChartContainer />");
|
|
14
|
+
return e;
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
-
return
|
|
16
|
+
function E() {
|
|
17
|
+
return b.useContext($);
|
|
17
18
|
}
|
|
18
|
-
|
|
19
|
-
({
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
) });
|
|
66
|
-
}
|
|
67
|
-
);
|
|
68
|
-
W.displayName = "ChartContainer";
|
|
69
|
-
function G({ id: t, config: a }) {
|
|
70
|
-
const s = Object.entries(a).filter(
|
|
71
|
-
([, e]) => e.theme || e.color
|
|
72
|
-
);
|
|
73
|
-
return s.length ? /* @__PURE__ */ o(
|
|
74
|
-
"style",
|
|
75
|
-
{
|
|
76
|
-
dangerouslySetInnerHTML: {
|
|
77
|
-
__html: s.map(([e, r]) => {
|
|
78
|
-
const n = typeof r.color == "string" ? r.color.replace(/^hsl\((.*)\)$/, "$1") : null;
|
|
79
|
-
return n ? `
|
|
80
|
-
[data-chart=${t}] {
|
|
81
|
-
--color-${e}: ${n};
|
|
19
|
+
var V = b.forwardRef(({ id: e, className: a, children: o, config: t, dataHook: r, width: n, height: s, minWidth: d, minHeight: l, maxHeight: h, trackingEl: m, trackingLabel: g, ...v }, C) => {
|
|
20
|
+
const y = b.useId(), p = `chart-${e || y.replace(/:/g, "")}`, u = b.useRef(null), k = b.useCallback((f) => {
|
|
21
|
+
u.current = f, typeof C == "function" ? C(f) : C && (C.current = f);
|
|
22
|
+
}, [C]), c = typeof s == "number";
|
|
23
|
+
return /* @__PURE__ */ i($.Provider, {
|
|
24
|
+
value: {
|
|
25
|
+
config: t,
|
|
26
|
+
containerRef: u
|
|
27
|
+
},
|
|
28
|
+
children: /* @__PURE__ */ N("div", {
|
|
29
|
+
ref: k,
|
|
30
|
+
className: x("[&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-polar-radius-axis-tick-value]:fill-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-pie-sector]:stroke-background text-body-xs flex justify-center [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-pie-sector]:stroke-2 [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none [&_svg_g]:outline-none [&_svg_g]:focus:outline-none", c ? "aspect-auto" : "aspect-video", a),
|
|
31
|
+
"data-chart": p,
|
|
32
|
+
"data-hook": r,
|
|
33
|
+
"data-slot": "chart-container",
|
|
34
|
+
"data-tracking-el": m,
|
|
35
|
+
"data-tracking-label": g,
|
|
36
|
+
style: c ? { height: s } : void 0,
|
|
37
|
+
...v,
|
|
38
|
+
children: [/* @__PURE__ */ i(W, {
|
|
39
|
+
config: t,
|
|
40
|
+
id: p
|
|
41
|
+
}), /* @__PURE__ */ i(_.ResponsiveContainer, {
|
|
42
|
+
height: s ?? "100%",
|
|
43
|
+
initialDimension: {
|
|
44
|
+
width: 1,
|
|
45
|
+
height: 1
|
|
46
|
+
},
|
|
47
|
+
maxHeight: h,
|
|
48
|
+
minHeight: l,
|
|
49
|
+
minWidth: d ?? 0,
|
|
50
|
+
width: n ?? "100%",
|
|
51
|
+
children: o
|
|
52
|
+
})]
|
|
53
|
+
})
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
V.displayName = "ChartContainer";
|
|
57
|
+
function W({ id: e, config: a }) {
|
|
58
|
+
const o = Object.entries(a).filter(([, t]) => t.theme || t.color);
|
|
59
|
+
return o.length ? /* @__PURE__ */ i("style", { dangerouslySetInnerHTML: { __html: o.map(([t, r]) => {
|
|
60
|
+
const n = typeof r.color == "string" ? r.color.replace(/^hsl\((.*)\)$/, "$1") : null;
|
|
61
|
+
return n ? `
|
|
62
|
+
[data-chart=${e}] {
|
|
63
|
+
--color-${t}: ${n};
|
|
82
64
|
}
|
|
83
|
-
` : r.theme ? Object.entries(r.theme).map(
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
--color-${e}: ${c.replace(/^hsl\((.*)\)$/, "$1")};
|
|
65
|
+
` : r.theme ? Object.entries(r.theme).map(([s, d]) => `
|
|
66
|
+
.${s} [data-chart=${e}] {
|
|
67
|
+
--color-${t}: ${d.replace(/^hsl\((.*)\)$/, "$1")};
|
|
87
68
|
}
|
|
88
|
-
`
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
69
|
+
`).join("") : "";
|
|
70
|
+
}).join(`
|
|
71
|
+
`) } }) : null;
|
|
72
|
+
}
|
|
73
|
+
function P(e) {
|
|
74
|
+
return e == null || e === "" ? !1 : typeof e == "number" ? Number.isFinite(e) : !0;
|
|
75
|
+
}
|
|
76
|
+
var G = 50;
|
|
77
|
+
function M(e) {
|
|
78
|
+
const [a, o] = b.useState(null);
|
|
79
|
+
return b.useEffect(() => {
|
|
80
|
+
if (!e) {
|
|
81
|
+
o(null);
|
|
82
|
+
return;
|
|
93
83
|
}
|
|
94
|
-
|
|
84
|
+
const t = document.createElement("div");
|
|
85
|
+
return t.setAttribute("data-slot", "chart-tooltip-portal"), document.body.appendChild(t), o(t), () => {
|
|
86
|
+
document.body.removeChild(t);
|
|
87
|
+
};
|
|
88
|
+
}, [e]), a;
|
|
95
89
|
}
|
|
96
|
-
function
|
|
97
|
-
|
|
90
|
+
function H(e, a) {
|
|
91
|
+
b.useEffect(() => {
|
|
92
|
+
const o = e?.current;
|
|
93
|
+
if (!o) return;
|
|
94
|
+
const t = a ?? o;
|
|
95
|
+
let r = !1;
|
|
96
|
+
function n() {
|
|
97
|
+
const l = t.querySelector(".recharts-tooltip-wrapper");
|
|
98
|
+
l && (l.style.visibility = "hidden");
|
|
99
|
+
}
|
|
100
|
+
function s(l) {
|
|
101
|
+
r = !0;
|
|
102
|
+
const h = l.target;
|
|
103
|
+
!o.contains(h) && !t.contains(h) && (n(), r = !1);
|
|
104
|
+
}
|
|
105
|
+
function d() {
|
|
106
|
+
r && (n(), r = !1);
|
|
107
|
+
}
|
|
108
|
+
return document.addEventListener("touchstart", s, { passive: !0 }), window.addEventListener("scroll", d, {
|
|
109
|
+
passive: !0,
|
|
110
|
+
capture: !0
|
|
111
|
+
}), () => {
|
|
112
|
+
document.removeEventListener("touchstart", s), window.removeEventListener("scroll", d, { capture: !0 });
|
|
113
|
+
};
|
|
114
|
+
}, [e, a]);
|
|
98
115
|
}
|
|
99
|
-
function
|
|
100
|
-
|
|
116
|
+
function q({ portal: e, wrapperStyle: a, allowEscapeViewBox: o, ...t }) {
|
|
117
|
+
const r = E(), n = M(e !== null);
|
|
118
|
+
return H(r?.containerRef, n), /* @__PURE__ */ i(_.Tooltip, {
|
|
119
|
+
allowEscapeViewBox: o ?? {
|
|
120
|
+
x: !0,
|
|
121
|
+
y: !0
|
|
122
|
+
},
|
|
123
|
+
portal: e !== void 0 ? e : n,
|
|
124
|
+
wrapperStyle: {
|
|
125
|
+
zIndex: G,
|
|
126
|
+
...a
|
|
127
|
+
},
|
|
128
|
+
...t
|
|
129
|
+
});
|
|
101
130
|
}
|
|
102
|
-
|
|
103
|
-
function
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
labelKey: m
|
|
117
|
-
}) {
|
|
118
|
-
const { config: v } = P(), x = k.useMemo(() => {
|
|
119
|
-
if (r || !a?.length)
|
|
120
|
-
return null;
|
|
121
|
-
const [d] = a;
|
|
122
|
-
if (!d)
|
|
123
|
-
return null;
|
|
124
|
-
const N = `${m || d.dataKey || d.name || "value"}`, u = v[N], C = !m && typeof i == "string" ? v[i]?.label || i : u?.label;
|
|
125
|
-
return c ? /* @__PURE__ */ o("div", { className: b("font-medium", l), children: c(C, a) }) : C ? /* @__PURE__ */ o("div", { className: b("font-medium", l), children: C }) : null;
|
|
131
|
+
q.displayName = "ChartTooltip";
|
|
132
|
+
function F({ active: e, payload: a, className: o, indicator: t = "dot", hideLabel: r = !1, hideIndicator: n = !1, label: s, labelFormatter: d, labelClassName: l, formatter: h, color: m, nameKey: g, labelKey: v }) {
|
|
133
|
+
const { config: C } = z(), y = b.useMemo(() => {
|
|
134
|
+
if (r || !a?.length) return null;
|
|
135
|
+
const [u] = a;
|
|
136
|
+
if (!u) return null;
|
|
137
|
+
const k = `${v || u.dataKey || u.name || "value"}`, c = C[k], f = !v && typeof s == "string" ? C[s]?.label || s : c?.label;
|
|
138
|
+
return d ? /* @__PURE__ */ i("div", {
|
|
139
|
+
className: x("font-medium", l),
|
|
140
|
+
children: d(f, a)
|
|
141
|
+
}) : f ? /* @__PURE__ */ i("div", {
|
|
142
|
+
className: x("font-medium", l),
|
|
143
|
+
children: f
|
|
144
|
+
}) : null;
|
|
126
145
|
}, [
|
|
127
|
-
|
|
128
|
-
|
|
146
|
+
s,
|
|
147
|
+
d,
|
|
129
148
|
a,
|
|
130
149
|
r,
|
|
131
150
|
l,
|
|
132
|
-
|
|
133
|
-
|
|
151
|
+
C,
|
|
152
|
+
v
|
|
134
153
|
]);
|
|
135
|
-
if (!
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
"
|
|
140
|
-
{
|
|
141
|
-
className:
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
className: b(
|
|
178
|
-
"flex flex-1 justify-between gap-2 leading-none",
|
|
179
|
-
g ? "items-end" : "items-center"
|
|
180
|
-
),
|
|
181
|
-
children: [
|
|
182
|
-
/* @__PURE__ */ y("div", { className: "grid gap-1.5", children: [
|
|
183
|
-
g ? x : null,
|
|
184
|
-
/* @__PURE__ */ o(
|
|
185
|
-
"span",
|
|
186
|
-
{
|
|
187
|
-
className: "text-muted-foreground",
|
|
188
|
-
"data-slot": "chart-tooltip-item-name",
|
|
189
|
-
children: C?.label || d.name
|
|
190
|
-
}
|
|
191
|
-
)
|
|
192
|
-
] }),
|
|
193
|
-
R(d.value) && /* @__PURE__ */ o(
|
|
194
|
-
"span",
|
|
195
|
-
{
|
|
196
|
-
className: "text-foreground tabular-nums",
|
|
197
|
-
"data-slot": "chart-tooltip-item-value",
|
|
198
|
-
children: typeof d.value == "number" ? d.value.toLocaleString() : d.value
|
|
199
|
-
}
|
|
200
|
-
)
|
|
201
|
-
]
|
|
202
|
-
}
|
|
203
|
-
)
|
|
204
|
-
] })
|
|
205
|
-
},
|
|
206
|
-
d.dataKey
|
|
207
|
-
);
|
|
208
|
-
}) })
|
|
209
|
-
]
|
|
210
|
-
}
|
|
211
|
-
);
|
|
154
|
+
if (!e || !a?.length) return null;
|
|
155
|
+
const p = a.length === 1 && t !== "dot";
|
|
156
|
+
return /* @__PURE__ */ N("div", {
|
|
157
|
+
className: x("border-border/50 bg-background text-body-xs grid min-w-[8rem] items-start gap-1.5 rounded-lg border px-2.5 py-1.5 shadow-xl", o),
|
|
158
|
+
"data-slot": "chart-tooltip-content",
|
|
159
|
+
children: [p ? null : y, /* @__PURE__ */ i("div", {
|
|
160
|
+
className: "grid gap-1.5",
|
|
161
|
+
children: a.map((u, k) => {
|
|
162
|
+
const c = `${g || u.name || u.dataKey || "value"}`, f = C[c], L = m || u.color || u.payload.fill || `var(--color-${c})`;
|
|
163
|
+
return /* @__PURE__ */ i("div", {
|
|
164
|
+
className: x("[&>svg]:text-muted-foreground flex w-full flex-wrap items-stretch gap-2", t === "dot" && "items-center"),
|
|
165
|
+
"data-slot": "chart-tooltip-item",
|
|
166
|
+
children: h && P(u.value) && u.name ? h(u.value, u.name, u, k, a) : /* @__PURE__ */ N(A, { children: [f?.icon && !n ? /* @__PURE__ */ i(f.icon, { size: 10 }) : !n && /* @__PURE__ */ i("div", {
|
|
167
|
+
className: x("shrink-0 rounded-[2px]", {
|
|
168
|
+
"h-2.5 w-2.5": t === "dot",
|
|
169
|
+
"w-1": t === "line",
|
|
170
|
+
"w-0 border-[1.5px] border-dashed bg-transparent": t === "dashed",
|
|
171
|
+
"my-0.5": p && t === "dashed"
|
|
172
|
+
}),
|
|
173
|
+
style: {
|
|
174
|
+
backgroundColor: t === "dashed" ? "transparent" : L,
|
|
175
|
+
borderColor: L
|
|
176
|
+
}
|
|
177
|
+
}), /* @__PURE__ */ N("div", {
|
|
178
|
+
className: x("flex flex-1 justify-between gap-2 leading-none", p ? "items-end" : "items-center"),
|
|
179
|
+
children: [/* @__PURE__ */ N("div", {
|
|
180
|
+
className: "grid gap-1.5",
|
|
181
|
+
children: [p ? y : null, /* @__PURE__ */ i("span", {
|
|
182
|
+
className: "text-muted-foreground",
|
|
183
|
+
"data-slot": "chart-tooltip-item-name",
|
|
184
|
+
children: f?.label || u.name
|
|
185
|
+
})]
|
|
186
|
+
}), P(u.value) && /* @__PURE__ */ i("span", {
|
|
187
|
+
className: "text-foreground tabular-nums",
|
|
188
|
+
"data-slot": "chart-tooltip-item-value",
|
|
189
|
+
children: typeof u.value == "number" ? u.value.toLocaleString() : u.value
|
|
190
|
+
})]
|
|
191
|
+
})] })
|
|
192
|
+
}, u.dataKey);
|
|
193
|
+
})
|
|
194
|
+
})]
|
|
195
|
+
});
|
|
212
196
|
}
|
|
213
|
-
|
|
214
|
-
function
|
|
215
|
-
return /* @__PURE__ */
|
|
197
|
+
F.displayName = "ChartTooltipContent";
|
|
198
|
+
function X({ ...e }) {
|
|
199
|
+
return /* @__PURE__ */ i(_.Legend, { ...e });
|
|
216
200
|
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
({
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
),
|
|
256
|
-
"data-hidden": n || void 0,
|
|
257
|
-
"data-hook": r,
|
|
258
|
-
"data-muted": c || n || void 0,
|
|
259
|
-
"data-slot": "chart-legend-item",
|
|
260
|
-
"data-tracking-el": f,
|
|
261
|
-
"data-tracking-label": h,
|
|
262
|
-
...m,
|
|
263
|
-
children: [
|
|
264
|
-
g?.icon && !i ? /* @__PURE__ */ o(g.icon, { size: 12 }) : (
|
|
265
|
-
/* A span, not a div: with `asChild` the item is often a button,
|
|
266
|
-
which only allows phrasing content. */
|
|
267
|
-
/* @__PURE__ */ o(
|
|
268
|
-
"span",
|
|
269
|
-
{
|
|
270
|
-
"aria-hidden": "true",
|
|
271
|
-
className: b(
|
|
272
|
-
"duration-fast block size-2 shrink-0 rounded-[2px] transition-opacity ease-out group-data-[size=md]/legend:size-2.5",
|
|
273
|
-
(c || n) && "opacity-40"
|
|
274
|
-
),
|
|
275
|
-
"data-slot": "chart-legend-item-swatch",
|
|
276
|
-
style: { backgroundColor: d }
|
|
277
|
-
}
|
|
278
|
-
)
|
|
279
|
-
),
|
|
280
|
-
/* @__PURE__ */ o(O, { children: C }),
|
|
281
|
-
p != null && /* @__PURE__ */ o(
|
|
282
|
-
"span",
|
|
283
|
-
{
|
|
284
|
-
className: "ml-auto pl-0.5 tabular-nums",
|
|
285
|
-
"data-slot": "chart-legend-item-value",
|
|
286
|
-
children: /* @__PURE__ */ o("span", { className: "inline-block", children: p })
|
|
287
|
-
}
|
|
288
|
-
)
|
|
289
|
-
]
|
|
290
|
-
}
|
|
291
|
-
);
|
|
292
|
-
}
|
|
293
|
-
);
|
|
294
|
-
S.displayName = "ChartLegendItem";
|
|
295
|
-
const q = V("group/legend flex", {
|
|
201
|
+
X.displayName = "ChartLegend";
|
|
202
|
+
var R = b.forwardRef(({ asChild: e = !1, children: a, className: o, color: t, dataHook: r, hidden: n = !1, hideIcon: s = !1, muted: d = !1, seriesKey: l, trackingEl: h, trackingLabel: m, value: g, ...v }, C) => {
|
|
203
|
+
const y = E(), p = l ? y?.config[l] : void 0, u = t ?? p?.color ?? (l ? `var(--color-${l})` : void 0), k = !!l && !t && (!y || !!y.standalone && !p?.color);
|
|
204
|
+
b.useEffect(() => {
|
|
205
|
+
process.env.NODE_ENV !== "production" && k && console.warn(`ChartLegendItem: seriesKey="${l}" has no colour to resolve — render it inside a ChartContainer, give the ChartLegendList config a \`color\` for this key (a \`theme\` only resolves inside a container), or set \`color\`.`);
|
|
206
|
+
}, [l, k]);
|
|
207
|
+
const c = e ? j : "div", f = a ?? p?.label ?? l;
|
|
208
|
+
return /* @__PURE__ */ N(c, {
|
|
209
|
+
ref: C,
|
|
210
|
+
className: x("[&>svg]:text-muted-foreground focus-visible:shadow-default flex items-center gap-1.5 rounded-sm outline-none group-data-[size=md]/legend:gap-2 [&>svg]:size-3 group-data-[size=md]/legend:[&>svg]:size-3.5", (d || n) && "text-muted-foreground", n && "line-through [&_:is(button,a)]:line-through", o),
|
|
211
|
+
"data-hidden": n || void 0,
|
|
212
|
+
"data-hook": r,
|
|
213
|
+
"data-muted": d || n || void 0,
|
|
214
|
+
"data-slot": "chart-legend-item",
|
|
215
|
+
"data-tracking-el": h,
|
|
216
|
+
"data-tracking-label": m,
|
|
217
|
+
...v,
|
|
218
|
+
children: [
|
|
219
|
+
p?.icon && !s ? /* @__PURE__ */ i(p.icon, { size: 12 }) : /* @__PURE__ */ i("span", {
|
|
220
|
+
"aria-hidden": "true",
|
|
221
|
+
className: x("duration-fast block size-2 shrink-0 rounded-[2px] transition-opacity ease-out group-data-[size=md]/legend:size-2.5", (d || n) && "opacity-40"),
|
|
222
|
+
"data-slot": "chart-legend-item-swatch",
|
|
223
|
+
style: { backgroundColor: u }
|
|
224
|
+
}),
|
|
225
|
+
/* @__PURE__ */ i(O, { children: f }),
|
|
226
|
+
g != null && /* @__PURE__ */ i("span", {
|
|
227
|
+
className: "ml-auto pl-0.5 tabular-nums",
|
|
228
|
+
"data-slot": "chart-legend-item-value",
|
|
229
|
+
children: /* @__PURE__ */ i("span", {
|
|
230
|
+
className: "inline-block",
|
|
231
|
+
children: g
|
|
232
|
+
})
|
|
233
|
+
})
|
|
234
|
+
]
|
|
235
|
+
});
|
|
236
|
+
});
|
|
237
|
+
R.displayName = "ChartLegendItem";
|
|
238
|
+
var Y = D("group/legend flex", {
|
|
296
239
|
variants: {
|
|
297
240
|
size: {
|
|
298
241
|
sm: "text-body-xs",
|
|
299
242
|
md: "text-body-sm"
|
|
300
243
|
},
|
|
301
244
|
orientation: {
|
|
302
|
-
/* Wraps: six or seven series do not fit one line on a phone, and
|
|
303
|
-
without wrapping the tail is simply clipped. */
|
|
304
245
|
horizontal: "flex-wrap items-center justify-center gap-x-4 gap-y-1",
|
|
305
|
-
/* Items stretch to the list's width so a value can sit at the far edge. */
|
|
306
246
|
vertical: "flex-col items-stretch gap-3"
|
|
307
247
|
}
|
|
308
248
|
},
|
|
@@ -310,397 +250,251 @@ const q = V("group/legend flex", {
|
|
|
310
250
|
orientation: "horizontal",
|
|
311
251
|
size: "sm"
|
|
312
252
|
}
|
|
313
|
-
}),
|
|
314
|
-
({
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
size: i = "sm",
|
|
322
|
-
trackingEl: c,
|
|
323
|
-
trackingLabel: l,
|
|
324
|
-
...f
|
|
325
|
-
}, h) => {
|
|
326
|
-
const p = k.useMemo(
|
|
327
|
-
() => e ? { config: e, standalone: !0 } : null,
|
|
328
|
-
[e]
|
|
329
|
-
), m = /* @__PURE__ */ o(
|
|
330
|
-
"div",
|
|
331
|
-
{
|
|
332
|
-
ref: h,
|
|
333
|
-
"aria-label": t ?? "Chart legend",
|
|
334
|
-
className: b(
|
|
335
|
-
q({ orientation: n, size: i }),
|
|
336
|
-
s
|
|
337
|
-
),
|
|
338
|
-
"data-hook": r,
|
|
339
|
-
"data-orientation": n,
|
|
340
|
-
"data-size": i,
|
|
341
|
-
"data-slot": "chart-legend-list",
|
|
342
|
-
"data-tracking-el": c,
|
|
343
|
-
"data-tracking-label": l,
|
|
344
|
-
role: "group",
|
|
345
|
-
...f,
|
|
346
|
-
children: a
|
|
347
|
-
}
|
|
348
|
-
);
|
|
349
|
-
return p ? /* @__PURE__ */ o(w.Provider, { value: p, children: m }) : m;
|
|
350
|
-
}
|
|
351
|
-
);
|
|
352
|
-
A.displayName = "ChartLegendList";
|
|
353
|
-
const F = (t) => t.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
|
|
354
|
-
function H({
|
|
355
|
-
ariaLabel: t,
|
|
356
|
-
className: a,
|
|
357
|
-
dataHook: s = "chart-legend",
|
|
358
|
-
hideIcon: e = !1,
|
|
359
|
-
nameKey: r,
|
|
360
|
-
orientation: n = "horizontal",
|
|
361
|
-
payload: i,
|
|
362
|
-
renderItem: c,
|
|
363
|
-
showValue: l = !1,
|
|
364
|
-
size: f = "sm",
|
|
365
|
-
sortBy: h,
|
|
366
|
-
valueFormatter: p,
|
|
367
|
-
valueKey: m,
|
|
368
|
-
verticalAlign: v = "bottom"
|
|
369
|
-
}) {
|
|
370
|
-
const { config: x } = P();
|
|
371
|
-
if (!i?.length)
|
|
372
|
-
return null;
|
|
373
|
-
const g = (u) => String(
|
|
374
|
-
u.dataKey ?? (r ? u.payload?.[r] : void 0) ?? u.value
|
|
375
|
-
), d = (u) => {
|
|
376
|
-
const C = Array.isArray(h) ? h.indexOf(g(u)) : -1;
|
|
377
|
-
return C === -1 ? Number.POSITIVE_INFINITY : C;
|
|
378
|
-
}, N = h ? [...i].sort(
|
|
379
|
-
Array.isArray(h) ? (u, C) => {
|
|
380
|
-
const L = d(u), $ = d(C);
|
|
381
|
-
return L === $ ? 0 : L - $;
|
|
382
|
-
} : h
|
|
383
|
-
) : i;
|
|
384
|
-
return /* @__PURE__ */ o(
|
|
385
|
-
A,
|
|
386
|
-
{
|
|
387
|
-
ariaLabel: t,
|
|
388
|
-
className: b(
|
|
389
|
-
v === "top" && "pb-4",
|
|
390
|
-
v === "bottom" && "pt-4",
|
|
391
|
-
a
|
|
392
|
-
),
|
|
393
|
-
"data-slot": "chart-legend-content",
|
|
394
|
-
dataHook: s,
|
|
253
|
+
}), T = b.forwardRef(({ ariaLabel: e, children: a, className: o, config: t, dataHook: r, orientation: n = "horizontal", size: s = "sm", trackingEl: d, trackingLabel: l, ...h }, m) => {
|
|
254
|
+
const g = b.useMemo(() => t ? {
|
|
255
|
+
config: t,
|
|
256
|
+
standalone: !0
|
|
257
|
+
} : null, [t]), v = /* @__PURE__ */ i("div", {
|
|
258
|
+
ref: m,
|
|
259
|
+
"aria-label": e ?? "Chart legend",
|
|
260
|
+
className: x(Y({
|
|
395
261
|
orientation: n,
|
|
396
|
-
size:
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
262
|
+
size: s
|
|
263
|
+
}), o),
|
|
264
|
+
"data-hook": r,
|
|
265
|
+
"data-orientation": n,
|
|
266
|
+
"data-size": s,
|
|
267
|
+
"data-slot": "chart-legend-list",
|
|
268
|
+
"data-tracking-el": d,
|
|
269
|
+
"data-tracking-label": l,
|
|
270
|
+
role: "group",
|
|
271
|
+
...h,
|
|
272
|
+
children: a
|
|
273
|
+
});
|
|
274
|
+
return g ? /* @__PURE__ */ i($.Provider, {
|
|
275
|
+
value: g,
|
|
276
|
+
children: v
|
|
277
|
+
}) : v;
|
|
278
|
+
});
|
|
279
|
+
T.displayName = "ChartLegendList";
|
|
280
|
+
var Z = (e) => e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
|
|
281
|
+
function B({ ariaLabel: e, className: a, dataHook: o = "chart-legend", hideIcon: t = !1, nameKey: r, orientation: n = "horizontal", payload: s, renderItem: d, showValue: l = !1, size: h = "sm", sortBy: m, valueFormatter: g, valueKey: v, verticalAlign: C = "bottom" }) {
|
|
282
|
+
const { config: y } = z();
|
|
283
|
+
if (!s?.length) return null;
|
|
284
|
+
const p = (c) => {
|
|
285
|
+
const f = c.dataKey !== void 0 && c.payload?.dataKey === c.dataKey;
|
|
286
|
+
return String((r ? c.payload?.[r] : void 0) ?? (f ? c.dataKey : c.value ?? c.dataKey));
|
|
287
|
+
}, u = (c) => {
|
|
288
|
+
const f = Array.isArray(m) ? m.indexOf(p(c)) : -1;
|
|
289
|
+
return f === -1 ? Number.POSITIVE_INFINITY : f;
|
|
290
|
+
}, k = m ? [...s].sort(Array.isArray(m) ? (c, f) => {
|
|
291
|
+
const L = u(c), w = u(f);
|
|
292
|
+
return L === w ? 0 : L - w;
|
|
293
|
+
} : m) : s;
|
|
294
|
+
return /* @__PURE__ */ i(T, {
|
|
295
|
+
ariaLabel: e,
|
|
296
|
+
className: x(C === "top" && "pb-4", C === "bottom" && "pt-4", a),
|
|
297
|
+
"data-slot": "chart-legend-content",
|
|
298
|
+
dataHook: o,
|
|
299
|
+
orientation: n,
|
|
300
|
+
size: h,
|
|
301
|
+
children: k.map((c) => {
|
|
302
|
+
const f = p(c), L = y[f], w = l ? g ? g(c) : c.payload?.[v ?? c.dataKey ?? "value"] : void 0, S = /* @__PURE__ */ i(R, {
|
|
303
|
+
color: c.color,
|
|
304
|
+
dataHook: `${o}-${Z(f)}`,
|
|
305
|
+
hideIcon: t,
|
|
306
|
+
seriesKey: f,
|
|
307
|
+
value: w,
|
|
308
|
+
children: L?.label || c.value
|
|
309
|
+
}, c.value);
|
|
310
|
+
return d ? /* @__PURE__ */ i(b.Fragment, { children: d(c, S) }, c.value) : S;
|
|
311
|
+
})
|
|
312
|
+
});
|
|
414
313
|
}
|
|
415
|
-
|
|
416
|
-
function I({
|
|
417
|
-
|
|
418
|
-
color: a,
|
|
419
|
-
fill: s,
|
|
420
|
-
stroke: e,
|
|
421
|
-
payload: r
|
|
422
|
-
}) {
|
|
423
|
-
return (t && typeof r?.[t] == "string" ? r[t] : void 0) ?? a ?? s ?? e ?? "currentColor";
|
|
314
|
+
B.displayName = "ChartLegendContent";
|
|
315
|
+
function I({ colorKey: e, color: a, fill: o, stroke: t, payload: r }) {
|
|
316
|
+
return (e && typeof r?.[e] == "string" ? r[e] : void 0) ?? a ?? o ?? t ?? "currentColor";
|
|
424
317
|
}
|
|
425
|
-
function
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
stroke: i,
|
|
433
|
-
fill: c,
|
|
434
|
-
payload: l
|
|
435
|
-
}) {
|
|
436
|
-
if (r == null || n == null)
|
|
437
|
-
return null;
|
|
438
|
-
const f = I({
|
|
439
|
-
colorKey: e,
|
|
440
|
-
color: s,
|
|
441
|
-
fill: c,
|
|
442
|
-
stroke: i,
|
|
318
|
+
function J({ size: e = 8, custom: a = !1, color: o, colorKey: t, cx: r, cy: n, stroke: s, fill: d, payload: l }) {
|
|
319
|
+
if (r == null || n == null) return null;
|
|
320
|
+
const h = I({
|
|
321
|
+
colorKey: t,
|
|
322
|
+
color: o,
|
|
323
|
+
fill: d,
|
|
324
|
+
stroke: s,
|
|
443
325
|
payload: l
|
|
444
326
|
});
|
|
445
|
-
return /* @__PURE__ */
|
|
446
|
-
"
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
strokeWidth: a ? 2 : void 0
|
|
456
|
-
}
|
|
457
|
-
);
|
|
327
|
+
return /* @__PURE__ */ i("circle", {
|
|
328
|
+
className: a ? "fill-background" : void 0,
|
|
329
|
+
cx: r,
|
|
330
|
+
cy: n,
|
|
331
|
+
"data-slot": "chart-dot",
|
|
332
|
+
fill: a ? void 0 : h,
|
|
333
|
+
r: e / 2,
|
|
334
|
+
stroke: a ? h : "none",
|
|
335
|
+
strokeWidth: a ? 2 : void 0
|
|
336
|
+
});
|
|
458
337
|
}
|
|
459
|
-
|
|
460
|
-
function
|
|
461
|
-
|
|
462
|
-
color: a,
|
|
463
|
-
colorKey: s,
|
|
464
|
-
cx: e,
|
|
465
|
-
cy: r,
|
|
466
|
-
stroke: n,
|
|
467
|
-
fill: i,
|
|
468
|
-
payload: c
|
|
469
|
-
}) {
|
|
470
|
-
if (e == null || r == null)
|
|
471
|
-
return null;
|
|
338
|
+
J.displayName = "ChartDot";
|
|
339
|
+
function Q({ size: e = 6, color: a, colorKey: o, cx: t, cy: r, stroke: n, fill: s, payload: d }) {
|
|
340
|
+
if (t == null || r == null) return null;
|
|
472
341
|
const l = I({
|
|
473
|
-
colorKey:
|
|
342
|
+
colorKey: o,
|
|
474
343
|
color: a,
|
|
475
|
-
fill:
|
|
344
|
+
fill: s,
|
|
476
345
|
stroke: n,
|
|
477
|
-
payload:
|
|
346
|
+
payload: d
|
|
347
|
+
});
|
|
348
|
+
return /* @__PURE__ */ i("circle", {
|
|
349
|
+
className: "stroke-background",
|
|
350
|
+
cx: t,
|
|
351
|
+
cy: r,
|
|
352
|
+
"data-slot": "chart-dot-on-stroke",
|
|
353
|
+
fill: l,
|
|
354
|
+
r: e / 2,
|
|
355
|
+
strokeWidth: 2
|
|
478
356
|
});
|
|
479
|
-
return /* @__PURE__ */ o(
|
|
480
|
-
"circle",
|
|
481
|
-
{
|
|
482
|
-
className: "stroke-background",
|
|
483
|
-
cx: e,
|
|
484
|
-
cy: r,
|
|
485
|
-
"data-slot": "chart-dot-on-stroke",
|
|
486
|
-
fill: l,
|
|
487
|
-
r: t / 2,
|
|
488
|
-
strokeWidth: 2
|
|
489
|
-
}
|
|
490
|
-
);
|
|
491
357
|
}
|
|
492
|
-
|
|
493
|
-
function
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
fillOpacity: e,
|
|
510
|
-
gridType: l,
|
|
511
|
-
radialLines: n ?? !1,
|
|
512
|
-
stroke: "none",
|
|
513
|
-
...c
|
|
514
|
-
}
|
|
515
|
-
) : /* @__PURE__ */ o(
|
|
516
|
-
_.PolarGrid,
|
|
517
|
-
{
|
|
518
|
-
className: b(h, i),
|
|
519
|
-
gridType: l,
|
|
520
|
-
radialLines: n,
|
|
521
|
-
...c
|
|
522
|
-
}
|
|
523
|
-
);
|
|
358
|
+
Q.displayName = "ChartDotOnStroke";
|
|
359
|
+
function U({ type: e = "default", filled: a = !1, fillColor: o = "var(--chart-teal)", fillOpacity: t = 0.2, boundaryOnly: r = !1, radialLines: n, className: s, ...d }) {
|
|
360
|
+
const l = e === "circle" ? "circle" : "polygon", h = r ? `[&_.${l === "circle" ? "recharts-polar-grid-concentric-circle" : "recharts-polar-grid-concentric-polygon"}:not(:last-of-type)]:stroke-transparent` : void 0;
|
|
361
|
+
return a ? /* @__PURE__ */ i(_.PolarGrid, {
|
|
362
|
+
className: x(h, s),
|
|
363
|
+
fill: o,
|
|
364
|
+
fillOpacity: t,
|
|
365
|
+
gridType: l,
|
|
366
|
+
radialLines: n ?? !1,
|
|
367
|
+
stroke: "none",
|
|
368
|
+
...d
|
|
369
|
+
}) : /* @__PURE__ */ i(_.PolarGrid, {
|
|
370
|
+
className: x(h, s),
|
|
371
|
+
gridType: l,
|
|
372
|
+
radialLines: n,
|
|
373
|
+
...d
|
|
374
|
+
});
|
|
524
375
|
}
|
|
525
|
-
|
|
526
|
-
function
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
const f = a != null && l != null ? a[l] : void 0, h = f && s != null ? f[s] : void 0, p = f && e != null ? f[e] : void 0, m = t === "default" && h != null ? p != null ? `${String(h)}/${String(p)}` : String(h) : null;
|
|
538
|
-
return /* @__PURE__ */ y(
|
|
539
|
-
"text",
|
|
540
|
-
{
|
|
541
|
-
className: "text-body-xs",
|
|
542
|
-
"data-slot": "chart-radar-label-wrapper",
|
|
543
|
-
textAnchor: i,
|
|
376
|
+
U.displayName = "ChartRadarGrid";
|
|
377
|
+
function K({ type: e = "default", data: a, primaryKey: o, secondaryKey: t, x: r, y: n, textAnchor: s, payload: d, index: l }) {
|
|
378
|
+
const h = a != null && l != null ? a[l] : void 0, m = h && o != null ? h[o] : void 0, g = h && t != null ? h[t] : void 0, v = e === "default" && m != null ? g != null ? `${String(m)}/${String(g)}` : String(m) : null;
|
|
379
|
+
return /* @__PURE__ */ N("text", {
|
|
380
|
+
className: "text-body-xs",
|
|
381
|
+
"data-slot": "chart-radar-label-wrapper",
|
|
382
|
+
textAnchor: s,
|
|
383
|
+
x: r,
|
|
384
|
+
y: n,
|
|
385
|
+
children: [v != null && /* @__PURE__ */ i("tspan", {
|
|
386
|
+
className: "fill-card-foreground",
|
|
387
|
+
dy: "-0.5em",
|
|
544
388
|
x: r,
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
x: r,
|
|
554
|
-
children: c?.value
|
|
555
|
-
}
|
|
556
|
-
)
|
|
557
|
-
]
|
|
558
|
-
}
|
|
559
|
-
);
|
|
389
|
+
children: v
|
|
390
|
+
}), /* @__PURE__ */ i("tspan", {
|
|
391
|
+
className: "fill-muted-foreground",
|
|
392
|
+
dy: v != null ? "1.2em" : void 0,
|
|
393
|
+
x: r,
|
|
394
|
+
children: d?.value
|
|
395
|
+
})]
|
|
396
|
+
});
|
|
560
397
|
}
|
|
561
|
-
|
|
562
|
-
function
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
})
|
|
574
|
-
if (e == null || r == null)
|
|
575
|
-
return null;
|
|
576
|
-
const h = Math.PI / 180, p = i + (c - i) * s, m = e + p * Math.cos(-n * h), v = r + p * Math.sin(-n * h), x = t != null && l != null ? l[t] : void 0, g = x != null ? String(x) : f, d = g != null ? a?.[g]?.label ?? g : g;
|
|
577
|
-
return /* @__PURE__ */ o(
|
|
578
|
-
"text",
|
|
579
|
-
{
|
|
580
|
-
className: "fill-foreground text-body-xs",
|
|
581
|
-
"data-slot": "chart-pie-label-list",
|
|
582
|
-
dominantBaseline: "middle",
|
|
583
|
-
textAnchor: "middle",
|
|
584
|
-
x: m,
|
|
585
|
-
y: v,
|
|
586
|
-
children: d
|
|
587
|
-
}
|
|
588
|
-
);
|
|
398
|
+
K.displayName = "ChartRadarLabelWrapper";
|
|
399
|
+
function tt({ nameKey: e, config: a, radiusRatio: o = 0.5, cx: t, cy: r, midAngle: n = 0, innerRadius: s = 0, outerRadius: d = 0, payload: l, name: h }) {
|
|
400
|
+
if (t == null || r == null) return null;
|
|
401
|
+
const m = Math.PI / 180, g = s + (d - s) * o, v = t + g * Math.cos(-n * m), C = r + g * Math.sin(-n * m), y = e != null && l != null ? l[e] : void 0, p = y != null ? String(y) : h, u = p != null ? a?.[p]?.label ?? p : p;
|
|
402
|
+
return /* @__PURE__ */ i("text", {
|
|
403
|
+
className: "fill-foreground text-body-xs",
|
|
404
|
+
"data-slot": "chart-pie-label-list",
|
|
405
|
+
dominantBaseline: "middle",
|
|
406
|
+
textAnchor: "middle",
|
|
407
|
+
x: v,
|
|
408
|
+
y: C,
|
|
409
|
+
children: u
|
|
410
|
+
});
|
|
589
411
|
}
|
|
590
|
-
|
|
591
|
-
function
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
"text",
|
|
604
|
-
{
|
|
605
|
-
className: "fill-foreground text-body-xs",
|
|
606
|
-
"data-slot": "chart-pie-label-wrapper",
|
|
607
|
-
dominantBaseline: "middle",
|
|
608
|
-
textAnchor: e,
|
|
609
|
-
x: a,
|
|
610
|
-
y: s,
|
|
611
|
-
children: i
|
|
612
|
-
}
|
|
613
|
-
);
|
|
412
|
+
tt.displayName = "ChartPieLabelList";
|
|
413
|
+
function et({ valueKey: e, x: a, y: o, textAnchor: t, payload: r, value: n }) {
|
|
414
|
+
if (a == null || o == null) return null;
|
|
415
|
+
const s = e != null && r != null ? r[e] : n;
|
|
416
|
+
return /* @__PURE__ */ i("text", {
|
|
417
|
+
className: "fill-foreground text-body-xs",
|
|
418
|
+
"data-slot": "chart-pie-label-wrapper",
|
|
419
|
+
dominantBaseline: "middle",
|
|
420
|
+
textAnchor: t,
|
|
421
|
+
x: a,
|
|
422
|
+
y: o,
|
|
423
|
+
children: s
|
|
424
|
+
});
|
|
614
425
|
}
|
|
615
|
-
|
|
616
|
-
|
|
426
|
+
et.displayName = "ChartPieLabelWrapper";
|
|
427
|
+
var rt = {
|
|
617
428
|
"2xl": "text-metric",
|
|
618
429
|
"3xl": "font-sans text-3xl font-semibold",
|
|
619
430
|
"4xl": "font-sans text-4xl font-semibold"
|
|
620
431
|
};
|
|
621
|
-
function
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
{
|
|
633
|
-
"data-slot": "chart-center-label",
|
|
634
|
-
dominantBaseline: "middle",
|
|
635
|
-
textAnchor: "middle",
|
|
432
|
+
function at({ primary: e, secondary: a, size: o = "3xl", viewBox: t }) {
|
|
433
|
+
if (t == null || typeof t != "object" || !("cx" in t) || !("cy" in t)) return null;
|
|
434
|
+
const { cx: r, cy: n } = t;
|
|
435
|
+
return /* @__PURE__ */ N("text", {
|
|
436
|
+
"data-slot": "chart-center-label",
|
|
437
|
+
dominantBaseline: "middle",
|
|
438
|
+
textAnchor: "middle",
|
|
439
|
+
x: r,
|
|
440
|
+
y: n,
|
|
441
|
+
children: [/* @__PURE__ */ i("tspan", {
|
|
442
|
+
className: x("fill-foreground", rt[o]),
|
|
636
443
|
x: r,
|
|
637
444
|
y: n,
|
|
638
|
-
children:
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
}
|
|
647
|
-
),
|
|
648
|
-
a != null && /* @__PURE__ */ o(
|
|
649
|
-
"tspan",
|
|
650
|
-
{
|
|
651
|
-
className: "fill-muted-foreground text-body-xs",
|
|
652
|
-
x: r,
|
|
653
|
-
y: n + 24,
|
|
654
|
-
children: a
|
|
655
|
-
}
|
|
656
|
-
)
|
|
657
|
-
]
|
|
658
|
-
}
|
|
659
|
-
);
|
|
445
|
+
children: e
|
|
446
|
+
}), a != null && /* @__PURE__ */ i("tspan", {
|
|
447
|
+
className: "fill-muted-foreground text-body-xs",
|
|
448
|
+
x: r,
|
|
449
|
+
y: n + 24,
|
|
450
|
+
children: a
|
|
451
|
+
})]
|
|
452
|
+
});
|
|
660
453
|
}
|
|
661
|
-
|
|
454
|
+
at.displayName = "ChartCenterLabel";
|
|
662
455
|
export {
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
U as
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
456
|
+
ut as Area,
|
|
457
|
+
ht as AreaChart,
|
|
458
|
+
ft as Bar,
|
|
459
|
+
pt as BarChart,
|
|
460
|
+
mt as CartesianGrid,
|
|
461
|
+
gt as Cell,
|
|
462
|
+
at as ChartCenterLabel,
|
|
463
|
+
V as ChartContainer,
|
|
464
|
+
J as ChartDot,
|
|
465
|
+
Q as ChartDotOnStroke,
|
|
466
|
+
ot as ChartEmpty,
|
|
467
|
+
Ct as ChartLabel,
|
|
468
|
+
X as ChartLegend,
|
|
469
|
+
B as ChartLegendContent,
|
|
470
|
+
R as ChartLegendItem,
|
|
471
|
+
T as ChartLegendList,
|
|
472
|
+
tt as ChartPieLabelList,
|
|
473
|
+
et as ChartPieLabelWrapper,
|
|
474
|
+
U as ChartRadarGrid,
|
|
475
|
+
K as ChartRadarLabelWrapper,
|
|
476
|
+
W as ChartStyle,
|
|
477
|
+
q as ChartTooltip,
|
|
478
|
+
F as ChartTooltipContent,
|
|
479
|
+
xt as ChartsLegend,
|
|
480
|
+
jt as ChartsTooltip,
|
|
481
|
+
vt as Customized,
|
|
482
|
+
bt as LabelList,
|
|
483
|
+
yt as Line,
|
|
484
|
+
kt as LineChart,
|
|
485
|
+
Nt as Pie,
|
|
486
|
+
Lt as PieChart,
|
|
487
|
+
_t as PolarAngleAxis,
|
|
488
|
+
wt as PolarGrid,
|
|
489
|
+
$t as PolarRadiusAxis,
|
|
490
|
+
St as Radar,
|
|
491
|
+
Pt as RadarChart,
|
|
492
|
+
zt as RadialBar,
|
|
493
|
+
Et as RadialBarChart,
|
|
494
|
+
Rt as Rectangle,
|
|
495
|
+
Tt as ReferenceLine,
|
|
496
|
+
It as ResponsiveContainer,
|
|
497
|
+
At as Sector,
|
|
498
|
+
Ot as XAxis,
|
|
499
|
+
Dt as YAxis
|
|
706
500
|
};
|