@heigin/ui 0.1.1 → 0.2.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +12 -1
  2. package/dist/components/crm/agent-decision-tree.d.ts +82 -0
  3. package/dist/components/crm/agent-decision-tree.js +580 -0
  4. package/dist/components/crm/agent-decision-tree.module.js +113 -0
  5. package/dist/components/crm/agent-task-trail.d.ts +56 -0
  6. package/dist/components/crm/agent-task-trail.js +419 -0
  7. package/dist/components/crm/agent-thinking.d.ts +36 -0
  8. package/dist/components/crm/agent-thinking.js +443 -0
  9. package/dist/components/crm/agent-thinking.module.js +33 -0
  10. package/dist/components/crm/agent.module.js +81 -0
  11. package/dist/components/crm/crm.module.js +44 -4
  12. package/dist/components/crm/record-header.d.ts +2 -2
  13. package/dist/components/crm/workspace-switcher.d.ts +49 -0
  14. package/dist/components/crm/workspace-switcher.js +205 -0
  15. package/dist/components/ui/avatar.d.ts +9 -1
  16. package/dist/components/ui/avatar.js +61 -4
  17. package/dist/components/ui/avatar.module.js +4 -2
  18. package/dist/components/ui/breadcrumb.d.ts +10 -0
  19. package/dist/components/ui/breadcrumb.js +48 -0
  20. package/dist/components/ui/breadcrumb.module.js +19 -0
  21. package/dist/components/ui/heigin-mark.d.ts +11 -0
  22. package/dist/components/ui/heigin-mark.js +41 -0
  23. package/dist/components/ui/loader.d.ts +21 -0
  24. package/dist/components/ui/loader.js +45 -0
  25. package/dist/components/ui/table.d.ts +9 -1
  26. package/dist/components/ui/table.js +136 -89
  27. package/dist/components/ui/table.module.js +13 -1
  28. package/dist/components/ui/thinking-orb.d.ts +27 -0
  29. package/dist/components/ui/thinking-orb.js +27 -0
  30. package/dist/components/ui/type-motion.d.ts +31 -0
  31. package/dist/components/ui/type-motion.js +394 -0
  32. package/dist/components/ui/type-motion.module.js +31 -0
  33. package/dist/index.d.ts +9 -0
  34. package/dist/index.js +10 -1
  35. package/dist/styles.css +1732 -7
  36. package/package.json +3 -2
