@stackone/malachite 2.99.2 → 2.100.1

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.
@@ -1,27 +1,50 @@
1
1
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
- import { Tag as x } from "./Tag.js";
3
- import c from "./Typography/Text.js";
4
- const p = {
2
+ import { Tag as b } from "./Tag.js";
3
+ import r from "./Typography/Text.js";
4
+ const w = {
5
5
  neutral: "var(--malachite-text-secondary, rgb(123, 123, 123))",
6
6
  info: "var(--malachite-text-info, rgb(12, 88, 174))",
7
7
  success: "var(--malachite-text-success, rgb(2, 122, 66))",
8
8
  warning: "var(--malachite-text-warning, rgb(150, 88, 10))",
9
9
  error: "var(--malachite-text-error, rgb(237, 53, 54))"
10
- }, f = ({
11
- title: t,
10
+ }, u = /* @__PURE__ */ e(
11
+ "svg",
12
+ {
13
+ "data-timeline-skipped": "",
14
+ width: "14",
15
+ height: "14",
16
+ viewBox: "0 0 24 24",
17
+ className: "block text-[var(--malachite-text-placeholder,rgb(187,187,187))]",
18
+ children: /* @__PURE__ */ e(
19
+ "path",
20
+ {
21
+ "data-malachite-shape": "",
22
+ d: "M6 9l6 6 6-6",
23
+ fill: "none",
24
+ stroke: "currentColor",
25
+ strokeWidth: "2.4",
26
+ strokeLinecap: "round",
27
+ strokeLinejoin: "round"
28
+ }
29
+ )
30
+ }
31
+ ), v = ({
32
+ title: i,
12
33
  time: a,
13
34
  tone: n,
14
- marker: r,
15
- stopped: i = !1,
16
- stoppedLabel: s,
17
- children: m,
18
- className: d = ""
35
+ marker: s,
36
+ skipped: p = !1,
37
+ stopped: t = !1,
38
+ stoppedLabel: o,
39
+ meta: d = [],
40
+ children: h,
41
+ className: f = ""
19
42
  }) => {
20
- const o = n ?? (i ? "error" : "neutral");
43
+ const m = n ?? (t ? "error" : "neutral"), x = p ? u : s;
21
44
  return /* @__PURE__ */ l(
22
45
  "li",
23
46
  {
24
- className: `relative m-0 flex gap-[14px] pb-[40px] last:pb-0 [&:last-child>[data-timeline-line]]:hidden ${d}`,
47
+ className: `relative m-0 flex gap-[14px] pb-[40px] last:pb-0 [&:last-child>[data-timeline-line]]:hidden ${f}`,
25
48
  children: [
26
49
  /* @__PURE__ */ e(
27
50
  "span",
@@ -35,13 +58,13 @@ const p = {
35
58
  "span",
36
59
  {
37
60
  "aria-hidden": "true",
38
- className: `flex h-[24px] w-[24px] flex-none items-center justify-center overflow-hidden rounded-full ${r ? "" : "border border-solid border-[var(--malachite-card-border,rgb(232,232,232))]"}`,
39
- children: r || /* @__PURE__ */ e(
61
+ className: `flex h-[24px] w-[24px] flex-none items-center justify-center overflow-hidden rounded-full ${x ? "" : "border border-solid border-[var(--malachite-card-border,rgb(232,232,232))]"}`,
62
+ children: x || /* @__PURE__ */ e(
40
63
  "span",
41
64
  {
42
- "data-timeline-dot": o,
65
+ "data-timeline-dot": m,
43
66
  className: "h-[8px] w-[8px] rounded-full",
44
- style: { backgroundColor: p[o] }
67
+ style: { backgroundColor: w[m] }
45
68
  }
46
69
  )
47
70
  }
@@ -49,12 +72,12 @@ const p = {
49
72
  /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-1 flex-col gap-[8px] pt-[2px]", children: [
50
73
  /* @__PURE__ */ l("div", { className: "flex items-start justify-between gap-[12px]", children: [
51
74
  /* @__PURE__ */ l("div", { className: "flex min-w-0 flex-wrap items-center gap-x-[8px] gap-y-[4px] [overflow-wrap:anywhere]", children: [
52
- /* @__PURE__ */ e(c, { size: "small", fontWeight: "semi-bold", className: "min-w-0", children: t }),
53
- i && /* @__PURE__ */ e("span", { className: "sr-only", children: ", " }),
54
- i && /* @__PURE__ */ e(
55
- x,
75
+ /* @__PURE__ */ e(r, { size: "small", fontWeight: "bold", className: "min-w-0 leading-[18px]", children: i }),
76
+ t && /* @__PURE__ */ e("span", { className: "sr-only", children: ", " }),
77
+ t && /* @__PURE__ */ e(
78
+ b,
56
79
  {
57
- value: (s == null ? void 0 : s.trim()) || "Stopped here",
80
+ value: (o == null ? void 0 : o.trim()) || "Stopped here",
58
81
  type: "error",
59
82
  fontSize: "xsmall",
60
83
  textTransform: "none",
@@ -64,7 +87,7 @@ const p = {
64
87
  ] }),
65
88
  (a || a === 0) && /* @__PURE__ */ e("span", { className: "sr-only", children: ", " }),
66
89
  (a || a === 0) && /* @__PURE__ */ e(
67
- c,
90
+ r,
68
91
  {
69
92
  size: "xsmall",
70
93
  color: "secondary",
@@ -75,29 +98,40 @@ const p = {
75
98
  }
76
99
  )
77
100
  ] }),
78
- m
101
+ d.length > 0 && /* @__PURE__ */ e("dl", { className: "m-0 flex flex-wrap gap-x-[18px] gap-y-[6px] leading-[16px]", children: d.map((c, g) => /* @__PURE__ */ l(
102
+ "div",
103
+ {
104
+ className: "flex min-w-0 items-baseline gap-[3px]",
105
+ children: [
106
+ /* @__PURE__ */ e("dt", { className: "flex", children: /* @__PURE__ */ e(r, { size: "xsmall", color: "secondary", children: c.label }) }),
107
+ /* @__PURE__ */ e("dd", { className: "m-0 flex min-w-0 [overflow-wrap:anywhere]", children: /* @__PURE__ */ e(r, { size: "xsmall", font: "mono", children: c.value }) })
108
+ ]
109
+ },
110
+ `${c.label}-${g}`
111
+ )) }),
112
+ h
79
113
  ] })
80
114
  ]
81
115
  }
82
116
  );
83
- }, h = ({
84
- children: t,
117
+ }, N = ({
118
+ children: i,
85
119
  className: a = "",
86
120
  "aria-label": n,
87
- "aria-labelledby": r
121
+ "aria-labelledby": s
88
122
  }) => /* @__PURE__ */ e(
89
123
  "ol",
90
124
  {
91
125
  role: "list",
92
126
  "aria-label": n,
93
- "aria-labelledby": r,
127
+ "aria-labelledby": s,
94
128
  className: `m-0 list-none p-0 ${a}`,
95
- children: t
129
+ children: i
96
130
  }
97
131
  );
98
- h.Item = f;
132
+ N.Item = v;
99
133
  export {
100
- h as Timeline,
101
- h as default
134
+ N as Timeline,
135
+ N as default
102
136
  };
103
137
  //# sourceMappingURL=Timeline.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Timeline.js","sources":["../../src/components/Timeline.tsx"],"sourcesContent":["import React from 'react';\nimport Tag from './Tag';\nimport Text from './Typography/Text';\n\nexport type TimelineTone = 'neutral' | 'info' | 'success' | 'warning' | 'error';\n\nexport interface TimelineProps {\n children: React.ReactNode;\n className?: string;\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n}\n\nexport interface TimelineItemProps {\n title: React.ReactNode;\n /** When the step happened, shown at the right of the title, e.g. `+6 ms`. */\n time?: React.ReactNode;\n /**\n * Paints the dot: `error` on a `stopped` step, else `neutral`, unless set. Colour alone, so the\n * title has to say what happened. Ignored when `marker` is set.\n */\n tone?: TimelineTone;\n /** Replaces the ringed dot with a 24px circle of its own, e.g. the caller's logo at size 24. Decorative: hidden from assistive tech. */\n marker?: React.ReactNode;\n /** Marks the step the flow ended on, with a badge after the title. */\n stopped?: boolean;\n /** The badge's text when `stopped`. Empty falls back to \"Stopped here\". */\n stoppedLabel?: string;\n /**\n * The step's detail, below the title: tags, copy, payloads. Each child is a row of its own, 8px\n * apart, and unstyled, so wrap copy in `Typography.Text`.\n */\n children?: React.ReactNode;\n className?: string;\n}\n\n// The light theme's values as fallbacks: the dot paints before the theme reaches `:host`.\nconst DOT_COLOR: Record<TimelineTone, string> = {\n neutral: 'var(--malachite-text-secondary, rgb(123, 123, 123))',\n info: 'var(--malachite-text-info, rgb(12, 88, 174))',\n success: 'var(--malachite-text-success, rgb(2, 122, 66))',\n warning: 'var(--malachite-text-warning, rgb(150, 88, 10))',\n error: 'var(--malachite-text-error, rgb(237, 53, 54))',\n};\n\nconst Item: React.FC<TimelineItemProps> = ({\n title,\n time,\n tone,\n marker,\n stopped = false,\n stoppedLabel,\n children,\n className = '',\n}) => {\n const dotTone = tone ?? (stopped ? 'error' : 'neutral');\n return (\n <li\n className={`relative m-0 flex gap-[14px] pb-[40px] last:pb-0 [&:last-child>[data-timeline-line]]:hidden ${className}`}\n >\n <span\n data-timeline-line=\"\"\n aria-hidden=\"true\"\n className=\"absolute start-[11px] top-[26px] bottom-[2px] w-[2px] bg-[var(--malachite-card-border,rgb(232,232,232))]\"\n />\n <span\n aria-hidden=\"true\"\n // The ring's border would cut into a marker, so a marker gets the full 24px circle instead.\n className={`flex h-[24px] w-[24px] flex-none items-center justify-center overflow-hidden rounded-full ${marker ? '' : 'border border-solid border-[var(--malachite-card-border,rgb(232,232,232))]'}`}\n >\n {marker || (\n <span\n data-timeline-dot={dotTone}\n className=\"h-[8px] w-[8px] rounded-full\"\n style={{ backgroundColor: DOT_COLOR[dotTone] }}\n />\n )}\n </span>\n <div className=\"flex min-w-0 flex-1 flex-col gap-[8px] pt-[2px]\">\n <div className=\"flex items-start justify-between gap-[12px]\">\n <div className=\"flex min-w-0 flex-wrap items-center gap-x-[8px] gap-y-[4px] [overflow-wrap:anywhere]\">\n <Text size=\"small\" fontWeight=\"semi-bold\" className=\"min-w-0\">\n {title}\n </Text>\n {stopped && <span className=\"sr-only\">, </span>}\n {stopped && (\n <Tag\n value={stoppedLabel?.trim() || 'Stopped here'}\n type=\"error\"\n fontSize=\"xsmall\"\n textTransform=\"none\"\n paddingSize=\"compact\"\n />\n )}\n </div>\n {(time || time === 0) && <span className=\"sr-only\">, </span>}\n {(time || time === 0) && (\n <Text\n size=\"xsmall\"\n color=\"secondary\"\n font=\"mono\"\n wrap={false}\n className=\"pt-[2px]\"\n >\n {time}\n </Text>\n )}\n </div>\n {children}\n </div>\n </li>\n );\n};\n\n/** A vertical sequence of steps, each with a dot on a connecting line, a title, its timing and a body. */\nconst Timeline: React.FC<TimelineProps> & { Item: typeof Item } = ({\n children,\n className = '',\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy,\n}) => (\n <ol\n // list-style: none strips list semantics in WebKit, so VoiceOver would not announce the steps.\n role=\"list\"\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n className={`m-0 list-none p-0 ${className}`}\n >\n {children}\n </ol>\n);\n\nTimeline.Item = Item;\n\nexport default Timeline;\nexport { Timeline };\n"],"names":["DOT_COLOR","Item","title","time","tone","marker","stopped","stoppedLabel","children","className","dotTone","jsxs","jsx","Text","Tag","Timeline","ariaLabel","ariaLabelledBy"],"mappings":";;;AAqCA,MAAMA,IAA0C;AAAA,EAC5C,SAAS;AAAA,EACT,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AACX,GAEMC,IAAoC,CAAC;AAAA,EACvC,OAAAC;AAAA,EACA,MAAAC;AAAA,EACA,MAAAC;AAAA,EACA,QAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,cAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC,IAAY;AAChB,MAAM;AACF,QAAMC,IAAUN,MAASE,IAAU,UAAU;AAC7C,SACI,gBAAAK;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,WAAW,+FAA+FF,CAAS;AAAA,MAEnH,UAAA;AAAA,QAAA,gBAAAG;AAAA,UAAC;AAAA,UAAA;AAAA,YACG,sBAAmB;AAAA,YACnB,eAAY;AAAA,YACZ,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAEd,gBAAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACG,eAAY;AAAA,YAEZ,WAAW,6FAA6FP,IAAS,KAAK,4EAA4E;AAAA,YAEjM,UAAAA,KACG,gBAAAO;AAAA,cAAC;AAAA,cAAA;AAAA,gBACG,qBAAmBF;AAAA,gBACnB,WAAU;AAAA,gBACV,OAAO,EAAE,iBAAiBV,EAAUU,CAAO,EAAA;AAAA,cAAE;AAAA,YAAA;AAAA,UACjD;AAAA,QAAA;AAAA,QAGR,gBAAAC,EAAC,OAAA,EAAI,WAAU,mDACX,UAAA;AAAA,UAAA,gBAAAA,EAAC,OAAA,EAAI,WAAU,+CACX,UAAA;AAAA,YAAA,gBAAAA,EAAC,OAAA,EAAI,WAAU,wFACX,UAAA;AAAA,cAAA,gBAAAC,EAACC,KAAK,MAAK,SAAQ,YAAW,aAAY,WAAU,WAC/C,UAAAX,EAAA,CACL;AAAA,cACCI,KAAW,gBAAAM,EAAC,QAAA,EAAK,WAAU,WAAU,UAAA,MAAE;AAAA,cACvCN,KACG,gBAAAM;AAAA,gBAACE;AAAA,gBAAA;AAAA,kBACG,QAAOP,KAAA,gBAAAA,EAAc,WAAU;AAAA,kBAC/B,MAAK;AAAA,kBACL,UAAS;AAAA,kBACT,eAAc;AAAA,kBACd,aAAY;AAAA,gBAAA;AAAA,cAAA;AAAA,YAChB,GAER;AAAA,aACEJ,KAAQA,MAAS,wBAAO,QAAA,EAAK,WAAU,WAAU,UAAA,MAAE;AAAA,aACnDA,KAAQA,MAAS,MACf,gBAAAS;AAAA,cAACC;AAAA,cAAA;AAAA,gBACG,MAAK;AAAA,gBACL,OAAM;AAAA,gBACN,MAAK;AAAA,gBACL,MAAM;AAAA,gBACN,WAAU;AAAA,gBAET,UAAAV;AAAA,cAAA;AAAA,YAAA;AAAA,UACL,GAER;AAAA,UACCK;AAAA,QAAA,EAAA,CACL;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGZ,GAGMO,IAA4D,CAAC;AAAA,EAC/D,UAAAP;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,cAAcO;AAAA,EACd,mBAAmBC;AACvB,MACI,gBAAAL;AAAA,EAAC;AAAA,EAAA;AAAA,IAEG,MAAK;AAAA,IACL,cAAYI;AAAA,IACZ,mBAAiBC;AAAA,IACjB,WAAW,qBAAqBR,CAAS;AAAA,IAExC,UAAAD;AAAA,EAAA;AACL;AAGJO,EAAS,OAAOd;"}
1
+ {"version":3,"file":"Timeline.js","sources":["../../src/components/Timeline.tsx"],"sourcesContent":["import React from 'react';\nimport Tag from './Tag';\nimport Text from './Typography/Text';\n\nexport type TimelineTone = 'neutral' | 'info' | 'success' | 'warning' | 'error';\n\nexport interface TimelineProps {\n children: React.ReactNode;\n className?: string;\n 'aria-label'?: string;\n 'aria-labelledby'?: string;\n}\n\nexport interface TimelineMetaEntry {\n label: string;\n value: React.ReactNode;\n}\n\nexport interface TimelineItemProps {\n title: React.ReactNode;\n /** When the step happened, shown at the right of the title, e.g. `+6 ms`. */\n time?: React.ReactNode;\n /**\n * Paints the dot: `error` on a `stopped` step, else `neutral`, unless set. Colour alone, so the\n * title has to say what happened. Ignored when `marker` is set.\n */\n tone?: TimelineTone;\n /** Replaces the ringed dot with a 24px circle of its own, e.g. the caller's logo at size 24. Decorative: hidden from assistive tech. */\n marker?: React.ReactNode;\n /** A step that never ran: a grey chevron replaces the dot, `tone` and `marker`. */\n skipped?: boolean;\n /** Marks the step the flow ended on, with a badge after the title. */\n stopped?: boolean;\n /** The badge's text when `stopped`. Empty falls back to \"Stopped here\". */\n stoppedLabel?: string;\n /** Label and value pairs in a wrapping row under the title. */\n meta?: readonly TimelineMetaEntry[];\n /**\n * The step's detail, below the title: tags, copy, payloads. Each child is a row of its own, 8px\n * apart, and unstyled, so wrap copy in `Typography.Text`.\n */\n children?: React.ReactNode;\n className?: string;\n}\n\n// The light theme's values as fallbacks: the dot paints before the theme reaches `:host`.\nconst DOT_COLOR: Record<TimelineTone, string> = {\n neutral: 'var(--malachite-text-secondary, rgb(123, 123, 123))',\n info: 'var(--malachite-text-info, rgb(12, 88, 174))',\n success: 'var(--malachite-text-success, rgb(2, 122, 66))',\n warning: 'var(--malachite-text-warning, rgb(150, 88, 10))',\n error: 'var(--malachite-text-error, rgb(237, 53, 54))',\n};\n\n// Stroked, so it opts out of the global path fill reset.\nconst SKIPPED_MARK = (\n <svg\n data-timeline-skipped=\"\"\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 24 24\"\n className=\"block text-[var(--malachite-text-placeholder,rgb(187,187,187))]\"\n >\n <path\n data-malachite-shape=\"\"\n d=\"M6 9l6 6 6-6\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2.4\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n);\n\nconst Item: React.FC<TimelineItemProps> = ({\n title,\n time,\n tone,\n marker,\n skipped = false,\n stopped = false,\n stoppedLabel,\n meta = [],\n children,\n className = '',\n}) => {\n const dotTone = tone ?? (stopped ? 'error' : 'neutral');\n const shownMarker = skipped ? SKIPPED_MARK : marker;\n return (\n <li\n className={`relative m-0 flex gap-[14px] pb-[40px] last:pb-0 [&:last-child>[data-timeline-line]]:hidden ${className}`}\n >\n <span\n data-timeline-line=\"\"\n aria-hidden=\"true\"\n className=\"absolute start-[11px] top-[26px] bottom-[2px] w-[2px] bg-[var(--malachite-card-border,rgb(232,232,232))]\"\n />\n <span\n aria-hidden=\"true\"\n // The ring's border would cut into a marker, so a marker gets the full 24px circle instead.\n className={`flex h-[24px] w-[24px] flex-none items-center justify-center overflow-hidden rounded-full ${shownMarker ? '' : 'border border-solid border-[var(--malachite-card-border,rgb(232,232,232))]'}`}\n >\n {shownMarker || (\n <span\n data-timeline-dot={dotTone}\n className=\"h-[8px] w-[8px] rounded-full\"\n style={{ backgroundColor: DOT_COLOR[dotTone] }}\n />\n )}\n </span>\n <div className=\"flex min-w-0 flex-1 flex-col gap-[8px] pt-[2px]\">\n <div className=\"flex items-start justify-between gap-[12px]\">\n <div className=\"flex min-w-0 flex-wrap items-center gap-x-[8px] gap-y-[4px] [overflow-wrap:anywhere]\">\n <Text size=\"small\" fontWeight=\"bold\" className=\"min-w-0 leading-[18px]\">\n {title}\n </Text>\n {stopped && <span className=\"sr-only\">, </span>}\n {stopped && (\n <Tag\n value={stoppedLabel?.trim() || 'Stopped here'}\n type=\"error\"\n fontSize=\"xsmall\"\n textTransform=\"none\"\n paddingSize=\"compact\"\n />\n )}\n </div>\n {(time || time === 0) && <span className=\"sr-only\">, </span>}\n {(time || time === 0) && (\n <Text\n size=\"xsmall\"\n color=\"secondary\"\n font=\"mono\"\n wrap={false}\n className=\"pt-[2px]\"\n >\n {time}\n </Text>\n )}\n </div>\n {meta.length > 0 && (\n <dl className=\"m-0 flex flex-wrap gap-x-[18px] gap-y-[6px] leading-[16px]\">\n {meta.map((entry, index) => (\n <div\n key={`${entry.label}-${index}`}\n className=\"flex min-w-0 items-baseline gap-[3px]\"\n >\n <dt className=\"flex\">\n <Text size=\"xsmall\" color=\"secondary\">\n {entry.label}\n </Text>\n </dt>\n <dd className=\"m-0 flex min-w-0 [overflow-wrap:anywhere]\">\n <Text size=\"xsmall\" font=\"mono\">\n {entry.value}\n </Text>\n </dd>\n </div>\n ))}\n </dl>\n )}\n {children}\n </div>\n </li>\n );\n};\n\n/** A vertical sequence of steps, each with a dot on a connecting line, a title, its timing and a body. */\nconst Timeline: React.FC<TimelineProps> & { Item: typeof Item } = ({\n children,\n className = '',\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy,\n}) => (\n <ol\n // list-style: none strips list semantics in WebKit, so VoiceOver would not announce the steps.\n role=\"list\"\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n className={`m-0 list-none p-0 ${className}`}\n >\n {children}\n </ol>\n);\n\nTimeline.Item = Item;\n\nexport default Timeline;\nexport { Timeline };\n"],"names":["DOT_COLOR","SKIPPED_MARK","jsx","Item","title","time","tone","marker","skipped","stopped","stoppedLabel","meta","children","className","dotTone","shownMarker","jsxs","Text","Tag","entry","index","Timeline","ariaLabel","ariaLabelledBy"],"mappings":";;;AA8CA,MAAMA,IAA0C;AAAA,EAC5C,SAAS;AAAA,EACT,MAAM;AAAA,EACN,SAAS;AAAA,EACT,SAAS;AAAA,EACT,OAAO;AACX,GAGMC,IACF,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACG,yBAAsB;AAAA,IACtB,OAAM;AAAA,IACN,QAAO;AAAA,IACP,SAAQ;AAAA,IACR,WAAU;AAAA,IAEV,UAAA,gBAAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,wBAAqB;AAAA,QACrB,GAAE;AAAA,QACF,MAAK;AAAA,QACL,QAAO;AAAA,QACP,aAAY;AAAA,QACZ,eAAc;AAAA,QACd,gBAAe;AAAA,MAAA;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;AAAA,EAAA;AAAA,IAEG,MAAK;AAAA,IACL,cAAYoB;AAAA,IACZ,mBAAiBC;AAAA,IACjB,WAAW,qBAAqBV,CAAS;AAAA,IAExC,UAAAD;AAAA,EAAA;AACL;AAGJS,EAAS,OAAOlB;"}
package/dist/index.d.ts CHANGED
@@ -1238,6 +1238,28 @@ declare interface CodeBlockProps {
1238
1238
 
1239
1239
  export declare const CodeIcon: React.FC<IconProps_31>;
1240
1240
 
1241
+ /**
1242
+ * A framed payload: a header naming it, its first lines, and a toggle for the rest. For the raw
1243
+ * request or response under a step of a trace, where the whole body would crowd out the steps.
1244
+ */
1245
+ export declare const CodePreview: default_2.FC<CodePreviewProps>;
1246
+
1247
+ export declare interface CodePreviewProps {
1248
+ /** Names the payload in the header and its body and toggle for assistive tech, e.g. `Request`. */
1249
+ title: string;
1250
+ /** At the right of the header in the mono face, e.g. `POST · acc_8f2…`. */
1251
+ meta?: default_2.ReactNode;
1252
+ code: string;
1253
+ /** How many lines show until the reader asks for all of them. `Infinity` shows them all. */
1254
+ previewLines?: number;
1255
+ /** 1-based line numbers to flag, such as the fields a scanner caught. Colour alone, so say why nearby. */
1256
+ highlightLines?: readonly number[];
1257
+ showLineNumbers?: boolean;
1258
+ /** The most lines the expanded body mounts; past it a note says how many are not shown. */
1259
+ maxRenderedLines?: number;
1260
+ className?: string;
1261
+ }
1262
+
1241
1263
  export declare interface CodeTextProps {
1242
1264
  bold?: boolean;
1243
1265
  size?: FontSize;
@@ -3299,6 +3321,28 @@ export declare const LibraryIcon: React.FC<IconProps_68>;
3299
3321
 
3300
3322
  export declare const Link: default_2.FC<LinkProps>;
3301
3323
 
3324
+ /** A compact card that opens more detail elsewhere, such as another tab of a panel. */
3325
+ export declare const LinkCard: default_2.FC<LinkCardProps>;
3326
+
3327
+ export declare interface LinkCardProps {
3328
+ title: string;
3329
+ /** One line under the title; truncated text shows in full on hover. */
3330
+ description?: string;
3331
+ /** Colours the title. */
3332
+ tone?: LinkCardTone;
3333
+ /** Decorative, before the title. Coloured paths need `data-malachite-shape`. */
3334
+ icon?: default_2.ReactNode;
3335
+ /** Decorative content before the action, e.g. a level scale. Must not be interactive. */
3336
+ trailing?: default_2.ReactNode;
3337
+ actionLabel?: string;
3338
+ onClick?: (event: default_2.MouseEvent<HTMLElement>) => void;
3339
+ /** Renders a link instead of a button; unsafe schemes are dropped. */
3340
+ href?: string;
3341
+ className?: string;
3342
+ }
3343
+
3344
+ export declare type LinkCardTone = 'neutral' | 'success' | 'warning' | 'error';
3345
+
3302
3346
  export declare const LinkIcon: React.FC<IconProps_69>;
3303
3347
 
3304
3348
  export declare interface LinkProps {
@@ -6057,10 +6101,14 @@ export declare interface TimelineItemProps {
6057
6101
  tone?: TimelineTone;
6058
6102
  /** Replaces the ringed dot with a 24px circle of its own, e.g. the caller's logo at size 24. Decorative: hidden from assistive tech. */
6059
6103
  marker?: default_2.ReactNode;
6104
+ /** A step that never ran: a grey chevron replaces the dot, `tone` and `marker`. */
6105
+ skipped?: boolean;
6060
6106
  /** Marks the step the flow ended on, with a badge after the title. */
6061
6107
  stopped?: boolean;
6062
6108
  /** The badge's text when `stopped`. Empty falls back to "Stopped here". */
6063
6109
  stoppedLabel?: string;
6110
+ /** Label and value pairs in a wrapping row under the title. */
6111
+ meta?: readonly TimelineMetaEntry[];
6064
6112
  /**
6065
6113
  * The step's detail, below the title: tags, copy, payloads. Each child is a row of its own, 8px
6066
6114
  * apart, and unstyled, so wrap copy in `Typography.Text`.
@@ -6069,6 +6117,11 @@ export declare interface TimelineItemProps {
6069
6117
  className?: string;
6070
6118
  }
6071
6119
 
6120
+ export declare interface TimelineMetaEntry {
6121
+ label: string;
6122
+ value: default_2.ReactNode;
6123
+ }
6124
+
6072
6125
  export declare interface TimelineProps {
6073
6126
  children: default_2.ReactNode;
6074
6127
  className?: string;