@layerfi/components 0.1.108-alpha.1 → 0.1.108

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
@@ -4513,6 +4513,9 @@ tbody .Layer__table__empty-row:first-child {
4513
4513
  }
4514
4514
  .Layer__UI__Button[data-variant=text] {
4515
4515
  --size: inherit;
4516
+ display: inline-block;
4517
+ overflow: hidden;
4518
+ text-overflow: ellipsis;
4516
4519
  padding-inline: 0;
4517
4520
  border: none;
4518
4521
  background-color: transparent;
@@ -5475,6 +5478,9 @@ tbody .Layer__table__empty-row:first-child {
5475
5478
  .Layer__UI__Table-TableHeader:not(:last-child) .Layer__UI__Table-Column {
5476
5479
  border-bottom: 1px solid var(--color-base-300);
5477
5480
  }
5481
+ .Layer__UI__Table-TableHeader > tr {
5482
+ height: inherit;
5483
+ }
5478
5484
  .Layer__UI__Table-Row {
5479
5485
  height: 3.25rem;
5480
5486
  }
@@ -5483,6 +5489,9 @@ tbody .Layer__table__empty-row:first-child {
5483
5489
  }
5484
5490
  .Layer__UI__Table-Column {
5485
5491
  box-sizing: border-box;
5492
+ display: flex;
5493
+ align-items: center;
5494
+ height: inherit;
5486
5495
  padding: var(--spacing-xs) var(--spacing-sm);
5487
5496
  font-size: var(--text-sm);
5488
5497
  font-weight: var(--font-weight-normal);
@@ -5504,6 +5513,10 @@ tbody .Layer__table__empty-row:first-child {
5504
5513
  text-align: right;
5505
5514
  }
5506
5515
  .Layer__UI__Table-Cell {
5516
+ box-sizing: border-box;
5517
+ display: flex;
5518
+ align-items: center;
5519
+ height: inherit;
5507
5520
  padding: var(--spacing-xs) var(--spacing-sm);
5508
5521
  font-size: var(--text-md);
5509
5522
  font-weight: var(--font-weight-normal);
@@ -5567,6 +5580,11 @@ tbody .Layer__table__empty-row:first-child {
5567
5580
  .Layer__UI__Heading[data-variant=subtle] {
5568
5581
  color: var(--fg-subtle);
5569
5582
  }
5583
+ .Layer__UI__Heading[data-ellipsis] {
5584
+ white-space: nowrap;
5585
+ overflow: hidden;
5586
+ text-overflow: ellipsis;
5587
+ }
5570
5588
  .Layer__UI__Heading[data-pbe="3xs"] {
5571
5589
  padding-block-end: var(--spacing-3xs);
5572
5590
  }
@@ -6806,41 +6824,33 @@ tbody .Layer__table__empty-row:first-child {
6806
6824
  }
6807
6825
  .Layer__UI__Table__InvoiceTable {
6808
6826
  table-layout: fixed;
6827
+ width: 100%;
6809
6828
  }
6810
- .Layer__UI__Table__InvoiceTable .Layer__UI__Table-Column__InvoiceTable--SentAt {
6811
- width: 15%;
6812
- min-width: 8rem;
6813
- }
6814
- .Layer__UI__Table__InvoiceTable .Layer__UI__Table-Column__InvoiceTable--InvoiceNo {
6815
- width: 10%;
6816
- min-width: 6.75rem;
6817
- }
6818
- .Layer__UI__Table__InvoiceTable .Layer__UI__Table-Column__InvoiceTable--Customer {
6819
- width: 35%;
6820
- min-width: 11.75rem;
6821
- }
6822
- .Layer__UI__Table__InvoiceTable .Layer__UI__Table-Column__InvoiceTable--Total {
6823
- width: 15%;
6824
- min-width: 7.75rem;
6825
- border-right: 1px solid var(--color-base-300);
6826
- text-align: end;
6827
- }
6828
- .Layer__UI__Table__InvoiceTable .Layer__UI__Table-Column__InvoiceTable--Status {
6829
- width: 25%;
6830
- min-width: 10rem;
6829
+ .Layer__UI__Table__InvoiceTable .Layer__UI__Table-Row,
6830
+ .Layer__UI__Table__InvoiceTable .Layer__UI__Table-TableHeader > tr {
6831
+ display: grid;
6832
+ grid-template-columns: minmax(8rem, 10%) minmax(6.75rem, 15%) minmax(11.75rem, 35%) minmax(7.75rem, 15%) minmax(10rem, 25%) 3.75rem;
6831
6833
  }
6834
+ .Layer__UI__Table__InvoiceTable .Layer__UI__Table-Column__InvoiceTable--Total,
6832
6835
  .Layer__UI__Table__InvoiceTable .Layer__UI__Table-Cell__InvoiceTable--Total {
6836
+ justify-content: flex-end;
6833
6837
  border-right: 1px solid var(--color-base-300);
6834
6838
  }
6835
6839
  .Layer__InvoiceTable__StatusFilter {
6836
6840
  width: 11rem;
6837
6841
  }
6842
+ .Layer__InvoiceDetail {
6843
+ width: clamp(56rem, 100%, 1406px);
6844
+ }
6838
6845
  .Layer__InvoiceDetail__SubHeader {
6839
6846
  align-items: center;
6840
6847
  height: 5.5rem;
6841
6848
  padding-left: 2.25rem;
6842
6849
  border-bottom: 1px solid var(--border-color);
6843
6850
  }
6851
+ .Layer__InvoiceDetail__Heading {
6852
+ max-inline-size: 30rem;
6853
+ }
6844
6854
  .Layer__InvoiceForm {
6845
6855
  min-width: 54rem;
6846
6856
  }
@@ -6996,6 +7006,13 @@ tbody .Layer__table__empty-row:first-child {
6996
7006
  .Layer__PaginatedDataTable__Pagination {
6997
7007
  border-top: 1px solid var(--border-color);
6998
7008
  }
7009
+ .Layer__DataTable__EmptyState__Row {
7010
+ height: fit-content;
7011
+ }
7012
+ .Layer__DataTable__EmptyState__Cell {
7013
+ grid-column: 1/-1;
7014
+ justify-content: center;
7015
+ }
6999
7016
  .Layer__UI__VirtualizedTable__container {
7000
7017
  position: relative;
7001
7018
  overflow: auto;
@@ -7014,12 +7031,6 @@ tbody .Layer__table__empty-row:first-child {
7014
7031
  top: 0;
7015
7032
  display: grid;
7016
7033
  }
7017
- .Layer__UI__VirtualizedTable__cell,
7018
- .Layer__UI__VirtualizedTable__header-cell {
7019
- display: flex;
7020
- flex-wrap: wrap;
7021
- align-content: center;
7022
- }
7023
7034
  .Layer__UI__VirtualizedTable__header-cell {
7024
7035
  background-color: var(--color-base-0);
7025
7036
  }
@@ -7850,7 +7861,7 @@ tbody .Layer__table__empty-row:first-child {
7850
7861
  margin-block-start: var(--spacing-5xl);
7851
7862
  }
7852
7863
  .Layer__ProfitAndLossDetailReport {
7853
- --pnl-detail-table-cols: minmax(7rem, 12%) minmax(7rem, 12%) minmax(10rem, 18%) minmax(12rem, 38%) minmax(7.5rem, 10%) minmax(7.5rem, 10%);
7864
+ --pnl-detail-table-cols: minmax(7.5rem, 8%) minmax(7rem, 18%) minmax(10rem, 18%) minmax(12rem, 36%) minmax(7.5rem, 10%) minmax(7.5rem, 10%);
7854
7865
  }
7855
7866
  .Layer__ProfitAndLossDetailReport .Layer__UI__Table__ProfitAndLossDetailReport {
7856
7867
  table-layout: fixed;
@@ -7885,7 +7896,7 @@ tbody .Layer__table__empty-row:first-child {
7885
7896
  grid-column: 5;
7886
7897
  justify-content: flex-end;
7887
7898
  }
7888
- @media (max-width: 768px) {
7899
+ @container (width <= 840px) {
7889
7900
  .Layer__ProfitAndLossDetailReport {
7890
7901
  --pnl-detail-table-cols: minmax(4rem, 25%) minmax(8rem, 55%) minmax(4rem, 20%);
7891
7902
  }
package/dist/index.d.ts CHANGED
@@ -6084,14 +6084,15 @@ declare module '@layerfi/components/components/ui/Modal/ModalSlots' {
6084
6084
  onClose?: () => void;
6085
6085
  };
6086
6086
  export const ModalTitleWithClose: import("react").ForwardRefExoticComponent<ModalTitleWithCloseProps & import("react").RefAttributes<HTMLDivElement>>;
6087
- export const ModalHeading: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("react-aria-components").HeadingProps & import("react").RefAttributes<HTMLHeadingElement>, "className"> & {
6087
+ export const ModalHeading: import("react").ForwardRefExoticComponent<Omit<Omit<import("react-aria-components").HeadingProps & {
6088
6088
  align?: "center";
6089
6089
  pbe?: import("@layerfi/components/components/ui/sharedUITypes").Spacing;
6090
6090
  pie?: import("@layerfi/components/components/ui/sharedUITypes").Spacing;
6091
6091
  size?: "2xs" | "xs" | "sm" | "lg" | "xl";
6092
6092
  variant?: "subtle";
6093
6093
  weight?: "normal" | "bold";
6094
- }, "ref"> & import("react").RefAttributes<HTMLHeadingElement>, "slot" | "level">, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
6094
+ ellipsis?: true;
6095
+ } & import("react").RefAttributes<HTMLHeadingElement>, "slot" | "level">, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
6095
6096
  export const ModalDescription: import("react").ForwardRefExoticComponent<Omit<Omit<Pick<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref">, "id" | "slot"> & {
6096
6097
  nonAria?: true;
6097
6098
  } & import("@layerfi/components/components/ui/Typography/Text").TextStyleProps & {
@@ -6240,6 +6241,7 @@ declare module '@layerfi/components/components/ui/TagGroup/TagGroup' {
6240
6241
 
6241
6242
  }
6242
6243
  declare module '@layerfi/components/components/ui/Typography/Heading' {
6244
+ import { HeadingProps as ReactAriaHeadingProps } from 'react-aria-components';
6243
6245
  import type { Spacing } from '@layerfi/components/components/ui/sharedUITypes';
6244
6246
  type HeadingDataProps = {
6245
6247
  align?: 'center';
@@ -6248,8 +6250,9 @@ declare module '@layerfi/components/components/ui/Typography/Heading' {
6248
6250
  size?: '2xs' | 'xs' | 'sm' | 'lg' | 'xl';
6249
6251
  variant?: 'subtle';
6250
6252
  weight?: 'normal' | 'bold';
6253
+ ellipsis?: true;
6251
6254
  };
6252
- const Heading: import("react").ForwardRefExoticComponent<Omit<Omit<import("react-aria-components").HeadingProps & import("react").RefAttributes<HTMLHeadingElement>, "className"> & HeadingDataProps, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
6255
+ const Heading: import("react").ForwardRefExoticComponent<ReactAriaHeadingProps & HeadingDataProps & import("react").RefAttributes<HTMLHeadingElement>>;
6253
6256
  export { Heading };
6254
6257
 
6255
6258
  }
@@ -7221,6 +7224,11 @@ declare module '@layerfi/components/features/customers/components/CustomerSelect
7221
7224
  export function CustomerSelector({ selectedCustomer, onSelectedCustomerChange, placeholder, isReadOnly, inline, className, }: CustomerSelectorProps): import("react/jsx-runtime").JSX.Element;
7222
7225
  export {};
7223
7226
 
7227
+ }
7228
+ declare module '@layerfi/components/features/customers/util' {
7229
+ import type { Customer } from '@layerfi/components/schemas/customer';
7230
+ export function getCustomerName(customer?: Customer | null): string;
7231
+
7224
7232
  }
7225
7233
  declare module '@layerfi/components/features/forms/components/BaseFormTextField' {
7226
7234
  import type { PropsWithChildren } from 'react';
@@ -11325,6 +11333,7 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/schemas' {
11325
11333
  }
11326
11334
  declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss' {
11327
11335
  import { ReportingBasis, SortDirection } from '@layerfi/components/types';
11336
+ import { type PnlChartLineItem } from '@layerfi/components/utils/profitAndLossUtils';
11328
11337
  export type Scope = 'expenses' | 'revenue';
11329
11338
  export type SidebarScope = Scope | undefined;
11330
11339
  export type PnlTagFilter = {
@@ -11426,9 +11435,9 @@ declare module '@layerfi/components/hooks/useProfitAndLoss/useProfitAndLoss' {
11426
11435
  readonly lineItems: readonly import("@layerfi/components/utils/schema/utils").LineItem[];
11427
11436
  } | null;
11428
11437
  } | undefined;
11429
- filteredDataRevenue: never[] | import("@layerfi/components/utils/profitAndLossUtils").PnlChartLineItem[];
11438
+ filteredDataRevenue: never[] | PnlChartLineItem[];
11430
11439
  filteredTotalRevenue: number | undefined;
11431
- filteredDataExpenses: never[] | import("@layerfi/components/utils/profitAndLossUtils").PnlChartLineItem[];
11440
+ filteredDataExpenses: never[] | PnlChartLineItem[];
11432
11441
  filteredTotalExpenses: number | undefined;
11433
11442
  isLoading: boolean;
11434
11443
  isValidating: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerfi/components",
3
- "version": "0.1.108-alpha.1",
3
+ "version": "0.1.108",
4
4
  "description": "Layer React Components",
5
5
  "main": "dist/cjs/index.cjs",
6
6
  "module": "dist/esm/index.mjs",