@@ -0,0 +1,394 @@
1
+ "use client";
2
+ "use client";
3
+ import { cn } from "../../lib/cn.js";
4
+ import { HeiGinMark } from "./heigin-mark.js";
5
+ import type_motion_module_default from "./type-motion.module.js";
6
+ import * as React from "react";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ //#region src/components/ui/type-motion.tsx
9
+ var ORB_FILLS = [
10
+ "radial-gradient(circle at 34% 30%, #fff 0 6%, #d4d4d4 22%, #737373 55%, #1f1f1f 88%)",
11
+ "radial-gradient(circle at 32% 28%, #fff 0 6%, #c7dcff 20%, #3b82f6 52%, #1e3a8a 88%)",
12
+ "radial-gradient(circle at 33% 28%, #fff 0 6%, #c9f2d6 20%, #16a34a 52%, #14532d 88%)",
13
+ "radial-gradient(circle at 33% 28%, #fff 0 6%, #fde7b0 20%, #f59e0b 52%, #7c2d12 88%)",
14
+ "radial-gradient(circle at 33% 28%, #fff 0 6%, #fecaca 20%, #dc2626 52%, #7f1d1d 88%)",
15
+ "conic-gradient(from 200deg, #3b82f6, #16a34a, #f59e0b, #dc2626, #3b82f6)"
16
+ ];
17
+ var SYMBOLS = [
18
+ "M12 2.5 14.6 9l6.9.5-5.3 4.4 1.7 6.7L12 16.9l-5.9 3.7 1.7-6.7L2.5 9.5 9.4 9Z",
19
+ "M12 21s-8.5-5.2-8.5-11A4.8 4.8 0 0 1 12 6.8 4.8 4.8 0 0 1 20.5 10c0 5.8-8.5 11-8.5 11Z",
20
+ "M13.5 2 5 13.5h5.5L9.5 22 19 9.5h-5.6Z",
21
+ "M12 2c1.4 4.6 5.4 8.6 10 10-4.6 1.4-8.6 5.4-10 10-1.4-4.6-5.4-8.6-10-10C6.6 10.6 10.6 6.6 12 2Z"
22
+ ];
23
+ var SYMBOL_INK = [
24
+ "#f59e0b",
25
+ "#dc2626",
26
+ "#3b82f6",
27
+ "#1f1f1f"
28
+ ];
29
+ /** HeiGin's built-in artwork: shaded orbs in the brand palette, four symbols and the mark. */
30
+ var typeMotionDefaultArtwork = [
31
+ ...ORB_FILLS.map((background, i) => /* @__PURE__ */ jsx("span", {
32
+ className: type_motion_module_default.orb,
33
+ style: { background }
34
+ }, `o${i}`)),
35
+ ...SYMBOLS.map((d, i) => /* @__PURE__ */ jsx("svg", {
36
+ viewBox: "0 0 24 24",
37
+ fill: SYMBOL_INK[i],
38
+ children: /* @__PURE__ */ jsx("path", { d })
39
+ }, `s${i}`)),
40
+ /* @__PURE__ */ jsx(HeiGinMark, { size: 64 }, "mark")
41
+ ];
42
+ function renderArt(a) {
43
+ if (!a) return null;
44
+ if (React.isValidElement(a)) return a;
45
+ return /* @__PURE__ */ jsx("img", {
46
+ src: a.src,
47
+ alt: "",
48
+ draggable: false,
49
+ decoding: "async"
50
+ });
51
+ }
52
+ /**
53
+ * A headline whose letters turn into artwork under the pointer: lens, pop, shuffle, word,
54
+ * bubble, swell, sticker or burst. The text stays one accessible heading; the effects are decoration.
55
+ */
56
+ function TypeMotion({ text, effect = "lens", artwork = typeMotionDefaultArtwork, as = "h1", radius = .85, hold = 900, artScale = .84, tilt = false, className, style, ...props }) {
57
+ const Tag = as;
58
+ const rootRef = React.useRef(null);
59
+ const charRefs = React.useRef([]);
60
+ const rects = React.useRef([]);
61
+ const [swapped, setSwapped] = React.useState({});
62
+ const [swell, setSwell] = React.useState({});
63
+ const [fx, setFx] = React.useState([]);
64
+ const timers = React.useRef(/* @__PURE__ */ new Map());
65
+ const hot = React.useRef(null);
66
+ const lastSticker = React.useRef({
67
+ x: -999,
68
+ y: -999
69
+ });
70
+ const seq = React.useRef(0);
71
+ const reduce = React.useRef(false);
72
+ const lines = React.useMemo(() => {
73
+ let i = 0;
74
+ let w = 0;
75
+ return text.split("\n").map((line) => line.split(/( +)/).filter(Boolean).map((tok) => {
76
+ if (/^ +$/.test(tok)) return {
77
+ space: true,
78
+ chars: []
79
+ };
80
+ const chars = Array.from(tok).map((c) => ({
81
+ c,
82
+ i: i++,
83
+ w
84
+ }));
85
+ w++;
86
+ return {
87
+ space: false,
88
+ chars
89
+ };
90
+ }));
91
+ }, [text]);
92
+ const wordOf = React.useMemo(() => lines.flat().flatMap((t) => t.chars.map((c) => c.w)), [lines]);
93
+ const count = wordOf.length;
94
+ React.useEffect(() => {
95
+ reduce.current = window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? false;
96
+ }, []);
97
+ const measure = React.useCallback(() => {
98
+ const root = rootRef.current;
99
+ if (!root) return;
100
+ const rb = root.getBoundingClientRect();
101
+ rects.current = charRefs.current.slice(0, count).map((el) => {
102
+ const r = el?.getBoundingClientRect() ?? {
103
+ left: 0,
104
+ top: 0,
105
+ width: 0,
106
+ height: 0
107
+ };
108
+ return {
109
+ cx: r.left - rb.left + r.width / 2,
110
+ cy: r.top - rb.top + r.height * .55,
111
+ l: r.left - rb.left,
112
+ t: r.top - rb.top,
113
+ w: r.width,
114
+ h: r.height
115
+ };
116
+ });
117
+ }, [count]);
118
+ React.useEffect(() => {
119
+ const root = rootRef.current;
120
+ if (!root || typeof ResizeObserver === "undefined") return;
121
+ const ro = new ResizeObserver(measure);
122
+ ro.observe(root);
123
+ return () => ro.disconnect();
124
+ }, [measure]);
125
+ React.useEffect(() => {
126
+ const t = timers.current;
127
+ setSwapped({});
128
+ setSwell({});
129
+ setFx([]);
130
+ t.forEach((id) => window.clearTimeout(id));
131
+ t.clear();
132
+ return () => t.forEach((id) => window.clearTimeout(id));
133
+ }, [text, effect]);
134
+ const pick = (avoid) => {
135
+ let a = Math.floor(Math.random() * artwork.length);
136
+ if (artwork.length > 1 && a === avoid) a = (a + 1) % artwork.length;
137
+ return a;
138
+ };
139
+ const swapIn = (i, scale = 1, art) => setSwapped((s) => {
140
+ const cur = s[i];
141
+ if (cur && !cur.leaving && art === void 0) return Math.abs(cur.scale - scale) < .02 ? s : {
142
+ ...s,
143
+ [i]: {
144
+ ...cur,
145
+ scale
146
+ }
147
+ };
148
+ return {
149
+ ...s,
150
+ [i]: {
151
+ art: art ?? pick(cur?.art),
152
+ scale,
153
+ rot: tilt ? Math.random() * 24 - 12 : 0,
154
+ key: seq.current++
155
+ }
156
+ };
157
+ });
158
+ const swapOut = (i) => setSwapped((s) => {
159
+ const cur = s[i];
160
+ if (!cur || cur.leaving) return s;
161
+ if (reduce.current) {
162
+ const next = { ...s };
163
+ delete next[i];
164
+ return next;
165
+ }
166
+ return {
167
+ ...s,
168
+ [i]: {
169
+ ...cur,
170
+ leaving: true
171
+ }
172
+ };
173
+ });
174
+ const dropChar = (i) => setSwapped((s) => {
175
+ if (!s[i]?.leaving) return s;
176
+ const next = { ...s };
177
+ delete next[i];
178
+ return next;
179
+ });
180
+ const later = (i, ms, fn) => {
181
+ window.clearTimeout(timers.current.get(i));
182
+ timers.current.set(i, window.setTimeout(fn, ms));
183
+ };
184
+ const cancel = (i) => {
185
+ window.clearTimeout(timers.current.get(i));
186
+ timers.current.delete(i);
187
+ };
188
+ const spawn = (f) => {
189
+ if (reduce.current) return;
190
+ setFx((all) => [...all.slice(f.kind === "sticker" ? -48 : -40), {
191
+ ...f,
192
+ id: seq.current++
193
+ }]);
194
+ };
195
+ const em = () => parseFloat(getComputedStyle(rootRef.current).fontSize) || 16;
196
+ const enter = (i) => {
197
+ const r = rects.current[i];
198
+ if (!r) return;
199
+ const size = em();
200
+ switch (effect) {
201
+ case "pop":
202
+ cancel(i);
203
+ swapIn(i);
204
+ break;
205
+ case "shuffle": {
206
+ cancel(i);
207
+ let n = 0;
208
+ const spin = () => {
209
+ swapIn(i, 1, pick());
210
+ if (++n < 6) timers.current.set(i, window.setTimeout(spin, 70));
211
+ };
212
+ spin();
213
+ break;
214
+ }
215
+ case "word":
216
+ wordOf.forEach((w, j) => {
217
+ if (w !== wordOf[i]) return;
218
+ cancel(j);
219
+ window.setTimeout(() => swapIn(j), Math.abs(j - i) * 45);
220
+ });
221
+ break;
222
+ case "bubble": {
223
+ const wob = Math.random() * 30 - 15;
224
+ spawn({
225
+ kind: "bubble",
226
+ art: pick(),
227
+ x: r.cx,
228
+ y: r.cy,
229
+ size: size * .8 * artScale,
230
+ dx: wob,
231
+ dy: -size * 1.4,
232
+ rot: wob / 2,
233
+ dur: 1500
234
+ });
235
+ break;
236
+ }
237
+ case "burst": for (let k = 0; k < 7; k++) {
238
+ const ang = -Math.PI / 2 + (Math.random() - .5) * Math.PI * 1.6;
239
+ const dist = size * (.6 + Math.random() * .9);
240
+ spawn({
241
+ kind: "burst",
242
+ art: pick(),
243
+ x: r.cx,
244
+ y: r.cy,
245
+ size: size * (.3 + Math.random() * .25) * artScale,
246
+ dx: Math.cos(ang) * dist,
247
+ dy: Math.sin(ang) * dist + size * .4,
248
+ rot: Math.random() * 180 - 90,
249
+ dur: 900 + Math.random() * 300
250
+ });
251
+ }
252
+ }
253
+ };
254
+ const leave = (i) => {
255
+ if (effect === "pop" || effect === "shuffle") later(i, hold, () => swapOut(i));
256
+ if (effect === "word") {
257
+ const w = wordOf[i];
258
+ wordOf.forEach((ww, j) => {
259
+ if (ww === w) later(j, hold, () => hot.current !== null && wordOf[hot.current] === w ? void 0 : swapOut(j));
260
+ });
261
+ }
262
+ };
263
+ const onPointerMove = (e) => {
264
+ if (!rects.current.length) measure();
265
+ const rb = rootRef.current.getBoundingClientRect();
266
+ const x = e.clientX - rb.left;
267
+ const y = e.clientY - rb.top;
268
+ const size = em();
269
+ const R = radius * size;
270
+ const hit = rects.current.findIndex((r) => x >= r.l - 2 && x <= r.l + r.w + 2 && y >= r.t && y <= r.t + r.h);
271
+ const now = hit >= 0 ? hit : null;
272
+ if (now !== hot.current) {
273
+ if (hot.current !== null) leave(hot.current);
274
+ if (now !== null) enter(now);
275
+ hot.current = now;
276
+ }
277
+ if (effect === "lens") rects.current.forEach((r, i) => {
278
+ const d = Math.hypot(x - r.cx, y - r.cy);
279
+ if (d < R) {
280
+ cancel(i);
281
+ swapIn(i, .65 + .35 * (1 - d / R));
282
+ } else later(i, Math.min(hold, 160), () => swapOut(i));
283
+ });
284
+ if (effect === "swell") {
285
+ let best = -1;
286
+ let bd = Infinity;
287
+ const next = {};
288
+ rects.current.forEach((r, i) => {
289
+ const d = Math.hypot(x - r.cx, y - r.cy);
290
+ const k = Math.max(0, 1 - d / (R * 1.4));
291
+ if (k > 0) next[i] = k;
292
+ if (d < bd) {
293
+ bd = d;
294
+ best = i;
295
+ }
296
+ });
297
+ setSwell(next);
298
+ rects.current.forEach((_, i) => {
299
+ if (i === best && bd < R * .45) {
300
+ cancel(i);
301
+ swapIn(i, 1.05);
302
+ } else later(i, Math.min(hold, 160), () => swapOut(i));
303
+ });
304
+ }
305
+ if (effect === "sticker" && now !== null && Math.hypot(x - lastSticker.current.x, y - lastSticker.current.y) > size * .55) {
306
+ lastSticker.current = {
307
+ x,
308
+ y
309
+ };
310
+ spawn({
311
+ kind: "sticker",
312
+ art: pick(),
313
+ x,
314
+ y,
315
+ size: size * .7 * artScale,
316
+ dx: 0,
317
+ dy: 0,
318
+ rot: Math.random() * 36 - 18,
319
+ dur: 420
320
+ });
321
+ }
322
+ };
323
+ const onPointerLeave = () => {
324
+ if (hot.current !== null) leave(hot.current);
325
+ hot.current = null;
326
+ if (effect === "lens" || effect === "swell") {
327
+ setSwell({});
328
+ rects.current.forEach((_, i) => later(i, Math.min(hold, 160), () => swapOut(i)));
329
+ }
330
+ };
331
+ let index = 0;
332
+ return /* @__PURE__ */ jsxs(Tag, {
333
+ ref: rootRef,
334
+ className: cn(type_motion_module_default.root, className),
335
+ style: {
336
+ ...style,
337
+ ["--tm-art"]: artScale
338
+ },
339
+ "aria-label": text.replace(/\n/g, " "),
340
+ onPointerEnter: measure,
341
+ onPointerMove,
342
+ onPointerLeave,
343
+ ...props,
344
+ children: [lines.map((line, li) => /* @__PURE__ */ jsxs(React.Fragment, { children: [li > 0 && /* @__PURE__ */ jsx("br", {}), line.map((tok, ti) => tok.space ? " " : /* @__PURE__ */ jsx("span", {
345
+ className: type_motion_module_default.word,
346
+ "aria-hidden": "true",
347
+ children: tok.chars.map(({ c }) => {
348
+ const i = index++;
349
+ const s = swapped[i];
350
+ const k = swell[i] ?? 0;
351
+ return /* @__PURE__ */ jsxs("span", {
352
+ ref: (el) => void (charRefs.current[i] = el),
353
+ className: type_motion_module_default.char,
354
+ "data-swapped": !!s && !s.leaving,
355
+ children: [/* @__PURE__ */ jsx("span", {
356
+ className: type_motion_module_default.glyph,
357
+ style: k ? { transform: `scale(${1 + .42 * k * k}) translateY(${-.05 * k}em)` } : void 0,
358
+ children: c
359
+ }), s && /* @__PURE__ */ jsx("span", {
360
+ className: type_motion_module_default.art,
361
+ "data-leaving": s.leaving,
362
+ style: {
363
+ ["--tm-scale"]: s.scale,
364
+ ["--tm-rot"]: `${s.rot}deg`
365
+ },
366
+ onAnimationEnd: () => s.leaving && dropChar(i),
367
+ children: renderArt(artwork[s.art])
368
+ }, s.key)]
369
+ }, i);
370
+ })
371
+ }, ti))] }, li)), /* @__PURE__ */ jsx("span", {
372
+ className: type_motion_module_default.fxLayer,
373
+ "aria-hidden": "true",
374
+ children: fx.map((f) => /* @__PURE__ */ jsx("span", {
375
+ className: type_motion_module_default.fx,
376
+ "data-kind": f.kind,
377
+ style: {
378
+ left: f.x - f.size / 2,
379
+ top: f.y - f.size / 2,
380
+ width: f.size,
381
+ height: f.size,
382
+ animationDuration: `${f.dur}ms`,
383
+ ["--dx"]: `${f.dx}px`,
384
+ ["--dy"]: `${f.dy}px`,
385
+ ["--rot"]: `${f.rot}deg`
386
+ },
387
+ onAnimationEnd: () => f.kind !== "sticker" && setFx((all) => all.filter((x) => x.id !== f.id)),
388
+ children: renderArt(artwork[f.art])
389
+ }, f.id))
390
+ })]
391
+ });
392
+ }
393
+ //#endregion
394
+ export { TypeMotion, typeMotionDefaultArtwork };
@@ -0,0 +1,31 @@
1
+ //#region src/components/ui/type-motion.module.css
2
+ var root = "hg-type-motion-module_root_yYYUN";
3
+ var word = "hg-type-motion-module_word_jak8s";
4
+ var char = "hg-type-motion-module_char_tc-5R";
5
+ var glyph = "hg-type-motion-module_glyph_E3uQs";
6
+ var art = "hg-type-motion-module_art_EHJL2";
7
+ var tmIn = "hg-type-motion-module_tmIn_djYUv";
8
+ var tmOut = "hg-type-motion-module_tmOut_wMpeB";
9
+ var fx = "hg-type-motion-module_fx_g3pzg";
10
+ var orb = "hg-type-motion-module_orb_lXF8F";
11
+ var fxLayer = "hg-type-motion-module_fxLayer_t30eM";
12
+ var tmBubble = "hg-type-motion-module_tmBubble_bgfz3";
13
+ var tmBurst = "hg-type-motion-module_tmBurst_fDE57";
14
+ var tmSticker = "hg-type-motion-module_tmSticker_3iaAX";
15
+ var type_motion_module_default = {
16
+ root,
17
+ word,
18
+ char,
19
+ glyph,
20
+ art,
21
+ tmIn,
22
+ tmOut,
23
+ fx,
24
+ orb,
25
+ fxLayer,
26
+ tmBubble,
27
+ tmBurst,
28
+ tmSticker
29
+ };
30
+ //#endregion
31
+ export { art, char, type_motion_module_default as default, fx, fxLayer, glyph, orb, root, tmBubble, tmBurst, tmIn, tmOut, tmSticker, word };
package/dist/index.d.ts CHANGED
@@ -4,12 +4,14 @@ export * from "./components/ui/icon-button.js";
4
4
  export * from "./components/ui/field.js";
