@luscii-healthtech/web-ui 42.10.2 → 42.10.4

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.
@@ -13,7 +13,7 @@ export interface TableProps extends HTMLAttributes<HTMLTableElement> {
13
13
  */
14
14
  headerBackground?: "first-column" | "first-row" | "first-row-and-column" | "none";
15
15
  /**
16
- * Controls how the table width will behave:
16
+ * Controls how the wrapper div width around the table will will behave:
17
17
  *
18
18
  * - `fit-content`: Width adjusted based on its content while staying within the limits of its container.
19
19
  * It ensures the element is never smaller than its minimum intrinsic size or larger than its maximum intrinsic size.
@@ -21,6 +21,13 @@ export interface TableProps extends HTMLAttributes<HTMLTableElement> {
21
21
  * - `full-width`: Width will always stretch to the full viewport size, regardless of the size of the content.
22
22
  */
23
23
  variant?: "fit-content" | "full-width";
24
+ /**
25
+ * - `auto`: Use the table-auto utility to automatically size table columns to fit the contents of its cells
26
+ * - `fixed`: Use the table-fixed utility to ignore the content of the table cells and use fixed widths for each column
27
+ *
28
+ * @default `auto`
29
+ */
30
+ layout?: "fixed" | "auto";
24
31
  }
25
32
  export interface TheadProps extends HTMLAttributes<HTMLTableSectionElement> {
26
33
  stickyHeader?: boolean;
@@ -1333,6 +1333,9 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
1333
1333
  .ui\:table-auto {
1334
1334
  table-layout: auto;
1335
1335
  }
1336
+ .ui\:table-fixed {
1337
+ table-layout: fixed;
1338
+ }
1336
1339
  .ui\:border-separate {
1337
1340
  border-collapse: separate;
1338
1341
  }