@acronis-platform/ui-react 0.60.0 → 0.62.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.
- package/README.md +5 -5
- package/dist/components/ui/app-shell/app-shell.js.map +1 -1
- package/dist/components/ui/area-chart/area-chart.js +209 -146
- package/dist/components/ui/area-chart/area-chart.js.map +1 -1
- package/dist/components/ui/avatar/avatar.js +26 -23
- package/dist/components/ui/avatar/avatar.js.map +1 -1
- package/dist/components/ui/bar-chart/bar-chart.js +595 -180
- package/dist/components/ui/bar-chart/bar-chart.js.map +1 -1
- package/dist/components/ui/calendar-panel/calendar-panel-utils.js +63 -0
- package/dist/components/ui/calendar-panel/calendar-panel-utils.js.map +1 -0
- package/dist/components/ui/calendar-panel/calendar-panel.js +260 -0
- package/dist/components/ui/calendar-panel/calendar-panel.js.map +1 -0
- package/dist/components/ui/category-bar/category-bar.js +98 -77
- package/dist/components/ui/category-bar/category-bar.js.map +1 -1
- package/dist/components/ui/chart/chart-format.js +144 -14
- package/dist/components/ui/chart/chart-format.js.map +1 -1
- package/dist/components/ui/chart/chart.js +204 -150
- package/dist/components/ui/chart/chart.js.map +1 -1
- package/dist/components/ui/composed-chart/composed-chart.js +422 -125
- package/dist/components/ui/composed-chart/composed-chart.js.map +1 -1
- package/dist/components/ui/confidence-cone/confidence-cone.js +308 -202
- package/dist/components/ui/confidence-cone/confidence-cone.js.map +1 -1
- package/dist/components/ui/filter-cards/filter-cards.js +25 -0
- package/dist/components/ui/filter-cards/filter-cards.js.map +1 -0
- package/dist/components/ui/funnel-chart/funnel-chart.js +245 -51
- package/dist/components/ui/funnel-chart/funnel-chart.js.map +1 -1
- package/dist/components/ui/histogram/histogram.js +85 -81
- package/dist/components/ui/histogram/histogram.js.map +1 -1
- package/dist/components/ui/line-chart/line-chart.js +227 -184
- package/dist/components/ui/line-chart/line-chart.js.map +1 -1
- package/dist/components/ui/metric/metric.js +88 -70
- package/dist/components/ui/metric/metric.js.map +1 -1
- package/dist/components/ui/pie-chart/pie-chart.js +234 -80
- package/dist/components/ui/pie-chart/pie-chart.js.map +1 -1
- package/dist/components/ui/radar-chart/radar-chart.js +210 -57
- package/dist/components/ui/radar-chart/radar-chart.js.map +1 -1
- package/dist/components/ui/radial-bar-chart/radial-bar-chart.js +358 -50
- package/dist/components/ui/radial-bar-chart/radial-bar-chart.js.map +1 -1
- package/dist/components/ui/resizable/resizable.js +23 -11
- package/dist/components/ui/resizable/resizable.js.map +1 -1
- package/dist/components/ui/sankey-chart/sankey-chart.js +25 -18
- package/dist/components/ui/sankey-chart/sankey-chart.js.map +1 -1
- package/dist/components/ui/scatter-chart/scatter-chart.js +86 -78
- package/dist/components/ui/scatter-chart/scatter-chart.js.map +1 -1
- package/dist/components/ui/sidebar-secondary/sidebar-secondary.js.map +1 -1
- package/dist/components/ui/timeline/timeline.js +206 -142
- package/dist/components/ui/timeline/timeline.js.map +1 -1
- package/dist/components/ui/treemap/treemap.js +183 -59
- package/dist/components/ui/treemap/treemap.js.map +1 -1
- package/dist/index.js +446 -420
- package/dist/index.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@10.0.1_@types_react@19.2.15_react@19.2.6/node_modules/react-day-picker/dist/esm/useDayPicker.js +3 -3
- package/dist/react.js +446 -420
- package/dist/react.js.map +1 -1
- package/dist/src/components/ui/area-chart/area-chart.d.ts +53 -3
- package/dist/src/components/ui/area-chart/index.d.ts +1 -1
- package/dist/src/components/ui/avatar/avatar.d.ts +1 -1
- package/dist/src/components/ui/bar-chart/bar-chart.d.ts +154 -16
- package/dist/src/components/ui/bar-chart/index.d.ts +1 -1
- package/dist/src/components/ui/button/button.d.ts +1 -1
- package/dist/src/components/ui/button-menu/button-menu.d.ts +1 -1
- package/dist/src/components/ui/calendar-panel/__tests__/calendar-panel-utils.test.d.ts +1 -0
- package/dist/src/components/ui/calendar-panel/calendar-panel-utils.d.ts +55 -0
- package/dist/src/components/ui/calendar-panel/calendar-panel.d.ts +112 -0
- package/dist/src/components/ui/calendar-panel/index.d.ts +1 -0
- package/dist/src/components/ui/chart/__tests__/chart-layout.d.ts +63 -0
- package/dist/src/components/ui/chart/__tests__/chart-layout.test.d.ts +1 -0
- package/dist/src/components/ui/chart/chart-format.d.ts +415 -0
- package/dist/src/components/ui/chart/chart.d.ts +9 -3
- package/dist/src/components/ui/chart/index.d.ts +2 -2
- package/dist/src/components/ui/composed-chart/composed-chart.d.ts +156 -7
- package/dist/src/components/ui/composed-chart/index.d.ts +1 -1
- package/dist/src/components/ui/confidence-cone/confidence-cone.d.ts +138 -20
- package/dist/src/components/ui/confidence-cone/index.d.ts +1 -1
- package/dist/src/components/ui/filter-cards/filter-cards.d.ts +11 -0
- package/dist/src/components/ui/filter-cards/index.d.ts +1 -0
- package/dist/src/components/ui/funnel-chart/funnel-chart.d.ts +201 -3
- package/dist/src/components/ui/funnel-chart/index.d.ts +1 -1
- package/dist/src/components/ui/histogram/histogram.d.ts +2 -2
- package/dist/src/components/ui/line-chart/index.d.ts +1 -1
- package/dist/src/components/ui/line-chart/line-chart.d.ts +51 -3
- package/dist/src/components/ui/pie-chart/index.d.ts +1 -1
- package/dist/src/components/ui/pie-chart/pie-chart.d.ts +145 -4
- package/dist/src/components/ui/radar-chart/index.d.ts +1 -1
- package/dist/src/components/ui/radar-chart/radar-chart.d.ts +219 -6
- package/dist/src/components/ui/radial-bar-chart/index.d.ts +1 -1
- package/dist/src/components/ui/radial-bar-chart/radial-bar-chart.d.ts +215 -9
- package/dist/src/components/ui/scatter-chart/scatter-chart.d.ts +2 -2
- package/dist/src/components/ui/timeline/index.d.ts +1 -1
- package/dist/src/components/ui/timeline/timeline.d.ts +79 -20
- package/dist/src/components/ui/treemap/index.d.ts +1 -1
- package/dist/src/components/ui/treemap/treemap.d.ts +68 -8
- package/dist/src/index.d.ts +2 -1
- package/dist/ui-react.css +1 -1
- package/package.json +2 -2
- package/dist/components/ui/search-global/search-global.js +0 -60
- package/dist/components/ui/search-global/search-global.js.map +0 -1
- package/dist/src/components/ui/search-global/index.d.ts +0 -1
- package/dist/src/components/ui/search-global/search-global.d.ts +0 -7
|
@@ -1,175 +1,239 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
1
|
+
import { jsxs as c, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import { ChevronDownIcon as W } from "@acronis-platform/icons-react/stroke-mono";
|
|
4
|
+
import { cva as X } from "../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
|
|
5
|
+
import { cn as O } from "../../../lib/utils.js";
|
|
6
|
+
import { Avatar as Y, AvatarFallback as Z } from "../avatar/avatar.js";
|
|
7
|
+
import { Card as ee } from "../card/card.js";
|
|
8
|
+
import { ButtonIcon as ae } from "../button-icon/button-icon.js";
|
|
9
|
+
const G = "var(--ui-border-on-surface-border)", te = "var(--ui-gap-16)", p = "var(--ui-avatar-global-avatar-size)", P = "calc(var(--ui-button-icon-global-container-height) + var(--ui-gap-8))", V = r.createContext({
|
|
10
|
+
variant: "default"
|
|
11
|
+
}), _ = r.createContext(null), M = (u, m) => String(u.key ?? m), ne = X("flex flex-col", {
|
|
9
12
|
variants: {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
density: {
|
|
15
|
-
compact: "",
|
|
16
|
-
default: ""
|
|
13
|
+
variant: {
|
|
14
|
+
default: "",
|
|
15
|
+
tree: ""
|
|
17
16
|
}
|
|
18
17
|
},
|
|
19
18
|
defaultVariants: {
|
|
20
|
-
|
|
21
|
-
density: "default"
|
|
19
|
+
variant: "default"
|
|
22
20
|
}
|
|
23
|
-
}),
|
|
24
|
-
({ className:
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
}), D = r.forwardRef(
|
|
22
|
+
({ className: u, variant: m, children: g, ...T }, C) => {
|
|
23
|
+
const o = m ?? "default", k = r.useMemo(() => ({ variant: o }), [o]), [$, f] = r.useState(
|
|
24
|
+
{}
|
|
25
|
+
), h = r.Children.toArray(g).filter(
|
|
26
|
+
r.isValidElement
|
|
27
|
+
), y = (e) => {
|
|
28
|
+
var a;
|
|
29
|
+
return ((a = h[e]) == null ? void 0 : a.props.level) ?? 1;
|
|
30
|
+
}, z = (e) => e + 1 < h.length && y(e + 1) > y(e), d = [];
|
|
31
|
+
let x = null;
|
|
32
|
+
h.forEach((e, a) => {
|
|
33
|
+
const t = e.props.level ?? 1;
|
|
34
|
+
if (x !== null && t > x) return;
|
|
35
|
+
x = null;
|
|
36
|
+
const v = e.props.expanded !== void 0, s = v ? !!e.props.expanded : $[M(e, a)] ?? e.props.defaultExpanded ?? !0, i = o === "tree" && z(a);
|
|
37
|
+
i && !s && (x = t), d.push({
|
|
38
|
+
element: e,
|
|
39
|
+
key: M(e, a),
|
|
40
|
+
level: t,
|
|
41
|
+
expanded: s,
|
|
42
|
+
isControlled: v,
|
|
43
|
+
hasToggle: i
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
const E = (e) => {
|
|
47
|
+
const a = d[e];
|
|
48
|
+
if (a == null || a.level <= 1) return !1;
|
|
49
|
+
const t = d[e - 1];
|
|
50
|
+
return a.element.props.branchStart ?? (t != null && a.level > t.level);
|
|
51
|
+
}, b = d.map((e, a) => {
|
|
52
|
+
const t = d[a + 1], v = t != null && (t.level > e.level ? (
|
|
53
|
+
// A deeper row bridges the gap with its own elbow, which starts exactly
|
|
54
|
+
// at this row's marker centre — so the line lands only if that elbow is
|
|
55
|
+
// actually drawn. It normally is, since a level jump derives one; it is
|
|
56
|
+
// not when the consumer refuses it with `branchStart={false}`, and then
|
|
57
|
+
// this line has nothing to meet.
|
|
58
|
+
E(a + 1)
|
|
59
|
+
) : t.level === e.level && // Same level, but a `tree` row that reserves a disclosure button has a
|
|
60
|
+
// wider marker column than one that doesn't — so their markers sit at
|
|
61
|
+
// different offsets and a vertical line between them can't be straight.
|
|
62
|
+
// Figma only ever shows homogeneous siblings, so skip the line instead
|
|
63
|
+
// of drawing a crooked one.
|
|
64
|
+
t.hasToggle === e.hasToggle);
|
|
65
|
+
return /* @__PURE__ */ n(
|
|
66
|
+
_.Provider,
|
|
67
|
+
{
|
|
68
|
+
value: {
|
|
69
|
+
expanded: e.expanded,
|
|
70
|
+
connector: e.element.props.connector ?? v,
|
|
71
|
+
elbow: E(a),
|
|
72
|
+
hasToggle: e.hasToggle,
|
|
73
|
+
onToggle: () => {
|
|
74
|
+
var i, R;
|
|
75
|
+
const s = !e.expanded;
|
|
76
|
+
(R = (i = e.element.props).onExpandedChange) == null || R.call(i, s), e.isControlled || f((S) => ({
|
|
77
|
+
...S,
|
|
78
|
+
[e.key]: s
|
|
79
|
+
}));
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
children: e.element
|
|
83
|
+
},
|
|
84
|
+
e.key
|
|
85
|
+
);
|
|
86
|
+
});
|
|
87
|
+
return /* @__PURE__ */ n(V.Provider, { value: k, children: /* @__PURE__ */ n(
|
|
30
88
|
"ol",
|
|
31
89
|
{
|
|
32
|
-
ref:
|
|
33
|
-
"data-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
//
|
|
38
|
-
"
|
|
39
|
-
|
|
90
|
+
ref: C,
|
|
91
|
+
"data-variant": o,
|
|
92
|
+
style: {
|
|
93
|
+
// The indent step is the widest marker column plus the gap: a
|
|
94
|
+
// `tree` row reserves the disclosure button even when a given row
|
|
95
|
+
// is a leaf, so every level lines up.
|
|
96
|
+
"--timeline-step": `calc(${o === "tree" ? `${P} + ${p}` : p} + ${te})`
|
|
97
|
+
},
|
|
98
|
+
className: O(
|
|
99
|
+
ne({ variant: o }),
|
|
100
|
+
"gap-[var(--ui-gap-16)]",
|
|
101
|
+
u
|
|
40
102
|
),
|
|
41
|
-
...
|
|
42
|
-
children:
|
|
103
|
+
...T,
|
|
104
|
+
children: b
|
|
43
105
|
}
|
|
44
106
|
) });
|
|
45
107
|
}
|
|
46
108
|
);
|
|
47
|
-
|
|
48
|
-
const
|
|
49
|
-
neutral: {
|
|
50
|
-
dot: "bg-[var(--ui-text-on-status-neutral)]",
|
|
51
|
-
ring: "border-[var(--ui-text-on-status-neutral)]",
|
|
52
|
-
ringColor: "ring-[var(--ui-text-on-status-neutral)]",
|
|
53
|
-
badge: "bg-[var(--ui-background-status-neutral-pressed)] text-[var(--ui-text-on-status-neutral)]"
|
|
54
|
-
},
|
|
55
|
-
info: {
|
|
56
|
-
dot: "bg-[var(--ui-text-on-status-info)]",
|
|
57
|
-
ring: "border-[var(--ui-text-on-status-info)]",
|
|
58
|
-
ringColor: "ring-[var(--ui-text-on-status-info)]",
|
|
59
|
-
badge: "bg-[var(--ui-background-status-info-pressed)] text-[var(--ui-text-on-status-info)]"
|
|
60
|
-
},
|
|
61
|
-
success: {
|
|
62
|
-
dot: "bg-[var(--ui-text-on-status-success)]",
|
|
63
|
-
ring: "border-[var(--ui-text-on-status-success)]",
|
|
64
|
-
ringColor: "ring-[var(--ui-text-on-status-success)]",
|
|
65
|
-
badge: "bg-[var(--ui-background-status-success-pressed)] text-[var(--ui-text-on-status-success)]"
|
|
66
|
-
},
|
|
67
|
-
warning: {
|
|
68
|
-
dot: "bg-[var(--ui-text-on-status-warning)]",
|
|
69
|
-
ring: "border-[var(--ui-text-on-status-warning)]",
|
|
70
|
-
ringColor: "ring-[var(--ui-text-on-status-warning)]",
|
|
71
|
-
badge: "bg-[var(--ui-background-status-warning-pressed)] text-[var(--ui-text-on-status-warning)]"
|
|
72
|
-
},
|
|
73
|
-
danger: {
|
|
74
|
-
dot: "bg-[var(--ui-text-on-status-danger)]",
|
|
75
|
-
ring: "border-[var(--ui-text-on-status-danger)]",
|
|
76
|
-
ringColor: "ring-[var(--ui-text-on-status-danger)]",
|
|
77
|
-
badge: "bg-[var(--ui-background-status-danger-pressed)] text-[var(--ui-text-on-status-danger)]"
|
|
78
|
-
},
|
|
79
|
-
critical: {
|
|
80
|
-
dot: "bg-[var(--ui-text-on-status-critical)]",
|
|
81
|
-
ring: "border-[var(--ui-text-on-status-critical)]",
|
|
82
|
-
ringColor: "ring-[var(--ui-text-on-status-critical)]",
|
|
83
|
-
badge: "bg-[var(--ui-background-status-critical-pressed)] text-[var(--ui-text-on-status-critical)]"
|
|
84
|
-
}
|
|
85
|
-
}, y = { small: "size-2", medium: "size-2.5" }, E = { small: "size-6", medium: "size-7" }, _ = { small: 14, medium: 16 }, I = { compact: "pb-4", default: "pb-6" }, h = a.forwardRef(
|
|
109
|
+
D.displayName = "Timeline";
|
|
110
|
+
const B = r.forwardRef(
|
|
86
111
|
({
|
|
87
|
-
className:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
icon:
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
112
|
+
className: u,
|
|
113
|
+
title: m,
|
|
114
|
+
timestamp: g,
|
|
115
|
+
tag: T,
|
|
116
|
+
description: C,
|
|
117
|
+
icon: o,
|
|
118
|
+
initials: k,
|
|
119
|
+
color: $ = "blue",
|
|
120
|
+
level: f = 1,
|
|
121
|
+
branchStart: h,
|
|
122
|
+
connector: y,
|
|
123
|
+
// Destructured only to keep them off the `<li>`: the root reads them from
|
|
124
|
+
// `element.props`, because it owns the disclosure state for the whole branch.
|
|
125
|
+
expanded: z,
|
|
126
|
+
defaultExpanded: d,
|
|
127
|
+
onExpandedChange: x,
|
|
128
|
+
// The two controls can sit in the same `<li>`, so their default names have to
|
|
129
|
+
// name their own action — a shared generic default would give one row two
|
|
130
|
+
// buttons that are indistinguishable to a screen reader.
|
|
131
|
+
toggleLabel: E = "Toggle nested events",
|
|
132
|
+
collapsibleBody: b = !1,
|
|
133
|
+
bodyExpanded: e,
|
|
134
|
+
defaultBodyExpanded: a = !0,
|
|
135
|
+
onBodyExpandedChange: t,
|
|
136
|
+
bodyToggleLabel: v = "Toggle event details",
|
|
137
|
+
children: s,
|
|
138
|
+
...i
|
|
139
|
+
}, R) => {
|
|
140
|
+
const { variant: S } = r.useContext(V), l = r.useContext(_), [F, K] = r.useState(a), w = e ?? F, q = () => {
|
|
141
|
+
const N = !w;
|
|
142
|
+
t == null || t(N), e === void 0 && K(N);
|
|
143
|
+
}, A = (l == null ? void 0 : l.expanded) ?? !0, H = l ? l.connector : y ?? !1, L = l ? l.elbow : !!h && f > 1, I = S === "tree" && ((l == null ? void 0 : l.hasToggle) ?? !1), J = I ? `calc(${P} + ${p})` : p, j = (N, Q, U) => /* @__PURE__ */ n(
|
|
144
|
+
ae,
|
|
145
|
+
{
|
|
146
|
+
type: "button",
|
|
147
|
+
"aria-label": Q,
|
|
148
|
+
"aria-expanded": N,
|
|
149
|
+
onClick: U,
|
|
150
|
+
className: O(
|
|
151
|
+
"shrink-0 transition-transform",
|
|
152
|
+
!N && "ltr:-rotate-90 rtl:rotate-90"
|
|
153
|
+
),
|
|
154
|
+
children: /* @__PURE__ */ n(W, {})
|
|
155
|
+
}
|
|
156
|
+
);
|
|
157
|
+
return /* @__PURE__ */ c(
|
|
102
158
|
"li",
|
|
103
159
|
{
|
|
104
|
-
ref:
|
|
105
|
-
"data-
|
|
106
|
-
"data-
|
|
107
|
-
"data-
|
|
108
|
-
"
|
|
109
|
-
|
|
110
|
-
"
|
|
111
|
-
|
|
112
|
-
|
|
160
|
+
ref: R,
|
|
161
|
+
"data-level": f,
|
|
162
|
+
"data-branch-start": L || void 0,
|
|
163
|
+
"data-expanded": I ? A : void 0,
|
|
164
|
+
"data-body-expanded": b ? w : void 0,
|
|
165
|
+
style: {
|
|
166
|
+
"--timeline-indent": `calc(var(--timeline-step) * ${f - 1})`,
|
|
167
|
+
"--timeline-marker": J
|
|
168
|
+
},
|
|
169
|
+
className: O(
|
|
170
|
+
"relative flex items-start gap-[var(--ui-gap-16)]",
|
|
171
|
+
"ps-[var(--timeline-indent)]",
|
|
172
|
+
u
|
|
113
173
|
),
|
|
114
|
-
...
|
|
174
|
+
...i,
|
|
115
175
|
children: [
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
// Ring the badge for a `current` item (same emphasis as the dot).
|
|
126
|
-
c && e(
|
|
127
|
-
"ring-2 ring-offset-2 ring-offset-background",
|
|
128
|
-
l.ringColor
|
|
129
|
-
)
|
|
130
|
-
),
|
|
131
|
-
children: a.isValidElement(r) ? a.cloneElement(
|
|
132
|
-
r,
|
|
133
|
-
{ size: _[m] }
|
|
134
|
-
) : r
|
|
176
|
+
H && /* @__PURE__ */ n(
|
|
177
|
+
"span",
|
|
178
|
+
{
|
|
179
|
+
"data-slot": "timeline-connector",
|
|
180
|
+
"aria-hidden": !0,
|
|
181
|
+
className: "absolute top-[var(--ui-avatar-global-avatar-size)] bottom-[calc(var(--ui-gap-16)*-1)] w-px",
|
|
182
|
+
style: {
|
|
183
|
+
insetInlineStart: `calc(var(--timeline-indent) + var(--timeline-marker) - ${p} / 2)`,
|
|
184
|
+
backgroundColor: G
|
|
135
185
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
186
|
+
}
|
|
187
|
+
),
|
|
188
|
+
L && /* @__PURE__ */ n(
|
|
189
|
+
"span",
|
|
190
|
+
{
|
|
191
|
+
"data-slot": "timeline-elbow",
|
|
192
|
+
"aria-hidden": !0,
|
|
193
|
+
className: "absolute top-0 h-[calc(var(--ui-avatar-global-avatar-size)/2)] w-[var(--ui-avatar-global-avatar-size)] border-b border-s",
|
|
194
|
+
style: {
|
|
195
|
+
insetInlineStart: `calc(var(--timeline-indent) - ${p})`,
|
|
196
|
+
borderColor: G
|
|
145
197
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
198
|
+
}
|
|
199
|
+
),
|
|
200
|
+
/* @__PURE__ */ c("div", { className: "relative flex shrink-0 items-center gap-[var(--ui-gap-8)]", children: [
|
|
201
|
+
I && j(A, E, () => l == null ? void 0 : l.onToggle()),
|
|
202
|
+
/* @__PURE__ */ n(
|
|
203
|
+
Y,
|
|
149
204
|
{
|
|
150
|
-
"data-slot": "timeline-connector",
|
|
151
205
|
"aria-hidden": !0,
|
|
152
|
-
|
|
206
|
+
color: $,
|
|
207
|
+
className: "[box-shadow:none] [&_svg]:size-[var(--ui-button-icon-global-icon-size)] [&_svg]:shrink-0",
|
|
208
|
+
children: o ?? (k ? /* @__PURE__ */ n(Z, { children: k }) : null)
|
|
153
209
|
}
|
|
154
210
|
)
|
|
155
211
|
] }),
|
|
156
|
-
/* @__PURE__ */
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
212
|
+
/* @__PURE__ */ c(ee, { className: "min-w-0 flex-1 shadow-none", children: [
|
|
213
|
+
/* @__PURE__ */ c("div", { className: "flex min-h-12 items-center gap-[var(--ui-gap-16)] px-4 py-2", children: [
|
|
214
|
+
/* @__PURE__ */ c("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
215
|
+
/* @__PURE__ */ c("div", { className: "flex h-8 items-center gap-[var(--ui-gap-8)]", children: [
|
|
216
|
+
/* @__PURE__ */ n("span", { className: "truncate text-base font-medium leading-6 text-foreground", children: m }),
|
|
217
|
+
(T != null || g != null) && /* @__PURE__ */ c("div", { className: "flex h-full shrink-0 items-center gap-[var(--ui-gap-8)]", children: [
|
|
218
|
+
T,
|
|
219
|
+
g != null && /* @__PURE__ */ n("span", { className: "whitespace-nowrap text-xs leading-4 text-muted-foreground", children: g })
|
|
220
|
+
] })
|
|
221
|
+
] }),
|
|
222
|
+
C != null && /* @__PURE__ */ n("div", { className: "flex items-center pb-1", children: /* @__PURE__ */ n("span", { className: "truncate text-xs leading-4 text-muted-foreground", children: C }) })
|
|
223
|
+
] }),
|
|
224
|
+
b && j(w, v, q)
|
|
225
|
+
] }),
|
|
226
|
+
s != null && (!b || w) && /* @__PURE__ */ n("div", { className: "border-t border-border py-2", children: s })
|
|
163
227
|
] })
|
|
164
228
|
]
|
|
165
229
|
}
|
|
166
230
|
);
|
|
167
231
|
}
|
|
168
232
|
);
|
|
169
|
-
|
|
170
|
-
const
|
|
233
|
+
B.displayName = "Timeline.Item";
|
|
234
|
+
const ve = Object.assign(D, { Item: B });
|
|
171
235
|
export {
|
|
172
|
-
|
|
173
|
-
|
|
236
|
+
ve as Timeline,
|
|
237
|
+
B as TimelineItem
|
|
174
238
|
};
|
|
175
239
|
//# sourceMappingURL=timeline.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline.js","sources":["../../../../src/components/ui/timeline/timeline.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/lib/utils';\n\n// A presentational, chronological list of events — an activity feed / audit log\n// / status history. It owns structure, the connector line, markers, and the\n// timestamp/title/description hierarchy only; it never sorts, groups, fetches, or\n// interprets events, and it ships no domain event types or icons. Rendered as a\n// semantic ordered list (`<ol>`/`<li>`); the marker + connector are decorative.\n// Compose Tag / Link / Button / Accordion into the slots. Not a temporal chart —\n// use a Line / Area / Composed chart for that.\n\ntype TimelineSize = 'small' | 'medium';\ntype TimelineDensity = 'compact' | 'default';\n\ntype TimelineContextValue = {\n size: TimelineSize;\n density: TimelineDensity;\n};\n\nconst TimelineContext = React.createContext<TimelineContextValue>({\n size: 'medium',\n density: 'default',\n});\n\nconst timelineVariants = cva('flex flex-col', {\n variants: {\n size: {\n small: 'text-xs',\n medium: 'text-sm',\n },\n density: {\n compact: '',\n default: '',\n },\n },\n defaultVariants: {\n size: 'medium',\n density: 'default',\n },\n});\n\nexport interface TimelineProps\n extends React.ComponentProps<'ol'>,\n VariantProps<typeof timelineVariants> {\n /**\n * `Timeline.Item`s — pass them as direct children (the connector auto-hides on\n * the last one). Grouping/headings aren't supported as intervening children.\n */\n children?: React.ReactNode;\n}\n\nconst TimelineRoot = React.forwardRef<HTMLOListElement, TimelineProps>(\n ({ className, size, density, children, ...props }, ref) => {\n const resolved = React.useMemo(\n () => ({ size: size ?? 'medium', density: density ?? 'default' }),\n [size, density]\n );\n return (\n <TimelineContext.Provider value={resolved}>\n <ol\n ref={ref}\n data-size={resolved.size}\n data-density={resolved.density}\n className={cn(\n timelineVariants({ size, density }),\n // Hide the connector on the last item — nothing follows it.\n '[&>li:last-child_[data-slot=timeline-connector]]:hidden',\n className\n )}\n {...props}\n >\n {children}\n </ol>\n </TimelineContext.Provider>\n );\n }\n);\nTimelineRoot.displayName = 'Timeline';\n\nexport type TimelineStatus =\n | 'neutral'\n | 'info'\n | 'success'\n | 'warning'\n | 'danger'\n | 'critical';\n\n// Marker colors mirror Metric / the design's status chips: a filled dot (or,\n// with an icon, a `-pressed` badge) in the status family. Neutral reads as the\n// muted foreground.\nconst STATUS_MARKER: Record<\n TimelineStatus,\n { dot: string; ring: string; ringColor: string; badge: string }\n> = {\n neutral: {\n dot: 'bg-[var(--ui-text-on-status-neutral)]',\n ring: 'border-[var(--ui-text-on-status-neutral)]',\n ringColor: 'ring-[var(--ui-text-on-status-neutral)]',\n badge:\n 'bg-[var(--ui-background-status-neutral-pressed)] text-[var(--ui-text-on-status-neutral)]',\n },\n info: {\n dot: 'bg-[var(--ui-text-on-status-info)]',\n ring: 'border-[var(--ui-text-on-status-info)]',\n ringColor: 'ring-[var(--ui-text-on-status-info)]',\n badge:\n 'bg-[var(--ui-background-status-info-pressed)] text-[var(--ui-text-on-status-info)]',\n },\n success: {\n dot: 'bg-[var(--ui-text-on-status-success)]',\n ring: 'border-[var(--ui-text-on-status-success)]',\n ringColor: 'ring-[var(--ui-text-on-status-success)]',\n badge:\n 'bg-[var(--ui-background-status-success-pressed)] text-[var(--ui-text-on-status-success)]',\n },\n warning: {\n dot: 'bg-[var(--ui-text-on-status-warning)]',\n ring: 'border-[var(--ui-text-on-status-warning)]',\n ringColor: 'ring-[var(--ui-text-on-status-warning)]',\n badge:\n 'bg-[var(--ui-background-status-warning-pressed)] text-[var(--ui-text-on-status-warning)]',\n },\n danger: {\n dot: 'bg-[var(--ui-text-on-status-danger)]',\n ring: 'border-[var(--ui-text-on-status-danger)]',\n ringColor: 'ring-[var(--ui-text-on-status-danger)]',\n badge:\n 'bg-[var(--ui-background-status-danger-pressed)] text-[var(--ui-text-on-status-danger)]',\n },\n critical: {\n dot: 'bg-[var(--ui-text-on-status-critical)]',\n ring: 'border-[var(--ui-text-on-status-critical)]',\n ringColor: 'ring-[var(--ui-text-on-status-critical)]',\n badge:\n 'bg-[var(--ui-background-status-critical-pressed)] text-[var(--ui-text-on-status-critical)]',\n },\n};\n\nconst DOT_SIZE = { small: 'size-2', medium: 'size-2.5' } as const;\nconst BADGE_SIZE = { small: 'size-6', medium: 'size-7' } as const;\nconst BADGE_ICON_PX = { small: 14, medium: 16 } as const;\nconst ITEM_PB = { compact: 'pb-4', default: 'pb-6' } as const;\n\nexport interface TimelineItemProps\n extends Omit<React.ComponentProps<'li'>, 'title'> {\n /** Event time — pass a `<time dateTime>` for an accessible, machine-readable stamp. */\n timestamp?: React.ReactNode;\n /** Event title (the primary line). */\n title: React.ReactNode;\n /** Optional secondary description. */\n description?: React.ReactNode;\n /** Semantic status — tints the marker (a subtle cue, never large blocks of text). */\n status?: TimelineStatus;\n /** Icon shown in a status-tinted marker badge instead of the plain dot. */\n icon?: React.ReactNode;\n /** Metadata slot under the description — e.g. `Tag`s. */\n metadata?: React.ReactNode;\n /** Actions slot — e.g. a `Link` or `ButtonMenu`. */\n actions?: React.ReactNode;\n /** Emphasize this item as the current one (a ringed marker). */\n current?: boolean;\n /** Dim a non-applicable / inactive item. */\n disabled?: boolean;\n /** Expandable detail composed by the caller — e.g. an `Accordion`. */\n children?: React.ReactNode;\n}\n\nconst TimelineItem = React.forwardRef<HTMLLIElement, TimelineItemProps>(\n (\n {\n className,\n timestamp,\n title,\n description,\n status = 'neutral',\n icon,\n metadata,\n actions,\n current = false,\n disabled = false,\n children,\n ...props\n },\n ref\n ) => {\n const { size, density } = React.useContext(TimelineContext);\n const marker = STATUS_MARKER[status];\n\n return (\n <li\n ref={ref}\n data-status={status}\n data-current={current || undefined}\n data-disabled={disabled || undefined}\n // A disabled item is dimmed *and* announced as disabled; its slotted\n // controls (actions/links) stop taking pointer input — matching the\n // repo's `aria-disabled` + `pointer-events-none` pattern (see link.tsx).\n aria-disabled={disabled || undefined}\n className={cn(\n 'flex gap-3',\n disabled && 'opacity-60 pointer-events-none',\n className\n )}\n {...props}\n >\n {/* Marker column: dot / icon badge + the connector line below it. */}\n <div className=\"flex flex-col items-center\">\n {icon != null ? (\n <span\n aria-hidden\n className={cn(\n 'flex shrink-0 items-center justify-center rounded-full [&_svg]:shrink-0',\n BADGE_SIZE[size],\n marker.badge,\n // Ring the badge for a `current` item (same emphasis as the dot).\n current &&\n cn(\n 'ring-2 ring-offset-2 ring-offset-background',\n marker.ringColor\n )\n )}\n >\n {React.isValidElement(icon)\n ? React.cloneElement(\n icon as React.ReactElement<{ size?: number }>,\n { size: BADGE_ICON_PX[size] }\n )\n : icon}\n </span>\n ) : (\n <span\n aria-hidden\n className={cn(\n 'mt-1 shrink-0 rounded-full',\n DOT_SIZE[size],\n current ? cn('border-2 bg-background', marker.ring) : marker.dot\n )}\n />\n )}\n <span\n data-slot=\"timeline-connector\"\n aria-hidden\n className=\"mt-1 w-px flex-1 bg-border\"\n />\n </div>\n\n {/* Content column. */}\n <div className={cn('min-w-0 flex-1', ITEM_PB[density])}>\n {timestamp != null && (\n <div className=\"text-xs leading-tight text-muted-foreground\">\n {timestamp}\n </div>\n )}\n <div className=\"font-medium leading-snug text-foreground\">{title}</div>\n {description != null && (\n <div className=\"mt-0.5 text-muted-foreground\">{description}</div>\n )}\n {metadata != null && (\n <div className=\"mt-1.5 flex flex-wrap items-center gap-1.5\">\n {metadata}\n </div>\n )}\n {actions != null && (\n <div className=\"mt-2 flex flex-wrap items-center gap-2\">{actions}</div>\n )}\n {children != null && <div className=\"mt-2\">{children}</div>}\n </div>\n </li>\n );\n }\n);\nTimelineItem.displayName = 'Timeline.Item';\n\nconst Timeline = Object.assign(TimelineRoot, { Item: TimelineItem });\n\nexport { Timeline, TimelineItem };\n"],"names":["TimelineContext","React","timelineVariants","cva","TimelineRoot","className","size","density","children","props","ref","resolved","jsx","cn","STATUS_MARKER","DOT_SIZE","BADGE_SIZE","BADGE_ICON_PX","ITEM_PB","TimelineItem","timestamp","title","description","status","icon","metadata","actions","current","disabled","marker","jsxs","Timeline"],"mappings":";;;;AAuBA,MAAMA,IAAkBC,EAAM,cAAoC;AAAA,EAChE,MAAM;AAAA,EACN,SAAS;AACX,CAAC,GAEKC,IAAmBC,EAAI,iBAAiB;AAAA,EAC5C,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,OAAO;AAAA,MACP,QAAQ;AAAA,IAAA;AAAA,IAEV,SAAS;AAAA,MACP,SAAS;AAAA,MACT,SAAS;AAAA,IAAA;AAAA,EACX;AAAA,EAEF,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAEb,CAAC,GAYKC,IAAeH,EAAM;AAAA,EACzB,CAAC,EAAE,WAAAI,GAAW,MAAAC,GAAM,SAAAC,GAAS,UAAAC,GAAU,GAAGC,EAAA,GAASC,MAAQ;AACzD,UAAMC,IAAWV,EAAM;AAAA,MACrB,OAAO,EAAE,MAAMK,KAAQ,UAAU,SAASC,KAAW;MACrD,CAACD,GAAMC,CAAO;AAAA,IAAA;AAEhB,WACE,gBAAAK,EAACZ,EAAgB,UAAhB,EAAyB,OAAOW,GAC/B,UAAA,gBAAAC;AAAA,MAAC;AA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C;AAAA,cAAA;AAAA,gBACC,aAAU;AAAA,gBACV,eAAW;AAAA,gBACX,WAAU;AAAA,cAAA;AAAA,YAAA;AAAA,UACZ,GACF;AAAA,UAGA,gBAAAkB,EAAC,SAAI,WAAWjB,EAAG,kBAAkBK,EAAQX,CAAO,CAAC,GAClD,UAAA;AAAA,YAAAa,KAAa,QACZ,gBAAAR,EAAC,OAAA,EAAI,WAAU,+CACZ,UAAAQ,GACH;AAAA,YAEF,gBAAAR,EAAC,OAAA,EAAI,WAAU,4CAA4C,UAAAS,GAAM;AAAA,YAChEC,KAAe,QACd,gBAAAV,EAAC,OAAA,EAAI,WAAU,gCAAgC,UAAAU,GAAY;AAAA,YAE5DG,KAAY,QACX,gBAAAb,EAAC,OAAA,EAAI,WAAU,8CACZ,UAAAa,GACH;AAAA,YAEDC,KAAW,QACV,gBAAAd,EAAC,OAAA,EAAI,WAAU,0CAA0C,UAAAc,GAAQ;AAAA,YAElElB,KAAY,QAAQ,gBAAAI,EAAC,OAAA,EAAI,WAAU,QAAQ,UAAAJ,EAAA,CAAS;AAAA,UAAA,EAAA,CACvD;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;AACAW,EAAa,cAAc;AAE3B,MAAMY,IAAW,OAAO,OAAO3B,GAAc,EAAE,MAAMe,GAAc;"}
|
|
1
|
+
{"version":3,"file":"timeline.js","sources":["../../../../src/components/ui/timeline/timeline.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { ChevronDownIcon } from '@acronis-platform/icons-react/stroke-mono';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/lib/utils';\nimport { Avatar, AvatarFallback } from '../avatar';\nimport { ButtonIcon } from '../button-icon';\nimport { Card } from '../card';\n\n// A presentational, chronological *tree* of events — an activity feed / audit\n// log / status history. Each row is an Avatar marker plus a Card carrying the\n// title, an optional tag, the timestamp, a description, and an optional body;\n// rows join their parent through an elbow and their next sibling through a\n// vertical line. It owns structure, the connector geometry, and collapsing only;\n// it never sorts, groups, fetches, or interprets events, and it ships no domain\n// event types or icons. Rendered as a semantic ordered list (`<ol>`/`<li>`);\n// markers and connectors are decorative. Not a temporal chart — use a Line /\n// Area / Composed chart for that.\n//\n// Nesting is **flat**, mirroring the Figma `Nesting` variant: a consumer renders\n// one `Timeline.Item` per entry and declares its `level` (1-3). Depth is never\n// derived from JSX nesting — the level sequence *is* the tree. `Timeline` reads\n// that sequence and derives the rest: which rows get a disclosure control, which\n// rows are dropped when one collapses, and the whole connector geometry — both a\n// row's descending line and the elbow joining a branch's first row to its parent\n// (Figma's `-First`). `connector` and `branchStart` exist only to override those\n// two, and the pair is resolved together so neither half can be drawn alone.\n//\n// Collapsing is the **variant**, not a per-row flag. `tree` gives every row that\n// has descendants a disclosure button ahead of its marker and widens the indent\n// step to reserve it; `default` never collapses anything. There is no `collapsible`\n// prop, because the two would say the same thing: a tree branch nobody can collapse\n// is just `default` with a wider indent.\n//\n// An expandable *card* is a separate, orthogonal axis — `collapsibleBody` puts a\n// chevron at the trailing edge of a row's card header that folds that card's own\n// body (Figma's `Action Button`). It is not a variant: it behaves identically in\n// `default` and `tree`, and a tree row can carry both controls — the branch one\n// drops the rows below, this one folds this card. It lives here only because\n// `Card` cannot do it yet; move it there once it can.\n//\n// Connector geometry is reproduced with logical CSS borders rather than Figma's\n// two exported 1px SVG strokes (a straight line and a right angle): both are\n// design primitives, not iconography, and CSS borders mirror correctly under\n// `dir=\"rtl\"` where a baked-in asset cannot.\n//\n// The design references `components/Timeline/{connectorColor,gap}`, which are\n// not \"ready for dev\" and have no `--ui-timeline-*` tier. Both are pure aliases\n// in Figma — identical across all six brand modes — so this consumes the alias\n// targets directly: `--ui-border-on-surface-border` (connector) and\n// `--ui-gap-16` (gap). Re-point them at `--ui-timeline-*` once that tier ships.\n\nconst CONNECTOR_COLOR = 'var(--ui-border-on-surface-border)';\n// Load-bearing invariant: the elbow's vertical lands on the parent's connector\n// only while GAP === MARKER / 2 (16 === 32 / 2 today). The elbow is offset from the\n// child's indent while the connector is offset from the parent's marker centre, and\n// those two coincide at exactly that ratio. If either token moves, every elbow\n// detaches — re-derive the elbow's `insetInlineStart` rather than nudging it.\nconst GAP = 'var(--ui-gap-16)';\n/** The Avatar marker's own width — also the elbow's horizontal reach. */\nconst MARKER = 'var(--ui-avatar-global-avatar-size)';\n/** Disclosure button + its gap, present only on a `tree` row with descendants. */\nconst TOGGLE =\n 'calc(var(--ui-button-icon-global-container-height) + var(--ui-gap-8))';\n\ntype TimelineVariant = 'default' | 'tree';\n\nconst TimelineContext = React.createContext<{ variant: TimelineVariant }>({\n variant: 'default',\n});\n\n/**\n * Per-row disclosure state, resolved by the root so it can also drop the\n * collapsed row's descendants. Null when an item renders outside a `Timeline`,\n * in which case the item falls back to its own state.\n */\nconst TimelineRowContext = React.createContext<{\n expanded: boolean;\n connector: boolean;\n elbow: boolean;\n hasToggle: boolean;\n onToggle: () => void;\n} | null>(null);\n\n/** A row's identity for the uncontrolled disclosure map. */\nconst key = (element: React.ReactElement, index: number) =>\n String(element.key ?? index);\n\nconst timelineVariants = cva('flex flex-col', {\n variants: {\n variant: {\n default: '',\n tree: '',\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\nexport interface TimelineProps\n extends React.ComponentProps<'ol'>, VariantProps<typeof timelineVariants> {\n /**\n * Whether the list collapses. `default` never does; `tree` gives every row that\n * has descendants a disclosure button ahead of its marker, which hides those\n * descendants, and widens the indent step to reserve it on every row.\n *\n * Unrelated to `Timeline.Item`'s `collapsibleBody`, which folds a single card's\n * own body and works the same under both variants.\n */\n variant?: TimelineVariant;\n /**\n * `Timeline.Item`s — pass them as direct children in visual order (never\n * wrapped in a fragment, or their levels can't be read). Connectors are derived\n * from the levels, so no row ever leaves a dangling line.\n */\n children?: React.ReactNode;\n}\n\nconst TimelineRoot = React.forwardRef<HTMLOListElement, TimelineProps>(\n ({ className, variant, children, ...props }, ref) => {\n const resolved = variant ?? 'default';\n const context = React.useMemo(() => ({ variant: resolved }), [resolved]);\n const [openState, setOpenState] = React.useState<Record<string, boolean>>(\n {}\n );\n\n const items = React.Children.toArray(children).filter(\n React.isValidElement\n ) as React.ReactElement<TimelineItemProps>[];\n\n // A row has descendants when the row *authored* after it is deeper. Read from\n // the full child list, never the visible one: a collapsed row must keep its\n // disclosure control, or there would be no way to expand it again.\n const levelAt = (index: number) => items[index]?.props.level ?? 1;\n const hasDescendants = (index: number) =>\n index + 1 < items.length && levelAt(index + 1) > levelAt(index);\n\n // Pass 1 — in `tree` mode only, drop the rows beneath a collapsed one. Rows\n // deeper than a collapsed row are hidden until the level rises back to it; one\n // cursor is enough, since a nested collapse can only ever narrow the range.\n const visible: {\n element: React.ReactElement<TimelineItemProps>;\n key: string;\n level: number;\n expanded: boolean;\n isControlled: boolean;\n hasToggle: boolean;\n }[] = [];\n let hideBelowLevel: number | null = null;\n\n items.forEach((element, index) => {\n const level = element.props.level ?? 1;\n if (hideBelowLevel !== null && level > hideBelowLevel) return;\n hideBelowLevel = null;\n\n const isControlled = element.props.expanded !== undefined;\n const expanded = isControlled\n ? Boolean(element.props.expanded)\n : (openState[key(element, index)] ??\n element.props.defaultExpanded ??\n true);\n\n // Collapsing is the variant, not a per-row opt-in: `tree` rows that have\n // descendants get the control, `default` rows never do. A tree row without\n // it would be a branch nobody can collapse — which is just `default` with a\n // wider indent — so there is nothing for a `collapsible` prop to decide.\n const hasToggle = resolved === 'tree' && hasDescendants(index);\n\n if (hasToggle && !expanded) {\n hideBelowLevel = level;\n }\n\n visible.push({\n element,\n key: key(element, index),\n level,\n expanded,\n isControlled,\n hasToggle,\n });\n });\n\n // Pass 2 — the connector and the elbow are two halves of one join, so they are\n // resolved together and neither can be drawn without the other.\n //\n // A row draws the elbow when it is deeper than the row above it: that is what\n // \"opens a branch\" means, and reading it from the sequence keeps a level jump\n // from having to be declared twice. `branchStart` overrides it, like\n // `connector` overrides the descending line.\n const drawsElbow = (index: number) => {\n const row = visible[index];\n if (row == null || row.level <= 1) return false;\n const previous = visible[index - 1];\n return (\n row.element.props.branchStart ??\n (previous != null && row.level > previous.level)\n );\n };\n\n // A row's connector descends from its own marker to the *next visible* row, so\n // it may only be drawn when it actually lands on something. Otherwise the line\n // dangles in the margin: at the end of the list, at the end of a branch, and\n // (the case that needs the two passes) once a collapse has removed the\n // descendants it used to point at.\n const rows = visible.map((row, index) => {\n const next = visible[index + 1];\n const reachesNextRow =\n next != null &&\n (next.level > row.level\n ? // A deeper row bridges the gap with its own elbow, which starts exactly\n // at this row's marker centre — so the line lands only if that elbow is\n // actually drawn. It normally is, since a level jump derives one; it is\n // not when the consumer refuses it with `branchStart={false}`, and then\n // this line has nothing to meet.\n drawsElbow(index + 1)\n : next.level === row.level &&\n // Same level, but a `tree` row that reserves a disclosure button has a\n // wider marker column than one that doesn't — so their markers sit at\n // different offsets and a vertical line between them can't be straight.\n // Figma only ever shows homogeneous siblings, so skip the line instead\n // of drawing a crooked one.\n next.hasToggle === row.hasToggle);\n return (\n <TimelineRowContext.Provider\n key={row.key}\n value={{\n expanded: row.expanded,\n connector: row.element.props.connector ?? reachesNextRow,\n elbow: drawsElbow(index),\n hasToggle: row.hasToggle,\n onToggle: () => {\n const nextExpanded = !row.expanded;\n row.element.props.onExpandedChange?.(nextExpanded);\n if (!row.isControlled) {\n setOpenState((state) => ({\n ...state,\n [row.key]: nextExpanded,\n }));\n }\n },\n }}\n >\n {row.element}\n </TimelineRowContext.Provider>\n );\n });\n\n return (\n <TimelineContext.Provider value={context}>\n <ol\n ref={ref}\n data-variant={resolved}\n style={\n {\n // The indent step is the widest marker column plus the gap: a\n // `tree` row reserves the disclosure button even when a given row\n // is a leaf, so every level lines up.\n '--timeline-step': `calc(${\n resolved === 'tree' ? `${TOGGLE} + ${MARKER}` : MARKER\n } + ${GAP})`,\n } as React.CSSProperties\n }\n className={cn(\n timelineVariants({ variant: resolved }),\n 'gap-[var(--ui-gap-16)]',\n className\n )}\n {...props}\n >\n {rows}\n </ol>\n </TimelineContext.Provider>\n );\n }\n);\nTimelineRoot.displayName = 'Timeline';\n\nexport type TimelineLevel = 1 | 2 | 3;\n\n/** The marker Avatar's color scheme (Figma ships the Timeline marker as Blue). */\nexport type TimelineMarkerColor =\n | 'blue'\n | 'gray'\n | 'green'\n | 'teal'\n | 'violet'\n | 'red'\n | 'yellow'\n | 'orange';\n\nexport interface TimelineItemProps extends Omit<\n React.ComponentProps<'li'>,\n 'title'\n> {\n /** Event title (the primary line in the card header). */\n title: React.ReactNode;\n /** Event time — pass a `<time dateTime>` for an accessible, machine-readable stamp. */\n timestamp?: React.ReactNode;\n /** Slot beside the title, before the timestamp — e.g. a `Tag`. */\n tag?: React.ReactNode;\n /** Optional secondary description under the title. */\n description?: React.ReactNode;\n /** Icon rendered inside the marker Avatar. Takes precedence over `initials`. */\n icon?: React.ReactNode;\n /** Initials rendered inside the marker Avatar when no `icon` is given. */\n initials?: string;\n /** Marker Avatar color scheme. */\n color?: TimelineMarkerColor;\n /** Nesting depth (Figma `Nesting` L1-L3). Drives the indent only. */\n level?: TimelineLevel;\n /**\n * Force the elbow joining this row to its parent's connector on or off (Figma's\n * `Nesting` `-First`). Leave it unset — `Timeline` derives it from the levels,\n * drawing it whenever this row is deeper than the one above it. Ignored at\n * `level={1}`, which has no parent.\n */\n branchStart?: boolean;\n /**\n * Force the connector descending to the next row on or off (Figma\n * `Connecting line`). Leave it unset — `Timeline` derives it from the levels,\n * drawing it only when the next visible row is at this row's depth or deeper.\n */\n connector?: boolean;\n /**\n * Branch disclosure state (controlled). Only meaningful under `variant=\"tree\"`\n * on a row that has descendants — those rows get the control automatically.\n */\n expanded?: boolean;\n /** Initial branch disclosure state when uncontrolled. */\n defaultExpanded?: boolean;\n /** Called with the requested disclosure state whenever the control is activated. */\n onExpandedChange?: (expanded: boolean) => void;\n /**\n * Accessible name for the branch disclosure control — the one that drops this\n * row's descendant rows. Distinct from `bodyToggleLabel` by default, because a\n * tree row can carry both controls at once.\n */\n toggleLabel?: string;\n /**\n * Give this row's card a chevron at the trailing edge of its header that shows\n * and hides the body (Figma's `Action Button`).\n *\n * Orthogonal to `variant`: it is the *card's* disclosure, not the timeline's, so\n * it works the same in `default` and `tree` and a tree row can have both — the\n * branch control drops the rows below, this one folds this card's own body.\n * (It lives here only until `Card` grows the behaviour itself.)\n */\n collapsibleBody?: boolean;\n /** Card-body disclosure state (controlled). */\n bodyExpanded?: boolean;\n /** Initial card-body disclosure state when uncontrolled. */\n defaultBodyExpanded?: boolean;\n /** Called with the requested card-body disclosure state. */\n onBodyExpandedChange?: (expanded: boolean) => void;\n /**\n * Accessible name for the card-body disclosure control — the one that folds this\n * row's own body. Distinct from `toggleLabel` by default.\n */\n bodyToggleLabel?: string;\n /** Card body, rendered below a divider. */\n children?: React.ReactNode;\n}\n\nconst TimelineItem = React.forwardRef<HTMLLIElement, TimelineItemProps>(\n (\n {\n className,\n title,\n timestamp,\n tag,\n description,\n icon,\n initials,\n color = 'blue',\n level = 1,\n branchStart,\n connector,\n // Destructured only to keep them off the `<li>`: the root reads them from\n // `element.props`, because it owns the disclosure state for the whole branch.\n expanded: expandedProp,\n defaultExpanded,\n onExpandedChange,\n // The two controls can sit in the same `<li>`, so their default names have to\n // name their own action — a shared generic default would give one row two\n // buttons that are indistinguishable to a screen reader.\n toggleLabel = 'Toggle nested events',\n collapsibleBody = false,\n bodyExpanded: bodyExpandedProp,\n defaultBodyExpanded = true,\n onBodyExpandedChange,\n bodyToggleLabel = 'Toggle event details',\n children,\n ...props\n },\n ref\n ) => {\n const { variant } = React.useContext(TimelineContext);\n const row = React.useContext(TimelineRowContext);\n\n // The card's own disclosure is entirely local — unlike the branch control, it\n // changes nothing outside this row, so the root has no reason to own it.\n const [localBodyExpanded, setLocalBodyExpanded] =\n React.useState(defaultBodyExpanded);\n const bodyExpanded = bodyExpandedProp ?? localBodyExpanded;\n const handleBodyToggle = () => {\n const next = !bodyExpanded;\n onBodyExpandedChange?.(next);\n if (bodyExpandedProp === undefined) setLocalBodyExpanded(next);\n };\n\n // All three are resolved by the root: `expanded` and the control depend on the\n // row's descendants, which only the root can see, and it owns the uncontrolled\n // state so it can drop those descendants too. Rendered outside a `Timeline`\n // there is no branch at all, so an item is simply never collapsible.\n const expanded = row?.expanded ?? true;\n const drawConnector = row ? row.connector : (connector ?? false);\n // Likewise derived by the root, which is the only place the row above is\n // visible. Standalone there is no row above, so only the explicit prop can\n // ask for an elbow — and it has nothing to meet, which is the consumer's call.\n const drawElbow = row ? row.elbow : Boolean(branchStart) && level > 1;\n const treeToggle = variant === 'tree' && (row?.hasToggle ?? false);\n // A `tree` leaf drops the disclosure button, so its own marker column is\n // narrower than the indent step — the connector tracks the Avatar, not the step.\n const ownMarker = treeToggle ? `calc(${TOGGLE} + ${MARKER})` : MARKER;\n\n // Collapsed, the chevron points toward the inline end — so it has to mirror\n // under RTL; logical positioning can't rotate artwork.\n const chevron = (\n open: boolean,\n label: string,\n onClick: () => void\n ) => (\n <ButtonIcon\n type=\"button\"\n aria-label={label}\n aria-expanded={open}\n onClick={onClick}\n className={cn(\n 'shrink-0 transition-transform',\n !open && 'ltr:-rotate-90 rtl:rotate-90'\n )}\n >\n <ChevronDownIcon />\n </ButtonIcon>\n );\n\n return (\n <li\n ref={ref}\n data-level={level}\n data-branch-start={drawElbow || undefined}\n data-expanded={treeToggle ? expanded : undefined}\n data-body-expanded={collapsibleBody ? bodyExpanded : undefined}\n style={\n {\n '--timeline-indent': `calc(var(--timeline-step) * ${level - 1})`,\n '--timeline-marker': ownMarker,\n } as React.CSSProperties\n }\n className={cn(\n 'relative flex items-start gap-[var(--ui-gap-16)]',\n 'ps-[var(--timeline-indent)]',\n className\n )}\n {...props}\n >\n {drawConnector && (\n <span\n data-slot=\"timeline-connector\"\n aria-hidden\n // Descends from the marker's lower edge into the row gap, meeting\n // the next row's elbow (or its marker) exactly.\n className=\"absolute top-[var(--ui-avatar-global-avatar-size)] bottom-[calc(var(--ui-gap-16)*-1)] w-px\"\n style={{\n insetInlineStart: `calc(var(--timeline-indent) + var(--timeline-marker) - ${MARKER} / 2)`,\n backgroundColor: CONNECTOR_COLOR,\n }}\n />\n )}\n {drawElbow && (\n <span\n data-slot=\"timeline-elbow\"\n aria-hidden\n // A right angle: down the parent's connector line, then across to\n // this row's marker column. `border-s`/`border-b` mirror in RTL.\n className=\"absolute top-0 h-[calc(var(--ui-avatar-global-avatar-size)/2)] w-[var(--ui-avatar-global-avatar-size)] border-b border-s\"\n style={{\n insetInlineStart: `calc(var(--timeline-indent) - ${MARKER})`,\n borderColor: CONNECTOR_COLOR,\n }}\n />\n )}\n\n {/* Marker column: the optional tree disclosure button, then the Avatar. */}\n <div className=\"relative flex shrink-0 items-center gap-[var(--ui-gap-8)]\">\n {treeToggle && chevron(expanded, toggleLabel, () => row?.onToggle())}\n <Avatar\n aria-hidden\n color={color}\n // The Figma Timeline marker carries no stroke, so Avatar's 2px outset\n // ring (which exists to separate overlapping avatars in a group) is\n // switched off here.\n className=\"[box-shadow:none] [&_svg]:size-[var(--ui-button-icon-global-icon-size)] [&_svg]:shrink-0\"\n >\n {icon ??\n (initials ? <AvatarFallback>{initials}</AvatarFallback> : null)}\n </Avatar>\n </div>\n\n {/* Content column: a Card header, plus an optional body below a divider. */}\n <Card className=\"min-w-0 flex-1 shadow-none\">\n <div className=\"flex min-h-12 items-center gap-[var(--ui-gap-16)] px-4 py-2\">\n <div className=\"flex min-w-0 flex-1 flex-col\">\n <div className=\"flex h-8 items-center gap-[var(--ui-gap-8)]\">\n <span className=\"truncate text-base font-medium leading-6 text-foreground\">\n {title}\n </span>\n {(tag != null || timestamp != null) && (\n <div className=\"flex h-full shrink-0 items-center gap-[var(--ui-gap-8)]\">\n {tag}\n {timestamp != null && (\n <span className=\"whitespace-nowrap text-xs leading-4 text-muted-foreground\">\n {timestamp}\n </span>\n )}\n </div>\n )}\n </div>\n {description != null && (\n <div className=\"flex items-center pb-1\">\n <span className=\"truncate text-xs leading-4 text-muted-foreground\">\n {description}\n </span>\n </div>\n )}\n </div>\n {collapsibleBody &&\n chevron(bodyExpanded, bodyToggleLabel, handleBodyToggle)}\n </div>\n {children != null && (!collapsibleBody || bodyExpanded) && (\n <div className=\"border-t border-border py-2\">{children}</div>\n )}\n </Card>\n </li>\n );\n }\n);\nTimelineItem.displayName = 'Timeline.Item';\n\nconst Timeline = Object.assign(TimelineRoot, { Item: TimelineItem });\n\nexport { Timeline, TimelineItem };\n"],"names":["CONNECTOR_COLOR","GAP","MARKER","TOGGLE","TimelineContext","React","TimelineRowContext","key","element","index","timelineVariants","cva","TimelineRoot","className","variant","children","props","ref","resolved","context","openState","setOpenState","items","levelAt","_a","hasDescendants","visible","hideBelowLevel","level","isControlled","expanded","hasToggle","drawsElbow","row","previous","rows","next","reachesNextRow","jsx","nextExpanded","_b","state","cn","TimelineItem","title","timestamp","tag","description","icon","initials","color","branchStart","connector","expandedProp","defaultExpanded","onExpandedChange","toggleLabel","collapsibleBody","bodyExpandedProp","defaultBodyExpanded","onBodyExpandedChange","bodyToggleLabel","localBodyExpanded","setLocalBodyExpanded","bodyExpanded","handleBodyToggle","drawConnector","drawElbow","treeToggle","ownMarker","chevron","open","label","onClick","ButtonIcon","ChevronDownIcon","jsxs","Avatar","AvatarFallback","Card","Timeline"],"mappings":";;;;;;;;AAsDA,MAAMA,IAAkB,sCAMlBC,KAAM,oBAENC,IAAS,uCAETC,IACJ,yEAIIC,IAAkBC,EAAM,cAA4C;AAAA,EACxE,SAAS;AACX,CAAC,GAOKC,IAAqBD,EAAM,cAMvB,IAAI,GAGRE,IAAM,CAACC,GAA6BC,MACxC,OAAOD,EAAQ,OAAOC,CAAK,GAEvBC,KAAmBC,EAAI,iBAAiB;AAAA,EAC5C,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS;AAAA,MACT,MAAM;AAAA,IAAA;AAAA,EACR;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,EAAA;AAEb,CAAC,GAqBKC,IAAeP,EAAM;AAAA,EACzB,CAAC,EAAE,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