5
5
  export * from "./components/ui/input.js";
6
6
  export * from "./components/ui/textarea.js";
7
+ export * from "./components/ui/thinking-orb.js";
7
8
  export * from "./components/ui/search-input.js";
8
9
  export * from "./components/ui/select.js";
9
10
  export * from "./components/ui/native-select.js";
10
11
  export * from "./components/ui/checkbox.js";
11
12
  export * from "./components/ui/radio-group.js";
12
13
  export * from "./components/ui/switch.js";
14
+ export * from "./components/ui/breadcrumb.js";
13
15
  export * from "./components/ui/tabs.js";
14
16
  export * from "./components/ui/dropdown-menu.js";
15
17
  export * from "./components/ui/pagination.js";
@@ -20,6 +22,9 @@ export * from "./components/ui/empty-state.js";
20
22
  export * from "./components/ui/kbd.js";
21
23
  export * from "./components/ui/skeleton.js";
22
24
  export * from "./components/ui/spinner.js";
25
+ export * from "./components/ui/loader.js";
26
+ export * from "./components/ui/heigin-mark.js";
27
+ export * from "./components/ui/type-motion.js";
23
28
  export * from "./components/ui/table.js";
24
29
  export * from "./components/ui/visually-hidden.js";
25
30
  export * from "./components/ui/alert-dialog.js";
