@layerfi/components 0.1.123-alpha → 0.1.123

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.
@@ -185,7 +185,7 @@ var ErrorHandlerClass = class {
185
185
  const errorHandler = new ErrorHandlerClass();
186
186
  const reportError = (payload) => errorHandler.onError(payload);
187
187
  const name = "@layerfi/components";
188
- const version = "0.1.123-alpha";
188
+ const version = "0.1.123";
189
189
  const description = "Layer React Components";
190
190
  const main = "dist/cjs/index.cjs";
191
191
  const module = "dist/esm/index.mjs";
@@ -4053,7 +4053,7 @@ var _excluded$100 = [
4053
4053
  "pie",
4054
4054
  "fluid"
4055
4055
  ];
4056
- var CLASS_NAME$13 = "Layer__Stack";
4056
+ var CLASS_NAME$12 = "Layer__Stack";
4057
4057
  const Stack = forwardRef(function Stack$1(_ref, ref) {
4058
4058
  let { align, children, className, direction, gap, justify, overflow, pb, pbs, pbe, pi, pis, pie, fluid } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$100);
4059
4059
  const dataProperties = toDataProperties({
@@ -4071,7 +4071,7 @@ const Stack = forwardRef(function Stack$1(_ref, ref) {
4071
4071
  fluid
4072
4072
  });
4073
4073
  return /* @__PURE__ */ jsx("div", _objectSpread2(_objectSpread2(_objectSpread2({ ref }, restProps), dataProperties), {}, {
4074
- className: classNames(CLASS_NAME$13, className),
4074
+ className: classNames(CLASS_NAME$12, className),
4075
4075
  children
4076
4076
  }));
4077
4077
  });
@@ -4203,7 +4203,7 @@ function useInvisibleDownload() {
4203
4203
  }, [])
4204
4204
  };
4205
4205
  }
4206
- var CLASS_NAME$12 = "Layer__InvisibleDownload";
4206
+ var CLASS_NAME$11 = "Layer__InvisibleDownload";
4207
4207
  var InvisibleDownload = forwardRef((_props, ref) => {
4208
4208
  const internalRef = useRef(null);
4209
4209
  useImperativeHandle(ref, () => ({ trigger: function() {
@@ -4225,7 +4225,7 @@ var InvisibleDownload = forwardRef((_props, ref) => {
4225
4225
  }() }));
4226
4226
  return /* @__PURE__ */ jsx("a", {
4227
4227
  download: true,
4228
- className: CLASS_NAME$12,
4228
+ className: CLASS_NAME$11,
4229
4229
  ref: internalRef,
4230
4230
  onClick: useCallback((event) => {
4231
4231
  event.stopPropagation();
@@ -4560,10 +4560,10 @@ const Toggle = ({ ariaLabel, options: options$5, selectedKey, onSelectionChange,
4560
4560
  children: options$5.map((option) => /* @__PURE__ */ jsx(ToggleOption, _objectSpread2({}, option), option.value))
4561
4561
  }));
4562
4562
  };
4563
- var CLASS_NAME$11 = "Layer__LoadingSpinner";
4563
+ var CLASS_NAME$10 = "Layer__LoadingSpinner";
4564
4564
  function LoadingSpinner({ size }) {
4565
4565
  return /* @__PURE__ */ jsx(LoaderCircle, {
4566
- className: CLASS_NAME$11,
4566
+ className: CLASS_NAME$10,
4567
4567
  size
4568
4568
  });
4569
4569
  }
@@ -6394,7 +6394,7 @@ var _excluded$84 = [
6394
6394
  "displayPlusSign",
6395
6395
  "className"
6396
6396
  ];
6397
- var CLASS_NAME$10 = "Layer__MoneySpan";
6397
+ var CLASS_NAME$9 = "Layer__MoneySpan";
6398
6398
  var MoneySpan = forwardRef((_ref, ref) => {
6399
6399
  let { amount, displayPlusSign, className } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$84);
6400
6400
  const dataProperties = toDataProperties({
@@ -6403,7 +6403,7 @@ var MoneySpan = forwardRef((_ref, ref) => {
6403
6403
  "display-plus-sign": displayPlusSign
6404
6404
  });
6405
6405
  return /* @__PURE__ */ jsx(Span, _objectSpread2(_objectSpread2(_objectSpread2({}, restProps), dataProperties), {}, {
6406
- className: classNames(CLASS_NAME$10, className),
6406
+ className: classNames(CLASS_NAME$9, className),
6407
6407
  ref,
6408
6408
  children: centsToDollars(Math.abs(amount))
6409
6409
  }));
@@ -6939,12 +6939,12 @@ const InputGroup$1 = forwardRef(function InputGroup$2(_ref, ref) {
6939
6939
  }));
6940
6940
  });
6941
6941
  var _excluded$80 = ["placeholder", "isDisabled"];
6942
- var CLASS_NAME$9 = "Layer__MinimalSearchField";
6942
+ var CLASS_NAME$8 = "Layer__MinimalSearchField";
6943
6943
  function MinimalSearchField(_ref) {
6944
6944
  let { placeholder, isDisabled } = _ref;
6945
6945
  return /* @__PURE__ */ jsxs(SearchField, _objectSpread2(_objectSpread2({}, _objectWithoutProperties(_ref, _excluded$80)), {}, {
6946
6946
  isDisabled,
6947
- className: CLASS_NAME$9,
6947
+ className: CLASS_NAME$8,
6948
6948
  children: [/* @__PURE__ */ jsx(Input, {
6949
6949
  slot: "input",
6950
6950
  placeholder
@@ -6964,12 +6964,12 @@ var _excluded$79 = [
6964
6964
  "label",
6965
6965
  "isDisabled"
6966
6966
  ];
6967
- var CLASS_NAME$8 = "Layer__SearchField";
6967
+ var CLASS_NAME$7 = "Layer__SearchField";
6968
6968
  function SearchField$1(_ref) {
6969
6969
  let { slot = "search", className, label, isDisabled } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$79);
6970
6970
  return /* @__PURE__ */ jsxs(InputGroup$1, {
6971
6971
  slot,
6972
- className: classNames(CLASS_NAME$8, className),
6972
+ className: classNames(CLASS_NAME$7, className),
6973
6973
  children: [/* @__PURE__ */ jsx(VStack, {
6974
6974
  slot: "icon",
6975
6975
  align: "center",
@@ -8315,7 +8315,7 @@ var _excluded$71 = [
8315
8315
  "size",
8316
8316
  "isIndeterminate"
8317
8317
  ], _excluded2$8 = ["tooltip"];
8318
- var CLASS_NAME$7 = "Layer__Checkbox";
8318
+ var CLASS_NAME$6 = "Layer__Checkbox";
8319
8319
  var CHECK_SIZE = {
8320
8320
  sm: 12,
8321
8321
  md: 14,
@@ -8333,7 +8333,7 @@ function Checkbox$1(_ref) {
8333
8333
  variant
8334
8334
  ])), props), {}, {
8335
8335
  isIndeterminate,
8336
- className: classNames(CLASS_NAME$7, className),
8336
+ className: classNames(CLASS_NAME$6, className),
8337
8337
  children: withRenderProp(children, (node) => /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
8338
8338
  slot: "checkbox",
8339
8339
  children: isIndeterminate ? /* @__PURE__ */ jsx(Minus, { size: CHECK_SIZE[size] }) : /* @__PURE__ */ jsx(Check, { size: CHECK_SIZE[size] })
@@ -8659,7 +8659,7 @@ function ResponsivePopover({ children, triggerRef }) {
8659
8659
  children
8660
8660
  });
8661
8661
  }
8662
- const DatePicker$1 = ({ label, showLabel = true, date, minDate, maxDate, isInvalid, errorText, onBlur, onChange, isDisabled, isReadOnly, className, slotProps }) => {
8662
+ const DatePicker$1 = ({ label, showLabel = false, date, minDate, maxDate, isInvalid, errorText, onBlur, onChange, isDisabled, isReadOnly, className, slotProps }) => {
8663
8663
  const additionalAriaProps = !showLabel && { "aria-label": label };
8664
8664
  const { value } = useSizeClass();
8665
8665
  const [isPopoverOpen, setPopoverOpen] = useState(false);
@@ -10034,10 +10034,10 @@ const BankTransactionsHeaderMenu = ({ actions, isDisabled, isListView = false })
10034
10034
  })
10035
10035
  ] });
10036
10036
  };
10037
- var CLASS_NAME$6 = "Layer__BankTransactionsActions";
10037
+ var CLASS_NAME$5 = "Layer__BankTransactionsActions";
10038
10038
  function BankTransactionsActions({ children }) {
10039
10039
  return /* @__PURE__ */ jsx("div", {
10040
- className: CLASS_NAME$6,
10040
+ className: CLASS_NAME$5,
10041
10041
  children
10042
10042
  });
10043
10043
  }
@@ -10213,7 +10213,7 @@ function MonthCalendar({ date, onChange, minDate, maxDate, variant }) {
10213
10213
  }, m.key))
10214
10214
  })] });
10215
10215
  }
10216
- const MonthPicker = ({ label, showLabel = true, date, onChange, minDate = null, maxDate = null, truncateMonth = false }) => {
10216
+ const MonthPicker = ({ label, showLabel = false, date, onChange, minDate = null, maxDate = null, truncateMonth = false }) => {
10217
10217
  const triggerRef = useRef(null);
10218
10218
  const [isPopoverOpen, setPopoverOpen] = useState(false);
10219
10219
  const { value } = useSizeClass();
@@ -10376,7 +10376,6 @@ const BankTransactionsHeader = ({ shiftStickyHeader, asWidget, tableContentMode,
10376
10376
  })]
10377
10377
  }), withDatePicker && monthPickerDate && /* @__PURE__ */ jsx(MonthPicker, {
10378
10378
  label: "Select a month",
10379
- showLabel: false,
10380
10379
  date: monthPickerDate,
10381
10380
  onChange: setDateRange,
10382
10381
  minDate: activationDate ? convertDateToZonedDateTime(activationDate) : null,
@@ -14542,6 +14541,65 @@ const BankTransactionRow = ({ index, dateFormat, bankTransaction, initialLoad, s
14542
14541
  })
14543
14542
  }) })] });
