@layerfi/components 0.1.130 → 0.1.131
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 +7997 -7361
- package/dist/esm/index.mjs +7962 -7327
- package/dist/index.css +860 -746
- package/dist/index.d.ts +48 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -284,6 +284,10 @@ declare const BusinessSchema: Schema.Struct<{
|
|
|
284
284
|
activationAt: Schema.PropertySignature<":", Date, "activation_at", ":", string, false, never>;
|
|
285
285
|
}>;
|
|
286
286
|
|
|
287
|
+
declare type CardStringOverrides = {
|
|
288
|
+
header?: string;
|
|
289
|
+
};
|
|
290
|
+
|
|
287
291
|
export declare const ChartOfAccounts: (props: ChartOfAccountsProps) => JSX_2.Element;
|
|
288
292
|
|
|
289
293
|
declare interface ChartOfAccountsFormStringOverrides {
|
|
@@ -814,14 +818,16 @@ declare type OnboardingStep = undefined | 'connectAccount' | 'complete';
|
|
|
814
818
|
|
|
815
819
|
export declare const ProfitAndLoss: {
|
|
816
820
|
({ children, tagFilter, comparisonConfig, reportingBasis, asContainer, }: Props): JSX_2.Element;
|
|
817
|
-
Chart: ({ tagFilter }: ProfitAndLossChartProps) => JSX_2.Element;
|
|
821
|
+
Chart: ({ tagFilter, hideLegend }: ProfitAndLossChartProps) => JSX_2.Element;
|
|
818
822
|
Summaries: typeof ProfitAndLossSummaries;
|
|
819
|
-
DetailedCharts: ({ scope, hideClose, showDatePicker, chartColorsList, stringOverrides, }: {
|
|
823
|
+
DetailedCharts: ({ scope, hideClose, hideHeader, showDatePicker, chartColorsList, stringOverrides, slotProps, }: {
|
|
820
824
|
scope?: SidebarScope;
|
|
821
825
|
hideClose?: boolean;
|
|
826
|
+
hideHeader?: boolean;
|
|
822
827
|
showDatePicker?: boolean;
|
|
823
828
|
chartColorsList?: string[];
|
|
824
829
|
stringOverrides?: ProfitAndLossDetailedChartsStringOverrides;
|
|
830
|
+
slotProps?: ProfitAndLossDetailedChartsSlotProps;
|
|
825
831
|
}) => JSX_2.Element;
|
|
826
832
|
Header: ({ text, className, headingClassName, withDatePicker, withDownloadButton, withStatus, stringOverrides, dateSelectionMode, }: ProfitAndLossHeaderProps) => JSX_2.Element;
|
|
827
833
|
Report: ({ stringOverrides, dateSelectionMode, csvMoneyFormat, view, renderInAppLink, hideHeader, }: ProfitAndLossReportProps) => JSX_2.Element;
|
|
@@ -832,6 +838,7 @@ declare interface ProfitAndLossChartProps {
|
|
|
832
838
|
key: string;
|
|
833
839
|
values: string[];
|
|
834
840
|
};
|
|
841
|
+
hideLegend?: boolean;
|
|
835
842
|
}
|
|
836
843
|
|
|
837
844
|
declare type ProfitAndLossCompareConfig = ProfitAndLossCompareConfigBase & ({
|
|
@@ -852,6 +859,12 @@ declare type ProfitAndLossCompareConfigBase = {
|
|
|
852
859
|
defaultPeriods?: number;
|
|
853
860
|
};
|
|
854
861
|
|
|
862
|
+
declare interface ProfitAndLossDetailedChartsSlotProps {
|
|
863
|
+
detailedTable?: {
|
|
864
|
+
showTypeColumn?: boolean;
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
|
|
855
868
|
declare interface ProfitAndLossDetailedChartsStringOverrides {
|
|
856
869
|
detailedChartStringOverrides?: DetailedChartStringOverrides;
|
|
857
870
|
detailedTableStringOverrides?: DetailedTableStringOverrides;
|
|
@@ -1012,6 +1025,35 @@ declare const _SIZE_VARIANTS: readonly ["sm", "lg"];
|
|
|
1012
1025
|
|
|
1013
1026
|
declare type SizeVariant = (typeof _SIZE_VARIANTS)[number];
|
|
1014
1027
|
|
|
1028
|
+
declare interface SolopreneurOverviewProps {
|
|
1029
|
+
showTitle?: boolean;
|
|
1030
|
+
enableOnboarding?: boolean;
|
|
1031
|
+
onboardingStepOverride?: OnboardingStep;
|
|
1032
|
+
onTransactionsToReviewClick?: () => void;
|
|
1033
|
+
middleBanner?: ReactNode;
|
|
1034
|
+
chartColorsList?: string[];
|
|
1035
|
+
stringOverrides?: SolopreneurOverviewStringOverrides;
|
|
1036
|
+
tagFilter?: TagOption;
|
|
1037
|
+
slotProps?: {
|
|
1038
|
+
profitAndLoss?: {
|
|
1039
|
+
summaries?: {
|
|
1040
|
+
variants?: Variants;
|
|
1041
|
+
};
|
|
1042
|
+
};
|
|
1043
|
+
};
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
declare interface SolopreneurOverviewStringOverrides {
|
|
1047
|
+
title?: string;
|
|
1048
|
+
profitAndLossSummaries?: ProfitAndLossSummariesStringOverrides;
|
|
1049
|
+
cards?: {
|
|
1050
|
+
profitAndLoss?: CardStringOverrides;
|
|
1051
|
+
expenses?: CardStringOverrides;
|
|
1052
|
+
taxEstimates?: CardStringOverrides;
|
|
1053
|
+
mileageTracking?: CardStringOverrides;
|
|
1054
|
+
};
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1015
1057
|
declare interface SourceDetailStringOverrides {
|
|
1016
1058
|
sourceLabel?: string;
|
|
1017
1059
|
accountNameLabel?: string;
|
|
@@ -1093,7 +1135,8 @@ declare type TaxEstimatesContextProviderProps = PropsWithChildren<{
|
|
|
1093
1135
|
declare type TaxEstimatesProps = TaxEstimatesContextProviderProps;
|
|
1094
1136
|
|
|
1095
1137
|
declare type TaxEstimatesReviewTransactionsPayload = {
|
|
1096
|
-
|
|
1138
|
+
uncategorizedMoneyIn: number;
|
|
1139
|
+
uncategorizedMoneyOut: number;
|
|
1097
1140
|
uncategorizedTransactionCount: number;
|
|
1098
1141
|
};
|
|
1099
1142
|
|
|
@@ -1152,6 +1195,8 @@ export declare const unstable_MileageTracking: ({ showTitle }: {
|
|
|
1152
1195
|
showTitle?: boolean;
|
|
1153
1196
|
}) => JSX_2.Element;
|
|
1154
1197
|
|
|
1198
|
+
export declare const unstable_SolopreneurOverview: ({ showTitle, enableOnboarding, onboardingStepOverride, onTransactionsToReviewClick, middleBanner, chartColorsList, stringOverrides, tagFilter, slotProps, }: SolopreneurOverviewProps) => JSX_2.Element;
|
|
1199
|
+
|
|
1155
1200
|
export declare const unstable_TaxEstimates: ({ onClickReviewTransactions: onReviewClicked }: TaxEstimatesProps) => JSX_2.Element;
|
|
1156
1201
|
|
|
1157
1202
|
export declare const useLayerContext: () => LayerContextShape;
|