@@ -30,6 +35,9 @@ export * from "./components/ui/toast.js";
30
35
  export * from "./components/ui/tooltip.js";
31
36
  export * from "./lib/format.js";
32
37
  export * from "./components/crm/activity-timeline.js";
38
+ export * from "./components/crm/agent-task-trail.js";
39
+ export * from "./components/crm/agent-decision-tree.js";
40
+ export * from "./components/crm/agent-thinking.js";
33
41
  export * from "./components/crm/approval-card.js";
34
42
  export * from "./components/crm/channel-mark.js";
35
43
  export * from "./components/crm/conversation-list-item.js";
@@ -42,6 +50,7 @@ export * from "./components/crm/money-value.js";
42
50
  export * from "./components/crm/page-header.js";
43
51
  export * from "./components/crm/record-header.js";
44
52
  export * from "./components/crm/sidebar-nav.js";
53
+ export * from "./components/crm/workspace-switcher.js";
45
54
  export * from "./components/crm/sla-clock.js";
46
55
  export * from "./components/crm/status-badge.js";
47
56
  export * from "./components/crm/task-row.js";
package/dist/index.js CHANGED
@@ -6,12 +6,14 @@ import { IconButton } from "./components/ui/icon-button.js";
6
6
  import { Field, useField, useFieldControlProps } from "./components/ui/field.js";
