@mastra/playground-ui 62.0.0-alpha.2 → 62.0.0-alpha.3

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 (87) hide show
  1. package/dist/components/DataList.cjs.js +17 -15
  2. package/dist/components/DataList.cjs.js.map +1 -1
  3. package/dist/components/DataList.es.js +5 -4
  4. package/dist/components/DataList.es.js.map +1 -1
  5. package/dist/components/EnvironmentVariablesEditor.cjs.js +1 -1
  6. package/dist/components/EnvironmentVariablesEditor.es.js +1 -1
  7. package/dist/components/LogsDataList.cjs.js +2 -5
  8. package/dist/components/LogsDataList.cjs.js.map +1 -1
  9. package/dist/components/LogsDataList.es.js +2 -5
  10. package/dist/components/LogsDataList.es.js.map +1 -1
  11. package/dist/components/PageLayout.cjs.js +1 -1
  12. package/dist/components/PageLayout.cjs.js.map +1 -1
  13. package/dist/components/PageLayout.es.js +1 -1
  14. package/dist/components/PageLayout.es.js.map +1 -1
  15. package/dist/components/Sidebar.cjs.js +5 -4
  16. package/dist/components/Sidebar.cjs.js.map +1 -1
  17. package/dist/components/Sidebar.es.js +5 -4
  18. package/dist/components/Sidebar.es.js.map +1 -1
  19. package/dist/data-list-Dlgs-IHz.cjs +141 -0
  20. package/dist/data-list-Dlgs-IHz.cjs.map +1 -0
  21. package/dist/data-list-hmAhhTFe.js +137 -0
  22. package/dist/data-list-hmAhhTFe.js.map +1 -0
  23. package/dist/{data-list-skeleton-BE7yRNks.cjs → data-list-skeleton-B-jgjtu0.cjs} +6 -6
  24. package/dist/{data-list-skeleton-BE7yRNks.cjs.map → data-list-skeleton-B-jgjtu0.cjs.map} +1 -1
  25. package/dist/{data-list-skeleton-DnVnqTGL.js → data-list-skeleton-C4xk5f2S.js} +2 -2
  26. package/dist/{data-list-skeleton-DnVnqTGL.js.map → data-list-skeleton-C4xk5f2S.js.map} +1 -1
  27. package/dist/data-list-spacer-CYzUUUXy.js +202 -0
  28. package/dist/data-list-spacer-CYzUUUXy.js.map +1 -0
  29. package/dist/data-list-spacer-CxC9_yR2.cjs +211 -0
  30. package/dist/data-list-spacer-CxC9_yR2.cjs.map +1 -0
  31. package/dist/{data-list-oQsJVUa6.cjs → data-list-top-CEjmSG6p.cjs} +13 -331
  32. package/dist/data-list-top-CEjmSG6p.cjs.map +1 -0
  33. package/dist/{data-list-BfepBJLG.js → data-list-top-D1GzlfL3.js} +5 -324
  34. package/dist/data-list-top-D1GzlfL3.js.map +1 -0
  35. package/dist/domains/chat/tools/badges/workflow-badge.cjs.js +1 -2
  36. package/dist/domains/chat/tools/badges/workflow-badge.cjs.js.map +1 -1
  37. package/dist/domains/chat/tools/badges/workflow-badge.es.js +1 -2
  38. package/dist/domains/chat/tools/badges/workflow-badge.es.js.map +1 -1
  39. package/dist/domains/logs/components/logs-list-view.cjs.js +2 -3
  40. package/dist/domains/logs/components/logs-list-view.cjs.js.map +1 -1
  41. package/dist/domains/logs/components/logs-list-view.es.js +2 -3
  42. package/dist/domains/logs/components/logs-list-view.es.js.map +1 -1
  43. package/dist/domains/scores/components/trace-scores-tab.cjs.js +1 -2
  44. package/dist/domains/scores/components/trace-scores-tab.cjs.js.map +1 -1
  45. package/dist/domains/scores/components/trace-scores-tab.es.js +1 -2
  46. package/dist/domains/scores/components/trace-scores-tab.es.js.map +1 -1
  47. package/dist/domains/traces/components/trace-data-panel.cjs.js +0 -2
  48. package/dist/domains/traces/components/trace-data-panel.cjs.js.map +1 -1
  49. package/dist/domains/traces/components/trace-data-panel.es.js +0 -2
  50. package/dist/domains/traces/components/trace-data-panel.es.js.map +1 -1
  51. package/dist/domains/traces/components/traces-list-view.cjs.js +5 -4
  52. package/dist/domains/traces/components/traces-list-view.cjs.js.map +1 -1
  53. package/dist/domains/traces/components/traces-list-view.es.js +4 -3
  54. package/dist/domains/traces/components/traces-list-view.es.js.map +1 -1
  55. package/dist/domains/traces/components/traces-page-skeleton.cjs.js +1 -4
  56. package/dist/domains/traces/components/traces-page-skeleton.cjs.js.map +1 -1
  57. package/dist/domains/traces/components/traces-page-skeleton.es.js +1 -4
  58. package/dist/domains/traces/components/traces-page-skeleton.es.js.map +1 -1
  59. package/dist/domains/workflows/components/workflows-list/workflows-list.cjs.js +2 -2
  60. package/dist/domains/workflows/components/workflows-list/workflows-list.es.js +2 -2
  61. package/dist/domains/workflows/workflow/workflow-input-data.cjs.js +1 -0
  62. package/dist/domains/workflows/workflow/workflow-input-data.cjs.js.map +1 -1
  63. package/dist/domains/workflows/workflow/workflow-input-data.es.js +1 -0
  64. package/dist/domains/workflows/workflow/workflow-input-data.es.js.map +1 -1
  65. package/dist/ee/signals/components/entity-index-list.cjs.js +1 -3
  66. package/dist/ee/signals/components/entity-index-list.cjs.js.map +1 -1
  67. package/dist/ee/signals/components/entity-index-list.es.js +1 -3
  68. package/dist/ee/signals/components/entity-index-list.es.js.map +1 -1
  69. package/dist/ee/signals/components/trace-intelligence-entity-index.cjs.js +1 -3
  70. package/dist/ee/signals/components/trace-intelligence-entity-index.cjs.js.map +1 -1
  71. package/dist/ee/signals/components/trace-intelligence-entity-index.es.js +1 -3
  72. package/dist/ee/signals/components/trace-intelligence-entity-index.es.js.map +1 -1
  73. package/dist/ee/topics/components/topic-trace-summary-list.cjs.js +1 -1
  74. package/dist/ee/topics/components/topic-trace-summary-list.es.js +1 -1
  75. package/dist/layout/tabbed-container.cjs.js +1 -1
  76. package/dist/layout/tabbed-container.es.js +1 -1
  77. package/dist/{logs-data-list-C-F2jh04.js → logs-data-list-D_M0XkFu.js} +3 -2
  78. package/dist/{logs-data-list-C-F2jh04.js.map → logs-data-list-D_M0XkFu.js.map} +1 -1
  79. package/dist/{logs-data-list-BgFT_0qi.cjs → logs-data-list-YUmZpM-e.cjs} +22 -21
  80. package/dist/{logs-data-list-BgFT_0qi.cjs.map → logs-data-list-YUmZpM-e.cjs.map} +1 -1
  81. package/dist/{traces-data-list-DRSy_7KT.cjs → traces-data-list-BCIErUa0.cjs} +19 -17
  82. package/dist/{traces-data-list-DRSy_7KT.cjs.map → traces-data-list-BCIErUa0.cjs.map} +1 -1
  83. package/dist/{traces-data-list-C89IFLf8.js → traces-data-list-Bjry237x.js} +4 -2
  84. package/dist/{traces-data-list-C89IFLf8.js.map → traces-data-list-Bjry237x.js.map} +1 -1
  85. package/package.json +9 -9
  86. package/dist/data-list-BfepBJLG.js.map +0 -1
  87. package/dist/data-list-oQsJVUa6.cjs.map +0 -1
