ui-arreya-components 0.0.11 → 0.0.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-arreya-components",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "type": "module",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {
@@ -9,7 +9,7 @@ import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigge
9
9
  export interface GraphCardProps {
10
10
  title: string
11
11
  description?: string
12
- chart: React.ReactNode
12
+ chart?: React.ReactNode | any
13
13
  value?: string | number
14
14
  previousValue?: string | number
15
15
  change?: number
@@ -100,8 +100,8 @@ export function GraphCard({
100
100
  <div className="flex h-full items-center justify-center">
101
101
  <div className="h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent"></div>
102
102
  </div>
103
- ) : chartConfig ? (
104
- <ChartContainer config={chartConfig}>{chart}</ChartContainer>
103
+ ) : (chartConfig && chart) ? (
104
+ <ChartContainer config={chartConfig}>{ chart }</ChartContainer>
105
105
  ) : (
106
106
  chart
107
107
  )}
@@ -1,2 +0,0 @@
1
- export * from './ui/accordion'
2
- export * from './features/GraphCard'