@layerfi/components 0.1.114-alpha → 0.1.114-alpha.2

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
@@ -44,6 +44,9 @@ declare type AccountingConfigurationSchemaType = typeof AccountingConfigurationS
44
44
  export declare const AccountingOverview: ({ title, showTitle, enableOnboarding, onboardingStepOverride, onTransactionsToReviewClick, middleBanner, chartColorsList, stringOverrides, tagFilter, slotProps, }: AccountingOverviewProps) => JSX_2.Element;
45
45
 
46
46
  declare interface AccountingOverviewProps {
47
+ /**
48
+ * @deprecated Use `stringOverrides.title` instead
49
+ */
47
50
  title?: string;
48
51
  showTitle?: boolean;
49
52
  enableOnboarding?: boolean;
@@ -63,6 +66,7 @@ declare interface AccountingOverviewProps {
63
66
  }
64
67
 
65
68
  declare interface AccountingOverviewStringOverrides {
69
+ title?: string;
66
70
  header?: string;
67
71
  profitAndLoss?: {
68
72
  detailedCharts?: ProfitAndLossDetailedChartsStringOverrides;
@@ -92,6 +96,7 @@ declare type BalanceSheetProps = PropsWithChildren<{
92
96
  effectiveDate?: Date;
93
97
  asWidget?: boolean;
94
98
  stringOverrides?: BalanceSheetStringOverrides;
99
+ dateSelectionMode?: 'month' | 'full';
95
100
  }>;
96
101
 
97
102
  declare interface BalanceSheetStringOverrides {
@@ -374,12 +379,6 @@ declare type CommonProfitAndLossSummariesProps = {
374
379
  vertical?: boolean;
375
380
  };
376
381
 
377
- declare type CustomDateRange = {
378
- label: string;
379
- startDate: Date;
380
- endDate: Date;
381
- };
382
-
383
382
  declare enum DataModel {
384
383
  BUSINESS = "BUSINESS",
385
384
  BALANCE_SHEET = "BALANCE_SHEET",
@@ -396,7 +395,7 @@ declare type DateRange<T = Date> = {
396
395
  endDate: T;
397
396
  };
398
397
 
399
- declare type DateRangePickerMode = typeof _RANGE_PICKER_MODES[number];
398
+ declare type DateRangePickerMode = 'full' | 'month';
400
399
 
401
400
  /**
402
401
  * Utility type for creating deep partial types - makes all properties optional recursively
@@ -405,6 +404,11 @@ declare type DeepPartial<T> = {
405
404
  [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
406
405
  };
407
406
 
407
+ declare interface DetailedChartStringOverrides {
408
+ expenseChartHeader?: string;
409
+ revenueChartHeader?: string;
410
+ }
411
+
408
412
  declare interface DetailedTableStringOverrides {
409
413
  categoryColumnHeader?: string;
410
414
  typeColumnHeader?: string;
@@ -822,7 +826,7 @@ declare type PlatformOnboardingProps = {
822
826
  };
823
827
 
824
828
  export declare const ProfitAndLoss: {
825
- ({ withReportsModeProvider, ...restProps }: Props): JSX_2.Element;
829
+ ({ children, tagFilter, comparisonConfig, reportingBasis, asContainer, }: Props): JSX_2.Element;
826
830
  Chart: ({ forceRerenderOnDataChange, tagFilter, }: Props_2) => JSX_2.Element;
827
831
  Summaries: typeof ProfitAndLossSummaries;
828
832
  DetailedCharts: ({ scope, hideClose, showDatePicker, chartColorsList, stringOverrides, }: {
@@ -839,10 +843,14 @@ export declare const ProfitAndLoss: {
839
843
  declare interface ProfitAndLossCompareConfig {
840
844
  tagComparisonOptions: TagComparisonOption[];
841
845
  defaultTagFilter: TagComparisonOption;
846
+ /**
847
+ * @deprecated This is a deprecated property - the number of periods to compare is derived from the date range.
848
+ */
842
849
  defaultPeriods?: number;
843
850
  }
844
851
 
845
852
  declare interface ProfitAndLossDetailedChartsStringOverrides {
853
+ detailedChartStringOverrides?: DetailedChartStringOverrides;
846
854
  detailedTableStringOverrides?: DetailedTableStringOverrides;
847
855
  detailReportStringOverrides?: ProfitAndLossDetailReportProps['stringOverrides'];
848
856
  }
@@ -933,17 +941,21 @@ declare interface ProjectProfitabilityProps {
933
941
  valueOptions: TagOption[];
934
942
  showTitle?: boolean;
935
943
  stringOverrides?: ProjectsStringOverrides;
936
- datePickerMode?: DateRangePickerMode;
944
+ /**
945
+ * @deprecated This property is no longer used. Use `dateSelectionMode` instead.
946
+ */
947
+ datePickerMode?: unknown;
948
+ dateSelectionMode?: DateRangePickerMode;
937
949
  csvMoneyFormat?: MoneyFormat;
938
950
  }
939
951
 
940
- export declare const ProjectProfitabilityView: ({ valueOptions, showTitle, stringOverrides, datePickerMode, csvMoneyFormat, }: ProjectProfitabilityProps) => JSX_2.Element;
952
+ export declare const ProjectProfitabilityView: ({ valueOptions, showTitle, stringOverrides, dateSelectionMode, csvMoneyFormat, }: ProjectProfitabilityProps) => JSX_2.Element;
941
953
 
942
954
  declare interface ProjectsStringOverrides {
943
955
  title?: string;
944
956
  }
945
957
 
946
- declare type Props = PropsWithChildren & {
958
+ declare type Props = PropsWithChildren<{
947
959
  tagFilter?: {
948
960
  key: string;
949
961
  values: string[];
@@ -951,8 +963,7 @@ declare type Props = PropsWithChildren & {
951
963
  comparisonConfig?: ProfitAndLossCompareConfig;
952
964
  reportingBasis?: ReportingBasis;
953
965
  asContainer?: boolean;
954
- withReportsModeProvider?: boolean;
955
- };
966
+ }>;
956
967
 
957
968
  declare interface Props_2 {
958
969
  forceRerenderOnDataChange?: boolean;
@@ -962,8 +973,6 @@ declare interface Props_2 {
962
973
  };
963
974
  }
964
975
 
965
- declare const _RANGE_PICKER_MODES: readonly ["dayRangePicker", "monthPicker", "monthRangePicker", "yearPicker"];
966
-
967
976
  declare interface RelatedEntityLinkingMetadata {
968
977
  id: string;
969
978
  entityName: EntityName;
@@ -1080,20 +1089,20 @@ declare type TimeRangePickerConfig = {
1080
1089
  /**
1081
1090
  * @deprecated This property is no longer used. Use `dateSelectionMode` instead.
1082
1091
  */
1083
- datePickerMode?: DateRangePickerMode;
1092
+ datePickerMode?: unknown;
1084
1093
  /**
1085
1094
  * @deprecated This property is no longer used. Use `dateSelectionMode` instead.
1086
1095
  */
1087
- defaultDatePickerMode?: DateRangePickerMode;
1096
+ defaultDatePickerMode?: unknown;
1088
1097
  /**
1089
1098
  * @deprecated This property is no longer used. Use `dateSelectionMode` instead.
1090
1099
  */
1091
- allowedDatePickerModes?: ReadonlyArray<DateRangePickerMode>;
1100
+ allowedDatePickerModes?: unknown;
1092
1101
  /**
1093
1102
  * @deprecated This property is no longer used. Use `dateSelectionMode` instead.
1094
1103
  */
1095
- customDateRanges?: CustomDateRange[];
1096
- dateSelectionMode?: 'month' | 'full';
1104
+ customDateRanges?: unknown;
1105
+ dateSelectionMode?: DateRangePickerMode;
1097
1106
  csvMoneyFormat?: MoneyFormat;
1098
1107
  };
1099
1108
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerfi/components",
3
- "version": "0.1.114-alpha",
3
+ "version": "0.1.114-alpha.2",
4
4
  "description": "Layer React Components",
5
5
  "main": "dist/cjs/index.cjs",
6
6
  "module": "dist/esm/index.mjs",
@@ -58,7 +58,6 @@
58
58
  "@types/node": "^24.9.0",
59
59
  "@types/pluralize": "^0.0.33",
60
60
  "@types/react": "^18.2.0",
61
- "@types/react-datepicker": "^6.2.0",
62
61
  "@types/react-dom": "^18.2.0",
63
62
  "@vitejs/plugin-react": "^5.0.4",
64
63
  "eslint": "^9.26.0",
@@ -101,11 +100,11 @@
101
100
  "libphonenumber-js": "^1.12.7",
102
101
  "lodash-es": "^4.17.21",
103
102
  "lucide-react": "^0.507.0",
103
+ "motion": "^12.23.11",
104
104
  "pluralize": "^8.0.0",
105
105
  "react-aria-components": "^1.8.0",
106
106
  "react-calendly": "^4.4.0",
107
107
  "react-currency-input-field": "^3.10.0",
108
- "react-datepicker": "^6.9.0",
109
108
  "react-dropzone": "^14.3.8",
110
109
  "react-merge-refs": "^3.0.2",
111
110
  "react-plaid-link": "^4.0.1",
@@ -116,4 +115,4 @@
116
115
  "uuid": "^11.1.0",
117
116
  "zustand": "^5.0.4"
118
117
  }
119
- }
118
+ }