@vizzly/dashboard 0.14.4-dev-470d6f9c95d1b6422dbe1be22378ce12cdf6580a → 0.14.4-dev-8beb4cd0b38350abdd05b93b66f2523ced40aa15

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 (23) hide show
  1. package/dist/charts/src/v2/components/AreaChart/AreaChart.d.ts +22 -0
  2. package/dist/charts/src/v2/components/AreaChart/contants.d.ts +1 -0
  3. package/dist/charts/src/v2/components/AreaChart/index.d.ts +1 -0
  4. package/dist/charts/src/v2/components/BarChart/getBarFill.d.ts +2 -4
  5. package/dist/charts/src/v2/components/Legend/Legend.d.ts +2 -1
  6. package/dist/charts/src/v2/components/Legend/LegendItem/LegendItem.d.ts +2 -1
  7. package/dist/charts/src/v2/components/Legend/LegendItemBox/LegendItemBox.d.ts +3 -0
  8. package/dist/charts/src/v2/components/Threshold/ThresholdArea.d.ts +14 -0
  9. package/dist/charts/src/v2/components/Threshold/threshold.utils.d.ts +4 -0
  10. package/dist/charts/src/v2/components/Tooltip/CrosshairCircle.d.ts +20 -0
  11. package/dist/charts/src/v2/components/Tooltip/Line.d.ts +7 -0
  12. package/dist/charts/src/v2/components/Tooltip/Tooltip.d.ts +2 -1
  13. package/dist/charts/src/v2/components/hooks/useFlattenedData.d.ts +1 -3
  14. package/dist/charts/src/v2/components/hooks/useVisibleKey.d.ts +6 -0
  15. package/dist/charts/src/v2/utils/useableId.d.ts +1 -0
  16. package/dist/dashboard.cjs.development.js +401 -80
  17. package/dist/dashboard.cjs.production.min.js +1 -1
  18. package/dist/dashboard.esm.js +406 -82
  19. package/dist/shared-logic/src/AreaChartV2/types.d.ts +12 -0
  20. package/dist/shared-logic/src/BubbleChart/getAxisFormattingFunction.d.ts +1 -1
  21. package/dist/shared-logic/src/ChartsV2/getAxisFormattingFunction.d.ts +1 -1
  22. package/dist/shared-logic/src/ChartsV2/types.d.ts +3 -0
  23. package/package.json +1 -1
@@ -0,0 +1,12 @@
1
+ import { BaseChartRepresentation, ConditionalFormattingRule, GoalLine, ShapeDefinition } from '../ChartsV2/types';
2
+ export interface AreaChartRepresentation extends BaseChartRepresentation {
3
+ conditionalFormattingRules: ConditionalFormattingRule[];
4
+ goalLines: GoalLine[];
5
+ areas: ShapeDefinition<AreaStyles>[];
6
+ }
7
+ export declare type CurveTypes = 'monotoneX' | 'step' | 'linear';
8
+ export declare type AreaStyles = {
9
+ type: 'area';
10
+ toOpacity: number;
11
+ fromOpacity: number;
12
+ };
@@ -9,5 +9,5 @@ interface getAxisFormattingFunctionArgs {
9
9
  };
10
10
  formatFunctionId: FormatType;
11
11
  }
12
- export declare const getAxisFormattingFunction: ({ formatFunctionId, numberFormatOptions, dateTimeFormatOptions, }: getAxisFormattingFunctionArgs) => ((number: number | null | undefined, noValueReplacement?: string | undefined) => string) | ((date: Date) => string) | ((value: string) => string);
12
+ export declare const getAxisFormattingFunction: ({ formatFunctionId, numberFormatOptions, dateTimeFormatOptions, }: getAxisFormattingFunctionArgs) => ((date: Date) => string) | ((number: number | null | undefined, noValueReplacement?: string | undefined) => string) | ((value: string) => string);
13
13
  export {};
@@ -9,5 +9,5 @@ interface getAxisFormattingFunctionArgs {
9
9
  };
10
10
  formatFunctionId: FormatType;
11
11
  }
12
- export declare const getAxisFormattingFunction: ({ formatFunctionId, numberFormatOptions, dateTimeFormatOptions, }: getAxisFormattingFunctionArgs) => ((number: number | null | undefined, noValueReplacement?: string | undefined) => string) | ((date: Date) => string) | ((value: string) => string);
12
+ export declare const getAxisFormattingFunction: ({ formatFunctionId, numberFormatOptions, dateTimeFormatOptions, }: getAxisFormattingFunctionArgs) => ((date: Date) => string) | ((number: number | null | undefined, noValueReplacement?: string | undefined) => string) | ((value: string) => string);
13
13
  export {};
@@ -88,3 +88,6 @@ export declare type BaseChartRepresentation = {
88
88
  [keyId: string]: DataItem;
89
89
  }[];
90
90
  };
91
+ export declare type ChartDataDefinition = {
92
+ [keyId: string]: DataItem;
93
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vizzly/dashboard",
3
3
  "author": "james@vizzly.co",
4
- "version": "0.14.4-dev-470d6f9c95d1b6422dbe1be22378ce12cdf6580a",
4
+ "version": "0.14.4-dev-8beb4cd0b38350abdd05b93b66f2523ced40aa15",
5
5
  "source": "src/index.tsx",
6
6
  "types": "./dist/dashboard/src/index.d.ts",
7
7
  "module": "./dist/dashboard.esm.js",