@layerfi/components 0.1.129 → 0.1.131-alpha

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
@@ -814,14 +814,16 @@ declare type OnboardingStep = undefined | 'connectAccount' | 'complete';
814
814
 
815
815
  export declare const ProfitAndLoss: {
816
816
  ({ children, tagFilter, comparisonConfig, reportingBasis, asContainer, }: Props): JSX_2.Element;
817
- Chart: ({ tagFilter }: ProfitAndLossChartProps) => JSX_2.Element;
817
+ Chart: ({ tagFilter, hideLegend }: ProfitAndLossChartProps) => JSX_2.Element;
818
818
  Summaries: typeof ProfitAndLossSummaries;
819
- DetailedCharts: ({ scope, hideClose, showDatePicker, chartColorsList, stringOverrides, }: {
819
+ DetailedCharts: ({ scope, hideClose, hideHeader, showDatePicker, chartColorsList, stringOverrides, slotProps, }: {
820
820
  scope?: SidebarScope;
821
821
  hideClose?: boolean;
822
+ hideHeader?: boolean;
822
823
  showDatePicker?: boolean;
823
824
  chartColorsList?: string[];
824
825
  stringOverrides?: ProfitAndLossDetailedChartsStringOverrides;
826
+ slotProps?: ProfitAndLossDetailedChartsSlotProps;
825
827
  }) => JSX_2.Element;
826
828
  Header: ({ text, className, headingClassName, withDatePicker, withDownloadButton, withStatus, stringOverrides, dateSelectionMode, }: ProfitAndLossHeaderProps) => JSX_2.Element;
827
829
  Report: ({ stringOverrides, dateSelectionMode, csvMoneyFormat, view, renderInAppLink, hideHeader, }: ProfitAndLossReportProps) => JSX_2.Element;
@@ -832,6 +834,7 @@ declare interface ProfitAndLossChartProps {
832
834
  key: string;
833
835
  values: string[];
834
836
  };
837
+ hideLegend?: boolean;
835
838
  }
836
839
 
837
840
  declare type ProfitAndLossCompareConfig = ProfitAndLossCompareConfigBase & ({
@@ -852,6 +855,12 @@ declare type ProfitAndLossCompareConfigBase = {
852
855
  defaultPeriods?: number;
853
856
  };
854
857
 
858
+ declare interface ProfitAndLossDetailedChartsSlotProps {
859
+ detailedTable?: {
860
+ showTypeColumn?: boolean;
861
+ };
862
+ }
863
+
855
864
  declare interface ProfitAndLossDetailedChartsStringOverrides {
856
865
  detailedChartStringOverrides?: DetailedChartStringOverrides;
857
866
  detailedTableStringOverrides?: DetailedTableStringOverrides;
@@ -1118,6 +1127,8 @@ declare type TimeRangePickerConfig = {
1118
1127
  csvMoneyFormat?: MoneyFormat;
1119
1128
  };
1120
1129
 
1130
+ export declare const TimeTracking: ({ showTitle, onReportsClick, stringOverrides }: TimeTrackingProps) => JSX_2.Element;
1131
+
1121
1132
  declare interface TimeTrackingProps {
1122
1133
  showTitle?: boolean;
1123
1134
  onReportsClick?: () => void;
@@ -1140,6 +1151,8 @@ declare type UnifiedReportProps = {
1140
1151
  dateSelectionMode?: DateSelectionMode;
1141
1152
  };
1142
1153
 
1154
+ export declare const UnifiedReports: ({ dateSelectionMode }: UnifiedReportProps) => JSX_2.Element;
1155
+
1143
1156
  declare type UnknownEnumValue = string & Record<never, never>;
1144
1157
 
1145
1158
  export declare const unstable_MileageSummaryCard: () => JSX_2.Element;
@@ -1150,10 +1163,6 @@ export declare const unstable_MileageTracking: ({ showTitle }: {
1150
1163
 
1151
1164
  export declare const unstable_TaxEstimates: ({ onClickReviewTransactions: onReviewClicked }: TaxEstimatesProps) => JSX_2.Element;
1152
1165
 
1153
- export declare const unstable_TimeTracking: ({ showTitle, onReportsClick, stringOverrides }: TimeTrackingProps) => JSX_2.Element;
1154
-
1155
- export declare const unstable_UnifiedReports: ({ dateSelectionMode }: UnifiedReportProps) => JSX_2.Element;
1156
-
1157
1166
  export declare const useLayerContext: () => LayerContextShape;
1158
1167
 
1159
1168
  declare type Variants = Partial<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerfi/components",
3
- "version": "0.1.129",
3
+ "version": "0.1.131-alpha",
4
4
  "description": "Layer React Components",
5
5
  "main": "dist/cjs/index.cjs",
6
6
  "module": "dist/esm/index.mjs",
@@ -61,7 +61,7 @@
61
61
  "@types/node": "^24.9.0",
62
62
  "@types/react": "^18.2.0",
63
63
  "@types/react-dom": "^18.2.0",
64
- "@vitejs/plugin-react": "^5.1.3",
64
+ "@vitejs/plugin-react": "^6.0.1",
65
65
  "chokidar-cli": "^3.0.0",
66
66
  "eslint": "^9.26.0",
67
67
  "eslint-import-resolver-typescript": "^4.4.4",
@@ -85,9 +85,8 @@
85
85
  "tsx": "^4.20.6",
86
86
  "typescript": "^5.8.3",
87
87
  "typescript-eslint": "^8.32.0",
88
- "vite": "npm:rolldown-vite@7.3.1",
89
- "vite-plugin-dts": "^4.5.4",
90
- "vite-tsconfig-paths": "^5.1.4"
88
+ "vite": "^8.0.10",
89
+ "vite-plugin-dts": "^5.0.0"
91
90
  },
92
91
  "lint-staged": {
93
92
  "*.{css,scss}": "stylelint --fix"