7
7
  import { Input } from "./components/ui/input.js";
8
8
  import { Textarea } from "./components/ui/textarea.js";
9
+ import { ThinkingOrb } from "./components/ui/thinking-orb.js";
9
10
  import { SearchInput } from "./components/ui/search-input.js";
10
11
  import { Select } from "./components/ui/select.js";
11
12
  import { NativeSelect } from "./components/ui/native-select.js";
12
13
  import { Checkbox } from "./components/ui/checkbox.js";
13
14
  import { RadioGroup } from "./components/ui/radio-group.js";
14
15
  import { Switch } from "./components/ui/switch.js";
16
+ import { Breadcrumb } from "./components/ui/breadcrumb.js";
15
17
  import { Tab, Tabs, TabsList, TabsPanel } from "./components/ui/tabs.js";
16
18
  import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger } from "./components/ui/dropdown-menu.js";
17
19
  import { Pagination } from "./components/ui/pagination.js";
@@ -21,6 +23,9 @@ import { Card, CardHeader } from "./components/ui/card.js";
21
23
  import { EmptyState } from "./components/ui/empty-state.js";
22
24
  import { Kbd } from "./components/ui/kbd.js";
23
25
  import { Skeleton } from "./components/ui/skeleton.js";
26
+ import { Loader } from "./components/ui/loader.js";
27
+ import { HeiGinMark } from "./components/ui/heigin-mark.js";
28
+ import { TypeMotion, typeMotionDefaultArtwork } from "./components/ui/type-motion.js";
24
29
  import { Table } from "./components/ui/table.js";