@@ -2,18 +2,14 @@
2
2
 
3
3
  const jsxRuntime = require('react/jsx-runtime');
4
4
  const React = require('react');
5
- const primitives_transitions = require('./primitives/transitions.cjs.js');
6
5
  const checkbox = require('./checkbox-DNlMGoJH.cjs');
7
6
  const utils_cn = require('./cn-TqD01zH-.cjs');
8
7
  const utils_dateFormat = require('./utils/date-format.cjs.js');
9
8
  const utils_id = require('./utils/id.cjs.js');
10
- const hooks_useFluidHover = require('./hooks/use-fluid-hover.cjs.js');
11
- const Txt = require('./Txt-DXjXpX9r.cjs');
12
- const lucideReact = require('lucide-react');
13
- const Button = require('./Button-BpSkkuzG.cjs');
14
9
  const scrollArea = require('./scroll-area-CVgjRzTS.cjs');
15
10
  const primitives_fluidMenu = require('./primitives/fluid-menu.cjs.js');
16
11
  const primitives_raisedSurface = require('./primitives/raised-surface.cjs.js');
12
+ const primitives_transitions = require('./primitives/transitions.cjs.js');
17
13
  const tooltip = require('./tooltip-C4txPRSa.cjs');
18
14
 
19
15
  const dataListRowOuterStyles = [
@@ -194,72 +190,6 @@ function DataListTimeCell({ timestamp }) {
194
190
  return /* @__PURE__ */ jsxRuntime.jsx(DataListCell, { className: "flex text-muted-foreground tabular-nums", children: utils_dateFormat.formatTimestampPrecise(timestamp, { withDate: false }) });
195
191
  }
196
192
 
197
- const DataListGroup = React.forwardRef(({ className, ...rest }, ref) => {
198
- return /* @__PURE__ */ jsxRuntime.jsx(
199
- "section",
200
- {
201
- ref,
202
- ...{ [hooks_useFluidHover.GROUP_ATTR]: "" },
203
- className: utils_cn.cn("col-span-full grid grid-cols-subgrid gap-y-px [&>:not(.data-list-row)]:col-span-full", className),
204
- ...rest
205
- }
206
- );
207
- });
208
- DataListGroup.displayName = "DataListGroup";
209
-
210
- function DataListNextPageLoading({
211
- isLoading,
212
- setEndOfListElement,
213
- hasMore,
214
- loadingText = "Loading more data..."
215
- }) {
216
- if (!setEndOfListElement) {
217
- return null;
218
- }
219
- return /* @__PURE__ */ jsxRuntime.jsx(
220
- "div",
221
- {
222
- ref: setEndOfListElement,
223
- className: utils_cn.cn("col-span-full -mt-px flex justify-center text-body text-muted-foreground opacity-50", {
224
- "py-4": isLoading
225
- }),
226
- children: isLoading && loadingText
227
- }
228
- );
229
- }
230
-
231
- function DataListNoMatch({
232
- message = "Nothing matches your search",
233
- className,
234
- ...props
235
- }) {
236
- return /* @__PURE__ */ jsxRuntime.jsx(
237
- "div",
238
- {
239
- className: utils_cn.cn(
240
- "col-span-full flex flex-col items-center justify-center gap-2 rounded-lg bg-background py-8 text-muted-foreground",
241
- className
242
- ),
243
- ...props,
244
- children: /* @__PURE__ */ jsxRuntime.jsx(Txt.Txt, { children: message })
245
- }
246
- );
247
- }
248
-
249
- function DataListPagination({ currentPage, hasMore, onNextPage, onPrevPage }) {
250
- const showNavigation = typeof currentPage === "number" && currentPage > 0 || hasMore;
251
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-full flex items-center justify-center gap-4 py-3 text-body text-muted-foreground", children: [
252
- /* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
253
- "Page ",
254
- /* @__PURE__ */ jsxRuntime.jsx("b", { children: currentPage ? currentPage + 1 : "1" })
255
- ] }),
256
- showNavigation && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-4", children: [
257
- typeof currentPage === "number" && currentPage > 0 && /* @__PURE__ */ jsxRuntime.jsx(Button.Button, { type: "button", size: "sm", onClick: onPrevPage, icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeftIcon, {}), children: "Previous" }),
258
- hasMore && /* @__PURE__ */ jsxRuntime.jsx(Button.Button, { type: "button", size: "sm", onClick: onNextPage, icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRightIcon, {}), children: "Next" })
259
- ] })
260
- ] });
261
- }
262
-
263
193
  function getDataListMask(mask) {
264
194
  if (mask === void 0) return { top: false };
265
195
  if (mask === true || mask === false) return mask;
@@ -345,117 +275,6 @@ function DataListRoot({
345
275
  );
346
276
  }
347
277
 
348
- const DataListRowWrapperContext = React.createContext(false);
349
- function useDataListRowWrapperContext() {
350
- return React.useContext(DataListRowWrapperContext);
351
- }
352
-
353
- const DataListRowButton = React.forwardRef(
354
- ({ children, className, type = "button", colStart, colEnd, featured, variant, style, ...rest }, ref) => {
355
- const isWrapped = useDataListRowWrapperContext();
356
- const fluidRef = primitives_fluidMenu.useFluidMenuItemRef(ref);
357
- const hasColumnOverride = colStart !== void 0 || colEnd !== void 0;
358
- const resolvedStyle = hasColumnOverride ? { ...style, gridColumn: `${colStart ?? 1} / ${colEnd ?? -1}` } : style;
359
- return /* @__PURE__ */ jsxRuntime.jsx(
360
- "button",
361
- {
362
- ref: isWrapped ? ref : fluidRef,
363
- type,
364
- className: utils_cn.cn(...isWrapped ? dataListRowInteractiveStyles : dataListRowStyles, "text-left", className),
365
- style: resolvedStyle,
366
- "data-featured": featured || void 0,
367
- "data-variant": variant ?? "default",
368
- ...rest,
369
- children
370
- }
371
- );
372
- }
373
- );
374
- DataListRowButton.displayName = "DataListRowButton";
375
-
376
- const DataListRowLink = React.forwardRef(
377
- ({ children, to, className, style, LinkComponent: Link = "a", colStart, colEnd, featured, variant, ...rest }, ref) => {
378
- const isWrapped = useDataListRowWrapperContext();
379
- const fluidRef = primitives_fluidMenu.useFluidMenuItemRef(ref);
380
- const hasColumnOverride = colStart !== void 0 || colEnd !== void 0;
381
- const resolvedStyle = hasColumnOverride ? { ...style, gridColumn: `${colStart ?? 1} / ${colEnd ?? -1}` } : style;
382
- return /* @__PURE__ */ jsxRuntime.jsx(
383
- Link,
384
- {
385
- ref: isWrapped ? ref : fluidRef,
386
- href: to,
387
- className: utils_cn.cn(...isWrapped ? dataListRowInteractiveStyles : dataListRowStyles, className),
388
- style: resolvedStyle,
389
- "data-featured": featured || void 0,
390
- "data-variant": variant ?? "default",
391
- ...rest,
392
- children
393
- }
394
- );
395
- }
396
- );
397
- DataListRowLink.displayName = "DataListRowLink";
398
-
399
- const DataListRowStatic = React.forwardRef(
400
- ({ children, className, colStart, colEnd, featured, variant, style, ...rest }, ref) => {
401
- const isWrapped = useDataListRowWrapperContext();
402
- const hasColumnOverride = colStart !== void 0 || colEnd !== void 0;
403
- const resolvedStyle = hasColumnOverride ? { ...style, gridColumn: `${colStart ?? 1} / ${colEnd ?? -1}` } : style;
404
- return /* @__PURE__ */ jsxRuntime.jsx(
405
- "div",
406
- {
407
- ref,
408
- className: utils_cn.cn(isWrapped ? "grid grid-cols-subgrid gap-4 px-3" : dataListRowStaticStyles, className),
409
- style: resolvedStyle,
410
- "data-featured": featured || void 0,
411
- "data-variant": variant ?? "default",
412
- ...rest,
413
- children
414
- }
415
- );
416
- }
417
- );
418
- DataListRowStatic.displayName = "DataListRowStatic";
419
-
420
- const DataListRowWrapper = React.forwardRef(
421
- ({ children, className, onSelectRow, onClick, onKeyDown, tabIndex, ...rest }, ref) => {
422
- const isSelectable = onSelectRow !== void 0;
423
- const rowRef = primitives_fluidMenu.useFluidMenuItemRef(ref);
424
- const handleClick = (event) => {
425
- onClick?.(event);
426
- if (!isSelectable || event.defaultPrevented) return;
427
- onSelectRow();
428
- };
429
- const handleKeyDown = (event) => {
430
- onKeyDown?.(event);
431
- if (!isSelectable || event.defaultPrevented) return;
432
- if (event.key === "Enter" && event.target === event.currentTarget) {
433
- event.preventDefault();
434
- onSelectRow();
435
- }
436
- };
437
- return /* @__PURE__ */ jsxRuntime.jsx(DataListRowWrapperContext.Provider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsx(
438
- "div",
439
- {
440
- ref: rowRef,
441
- tabIndex: tabIndex ?? (isSelectable ? 0 : void 0),
442
- className: utils_cn.cn(
443
- "grid grid-cols-subgrid gap-0",
444
- ...dataListRowOuterStyles,
445
- ...dataListRowStateStyles,
446
- isSelectable && utils_cn.cn("cursor-pointer", primitives_transitions.focusRingInset),
447
- className
448
- ),
449
- onClick: handleClick,
450
- onKeyDown: handleKeyDown,
451
- ...rest,
452
- children
453
- }
454
- ) });
455
- }
456
- );
457
- DataListRowWrapper.displayName = "DataListRowWrapper";
458
-
459
278
  const DataListTopCell = React.forwardRef(
460
279
  ({ children, className, as, sticky, ...rest }, ref) => {
461
280
  const Component = as || "span";
@@ -520,90 +339,6 @@ function DataListTopSelectCell({ checked, onToggle, ...rest }) {
520
339
  );
521
340
  }
522
341
 
523
- const sortIcons = {
524
- asc: lucideReact.ArrowUp,
525
- desc: lucideReact.ArrowDown,
526
- none: lucideReact.ArrowUpDown
527
- };
528
- const sortLabels = {
529
- asc: "ascending",
530
- desc: "descending"
531
- };
532
- const sortAnimations = {
533
- asc: "animate-sort-arrow-up",
534
- desc: "animate-sort-arrow-down"
535
- };
536
- const sortTooltips = {
537
- asc: "Asc",
538
- desc: "Desc",
539
- none: "Sort"
540
- };
541
- function DataListSortableTopCell({
542
- children,
543
- sortKey,
544
- sort,
545
- onSortChange,
546
- align = "start",
547
- className,
548
- ...props
549
- }) {
550
- const next = sort === "asc" ? "desc" : "asc";
551
- const SortIcon = sortIcons[sort ?? "none"];
552
- const label = typeof children === "string" ? children : sortKey;
553
- const current = sort ? `sorted ${sortLabels[sort]}` : "not sorted";
554
- return /* @__PURE__ */ jsxRuntime.jsxs(
555
- DataListTopCell,
556
- {
557
- "data-sort": sort ?? "none",
558
- className: utils_cn.cn("gap-1 overflow-visible", align === "end" && "flex-row-reverse", className),
559
- ...props,
560
- children: [
561
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 truncate", children }),
562
- /* @__PURE__ */ jsxRuntime.jsx(
563
- Button.Button,
564
- {
565
- variant: "ghost",
566
- size: "icon-sm",
567
- "aria-label": `${label}, ${current}, sort ${sortLabels[next]}`,
568
- tooltip: sortTooltips[sort ?? "none"],
569
- onClick: () => onSortChange(next, sortKey),
570
- className: utils_cn.cn("shrink-0", sort ? "text-foreground" : "text-muted-foreground"),
571
- children: /* @__PURE__ */ jsxRuntime.jsx(SortIcon, { className: sort && sortAnimations[sort] }, sort ?? "none")
572
- }
573
- )
574
- ]
575
- }
576
- );
577
- }
578
-
579
- function DataListSpacer({ height }) {
580
- if (height <= 0) return null;
581
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-full", style: { height } });
582
- }
583
-
584
- const DataListSubheader = React.forwardRef(
585
- ({ children, className, ...rest }, ref) => {
586
- return /* @__PURE__ */ jsxRuntime.jsx(
587
- "div",
588
- {
589
- ref,
590
- className: utils_cn.cn(
591
- "data-list-subheader relative isolate col-span-full px-3 py-2 text-subheading text-muted-foreground",
592
- "bg-(--data-list-background)",
593
- className
594
- ),
595
- ...rest,
596
- children
597
- }
598
- );
599
- }
600
- );
601
- DataListSubheader.displayName = "DataListSubheader";
602
-
603
- function DataListSubHeading({ children, className }) {
604
- return /* @__PURE__ */ jsxRuntime.jsx(Txt.Txt, { as: "span", variant: "caption", tone: "faint", className, children });
605
- }
606
-
607
342
  function DataListTop({ children, className, hasLeadingCell, ...props }) {
608
343
  return /* @__PURE__ */ jsxRuntime.jsx(
609
344
  "div",
@@ -619,81 +354,28 @@ function DataListTop({ children, className, hasLeadingCell, ...props }) {
619
354
  );
620
355
  }
621
356
 
622
- const DataListTopCells = React.forwardRef(
623
- ({ children, className, flushLeft, colStart, style, ...rest }, ref) => {
624
- return /* @__PURE__ */ jsxRuntime.jsx(
625
- "div",
626
- {
627
- ref,
628
- className: utils_cn.cn(
629
- "pointer-events-none grid grid-cols-subgrid gap-4 px-3 [&>*]:pointer-events-auto",
630
- !colStart && "col-span-full",
631
- flushLeft && "pl-0!",
632
- className
633
- ),
634
- style: colStart ? { ...style, gridColumn: `${colStart} / -1` } : style,
635
- ...rest,
636
- children
637
- }
638
- );
639
- }
640
- );
641
- DataListTopCells.displayName = "DataListTopCells";
642
-
643
- const DataList = Object.assign(DataListRoot, {
644
- Top: DataListTop,
645
- TopCells: DataListTopCells,
646
- TopCell: DataListTopCell,
647
- SortableTopCell: DataListSortableTopCell,
648
- TopCellWithTooltip: DataListTopCellWithTooltip,
649
- TopCellSmart: DataListTopCellSmart,
650
- RowWrapper: DataListRowWrapper,
651
- RowButton: DataListRowButton,
652
- RowLink: DataListRowLink,
653
- RowStatic: DataListRowStatic,
654
- Cell: DataListCell,
655
- ActionsCell: DataListActionsCell,
656
- TextCell: DataListTextCell,
657
- NameCell: DataListNameCell,
658
- DescriptionCell: DataListDescriptionCell,
659
- IdCell: DataListIdCell,
660
- RowHeaderCell: DataListRowHeaderCell,
661
- NumberCell: DataListNumberCell,
662
- DateCell: DataListDateCell,
663
- CreatedCell: DataListCreatedCell,
664
- TimeCell: DataListTimeCell,
665
- SelectCell: DataListSelectCell,
666
- TopSelectCell: DataListTopSelectCell,
667
- NoMatch: DataListNoMatch,
668
- Group: DataListGroup,
669
- Subheader: DataListSubheader,
670
- SubHeading: DataListSubHeading,
671
- Spacer: DataListSpacer,
672
- NextPageLoading: DataListNextPageLoading,
673
- Pagination: DataListPagination
674
- });
675
-
676
- exports.DataList = DataList;
357
+ exports.DataListActionsCell = DataListActionsCell;
677
358
  exports.DataListCell = DataListCell;
678
359
  exports.DataListCreatedCell = DataListCreatedCell;
679
360
  exports.DataListDateCell = DataListDateCell;
361
+ exports.DataListDescriptionCell = DataListDescriptionCell;
680
362
  exports.DataListIdCell = DataListIdCell;
681
- exports.DataListNextPageLoading = DataListNextPageLoading;
682
- exports.DataListNoMatch = DataListNoMatch;
363
+ exports.DataListNameCell = DataListNameCell;
364
+ exports.DataListNumberCell = DataListNumberCell;
683
365
  exports.DataListRoot = DataListRoot;
684
- exports.DataListRowButton = DataListRowButton;
685
- exports.DataListRowLink = DataListRowLink;
686
- exports.DataListRowWrapper = DataListRowWrapper;
687
- exports.DataListSortableTopCell = DataListSortableTopCell;
688
- exports.DataListSpacer = DataListSpacer;
689
- exports.DataListSubHeading = DataListSubHeading;
690
- exports.DataListSubheader = DataListSubheader;
366
+ exports.DataListRowHeaderCell = DataListRowHeaderCell;
367
+ exports.DataListSelectCell = DataListSelectCell;
691
368
  exports.DataListTextCell = DataListTextCell;
692
369
  exports.DataListTimeCell = DataListTimeCell;
693
370
  exports.DataListTop = DataListTop;
694
371
  exports.DataListTopCell = DataListTopCell;
695
372
  exports.DataListTopCellSmart = DataListTopCellSmart;
696
373
  exports.DataListTopCellWithTooltip = DataListTopCellWithTooltip;
374
+ exports.DataListTopSelectCell = DataListTopSelectCell;
375
+ exports.dataListRowInteractiveStyles = dataListRowInteractiveStyles;
697
376
  exports.dataListRowOuterStyles = dataListRowOuterStyles;
377
+ exports.dataListRowStateStyles = dataListRowStateStyles;
378
+ exports.dataListRowStaticStyles = dataListRowStaticStyles;
379
+ exports.dataListRowStyles = dataListRowStyles;
698
380
  exports.splitColumns = splitColumns;
699
- //# sourceMappingURL=data-list-oQsJVUa6.cjs.map
381
+ //# sourceMappingURL=data-list-top-CEjmSG6p.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-list-top-CEjmSG6p.cjs","sources":["../src/ds/components/DataList/shared.ts","../src/ds/components/DataList/data-list-cells.tsx","../src/ds/components/DataList/data-list-root.tsx","../src/ds/components/DataList/data-list-top-cell.tsx","../src/ds/components/DataList/data-list-top.tsx"],"sourcesContent":["import { focusRingInset } from '@/ds/primitives/transitions';\n\n/**\n * Row-level styling for the element that participates in the row sibling\n * chain — applied to `DataList.RowButton` / `DataList.RowLink` when used\n * standalone, and to `DataList.RowWrapper` when used as a shell around them.\n *\n * Carries the `.data-list-row` marker class the root styles target.\n */\nexport const dataListRowOuterStyles = [\n 'group/data-list-row data-list-row col-span-full relative min-h-9',\n // The row surface is a `before` pseudo at `-z-2` so the root's fluid hover\n // highlight (`-z-1`) can glide *between* the surface and the row content,\n // exactly like menu items. The row element itself stays transparent.\n \"before:absolute before:inset-0 before:-z-2 before:rounded-[inherit] before:bg-background before:content-['']\",\n] as const;\n\n/**\n * Interactive state fills for the outer row element. Applied to standalone\n * `RowButton` / `RowLink` and to `RowWrapper`. The `has-*` forms let a wrapper\n * mirror the tone of the interactive row nested inside it.\n *\n * Hover is not painted per row: the root renders one fluid `fill-subtle`\n * highlight under the row content. Rows are sunken wells (`--background`) inside\n * the card panel, whose material also shows through the 1px gaps between them,\n * so a resting tone steps to `--surface-panel` — the opaque twin of a `--fill`\n * rung over the well — rather than to `--card`, which would make a selected row\n * the exact colour of the separators around it. Pressed rises a full `--fill`\n * rung, the same rung a resting control carries, and error sits on the row\n * element itself so it reads on top of the highlight.\n */\nexport const dataListRowStateStyles = [\n 'active:bg-fill',\n 'focus-visible:bg-surface-panel has-focus-visible:bg-surface-panel',\n 'data-featured:before:bg-surface-panel has-data-featured:before:bg-surface-panel has-data-selected:before:bg-surface-panel',\n 'data-[variant=error]:bg-destructive-subtle has-data-[variant=error]:bg-destructive-subtle data-[variant=error]:active:bg-destructive-subtle-active has-data-[variant=error]:active:bg-destructive-subtle-active',\n] as const;\n\n/**\n * Layout and focus for the interactive element. The background lives on the\n * outer row element so it sits inside the root surface.\n */\nexport const dataListRowInteractiveStyles = [\n 'grid grid-cols-subgrid gap-4 px-3 cursor-pointer',\n focusRingInset,\n] as const;\n\nexport const dataListRowStyles = [\n ...dataListRowInteractiveStyles,\n ...dataListRowOuterStyles,\n ...dataListRowStateStyles,\n] as const;\n\nexport const dataListRowStaticStyles = ['grid grid-cols-subgrid gap-4 px-3', ...dataListRowOuterStyles] as const;\n\n/**\n * Row actions that stay out of the way until the row is hovered or focused.\n * Opacity, not display, so the column keeps its width and nothing shifts. A\n * coarse pointer never hovers, so there they stay visible — hidden controls\n * that still take taps would be worse than no reveal at all.\n */\nexport const dataListRowActionRevealStyles =\n 'opacity-0 pointer-coarse:opacity-100 group-focus-within/data-list-row:opacity-100 group-hover/data-list-row:opacity-100';\n\nexport type DataListSticky = 'start';\n\nexport const dataListStickyStartStyles = [\n 'data-list-sticky-start sticky left-0 z-10 isolate self-stretch overflow-visible',\n] as const;\n\n/** Tone for a single row. Exposed as `data-variant`; `error` tints the row. */\nexport type DataListRowVariant = 'default' | 'error';\n\n/**\n * Layout/state modifiers shared by interactive row primitives\n * (`DataList.RowButton`, `DataList.RowLink`).\n */\nexport type DataListRowSharedProps = {\n /** Row tone — exposed on the element as `data-variant`. */\n variant?: DataListRowVariant;\n /**\n * Place the row starting at this column line. Defaults to column 1. Use\n * when the row sits beside a leading cell that owns column 1.\n */\n colStart?: number;\n /**\n * Place the row ending at this column line (use negative values to count\n * from the end, e.g. `-2`). Defaults to `-1` (the last line). Use when the\n * row sits beside a trailing cell that owns the last column.\n */\n colEnd?: number;\n /**\n * Mark the row as featured (e.g. the row whose detail is open in a side\n * panel). Exposed on the element as `data-featured` and tints the row.\n */\n featured?: boolean;\n};\n\n/** Split a grid-template-columns string on top-level whitespace only, so `minmax(0, 10rem)` stays one track. */\nexport function splitColumns(columns: string): string[] {\n const parts: string[] = [];\n let depth = 0;\n let current = '';\n for (const char of columns) {\n if (char === '(') depth++;\n if (char === ')') depth--;\n if (/\\s/.test(char) && depth === 0) {\n if (current) parts.push(current);\n current = '';\n } else {\n current += char;\n }\n }\n if (current) parts.push(current);\n return parts;\n}\n","import { Children, cloneElement, isValidElement } from 'react';\nimport type { ComponentPropsWithoutRef, ElementType, ReactNode } from 'react';\nimport { dataListRowActionRevealStyles, dataListStickyStartStyles } from './shared';\nimport type { DataListSticky } from './shared';\nimport { Checkbox } from '@/ds/components/Checkbox';\nimport { cn } from '@/lib/utils';\nimport { formatDate, formatTimestampPrecise } from '@/utils/date-format';\nimport type { DatePreset } from '@/utils/date-format';\nimport { getShortId } from '@/utils/id';\n\nexport type DataListCellProps = {\n children?: ReactNode;\n className?: string;\n /**\n * HTML element rendered for the cell. Defaults to `span`. Use `'label'` when\n * the cell wraps a labelable control (e.g. a Checkbox), so the whole cell\n * area acts as the click/hover target.\n */\n as?: ElementType;\n /**\n * Pins the cell to the horizontal start edge of the list while the list\n * scrolls sideways.\n */\n sticky?: DataListSticky;\n} & Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'className'>;\n\nexport function DataListCell({ children, className, as, sticky, ...rest }: DataListCellProps) {\n const Component = as || 'span';\n return (\n <Component\n className={cn(\n 'relative grid max-w-full min-w-0 items-center overflow-hidden text-body-sm whitespace-nowrap text-muted-foreground empty:before:text-placeholder empty:before:content-[\"—\"]',\n sticky === 'start' && dataListStickyStartStyles,\n className,\n )}\n {...rest}\n >\n {children}\n </Component>\n );\n}\n\n/**\n * Trailing cell for row actions, revealed on row hover or keyboard focus.\n * Sits beside a `DataList.RowButton` inside a `DataList.RowWrapper`.\n */\nexport function DataListActionsCell({ children, className, ...rest }: DataListCellProps) {\n return (\n <DataListCell className={className} {...rest}>\n <span\n className={cn(\n 'flex w-full items-center justify-end gap-1 pr-3 transition-opacity duration-200',\n dataListRowActionRevealStyles,\n )}\n >\n {children}\n </span>\n </DataListCell>\n );\n}\n\nconst dataListTruncateContentStyles =\n 'block min-w-0 max-w-full truncate empty:before:content-[\"—\"] empty:before:text-placeholder [&>*]:min-w-0 [&>*]:max-w-full [&>*]:overflow-hidden [&>*]:text-ellipsis [&>*]:whitespace-nowrap';\nconst dataListInlineTextTruncateStyles = 'min-w-0 flex-1 truncate';\n\nfunction DataListInlineText({ children }: { children: string | number }) {\n return <span className={dataListInlineTextTruncateStyles}>{children}</span>;\n}\n\nfunction DataListTruncatedTextNodes({ children }: { children: ReactNode }) {\n return Children.map(children, child => {\n if (typeof child === 'string' || typeof child === 'number') {\n return <DataListInlineText>{child}</DataListInlineText>;\n }\n\n return child;\n });\n}\n\nfunction DataListTruncatedCellContent({ children }: { children: ReactNode }) {\n return Children.map(children, child => {\n if (!isValidElement<{ children?: ReactNode; className?: string }>(child) || typeof child.type !== 'string') {\n return child;\n }\n\n return cloneElement(child, {\n className: cn('max-w-full min-w-0 overflow-hidden', child.props.className),\n children: <DataListTruncatedTextNodes>{child.props.children}</DataListTruncatedTextNodes>,\n });\n });\n}\n\nexport type DataListTextCellProps = DataListCellProps & {\n /**\n * Typeface for the cell text. `mono` is for genuine code — paths, env values,\n * serialized JSON — and drops a size step to match the sans columns optically.\n */\n font?: 'sans' | 'mono';\n};\n\nexport function DataListTextCell({ children, className, font = 'sans', ...rest }: DataListTextCellProps) {\n return (\n <DataListCell className={cn(font === 'mono' && 'font-mono text-body-sm', className)} {...rest}>\n <span className={dataListTruncateContentStyles}>\n <DataListTruncatedCellContent>{children}</DataListTruncatedCellContent>\n </span>\n </DataListCell>\n );\n}\n\nexport function DataListNameCell({ children, className }: DataListCellProps) {\n return (\n <DataListCell className={cn('text-left text-label text-foreground', className)}>\n <span className={dataListTruncateContentStyles}>\n <DataListTruncatedCellContent>{children}</DataListTruncatedCellContent>\n </span>\n </DataListCell>\n );\n}\n\nexport function DataListDescriptionCell({ children, className }: DataListCellProps) {\n return (\n <DataListCell className={cn('text-muted-foreground', className)}>\n <span className={dataListTruncateContentStyles}>\n <DataListTruncatedCellContent>{children}</DataListTruncatedCellContent>\n </span>\n </DataListCell>\n );\n}\n\nexport type DataListRowHeaderCellProps = Omit<DataListCellProps, 'sticky'>;\n\nexport function DataListRowHeaderCell({ children, className, ...rest }: DataListRowHeaderCellProps) {\n return (\n <DataListCell\n sticky=\"start\"\n className={cn(\n 'data-list-row-header -mx-3 w-auto max-w-none px-3 text-left text-label text-foreground',\n className,\n )}\n {...rest}\n >\n <span className={cn(dataListTruncateContentStyles, 'relative z-10 w-full')}>\n <DataListTruncatedCellContent>{children}</DataListTruncatedCellContent>\n </span>\n </DataListCell>\n );\n}\n\nexport type DataListNumberCellProps = DataListCellProps & {\n /**\n * Emphasizes the value with the ink tone and the label role — use for the\n * primary metric in a row (e.g. a total or headline number).\n */\n highlight?: boolean;\n font?: 'sans' | 'mono';\n};\n\n/**\n * Right-aligned numeric cell with tabular figures, for metric and summary\n * tables. Pass `highlight` for the emphasized column.\n */\nexport function DataListNumberCell({\n children,\n className,\n highlight,\n font = 'sans',\n ...rest\n}: DataListNumberCellProps) {\n return (\n <DataListCell\n className={cn(\n 'justify-items-end text-right text-muted-foreground tabular-nums',\n highlight && 'text-label text-foreground',\n font === 'mono' && 'font-mono',\n className,\n )}\n {...rest}\n >\n {children}\n </DataListCell>\n );\n}\n\nexport interface DataListIdCellProps {\n id: string;\n}\n\nexport function DataListIdCell({ id }: DataListIdCellProps) {\n return <DataListCell className=\"tracking-wide text-muted-foreground\">{getShortId(id)}</DataListCell>;\n}\n\nexport interface DataListSelectCellProps {\n checked: boolean;\n /**\n * Called when the checkbox is clicked. Receives the click event's `shiftKey`\n * so callers can implement range-select. The cell stops the click from\n * reaching the host row, so the row's `onClick` doesn't fire.\n */\n onToggle: (shiftKey: boolean) => void;\n /** Disable the checkbox, e.g. while a selection mutation is in flight. */\n disabled?: boolean;\n 'aria-label'?: string;\n}\n\nexport function DataListSelectCell({ checked, onToggle, disabled, ...rest }: DataListSelectCellProps) {\n return (\n <DataListCell\n as=\"label\"\n className={cn(\n 'size-8 justify-items-center self-center overflow-visible px-0',\n disabled ? 'cursor-not-allowed' : 'cursor-pointer',\n )}\n onClick={e => e.stopPropagation()}\n data-selected={checked || undefined}\n >\n <Checkbox\n checked={checked}\n disabled={disabled}\n onCheckedChange={() => {}} // no-op: selection handled by onClick to capture shiftKey\n // The click still has to bubble to the cell above, which is what keeps it\n // off the host row. Base UI withholds this handler while disabled.\n onClick={e => onToggle(e.shiftKey)}\n aria-label={rest['aria-label']}\n />\n </DataListCell>\n );\n}\n\nexport interface DataListDateCellProps {\n timestamp: Date | string;\n}\n\n/** Compact date cell — `Today`, `May 19` or `May 19, 2025`. */\nexport function DataListDateCell({ timestamp }: DataListDateCellProps) {\n return <DataListCell className=\"text-muted-foreground\">{formatDate(timestamp, 'date')}</DataListCell>;\n}\n\nexport interface DataListCreatedCellProps {\n timestamp: Date | string;\n /** Visible format. The hover title always shows the full date and time. */\n preset?: Extract<DatePreset, 'date-time-seconds' | 'day-time-seconds'>;\n}\n\n/** Locale-aware date and time cell with second precision. */\nexport function DataListCreatedCell({ timestamp, preset = 'date-time-seconds' }: DataListCreatedCellProps) {\n return (\n <DataListCell className=\"text-muted-foreground tabular-nums\" title={formatDate(timestamp, 'date-time-seconds')}>\n {formatDate(timestamp, preset)}\n </DataListCell>\n );\n}\n\nexport interface DataListTimeCellProps {\n timestamp: Date | string;\n}\n\nexport function DataListTimeCell({ timestamp }: DataListTimeCellProps) {\n return (\n <DataListCell className=\"flex text-muted-foreground tabular-nums\">\n {formatTimestampPrecise(timestamp, { withDate: false })}\n </DataListCell>\n );\n}\n","import type { CSSProperties, ReactNode, RefObject } from 'react';\nimport { ScrollArea, ScrollAreaViewport } from '@/ds/components/ScrollArea/scroll-area';\nimport type { ScrollAreaMask, ScrollAreaProps } from '@/ds/components/ScrollArea/scroll-area';\nimport { FluidMenuItems, useFluidMenu } from '@/ds/primitives/fluid-menu';\nimport { raisedSurfaceStyle } from '@/ds/primitives/raised-surface';\nimport { cn } from '@/lib/utils';\n\n/**\n * Horizontal sizing of the list grid.\n *\n * - `content`: the grid is as wide as its widest content (`w-max`) and the\n * ScrollArea scrolls horizontally when it exceeds the container.\n * - `container`: the grid fills the container width and never exceeds it;\n * flexible tracks (`minmax(0, 1fr)`) shrink so truncating cells ellipsize\n * instead of widening the table.\n */\nexport type DataListFit = 'content' | 'container';\n\n/**\n * Surface treatment of the list.\n *\n * - `default`: rows sit as wells inside a raised card panel — the same material\n * and elevation as a card, a popover or a settings container.\n * - `light`: no panel behind the rows; rows sit directly on the page.\n */\nexport type DataListVariant = 'default' | 'light';\n\nexport type DataListRootProps = Omit<ScrollAreaProps, 'children' | 'orientation' | 'mask'> & {\n children: ReactNode;\n columns: string;\n /** Grid width behavior; defaults to `content` (existing horizontal-scroll sizing). */\n fit?: DataListFit;\n /** Surface treatment; defaults to `default` (rows on a raised card panel). */\n variant?: DataListVariant;\n /**\n * Edge fades from the underlying ScrollArea. DataList keeps the top fade off\n * by default so it does not fade the sticky top header.\n */\n mask?: ScrollAreaMask;\n /**\n * Ref to the scroll container — pass this to TanStack Virtual's\n * `getScrollElement` when virtualizing. Without it, the ScrollArea viewport\n * scrolls normally.\n */\n scrollRef?: RefObject<HTMLDivElement | null>;\n};\n\ntype DataListRootStyle = CSSProperties & {\n '--data-list-background'?: string;\n};\n\nfunction getDataListMask(mask: ScrollAreaMask | undefined): ScrollAreaMask {\n if (mask === undefined) return { top: false };\n if (mask === true || mask === false) return mask;\n\n return { top: false, ...mask };\n}\n\n/**\n * The root owns the unified table treatment so standalone and wrapped rows look\n * identical without requiring a per-row index. The ScrollArea provides the\n * fixed frame; this grid paints the sticky header and separators. The root is\n * the only element that defines a color: sticky parts read the background\n * through `--data-list-background` so they stay opaque while scrolling, and\n * rows/header draw no separators, borders or rings of their own.\n */\nconst dataListGridStyles = [\n 'gap-y-px',\n // Rows are siblings of the header, so first/last are found via sibling combinators.\n '[&_.data-list-row:not(.data-list-row~.data-list-row)]:rounded-t-lg',\n '[&_.data-list-row:not(:has(~.data-list-row))]:rounded-b-lg',\n '[&_.data-list-row:not(.data-list-row~.data-list-row)>.data-list-sticky-start]:rounded-tl-lg',\n '[&_.data-list-row:not(:has(~.data-list-row))>.data-list-sticky-start]:rounded-bl-lg',\n // Subheaders split the rows into sections; each section gets its own rounded ends.\n '[&_.data-list-subheader+.data-list-row]:rounded-t-lg',\n '[&_.data-list-row:has(+.data-list-subheader)]:rounded-b-lg',\n '[&_.data-list-subheader+.data-list-row>.data-list-sticky-start]:rounded-tl-lg',\n '[&_.data-list-row:has(+.data-list-subheader)>.data-list-sticky-start]:rounded-bl-lg',\n // The fluid highlight follows the same ends: rounded only when the active\n // row is the first/last of its section, square everywhere else. `:has()`\n // cannot nest, so \"last\" is written as \"no row follows the active one\".\n '[&:has(.data-list-row[data-fluid-hover-active]:not(.data-list-row~.data-list-row))_[data-slot=fluid-hover-highlight]]:rounded-t-lg',\n '[&:has(.data-list-row[data-fluid-hover-active]):not(:has(.data-list-row[data-fluid-hover-active]~.data-list-row))_[data-slot=fluid-hover-highlight]]:rounded-b-lg',\n '[&:has(.data-list-subheader+.data-list-row[data-fluid-hover-active])_[data-slot=fluid-hover-highlight]]:rounded-t-lg',\n '[&:has(.data-list-row[data-fluid-hover-active]+.data-list-subheader)_[data-slot=fluid-hover-highlight]]:rounded-b-lg',\n '[&_.data-list-top]:bg-(--data-list-background)',\n '[&_.data-list-row>.data-list-sticky-start]:bg-background',\n // A sticky cell must stay opaque over horizontally scrolled cells, so it\n // cannot show the fluid highlight through; it takes the opaque twin of a fill\n // rung over the row well instead, the same level a selected row rests on.\n '[&_.data-list-row[data-fluid-hover-active]>.data-list-sticky-start]:bg-surface-panel',\n '[&_.data-list-row>.data-list-sticky-start]:after:right-0',\n '[&_.data-list-top>.data-list-sticky-start]:after:right-0',\n] as const;\n\nconst dataListVariantClasses: Record<DataListVariant, string> = {\n default: raisedSurfaceStyle,\n light: '',\n};\n\n// The sticky header reads this so it stays opaque while scrolling: the panel\n// material by default, the page surface when there is no panel.\nconst dataListVariantBackground: Record<DataListVariant, string> = {\n default: 'var(--card)',\n light: 'var(--background)',\n};\n\nconst dataListFitClasses: Record<DataListFit, string> = {\n content: 'w-max max-w-none min-w-full',\n container: 'w-full max-w-full',\n};\n\nexport function DataListRoot({\n children,\n columns,\n className,\n fit = 'content',\n variant = 'default',\n mask,\n scrollRef,\n ...props\n}: DataListRootProps) {\n const gridStyle: DataListRootStyle = {\n '--data-list-background': dataListVariantBackground[variant],\n gridTemplateColumns: columns,\n };\n\n // One hover surface travels between rows (same primitive as menus/selects).\n // Subheaders, pagination and whitespace stay inert, so no gap-click routing.\n const menu = useFluidMenu<HTMLDivElement>({ gapClick: false });\n\n const grid = (\n <div\n // Lists scroll inside the ScrollArea viewport (below); the grid just lays out.\n // It is also the offsetParent rows are measured against and the highlight is positioned in.\n className={cn('grid content-start', ...dataListGridStyles, dataListFitClasses[fit], menu.containerClassName)}\n style={gridStyle}\n {...menu.getContainerProps({})}\n >\n {/* The highlight is the old row hover color. It sits between each row's\n `before` surface (-z-2) and the row content (see `dataListRowOuterStyles`). */}\n <FluidMenuItems menu={menu} className=\"rounded-none bg-fill-subtle\">\n {children}\n </FluidMenuItems>\n </div>\n );\n\n // DataList uses the DS ScrollArea: an overlay scrollbar, so the sticky header\n // spans the full width. Masks default to every overflowing edge except the\n // top — a top fade would fade the opaque sticky header.\n return (\n <ScrollArea\n {...props}\n orientation=\"both\"\n mask={getDataListMask(mask)}\n // Outer radius = row radius (8px) + 4px inset so the corners stay concentric.\n // Size to content but never exceed the parent. Flex (unlike grid `1fr`) lays\n // items out against the max-height-clamped container, so short lists stay\n // compact and long ones shrink the viewport and scroll. `self-start` stops\n // a grid/flex parent from stretching the root to the full row height.\n className={cn(\n 'flex max-h-full w-full flex-col self-start rounded-xl p-1',\n dataListVariantClasses[variant],\n className,\n )}\n >\n <ScrollAreaViewport ref={scrollRef} className=\"min-h-0 flex-1 basis-auto\">\n {grid}\n </ScrollAreaViewport>\n </ScrollArea>\n );\n}\n","import type { ComponentPropsWithoutRef, ElementType, ReactNode } from 'react';\nimport { forwardRef } from 'react';\nimport { dataListStickyStartStyles } from './shared';\nimport type { DataListSticky } from './shared';\nimport { Checkbox } from '@/ds/components/Checkbox';\nimport { Tooltip, TooltipTrigger, TooltipContent } from '@/ds/components/Tooltip';\nimport { cn } from '@/lib/utils';\n\nexport type DataListTopCellProps = {\n children: ReactNode;\n className?: string;\n /**\n * HTML element rendered for the top cell. Defaults to `span`. Use `'label'`\n * when the cell wraps a labelable control (e.g. a select-all Checkbox).\n */\n as?: ElementType;\n /** Pins the top cell to the horizontal start edge while the list scrolls sideways. */\n sticky?: DataListSticky;\n} & Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'className' | 'ref'>;\n\nexport const DataListTopCell = forwardRef<HTMLSpanElement, DataListTopCellProps>(\n ({ children, className, as, sticky, ...rest }, ref) => {\n const Component = as || 'span';\n const isText = typeof children === 'string' || typeof children === 'number';\n return (\n <Component\n ref={ref}\n className={cn(\n 'flex h-10 max-w-full min-w-0 items-center overflow-hidden py-1 text-column whitespace-nowrap text-muted-foreground',\n sticky === 'start' && dataListStickyStartStyles,\n sticky === 'start' && '-mx-3 w-auto max-w-none px-3',\n sticky === 'start' && 'z-20',\n className,\n )}\n {...rest}\n >\n {/* Plain string/number titles truncate with an ellipsis; element children\n (icons, smart long/short labels, checkboxes) render as-is. */}\n {isText ? <span className=\"min-w-0 truncate\">{children}</span> : children}\n </Component>\n );\n },\n);\n\nexport type DataListTopCellWithTooltipProps = {\n children: ReactNode;\n tooltip: ReactNode;\n className?: string;\n};\n\nexport function DataListTopCellWithTooltip({ children, tooltip, className }: DataListTopCellWithTooltipProps) {\n return (\n <Tooltip>\n <TooltipTrigger>\n <DataListTopCell className={className}>{children}</DataListTopCell>\n </TooltipTrigger>\n <TooltipContent>{tooltip}</TooltipContent>\n </Tooltip>\n );\n}\n\nexport type DataListTopCellSmartProps = {\n long: ReactNode;\n short: ReactNode;\n tooltip?: string;\n breakpoint?: 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n className?: string;\n};\n\nconst breakpointClasses: Record<'sm' | 'md' | 'lg' | 'xl' | '2xl', { show: string; hide: string }> = {\n sm: { show: 'hidden sm:inline-flex', hide: 'inline-flex sm:hidden' },\n md: { show: 'hidden md:inline-flex', hide: 'inline-flex md:hidden' },\n lg: { show: 'hidden lg:inline-flex', hide: 'inline-flex lg:hidden' },\n xl: { show: 'hidden xl:inline-flex', hide: 'inline-flex xl:hidden' },\n '2xl': { show: 'hidden 2xl:inline-flex', hide: 'inline-flex 2xl:hidden' },\n};\n\nexport function DataListTopCellSmart({\n long,\n short,\n tooltip,\n breakpoint = '2xl',\n className,\n}: DataListTopCellSmartProps) {\n const tooltipText = tooltip ?? (typeof long === 'string' ? long : undefined);\n const bp = breakpointClasses[breakpoint];\n\n const content = (\n <>\n <span className={cn('items-center gap-1', bp.show)}>{long}</span>\n <span className={cn('items-center gap-1', bp.hide)}>{short}</span>\n </>\n );\n\n if (tooltipText) {\n return (\n <DataListTopCellWithTooltip tooltip={tooltipText} className={cn('flex [&_svg]:size-[1.3em]', className)}>\n {content}\n </DataListTopCellWithTooltip>\n );\n }\n\n return <DataListTopCell className={cn('flex [&_svg]:size-[1.3em]', className)}>{content}</DataListTopCell>;\n}\n\nexport interface DataListTopSelectCellProps {\n /** Pass `'indeterminate'` when some — but not all — rows are selected. */\n checked: boolean | 'indeterminate';\n /** Toggles the global selection. Typically clears when fully selected, otherwise selects all. */\n onToggle: () => void;\n 'aria-label'?: string;\n}\n\nexport function DataListTopSelectCell({ checked, onToggle, ...rest }: DataListTopSelectCellProps) {\n return (\n <DataListTopCell\n as=\"label\"\n className=\"w-8 cursor-pointer justify-center overflow-visible px-0 py-0!\"\n onClick={e => e.stopPropagation()}\n >\n <Checkbox checked={checked} onCheckedChange={() => onToggle()} aria-label={rest['aria-label']} />\n </DataListTopCell>\n );\n}\n","import type { ComponentPropsWithoutRef } from 'react';\nimport { cn } from '@/lib/utils';\n\nexport type DataListTopProps = ComponentPropsWithoutRef<'div'> & {\n /**\n * Switch to a \"leading cell\" layout: drops the default gap between children\n * and the default left padding, so a leading cell (e.g. `TopSelectCell`)\n * sits flush against the grid edge and an inner `TopCells` group owns the\n * remaining column spacing. Mirrors how `Row` + `RowButton` compose.\n */\n hasLeadingCell?: boolean;\n};\n\nexport function DataListTop({ children, className, hasLeadingCell, ...props }: DataListTopProps) {\n return (\n <div\n className={cn(\n 'group/data-list-top data-list-top sticky top-0 z-20 col-span-full grid grid-cols-subgrid gap-4 px-3',\n hasLeadingCell && 'gap-0 pl-0!',\n className,\n )}\n {...props}\n >\n {children}\n </div>\n );\n}\n"],"names":["focusRingInset","jsx","cn","Children","isValidElement","cloneElement","getShortId","Checkbox","formatDate","formatTimestampPrecise","raisedSurfaceStyle","useFluidMenu","FluidMenuItems","ScrollArea","ScrollAreaViewport","forwardRef","tooltip","Tooltip","TooltipTrigger","TooltipContent","jsxs","Fragment"],"mappings":";;;;;;;;;;;;;;AASO,MAAM,sBAAA,GAAyB;AAAA,EACpC,kEAAA;AAAA;AAAA;AAAA;AAAA,EAIA;AACF;AAgBO,MAAM,sBAAA,GAAyB;AAAA,EACpC,gBAAA;AAAA,EACA,mEAAA;AAAA,EACA,2HAAA;AAAA,EACA;AACF;AAMO,MAAM,4BAAA,GAA+B;AAAA,EAC1C,kDAAA;AAAA,EACAA;AACF;AAEO,MAAM,iBAAA,GAAoB;AAAA,EAC/B,GAAG,4BAAA;AAAA,EACH,GAAG,sBAAA;AAAA,EACH,GAAG;AACL;AAEO,MAAM,uBAAA,GAA0B,CAAC,mCAAA,EAAqC,GAAG,sBAAsB;AAQ/F,MAAM,6BAAA,GACX,yHAAA;AAIK,MAAM,yBAAA,GAA4B;AAAA,EACvC;AACF,CAAA;AA+BO,SAAS,aAAa,OAAA,EAA2B;AACtD,EAAA,MAAM,QAAkB,EAAC;AACzB,EAAA,IAAI,KAAA,GAAQ,CAAA;AACZ,EAAA,IAAI,OAAA,GAAU,EAAA;AACd,EAAA,KAAA,MAAW,QAAQ,OAAA,EAAS;AAC1B,IAAA,IAAI,SAAS,GAAA,EAAK,KAAA,EAAA;AAClB,IAAA,IAAI,SAAS,GAAA,EAAK,KAAA,EAAA;AAClB,IAAA,IAAI,IAAA,CAAK,IAAA,CAAK,IAAI,CAAA,IAAK,UAAU,CAAA,EAAG;AAClC,MAAA,IAAI,OAAA,EAAS,KAAA,CAAM,IAAA,CAAK,OAAO,CAAA;AAC/B,MAAA,OAAA,GAAU,EAAA;AAAA,IACZ,CAAA,MAAO;AACL,MAAA,OAAA,IAAW,IAAA;AAAA,IACb;AAAA,EACF;AACA,EAAA,IAAI,OAAA,EAAS,KAAA,CAAM,IAAA,CAAK,OAAO,CAAA;AAC/B,EAAA,OAAO,KAAA;A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