@galaxy-io/dls 2.5.1 → 2.6.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.
@@ -13,7 +13,7 @@ export declare enum BeaconSize {
13
13
  /** 10px, beside `body_lg` (20px line); a label is `body_lg` with an 8px gap. */
14
14
  X_LARGE = "X_LARGE"
15
15
  }
16
- /** Dot color role (Constitution V-A color set). Neutral steps resolve to `color.text.*`; statuses fill with `color.solid.<status>.background` and label with `color.text.<status>`. */
16
+ /** Dot color role (Constitution V-A color set). Neutral steps resolve to `color.text.*`; statuses fill with `color.mark.<status>` and label with `color.text.<status>`. */
17
17
  export declare enum BeaconVariant {
18
18
  /** `text.primary`. The default (1.x `BASE` / `PRIMARY`). */
19
19
  PRIMARY = "PRIMARY",
@@ -25,11 +25,11 @@ export declare enum BeaconVariant {
25
25
  DISABLED = "DISABLED",
26
26
  /** The parent's color (`currentColor`). */
27
27
  INHERIT = "INHERIT",
28
- /** Status: success. Dot `solid.success.background`, label `text.success`. */
28
+ /** Status: success. Dot `mark.success`, label `text.success`. */
29
29
  SUCCESS = "SUCCESS",
30
- /** Status: warning. Dot `solid.warning.background`, label `text.warning`. */
30
+ /** Status: warning. Dot `mark.warning`, label `text.warning`. */
31
31
  WARNING = "WARNING",
32
- /** Status: error. Dot `solid.error.background`, label `text.error`. */
32
+ /** Status: error. Dot `mark.error`, label `text.error`. */
33
33
  ERROR = "ERROR"
34
34
  }
35
35
  interface BeaconBaseProps extends AriaAttributes {
@@ -73,7 +73,12 @@ interface BeaconVariantProps {
73
73
  * @default BeaconVariant.PRIMARY
74
74
  */
75
75
  variant?: BeaconVariant;
76
- /** Categorical palette family. Not with `variant`. */
76
+ /**
77
+ * Categorical palette family (`"blue"`, `"violet"`, …) or a status role as a string
78
+ * (`"success"`, `"error"`): the dot and ring take `mark.<name>` and the label
79
+ * `text.<name>`, the way a status variant renders. For categories and data-driven marks; a status
80
+ * that is meaning takes `variant`. Not with `variant`.
81
+ */
77
82
  color?: undefined;
78
83
  }
79
84
  /** A dot colored by category (`color`). */
@@ -86,7 +91,7 @@ interface BeaconColorProps {
86
91
  variant?: undefined;
87
92
  /**
88
93
  * Categorical palette family (`"blue"`, `"violet"`, …) or a status role as a string
89
- * (`"success"`, `"error"`): the dot and ring take `solid.<name>.background` and the label
94
+ * (`"success"`, `"error"`): the dot and ring take `mark.<name>` and the label
90
95
  * `text.<name>`, the way a status variant renders. For categories and data-driven marks; a status
91
96
  * that is meaning takes `variant`. Not with `variant`.
92
97
  */
@@ -19,12 +19,13 @@ import { cx } from "@linaria/core";
19
19
  *
20
20
  * Color is CSS, not JS: `BEACON_VARIANT_TO_CSS_MAP` (or `BEACON_COLOR_TO_CSS_MAP` for a categorical
21
21
  * `color`) sets `color` from `color.text.*` for the label and `--gx-beacon-fill` from
22
- * `color.solid.*.background` for the dot and its ring. A small solid fill is not text: the `text`
23
- * roles are tuned for 4.5:1 copy on the canvas, which in Light makes a dark, muddy dot, while the
24
- * `solid` fills are the strong, mode-stable fills the Button and Chip draw. The neutral steps have
25
- * no solid fill, so they and `INHERIT` fill with `currentColor` (the Icon and Circle pattern); a
26
- * theme switch needs no re-render. `hex` is set as the `--gx-beacon-hex` custom property in
27
- * `style` and read by a block, switched on only when the prop is set, that routes it to both.
22
+ * `color.mark.*` for the dot and its ring. A small solid fill is not text: the `text` roles are
23
+ * tuned for 4.5:1 copy on the canvas, which in Light makes a dark, muddy dot, while `mark` is the
24
+ * vivid fill every chart, `Square` and `Circle` draws, so one status reads as one color everywhere.
25
+ * The neutral steps have no mark, so they and `INHERIT` fill with `currentColor` (the Icon and
26
+ * Circle pattern); a theme switch needs no re-render. `hex` is set as the `--gx-beacon-hex` custom
27
+ * property in `style` and read by a block, switched on only when the prop is set, that routes it to
28
+ * both.
28
29
  *
29
30
  * `isPulse` repeats an expanding ring (the root's `::after`, in the dot's own color) to say "this is
30
31
  * happening now". It stops under `prefers-reduced-motion` and `GalaxyProvider reducedMotion`. Not a
@@ -45,7 +46,7 @@ var BeaconSize = /* @__PURE__ */ function(BeaconSize) {
45
46
  BeaconSize["X_LARGE"] = "X_LARGE";
46
47
  return BeaconSize;
47
48
  }({});
48
- /** Dot color role (Constitution V-A color set). Neutral steps resolve to `color.text.*`; statuses fill with `color.solid.<status>.background` and label with `color.text.<status>`. */
49
+ /** Dot color role (Constitution V-A color set). Neutral steps resolve to `color.text.*`; statuses fill with `color.mark.<status>` and label with `color.text.<status>`. */
49
50
  var BeaconVariant = /* @__PURE__ */ function(BeaconVariant) {
50
51
  /** `text.primary`. The default (1.x `BASE` / `PRIMARY`). */
51
52
  BeaconVariant["PRIMARY"] = "PRIMARY";
@@ -57,17 +58,17 @@ var BeaconVariant = /* @__PURE__ */ function(BeaconVariant) {
57
58
  BeaconVariant["DISABLED"] = "DISABLED";
58
59
  /** The parent's color (`currentColor`). */
59
60
  BeaconVariant["INHERIT"] = "INHERIT";
60
- /** Status: success. Dot `solid.success.background`, label `text.success`. */
61
+ /** Status: success. Dot `mark.success`, label `text.success`. */
61
62
  BeaconVariant["SUCCESS"] = "SUCCESS";
62
- /** Status: warning. Dot `solid.warning.background`, label `text.warning`. */
63
+ /** Status: warning. Dot `mark.warning`, label `text.warning`. */
63
64
  BeaconVariant["WARNING"] = "WARNING";
64
- /** Status: error. Dot `solid.error.background`, label `text.error`. */
65
+ /** Status: error. Dot `mark.error`, label `text.error`. */
65
66
  BeaconVariant["ERROR"] = "ERROR";
66
67
  return BeaconVariant;
67
68
  }({});
68
69
  /**
69
70
  * The root is the dot: phrasing content, so it is valid inside `Text`, a `<button>` or a `<label>`.
70
- * The fill is `--gx-beacon-fill` (a `solid` fill for a status or family), falling back to
71
+ * The fill is `--gx-beacon-fill` (the `mark` of a status or family), falling back to
71
72
  * `currentColor` for the neutral steps and `INHERIT`; `forced-color-adjust: none` keeps it visible
72
73
  * in high contrast. The pulse ring is `::after`, invisible at rest, in the same fill.
73
74
  */
@@ -123,7 +124,7 @@ var BEACON_VARIANT_TO_CSS_MAP = {
123
124
  ["WARNING"]: "gx-Beacon-WARNING-w1d27vzd",
124
125
  ["ERROR"]: "gx-Beacon-ERROR-eshtlvu"
125
126
  };
126
- /** Categorical `color`: the label `text.<family>`, the dot `solid.<family>.background`, the way a status variant renders. */
127
+ /** Categorical `color`: the label `text.<family>`, the dot `mark.<family>`, the way a status variant renders. */
127
128
  var BEACON_COLOR_TO_CSS_MAP = {
128
129
  success: "gx-Beacon-success-s1nxs4in",
129
130
  warning: "gx-Beacon-warning-w1dc3rbq",
@@ -100,7 +100,7 @@ var OverflowList = /*#__PURE__*/ styled("ul")({
100
100
  });
101
101
  function Swatch({ item, swatch }) {
102
102
  return /* @__PURE__ */ jsx(SwatchColor, {
103
- style: { "--gx-chart-mark-color": item.hex ?? (item.hue !== void 0 ? t.color.text[item.hue] : CHART_PALETTE_TO_COLOR_MAP[item.palette ?? ChartPalette.TERTIARY]) },
103
+ style: { "--gx-chart-mark-color": item.hex ?? (item.hue !== void 0 ? t.color.mark[item.hue] : CHART_PALETTE_TO_COLOR_MAP[item.palette ?? ChartPalette.TERTIARY]) },
104
104
  children: swatch === ChartSwatch.CIRCLE ? /* @__PURE__ */ jsx(Circle, {
105
105
  size: CircleSize.SMALL,
106
106
  variant: CircleVariant.INHERIT
@@ -24,11 +24,11 @@ export declare enum SparklineVariant {
24
24
  TERTIARY = "TERTIARY",
25
25
  /** The parent's color (`currentColor`). */
26
26
  INHERIT = "INHERIT",
27
- /** Status: success, `text.success`. */
27
+ /** Status: success, `mark.success`. */
28
28
  SUCCESS = "SUCCESS",
29
- /** Status: warning, `text.warning`. */
29
+ /** Status: warning, `mark.warning`. */
30
30
  WARNING = "WARNING",
31
- /** Status: error, `text.error`. */
31
+ /** Status: error, `mark.error`. */
32
32
  ERROR = "ERROR"
33
33
  }
34
34
  /** What the data is drawn as. A named second axis (Article V), not a variant. */
@@ -82,7 +82,12 @@ interface SparklineVariantProps {
82
82
  * @default SparklineVariant.SECONDARY
83
83
  */
84
84
  variant?: SparklineVariant;
85
- /** Categorical palette family. Not with `variant`. */
85
+ /**
86
+ * Categorical palette family (`"blue"`, `"violet"`, …) or a status role as a string
87
+ * (`"success"`, `"error"`): the marks take `mark.<name>`, the way a status variant renders. For
88
+ * a series' category or data-driven color; a status that is meaning takes `variant`. Not with
89
+ * `variant`.
90
+ */
86
91
  color?: undefined;
87
92
  }
88
93
  /** A sparkline colored by category (`color`). */
@@ -95,7 +100,7 @@ interface SparklineColorProps {
95
100
  variant?: undefined;
96
101
  /**
97
102
  * Categorical palette family (`"blue"`, `"violet"`, …) or a status role as a string
98
- * (`"success"`, `"error"`): the marks take `text.<name>`, the way a status variant renders. For
103
+ * (`"success"`, `"error"`): the marks take `mark.<name>`, the way a status variant renders. For
99
104
  * a series' category or data-driven color; a status that is meaning takes `variant`. Not with
100
105
  * `variant`.
101
106
  */
@@ -14,10 +14,10 @@ import { cx } from "@linaria/core";
14
14
  * `LineChart` / `BarChart`.
15
15
  *
16
16
  * Color is CSS: `SPARKLINE_VARIANT_TO_CSS_MAP` (or `SPARKLINE_COLOR_TO_CSS_MAP` for a categorical
17
- * `color`) sets `color` from `color.text.*` and the marks read
18
- * `currentColor`, so `INHERIT` and `hex` share one path and a theme switch needs no re-render.
19
- * Height is a control rung so it lines up with its row; width is four times
20
- * the height unless `fillWidth`.
17
+ * `color`) sets `color` from `color.text.*` (the neutral steps) or `color.mark.*` (statuses and
18
+ * families), and the marks read `currentColor`, so `INHERIT` and `hex` share one path and a theme
19
+ * switch needs no re-render. Height is a control rung so it lines up with its row; width is four
20
+ * times the height unless `fillWidth`.
21
21
  *
22
22
  * Drawn in a fixed `0 0 100 100` viewBox with `preserveAspectRatio="none"` and a non-scaling
23
23
  * stroke: no measurement, identical under SSR. Reuses LineChart's curve and the 1.x bar spacing.
@@ -47,11 +47,11 @@ var SparklineVariant = /* @__PURE__ */ function(SparklineVariant) {
47
47
  SparklineVariant["TERTIARY"] = "TERTIARY";
48
48
  /** The parent's color (`currentColor`). */
49
49
  SparklineVariant["INHERIT"] = "INHERIT";
50
- /** Status: success, `text.success`. */
50
+ /** Status: success, `mark.success`. */
51
51
  SparklineVariant["SUCCESS"] = "SUCCESS";
52
- /** Status: warning, `text.warning`. */
52
+ /** Status: warning, `mark.warning`. */
53
53
  SparklineVariant["WARNING"] = "WARNING";
54
- /** Status: error, `text.error`. */
54
+ /** Status: error, `mark.error`. */
55
55
  SparklineVariant["ERROR"] = "ERROR";
56
56
  return SparklineVariant;
57
57
  }({});
@@ -110,7 +110,7 @@ var SPARKLINE_VARIANT_TO_CSS_MAP = {
110
110
  ["WARNING"]: "gx-Sparkline-WARNING-w12wppjx",
111
111
  ["ERROR"]: "gx-Sparkline-ERROR-e1vjlz3y"
112
112
  };
113
- /** Categorical `color`: `text.<family>`, the way a status variant renders. */
113
+ /** Categorical `color`: `mark.<family>`, the way a status variant renders. */
114
114
  var SPARKLINE_COLOR_TO_CSS_MAP = {
115
115
  success: "gx-Sparkline-success-s1g1xl1p",
116
116
  warning: "gx-Sparkline-warning-w1jau8rz",
@@ -16,7 +16,7 @@ export declare const isChartPalette: (value: ChartPalette | RoleColor) => value
16
16
  * `violet`.
17
17
  */
18
18
  export declare const CHART_PALETTE_TO_HUE_MAP: Record<ChartPalette, ChartHue>;
19
- /** @internal Palette slot → the CSS color of its marks: the family's `text.<family>` (text and icons). */
19
+ /** @internal Palette slot → the CSS color of its marks: the family's `mark.<family>`. */
20
20
  export declare const CHART_PALETTE_TO_COLOR_MAP: Record<ChartPalette, string>;
21
21
  /** @internal The color of a mark that names no series (PieChart's folded "Other" bucket): `cyan`, never gray. */
22
22
  export declare const CHART_NEUTRAL_COLOR: string;
@@ -2,10 +2,10 @@ import { t } from "../theme/tokens/t.js";
2
2
  import { ChartPalette } from "./types.js";
3
3
  //#region src/charts/chartPalette.ts
4
4
  /**
5
- * @internal Series colors. A palette slot maps to a `t.color.text.<family>` string (`var(--gx-…)`),
5
+ * @internal Series colors. A palette slot maps to a `t.color.mark.<family>` string (`var(--gx-…)`),
6
6
  * so a theme switch repaints marks through CSS with no React render. Imports only `t` and types:
7
7
  * no component, no d3.
8
- * Apps that want a slot's color in their own CSS use `t.color.text.<family>`.
8
+ * Apps that want a slot's color in their own CSS use `t.color.mark.<family>`.
9
9
  */
10
10
  /**
11
11
  * @internal Automatic assignment order: the eight hues, purple first. Status slots never join it
@@ -45,10 +45,10 @@ var CHART_PALETTE_TO_HUE_MAP = {
45
45
  [ChartPalette.SECONDARY]: "sky",
46
46
  [ChartPalette.TERTIARY]: "violet"
47
47
  };
48
- /** @internal Palette slot → the CSS color of its marks: the family's `text.<family>` (text and icons). */
49
- var CHART_PALETTE_TO_COLOR_MAP = Object.fromEntries(Object.values(ChartPalette).map((palette) => [palette, t.color.text[CHART_PALETTE_TO_HUE_MAP[palette]]]));
48
+ /** @internal Palette slot → the CSS color of its marks: the family's `mark.<family>`. */
49
+ var CHART_PALETTE_TO_COLOR_MAP = Object.fromEntries(Object.values(ChartPalette).map((palette) => [palette, t.color.mark[CHART_PALETTE_TO_HUE_MAP[palette]]]));
50
50
  /** @internal The color of a mark that names no series (PieChart's folded "Other" bucket): `cyan`, never gray. */
51
- var CHART_NEUTRAL_COLOR = t.color.text.cyan;
51
+ var CHART_NEUTRAL_COLOR = t.color.mark.cyan;
52
52
  /** @internal The slot at a position in the automatic order (wraps after eight). */
53
53
  function chartPaletteAt(index) {
54
54
  const order = CHART_PALETTE_ORDER;
@@ -61,7 +61,7 @@ function resolveChartSeriesColor(index, explicit, hex) {
61
61
  hex
62
62
  };
63
63
  if (explicit !== void 0 && !isChartPalette(explicit)) return {
64
- color: t.color.text[explicit],
64
+ color: t.color.mark[explicit],
65
65
  hue: explicit
66
66
  };
67
67
  const palette = explicit ?? chartPaletteAt(index);
@@ -119,20 +119,11 @@ export interface ChipBaseProps extends AriaAttributes {
119
119
  style?: CSSProperties;
120
120
  }
121
121
  /** A chip with a visible label. */
122
- interface ChipLabelledProps {
123
- /** Visible text. */
124
- label: string;
125
- }
122
+ type ChipLabelledProps = Required<Pick<ChipBaseProps, "label">>;
126
123
  /** A chip with a count (a badge). */
127
- interface ChipCountedProps {
128
- /** A number after the label (or alone, as a badge). */
129
- count: number;
130
- }
124
+ type ChipCountedProps = Required<Pick<ChipBaseProps, "count">>;
131
125
  /** A chip with neither a label nor a count (icon-only): the accessible name is required. */
132
- interface ChipNamedProps {
133
- /** Accessible name. Required when there is neither `label` nor `count`. */
134
- ariaLabel: string;
135
- }
126
+ type ChipNamedProps = Required<Pick<ChipBaseProps, "ariaLabel">>;
136
127
  /** A chip colored by meaning (`variant`), or the default `SECONDARY`. */
137
128
  interface ChipVariantProps {
138
129
  /**
@@ -141,7 +132,12 @@ interface ChipVariantProps {
141
132
  * @default ChipVariant.SECONDARY
142
133
  */
143
134
  variant?: ChipVariant;
144
- /** Categorical palette family. Not with `variant`. */
135
+ /**
136
+ * Categorical palette family (`"blue"`, `"violet"`, …) or a status role as a string
137
+ * (`"success"`, `"error"`): the name's text, fill and border, the way a status variant renders.
138
+ * For categories and data-driven chips (a source type, a team, a run status map); a status that
139
+ * is meaning takes `variant`. Not with `variant`.
140
+ */
145
141
  color?: undefined;
146
142
  }
147
143
  /** A chip colored by category (`color`). */
@@ -21,11 +21,11 @@ export declare enum ProgressBarVariant {
21
21
  SECONDARY = "SECONDARY",
22
22
  /** `text.tertiary`. */
23
23
  TERTIARY = "TERTIARY",
24
- /** `text.success`: healthy, on track, complete. */
24
+ /** `mark.success`: healthy, on track, complete. */
25
25
  SUCCESS = "SUCCESS",
26
- /** `text.warning`: at risk, nearing a limit. */
26
+ /** `mark.warning`: at risk, nearing a limit. */
27
27
  WARNING = "WARNING",
28
- /** `text.error`: failing, over a limit. */
28
+ /** `mark.error`: failing, over a limit. */
29
29
  ERROR = "ERROR"
30
30
  }
31
31
  /** The axes (everything except the value pair, the name pair and the passthrough). */
@@ -43,7 +43,12 @@ interface ProgressBarVariantProps {
43
43
  * @default ProgressBarVariant.PRIMARY
44
44
  */
45
45
  variant?: ProgressBarVariant;
46
- /** Categorical palette family. Not with `variant`. */
46
+ /**
47
+ * Categorical palette family (`"blue"`, `"violet"`, …) or a status role as a string
48
+ * (`"success"`, `"error"`): the fill takes `mark.<name>`, the way a status variant renders. For a
49
+ * category's or data-driven color (a source type, a team); a status that is meaning takes
50
+ * `variant`. Not with `variant`.
51
+ */
47
52
  color?: undefined;
48
53
  }
49
54
  /** A bar colored by category (`color`). */
@@ -55,7 +60,7 @@ interface ProgressBarColorProps {
55
60
  variant?: undefined;
56
61
  /**
57
62
  * Categorical palette family (`"blue"`, `"violet"`, …) or a status role as a string
58
- * (`"success"`, `"error"`): the fill takes `text.<name>`, the way a status variant renders. For a
63
+ * (`"success"`, `"error"`): the fill takes `mark.<name>`, the way a status variant renders. For a
59
64
  * category's or data-driven color (a source type, a team); a status that is meaning takes
60
65
  * `variant`. Not with `variant`.
61
66
  */
@@ -42,11 +42,11 @@ var ProgressBarVariant = /* @__PURE__ */ function(ProgressBarVariant) {
42
42
  ProgressBarVariant["SECONDARY"] = "SECONDARY";
43
43
  /** `text.tertiary`. */
44
44
  ProgressBarVariant["TERTIARY"] = "TERTIARY";
45
- /** `text.success`: healthy, on track, complete. */
45
+ /** `mark.success`: healthy, on track, complete. */
46
46
  ProgressBarVariant["SUCCESS"] = "SUCCESS";
47
- /** `text.warning`: at risk, nearing a limit. */
47
+ /** `mark.warning`: at risk, nearing a limit. */
48
48
  ProgressBarVariant["WARNING"] = "WARNING";
49
- /** `text.error`: failing, over a limit. */
49
+ /** `mark.error`: failing, over a limit. */
50
50
  ProgressBarVariant["ERROR"] = "ERROR";
51
51
  return ProgressBarVariant;
52
52
  }({});
@@ -95,7 +95,7 @@ var PROGRESS_BAR_VARIANT_TO_CSS_MAP = {
95
95
  ["WARNING"]: "gx-ProgressBar-WARNING-w1w2olvo",
96
96
  ["ERROR"]: "gx-ProgressBar-ERROR-e1qre8wf"
97
97
  };
98
- /** Categorical `color`: `text.<family>` on the root, the way a status variant renders. */
98
+ /** Categorical `color`: `mark.<family>` on the root, the way a status variant renders. */
99
99
  var PROGRESS_BAR_COLOR_TO_CSS_MAP = {
100
100
  success: "gx-ProgressBar-success-seiy0oi",
101
101
  warning: "gx-ProgressBar-warning-w1epzlep",
@@ -21,11 +21,11 @@ export declare enum ProgressCircleVariant {
21
21
  SECONDARY = "SECONDARY",
22
22
  /** `text.tertiary`. */
23
23
  TERTIARY = "TERTIARY",
24
- /** `text.success`: healthy, on track, complete. */
24
+ /** `mark.success`: healthy, on track, complete. */
25
25
  SUCCESS = "SUCCESS",
26
- /** `text.warning`: at risk, nearing a limit. */
26
+ /** `mark.warning`: at risk, nearing a limit. */
27
27
  WARNING = "WARNING",
28
- /** `text.error`: failing, over a limit. */
28
+ /** `mark.error`: failing, over a limit. */
29
29
  ERROR = "ERROR"
30
30
  }
31
31
  /** The value, the size and the shown value (everything except the color pair, the name pair and the passthrough). */
@@ -50,7 +50,12 @@ interface ProgressCircleVariantProps {
50
50
  * @default ProgressCircleVariant.PRIMARY
51
51
  */
52
52
  variant?: ProgressCircleVariant;
53
- /** Categorical palette family. Not with `variant`. */
53
+ /**
54
+ * Categorical palette family (`"blue"`, `"violet"`, …) or a status role as a string
55
+ * (`"success"`, `"error"`): the arc takes `mark.<name>`, the way a status variant renders. For a
56
+ * category's or data-driven color (a source type, a team); a status that is meaning takes
57
+ * `variant`. Not with `variant`.
58
+ */
54
59
  color?: undefined;
55
60
  }
56
61
  /** A ring colored by category (`color`). */
@@ -62,7 +67,7 @@ interface ProgressCircleColorProps {
62
67
  variant?: undefined;
63
68
  /**
64
69
  * Categorical palette family (`"blue"`, `"violet"`, …) or a status role as a string
65
- * (`"success"`, `"error"`): the arc takes `text.<name>`, the way a status variant renders. For a
70
+ * (`"success"`, `"error"`): the arc takes `mark.<name>`, the way a status variant renders. For a
66
71
  * category's or data-driven color (a source type, a team); a status that is meaning takes
67
72
  * `variant`. Not with `variant`.
68
73
  */
@@ -42,11 +42,11 @@ var ProgressCircleVariant = /* @__PURE__ */ function(ProgressCircleVariant) {
42
42
  ProgressCircleVariant["SECONDARY"] = "SECONDARY";
43
43
  /** `text.tertiary`. */
44
44
  ProgressCircleVariant["TERTIARY"] = "TERTIARY";
45
- /** `text.success`: healthy, on track, complete. */
45
+ /** `mark.success`: healthy, on track, complete. */
46
46
  ProgressCircleVariant["SUCCESS"] = "SUCCESS";
47
- /** `text.warning`: at risk, nearing a limit. */
47
+ /** `mark.warning`: at risk, nearing a limit. */
48
48
  ProgressCircleVariant["WARNING"] = "WARNING";
49
- /** `text.error`: failing, over a limit. */
49
+ /** `mark.error`: failing, over a limit. */
50
50
  ProgressCircleVariant["ERROR"] = "ERROR";
51
51
  return ProgressCircleVariant;
52
52
  }({});
@@ -82,7 +82,7 @@ var PROGRESS_CIRCLE_VARIANT_TO_CSS_MAP = {
82
82
  ["WARNING"]: "gx-ProgressCircle-WARNING-w1ii09vl",
83
83
  ["ERROR"]: "gx-ProgressCircle-ERROR-e149xl4a"
84
84
  };
85
- /** Categorical `color`: `text.<family>` on the root, the way a status variant renders. */
85
+ /** Categorical `color`: `mark.<family>` on the root, the way a status variant renders. */
86
86
  var PROGRESS_CIRCLE_COLOR_TO_CSS_MAP = {
87
87
  success: "gx-ProgressCircle-success-s5wr4fy",
88
88
  warning: "gx-ProgressCircle-warning-w3cpdk8",
@@ -13,7 +13,7 @@ export declare enum CircleSize {
13
13
  /** 12px, beside `body_lg` (20px line). */
14
14
  X_LARGE = "X_LARGE"
15
15
  }
16
- /** Fill color role (Constitution V-A color set). Resolves to `color.text.*`. */
16
+ /** Fill color role (Constitution V-A color set). Neutral steps resolve to `color.text.*`, statuses to `color.mark.*`. */
17
17
  export declare enum CircleVariant {
18
18
  /** `text.primary`. */
19
19
  PRIMARY = "PRIMARY",
@@ -25,11 +25,11 @@ export declare enum CircleVariant {
25
25
  DISABLED = "DISABLED",
26
26
  /** The parent's color (`currentColor`). */
27
27
  INHERIT = "INHERIT",
28
- /** Status: success, `text.success`. */
28
+ /** Status: success, `mark.success`. */
29
29
  SUCCESS = "SUCCESS",
30
- /** Status: warning, `text.warning`. */
30
+ /** Status: warning, `mark.warning`. */
31
31
  WARNING = "WARNING",
32
- /** Status: error, `text.error`. */
32
+ /** Status: error, `mark.error`. */
33
33
  ERROR = "ERROR"
34
34
  }
35
35
  interface CircleBaseProps extends AriaAttributes {
@@ -60,7 +60,12 @@ interface CircleVariantProps {
60
60
  * @default CircleVariant.TERTIARY
61
61
  */
62
62
  variant?: CircleVariant;
63
- /** Categorical palette family. Not with `variant`. */
63
+ /**
64
+ * Categorical palette family (`"blue"`, `"violet"`, …) or a status role as a string
65
+ * (`"success"`, `"error"`): fills with `mark.<name>`, the way a status variant renders. For
66
+ * categories and data-driven marks (a series, a source type, a run status map); a status that is
67
+ * meaning takes `variant`. Not with `variant`.
68
+ */
64
69
  color?: undefined;
65
70
  }
66
71
  /** A dot colored by category (`color`). */
@@ -73,7 +78,7 @@ interface CircleColorProps {
73
78
  variant?: undefined;
74
79
  /**
75
80
  * Categorical palette family (`"blue"`, `"violet"`, …) or a status role as a string
76
- * (`"success"`, `"error"`): fills with `text.<name>`, the way a status variant renders. For
81
+ * (`"success"`, `"error"`): fills with `mark.<name>`, the way a status variant renders. For
77
82
  * categories and data-driven marks (a series, a source type, a run status map); a status that is
78
83
  * meaning takes `variant`. Not with `variant`.
79
84
  */
@@ -10,10 +10,10 @@ import { cx } from "@linaria/core";
10
10
  * the meaning; the dot carries the color.
11
11
  *
12
12
  * Color is CSS, not JS: `CIRCLE_VARIANT_TO_CSS_MAP` (or `CIRCLE_COLOR_TO_CSS_MAP` for a categorical
13
- * `color`) sets `color` from `color.text.*` and the fill
14
- * reads `currentColor` (the Icon pattern), so `INHERIT` and `hex` share one path and a theme
15
- * switch needs no re-render. `hex` is set as the `--gx-circle-hex` custom property in
16
- * `style` and read by a block switched on only when the prop is set.
13
+ * `color`) sets `color` from `color.text.*` (the neutral steps) or `color.mark.*` (statuses and
14
+ * families), and the fill reads `currentColor` (the Icon pattern), so `INHERIT` and `hex` share one
15
+ * path and a theme switch needs no re-render. `hex` is set as the `--gx-circle-hex` custom property
16
+ * in `style` and read by a block switched on only when the prop is set.
17
17
  *
18
18
  * `size` names the rung of the text the dot sits beside. Every diameter leaves an even gap to its
19
19
  * paired line height, so a dot centered beside its `Text` lands on whole pixels. Not live status
@@ -34,7 +34,7 @@ var CircleSize = /* @__PURE__ */ function(CircleSize) {
34
34
  CircleSize["X_LARGE"] = "X_LARGE";
35
35
  return CircleSize;
36
36
  }({});
37
- /** Fill color role (Constitution V-A color set). Resolves to `color.text.*`. */
37
+ /** Fill color role (Constitution V-A color set). Neutral steps resolve to `color.text.*`, statuses to `color.mark.*`. */
38
38
  var CircleVariant = /* @__PURE__ */ function(CircleVariant) {
39
39
  /** `text.primary`. */
40
40
  CircleVariant["PRIMARY"] = "PRIMARY";
@@ -46,11 +46,11 @@ var CircleVariant = /* @__PURE__ */ function(CircleVariant) {
46
46
  CircleVariant["DISABLED"] = "DISABLED";
47
47
  /** The parent's color (`currentColor`). */
48
48
  CircleVariant["INHERIT"] = "INHERIT";
49
- /** Status: success, `text.success`. */
49
+ /** Status: success, `mark.success`. */
50
50
  CircleVariant["SUCCESS"] = "SUCCESS";
51
- /** Status: warning, `text.warning`. */
51
+ /** Status: warning, `mark.warning`. */
52
52
  CircleVariant["WARNING"] = "WARNING";
53
- /** Status: error, `text.error`. */
53
+ /** Status: error, `mark.error`. */
54
54
  CircleVariant["ERROR"] = "ERROR";
55
55
  return CircleVariant;
56
56
  }({});
@@ -82,7 +82,7 @@ var CIRCLE_VARIANT_TO_CSS_MAP = {
82
82
  ["WARNING"]: "gx-Circle-WARNING-w1wd9i5w",
83
83
  ["ERROR"]: "gx-Circle-ERROR-e4bqin2"
84
84
  };
85
- /** Categorical `color`: `text.<family>`, the way a status variant renders. */
85
+ /** Categorical `color`: `mark.<family>`, the way a status variant renders. */
86
86
  var CIRCLE_COLOR_TO_CSS_MAP = {
87
87
  success: "gx-Circle-success-sisghat",
88
88
  warning: "gx-Circle-warning-wrnyxi5",
@@ -13,7 +13,7 @@ export declare enum SquareSize {
13
13
  /** 12px, beside `body_lg` (20px line). */
14
14
  X_LARGE = "X_LARGE"
15
15
  }
16
- /** Fill color role (Constitution V-A color set). Resolves to `color.text.*`. */
16
+ /** Fill color role (Constitution V-A color set). Neutral steps resolve to `color.text.*`, statuses to `color.mark.*`. */
17
17
  export declare enum SquareVariant {
18
18
  /** `text.primary`. */
19
19
  PRIMARY = "PRIMARY",
@@ -25,11 +25,11 @@ export declare enum SquareVariant {
25
25
  DISABLED = "DISABLED",
26
26
  /** The parent's color (`currentColor`). */
27
27
  INHERIT = "INHERIT",
28
- /** Status: success, `text.success`. */
28
+ /** Status: success, `mark.success`. */
29
29
  SUCCESS = "SUCCESS",
30
- /** Status: warning, `text.warning`. */
30
+ /** Status: warning, `mark.warning`. */
31
31
  WARNING = "WARNING",
32
- /** Status: error, `text.error`. */
32
+ /** Status: error, `mark.error`. */
33
33
  ERROR = "ERROR"
34
34
  }
35
35
  interface SquareBaseProps extends AriaAttributes {
@@ -60,7 +60,12 @@ interface SquareVariantProps {
60
60
  * @default SquareVariant.TERTIARY
61
61
  */
62
62
  variant?: SquareVariant;
63
- /** Categorical palette family. Not with `variant`. */
63
+ /**
64
+ * Categorical palette family (`"blue"`, `"violet"`, …) or a status role as a string
65
+ * (`"success"`, `"error"`): fills with `mark.<name>`, the way a status variant renders. For
66
+ * categories and data-driven marks (a series, a source type, a run status map); a status that is
67
+ * meaning takes `variant`. Not with `variant`.
68
+ */
64
69
  color?: undefined;
65
70
  }
66
71
  /** A mark colored by category (`color`). */
@@ -73,7 +78,7 @@ interface SquareColorProps {
73
78
  variant?: undefined;
74
79
  /**
75
80
  * Categorical palette family (`"blue"`, `"violet"`, …) or a status role as a string
76
- * (`"success"`, `"error"`): fills with `text.<name>`, the way a status variant renders. For
81
+ * (`"success"`, `"error"`): fills with `mark.<name>`, the way a status variant renders. For
77
82
  * categories and data-driven marks (a series, a source type, a run status map); a status that is
78
83
  * meaning takes `variant`. Not with `variant`.
79
84
  */
@@ -11,10 +11,10 @@ import { cx } from "@linaria/core";
11
11
  * circle keys a line or point series, a square keys a filled area or bar.
12
12
  *
13
13
  * Color is CSS, not JS: `SQUARE_VARIANT_TO_CSS_MAP` (or `SQUARE_COLOR_TO_CSS_MAP` for a categorical
14
- * `color`) sets `color` from `color.text.*` and the fill
15
- * reads `currentColor` (the Icon pattern), so `INHERIT` and `hex` share one path and a theme
16
- * switch needs no re-render. `hex` is set as the `--gx-square-hex` custom property in
17
- * `style` and read by a block switched on only when the prop is set.
14
+ * `color`) sets `color` from `color.text.*` (the neutral steps) or `color.mark.*` (statuses and
15
+ * families), and the fill reads `currentColor` (the Icon pattern), so `INHERIT` and `hex` share one
16
+ * path and a theme switch needs no re-render. `hex` is set as the `--gx-square-hex` custom property
17
+ * in `style` and read by a block switched on only when the prop is set.
18
18
  *
19
19
  * `size` names the rung of the text the mark sits beside. Every side leaves an even gap to its
20
20
  * paired line height, so a mark centered beside its `Text` lands on whole pixels with crisp edges.
@@ -34,7 +34,7 @@ var SquareSize = /* @__PURE__ */ function(SquareSize) {
34
34
  SquareSize["X_LARGE"] = "X_LARGE";
35
35
  return SquareSize;
36
36
  }({});
37
- /** Fill color role (Constitution V-A color set). Resolves to `color.text.*`. */
37
+ /** Fill color role (Constitution V-A color set). Neutral steps resolve to `color.text.*`, statuses to `color.mark.*`. */
38
38
  var SquareVariant = /* @__PURE__ */ function(SquareVariant) {
39
39
  /** `text.primary`. */
40
40
  SquareVariant["PRIMARY"] = "PRIMARY";
@@ -46,11 +46,11 @@ var SquareVariant = /* @__PURE__ */ function(SquareVariant) {
46
46
  SquareVariant["DISABLED"] = "DISABLED";
47
47
  /** The parent's color (`currentColor`). */
48
48
  SquareVariant["INHERIT"] = "INHERIT";
49
- /** Status: success, `text.success`. */
49
+ /** Status: success, `mark.success`. */
50
50
  SquareVariant["SUCCESS"] = "SUCCESS";
51
- /** Status: warning, `text.warning`. */
51
+ /** Status: warning, `mark.warning`. */
52
52
  SquareVariant["WARNING"] = "WARNING";
53
- /** Status: error, `text.error`. */
53
+ /** Status: error, `mark.error`. */
54
54
  SquareVariant["ERROR"] = "ERROR";
55
55
  return SquareVariant;
56
56
  }({});
@@ -83,7 +83,7 @@ var SQUARE_VARIANT_TO_CSS_MAP = {
83
83
  ["WARNING"]: "gx-Square-WARNING-w1jcu9g9",
84
84
  ["ERROR"]: "gx-Square-ERROR-e1a9qgv5"
85
85
  };
86
- /** Categorical `color`: `text.<family>`, the way a status variant renders. */
86
+ /** Categorical `color`: `mark.<family>`, the way a status variant renders. */
87
87
  var SQUARE_COLOR_TO_CSS_MAP = {
88
88
  success: "gx-Square-success-s44keg",
89
89
  warning: "gx-Square-warning-w1czb11g",