@layerfi/components 0.1.113 → 0.1.114-alpha.1
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/cjs/index.cjs +3691 -3982
- package/dist/esm/index.mjs +3696 -3970
- package/dist/index.css +2732 -4040
- package/dist/index.d.ts +25 -10
- package/package.json +9 -5
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;
|
|
@@ -374,12 +378,6 @@ declare type CommonProfitAndLossSummariesProps = {
|
|
|
374
378
|
vertical?: boolean;
|
|
375
379
|
};
|
|
376
380
|
|
|
377
|
-
declare type CustomDateRange = {
|
|
378
|
-
label: string;
|
|
379
|
-
startDate: Date;
|
|
380
|
-
endDate: Date;
|
|
381
|
-
};
|
|
382
|
-
|
|
383
381
|
declare enum DataModel {
|
|
384
382
|
BUSINESS = "BUSINESS",
|
|
385
383
|
BALANCE_SHEET = "BALANCE_SHEET",
|
|
@@ -405,6 +403,11 @@ declare type DeepPartial<T> = {
|
|
|
405
403
|
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
|
|
406
404
|
};
|
|
407
405
|
|
|
406
|
+
declare interface DetailedChartStringOverrides {
|
|
407
|
+
expenseChartHeader?: string;
|
|
408
|
+
revenueChartHeader?: string;
|
|
409
|
+
}
|
|
410
|
+
|
|
408
411
|
declare interface DetailedTableStringOverrides {
|
|
409
412
|
categoryColumnHeader?: string;
|
|
410
413
|
typeColumnHeader?: string;
|
|
@@ -832,8 +835,8 @@ export declare const ProfitAndLoss: {
|
|
|
832
835
|
chartColorsList?: string[];
|
|
833
836
|
stringOverrides?: ProfitAndLossDetailedChartsStringOverrides;
|
|
834
837
|
}) => JSX_2.Element;
|
|
835
|
-
Header: ({ text, className, headingClassName, withDatePicker, withDownloadButton, withStatus, stringOverrides, }: ProfitAndLossHeaderProps) => JSX_2.Element;
|
|
836
|
-
Report: ({ stringOverrides,
|
|
838
|
+
Header: ({ text, className, headingClassName, withDatePicker, withDownloadButton, withStatus, stringOverrides, dateSelectionMode, }: ProfitAndLossHeaderProps) => JSX_2.Element;
|
|
839
|
+
Report: ({ stringOverrides, dateSelectionMode, csvMoneyFormat, view, renderInAppLink, hideHeader, }: ProfitAndLossReportProps) => JSX_2.Element;
|
|
837
840
|
};
|
|
838
841
|
|
|
839
842
|
declare interface ProfitAndLossCompareConfig {
|
|
@@ -843,6 +846,7 @@ declare interface ProfitAndLossCompareConfig {
|
|
|
843
846
|
}
|
|
844
847
|
|
|
845
848
|
declare interface ProfitAndLossDetailedChartsStringOverrides {
|
|
849
|
+
detailedChartStringOverrides?: DetailedChartStringOverrides;
|
|
846
850
|
detailedTableStringOverrides?: DetailedTableStringOverrides;
|
|
847
851
|
detailReportStringOverrides?: ProfitAndLossDetailReportProps['stringOverrides'];
|
|
848
852
|
}
|
|
@@ -882,6 +886,7 @@ declare interface ProfitAndLossHeaderProps {
|
|
|
882
886
|
withDatePicker?: boolean;
|
|
883
887
|
withDownloadButton?: boolean;
|
|
884
888
|
withStatus?: boolean;
|
|
889
|
+
dateSelectionMode?: 'month' | 'full';
|
|
885
890
|
}
|
|
886
891
|
|
|
887
892
|
declare interface ProfitAndLossHeaderStringOverrides {
|
|
@@ -1077,13 +1082,23 @@ declare interface TasksStringOverrides {
|
|
|
1077
1082
|
|
|
1078
1083
|
declare type TimeRangePickerConfig = {
|
|
1079
1084
|
/**
|
|
1080
|
-
* @deprecated Use `
|
|
1085
|
+
* @deprecated This property is no longer used. Use `dateSelectionMode` instead.
|
|
1081
1086
|
*/
|
|
1082
1087
|
datePickerMode?: DateRangePickerMode;
|
|
1088
|
+
/**
|
|
1089
|
+
* @deprecated This property is no longer used. Use `dateSelectionMode` instead.
|
|
1090
|
+
*/
|
|
1083
1091
|
defaultDatePickerMode?: DateRangePickerMode;
|
|
1092
|
+
/**
|
|
1093
|
+
* @deprecated This property is no longer used. Use `dateSelectionMode` instead.
|
|
1094
|
+
*/
|
|
1084
1095
|
allowedDatePickerModes?: ReadonlyArray<DateRangePickerMode>;
|
|
1096
|
+
/**
|
|
1097
|
+
* @deprecated This property is no longer used. Use `dateSelectionMode` instead.
|
|
1098
|
+
*/
|
|
1099
|
+
customDateRanges?: unknown;
|
|
1100
|
+
dateSelectionMode?: 'month' | 'full';
|
|
1085
1101
|
csvMoneyFormat?: MoneyFormat;
|
|
1086
|
-
customDateRanges?: CustomDateRange[];
|
|
1087
1102
|
};
|
|
1088
1103
|
|
|
1089
1104
|
declare interface ToastProps {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerfi/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.114-alpha.1",
|
|
4
4
|
"description": "Layer React Components",
|
|
5
5
|
"main": "dist/cjs/index.cjs",
|
|
6
6
|
"module": "dist/esm/index.mjs",
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"lint:eslint": "eslint .",
|
|
29
29
|
"lint:stylelint": "stylelint '**/*.{css,scss}'",
|
|
30
30
|
"clear:react": "rm -rf ./node_modules/react && rm -rf ./node_modules/react-dom",
|
|
31
|
-
"prepare": "husky"
|
|
31
|
+
"prepare": "husky",
|
|
32
|
+
"migrate:aliases": "tsx scripts/migrate-import-aliases.ts"
|
|
32
33
|
},
|
|
33
34
|
"repository": {
|
|
34
35
|
"type": "git",
|
|
@@ -57,10 +58,11 @@
|
|
|
57
58
|
"@types/node": "^24.9.0",
|
|
58
59
|
"@types/pluralize": "^0.0.33",
|
|
59
60
|
"@types/react": "^18.2.0",
|
|
60
|
-
"@types/react-datepicker": "^6.2.0",
|
|
61
61
|
"@types/react-dom": "^18.2.0",
|
|
62
62
|
"@vitejs/plugin-react": "^5.0.4",
|
|
63
63
|
"eslint": "^9.26.0",
|
|
64
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
65
|
+
"eslint-plugin-import": "^2.32.0",
|
|
64
66
|
"eslint-plugin-react": "^7.37.5",
|
|
65
67
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
66
68
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
@@ -73,10 +75,13 @@
|
|
|
73
75
|
"stylelint-config-standard": "^38.0.0",
|
|
74
76
|
"stylelint-config-standard-scss": "^15.0.1",
|
|
75
77
|
"stylelint-order": "^7.0.0",
|
|
78
|
+
"ts-morph": "^27.0.2",
|
|
79
|
+
"tsx": "^4.20.6",
|
|
76
80
|
"typescript": "^5.8.3",
|
|
77
81
|
"typescript-eslint": "^8.32.0",
|
|
78
82
|
"vite": "^6.4.0",
|
|
79
|
-
"vite-plugin-dts": "^4.5.4"
|
|
83
|
+
"vite-plugin-dts": "^4.5.4",
|
|
84
|
+
"vite-tsconfig-paths": "^5.1.4"
|
|
80
85
|
},
|
|
81
86
|
"lint-staged": {
|
|
82
87
|
"*.{css,scss}": "stylelint --fix"
|
|
@@ -99,7 +104,6 @@
|
|
|
99
104
|
"react-aria-components": "^1.8.0",
|
|
100
105
|
"react-calendly": "^4.4.0",
|
|
101
106
|
"react-currency-input-field": "^3.10.0",
|
|
102
|
-
"react-datepicker": "^6.9.0",
|
|
103
107
|
"react-dropzone": "^14.3.8",
|
|
104
108
|
"react-merge-refs": "^3.0.2",
|
|
105
109
|
"react-plaid-link": "^4.0.1",
|