25
30
  import { VisuallyHidden } from "./components/ui/visually-hidden.js";
26
31
  import { AlertDialog } from "./components/ui/alert-dialog.js";
@@ -31,6 +36,9 @@ import { ToastProvider, useToast } from "./components/ui/toast.js";
31
36
  import { Tooltip, TooltipProvider } from "./components/ui/tooltip.js";
32
37
  import { formatINR, formatINRCompact, formatNumber } from "./lib/format.js";
33
38
  import { ActivityItem, ActivityTimeline } from "./components/crm/activity-timeline.js";
39
+ import { AgentTaskTrail } from "./components/crm/agent-task-trail.js";
40
+ import { AgentDecisionTree } from "./components/crm/agent-decision-tree.js";
41
+ import { AgentThinking } from "./components/crm/agent-thinking.js";
34
42
  import { TRUST_RUNGS, TrustRungBadge } from "./components/crm/trust-rung-badge.js";
35
43
  import { ApprovalCard } from "./components/crm/approval-card.js";
36
44
  import { ChannelMark } from "./components/crm/channel-mark.js";
@@ -44,7 +52,8 @@ import { MoneyValue } from "./components/crm/money-value.js";
44
52
  import { PageHeader } from "./components/crm/page-header.js";
45
53
  import { RecordHeader } from "./components/crm/record-header.js";
