@layerfi/components 0.1.132-alpha.1 → 0.1.132-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/cjs/index.cjs +591 -534
- package/dist/esm/index.mjs +591 -534
- package/dist/index.css +59 -26
- package/dist/index.d.ts +30 -23
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -4202,6 +4202,16 @@ tbody .Layer__table__empty-row:first-child {
|
|
|
4202
4202
|
color: var(--color-base-500);
|
|
4203
4203
|
}
|
|
4204
4204
|
|
|
4205
|
+
.Layer__data-state--reset {
|
|
4206
|
+
gap: var(--spacing-xs);
|
|
4207
|
+
}
|
|
4208
|
+
.Layer__data-state--reset .Layer__data-state__description {
|
|
4209
|
+
margin-bottom: 0;
|
|
4210
|
+
}
|
|
4211
|
+
.Layer__data-state--reset .Layer__data-state__icon {
|
|
4212
|
+
margin-bottom: 0;
|
|
4213
|
+
}
|
|
4214
|
+
|
|
4205
4215
|
.Layer__data-state--inline {
|
|
4206
4216
|
flex-direction: row;
|
|
4207
4217
|
gap: var(--spacing-xs);
|
|
@@ -7945,7 +7955,6 @@ tbody .Layer__table__empty-row:first-child {
|
|
|
7945
7955
|
border-radius: 2px;
|
|
7946
7956
|
}
|
|
7947
7957
|
.Layer__DetailedTable__Column--percent {
|
|
7948
|
-
width: 4ch;
|
|
7949
7958
|
padding-left: 0;
|
|
7950
7959
|
text-align: right;
|
|
7951
7960
|
}
|
|
@@ -8110,6 +8119,11 @@ tbody .Layer__table__empty-row:first-child {
|
|
|
8110
8119
|
.Layer__ProfitAndLossDetailedChartsHeader--desktop .Layer__ProfitAndLossDetailedChartsHeader__date {
|
|
8111
8120
|
display: none;
|
|
8112
8121
|
}
|
|
8122
|
+
}.Layer__ProfitAndLossDetailedCharts .recharts-wrapper:focus,
|
|
8123
|
+
.Layer__ProfitAndLossDetailedCharts .recharts-wrapper :focus,
|
|
8124
|
+
.Layer__ProfitAndLossDetailedCharts .recharts-surface:focus,
|
|
8125
|
+
.Layer__ProfitAndLossDetailedCharts .recharts-bar-rectangle:focus {
|
|
8126
|
+
outline: none;
|
|
8113
8127
|
}.Layer__GlobalDateRangeSelection {
|
|
8114
8128
|
display: grid;
|
|
8115
8129
|
grid-template-columns: repeat(3, minmax(10rem, 1fr));
|
|
@@ -9233,6 +9247,7 @@ tbody .Layer__table__empty-row:first-child {
|
|
|
9233
9247
|
}.Layer__UI__Banner {
|
|
9234
9248
|
box-sizing: border-box;
|
|
9235
9249
|
min-height: 56px;
|
|
9250
|
+
width: 100%;
|
|
9236
9251
|
padding: var(--spacing-sm) var(--spacing-md);
|
|
9237
9252
|
border-radius: var(--border-radius-sm);
|
|
9238
9253
|
border: 1px solid var(--banner-border-color);
|
|
@@ -9581,7 +9596,13 @@ tbody .Layer__table__empty-row:first-child {
|
|
|
9581
9596
|
.Layer__CallBooking__JoinAction {
|
|
9582
9597
|
flex: 1 1 100%;
|
|
9583
9598
|
}
|
|
9584
|
-
}.Layer__MileageDeductionChart .recharts-
|
|
9599
|
+
}.Layer__MileageDeductionChart .recharts-wrapper:focus,
|
|
9600
|
+
.Layer__MileageDeductionChart .recharts-wrapper :focus,
|
|
9601
|
+
.Layer__MileageDeductionChart .recharts-surface:focus,
|
|
9602
|
+
.Layer__MileageDeductionChart .recharts-bar-rectangle:focus {
|
|
9603
|
+
outline: none;
|
|
9604
|
+
}
|
|
9605
|
+
.Layer__MileageDeductionChart .recharts-responsive-container {
|
|
9585
9606
|
box-sizing: border-box;
|
|
9586
9607
|
padding: 0;
|
|
9587
9608
|
}
|
|
@@ -9734,10 +9755,6 @@ tbody .Layer__table__empty-row:first-child {
|
|
|
9734
9755
|
.Layer__SummaryCard__HeaderLegend {
|
|
9735
9756
|
min-inline-size: 0;
|
|
9736
9757
|
}
|
|
9737
|
-
.Layer__SummaryCard__HeaderPrimaryAction {
|
|
9738
|
-
flex-shrink: 0;
|
|
9739
|
-
min-inline-size: 0;
|
|
9740
|
-
}
|
|
9741
9758
|
.Layer__SummaryCard__Content {
|
|
9742
9759
|
box-sizing: border-box;
|
|
9743
9760
|
flex: 1 1 auto;
|
|
@@ -9772,7 +9789,7 @@ tbody .Layer__table__empty-row:first-child {
|
|
|
9772
9789
|
.Layer__ExpensesSummaryCard .Layer__profit-and-loss-detailed-charts__content {
|
|
9773
9790
|
display: flex;
|
|
9774
9791
|
align-items: stretch;
|
|
9775
|
-
justify-content:
|
|
9792
|
+
justify-content: start;
|
|
9776
9793
|
overflow: hidden;
|
|
9777
9794
|
}
|
|
9778
9795
|
.Layer__ExpensesSummaryCard .Layer__profit-and-loss-detailed-charts__content > .Layer__DetailedChart {
|
|
@@ -9780,12 +9797,13 @@ tbody .Layer__table__empty-row:first-child {
|
|
|
9780
9797
|
inline-size: auto;
|
|
9781
9798
|
min-inline-size: 14rem;
|
|
9782
9799
|
max-inline-size: 18rem;
|
|
9800
|
+
margin-inline: auto;
|
|
9783
9801
|
}
|
|
9784
9802
|
.Layer__ExpensesSummaryCard .Layer__profit-and-loss-detailed-charts__content > .Layer__DetailedTable {
|
|
9785
|
-
flex: unset;
|
|
9786
9803
|
overflow-x: hidden;
|
|
9787
9804
|
overflow-y: auto;
|
|
9788
9805
|
min-block-size: 0;
|
|
9806
|
+
inline-size: 100%;
|
|
9789
9807
|
min-inline-size: 0;
|
|
9790
9808
|
}
|
|
9791
9809
|
@media (width <= 767px) {
|
|
@@ -9806,25 +9824,20 @@ tbody .Layer__table__empty-row:first-child {
|
|
|
9806
9824
|
border-block-end: 0;
|
|
9807
9825
|
}
|
|
9808
9826
|
.Layer__ExpensesSummaryCard .Layer__profit-and-loss-detailed-charts .Layer__DetailedChart__container {
|
|
9809
|
-
padding-
|
|
9810
|
-
padding-inline
|
|
9827
|
+
transition: padding 0.2s ease-in-out;
|
|
9828
|
+
padding-inline: var(--spacing-md);
|
|
9829
|
+
}
|
|
9830
|
+
@media (width <= 767px) {
|
|
9831
|
+
.Layer__ExpensesSummaryCard .Layer__profit-and-loss-detailed-charts .Layer__DetailedChart__container {
|
|
9832
|
+
padding-inline: 0;
|
|
9833
|
+
}
|
|
9811
9834
|
}
|
|
9812
9835
|
.Layer__ExpensesSummaryCard .Layer__DetailedTable {
|
|
9813
9836
|
min-inline-size: 10rem;
|
|
9814
9837
|
}
|
|
9815
9838
|
.Layer__ExpensesSummaryCard .Layer__DetailedTable__container {
|
|
9816
9839
|
padding-inline: 0;
|
|
9817
|
-
}.
|
|
9818
|
-
box-sizing: border-box;
|
|
9819
|
-
padding: var(--spacing-lg);
|
|
9820
|
-
border-bottom: 1px solid var(--color-base-300);
|
|
9821
|
-
}
|
|
9822
|
-
|
|
9823
|
-
.Layer__MileageTrackingSummary__Content {
|
|
9824
|
-
padding: var(--spacing-lg);
|
|
9825
|
-
}
|
|
9826
|
-
|
|
9827
|
-
.Layer__MileageTrackingSummary__Cards {
|
|
9840
|
+
}.Layer__MileageTrackingSummary__Cards {
|
|
9828
9841
|
min-width: 12rem;
|
|
9829
9842
|
}
|
|
9830
9843
|
|
|
@@ -9860,10 +9873,18 @@ tbody .Layer__table__empty-row:first-child {
|
|
|
9860
9873
|
background-size: 4px 4px;
|
|
9861
9874
|
}.Layer__ProfitAndLossSummaryCard .Layer__chart-wrapper,
|
|
9862
9875
|
.Layer__ProfitAndLossSummaryCard .Layer__chart-container {
|
|
9876
|
+
height: 100%;
|
|
9863
9877
|
min-block-size: 15.625rem;
|
|
9864
9878
|
}
|
|
9865
9879
|
.Layer__ProfitAndLossSummaryCard div.recharts-responsive-container.Layer__chart-container {
|
|
9866
9880
|
padding-block-start: var(--spacing-xs);
|
|
9881
|
+
}
|
|
9882
|
+
@media (width <= 760px) {
|
|
9883
|
+
.Layer__ProfitAndLossSummaryCard .Layer__chart-wrapper {
|
|
9884
|
+
height: unset;
|
|
9885
|
+
}
|
|
9886
|
+
}.Layer__SolopreneurLayout__OnboardingBanner {
|
|
9887
|
+
max-width: 1406px;
|
|
9867
9888
|
}.Layer__Swatch {
|
|
9868
9889
|
flex-shrink: 0;
|
|
9869
9890
|
block-size: 0.625rem;
|
|
@@ -9904,6 +9925,12 @@ tbody .Layer__table__empty-row:first-child {
|
|
|
9904
9925
|
container: horizontal-bar-chart/inline-size;
|
|
9905
9926
|
inline-size: 100%;
|
|
9906
9927
|
}
|
|
9928
|
+
.Layer__HorizontalBarChart .recharts-wrapper:focus,
|
|
9929
|
+
.Layer__HorizontalBarChart .recharts-wrapper :focus,
|
|
9930
|
+
.Layer__HorizontalBarChart .recharts-surface:focus,
|
|
9931
|
+
.Layer__HorizontalBarChart .recharts-bar-rectangle:focus {
|
|
9932
|
+
outline: none;
|
|
9933
|
+
}
|
|
9907
9934
|
|
|
9908
9935
|
.Layer__HorizontalBarChart__Bar {
|
|
9909
9936
|
block-size: 1.5rem;
|
|
@@ -9968,7 +9995,6 @@ tbody .Layer__table__empty-row:first-child {
|
|
|
9968
9995
|
}
|
|
9969
9996
|
.Layer__TaxEstimatesSummaryCard.Layer__card {
|
|
9970
9997
|
gap: var(--spacing-lg);
|
|
9971
|
-
padding: var(--spacing-lg);
|
|
9972
9998
|
border: 1px solid var(--color-base-200);
|
|
9973
9999
|
box-shadow: none;
|
|
9974
10000
|
}
|
|
@@ -10002,6 +10028,16 @@ tbody .Layer__table__empty-row:first-child {
|
|
|
10002
10028
|
}
|
|
10003
10029
|
.Layer__TaxEstimatesSummaryCard--summaryCard .Layer__TaxEstimatesSummaryCard__Content {
|
|
10004
10030
|
align-items: center;
|
|
10031
|
+
}
|
|
10032
|
+
.Layer__TaxEstimatesSummaryCard__DataState {
|
|
10033
|
+
height: 100%;
|
|
10034
|
+
min-height: 15rem;
|
|
10035
|
+
margin: 0 auto;
|
|
10036
|
+
}
|
|
10037
|
+
@media (width >= 760px) {
|
|
10038
|
+
.Layer__TaxEstimatesSummaryCard__DataState {
|
|
10039
|
+
max-width: 30rem;
|
|
10040
|
+
}
|
|
10005
10041
|
}.Layer__SolopreneurOverview__Grid {
|
|
10006
10042
|
display: grid;
|
|
10007
10043
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
@@ -10099,10 +10135,7 @@ tbody .Layer__table__empty-row:first-child {
|
|
|
10099
10135
|
flex-wrap: wrap;
|
|
10100
10136
|
}
|
|
10101
10137
|
.Layer__TaxSummaryCard__AmountWithLabel {
|
|
10102
|
-
min-
|
|
10103
|
-
}
|
|
10104
|
-
.Layer__TaxSummaryCard__Operator {
|
|
10105
|
-
align-self: center;
|
|
10138
|
+
min-inline-size: 5.5rem;
|
|
10106
10139
|
}
|
|
10107
10140
|
.Layer__TaxSummaryCard--mobile {
|
|
10108
10141
|
width: 100%;
|
package/dist/index.d.ts
CHANGED
|
@@ -284,10 +284,6 @@ 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
|
-
|
|
291
287
|
export declare const ChartOfAccounts: (props: ChartOfAccountsProps) => JSX_2.Element;
|
|
292
288
|
|
|
293
289
|
declare interface ChartOfAccountsFormStringOverrides {
|
|
@@ -1025,32 +1021,35 @@ declare const _SIZE_VARIANTS: readonly ["sm", "lg"];
|
|
|
1025
1021
|
|
|
1026
1022
|
declare type SizeVariant = (typeof _SIZE_VARIANTS)[number];
|
|
1027
1023
|
|
|
1024
|
+
declare interface SolopreneurOverviewInteractionProps {
|
|
1025
|
+
banner?: {
|
|
1026
|
+
onSetupTaxProfile?: () => void;
|
|
1027
|
+
};
|
|
1028
|
+
profitAndLossSummaries?: {
|
|
1029
|
+
onTransactionsToReviewClick?: () => void;
|
|
1030
|
+
};
|
|
1031
|
+
summaryCards?: {
|
|
1032
|
+
profitAndLoss?: SummaryCardInteractionProps;
|
|
1033
|
+
expenses?: SummaryCardInteractionProps;
|
|
1034
|
+
taxEstimates?: SummaryCardInteractionProps;
|
|
1035
|
+
mileageTracking?: SummaryCardInteractionProps;
|
|
1036
|
+
};
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1028
1039
|
declare interface SolopreneurOverviewProps {
|
|
1029
|
-
showTitle?: boolean;
|
|
1030
|
-
enableOnboarding?: boolean;
|
|
1031
|
-
onboardingStepOverride?: OnboardingStep;
|
|
1032
|
-
onTransactionsToReviewClick?: () => void;
|
|
1033
|
-
middleBanner?: ReactNode;
|
|
1034
1040
|
chartColorsList?: string[];
|
|
1035
1041
|
stringOverrides?: SolopreneurOverviewStringOverrides;
|
|
1036
|
-
|
|
1037
|
-
slotProps?: {
|
|
1038
|
-
profitAndLoss?: {
|
|
1039
|
-
summaries?: {
|
|
1040
|
-
variants?: Variants;
|
|
1041
|
-
};
|
|
1042
|
-
};
|
|
1043
|
-
};
|
|
1042
|
+
interactionProps?: SolopreneurOverviewInteractionProps;
|
|
1044
1043
|
}
|
|
1045
1044
|
|
|
1046
1045
|
declare interface SolopreneurOverviewStringOverrides {
|
|
1047
1046
|
title?: string;
|
|
1048
1047
|
profitAndLossSummaries?: ProfitAndLossSummariesStringOverrides;
|
|
1049
|
-
|
|
1050
|
-
profitAndLoss?:
|
|
1051
|
-
expenses?:
|
|
1052
|
-
taxEstimates?:
|
|
1053
|
-
mileageTracking?:
|
|
1048
|
+
summaryCards?: {
|
|
1049
|
+
profitAndLoss?: SummaryCardStringOverrides;
|
|
1050
|
+
expenses?: SummaryCardStringOverrides;
|
|
1051
|
+
taxEstimates?: SummaryCardStringOverrides;
|
|
1052
|
+
mileageTracking?: SummaryCardStringOverrides;
|
|
1054
1053
|
};
|
|
1055
1054
|
}
|
|
1056
1055
|
|
|
@@ -1086,6 +1085,14 @@ declare interface StatementOfCashFlowTableStringOverrides {
|
|
|
1086
1085
|
|
|
1087
1086
|
declare type StrictReportingBasis = 'CASH' | 'CASH_COLLECTED' | 'ACCRUAL';
|
|
1088
1087
|
|
|
1088
|
+
declare type SummaryCardInteractionProps = {
|
|
1089
|
+
onClickExpand?: () => void;
|
|
1090
|
+
};
|
|
1091
|
+
|
|
1092
|
+
declare type SummaryCardStringOverrides = {
|
|
1093
|
+
title?: string;
|
|
1094
|
+
};
|
|
1095
|
+
|
|
1089
1096
|
export declare enum SupportedLocale {
|
|
1090
1097
|
enUS = "en-US",
|
|
1091
1098
|
frCA = "fr-CA"
|
|
@@ -1195,7 +1202,7 @@ export declare const unstable_MileageTracking: ({ showTitle }: {
|
|
|
1195
1202
|
showTitle?: boolean;
|
|
1196
1203
|
}) => JSX_2.Element;
|
|
1197
1204
|
|
|
1198
|
-
export declare const unstable_SolopreneurOverview: ({
|
|
1205
|
+
export declare const unstable_SolopreneurOverview: ({ interactionProps, chartColorsList, stringOverrides, }: SolopreneurOverviewProps) => JSX_2.Element;
|
|
1199
1206
|
|
|
1200
1207
|
export declare const unstable_TaxEstimates: ({ onClickReviewTransactions: onReviewClicked }: TaxEstimatesProps) => JSX_2.Element;
|
|
1201
1208
|
|