@mastra/playground-ui 63.1.0-alpha.1 → 63.1.0-alpha.2
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/dist/components/DataList.cjs.js +15 -17
- package/dist/components/DataList.cjs.js.map +1 -1
- package/dist/components/DataList.es.js +4 -5
- package/dist/components/DataList.es.js.map +1 -1
- package/dist/components/EnvironmentVariablesEditor.cjs.js +1 -1
- package/dist/components/EnvironmentVariablesEditor.es.js +1 -1
- package/dist/components/LogsDataList.cjs.js +5 -2
- package/dist/components/LogsDataList.cjs.js.map +1 -1
- package/dist/components/LogsDataList.es.js +5 -2
- package/dist/components/LogsDataList.es.js.map +1 -1
- package/dist/{data-list-top-DYnH-IhJ.cjs → data-list-2svaWtkq.cjs} +339 -13
- package/dist/data-list-2svaWtkq.cjs.map +1 -0
- package/dist/{data-list-top-Dk9Wz_w5.js → data-list-BbOYiz4B.js} +332 -5
- package/dist/data-list-BbOYiz4B.js.map +1 -0
- package/dist/{data-list-skeleton-Cgo1Urkr.cjs → data-list-skeleton-C-j6Sf0F.cjs} +6 -6
- package/dist/{data-list-skeleton-Cgo1Urkr.cjs.map → data-list-skeleton-C-j6Sf0F.cjs.map} +1 -1
- package/dist/{data-list-skeleton-C_zFfUy5.js → data-list-skeleton-C9Zm5XMX.js} +2 -2
- package/dist/{data-list-skeleton-C_zFfUy5.js.map → data-list-skeleton-C9Zm5XMX.js.map} +1 -1
- package/dist/domains/chat/tools/badges/workflow-badge.cjs.js +2 -1
- package/dist/domains/chat/tools/badges/workflow-badge.cjs.js.map +1 -1
- package/dist/domains/chat/tools/badges/workflow-badge.es.js +2 -1
- package/dist/domains/chat/tools/badges/workflow-badge.es.js.map +1 -1
- package/dist/domains/logs/components/logs-list-view.cjs.js +3 -2
- package/dist/domains/logs/components/logs-list-view.cjs.js.map +1 -1
- package/dist/domains/logs/components/logs-list-view.es.js +3 -2
- package/dist/domains/logs/components/logs-list-view.es.js.map +1 -1
- package/dist/domains/scores/components/trace-scores-tab.cjs.js +2 -1
- package/dist/domains/scores/components/trace-scores-tab.cjs.js.map +1 -1
- package/dist/domains/scores/components/trace-scores-tab.es.js +2 -1
- package/dist/domains/scores/components/trace-scores-tab.es.js.map +1 -1
- package/dist/domains/traces/components/trace-data-panel.cjs.js +2 -0
- package/dist/domains/traces/components/trace-data-panel.cjs.js.map +1 -1
- package/dist/domains/traces/components/trace-data-panel.es.js +2 -0
- package/dist/domains/traces/components/trace-data-panel.es.js.map +1 -1
- package/dist/domains/traces/components/traces-list-view.cjs.js +4 -5
- package/dist/domains/traces/components/traces-list-view.cjs.js.map +1 -1
- package/dist/domains/traces/components/traces-list-view.es.js +3 -4
- package/dist/domains/traces/components/traces-list-view.es.js.map +1 -1
- package/dist/domains/traces/components/traces-page-skeleton.cjs.js +4 -1
- package/dist/domains/traces/components/traces-page-skeleton.cjs.js.map +1 -1
- package/dist/domains/traces/components/traces-page-skeleton.es.js +4 -1
- package/dist/domains/traces/components/traces-page-skeleton.es.js.map +1 -1
- package/dist/domains/workflows/components/workflows-list/workflows-list.cjs.js +2 -2
- package/dist/domains/workflows/components/workflows-list/workflows-list.es.js +2 -2
- package/dist/domains/workflows/workflow/workflow-input-data.cjs.js +0 -1
- package/dist/domains/workflows/workflow/workflow-input-data.cjs.js.map +1 -1
- package/dist/domains/workflows/workflow/workflow-input-data.es.js +0 -1
- package/dist/domains/workflows/workflow/workflow-input-data.es.js.map +1 -1
- package/dist/ee/signals/components/entity-index-list.cjs.js +3 -1
- package/dist/ee/signals/components/entity-index-list.cjs.js.map +1 -1
- package/dist/ee/signals/components/entity-index-list.es.js +3 -1
- package/dist/ee/signals/components/entity-index-list.es.js.map +1 -1
- package/dist/ee/signals/components/trace-intelligence-entity-index.cjs.js +3 -1
- package/dist/ee/signals/components/trace-intelligence-entity-index.cjs.js.map +1 -1
- package/dist/ee/signals/components/trace-intelligence-entity-index.es.js +3 -1
- package/dist/ee/signals/components/trace-intelligence-entity-index.es.js.map +1 -1
- package/dist/ee/topics/components/topic-trace-summary-list.cjs.js +1 -1
- package/dist/ee/topics/components/topic-trace-summary-list.es.js +1 -1
- package/dist/layout/tabbed-container.cjs.js +1 -1
- package/dist/layout/tabbed-container.es.js +1 -1
- package/dist/{logs-data-list-1KFnVsFz.js → logs-data-list-0_z4s0Sj.js} +2 -3
- package/dist/{logs-data-list-1KFnVsFz.js.map → logs-data-list-0_z4s0Sj.js.map} +1 -1
- package/dist/{logs-data-list-BafttkM2.cjs → logs-data-list-D4sVbF23.cjs} +21 -22
- package/dist/{logs-data-list-BafttkM2.cjs.map → logs-data-list-D4sVbF23.cjs.map} +1 -1
- package/dist/{traces-data-list-CDvg5G_2.js → traces-data-list-C05UwTiE.js} +2 -4
- package/dist/{traces-data-list-CDvg5G_2.js.map → traces-data-list-C05UwTiE.js.map} +1 -1
- package/dist/{traces-data-list-Dy-9AIr2.cjs → traces-data-list-DPA5T14k.cjs} +17 -19
- package/dist/{traces-data-list-Dy-9AIr2.cjs.map → traces-data-list-DPA5T14k.cjs.map} +1 -1
- package/package.json +7 -7
- package/dist/data-list-CaifGmFh.cjs +0 -142
- package/dist/data-list-CaifGmFh.cjs.map +0 -1
- package/dist/data-list-kilUFo3I.js +0 -138
- package/dist/data-list-kilUFo3I.js.map +0 -1
- package/dist/data-list-spacer-D9J0nV_S.cjs +0 -218
- package/dist/data-list-spacer-D9J0nV_S.cjs.map +0 -1
- package/dist/data-list-spacer-DGUCD6oy.js +0 -209
- package/dist/data-list-spacer-DGUCD6oy.js.map +0 -1
- package/dist/data-list-top-DYnH-IhJ.cjs.map +0 -1
- package/dist/data-list-top-Dk9Wz_w5.js.map +0 -1
|
@@ -2,26 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const dataList = require('../data-list-
|
|
6
|
-
const dataListSkeleton = require('../data-list-skeleton-
|
|
5
|
+
const dataList = require('../data-list-2svaWtkq.cjs');
|
|
6
|
+
const dataListSkeleton = require('../data-list-skeleton-C-j6Sf0F.cjs');
|
|
7
7
|
const jsxRuntime = require('react/jsx-runtime');
|
|
8
|
-
const dataListSpacer = require('../data-list-spacer-D9J0nV_S.cjs');
|
|
9
|
-
const dataListTop = require('../data-list-top-DYnH-IhJ.cjs');
|
|
10
8
|
const Txt = require('../Txt-DXjXpX9r.cjs');
|
|
11
9
|
const utils_dateFormat = require('../utils/date-format.cjs.js');
|
|
12
|
-
const tracesDataList = require('../traces-data-list-
|
|
10
|
+
const tracesDataList = require('../traces-data-list-DPA5T14k.cjs');
|
|
13
11
|
const useDataListKeyboard = require('../use-data-list-keyboard-DF3tLe10.cjs');
|
|
14
12
|
const layout_tabbedContainer = require('../layout/tabbed-container.cjs.js');
|
|
15
13
|
|
|
16
14
|
function ScoresDataListDateCell({ timestamp }) {
|
|
17
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dataList.DataListCell, { className: "text-muted-foreground", children: utils_dateFormat.formatDate(timestamp, "date") ?? "-" });
|
|
18
16
|
}
|
|
19
17
|
function ScoresDataListTimeCell({ timestamp }) {
|
|
20
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dataList.DataListCell, { className: "text-body-sm text-muted-foreground", children: utils_dateFormat.formatDate(timestamp, "time") ?? "-" });
|
|
21
19
|
}
|
|
22
20
|
function ScoresDataListInputCell({ input }) {
|
|
23
21
|
const display = input != null ? JSON.stringify(input) : "-";
|
|
24
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
22
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dataList.DataListCell, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
25
23
|
Txt.Txt,
|
|
26
24
|
{
|
|
27
25
|
as: "span",
|
|
@@ -36,11 +34,11 @@ function ScoresDataListInputCell({ input }) {
|
|
|
36
34
|
}
|
|
37
35
|
function ScoresDataListEntityCell({ entityId }) {
|
|
38
36
|
const display = entityId || "-";
|
|
39
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
37
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dataList.DataListCell, { children: /* @__PURE__ */ jsxRuntime.jsx(Txt.Txt, { as: "span", variant: "body-sm", className: "block max-w-full min-w-0 truncate", title: display, children: display }) });
|
|
40
38
|
}
|
|
41
39
|
function ScoresDataListScoreCell({ score }) {
|
|
42
40
|
const display = score == null ? "-" : typeof score === "object" ? JSON.stringify(score) : String(score);
|
|
43
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
41
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dataList.DataListCell, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
44
42
|
Txt.Txt,
|
|
45
43
|
{
|
|
46
44
|
as: "span",
|
|
@@ -55,15 +53,15 @@ function ScoresDataListScoreCell({ score }) {
|
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
function ScoresDataListRoot(props) {
|
|
58
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
56
|
+
return /* @__PURE__ */ jsxRuntime.jsx(dataList.DataListRoot, { ...props });
|
|
59
57
|
}
|
|
60
58
|
const ScoresDataList = Object.assign(ScoresDataListRoot, {
|
|
61
|
-
Top:
|
|
62
|
-
TopCell:
|
|
63
|
-
SortableTopCell:
|
|
64
|
-
RowButton:
|
|
65
|
-
NoMatch:
|
|
66
|
-
NextPageLoading:
|
|
59
|
+
Top: dataList.DataListTop,
|
|
60
|
+
TopCell: dataList.DataListTopCell,
|
|
61
|
+
SortableTopCell: dataList.DataListSortableTopCell,
|
|
62
|
+
RowButton: dataList.DataListRowButton,
|
|
63
|
+
NoMatch: dataList.DataListNoMatch,
|
|
64
|
+
NextPageLoading: dataList.DataListNextPageLoading,
|
|
67
65
|
DateCell: ScoresDataListDateCell,
|
|
68
66
|
TimeCell: ScoresDataListTimeCell,
|
|
69
67
|
InputCell: ScoresDataListInputCell,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataList.cjs.js","sources":["../../src/ds/components/DataList/ScoresDataList/scores-data-list-cells.tsx","../../src/ds/components/DataList/ScoresDataList/scores-data-list.tsx"],"sourcesContent":["import { DataListCell } from '../data-list-cells';\nimport { Txt } from '@/ds/components/Txt';\nimport { formatDate } from '@/utils/date-format';\n\n// ---------------------------------------------------------------------------\n// Helpers\n// ---------------------------------------------------------------------------\n\n// ---------------------------------------------------------------------------\n// DateCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListDateCellProps {\n timestamp: Date | string;\n}\n\nexport function ScoresDataListDateCell({ timestamp }: ScoresDataListDateCellProps) {\n return <DataListCell className=\"text-muted-foreground\">{formatDate(timestamp, 'date') ?? '-'}</DataListCell>;\n}\n\n// ---------------------------------------------------------------------------\n// TimeCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListTimeCellProps {\n timestamp: Date | string;\n}\n\nexport function ScoresDataListTimeCell({ timestamp }: ScoresDataListTimeCellProps) {\n return (\n <DataListCell className=\"text-body-sm text-muted-foreground\">{formatDate(timestamp, 'time') ?? '-'}</DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// InputCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListInputCellProps {\n input?: unknown;\n}\n\nexport function ScoresDataListInputCell({ input }: ScoresDataListInputCellProps) {\n const display = input != null ? JSON.stringify(input) : '-';\n return (\n <DataListCell>\n <Txt\n as=\"span\"\n variant=\"body-sm\"\n tone=\"muted\"\n font=\"mono\"\n className=\"block max-w-full min-w-0 truncate\"\n title={display}\n >\n {display}\n </Txt>\n </DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// EntityCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListEntityCellProps {\n entityId?: string | null;\n}\n\nexport function ScoresDataListEntityCell({ entityId }: ScoresDataListEntityCellProps) {\n const display = entityId || '-';\n return (\n <DataListCell>\n <Txt as=\"span\" variant=\"body-sm\" className=\"block max-w-full min-w-0 truncate\" title={display}>\n {display}\n </Txt>\n </DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// ScoreCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListScoreCellProps {\n score?: unknown;\n}\n\nexport function ScoresDataListScoreCell({ score }: ScoresDataListScoreCellProps) {\n const display = score == null ? '-' : typeof score === 'object' ? JSON.stringify(score) : String(score);\n return (\n <DataListCell>\n <Txt\n as=\"span\"\n variant=\"body-sm\"\n tone=\"muted\"\n font=\"mono\"\n className=\"block max-w-full min-w-0 truncate\"\n title={display}\n >\n {display}\n </Txt>\n </DataListCell>\n );\n}\n","import type { ComponentProps } from 'react';\nimport { DataListNextPageLoading } from '../data-list-next-page-loading';\nimport { DataListNoMatch } from '../data-list-no-match';\nimport { DataListRoot } from '../data-list-root';\nimport { DataListRowButton } from '../data-list-row-button';\nimport { DataListSortableTopCell } from '../data-list-sortable-top-cell';\nimport { DataListTop } from '../data-list-top';\nimport { DataListTopCell } from '../data-list-top-cell';\nimport {\n ScoresDataListDateCell,\n ScoresDataListTimeCell,\n ScoresDataListInputCell,\n ScoresDataListEntityCell,\n ScoresDataListScoreCell,\n} from './scores-data-list-cells';\n\n// oxlint-disable-next-line react/only-export-components -- compound component root, same pattern as TracesDataList\n// eslint-disable-next-line react-refresh/only-export-components -- compound component root, same pattern as TracesDataList\nfunction ScoresDataListRoot(props: ComponentProps<typeof DataListRoot>) {\n return <DataListRoot {...props} />;\n}\n\nexport const ScoresDataList = Object.assign(ScoresDataListRoot, {\n Top: DataListTop,\n TopCell: DataListTopCell,\n SortableTopCell: DataListSortableTopCell,\n RowButton: DataListRowButton,\n NoMatch: DataListNoMatch,\n NextPageLoading: DataListNextPageLoading,\n DateCell: ScoresDataListDateCell,\n TimeCell: ScoresDataListTimeCell,\n InputCell: ScoresDataListInputCell,\n EntityCell: ScoresDataListEntityCell,\n ScoreCell: ScoresDataListScoreCell,\n});\n"],"names":["jsx","DataListCell","Txt","DataListRoot","DataListTop","DataListTopCell","DataListSortableTopCell","DataListRowButton","DataListNoMatch","DataListNextPageLoading"],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataList.cjs.js","sources":["../../src/ds/components/DataList/ScoresDataList/scores-data-list-cells.tsx","../../src/ds/components/DataList/ScoresDataList/scores-data-list.tsx"],"sourcesContent":["import { DataListCell } from '../data-list-cells';\nimport { Txt } from '@/ds/components/Txt';\nimport { formatDate } from '@/utils/date-format';\n\n// ---------------------------------------------------------------------------\n// Helpers\n// ---------------------------------------------------------------------------\n\n// ---------------------------------------------------------------------------\n// DateCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListDateCellProps {\n timestamp: Date | string;\n}\n\nexport function ScoresDataListDateCell({ timestamp }: ScoresDataListDateCellProps) {\n return <DataListCell className=\"text-muted-foreground\">{formatDate(timestamp, 'date') ?? '-'}</DataListCell>;\n}\n\n// ---------------------------------------------------------------------------\n// TimeCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListTimeCellProps {\n timestamp: Date | string;\n}\n\nexport function ScoresDataListTimeCell({ timestamp }: ScoresDataListTimeCellProps) {\n return (\n <DataListCell className=\"text-body-sm text-muted-foreground\">{formatDate(timestamp, 'time') ?? '-'}</DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// InputCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListInputCellProps {\n input?: unknown;\n}\n\nexport function ScoresDataListInputCell({ input }: ScoresDataListInputCellProps) {\n const display = input != null ? JSON.stringify(input) : '-';\n return (\n <DataListCell>\n <Txt\n as=\"span\"\n variant=\"body-sm\"\n tone=\"muted\"\n font=\"mono\"\n className=\"block max-w-full min-w-0 truncate\"\n title={display}\n >\n {display}\n </Txt>\n </DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// EntityCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListEntityCellProps {\n entityId?: string | null;\n}\n\nexport function ScoresDataListEntityCell({ entityId }: ScoresDataListEntityCellProps) {\n const display = entityId || '-';\n return (\n <DataListCell>\n <Txt as=\"span\" variant=\"body-sm\" className=\"block max-w-full min-w-0 truncate\" title={display}>\n {display}\n </Txt>\n </DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// ScoreCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListScoreCellProps {\n score?: unknown;\n}\n\nexport function ScoresDataListScoreCell({ score }: ScoresDataListScoreCellProps) {\n const display = score == null ? '-' : typeof score === 'object' ? JSON.stringify(score) : String(score);\n return (\n <DataListCell>\n <Txt\n as=\"span\"\n variant=\"body-sm\"\n tone=\"muted\"\n font=\"mono\"\n className=\"block max-w-full min-w-0 truncate\"\n title={display}\n >\n {display}\n </Txt>\n </DataListCell>\n );\n}\n","import type { ComponentProps } from 'react';\nimport { DataListNextPageLoading } from '../data-list-next-page-loading';\nimport { DataListNoMatch } from '../data-list-no-match';\nimport { DataListRoot } from '../data-list-root';\nimport { DataListRowButton } from '../data-list-row-button';\nimport { DataListSortableTopCell } from '../data-list-sortable-top-cell';\nimport { DataListTop } from '../data-list-top';\nimport { DataListTopCell } from '../data-list-top-cell';\nimport {\n ScoresDataListDateCell,\n ScoresDataListTimeCell,\n ScoresDataListInputCell,\n ScoresDataListEntityCell,\n ScoresDataListScoreCell,\n} from './scores-data-list-cells';\n\n// oxlint-disable-next-line react/only-export-components -- compound component root, same pattern as TracesDataList\n// eslint-disable-next-line react-refresh/only-export-components -- compound component root, same pattern as TracesDataList\nfunction ScoresDataListRoot(props: ComponentProps<typeof DataListRoot>) {\n return <DataListRoot {...props} />;\n}\n\nexport const ScoresDataList = Object.assign(ScoresDataListRoot, {\n Top: DataListTop,\n TopCell: DataListTopCell,\n SortableTopCell: DataListSortableTopCell,\n RowButton: DataListRowButton,\n NoMatch: DataListNoMatch,\n NextPageLoading: DataListNextPageLoading,\n DateCell: ScoresDataListDateCell,\n TimeCell: ScoresDataListTimeCell,\n InputCell: ScoresDataListInputCell,\n EntityCell: ScoresDataListEntityCell,\n ScoreCell: ScoresDataListScoreCell,\n});\n"],"names":["jsx","DataListCell","Txt","DataListRoot","DataListTop","DataListTopCell","DataListSortableTopCell","DataListRowButton","DataListNoMatch","DataListNextPageLoading"],"mappings":";;;;;;;;;;;;;AAgBO,SAAS,sBAAA,CAAuB,EAAE,SAAA,EAAU,EAAgC;AACjF,EAAA,uBAAOA,cAAA,CAACC,yBAAa,SAAA,EAAU,uBAAA,EAAyB,sCAAW,SAAA,EAAW,MAAM,KAAK,GAAA,EAAI,CAAA;AAC/F;AAUO,SAAS,sBAAA,CAAuB,EAAE,SAAA,EAAU,EAAgC;AACjF,EAAA,uBACED,cAAA,CAACC,yBAAa,SAAA,EAAU,oCAAA,EAAsC,sCAAW,SAAA,EAAW,MAAM,KAAK,GAAA,EAAI,CAAA;AAEvG;AAUO,SAAS,uBAAA,CAAwB,EAAE,KAAA,EAAM,EAAiC;AAC/E,EAAA,MAAM,UAAU,KAAA,IAAS,IAAA,GAAO,IAAA,CAAK,SAAA,CAAU,KAAK,CAAA,GAAI,GAAA;AACxD,EAAA,sCACGA,qBAAA,EAAA,EACC,QAAA,kBAAAD,cAAA;AAAA,IAACE,OAAA;AAAA,IAAA;AAAA,MACC,EAAA,EAAG,MAAA;AAAA,MACH,OAAA,EAAQ,SAAA;AAAA,MACR,IAAA,EAAK,OAAA;AAAA,MACL,IAAA,EAAK,MAAA;AAAA,MACL,SAAA,EAAU,mCAAA;AAAA,MACV,KAAA,EAAO,OAAA;AAAA,MAEN,QAAA,EAAA;AAAA;AAAA,GACH,EACF,CAAA;AAEJ;AAUO,SAAS,wBAAA,CAAyB,EAAE,QAAA,EAAS,EAAkC;AACpF,EAAA,MAAM,UAAU,QAAA,IAAY,GAAA;AAC5B,EAAA,uBACEF,cAAA,CAACC,qBAAA,EAAA,EACC,QAAA,kBAAAD,cAAA,CAACE,OAAA,EAAA,EAAI,EAAA,EAAG,MAAA,EAAO,OAAA,EAAQ,SAAA,EAAU,SAAA,EAAU,mCAAA,EAAoC,KAAA,EAAO,OAAA,EACnF,mBACH,CAAA,EACF,CAAA;AAEJ;AAUO,SAAS,uBAAA,CAAwB,EAAE,KAAA,EAAM,EAAiC;AAC/E,EAAA,MAAM,OAAA,GAAU,KAAA,IAAS,IAAA,GAAO,GAAA,GAAM,OAAO,KAAA,KAAU,QAAA,GAAW,IAAA,CAAK,SAAA,CAAU,KAAK,CAAA,GAAI,MAAA,CAAO,KAAK,CAAA;AACtG,EAAA,sCACGD,qBAAA,EAAA,EACC,QAAA,kBAAAD,cAAA;AAAA,IAACE,OAAA;AAAA,IAAA;AAAA,MACC,EAAA,EAAG,MAAA;AAAA,MACH,OAAA,EAAQ,SAAA;AAAA,MACR,IAAA,EAAK,OAAA;AAAA,MACL,IAAA,EAAK,MAAA;AAAA,MACL,SAAA,EAAU,mCAAA;AAAA,MACV,KAAA,EAAO,OAAA;AAAA,MAEN,QAAA,EAAA;AAAA;AAAA,GACH,EACF,CAAA;AAEJ;;ACrFA,SAAS,mBAAmB,KAAA,EAA4C;AACtE,EAAA,uBAAOF,cAAA,CAACG,qBAAA,EAAA,EAAc,GAAG,KAAA,EAAO,CAAA;AAClC;AAEO,MAAM,cAAA,GAAiB,MAAA,CAAO,MAAA,CAAO,kBAAA,EAAoB;AAAA,EAC9D,GAAA,EAAKC,oBAAA;AAAA,EACL,OAAA,EAASC,wBAAA;AAAA,EACT,eAAA,EAAiBC,gCAAA;AAAA,EACjB,SAAA,EAAWC,0BAAA;AAAA,EACX,OAAA,EAASC,wBAAA;AAAA,EACT,eAAA,EAAiBC,gCAAA;AAAA,EACjB,QAAA,EAAU,sBAAA;AAAA,EACV,QAAA,EAAU,sBAAA;AAAA,EACV,SAAA,EAAW,uBAAA;AAAA,EACX,UAAA,EAAY,wBAAA;AAAA,EACZ,SAAA,EAAW;AACb,CAAC;;;;;;;;;;"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
1
|
+
import { c as DataListCell, g as DataListNextPageLoading, j as DataListNoMatch, m as DataListRowButton, q as DataListSortableTopCell, b as DataListTopCell, a as DataListTop, D as DataListRoot } from '../data-list-BbOYiz4B.js';
|
|
2
|
+
export { e as DataList } from '../data-list-BbOYiz4B.js';
|
|
3
|
+
export { D as DataListSkeleton, a as DataListSkeletonRows } from '../data-list-skeleton-C9Zm5XMX.js';
|
|
3
4
|
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
import { D as DataListNextPageLoading, a as DataListNoMatch, d as DataListRowButton, f as DataListSortableTopCell } from '../data-list-spacer-DGUCD6oy.js';
|
|
5
|
-
import { c as DataListCell, b as DataListTopCell, a as DataListTop, D as DataListRoot } from '../data-list-top-Dk9Wz_w5.js';
|
|
6
5
|
import { T as Txt } from '../Txt-BuzYj7Vy.js';
|
|
7
6
|
import { formatDate } from '../utils/date-format.es.js';
|
|
8
|
-
export { T as TracesDataList } from '../traces-data-list-
|
|
7
|
+
export { T as TracesDataList } from '../traces-data-list-C05UwTiE.js';
|
|
9
8
|
export { u as useDataListKeyboard } from '../use-data-list-keyboard-DFQr4t38.js';
|
|
10
9
|
export { TabbedContainer } from '../layout/tabbed-container.es.js';
|
|
11
10
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataList.es.js","sources":["../../src/ds/components/DataList/ScoresDataList/scores-data-list-cells.tsx","../../src/ds/components/DataList/ScoresDataList/scores-data-list.tsx"],"sourcesContent":["import { DataListCell } from '../data-list-cells';\nimport { Txt } from '@/ds/components/Txt';\nimport { formatDate } from '@/utils/date-format';\n\n// ---------------------------------------------------------------------------\n// Helpers\n// ---------------------------------------------------------------------------\n\n// ---------------------------------------------------------------------------\n// DateCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListDateCellProps {\n timestamp: Date | string;\n}\n\nexport function ScoresDataListDateCell({ timestamp }: ScoresDataListDateCellProps) {\n return <DataListCell className=\"text-muted-foreground\">{formatDate(timestamp, 'date') ?? '-'}</DataListCell>;\n}\n\n// ---------------------------------------------------------------------------\n// TimeCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListTimeCellProps {\n timestamp: Date | string;\n}\n\nexport function ScoresDataListTimeCell({ timestamp }: ScoresDataListTimeCellProps) {\n return (\n <DataListCell className=\"text-body-sm text-muted-foreground\">{formatDate(timestamp, 'time') ?? '-'}</DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// InputCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListInputCellProps {\n input?: unknown;\n}\n\nexport function ScoresDataListInputCell({ input }: ScoresDataListInputCellProps) {\n const display = input != null ? JSON.stringify(input) : '-';\n return (\n <DataListCell>\n <Txt\n as=\"span\"\n variant=\"body-sm\"\n tone=\"muted\"\n font=\"mono\"\n className=\"block max-w-full min-w-0 truncate\"\n title={display}\n >\n {display}\n </Txt>\n </DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// EntityCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListEntityCellProps {\n entityId?: string | null;\n}\n\nexport function ScoresDataListEntityCell({ entityId }: ScoresDataListEntityCellProps) {\n const display = entityId || '-';\n return (\n <DataListCell>\n <Txt as=\"span\" variant=\"body-sm\" className=\"block max-w-full min-w-0 truncate\" title={display}>\n {display}\n </Txt>\n </DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// ScoreCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListScoreCellProps {\n score?: unknown;\n}\n\nexport function ScoresDataListScoreCell({ score }: ScoresDataListScoreCellProps) {\n const display = score == null ? '-' : typeof score === 'object' ? JSON.stringify(score) : String(score);\n return (\n <DataListCell>\n <Txt\n as=\"span\"\n variant=\"body-sm\"\n tone=\"muted\"\n font=\"mono\"\n className=\"block max-w-full min-w-0 truncate\"\n title={display}\n >\n {display}\n </Txt>\n </DataListCell>\n );\n}\n","import type { ComponentProps } from 'react';\nimport { DataListNextPageLoading } from '../data-list-next-page-loading';\nimport { DataListNoMatch } from '../data-list-no-match';\nimport { DataListRoot } from '../data-list-root';\nimport { DataListRowButton } from '../data-list-row-button';\nimport { DataListSortableTopCell } from '../data-list-sortable-top-cell';\nimport { DataListTop } from '../data-list-top';\nimport { DataListTopCell } from '../data-list-top-cell';\nimport {\n ScoresDataListDateCell,\n ScoresDataListTimeCell,\n ScoresDataListInputCell,\n ScoresDataListEntityCell,\n ScoresDataListScoreCell,\n} from './scores-data-list-cells';\n\n// oxlint-disable-next-line react/only-export-components -- compound component root, same pattern as TracesDataList\n// eslint-disable-next-line react-refresh/only-export-components -- compound component root, same pattern as TracesDataList\nfunction ScoresDataListRoot(props: ComponentProps<typeof DataListRoot>) {\n return <DataListRoot {...props} />;\n}\n\nexport const ScoresDataList = Object.assign(ScoresDataListRoot, {\n Top: DataListTop,\n TopCell: DataListTopCell,\n SortableTopCell: DataListSortableTopCell,\n RowButton: DataListRowButton,\n NoMatch: DataListNoMatch,\n NextPageLoading: DataListNextPageLoading,\n DateCell: ScoresDataListDateCell,\n TimeCell: ScoresDataListTimeCell,\n InputCell: ScoresDataListInputCell,\n EntityCell: ScoresDataListEntityCell,\n ScoreCell: ScoresDataListScoreCell,\n});\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataList.es.js","sources":["../../src/ds/components/DataList/ScoresDataList/scores-data-list-cells.tsx","../../src/ds/components/DataList/ScoresDataList/scores-data-list.tsx"],"sourcesContent":["import { DataListCell } from '../data-list-cells';\nimport { Txt } from '@/ds/components/Txt';\nimport { formatDate } from '@/utils/date-format';\n\n// ---------------------------------------------------------------------------\n// Helpers\n// ---------------------------------------------------------------------------\n\n// ---------------------------------------------------------------------------\n// DateCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListDateCellProps {\n timestamp: Date | string;\n}\n\nexport function ScoresDataListDateCell({ timestamp }: ScoresDataListDateCellProps) {\n return <DataListCell className=\"text-muted-foreground\">{formatDate(timestamp, 'date') ?? '-'}</DataListCell>;\n}\n\n// ---------------------------------------------------------------------------\n// TimeCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListTimeCellProps {\n timestamp: Date | string;\n}\n\nexport function ScoresDataListTimeCell({ timestamp }: ScoresDataListTimeCellProps) {\n return (\n <DataListCell className=\"text-body-sm text-muted-foreground\">{formatDate(timestamp, 'time') ?? '-'}</DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// InputCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListInputCellProps {\n input?: unknown;\n}\n\nexport function ScoresDataListInputCell({ input }: ScoresDataListInputCellProps) {\n const display = input != null ? JSON.stringify(input) : '-';\n return (\n <DataListCell>\n <Txt\n as=\"span\"\n variant=\"body-sm\"\n tone=\"muted\"\n font=\"mono\"\n className=\"block max-w-full min-w-0 truncate\"\n title={display}\n >\n {display}\n </Txt>\n </DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// EntityCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListEntityCellProps {\n entityId?: string | null;\n}\n\nexport function ScoresDataListEntityCell({ entityId }: ScoresDataListEntityCellProps) {\n const display = entityId || '-';\n return (\n <DataListCell>\n <Txt as=\"span\" variant=\"body-sm\" className=\"block max-w-full min-w-0 truncate\" title={display}>\n {display}\n </Txt>\n </DataListCell>\n );\n}\n\n// ---------------------------------------------------------------------------\n// ScoreCell\n// ---------------------------------------------------------------------------\n\nexport interface ScoresDataListScoreCellProps {\n score?: unknown;\n}\n\nexport function ScoresDataListScoreCell({ score }: ScoresDataListScoreCellProps) {\n const display = score == null ? '-' : typeof score === 'object' ? JSON.stringify(score) : String(score);\n return (\n <DataListCell>\n <Txt\n as=\"span\"\n variant=\"body-sm\"\n tone=\"muted\"\n font=\"mono\"\n className=\"block max-w-full min-w-0 truncate\"\n title={display}\n >\n {display}\n </Txt>\n </DataListCell>\n );\n}\n","import type { ComponentProps } from 'react';\nimport { DataListNextPageLoading } from '../data-list-next-page-loading';\nimport { DataListNoMatch } from '../data-list-no-match';\nimport { DataListRoot } from '../data-list-root';\nimport { DataListRowButton } from '../data-list-row-button';\nimport { DataListSortableTopCell } from '../data-list-sortable-top-cell';\nimport { DataListTop } from '../data-list-top';\nimport { DataListTopCell } from '../data-list-top-cell';\nimport {\n ScoresDataListDateCell,\n ScoresDataListTimeCell,\n ScoresDataListInputCell,\n ScoresDataListEntityCell,\n ScoresDataListScoreCell,\n} from './scores-data-list-cells';\n\n// oxlint-disable-next-line react/only-export-components -- compound component root, same pattern as TracesDataList\n// eslint-disable-next-line react-refresh/only-export-components -- compound component root, same pattern as TracesDataList\nfunction ScoresDataListRoot(props: ComponentProps<typeof DataListRoot>) {\n return <DataListRoot {...props} />;\n}\n\nexport const ScoresDataList = Object.assign(ScoresDataListRoot, {\n Top: DataListTop,\n TopCell: DataListTopCell,\n SortableTopCell: DataListSortableTopCell,\n RowButton: DataListRowButton,\n NoMatch: DataListNoMatch,\n NextPageLoading: DataListNextPageLoading,\n DateCell: ScoresDataListDateCell,\n TimeCell: ScoresDataListTimeCell,\n InputCell: ScoresDataListInputCell,\n EntityCell: ScoresDataListEntityCell,\n ScoreCell: ScoresDataListScoreCell,\n});\n"],"names":[],"mappings":";;;;;;;;;;AAgBO,SAAS,sBAAA,CAAuB,EAAE,SAAA,EAAU,EAAgC;AACjF,EAAA,uBAAO,GAAA,CAAC,gBAAa,SAAA,EAAU,uBAAA,EAAyB,qBAAW,SAAA,EAAW,MAAM,KAAK,GAAA,EAAI,CAAA;AAC/F;AAUO,SAAS,sBAAA,CAAuB,EAAE,SAAA,EAAU,EAAgC;AACjF,EAAA,uBACE,GAAA,CAAC,gBAAa,SAAA,EAAU,oCAAA,EAAsC,qBAAW,SAAA,EAAW,MAAM,KAAK,GAAA,EAAI,CAAA;AAEvG;AAUO,SAAS,uBAAA,CAAwB,EAAE,KAAA,EAAM,EAAiC;AAC/E,EAAA,MAAM,UAAU,KAAA,IAAS,IAAA,GAAO,IAAA,CAAK,SAAA,CAAU,KAAK,CAAA,GAAI,GAAA;AACxD,EAAA,2BACG,YAAA,EAAA,EACC,QAAA,kBAAA,GAAA;AAAA,IAAC,GAAA;AAAA,IAAA;AAAA,MACC,EAAA,EAAG,MAAA;AAAA,MACH,OAAA,EAAQ,SAAA;AAAA,MACR,IAAA,EAAK,OAAA;AAAA,MACL,IAAA,EAAK,MAAA;AAAA,MACL,SAAA,EAAU,mCAAA;AAAA,MACV,KAAA,EAAO,OAAA;AAAA,MAEN,QAAA,EAAA;AAAA;AAAA,GACH,EACF,CAAA;AAEJ;AAUO,SAAS,wBAAA,CAAyB,EAAE,QAAA,EAAS,EAAkC;AACpF,EAAA,MAAM,UAAU,QAAA,IAAY,GAAA;AAC5B,EAAA,uBACE,GAAA,CAAC,YAAA,EAAA,EACC,QAAA,kBAAA,GAAA,CAAC,GAAA,EAAA,EAAI,EAAA,EAAG,MAAA,EAAO,OAAA,EAAQ,SAAA,EAAU,SAAA,EAAU,mCAAA,EAAoC,KAAA,EAAO,OAAA,EACnF,mBACH,CAAA,EACF,CAAA;AAEJ;AAUO,SAAS,uBAAA,CAAwB,EAAE,KAAA,EAAM,EAAiC;AAC/E,EAAA,MAAM,OAAA,GAAU,KAAA,IAAS,IAAA,GAAO,GAAA,GAAM,OAAO,KAAA,KAAU,QAAA,GAAW,IAAA,CAAK,SAAA,CAAU,KAAK,CAAA,GAAI,MAAA,CAAO,KAAK,CAAA;AACtG,EAAA,2BACG,YAAA,EAAA,EACC,QAAA,kBAAA,GAAA;AAAA,IAAC,GAAA;AAAA,IAAA;AAAA,MACC,EAAA,EAAG,MAAA;AAAA,MACH,OAAA,EAAQ,SAAA;AAAA,MACR,IAAA,EAAK,OAAA;AAAA,MACL,IAAA,EAAK,MAAA;AAAA,MACL,SAAA,EAAU,mCAAA;AAAA,MACV,KAAA,EAAO,OAAA;AAAA,MAEN,QAAA,EAAA;AAAA;AAAA,GACH,EACF,CAAA;AAEJ;;ACrFA,SAAS,mBAAmB,KAAA,EAA4C;AACtE,EAAA,uBAAO,GAAA,CAAC,YAAA,EAAA,EAAc,GAAG,KAAA,EAAO,CAAA;AAClC;AAEO,MAAM,cAAA,GAAiB,MAAA,CAAO,MAAA,CAAO,kBAAA,EAAoB;AAAA,EAC9D,GAAA,EAAK,WAAA;AAAA,EACL,OAAA,EAAS,eAAA;AAAA,EACT,eAAA,EAAiB,uBAAA;AAAA,EACjB,SAAA,EAAW,iBAAA;AAAA,EACX,OAAA,EAAS,eAAA;AAAA,EACT,eAAA,EAAiB,uBAAA;AAAA,EACjB,QAAA,EAAU,sBAAA;AAAA,EACV,QAAA,EAAU,sBAAA;AAAA,EACV,SAAA,EAAW,uBAAA;AAAA,EACX,UAAA,EAAY,wBAAA;AAAA,EACZ,SAAA,EAAW;AACb,CAAC;;;;"}
|
|
@@ -10,7 +10,7 @@ const Button = require('../Button-CAVPKK09.cjs');
|
|
|
10
10
|
const Notice = require('../Notice-c8dMiAtZ.cjs');
|
|
11
11
|
const envFile = require('../env-file-BU2hStkm.cjs');
|
|
12
12
|
const Txt = require('../Txt-DXjXpX9r.cjs');
|
|
13
|
-
const dataList = require('../data-list-
|
|
13
|
+
const dataList = require('../data-list-2svaWtkq.cjs');
|
|
14
14
|
const hooks_useCopyToClipboard = require('../hooks/use-copy-to-clipboard.cjs.js');
|
|
15
15
|
const field = require('../field-D1SVMPMz.cjs');
|
|
16
16
|
require('../field-control-aria-WzMGs0A4.cjs');
|
|
@@ -6,7 +6,7 @@ import { B as Button } from '../Button-60jVnaHt.js';
|
|
|
6
6
|
import { N as Notice } from '../Notice-Wy1grdLu.js';
|
|
7
7
|
import { D as DUPLICATE_ENVIRONMENT_VARIABLE_MESSAGE } from '../env-file-BITYowCx.js';
|
|
8
8
|
import { T as Txt } from '../Txt-BuzYj7Vy.js';
|
|
9
|
-
import {
|
|
9
|
+
import { e as DataList } from '../data-list-BbOYiz4B.js';
|
|
10
10
|
import { useCopyToClipboard } from '../hooks/use-copy-to-clipboard.es.js';
|
|
11
11
|
import { F as Field, e as FieldLabel, c as FieldError } from '../field-B89BEZg4.js';
|
|
12
12
|
import '../field-control-aria-DB6y41tQ.js';
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const logsDataList = require('../logs-data-list-
|
|
6
|
-
|
|
5
|
+
const logsDataList = require('../logs-data-list-D4sVbF23.cjs');
|
|
6
|
+
require('../data-list-2svaWtkq.cjs');
|
|
7
|
+
const dataListSkeleton = require('../data-list-skeleton-C-j6Sf0F.cjs');
|
|
8
|
+
require('react');
|
|
9
|
+
require('../keyboard/keyboard-shortcuts-context.cjs.js');
|
|
7
10
|
|
|
8
11
|
|
|
9
12
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogsDataList.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LogsDataList.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export { L as LogsDataList } from '../logs-data-list-
|
|
2
|
-
|
|
1
|
+
export { L as LogsDataList } from '../logs-data-list-0_z4s0Sj.js';
|
|
2
|
+
import '../data-list-BbOYiz4B.js';
|
|
3
|
+
export { D as LogsDataListSkeleton } from '../data-list-skeleton-C9Zm5XMX.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
import '../keyboard/keyboard-shortcuts-context.es.js';
|
|
3
6
|
//# sourceMappingURL=LogsDataList.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogsDataList.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LogsDataList.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -2,16 +2,20 @@
|
|
|
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');
|
|
5
6
|
const checkbox = require('./checkbox-DNlMGoJH.cjs');
|
|
6
7
|
const utils_cn = require('./cn-TqD01zH-.cjs');
|
|
7
8
|
const utils_dateFormat = require('./utils/date-format.cjs.js');
|
|
8
9
|
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-CAVPKK09.cjs');
|
|
9
14
|
const v4 = require('zod/v4');
|
|
10
15
|
const scrollArea = require('./scroll-area-BakRKj2k.cjs');
|
|
11
16
|
const primitives_fluidMenu = require('./primitives/fluid-menu.cjs.js');
|
|
12
17
|
const primitives_raisedSurface = require('./primitives/raised-surface.cjs.js');
|
|
13
18
|
const hooks_useLocalStorageState = require('./hooks/use-local-storage-state.cjs.js');
|
|
14
|
-
const primitives_transitions = require('./primitives/transitions.cjs.js');
|
|
15
19
|
const tooltip = require('./tooltip-C4txPRSa.cjs');
|
|
16
20
|
|
|
17
21
|
const dataListRowOuterStyles = [
|
|
@@ -192,6 +196,72 @@ function DataListTimeCell({ timestamp }) {
|
|
|
192
196
|
return /* @__PURE__ */ jsxRuntime.jsx(DataListCell, { className: "flex text-muted-foreground tabular-nums", children: utils_dateFormat.formatTimestampPrecise(timestamp, { withDate: false }) });
|
|
193
197
|
}
|
|
194
198
|
|
|
199
|
+
const DataListGroup = React.forwardRef(({ className, ...rest }, ref) => {
|
|
200
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
201
|
+
"section",
|
|
202
|
+
{
|
|
203
|
+
ref,
|
|
204
|
+
...{ [hooks_useFluidHover.GROUP_ATTR]: "" },
|
|
205
|
+
className: utils_cn.cn("col-span-full grid grid-cols-subgrid gap-y-px [&>:not(.data-list-row)]:col-span-full", className),
|
|
206
|
+
...rest
|
|
207
|
+
}
|
|
208
|
+
);
|
|
209
|
+
});
|
|
210
|
+
DataListGroup.displayName = "DataListGroup";
|
|
211
|
+
|
|
212
|
+
function DataListNextPageLoading({
|
|
213
|
+
isLoading,
|
|
214
|
+
setEndOfListElement,
|
|
215
|
+
hasMore,
|
|
216
|
+
loadingText = "Loading more data..."
|
|
217
|
+
}) {
|
|
218
|
+
if (!setEndOfListElement) {
|
|
219
|
+
return null;
|
|
220
|
+
}
|
|
221
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
222
|
+
"div",
|
|
223
|
+
{
|
|
224
|
+
ref: setEndOfListElement,
|
|
225
|
+
className: utils_cn.cn("col-span-full -mt-px flex justify-center text-body text-muted-foreground opacity-50", {
|
|
226
|
+
"py-4": isLoading
|
|
227
|
+
}),
|
|
228
|
+
children: isLoading && loadingText
|
|
229
|
+
}
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
function DataListNoMatch({
|
|
234
|
+
message = "Nothing matches your search",
|
|
235
|
+
className,
|
|
236
|
+
...props
|
|
237
|
+
}) {
|
|
238
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
239
|
+
"div",
|
|
240
|
+
{
|
|
241
|
+
className: utils_cn.cn(
|
|
242
|
+
"col-span-full flex flex-col items-center justify-center gap-2 rounded-lg bg-background py-8 text-muted-foreground",
|
|
243
|
+
className
|
|
244
|
+
),
|
|
245
|
+
...props,
|
|
246
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Txt.Txt, { children: message })
|
|
247
|
+
}
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
function DataListPagination({ currentPage, hasMore, onNextPage, onPrevPage }) {
|
|
252
|
+
const showNavigation = typeof currentPage === "number" && currentPage > 0 || hasMore;
|
|
253
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "col-span-full flex items-center justify-center gap-4 py-3 text-body text-muted-foreground", children: [
|
|
254
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
255
|
+
"Page ",
|
|
256
|
+
/* @__PURE__ */ jsxRuntime.jsx("b", { children: currentPage ? currentPage + 1 : "1" })
|
|
257
|
+
] }),
|
|
258
|
+
showNavigation && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-4", children: [
|
|
259
|
+
typeof currentPage === "number" && currentPage > 0 && /* @__PURE__ */ jsxRuntime.jsx(Button.Button, { type: "button", size: "sm", onClick: onPrevPage, icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeftIcon, {}), children: "Previous" }),
|
|
260
|
+
hasMore && /* @__PURE__ */ jsxRuntime.jsx(Button.Button, { type: "button", size: "sm", onClick: onNextPage, icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRightIcon, {}), children: "Next" })
|
|
261
|
+
] })
|
|
262
|
+
] });
|
|
263
|
+
}
|
|
264
|
+
|
|
195
265
|
const columnOrderSchema = v4.z.array(v4.z.number().int().nonnegative());
|
|
196
266
|
const getColumnOrderStorageKey = (id) => `mastra:data-list:column-order:${id}`;
|
|
197
267
|
function splitGridTracks(columns) {
|
|
@@ -394,6 +464,125 @@ function DataListBase({
|
|
|
394
464
|
);
|
|
395
465
|
}
|
|
396
466
|
|
|
467
|
+
const DataListRowWrapperContext = React.createContext(false);
|
|
468
|
+
function useDataListRowWrapperContext() {
|
|
469
|
+
return React.useContext(DataListRowWrapperContext);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
const DataListRowButton = React.forwardRef(
|
|
473
|
+
({ children, className, type = "button", colStart, colEnd, featured, variant, style, ...rest }, ref) => {
|
|
474
|
+
const isWrapped = useDataListRowWrapperContext();
|
|
475
|
+
const fluidRef = primitives_fluidMenu.useFluidMenuItemRef(ref);
|
|
476
|
+
const hasColumnOverride = colStart !== void 0 || colEnd !== void 0;
|
|
477
|
+
const cellsClass = hasColumnOverride ? void 0 : "data-list-cells";
|
|
478
|
+
const resolvedStyle = hasColumnOverride ? { ...style, gridColumn: `${colStart ?? 1} / ${colEnd ?? -1}` } : style;
|
|
479
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
480
|
+
"button",
|
|
481
|
+
{
|
|
482
|
+
ref: isWrapped ? ref : fluidRef,
|
|
483
|
+
type,
|
|
484
|
+
className: utils_cn.cn(
|
|
485
|
+
...isWrapped ? dataListRowInteractiveStyles : dataListRowStyles,
|
|
486
|
+
cellsClass,
|
|
487
|
+
"text-left",
|
|
488
|
+
className
|
|
489
|
+
),
|
|
490
|
+
style: resolvedStyle,
|
|
491
|
+
"data-featured": featured || void 0,
|
|
492
|
+
"data-variant": variant ?? "default",
|
|
493
|
+
...rest,
|
|
494
|
+
children
|
|
495
|
+
}
|
|
496
|
+
);
|
|
497
|
+
}
|
|
498
|
+
);
|
|
499
|
+
DataListRowButton.displayName = "DataListRowButton";
|
|
500
|
+
|
|
501
|
+
const DataListRowLink = React.forwardRef(
|
|
502
|
+
({ children, to, className, style, LinkComponent: Link = "a", colStart, colEnd, featured, variant, ...rest }, ref) => {
|
|
503
|
+
const isWrapped = useDataListRowWrapperContext();
|
|
504
|
+
const fluidRef = primitives_fluidMenu.useFluidMenuItemRef(ref);
|
|
505
|
+
const hasColumnOverride = colStart !== void 0 || colEnd !== void 0;
|
|
506
|
+
const cellsClass = hasColumnOverride ? void 0 : "data-list-cells";
|
|
507
|
+
const resolvedStyle = hasColumnOverride ? { ...style, gridColumn: `${colStart ?? 1} / ${colEnd ?? -1}` } : style;
|
|
508
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
509
|
+
Link,
|
|
510
|
+
{
|
|
511
|
+
ref: isWrapped ? ref : fluidRef,
|
|
512
|
+
href: to,
|
|
513
|
+
className: utils_cn.cn(...isWrapped ? dataListRowInteractiveStyles : dataListRowStyles, cellsClass, className),
|
|
514
|
+
style: resolvedStyle,
|
|
515
|
+
"data-featured": featured || void 0,
|
|
516
|
+
"data-variant": variant ?? "default",
|
|
517
|
+
...rest,
|
|
518
|
+
children
|
|
519
|
+
}
|
|
520
|
+
);
|
|
521
|
+
}
|
|
522
|
+
);
|
|
523
|
+
DataListRowLink.displayName = "DataListRowLink";
|
|
524
|
+
|
|
525
|
+
const DataListRowStatic = React.forwardRef(
|
|
526
|
+
({ children, className, colStart, colEnd, featured, variant, style, ...rest }, ref) => {
|
|
527
|
+
const isWrapped = useDataListRowWrapperContext();
|
|
528
|
+
const hasColumnOverride = colStart !== void 0 || colEnd !== void 0;
|
|
529
|
+
const cellsClass = hasColumnOverride ? void 0 : "data-list-cells";
|
|
530
|
+
const resolvedStyle = hasColumnOverride ? { ...style, gridColumn: `${colStart ?? 1} / ${colEnd ?? -1}` } : style;
|
|
531
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
532
|
+
"div",
|
|
533
|
+
{
|
|
534
|
+
ref,
|
|
535
|
+
className: utils_cn.cn(isWrapped ? "grid grid-cols-subgrid gap-4 px-3" : dataListRowStaticStyles, cellsClass, className),
|
|
536
|
+
style: resolvedStyle,
|
|
537
|
+
"data-featured": featured || void 0,
|
|
538
|
+
"data-variant": variant ?? "default",
|
|
539
|
+
...rest,
|
|
540
|
+
children
|
|
541
|
+
}
|
|
542
|
+
);
|
|
543
|
+
}
|
|
544
|
+
);
|
|
545
|
+
DataListRowStatic.displayName = "DataListRowStatic";
|
|
546
|
+
|
|
547
|
+
const DataListRowWrapper = React.forwardRef(
|
|
548
|
+
({ children, className, onSelectRow, onClick, onKeyDown, tabIndex, ...rest }, ref) => {
|
|
549
|
+
const isSelectable = onSelectRow !== void 0;
|
|
550
|
+
const rowRef = primitives_fluidMenu.useFluidMenuItemRef(ref);
|
|
551
|
+
const handleClick = (event) => {
|
|
552
|
+
onClick?.(event);
|
|
553
|
+
if (!isSelectable || event.defaultPrevented) return;
|
|
554
|
+
onSelectRow();
|
|
555
|
+
};
|
|
556
|
+
const handleKeyDown = (event) => {
|
|
557
|
+
onKeyDown?.(event);
|
|
558
|
+
if (!isSelectable || event.defaultPrevented) return;
|
|
559
|
+
if (event.key === "Enter" && event.target === event.currentTarget) {
|
|
560
|
+
event.preventDefault();
|
|
561
|
+
onSelectRow();
|
|
562
|
+
}
|
|
563
|
+
};
|
|
564
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DataListRowWrapperContext.Provider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
565
|
+
"div",
|
|
566
|
+
{
|
|
567
|
+
ref: rowRef,
|
|
568
|
+
tabIndex: tabIndex ?? (isSelectable ? 0 : void 0),
|
|
569
|
+
className: utils_cn.cn(
|
|
570
|
+
"grid grid-cols-subgrid gap-0",
|
|
571
|
+
...dataListRowOuterStyles,
|
|
572
|
+
...dataListRowStateStyles,
|
|
573
|
+
isSelectable && utils_cn.cn("cursor-pointer", primitives_transitions.focusRingInset),
|
|
574
|
+
className
|
|
575
|
+
),
|
|
576
|
+
onClick: handleClick,
|
|
577
|
+
onKeyDown: handleKeyDown,
|
|
578
|
+
...rest,
|
|
579
|
+
children
|
|
580
|
+
}
|
|
581
|
+
) });
|
|
582
|
+
}
|
|
583
|
+
);
|
|
584
|
+
DataListRowWrapper.displayName = "DataListRowWrapper";
|
|
585
|
+
|
|
397
586
|
const DataListTopCell = React.forwardRef(
|
|
398
587
|
({ children, className, as, sticky, ...rest }, ref) => {
|
|
399
588
|
const Component = as || "span";
|
|
@@ -512,6 +701,90 @@ function DataListTopSelectCell({ checked, onToggle, ...rest }) {
|
|
|
512
701
|
);
|
|
513
702
|
}
|
|
514
703
|
|
|
704
|
+
const sortIcons = {
|
|
705
|
+
asc: lucideReact.ArrowUp,
|
|
706
|
+
desc: lucideReact.ArrowDown,
|
|
707
|
+
none: lucideReact.ArrowUpDown
|
|
708
|
+
};
|
|
709
|
+
const sortLabels = {
|
|
710
|
+
asc: "ascending",
|
|
711
|
+
desc: "descending"
|
|
712
|
+
};
|
|
713
|
+
const sortAnimations = {
|
|
714
|
+
asc: "animate-sort-arrow-up",
|
|
715
|
+
desc: "animate-sort-arrow-down"
|
|
716
|
+
};
|
|
717
|
+
const sortTooltips = {
|
|
718
|
+
asc: "Asc",
|
|
719
|
+
desc: "Desc",
|
|
720
|
+
none: "Sort"
|
|
721
|
+
};
|
|
722
|
+
function DataListSortableTopCell({
|
|
723
|
+
children,
|
|
724
|
+
sortKey,
|
|
725
|
+
sort,
|
|
726
|
+
onSortChange,
|
|
727
|
+
align = "start",
|
|
728
|
+
className,
|
|
729
|
+
...props
|
|
730
|
+
}) {
|
|
731
|
+
const next = sort === "asc" ? "desc" : "asc";
|
|
732
|
+
const SortIcon = sortIcons[sort ?? "none"];
|
|
733
|
+
const label = typeof children === "string" ? children : sortKey;
|
|
734
|
+
const current = sort ? `sorted ${sortLabels[sort]}` : "not sorted";
|
|
735
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
736
|
+
DataListTopCell,
|
|
737
|
+
{
|
|
738
|
+
"data-sort": sort ?? "none",
|
|
739
|
+
className: utils_cn.cn("gap-1 overflow-visible", align === "end" && "flex-row-reverse", className),
|
|
740
|
+
...props,
|
|
741
|
+
children: [
|
|
742
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 truncate", children }),
|
|
743
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
744
|
+
Button.Button,
|
|
745
|
+
{
|
|
746
|
+
variant: "ghost",
|
|
747
|
+
size: "icon-sm",
|
|
748
|
+
"aria-label": `${label}, ${current}, sort ${sortLabels[next]}`,
|
|
749
|
+
tooltip: sortTooltips[sort ?? "none"],
|
|
750
|
+
onClick: () => onSortChange(next, sortKey),
|
|
751
|
+
className: utils_cn.cn("shrink-0", sort ? "text-foreground" : "text-muted-foreground"),
|
|
752
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SortIcon, { className: sort && sortAnimations[sort] }, sort ?? "none")
|
|
753
|
+
}
|
|
754
|
+
)
|
|
755
|
+
]
|
|
756
|
+
}
|
|
757
|
+
);
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
function DataListSpacer({ height }) {
|
|
761
|
+
if (height <= 0) return null;
|
|
762
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-span-full", style: { height } });
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
const DataListSubheader = React.forwardRef(
|
|
766
|
+
({ children, className, ...rest }, ref) => {
|
|
767
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
768
|
+
"div",
|
|
769
|
+
{
|
|
770
|
+
ref,
|
|
771
|
+
className: utils_cn.cn(
|
|
772
|
+
"data-list-subheader relative isolate col-span-full px-3 py-2 text-subheading text-muted-foreground",
|
|
773
|
+
"bg-(--data-list-background)",
|
|
774
|
+
className
|
|
775
|
+
),
|
|
776
|
+
...rest,
|
|
777
|
+
children
|
|
778
|
+
}
|
|
779
|
+
);
|
|
780
|
+
}
|
|
781
|
+
);
|
|
782
|
+
DataListSubheader.displayName = "DataListSubheader";
|
|
783
|
+
|
|
784
|
+
function DataListSubHeading({ children, className }) {
|
|
785
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Txt.Txt, { as: "span", variant: "caption", tone: "faint", className, children });
|
|
786
|
+
}
|
|
787
|
+
|
|
515
788
|
function DataListTop({ children, className, hasLeadingCell, ...props }) {
|
|
516
789
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
517
790
|
"div",
|
|
@@ -527,28 +800,81 @@ function DataListTop({ children, className, hasLeadingCell, ...props }) {
|
|
|
527
800
|
);
|
|
528
801
|
}
|
|
529
802
|
|
|
530
|
-
|
|
803
|
+
const DataListTopCells = React.forwardRef(
|
|
804
|
+
({ children, className, flushLeft, colStart, style, ...rest }, ref) => {
|
|
805
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
806
|
+
"div",
|
|
807
|
+
{
|
|
808
|
+
ref,
|
|
809
|
+
className: utils_cn.cn(
|
|
810
|
+
"pointer-events-none grid grid-cols-subgrid gap-4 px-3 [&>*]:pointer-events-auto",
|
|
811
|
+
!colStart && "data-list-cells col-span-full",
|
|
812
|
+
flushLeft && "pl-0!",
|
|
813
|
+
className
|
|
814
|
+
),
|
|
815
|
+
style: colStart ? { ...style, gridColumn: `${colStart} / -1` } : style,
|
|
816
|
+
...rest,
|
|
817
|
+
children
|
|
818
|
+
}
|
|
819
|
+
);
|
|
820
|
+
}
|
|
821
|
+
);
|
|
822
|
+
DataListTopCells.displayName = "DataListTopCells";
|
|
823
|
+
|
|
824
|
+
const DataList = Object.assign(DataListRoot, {
|
|
825
|
+
Top: DataListTop,
|
|
826
|
+
TopCells: DataListTopCells,
|
|
827
|
+
TopCell: DataListTopCell,
|
|
828
|
+
SortableTopCell: DataListSortableTopCell,
|
|
829
|
+
TopCellWithTooltip: DataListTopCellWithTooltip,
|
|
830
|
+
TopCellSmart: DataListTopCellSmart,
|
|
831
|
+
RowWrapper: DataListRowWrapper,
|
|
832
|
+
RowButton: DataListRowButton,
|
|
833
|
+
RowLink: DataListRowLink,
|
|
834
|
+
RowStatic: DataListRowStatic,
|
|
835
|
+
Cell: DataListCell,
|
|
836
|
+
ActionsCell: DataListActionsCell,
|
|
837
|
+
TextCell: DataListTextCell,
|
|
838
|
+
NameCell: DataListNameCell,
|
|
839
|
+
DescriptionCell: DataListDescriptionCell,
|
|
840
|
+
IdCell: DataListIdCell,
|
|
841
|
+
RowHeaderCell: DataListRowHeaderCell,
|
|
842
|
+
NumberCell: DataListNumberCell,
|
|
843
|
+
DateCell: DataListDateCell,
|
|
844
|
+
CreatedCell: DataListCreatedCell,
|
|
845
|
+
TimeCell: DataListTimeCell,
|
|
846
|
+
SelectCell: DataListSelectCell,
|
|
847
|
+
TopSelectCell: DataListTopSelectCell,
|
|
848
|
+
NoMatch: DataListNoMatch,
|
|
849
|
+
Group: DataListGroup,
|
|
850
|
+
Subheader: DataListSubheader,
|
|
851
|
+
SubHeading: DataListSubHeading,
|
|
852
|
+
Spacer: DataListSpacer,
|
|
853
|
+
NextPageLoading: DataListNextPageLoading,
|
|
854
|
+
Pagination: DataListPagination
|
|
855
|
+
});
|
|
856
|
+
|
|
857
|
+
exports.DataList = DataList;
|
|
531
858
|
exports.DataListCell = DataListCell;
|
|
532
859
|
exports.DataListCreatedCell = DataListCreatedCell;
|
|
533
860
|
exports.DataListDateCell = DataListDateCell;
|
|
534
|
-
exports.DataListDescriptionCell = DataListDescriptionCell;
|
|
535
861
|
exports.DataListIdCell = DataListIdCell;
|
|
536
|
-
exports.
|
|
537
|
-
exports.
|
|
862
|
+
exports.DataListNextPageLoading = DataListNextPageLoading;
|
|
863
|
+
exports.DataListNoMatch = DataListNoMatch;
|
|
538
864
|
exports.DataListRoot = DataListRoot;
|
|
539
|
-
exports.
|
|
540
|
-
exports.
|
|
865
|
+
exports.DataListRowButton = DataListRowButton;
|
|
866
|
+
exports.DataListRowLink = DataListRowLink;
|
|
867
|
+
exports.DataListRowWrapper = DataListRowWrapper;
|
|
868
|
+
exports.DataListSortableTopCell = DataListSortableTopCell;
|
|
869
|
+
exports.DataListSpacer = DataListSpacer;
|
|
870
|
+
exports.DataListSubHeading = DataListSubHeading;
|
|
871
|
+
exports.DataListSubheader = DataListSubheader;
|
|
541
872
|
exports.DataListTextCell = DataListTextCell;
|
|
542
873
|
exports.DataListTimeCell = DataListTimeCell;
|
|
543
874
|
exports.DataListTop = DataListTop;
|
|
544
875
|
exports.DataListTopCell = DataListTopCell;
|
|
545
876
|
exports.DataListTopCellSmart = DataListTopCellSmart;
|
|
546
877
|
exports.DataListTopCellWithTooltip = DataListTopCellWithTooltip;
|
|
547
|
-
exports.DataListTopSelectCell = DataListTopSelectCell;
|
|
548
|
-
exports.dataListRowInteractiveStyles = dataListRowInteractiveStyles;
|
|
549
878
|
exports.dataListRowOuterStyles = dataListRowOuterStyles;
|
|
550
|
-
exports.dataListRowStateStyles = dataListRowStateStyles;
|
|
551
|
-
exports.dataListRowStaticStyles = dataListRowStaticStyles;
|
|
552
|
-
exports.dataListRowStyles = dataListRowStyles;
|
|
553
879
|
exports.splitColumns = splitColumns;
|
|
554
|
-
//# sourceMappingURL=data-list-
|
|
880
|
+
//# sourceMappingURL=data-list-2svaWtkq.cjs.map
|