14544
14543
  };
14544
+ var _excluded$42 = ["size"];
14545
+ var Inbox = (_ref) => {
14546
+ let { size = 18 } = _ref;
14547
+ return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
14548
+ xmlns: "http://www.w3.org/2000/svg",
14549
+ viewBox: "0 0 18 18",
14550
+ fill: "none"
14551
+ }, _objectWithoutProperties(_ref, _excluded$42)), {}, {
14552
+ width: size,
14553
+ height: size,
14554
+ children: [/* @__PURE__ */ jsx("path", {
14555
+ d: "M16.5 9H12L10.5 11.25H7.5L6 9H1.5",
14556
+ stroke: "currentColor",
14557
+ strokeLinecap: "round",
14558
+ strokeLinejoin: "round"
14559
+ }), /* @__PURE__ */ jsx("path", {
14560
+ d: "M4.0875 3.8325L1.5 9V13.5C1.5 13.8978 1.65804 14.2794 1.93934 14.5607C2.22064 14.842 2.60218 15 3 15H15C15.3978 15 15.7794 14.842 16.0607 14.5607C16.342 14.2794 16.5 13.8978 16.5 13.5V9L13.9125 3.8325C13.7883 3.58259 13.5969 3.37228 13.3597 3.22521C13.1226 3.07814 12.8491 3.00015 12.57 3H5.43C5.15094 3.00015 4.87745 3.07814 4.64028 3.22521C4.40312 3.37228 4.21168 3.58259 4.0875 3.8325Z",
14561
+ stroke: "currentColor",
14562
+ strokeLinecap: "round",
14563
+ strokeLinejoin: "round"
14564
+ })]
14565
+ }));
14566
+ };
14567
+ var Inbox_default = Inbox;
14568
+ var DataStateContainer = ({ children }) => /* @__PURE__ */ jsx("div", {
14569
+ className: "Layer__table-state-container",
14570
+ children
14571
+ });
14572
+ const BankTransactionsTableEmptyState = () => {
14573
+ const { display } = useBankTransactionsContext();
14574
+ const { filters } = useBankTransactionsFiltersContext();
14575
+ const isCategorizationMode = display !== DisplayState.categorized;
14576
+ if (Boolean(filters === null || filters === void 0 ? void 0 : filters.query)) return /* @__PURE__ */ jsx(DataStateContainer, { children: /* @__PURE__ */ jsx(DataState, {
14577
+ status: DataStateStatus.info,
14578
+ title: "No transactions found",
14579
+ description: "Try adjusting your search filters",
14580
+ icon: /* @__PURE__ */ jsx(SearchX, {}),
14581
+ spacing: true
14582
+ }) });
14583
+ return /* @__PURE__ */ jsx(DataStateContainer, { children: /* @__PURE__ */ jsx(DataState, {
14584
+ status: DataStateStatus.allDone,
14585
+ title: isCategorizationMode ? "You are up to date with transactions!" : "You have no categorized transactions",
14586
+ description: isCategorizationMode ? "All uncategorized transactions will be displayed here" : "All transactions will be displayed here once reviewed",
14587
+ icon: isCategorizationMode ? void 0 : /* @__PURE__ */ jsx(Inbox_default, {}),
14588
+ spacing: true
14589
+ }) });
14590
+ };
14591
+ function BankTransactionsListWithEmptyStates({ isEmpty, slots }) {
14592
+ const { isLoading, isError } = useBankTransactionsContext();
14593
+ if (isError) return /* @__PURE__ */ jsx(DataStateContainer, { children: /* @__PURE__ */ jsx(DataState, {
14594
+ status: DataStateStatus.failed,
14595
+ title: "Something went wrong",
14596
+ description: "We couldn’t load your transactions",
14597
+ spacing: true
14598
+ }) });
14599
+ if (isLoading && slots.Loader) return slots.Loader;
14600
+ if (!isLoading && isEmpty) return /* @__PURE__ */ jsx(BankTransactionsTableEmptyState, {});
14601
+ return slots.List;
14602
+ }
14545
14603
  const SkeletonTableLoader = ({ rows, cols, height = 20, width = 100 }) => {
14546
14604
  return /* @__PURE__ */ jsx("tbody", {
14547
14605
  className: "Layer__skeleton-table-body__loader",
@@ -14578,11 +14636,12 @@ const BankTransactionsLoader = () => {
14578
14636
  });
14579
14637
  };
14580
14638
  const BankTransactionsTable = ({ isLoading, bankTransactions, showDescriptions, showReceiptUploads, showTooltips, stringOverrides, isSyncing = false, page, lastPage }) => {
14581
- var _ref, _stringOverrides$tran, _stringOverrides$tran2, _stringOverrides$tran3, _stringOverrides$tran4, _stringOverrides$tran5, _stringOverrides$tran6;
14639
+ var _bankTransactions$len, _ref, _stringOverrides$tran, _stringOverrides$tran2, _stringOverrides$tran3, _stringOverrides$tran4, _stringOverrides$tran5, _stringOverrides$tran6;
14582
14640
  const isCategorizationEnabled = useBankTransactionsIsCategorizationEnabledContext();
14583
14641
  const { mutate, display } = useBankTransactionsContext();
14584
14642
  const { isAllSelected, isPartiallySelected, onHeaderCheckboxChange } = useBankTransactionsTableCheckboxState({ bankTransactions });
14585
14643
  useUpsertBankTransactionsDefaultCategories(bankTransactions);
14644
+ const isEmpty = ((_bankTransactions$len = bankTransactions === null || bankTransactions === void 0 ? void 0 : bankTransactions.length) !== null && _bankTransactions$len !== void 0 ? _bankTransactions$len : 0) === 0;
14586
14645
  const showReceiptColumn = (_ref = showReceiptUploads && (bankTransactions === null || bankTransactions === void 0 ? void 0 : bankTransactions.some((transaction) => {
14587
14646
  var _transaction$document;
14588
14647
  return ((_transaction$document = transaction.document_ids) === null || _transaction$document === void 0 ? void 0 : _transaction$document.length) > 0;
@@ -14632,23 +14691,30 @@ const BankTransactionsTable = ({ isLoading, bankTransactions, showDescriptions,
14632
14691
  })
14633
14692
  ] }) }),
14634
14693
  isLoading && /* @__PURE__ */ jsx(BankTransactionsLoader, {}),
14635
- /* @__PURE__ */ jsxs("tbody", { children: [!isLoading && (bankTransactions === null || bankTransactions === void 0 ? void 0 : bankTransactions.map((bankTransaction, index) => /* @__PURE__ */ jsx(BankTransactionRow, {
14636
- index,
14637
- dateFormat: "LLL d, yyyy",
14638
- bankTransaction,
14639
- showDescriptions,
14640
- showReceiptUploads,
14641
- showReceiptUploadColumn: showReceiptColumn,
14642
- showTooltips,
14643
- stringOverrides: stringOverrides === null || stringOverrides === void 0 ? void 0 : stringOverrides.bankTransactionCTAs
14644
- }, bankTransaction.id))), isSyncing && (lastPage || (!bankTransactions || bankTransactions.length === 0) && page === 1) ? /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", {
14645
- colSpan: 3,
14646
- children: /* @__PURE__ */ jsx(SyncingComponent, {
14647
- title: "Syncing historical account data",
14648
- timeSync: 5,
14649
- onRefresh
14650
- })
14651
- }) }) : null] })
14694
+ /* @__PURE__ */ jsxs("tbody", { children: [
14695
+ !isLoading && isEmpty && /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", {
14696
+ colSpan: isCategorizationEnabled ? 7 : 6,
14697
+ children: /* @__PURE__ */ jsx(BankTransactionsTableEmptyState, {})
14698
+ }) }),
14699
+ !isLoading && (bankTransactions === null || bankTransactions === void 0 ? void 0 : bankTransactions.map((bankTransaction, index) => /* @__PURE__ */ jsx(BankTransactionRow, {
14700
+ index,
14701
+ dateFormat: "LLL d, yyyy",
14702
+ bankTransaction,
14703
+ showDescriptions,
14704
+ showReceiptUploads,
14705
+ showReceiptUploadColumn: showReceiptColumn,
14706
+ showTooltips,
14707
+ stringOverrides: stringOverrides === null || stringOverrides === void 0 ? void 0 : stringOverrides.bankTransactionCTAs
14708
+ }, bankTransaction.id))),
14709
+ isSyncing && (lastPage || isEmpty && page === 1) ? /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", {
14710
+ colSpan: 3,
14711
+ children: /* @__PURE__ */ jsx(SyncingComponent, {
14712
+ title: "Syncing historical account data",
14713
+ timeSync: 5,
14714
+ onRefresh
14715
+ })
14716
+ }) }) : null
14717
+ ] })
14652
14718
  ]
