@layerfi/components 0.1.114-alpha.1 → 0.1.114-alpha.3

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
@@ -96,6 +96,7 @@ declare type BalanceSheetProps = PropsWithChildren<{
96
96
  effectiveDate?: Date;
97
97
  asWidget?: boolean;
98
98
  stringOverrides?: BalanceSheetStringOverrides;
99
+ dateSelectionMode?: 'month' | 'full';
99
100
  }>;
100
101
 
101
102
  declare interface BalanceSheetStringOverrides {
@@ -394,7 +395,7 @@ declare type DateRange<T = Date> = {
394
395
  endDate: T;
395
396
  };
396
397
 
397
- declare type DateRangePickerMode = typeof _RANGE_PICKER_MODES[number];
398
+ declare type DateRangePickerMode = 'full' | 'month';
398
399
 
399
400
  /**
400
401
  * Utility type for creating deep partial types - makes all properties optional recursively
@@ -825,7 +826,7 @@ declare type PlatformOnboardingProps = {
825
826
  };
826
827
 
827
828
  export declare const ProfitAndLoss: {
828
- ({ withReportsModeProvider, ...restProps }: Props): JSX_2.Element;
829
+ ({ children, tagFilter, comparisonConfig, reportingBasis, asContainer, }: Props): JSX_2.Element;
829
830
  Chart: ({ forceRerenderOnDataChange, tagFilter, }: Props_2) => JSX_2.Element;
830
831
  Summaries: typeof ProfitAndLossSummaries;
831
832
  DetailedCharts: ({ scope, hideClose, showDatePicker, chartColorsList, stringOverrides, }: {
@@ -842,6 +843,9 @@ export declare const ProfitAndLoss: {
842
843
  declare interface ProfitAndLossCompareConfig {
843
844
  tagComparisonOptions: TagComparisonOption[];
844
845
  defaultTagFilter: TagComparisonOption;
846
+ /**
847
+ * @deprecated This is a deprecated property - the number of periods to compare is derived from the date range.
848
+ */
845
849
  defaultPeriods?: number;
846
850
  }
847
851
 
@@ -937,17 +941,21 @@ declare interface ProjectProfitabilityProps {
937
941
  valueOptions: TagOption[];
938
942
  showTitle?: boolean;
939
943
  stringOverrides?: ProjectsStringOverrides;
940
- datePickerMode?: DateRangePickerMode;
944
+ /**
945
+ * @deprecated This property is no longer used. Use `dateSelectionMode` instead.
946
+ */
947
+ datePickerMode?: unknown;
948
+ dateSelectionMode?: DateRangePickerMode;
941
949
  csvMoneyFormat?: MoneyFormat;
942
950
  }
943
951
 
944
- 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;
945
953
 
946
954
  declare interface ProjectsStringOverrides {
947
955
  title?: string;
948
956
  }
949
957
 
950
- declare type Props = PropsWithChildren & {
958
+ declare type Props = PropsWithChildren<{
951
959
  tagFilter?: {
952
960
  key: string;
953
961
  values: string[];
@@ -955,8 +963,7 @@ declare type Props = PropsWithChildren & {
955
963
  comparisonConfig?: ProfitAndLossCompareConfig;
956
964
  reportingBasis?: ReportingBasis;
957
965
  asContainer?: boolean;
958
- withReportsModeProvider?: boolean;
959
- };
966
+ }>;
960
967
 
961
968
  declare interface Props_2 {
962
969
  forceRerenderOnDataChange?: boolean;
@@ -966,8 +973,6 @@ declare interface Props_2 {
966
973
  };
967
974
  }
968
975
 
969
- declare const _RANGE_PICKER_MODES: readonly ["dayRangePicker", "monthPicker", "monthRangePicker", "yearPicker"];
970
-
971
976
  declare interface RelatedEntityLinkingMetadata {
972
977
  id: string;
973
978
  entityName: EntityName;
@@ -1084,20 +1089,20 @@ declare type TimeRangePickerConfig = {
1084
1089
  /**
1085
1090
  * @deprecated This property is no longer used. Use `dateSelectionMode` instead.
1086
1091
  */
1087
- datePickerMode?: DateRangePickerMode;
1092
+ datePickerMode?: unknown;
1088
1093
  /**
1089
1094
  * @deprecated This property is no longer used. Use `dateSelectionMode` instead.
1090
1095
  */
1091
- defaultDatePickerMode?: DateRangePickerMode;
1096
+ defaultDatePickerMode?: unknown;
1092
1097
  /**
1093
1098
  * @deprecated This property is no longer used. Use `dateSelectionMode` instead.
1094
1099
  */
1095
- allowedDatePickerModes?: ReadonlyArray<DateRangePickerMode>;
1100
+ allowedDatePickerModes?: unknown;
1096
1101
  /**
1097
1102
  * @deprecated This property is no longer used. Use `dateSelectionMode` instead.
1098
1103
  */
1099
1104
  customDateRanges?: unknown;
1100
- dateSelectionMode?: 'month' | 'full';
1105
+ dateSelectionMode?: DateRangePickerMode;
1101
1106
  csvMoneyFormat?: MoneyFormat;
1102
1107
  };
1103
1108
 
@@ -1113,6 +1118,10 @@ declare type UnknownEnumValue = string & Record<never, never>;
1113
1118
 
1114
1119
  export declare const unstable_BillsView: (props: BillsViewProps) => JSX_2.Element;
1115
1120
 
1121
+ export declare const unstable_MileageTracking: ({ showTitle }: {
1122
+ showTitle?: boolean;
1123
+ }) => JSX_2.Element;
1124
+
1116
1125
  export declare const unstable_UnifiedReports: () => JSX_2.Element;
1117
1126
 
1118
1127
  declare const US_STATES: readonly [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerfi/components",
3
- "version": "0.1.114-alpha.1",
3
+ "version": "0.1.114-alpha.3",
4
4
  "description": "Layer React Components",
5
5
  "main": "dist/cjs/index.cjs",
6
6
  "module": "dist/esm/index.mjs",
@@ -65,6 +65,7 @@
65
65
  "eslint-plugin-import": "^2.32.0",
66
66
  "eslint-plugin-react": "^7.37.5",
67
67
  "eslint-plugin-react-hooks": "^5.2.0",
68
+ "eslint-plugin-simple-import-sort": "^12.1.1",
68
69
  "eslint-plugin-unused-imports": "^4.1.4",
69
70
  "husky": "^9.1.7",
70
71
  "lint-staged": "^16.2.3",
@@ -100,6 +101,7 @@
100
101
  "libphonenumber-js": "^1.12.7",
101
102
  "lodash-es": "^4.17.21",
102
103
  "lucide-react": "^0.507.0",
104
+ "motion": "^12.23.11",
103
105
  "pluralize": "^8.0.0",
104
106
  "react-aria-components": "^1.8.0",
105
107
  "react-calendly": "^4.4.0",
@@ -114,4 +116,4 @@
114
116
  "uuid": "^11.1.0",
115
117
  "zustand": "^5.0.4"
116
118
  }
117
- }
119
+ }