@layerfi/components 0.1.132-alpha → 0.1.132-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.css CHANGED
@@ -9233,6 +9233,7 @@ tbody .Layer__table__empty-row:first-child {
9233
9233
  }.Layer__UI__Banner {
9234
9234
  box-sizing: border-box;
9235
9235
  min-height: 56px;
9236
+ width: 100%;
9236
9237
  padding: var(--spacing-sm) var(--spacing-md);
9237
9238
  border-radius: var(--border-radius-sm);
9238
9239
  border: 1px solid var(--banner-border-color);
@@ -9734,10 +9735,6 @@ tbody .Layer__table__empty-row:first-child {
9734
9735
  .Layer__SummaryCard__HeaderLegend {
9735
9736
  min-inline-size: 0;
9736
9737
  }
9737
- .Layer__SummaryCard__HeaderPrimaryAction {
9738
- flex-shrink: 0;
9739
- min-inline-size: 0;
9740
- }
9741
9738
  .Layer__SummaryCard__Content {
9742
9739
  box-sizing: border-box;
9743
9740
  flex: 1 1 auto;
@@ -9814,17 +9811,7 @@ tbody .Layer__table__empty-row:first-child {
9814
9811
  }
9815
9812
  .Layer__ExpensesSummaryCard .Layer__DetailedTable__container {
9816
9813
  padding-inline: 0;
9817
- }.Layer__MileageTrackingSummary__Header {
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 {
9814
+ }.Layer__MileageTrackingSummary__Cards {
9828
9815
  min-width: 12rem;
9829
9816
  }
9830
9817
 
@@ -9860,10 +9847,18 @@ tbody .Layer__table__empty-row:first-child {
9860
9847
  background-size: 4px 4px;
9861
9848
  }.Layer__ProfitAndLossSummaryCard .Layer__chart-wrapper,
9862
9849
  .Layer__ProfitAndLossSummaryCard .Layer__chart-container {
9850
+ height: 100%;
9863
9851
  min-block-size: 15.625rem;
9864
9852
  }
9865
9853
  .Layer__ProfitAndLossSummaryCard div.recharts-responsive-container.Layer__chart-container {
9866
9854
  padding-block-start: var(--spacing-xs);
9855
+ }
9856
+ @media (width <= 760px) {
9857
+ .Layer__ProfitAndLossSummaryCard .Layer__chart-wrapper {
9858
+ height: unset;
9859
+ }
9860
+ }.Layer__SolopreneurLayout__OnboardingBanner {
9861
+ max-width: 1406px;
9867
9862
  }.Layer__Swatch {
9868
9863
  flex-shrink: 0;
9869
9864
  block-size: 0.625rem;
@@ -9968,7 +9963,6 @@ tbody .Layer__table__empty-row:first-child {
9968
9963
  }
9969
9964
  .Layer__TaxEstimatesSummaryCard.Layer__card {
9970
9965
  gap: var(--spacing-lg);
9971
- padding: var(--spacing-lg);
9972
9966
  border: 1px solid var(--color-base-200);
9973
9967
  box-shadow: none;
9974
9968
  }
@@ -10002,6 +9996,10 @@ tbody .Layer__table__empty-row:first-child {
10002
9996
  }
10003
9997
  .Layer__TaxEstimatesSummaryCard--summaryCard .Layer__TaxEstimatesSummaryCard__Content {
10004
9998
  align-items: center;
9999
+ }
10000
+ .Layer__TaxEstimatesSummaryCard--empty {
10001
+ height: 100%;
10002
+ margin: 0 auto;
10005
10003
  }.Layer__SolopreneurOverview__Grid {
10006
10004
  display: grid;
10007
10005
  grid-template-columns: repeat(2, minmax(0, 1fr));
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
- tagFilter?: TagOption;
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
- cards?: {
1050
- profitAndLoss?: CardStringOverrides;
1051
- expenses?: CardStringOverrides;
1052
- taxEstimates?: CardStringOverrides;
1053
- mileageTracking?: CardStringOverrides;
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: ({ showTitle, enableOnboarding, onboardingStepOverride, onTransactionsToReviewClick, middleBanner, chartColorsList, stringOverrides, tagFilter, slotProps, }: SolopreneurOverviewProps) => JSX_2.Element;
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerfi/components",
3
- "version": "0.1.132-alpha",
3
+ "version": "0.1.132-alpha.2",
4
4
  "description": "Layer React Components",
5
5
  "main": "dist/cjs/index.cjs",
6
6
  "module": "dist/esm/index.mjs",
@@ -108,7 +108,7 @@
108
108
  "lodash-es": "^4.17.21",
109
109
  "lucide-react": "^0.507.0",
110
110
  "motion": "^12.23.11",
111
- "react-aria-components": "^1.13.0",
111
+ "react-aria-components": "^1.17.0",
112
112
  "react-calendly": "^4.4.0",
113
113
  "react-currency-input-field": "^3.10.0",
114
114
  "react-dropzone": "^14.3.8",