14653
14719
  });
14654
14720
  };
@@ -14800,14 +14866,14 @@ function useArchiveCategorizationRule() {
14800
14866
  return Reflect.get(target, prop);
14801
14867
  } });
14802
14868
  }
14803
- var _excluded$42 = ["size"];
14869
+ var _excluded$41 = ["size"];
14804
14870
  var BackArrow = (_ref) => {
14805
14871
  let { size = 18 } = _ref;
14806
14872
  return /* @__PURE__ */ jsx("svg", _objectSpread2(_objectSpread2({
14807
14873
  viewBox: "0 0 12 12",
14808
14874
  fill: "none",
14809
14875
  xmlns: "http://www.w3.org/2000/svg"
14810
- }, _objectWithoutProperties(_ref, _excluded$42)), {}, {
14876
+ }, _objectWithoutProperties(_ref, _excluded$41)), {}, {
14811
14877
  width: size,
14812
14878
  height: size,
14813
14879
  children: /* @__PURE__ */ jsx("path", {
@@ -14819,14 +14885,14 @@ var BackArrow = (_ref) => {
14819
14885
  }));
14820
14886
  };
14821
14887
  var BackArrow_default = BackArrow;
14822
- var CLASS_NAME$5 = "Layer__UI__ResponsiveComponent";
14888
+ var CLASS_NAME$4 = "Layer__UI__ResponsiveComponent";
14823
14889
  const ResponsiveComponent = ({ slots, resolveVariant: resolveVariant$2, className }) => {
14824
14890
  const [currentVariant, setCurrentVariant] = useState(null);
14825
14891
  return /* @__PURE__ */ jsx("div", {
14826
14892
  ref: useElementSize(useCallback((size) => {
14827
14893
  setCurrentVariant(resolveVariant$2({ width: size.width }));
14828
14894
  }, [resolveVariant$2])),
14829
- className: classNames(CLASS_NAME$5, className),
14895
+ className: classNames(CLASS_NAME$4, className),
14830
14896
  children: currentVariant !== null && slots[currentVariant]
14831
14897
  });
14832
14898
  };
@@ -14884,7 +14950,7 @@ const MobileListItem = ({ item, onClickItem, children }) => {
14884
14950
  }), children$1] }))