46
54
  import { SidebarNav } from "./components/crm/sidebar-nav.js";
55
+ import { WorkspaceSwitcher } from "./components/crm/workspace-switcher.js";
47
56
  import { SLAClock } from "./components/crm/sla-clock.js";
48
57
  import { STATUS_REGISTRY, StatusBadge } from "./components/crm/status-badge.js";
49
58
  import { TaskRow } from "./components/crm/task-row.js";
50
- export { ActivityItem, ActivityTimeline, AlertDialog, ApprovalCard, Avatar, Badge, Button, Card, CardHeader, ChannelMark, Checkbox, ConversationListItem, DealStage, DetailList, Dialog, DialogClose, DialogContent, DialogHeader, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, EmptyState, Field, FilterChip, FilterToolbar, IconButton, Input, Kbd, MetricCard, MetricGroup, MoneyValue, NativeSelect, PageHeader, Pagination, Popover, PopoverClose, PopoverContent, PopoverTrigger, RadioGroup, RecordHeader, SLAClock, STATUS_REGISTRY, SearchInput, Select, SidebarNav, Skeleton, Spinner, StatusBadge, Switch, TRUST_RUNGS, Tab, Table, Tabs, TabsList, TabsPanel, TaskRow, Textarea, ToastProvider, Tooltip, TooltipProvider, TrustRungBadge, VisuallyHidden, cn, formatINR, formatINRCompact, formatNumber, getInitials, useField, useFieldControlProps, useToast };
59
+ export { ActivityItem, ActivityTimeline, AgentDecisionTree, AgentTaskTrail, AgentThinking, AlertDialog, ApprovalCard, Avatar, Badge, Breadcrumb, Button, Card, CardHeader, ChannelMark, Checkbox, ConversationListItem, DealStage, DetailList, Dialog, DialogClose, DialogContent, DialogHeader, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, EmptyState, Field, FilterChip, FilterToolbar, HeiGinMark, IconButton, Input, Kbd, Loader, MetricCard, MetricGroup, MoneyValue, NativeSelect, PageHeader, Pagination, Popover, PopoverClose, PopoverContent, PopoverTrigger, RadioGroup, RecordHeader, SLAClock, STATUS_REGISTRY, SearchInput, Select, SidebarNav, Skeleton, Spinner, StatusBadge, Switch, TRUST_RUNGS, Tab, Table, Tabs, TabsList, TabsPanel, TaskRow, Textarea, ThinkingOrb, ToastProvider, Tooltip, TooltipProvider, TrustRungBadge, TypeMotion, VisuallyHidden, WorkspaceSwitcher, cn, formatINR, formatINRCompact, formatNumber, getInitials, typeMotionDefaultArtwork, useField, useFieldControlProps, useToast };