@layerfi/components 0.1.72 → 0.1.73

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/dist/index.d.ts CHANGED
@@ -2728,11 +2728,12 @@ declare module '@layerfi/components/components/ProfitAndLoss/ProfitAndLoss' {
2728
2728
  }>;
2729
2729
  DatePicker: ({ allowedDatePickerModes, datePickerMode: deprecated_datePickerMode, defaultDatePickerMode, customDateRanges, }: import("@layerfi/components/views/Reports/reportTypes").TimeRangePickerConfig) => React.JSX.Element;
2730
2730
  CompareOptions: ({ tagComparisonOptions, defaultTagFilter: defaultOption, }: import("@layerfi/components/components/ProfitAndLossCompareOptions/index").ProfitAndLossCompareOptionsProps) => React.JSX.Element;
2731
- Summaries: ({ vertical, actionable, revenueLabel, stringOverrides, }: {
2731
+ Summaries: ({ vertical, actionable, revenueLabel, stringOverrides, chartColorsList, }: {
2732
2732
  vertical?: boolean | undefined;
2733
2733
  actionable?: boolean | undefined;
2734
2734
  revenueLabel?: string | undefined;
2735
2735
  stringOverrides?: import("@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries").ProfitAndLossSummariesStringOverrides | undefined;
2736
+ chartColorsList?: string[] | undefined;
2736
2737
  }) => React.JSX.Element;
2737
2738
  Table: (props: import("@layerfi/components/components/ProfitAndLossTable/ProfitAndLossTableComponent").ProfitAndLossTableProps) => React.JSX.Element;
2738
2739
  DetailedCharts: ({ scope, hideClose, showDatePicker, chartColorsList, stringOverrides, }: {
@@ -2866,10 +2867,11 @@ declare module '@layerfi/components/components/ProfitAndLossDetailedCharts/Detai
2866
2867
  chartColorsList?: string[];
2867
2868
  stringOverrides?: DetailedTableStringOverrides;
2868
2869
  }
2869
- export const mapTypesToColors: (data: any[], colorList?: string[]) => {
2870
- color: any;
2871
- opacity: any;
2872
- }[];
2870
+ export interface TypeColorMapping {
2871
+ color: string;
2872
+ opacity: number;
2873
+ }
2874
+ export const mapTypesToColors: (data: LineBaseItem[], colorList?: string[]) => TypeColorMapping[];
2873
2875
  export const DetailedTable: ({ filteredData, sidebarScope, filters, sortBy, hoveredItem, setHoveredItem, chartColorsList, stringOverrides, }: DetailedTableProps) => React.JSX.Element;
2874
2876
 
2875
2877
  }
@@ -2970,8 +2972,9 @@ declare module '@layerfi/components/components/ProfitAndLossSummaries/MiniChart'
2970
2972
  import { LineBaseItem } from '@layerfi/components/types/line_item';
2971
2973
  export interface MiniChartProps {
2972
2974
  data: LineBaseItem[];
2975
+ chartColorsList?: string[];
2973
2976
  }
2974
- export const MiniChart: ({ data }: MiniChartProps) => React.JSX.Element;
2977
+ export const MiniChart: ({ data, chartColorsList }: MiniChartProps) => React.JSX.Element;
2975
2978
 
2976
2979
  }
2977
2980
  declare module '@layerfi/components/components/ProfitAndLossSummaries/ProfitAndLossSummaries' {
@@ -2981,13 +2984,17 @@ declare module '@layerfi/components/components/ProfitAndLossSummaries/ProfitAndL
2981
2984
  expensesLabel?: string;
2982
2985
  netProfitLabel?: string;
2983
2986
  }
2984
- type Props = {
2987
+ type ProfitAndLossSummariesProps = {
2985
2988
  vertical?: boolean;
2986
2989
  actionable?: boolean;
2990
+ /**
2991
+ * @deprecated Use `stringOverrides.revenueLabel` instead
2992
+ */
2987
2993
  revenueLabel?: string;
2988
2994
  stringOverrides?: ProfitAndLossSummariesStringOverrides;
2995
+ chartColorsList?: string[];
2989
2996
  };
2990
- export const ProfitAndLossSummaries: ({ vertical, actionable, revenueLabel, stringOverrides, }: Props) => React.JSX.Element;
2997
+ export const ProfitAndLossSummaries: ({ vertical, actionable, revenueLabel, stringOverrides, chartColorsList, }: ProfitAndLossSummariesProps) => React.JSX.Element;
2991
2998
  export {};
2992
2999
 
2993
3000
  }