Chart.js
1 month ago
ChartAreaChart.js
1 month ago
ChartContext.js
1 month ago
ChartDateFilter.js
1 month ago
ChartKPI.js
1 month ago
ChartSummary.js
1 month ago
ChartTabs.js
1 month ago
index.js
1 month ago
Chart.js
28 lines
| 1 | import { Container } from "@bsf/force-ui"; |
| 2 | import ChartTabs from "./ChartTabs"; |
| 3 | import ChartDateFilter from "./ChartDateFilter"; |
| 4 | import ChartAreaChart from "./ChartAreaChart"; |
| 5 | import ChartSummary from "./ChartSummary"; |
| 6 | import ChartKPI from "./ChartKPI"; |
| 7 | |
| 8 | const Chart = ({ children }) => { |
| 9 | return ( |
| 10 | <Container |
| 11 | containerType="flex" |
| 12 | direction="column" |
| 13 | gap="xs" |
| 14 | className="w-full max-w-full min-w-0 p-4 border-0.5 border-solid rounded-xl shadow-sm bg-background-primary border-border-subtle box-border" |
| 15 | > |
| 16 | {children} |
| 17 | </Container> |
| 18 | ); |
| 19 | }; |
| 20 | |
| 21 | Chart.Tabs = ChartTabs; |
| 22 | Chart.DateFilter = ChartDateFilter; |
| 23 | Chart.AreaChart = ChartAreaChart; |
| 24 | Chart.Summary = ChartSummary; |
| 25 | Chart.KPI = ChartKPI; |
| 26 | |
| 27 | export default Chart; |
| 28 |