@factorialco/f0-react 10.17.2 → 11.0.0

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.
@@ -4,7 +4,7 @@ import { useCallback as i, useEffect as a, useRef as o, useState as s } from "re
4
4
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
5
5
  //#region \0virtual:f0-component-status-data
6
6
  var u = {
7
- generatedAt: "2026-10-27T09:50:22.014Z",
7
+ generatedAt: "2026-10-27T10:28:40.329Z",
8
8
  stats: {
9
9
  total: 309,
10
10
  byStatus: {
@@ -6405,7 +6405,7 @@ var u = {
6405
6405
  hasWhenToUse: !1,
6406
6406
  hasWhenNotToUse: !1,
6407
6407
  hasDoDonts: !1,
6408
- exampleCount: 10
6408
+ exampleCount: 11
6409
6409
  },
6410
6410
  a11yTier: "todo",
6411
6411
  storyFile: "domains/platform/home/Home/SlotWidget/__stories__/SlotWidget.stories.tsx"
@@ -8476,6 +8476,12 @@ type HomeListItemAction = {
8476
8476
  items: DropdownItem[];
8477
8477
  onClick?: never;
8478
8478
  });
8479
+ /**
8480
+ * How a line of a row reads: muted (`default`), asking for attention soon —
8481
+ * due today, due tomorrow — (`warning`), or bad news — overdue, rejected,
8482
+ * over budget — (`critical`).
8483
+ */
8484
+ type ListTextVariant = "default" | "warning" | "critical";
8479
8485
  /**
8480
8486
  * ONE FACT on a row's second line — the unit a `description` is made of when
8481
8487
  * the row has more than one thing to say ("€340", "12 receipts", "2 days
@@ -8490,8 +8496,8 @@ type HomeListItemAction = {
8490
8496
  */
8491
8497
  type DescriptionPart = {
8492
8498
  text: string;
8493
- /** Draws THIS part critical rather than muted. */
8494
- critical?: boolean;
8499
+ /** How THIS part reads; muted by default. */
8500
+ variant?: ListTextVariant;
8495
8501
  };
8496
8502
  //#endregion
8497
8503
  //#region src/domains/platform/home/Home/slotRenderers.d.ts
@@ -8678,27 +8684,28 @@ type ListClickData<C> = C extends "link" ? {
8678
8684
  */
8679
8685
  type SubtitleTone = {
8680
8686
  /**
8681
- * Draws THIS row's subtitle critical instead of muted — the row is overdue,
8682
- * rejected, over budget.
8687
+ * How THIS row's subtitle reads: muted by default, `warning` when the row
8688
+ * asks for attention soon (due today, due tomorrow), `critical` when it is
8689
+ * bad news (overdue, rejected, over budget).
8683
8690
  *
8684
- * Per ROW rather than per schema, like `unread` and `actions`: what has gone
8685
- * wrong is a state of the row's own data, so one list holds rows that say so
8686
- * beside rows that have nothing to report. The title reads the same either
8687
- * way — the subtitle is what carries the news.
8691
+ * Per ROW rather than per schema, like `unread` and `actions`: what is
8692
+ * happening is a state of the row's own data, so one list holds rows that
8693
+ * say so beside rows that have nothing to report. The title reads the same
8694
+ * either way — the subtitle is what carries the news.
8688
8695
  */
8689
- subtitleCritical?: boolean;
8696
+ subtitleVariant?: ListTextVariant;
8690
8697
  };
8691
8698
  /**
8692
8699
  * A row's SECOND LINE, in either of the two forms it may take.
8693
8700
  *
8694
- * One string with `descriptionCritical` colours the whole line; a list of
8701
+ * One string with `descriptionVariant` colours the whole line; a list of
8695
8702
  * {@link DescriptionPart}s colours each fact on it separately. The two are
8696
- * mutually exclusive on purpose — parts already carry their own `critical`, so
8703
+ * mutually exclusive on purpose — parts already carry their own `variant`, so
8697
8704
  * a row that passes both is saying the same thing twice and meaning different
8698
8705
  * things by it.
8699
8706
  *
8700
8707
  * Whichever form, the tone is per ROW rather than per schema, for the same
8701
- * reason `subtitleCritical` is: what has gone wrong is a state of the row's
8708
+ * reason `subtitleVariant` is: what is happening is a state of the row's
8702
8709
  * own data, so one list holds rows that say so beside rows that have nothing
8703
8710
  * to report.
8704
8711
  *
@@ -8708,10 +8715,10 @@ type SubtitleTone = {
8708
8715
  */
8709
8716
  type DescribedRow = {
8710
8717
  description: string;
8711
- descriptionCritical?: boolean;
8718
+ descriptionVariant?: ListTextVariant;
8712
8719
  } | {
8713
8720
  description: DescriptionPart[];
8714
- descriptionCritical?: never;
8721
+ descriptionVariant?: never;
8715
8722
  };
8716
8723
  type ListTextData<S extends ListSchema> = {
8717
8724
  title: string;
@@ -8721,13 +8728,13 @@ type ListTextData<S extends ListSchema> = {
8721
8728
  subtitle?: string;
8722
8729
  } & SubtitleTone : {
8723
8730
  subtitle?: never;
8724
- subtitleCritical?: never;
8731
+ subtitleVariant?: never;
8725
8732
  }) & (S["descriptionRequired"] extends true ? DescribedRow : S["descriptionOptional"] extends true ? DescribedRow | {
8726
8733
  description?: undefined;
8727
- descriptionCritical?: never;
8734
+ descriptionVariant?: never;
8728
8735
  } : {
8729
8736
  description?: never;
8730
- descriptionCritical?: never;
8737
+ descriptionVariant?: never;
8731
8738
  });
8732
8739
  /**
8733
8740
  * One HOVER ACTION on a `list` row: an icon button over the row's right edge
@@ -10676,12 +10683,14 @@ interface AgenticHomeListRow {
10676
10683
  id: string;
10677
10684
  title: string;
10678
10685
  subtitle?: string;
10679
- subtitleCritical?: boolean;
10686
+ /** How the subtitle reads: muted by default, `warning` (due soon) or `critical` (overdue). */
10687
+ subtitleVariant?: ListTextVariant;
10680
10688
  description?: string | {
10681
10689
  text: string;
10682
- critical?: boolean;
10690
+ variant?: ListTextVariant;
10683
10691
  }[];
10684
- descriptionCritical?: boolean;
10692
+ /** How a one-string description reads, as `subtitleVariant`. */
10693
+ descriptionVariant?: ListTextVariant;
10685
10694
  tooltipDescription?: string;
10686
10695
  unread?: boolean;
10687
10696
  /** Left glyph for `left: "person" | "team" | … | "icon"`. */