14885
14951
  }, item.id);
14886
14952
  };
14887
- var _excluded$41 = [
14953
+ var _excluded$40 = [
14888
14954
  "ariaLabel",
14889
14955
  "data",
14890
14956
  "slots",
@@ -14898,7 +14964,7 @@ var isSelectionEnabled = (props) => {
14898
14964
  return props.selectionMode !== "none" && props.enableSelection;
14899
14965
  };
14900
14966
  const MobileList = (props) => {
14901
- const { ariaLabel, data, slots, renderItem, onClickItem, isLoading, isError, selectionMode = "none" } = props, restSelectionProps = _objectWithoutProperties(props, _excluded$41);
14967
+ const { ariaLabel, data, slots, renderItem, onClickItem, isLoading, isError, selectionMode = "none" } = props, restSelectionProps = _objectWithoutProperties(props, _excluded$40);
14902
14968
  const { EmptyState: EmptyState$4, ErrorState: ErrorState$3 } = slots;
14903
14969
  const resolvedSelectionMode = isSelectionEnabled(props) ? selectionMode : "none";
14904
14970
  const resolvedSelectionBehavior = resolvedSelectionMode === "none" ? "toggle" : void 0;
@@ -14946,9 +15012,9 @@ const usePaginationRange = ({ totalCount, pageSize, siblingCount = 1, currentPag
14946
15012
  currentPage
14947
15013
  ]);
14948
15014
  };
14949
- var _excluded$40 = ["children", "isSelected"];
15015
+ var _excluded$39 = ["children", "isSelected"];
14950
15016
  var PaginationButton = (_ref) => {
14951
- let { children, isSelected } = _ref, buttonProps = _objectWithoutProperties(_ref, _excluded$40);
15017
+ let { children, isSelected } = _ref, buttonProps = _objectWithoutProperties(_ref, _excluded$39);
14952
15018
  return /* @__PURE__ */ jsx(Button$1, _objectSpread2(_objectSpread2({
14953
15019
  inset: true,
14954
15020
  icon: true,
@@ -15009,11 +15075,11 @@ const Pagination = ({ onPageChange, totalCount, siblingCount = 1, currentPage, p
15009
15075
  })
15010
15076
  });
15011
15077
  };
15012
- var _excluded$39 = ["data", "paginationProps"];
15078
+ var _excluded$38 = ["data", "paginationProps"];
15013
15079
  var EMPTY_ARRAY$4 = [];
15014
15080
  const PaginatedMobileList = (props) => {
15015
15081
  var _data$length;
15016
- const { data, paginationProps } = props, listProps = _objectWithoutProperties(props, _excluded$39);
15082
+ const { data, paginationProps } = props, listProps = _objectWithoutProperties(props, _excluded$38);
15017
15083
  const { initialPage = 0, onSetPage, pageSize = 20, hasMore, fetchMore, autoResetPageIndexRef } = paginationProps;
15018
15084
  const { pageItems, pageIndex, setPage } = usePaginatedList({
15019
15085
  data: data !== null && data !== void 0 ? data : EMPTY_ARRAY$4,
@@ -15149,7 +15215,7 @@ const getColumnDefs = (columnConfig$1) => {
15149
15215
  });
15150
15216
  });
15151
15217
  };
15152
- var _excluded$38 = [
15218
+ var _excluded$37 = [
15153
15219
  "children",
15154
15220
  "className",
15155
15221
  "nonAria",
@@ -15194,7 +15260,7 @@ var TableSubComponent = /* @__PURE__ */ function(TableSubComponent$1) {
15194
15260
  var CSS_PREFIX$1 = "Layer__UI__Table";
15195
15261
  var getClassName = (component, additionalClassNames, withHidden) => classNames(`${CSS_PREFIX$1}-${component}`, withHidden && `${CSS_PREFIX$1}-${component}--hidden`, additionalClassNames);
15196
15262
  var Table$1 = forwardRef((_ref, ref) => {
15197
- let { children, className, nonAria, slot } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$38);
15263
+ let { children, className, nonAria, slot } = _ref, restProps = _objectWithoutProperties(_ref, _excluded$37);
15198
15264
  return /* @__PURE__ */ jsx(nonAria ? "table" : Table, _objectSpread2(_objectSpread2({
15199
15265
  className: getClassName(TableSubComponent.Table, className),
15200
15266
  slot: slot !== null && slot !== void 0 ? slot : void 0
@@ -16002,7 +16068,7 @@ function RuleUpdatesReviewStep({ ruleSuggestion, isDrawer }) {
16002
16068
  /* @__PURE__ */ jsxs(ActionButtonsStack, {
16003
16069
  gap: "xs",
16004
16070
  justify: "end",
16005
- className: isDrawer ? "Layer__RuleUpdatesReviewStep__buttons--mobile" : void 0,
16071
+ pbs: "md",
16006
16072
  children: [/* @__PURE__ */ jsx(Button$1, {
16007
16073
  onClick: previous,
16008
16074
  variant: "outlined",
@@ -16146,59 +16212,6 @@ function useTagDimensions({ isEnabled = true } = {}) {
16146
16212
  function usePreloadTagDimensions(parameters) {
16147
16213
  useTagDimensions(parameters);
16148
16214
  }
16149
- var _excluded$37 = ["size"];
16150
- var Inbox = (_ref) => {
16151
- let { size = 18 } = _ref;
16152
- return /* @__PURE__ */ jsxs("svg", _objectSpread2(_objectSpread2({
16153
- xmlns: "http://www.w3.org/2000/svg",
16154
- viewBox: "0 0 18 18",
16155
- fill: "none"
16156
- }, _objectWithoutProperties(_ref, _excluded$37)), {}, {
16157
- width: size,
16158
- height: size,
16159
- children: [/* @__PURE__ */ jsx("path", {
16160
- d: "M16.5 9H12L10.5 11.25H7.5L6 9H1.5",
16161
- stroke: "currentColor",
16162
- strokeLinecap: "round",
16163
- strokeLinejoin: "round"
16164
- }), /* @__PURE__ */ jsx("path", {
16165
- d: "M4.0875 3.8325L1.5 9V13.5C1.5 13.8978 1.65804 14.2794 1.93934 14.5607C2.22064 14.842 2.60218 15 3 15H15C15.3978 15 15.7794 14.842 16.0607 14.5607C16.342 14.2794 16.5 13.8978 16.5 13.5V9L13.9125 3.8325C13.7883 3.58259 13.5969 3.37228 13.3597 3.22521C13.1226 3.07814 12.8491 3.00015 12.57 3H5.43C5.15094 3.00015 4.87745 3.07814 4.64028 3.22521C4.40312 3.37228 4.21168 3.58259 4.0875 3.8325Z",
16166
- stroke: "currentColor",
16167
- strokeLinecap: "round",
16168
- strokeLinejoin: "round"
16169
- })]
16170
- }));
16171
- };
16172
- var Inbox_default = Inbox;
16173
- var DataStateContainer = ({ children }) => /* @__PURE__ */ jsx("div", {
16174
- className: "Layer__table-state-container",
16175
- children
16176
- });
16177
- function BankTransactionsListWithEmptyStates({ isEmpty, slots }) {
16178
- const { isLoading, isError, display } = useBankTransactionsContext();
16179
- const { filters } = useBankTransactionsFiltersContext();
16180
- const isCategorizationMode = display !== DisplayState.categorized;
16181
- const isFiltered = Boolean(filters === null || filters === void 0 ? void 0 : filters.query);
16182
- if (isError) return /* @__PURE__ */ jsx(DataStateContainer, { children: /* @__PURE__ */ jsx(DataState, {
16183
- status: DataStateStatus.failed,
16184
- title: "Something went wrong",
16185
- description: "We couldn’t load your transactions"
16186
- }) });
16187
- if (isLoading && slots.Loader) return slots.Loader;
16188
- if (isEmpty && !isFiltered) return /* @__PURE__ */ jsx(DataStateContainer, { children: /* @__PURE__ */ jsx(DataState, {
16189
- status: DataStateStatus.allDone,
16190
- title: isCategorizationMode ? "You are up to date with transactions!" : "You have no categorized transactions",
16191
- description: isCategorizationMode ? "All uncategorized transactions will be displayed here" : "All transactions will be displayed here once reviewed",
16192
- icon: isCategorizationMode ? void 0 : /* @__PURE__ */ jsx(Inbox_default, {})
16193
- }) });
16194
- if (isEmpty && isFiltered) return /* @__PURE__ */ jsx(DataStateContainer, { children: /* @__PURE__ */ jsx(DataState, {
16195
- status: DataStateStatus.info,
16196
- title: "No transactions found",
16197
- description: "Try adjusting your search filters",
16198
- icon: /* @__PURE__ */ jsx(SearchX, {})
16199
- }) });
16200
- return slots.List;
16201
- }
16202
16215
  var _excluded$36 = [
16203
16216
  "onError",
16204
16217
  "showTags",
@@ -16382,6 +16395,7 @@ var BankTransactionsTableView = ({ asWidget = false, pageSize = 20, showDescript
16382
16395
  BankTransactionsListLoader,
16383
16396
  BankTransactionsMobileListView
16384
16397
  ]);
16398
+ const isEmpty = tableContentMode === BankTransactionsTableContent.Table ? false : ((_bankTransactions$len = bankTransactions === null || bankTransactions === void 0 ? void 0 : bankTransactions.length) !== null && _bankTransactions$len !== void 0 ? _bankTransactions$len : 0) === 0;
16385
16399
  return /* @__PURE__ */ jsxs(Container, {
16386
16400
  className: classNames("Layer__Public", display === DisplayState.review ? "Layer__bank-transactions--to-review" : "Layer__bank-transactions--categorized"),
16387
16401
  transparentBg: listView && mobileComponent === "mobileList",
@@ -16401,7 +16415,7 @@ var BankTransactionsTableView = ({ asWidget = false, pageSize = 20, showDescript
16401
16415
  showCategorizationRules
16402
16416
  }),
16403
16417
  /* @__PURE__ */ jsx(BankTransactionsListWithEmptyStates, {
16404
- isEmpty: ((_bankTransactions$len = bankTransactions === null || bankTransactions === void 0 ? void 0 : bankTransactions.length) !== null && _bankTransactions$len !== void 0 ? _bankTransactions$len : 0) === 0 && !isLoading,
16418
+ isEmpty,
16405
16419
  slots
16406
16420
  }),
16407
16421
  /* @__PURE__ */ jsx(SuggestedCategorizationRuleUpdatesDialog, {
@@ -17236,10 +17250,10 @@ var InstitutionIcon = (_ref) => {
17236
17250
  }));
17237
17251
  };
17238
17252
  var InstitutionIcon_default = InstitutionIcon;
17239
- var CLASS_NAME$4 = "Layer__BasicLinkedAccountContainer";
17253
+ var CLASS_NAME$3 = "Layer__BasicLinkedAccountContainer";
17240
17254
  function BasicLinkedAccountContainer({ children, isSelected }) {
17241
17255
  return /* @__PURE__ */ jsx("div", _objectSpread2(_objectSpread2({}, toDataProperties({ selected: isSelected })), {}, {
17242
- className: CLASS_NAME$4,
17256
+ className: CLASS_NAME$3,
17243
17257
  children
17244
17258
  }));
17245
17259
  }
@@ -17869,7 +17883,7 @@ const useDatePickerState = ({ date, setDate, minDate = null, maxDate = null }) =
17869
17883
  minDateZdt
17870
17884
  ]);
17871
17885
  };
17872
- var CLASS_NAME$3 = "Layer__caobfb";
17886
+ var CLASS_NAME$2 = "Layer__caobfb";
17873
17887
  const AccountFormBox = ({ account, value, isSaved = false, disableConfirmExclude = false, onChange, errors = [] }) => {
17874
17888
  var _account$institution, _account$institution2, _account$institution3, _account$institution4;
17875
17889
  const dataProps = useMemo(() => toDataProperties({
@@ -17893,10 +17907,10 @@ const AccountFormBox = ({ account, value, isSaved = false, disableConfirmExclude
17893
17907
  value
17894
17908
  ]);
17895
17909
  return /* @__PURE__ */ jsxs("div", _objectSpread2(_objectSpread2({}, dataProps), {}, {
17896
- className: CLASS_NAME$3,
17910
+ className: CLASS_NAME$2,
17897
17911
  children: [
17898
17912
  /* @__PURE__ */ jsx("div", {
17899
- className: `${CLASS_NAME$3}__icon-col`,
17913
+ className: `${CLASS_NAME$2}__icon-col`,
17900
17914
  children: ((_account$institution = account.institution) === null || _account$institution === void 0 ? void 0 : _account$institution.logo) != void 0 ? /* @__PURE__ */ jsx("img", {
17901
17915
  width: 32,
17902
17916
  height: 32,
@@ -17905,18 +17919,18 @@ const AccountFormBox = ({ account, value, isSaved = false, disableConfirmExclude
17905
17919
  }) : /* @__PURE__ */ jsx(InstitutionIcon_default, {})
17906
17920
  }),
17907
17921
  /* @__PURE__ */ jsxs("div", {
17908
- className: `${CLASS_NAME$3}__details-col`,
17922
+ className: `${CLASS_NAME$2}__details-col`,
17909
17923
  children: [
17910
17924
  /* @__PURE__ */ jsxs("div", {
17911
- className: `${CLASS_NAME$3}__details-col__details`,
17925
+ className: `${CLASS_NAME$2}__details-col__details`,
17912
17926
  children: [/* @__PURE__ */ jsxs("div", {
17913
- className: `${CLASS_NAME$3}__details-col__name`,
17927
+ className: `${CLASS_NAME$2}__details-col__name`,
17914
17928
  children: [/* @__PURE__ */ jsx(Text$2, {
17915
- className: `${CLASS_NAME$3}__details-col__name__institution-name`,
17929
+ className: `${CLASS_NAME$2}__details-col__name__institution-name`,
17916
17930
  size: TextSize.sm,
17917
17931
  children: (_account$institution4 = account.institution) === null || _account$institution4 === void 0 ? void 0 : _account$institution4.name
17918
17932
  }), /* @__PURE__ */ jsx(Text$2, {
17919
- className: `${CLASS_NAME$3}__details-col__name__account-name`,
17933
+ className: `${CLASS_NAME$2}__details-col__name__account-name`,
17920
17934
  size: TextSize.sm,
17921
17935
  children: account.external_account_name
17922
17936
  })]
@@ -17926,12 +17940,11 @@ const AccountFormBox = ({ account, value, isSaved = false, disableConfirmExclude
17926
17940
  })]
17927
17941
  }),
17928
17942
  /* @__PURE__ */ jsxs("div", {
17929
- className: `${CLASS_NAME$3}__details-col__inputs`,
17943
+ className: `${CLASS_NAME$2}__details-col__inputs`,
17930
17944
  children: [/* @__PURE__ */ jsx(InputGroup, {
17931
17945
  label: "Opening date",
17932
17946
  children: /* @__PURE__ */ jsx(DatePicker$1, {
17933
17947
  label: "Opening date",
17934
- showLabel: false,
17935
17948
  date,
17936
17949
  onChange: onChangeDate,
17937
17950
  onBlur: onBlurDate,
@@ -17956,7 +17969,7 @@ const AccountFormBox = ({ account, value, isSaved = false, disableConfirmExclude
17956
17969
  ]
17957
17970
  }),
17958
17971
  !disableConfirmExclude && /* @__PURE__ */ jsx("div", {
17959
- className: `${CLASS_NAME$3}__confirm-col`,
17972
+ className: `${CLASS_NAME$2}__confirm-col`,
17960
17973
  children: /* @__PURE__ */ jsx(Checkbox$1, {
17961
17974
  size: "lg",
17962
17975
  isSelected: value.isConfirmed,
@@ -17965,7 +17978,7 @@ const AccountFormBox = ({ account, value, isSaved = false, disableConfirmExclude
17965
17978
  })
17966
17979
  }),
17967
17980
  /* @__PURE__ */ jsx("div", {
17968
- className: `${CLASS_NAME$3}__success-banner`,
17981
+ className: `${CLASS_NAME$2}__success-banner`,
17969
17982
  children: /* @__PURE__ */ jsx(CheckCircle_default, { size: 36 })
17970
17983
  })
17971
17984
  ]
@@ -20755,7 +20768,7 @@ var dateSelectionOptionConfig = {
20755
20768
  }
20756
20769
  };
20757
20770
  var options$4 = Object.values(dateSelectionOptionConfig).filter((opt) => opt.value !== DatePreset.Custom);
20758
- const DateSelectionComboBox = () => {
20771
+ const DateSelectionComboBox = ({ showLabel = false }) => {
20759
20772
  const [lastPreset, setLastPreset] = useState(null);
20760
20773
  const { business } = useLayerContext();
20761
20774
  const dateRange = useGlobalDateRange({ dateSelectionMode: "full" });
@@ -20770,21 +20783,22 @@ const DateSelectionComboBox = () => {
20770
20783
  setDateRange(rangeForPreset(nextPreset));
20771
20784
  }, [setDateRange]);
20772
20785
  const inputId = useId();
20773
- return /* @__PURE__ */ jsxs(VStack, { children: [/* @__PURE__ */ jsx(Label$2, {
20786
+ const label = "Report period";
20787
+ return /* @__PURE__ */ jsxs(VStack, { children: [showLabel && /* @__PURE__ */ jsx(Label$2, {
20774
20788
  pbe: "3xs",
20775
20789
  size: "sm",
20776
20790
  htmlFor: inputId,
20777
- children: "Report period"
20778
- }), /* @__PURE__ */ jsx(ComboBox, {
20791
+ children: label
20792
+ }), /* @__PURE__ */ jsx(ComboBox, _objectSpread2({
20779
20793
  options: options$4,
20780
20794
  onSelectedValueChange,
20781
20795
  selectedValue: selectedOption,
20782
20796
  isSearchable: false,
20783
20797
  isClearable: false,
20784
20798
  inputId
20785
- })] });
20799
+ }, !showLabel && { "aria-label": label }))] });
20786
20800
  };
20787
- const GlobalDateRangePicker = () => {
20801
+ const GlobalDateRangePicker = ({ showLabels = false }) => {
20788
20802
  const { startDate: globalStartDate, endDate: globalEndDate } = useGlobalDateRange({ dateSelectionMode: "full" });
20789
20803
  const { setDateRange: setGlobalDateRange } = useGlobalDateRangeActions();
20790
20804
  const { minDate, maxDate } = useGlobalDatePickerBounds();
@@ -20823,7 +20837,8 @@ const GlobalDateRangePicker = () => {
20823
20837
  slotProps: { Label: {
20824
20838
  size: "sm",
20825
20839
  pbe: "3xs"
20826
- } }
20840
+ } },
20841
+ showLabel: showLabels
20827
20842
  }), /* @__PURE__ */ jsx(DatePicker$1, {
20828
20843
  label: "End date",
20829
20844
  date: localEndDate,
@@ -20836,19 +20851,20 @@ const GlobalDateRangePicker = () => {
20836
20851
  slotProps: { Label: {
20837
20852
  size: "sm",
20838
20853
  pbe: "3xs"
20839
- } }
20854
+ } },
20855
+ showLabel: showLabels
20840
20856
  })] });
20841
20857
  };
20842
- const DateRangeSelection = () => {
20858
+ const DateRangeSelection = ({ showLabels = false }) => {
20843
20859
  const { value } = useSizeClass();
20844
20860
  return /* @__PURE__ */ jsxs(HStack, {
20845
20861
  className: classNames("Layer__DateRangeSelection", { "Layer__DateRangeSelection--mobile": value === "mobile" }),
20846
- children: [/* @__PURE__ */ jsx(DateSelectionComboBox, {}), /* @__PURE__ */ jsx(GlobalDateRangePicker, {})]
20862
+ children: [/* @__PURE__ */ jsx(DateSelectionComboBox, { showLabel: showLabels }), /* @__PURE__ */ jsx(GlobalDateRangePicker, { showLabels })]
20847
20863
  });
20848
20864
  };
20849
- const CombinedDateRangeSelection = ({ mode }) => {
20850
- if (mode === "month") return /* @__PURE__ */ jsx(GlobalMonthPicker, { showLabel: true });
20851
- return /* @__PURE__ */ jsx(DateRangeSelection, {});
20865
+ const CombinedDateRangeSelection = ({ mode, showLabels = true }) => {
20866
+ if (mode === "month") return /* @__PURE__ */ jsx(GlobalMonthPicker, { showLabel: showLabels });
20867
+ return /* @__PURE__ */ jsx(DateRangeSelection, { showLabels });
20852
20868
  };
20853
20869
  var getProfitAndLossDetailLinesExcel = (apiUrl, accessToken, params) => {
20854
20870
  const { businessId, startDate, endDate, pnlStructureLineItemName, tagKey, tagValues, reportingBasis, pnlStructure } = params;
@@ -21037,7 +21053,10 @@ const ProfitAndLossHeader = ({ text, className, headingClassName, withDatePicker
21037
21053
  ]
21038
21054
  }), /* @__PURE__ */ jsxs(HStack, {
21039
21055
  gap: "xs",
21040
- children: [withDatePicker && /* @__PURE__ */ jsx(CombinedDateRangeSelection, { mode: dateSelectionMode }), withDownloadButton && /* @__PURE__ */ jsx(ProfitAndLossDownloadButton, { stringOverrides: stringOverrides === null || stringOverrides === void 0 ? void 0 : stringOverrides.downloadButton })]
21056
+ children: [withDatePicker && /* @__PURE__ */ jsx(CombinedDateRangeSelection, {
21057
+ mode: dateSelectionMode,
21058
+ showLabels: false
21059
+ }), withDownloadButton && /* @__PURE__ */ jsx(ProfitAndLossDownloadButton, { stringOverrides: stringOverrides === null || stringOverrides === void 0 ? void 0 : stringOverrides.downloadButton })]
21041
21060
  })]
21042
21061
  });
21043
21062
  };
@@ -21882,7 +21901,7 @@ function ProfitAndLossSummariesSummary({ label, amount, isLoading, percentChange
21882
21901
  })]
21883
21902
  });
21884
21903
  }
21885
- var CLASS_NAME$2 = "Layer__TransactionsToReview";
21904
+ var CLASS_NAME$1 = "Layer__TransactionsToReview";
21886
21905
  function TransactionsToReview({ onClick, tagFilter = void 0, variants: variants$1 }) {
21887
21906
  var _tagFilter$values, _activeMonth$uncatego;
21888
21907
  const { size = "sm" } = variants$1 !== null && variants$1 !== void 0 ? variants$1 : {};
@@ -21944,7 +21963,7 @@ function TransactionsToReview({ onClick, tagFilter = void 0, variants: variants$
21944
21963
  }
21945
21964
  return /* @__PURE__ */ jsxs("div", {
21946
21965
  onClick,
21947
- className: CLASS_NAME$2,
21966
+ className: CLASS_NAME$1,
21948
21967
  children: [/* @__PURE__ */ jsxs(VStack, {
21949
21968
  gap: verticalGap,
21950
21969
  align: "start",
@@ -22322,7 +22341,7 @@ const BalanceSheetTable = ({ data, config, stringOverrides }) => {
22322
22341
  }) }), /* @__PURE__ */ jsx(TableBody$2, { children: config.map((row, idx) => /* @__PURE__ */ jsx(Fragment, { children: data[row.lineItem] && renderLineItem(data[row.lineItem], 0, row.lineItem, idx) }, row.lineItem)) })]
22323
22342
  });
22324
22343
  };
22325
- const GlobalDatePicker = () => {
22344
+ const GlobalDatePicker = ({ showLabel = false }) => {
22326
22345
  const { date } = useGlobalDate({ dateSelectionMode: "full" });
22327
22346
  const { setDate: setGlobalDate } = useGlobalDateActions();
22328
22347
  const { minDate, maxDate } = useGlobalDatePickerBounds();
@@ -22346,19 +22365,20 @@ const GlobalDatePicker = () => {
22346
22365
  slotProps: { Label: {
22347
22366
  size: "sm",
22348
22367
  pbe: "3xs"
22349
- } }
22368
+ } },
22369
+ showLabel
22350
22370
  });
22351
22371
  };
22352
- const DateSelection = () => {
22372
+ const DateSelection = ({ showLabels = false }) => {
22353
22373
  const { value } = useSizeClass();
22354
22374
  return /* @__PURE__ */ jsxs(HStack, {
22355
22375
  className: classNames("Layer__DateSelection", { "Layer__DateSelection--mobile": value === "mobile" }),
22356
- children: [/* @__PURE__ */ jsx(DateSelectionComboBox, {}), /* @__PURE__ */ jsx(GlobalDatePicker, {})]
22376
+ children: [/* @__PURE__ */ jsx(DateSelectionComboBox, { showLabel: showLabels }), /* @__PURE__ */ jsx(GlobalDatePicker, { showLabel: showLabels })]
22357
22377
  });
22358
22378
  };
22359
- const CombinedDateSelection = ({ mode }) => {
22360
- if (mode === "month") return /* @__PURE__ */ jsx(GlobalMonthPicker, { showLabel: true });
22361
- return /* @__PURE__ */ jsx(DateSelection, {});
22379
+ const CombinedDateSelection = ({ mode, showLabels = true }) => {
22380
+ if (mode === "month") return /* @__PURE__ */ jsx(GlobalMonthPicker, { showLabel: showLabels });
22381
+ return /* @__PURE__ */ jsx(DateSelection, { showLabels });
22362
22382
  };
22363
22383
  var COMPONENT_NAME$9 = "balance-sheet";
22364
22384
  const BalanceSheet = (props) => {
@@ -26232,10 +26252,10 @@ var JournalTableView = ({ asWidget, stringOverrides }) => {
26232
26252
  })
26233
26253
  });
26234
26254
  };
26235
- var CLASS_NAME$1 = "Layer__TasksEmptyContainer";
26255
+ var CLASS_NAME = "Layer__TasksEmptyContainer";
26236
26256
  function TasksEmptyContainer({ children }) {
26237
26257
  return /* @__PURE__ */ jsx("div", {
26238
- className: CLASS_NAME$1,
26258
+ className: CLASS_NAME,
26239
26259
  children
26240
26260
  });
26241
26261
  }
@@ -36504,13 +36524,6 @@ const CallBooking = ({ callBooking, onBookCall }) => {
36504
36524
  children: callBooking ? /* @__PURE__ */ jsx(ScheduledCallState, { callBooking }) : /* @__PURE__ */ jsx(EmptyState$1, { onBookCall })
36505
36525
  });
36506
36526
  };
36507
- var CLASS_NAME = "Layer__BookkeepingProfitAndLossSummariesContainer";
36508
- function BookkeepingProfitAndLossSummariesContainer({ children }) {
36509
- return /* @__PURE__ */ jsx("div", {
36510
- className: CLASS_NAME,
36511
- children
36512
- });
36513
- }
36514
36527
  var TASKS_MOBILE_VIEWPORT_WIDTH = 1100;
36515
36528
  const useKeepInMobileViewport = () => {
36516
36529
  const upperContentRef = useRef(null);
@@ -36558,6 +36571,7 @@ const BookkeepingOverview = ({ title, showTitle = true, onClickReconnectAccounts
36558
36571
  var _slotProps$profitAndL, _callBookings$0$data$, _callBookings$, _stringOverrides$prof, _stringOverrides$prof2, _stringOverrides$prof3, _stringOverrides$prof4, _stringOverrides$prof5, _stringOverrides$prof6;
36559
36572
  const [pnlToggle, setPnlToggle] = useState("expenses");
36560
36573
  const [width] = useWindowSize();
36574
+ const { value: sizeClass } = useSizeClass();
36561
36575
  const { isCalendlyVisible, calendlyLink, calendlyRef, closeCalendly } = useCalendly();
36562
36576
  const profitAndLossSummariesVariants = slotProps === null || slotProps === void 0 || (_slotProps$profitAndL = slotProps.profitAndLoss) === null || _slotProps$profitAndL === void 0 || (_slotProps$profitAndL = _slotProps$profitAndL.summaries) === null || _slotProps$profitAndL === void 0 ? void 0 : _slotProps$profitAndL.variants;
36563
36577
  const { upperContentRef, targetElementRef, upperElementInFocus } = useKeepInMobileViewport();
@@ -36570,6 +36584,7 @@ const BookkeepingOverview = ({ title, showTitle = true, onClickReconnectAccounts
36570
36584
  children: [/* @__PURE__ */ jsxs(View, {
36571
36585
  viewClassName: "Layer__bookkeeping-overview--view",
36572
36586
  title: (stringOverrides === null || stringOverrides === void 0 ? void 0 : stringOverrides.title) || title || "Bookkeeping overview",
36587
+ header: /* @__PURE__ */ jsx(Header$1, { children: /* @__PURE__ */ jsx(HeaderRow, { children: /* @__PURE__ */ jsx(HeaderCol, { children: /* @__PURE__ */ jsx(GlobalMonthPicker, { truncateMonth: sizeClass === "mobile" }) }) }) }),
36573
36588
  withSidebar: width > 1100,
36574
36589
  sidebar: /* @__PURE__ */ jsxs(VStack, {
36575
36590
  gap: "lg",
@@ -36611,14 +36626,17 @@ const BookkeepingOverview = ({ title, showTitle = true, onClickReconnectAccounts
36611
36626
  children: [
36612
36627
  /* @__PURE__ */ jsx(ProfitAndLoss.Header, {
36613
36628
  text: (stringOverrides === null || stringOverrides === void 0 || (_stringOverrides$prof = stringOverrides.profitAndLoss) === null || _stringOverrides$prof === void 0 ? void 0 : _stringOverrides$prof.header) || "Profit & Loss",
36614
- withDatePicker: true,
36615
- withStatus: true,
36616
- dateSelectionMode: "month"
36629
+ withStatus: true
36630
+ }),
36631
+ /* @__PURE__ */ jsx(VStack, {
36632
+ pb: "md",
36633
+ pi: "md",
36634
+ fluid: true,
36635
+ children: /* @__PURE__ */ jsx(ProfitAndLoss.Summaries, {
36636
+ stringOverrides: stringOverrides === null || stringOverrides === void 0 || (_stringOverrides$prof2 = stringOverrides.profitAndLoss) === null || _stringOverrides$prof2 === void 0 ? void 0 : _stringOverrides$prof2.summaries,
36637
+ variants: profitAndLossSummariesVariants
36638
+ })
36617
36639
  }),
36618
- /* @__PURE__ */ jsx(BookkeepingProfitAndLossSummariesContainer, { children: /* @__PURE__ */ jsx(ProfitAndLoss.Summaries, {
36619
- stringOverrides: stringOverrides === null || stringOverrides === void 0 || (_stringOverrides$prof2 = stringOverrides.profitAndLoss) === null || _stringOverrides$prof2 === void 0 ? void 0 : _stringOverrides$prof2.summaries,
36620
- variants: profitAndLossSummariesVariants
36621
- }) }),
36622
36640
  /* @__PURE__ */ jsx(ProfitAndLoss.Chart, {})
36623
36641
  ]
36624
36642
  })