diff --git a/packages/static/src/mappings/treemap.ts b/packages/static/src/mappings/treemap.ts index 3191c0b860..f81ae1603e 100644 --- a/packages/static/src/mappings/treemap.ts +++ b/packages/static/src/mappings/treemap.ts @@ -1,14 +1,14 @@ import { FunctionComponent } from 'react' import Joi from 'joi' import { Dimensions } from '@nivo/core' -import { TreeMap, TreeMapSvgProps, DefaultTreeMapDatum } from '@nivo/treemap' +import { TreeMap, TreeMapSvgProps } from '@nivo/treemap' import { custom } from './common' import { ordinalColors, inheritedColor } from './commons/colors' import { dimensions } from './commons/dimensions' import { OmitStrict } from '../types' -export type TreeMapApiProps = OmitStrict< - TreeMapSvgProps & Dimensions, +export type TreeMapApiProps = OmitStrict< + TreeMapSvgProps & Dimensions, | 'isInteractive' | 'onMouseEnter' | 'onMouseMove' diff --git a/packages/static/src/samples/index.ts b/packages/static/src/samples/index.ts index 510dfb92a5..5a05da8286 100644 --- a/packages/static/src/samples/index.ts +++ b/packages/static/src/samples/index.ts @@ -154,7 +154,7 @@ export const samples: Record< enableArcLabels: true, arcLabelsSkipAngle: 10, arcLabelsTextColor: { from: 'color', modifiers: [['darker', 1.4]] }, - } as ChartProps<'sunburst'>, + }, }, treemap: { type: 'treemap', @@ -168,6 +168,6 @@ export const samples: Record< leavesOnly: false, innerPadding: 3, outerPadding: 3, - } as unknown as ChartProps<'treemap'>, + }, }, } diff --git a/packages/treemap/package.json b/packages/treemap/package.json index 197ea35f4d..a95c7d4336 100644 --- a/packages/treemap/package.json +++ b/packages/treemap/package.json @@ -40,7 +40,6 @@ }, "peerDependencies": { "@nivo/core": "0.77.0", - "prop-types": ">= 15.5.10 < 16.0.0", "react": ">= 16.14.0 < 18.0.0" }, "publishConfig": {