@flamingo-stack/openframe-frontend-core 0.0.608 → 0.0.609-2113.5913.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-4ZBC4YSQ.cjs → chunk-2JKZKICA.cjs} +33 -33
- package/dist/{chunk-4ZBC4YSQ.cjs.map → chunk-2JKZKICA.cjs.map} +1 -1
- package/dist/{chunk-FK5WVAC3.js → chunk-34BA57EO.js} +2 -2
- package/dist/{chunk-JZBRMXB7.cjs → chunk-3KC4YVCJ.cjs} +17 -17
- package/dist/{chunk-JZBRMXB7.cjs.map → chunk-3KC4YVCJ.cjs.map} +1 -1
- package/dist/{chunk-4Y7LBWRN.cjs → chunk-4BUYTRP6.cjs} +288 -276
- package/dist/chunk-4BUYTRP6.cjs.map +1 -0
- package/dist/{chunk-IK2MM26F.js → chunk-4LVCITQG.js} +5 -5
- package/dist/{chunk-L77QUPE5.cjs → chunk-4PDLKBUA.cjs} +4 -4
- package/dist/{chunk-L77QUPE5.cjs.map → chunk-4PDLKBUA.cjs.map} +1 -1
- package/dist/{chunk-LJMTURDD.cjs → chunk-5QFWF6QN.cjs} +4 -4
- package/dist/{chunk-LJMTURDD.cjs.map → chunk-5QFWF6QN.cjs.map} +1 -1
- package/dist/{chunk-4LGYBV7U.js → chunk-63SY2DW3.js} +5 -5
- package/dist/{chunk-XATCZQGR.js → chunk-6DUHRCDQ.js} +2 -2
- package/dist/{chunk-6T3252KL.cjs → chunk-6LRBV2MA.cjs} +34 -34
- package/dist/{chunk-6T3252KL.cjs.map → chunk-6LRBV2MA.cjs.map} +1 -1
- package/dist/{chunk-PLPRL4YX.js → chunk-D36QAZEX.js} +2 -2
- package/dist/{chunk-ORGNII3T.js → chunk-DPMZASCC.js} +4 -4
- package/dist/{chunk-UCKFVNYV.js → chunk-FJM3UV2Z.js} +4 -4
- package/dist/{chunk-BEAO6SUX.cjs → chunk-GIOP6KQD.cjs} +50 -50
- package/dist/{chunk-BEAO6SUX.cjs.map → chunk-GIOP6KQD.cjs.map} +1 -1
- package/dist/{chunk-WZROKAJT.cjs → chunk-GXN4OKUQ.cjs} +17 -17
- package/dist/{chunk-WZROKAJT.cjs.map → chunk-GXN4OKUQ.cjs.map} +1 -1
- package/dist/{chunk-WHHA3LVL.js → chunk-H4ZECYZH.js} +2 -2
- package/dist/{chunk-FRRNSQOG.cjs → chunk-HMBYQ7WU.cjs} +18 -18
- package/dist/{chunk-FRRNSQOG.cjs.map → chunk-HMBYQ7WU.cjs.map} +1 -1
- package/dist/{chunk-5QHY4HCC.js → chunk-I5TRPSEK.js} +99 -87
- package/dist/chunk-I5TRPSEK.js.map +1 -0
- package/dist/{chunk-YTXKRN6K.cjs → chunk-I67XY2UV.cjs} +3 -3
- package/dist/{chunk-YTXKRN6K.cjs.map → chunk-I67XY2UV.cjs.map} +1 -1
- package/dist/{chunk-C3FIMKT7.cjs → chunk-IVLODGRR.cjs} +3 -3
- package/dist/{chunk-C3FIMKT7.cjs.map → chunk-IVLODGRR.cjs.map} +1 -1
- package/dist/{chunk-JIPSQ4P7.cjs → chunk-JYCVC6OX.cjs} +10 -10
- package/dist/{chunk-JIPSQ4P7.cjs.map → chunk-JYCVC6OX.cjs.map} +1 -1
- package/dist/{chunk-BKZCYRGG.js → chunk-KKQ4FI43.js} +2 -2
- package/dist/{chunk-7EETXACY.cjs → chunk-LBIE5HAR.cjs} +13 -13
- package/dist/{chunk-7EETXACY.cjs.map → chunk-LBIE5HAR.cjs.map} +1 -1
- package/dist/{chunk-RN3DBEWX.js → chunk-MYTBZRRX.js} +2 -2
- package/dist/{chunk-MDXSLZML.js → chunk-OYHHBSJU.js} +2 -2
- package/dist/{chunk-N25MIHYE.cjs → chunk-TXTSCXZZ.cjs} +3 -3
- package/dist/{chunk-N25MIHYE.cjs.map → chunk-TXTSCXZZ.cjs.map} +1 -1
- package/dist/{chunk-AQGQVYDC.js → chunk-X5PUF7LB.js} +2 -2
- package/dist/{chunk-7ADEWG65.cjs → chunk-XJ3CHQXO.cjs} +3 -3
- package/dist/{chunk-7ADEWG65.cjs.map → chunk-XJ3CHQXO.cjs.map} +1 -1
- package/dist/{chunk-HONE2UX4.js → chunk-XKWNSPN4.js} +2 -2
- package/dist/{chunk-N6GFOA4J.js → chunk-YFF2NLYR.js} +3 -3
- package/dist/components/case-studies/index.cjs +8 -8
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/help-center-pages/index.cjs +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +31 -31
- package/dist/components/index.js +12 -12
- package/dist/components/layout/list-page-layout.d.ts +1 -1
- package/dist/components/layout/list-page-layout.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +21 -21
- package/dist/components/meeting-scheduler/index.js +1 -1
- package/dist/components/navigation/index.cjs +5 -5
- package/dist/components/navigation/index.js +4 -4
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/data-table/data-table-body.d.ts +20 -1
- package/dist/components/ui/data-table/data-table-body.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-row.d.ts +11 -2
- package/dist/components/ui/data-table/data-table-row.d.ts.map +1 -1
- package/dist/components/ui/data-table/index.d.ts +2 -2
- package/dist/components/ui/data-table/index.d.ts.map +1 -1
- package/dist/components/ui/data-table/types.d.ts +9 -0
- package/dist/components/ui/data-table/types.d.ts.map +1 -1
- package/dist/components/ui/data-table/use-table-motion.d.ts.map +1 -0
- package/dist/components/ui/filter-modal.d.ts +1 -1
- package/dist/components/ui/filter-modal.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +2 -2
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/query-report-table/query-report-table.d.ts.map +1 -1
- package/dist/components/ui/table/table.d.ts.map +1 -1
- package/dist/components/ui/table/types.d.ts +2 -5
- package/dist/components/ui/table/types.d.ts.map +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.js +5 -5
- package/package.json +1 -1
- package/src/components/layout/list-page-layout.tsx +1 -1
- package/src/components/ui/data-table/data-table-body.tsx +53 -18
- package/src/components/ui/data-table/data-table-row.tsx +26 -3
- package/src/components/ui/data-table/index.ts +1 -1
- package/src/components/ui/data-table/types.ts +10 -0
- package/src/components/ui/filter-modal.tsx +1 -1
- package/src/components/ui/query-report-table/query-report-table.tsx +6 -2
- package/src/components/ui/table/table.tsx +1 -1
- package/src/components/ui/table/types.ts +4 -5
- package/src/stories/DataTable.stories.tsx +95 -0
- package/src/stories/FilterModal.stories.tsx +1 -1
- package/src/stories/ListPageLayout.stories.tsx +191 -112
- package/src/stories/PageLayout.stories.tsx +21 -7
- package/dist/chunk-4Y7LBWRN.cjs.map +0 -1
- package/dist/chunk-5QHY4HCC.js.map +0 -1
- package/dist/components/ui/table/use-table-motion.d.ts.map +0 -1
- /package/dist/{chunk-FK5WVAC3.js.map → chunk-34BA57EO.js.map} +0 -0
- /package/dist/{chunk-IK2MM26F.js.map → chunk-4LVCITQG.js.map} +0 -0
- /package/dist/{chunk-4LGYBV7U.js.map → chunk-63SY2DW3.js.map} +0 -0
- /package/dist/{chunk-XATCZQGR.js.map → chunk-6DUHRCDQ.js.map} +0 -0
- /package/dist/{chunk-PLPRL4YX.js.map → chunk-D36QAZEX.js.map} +0 -0
- /package/dist/{chunk-ORGNII3T.js.map → chunk-DPMZASCC.js.map} +0 -0
- /package/dist/{chunk-UCKFVNYV.js.map → chunk-FJM3UV2Z.js.map} +0 -0
- /package/dist/{chunk-WHHA3LVL.js.map → chunk-H4ZECYZH.js.map} +0 -0
- /package/dist/{chunk-BKZCYRGG.js.map → chunk-KKQ4FI43.js.map} +0 -0
- /package/dist/{chunk-RN3DBEWX.js.map → chunk-MYTBZRRX.js.map} +0 -0
- /package/dist/{chunk-MDXSLZML.js.map → chunk-OYHHBSJU.js.map} +0 -0
- /package/dist/{chunk-AQGQVYDC.js.map → chunk-X5PUF7LB.js.map} +0 -0
- /package/dist/{chunk-HONE2UX4.js.map → chunk-XKWNSPN4.js.map} +0 -0
- /package/dist/{chunk-N6GFOA4J.js.map → chunk-YFF2NLYR.js.map} +0 -0
- /package/dist/components/ui/{table → data-table}/use-table-motion.d.ts +0 -0
- /package/src/components/ui/{table → data-table}/.use-table-motion.md +0 -0
- /package/src/components/ui/{table → data-table}/use-table-motion.ts +0 -0
|
@@ -13039,6 +13039,24 @@ function PlaceholderRows({
|
|
|
13039
13039
|
)) });
|
|
13040
13040
|
}
|
|
13041
13041
|
|
|
13042
|
+
// src/components/ui/data-table/use-table-motion.ts
|
|
13043
|
+
import { useEffect as useEffect15, useState as useState30 } from "react";
|
|
13044
|
+
function useTableMotion(enabled) {
|
|
13045
|
+
const [runtime, setRuntime] = useState30(null);
|
|
13046
|
+
useEffect15(() => {
|
|
13047
|
+
if (!enabled || runtime) return void 0;
|
|
13048
|
+
let active = true;
|
|
13049
|
+
import("framer-motion").then((m) => {
|
|
13050
|
+
if (active) setRuntime({ motionDiv: m.motion.div, LayoutGroup: m.LayoutGroup });
|
|
13051
|
+
}).catch(() => {
|
|
13052
|
+
});
|
|
13053
|
+
return () => {
|
|
13054
|
+
active = false;
|
|
13055
|
+
};
|
|
13056
|
+
}, [enabled, runtime]);
|
|
13057
|
+
return enabled ? runtime : null;
|
|
13058
|
+
}
|
|
13059
|
+
|
|
13042
13060
|
// src/components/ui/table/table-empty-state.tsx
|
|
13043
13061
|
import { jsx as jsx115 } from "react/jsx-runtime";
|
|
13044
13062
|
function TableEmptyState({ message, description, emptyState, icon, action, className }) {
|
|
@@ -13459,24 +13477,6 @@ function TableRow({
|
|
|
13459
13477
|
);
|
|
13460
13478
|
}
|
|
13461
13479
|
|
|
13462
|
-
// src/components/ui/table/use-table-motion.ts
|
|
13463
|
-
import { useEffect as useEffect15, useState as useState30 } from "react";
|
|
13464
|
-
function useTableMotion(enabled) {
|
|
13465
|
-
const [runtime, setRuntime] = useState30(null);
|
|
13466
|
-
useEffect15(() => {
|
|
13467
|
-
if (!enabled || runtime) return void 0;
|
|
13468
|
-
let active = true;
|
|
13469
|
-
import("framer-motion").then((m) => {
|
|
13470
|
-
if (active) setRuntime({ motionDiv: m.motion.div, LayoutGroup: m.LayoutGroup });
|
|
13471
|
-
}).catch(() => {
|
|
13472
|
-
});
|
|
13473
|
-
return () => {
|
|
13474
|
-
active = false;
|
|
13475
|
-
};
|
|
13476
|
-
}, [enabled, runtime]);
|
|
13477
|
-
return enabled ? runtime : null;
|
|
13478
|
-
}
|
|
13479
|
-
|
|
13480
13480
|
// src/components/ui/table/table.tsx
|
|
13481
13481
|
import { Fragment as Fragment18, jsx as jsx121, jsxs as jsxs93 } from "react/jsx-runtime";
|
|
13482
13482
|
function injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref, actionsColumnWidth) {
|
|
@@ -13838,9 +13838,24 @@ function TableTimestampCell({
|
|
|
13838
13838
|
// src/components/ui/query-report-table/query-report-table.tsx
|
|
13839
13839
|
import { useMemo as useMemo12 } from "react";
|
|
13840
13840
|
|
|
13841
|
+
// src/components/ui/data-table/data-table-empty.tsx
|
|
13842
|
+
import { jsx as jsx124 } from "react/jsx-runtime";
|
|
13843
|
+
function DataTableEmpty({ className, ...props }) {
|
|
13844
|
+
return /* @__PURE__ */ jsx124(
|
|
13845
|
+
NoData,
|
|
13846
|
+
{
|
|
13847
|
+
icon: /* @__PURE__ */ jsx124(SearchIcon, {}),
|
|
13848
|
+
title: "No results found",
|
|
13849
|
+
description: "Try adjusting your search or filters",
|
|
13850
|
+
...props,
|
|
13851
|
+
className: cn("py-[var(--spacing-system-xxl)]", className)
|
|
13852
|
+
}
|
|
13853
|
+
);
|
|
13854
|
+
}
|
|
13855
|
+
|
|
13841
13856
|
// src/components/ui/query-report-table/query-report-table-header.tsx
|
|
13842
13857
|
import { useRef as useRef17, useState as useState31, useCallback as useCallback11 } from "react";
|
|
13843
|
-
import { jsx as
|
|
13858
|
+
import { jsx as jsx125, jsxs as jsxs95 } from "react/jsx-runtime";
|
|
13844
13859
|
function QueryReportTableHeader({
|
|
13845
13860
|
columns,
|
|
13846
13861
|
columnWidth,
|
|
@@ -13848,7 +13863,7 @@ function QueryReportTableHeader({
|
|
|
13848
13863
|
className
|
|
13849
13864
|
}) {
|
|
13850
13865
|
const isCompact = variant === "compact";
|
|
13851
|
-
return /* @__PURE__ */
|
|
13866
|
+
return /* @__PURE__ */ jsx125("div", { className: cn("flex items-center gap-4 px-4", isCompact ? "border-b border-ods-border py-2" : "", className), children: columns.map((column) => /* @__PURE__ */ jsx125(TruncatedHeaderCell, { value: column, width: columnWidth }, column)) });
|
|
13852
13867
|
}
|
|
13853
13868
|
function TruncatedHeaderCell({ value, width }) {
|
|
13854
13869
|
const textRef = useRef17(null);
|
|
@@ -13859,15 +13874,15 @@ function TruncatedHeaderCell({ value, width }) {
|
|
|
13859
13874
|
setIsTruncated(el.scrollWidth > el.clientWidth);
|
|
13860
13875
|
}
|
|
13861
13876
|
}, []);
|
|
13862
|
-
return /* @__PURE__ */
|
|
13863
|
-
/* @__PURE__ */
|
|
13864
|
-
/* @__PURE__ */
|
|
13877
|
+
return /* @__PURE__ */ jsx125(TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ jsxs95(Tooltip, { open: isTruncated ? void 0 : false, children: [
|
|
13878
|
+
/* @__PURE__ */ jsx125(TooltipTrigger, { asChild: true, onMouseEnter: checkTruncation, children: /* @__PURE__ */ jsx125("div", { className: "flex shrink-0 items-center", style: { width, height: 48 }, children: /* @__PURE__ */ jsx125("div", { ref: textRef, className: "truncate text-ods-text-secondary text-h5", children: value }) }) }),
|
|
13879
|
+
/* @__PURE__ */ jsx125(TooltipContent, { side: "bottom", className: "max-w-xs break-words", children: value })
|
|
13865
13880
|
] }) });
|
|
13866
13881
|
}
|
|
13867
13882
|
|
|
13868
13883
|
// src/components/ui/query-report-table/query-report-table-row.tsx
|
|
13869
13884
|
import { useRef as useRef18, useState as useState32, useCallback as useCallback12 } from "react";
|
|
13870
|
-
import { jsx as
|
|
13885
|
+
import { jsx as jsx126, jsxs as jsxs96 } from "react/jsx-runtime";
|
|
13871
13886
|
function QueryReportTableRow({
|
|
13872
13887
|
row,
|
|
13873
13888
|
columns,
|
|
@@ -13876,22 +13891,22 @@ function QueryReportTableRow({
|
|
|
13876
13891
|
className
|
|
13877
13892
|
}) {
|
|
13878
13893
|
const isCompact = variant === "compact";
|
|
13879
|
-
return /* @__PURE__ */
|
|
13894
|
+
return /* @__PURE__ */ jsx126(
|
|
13880
13895
|
"div",
|
|
13881
13896
|
{
|
|
13882
13897
|
className: cn(
|
|
13883
13898
|
isCompact ? "border-b border-ods-border" : "relative overflow-hidden rounded-[6px] border border-ods-border bg-ods-card",
|
|
13884
13899
|
className
|
|
13885
13900
|
),
|
|
13886
|
-
children: /* @__PURE__ */
|
|
13901
|
+
children: /* @__PURE__ */ jsx126("div", { className: cn("flex items-center gap-4 px-4", isCompact ? "h-[56px]" : "h-[80px]"), children: columns.map((column) => {
|
|
13887
13902
|
const value = row[column];
|
|
13888
13903
|
const displayValue = value === null || value === void 0 ? "-" : String(value);
|
|
13889
|
-
return /* @__PURE__ */
|
|
13904
|
+
return /* @__PURE__ */ jsx126(
|
|
13890
13905
|
"div",
|
|
13891
13906
|
{
|
|
13892
13907
|
className: "flex shrink-0 flex-col justify-center overflow-hidden",
|
|
13893
13908
|
style: { width: columnWidth },
|
|
13894
|
-
children: /* @__PURE__ */
|
|
13909
|
+
children: /* @__PURE__ */ jsx126(
|
|
13895
13910
|
TruncatedCell,
|
|
13896
13911
|
{
|
|
13897
13912
|
className: cn("text-ods-text-primary", isCompact ? "text-h6" : "text-h4"),
|
|
@@ -13914,14 +13929,14 @@ function TruncatedCell({ value, className }) {
|
|
|
13914
13929
|
setIsTruncated(el.scrollWidth > el.clientWidth);
|
|
13915
13930
|
}
|
|
13916
13931
|
}, []);
|
|
13917
|
-
return /* @__PURE__ */
|
|
13918
|
-
/* @__PURE__ */
|
|
13919
|
-
/* @__PURE__ */
|
|
13932
|
+
return /* @__PURE__ */ jsx126(TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ jsxs96(Tooltip, { open: isTruncated ? void 0 : false, children: [
|
|
13933
|
+
/* @__PURE__ */ jsx126(TooltipTrigger, { asChild: true, onMouseEnter: checkTruncation, children: /* @__PURE__ */ jsx126("span", { ref: textRef, className: cn("block truncate", className), children: value }) }),
|
|
13934
|
+
/* @__PURE__ */ jsx126(TooltipContent, { side: "top", className: "max-w-xs break-words", children: value })
|
|
13920
13935
|
] }) });
|
|
13921
13936
|
}
|
|
13922
13937
|
|
|
13923
13938
|
// src/components/ui/query-report-table/query-report-table-skeleton.tsx
|
|
13924
|
-
import { jsx as
|
|
13939
|
+
import { jsx as jsx127, jsxs as jsxs97 } from "react/jsx-runtime";
|
|
13925
13940
|
function QueryReportTableSkeleton({
|
|
13926
13941
|
rows,
|
|
13927
13942
|
columns,
|
|
@@ -13931,15 +13946,15 @@ function QueryReportTableSkeleton({
|
|
|
13931
13946
|
}) {
|
|
13932
13947
|
const isCompact = variant === "compact";
|
|
13933
13948
|
return /* @__PURE__ */ jsxs97("div", { className: cn("flex flex-col", isCompact ? "gap-0" : "gap-[var(--spacing-system-xs)]", className), children: [
|
|
13934
|
-
/* @__PURE__ */
|
|
13935
|
-
Array.from({ length: rows }).map((_, rowIndex) => /* @__PURE__ */
|
|
13949
|
+
/* @__PURE__ */ jsx127("div", { className: cn("flex items-center gap-4 px-4", isCompact ? "border-b border-ods-border py-2" : ""), children: Array.from({ length: columns }).map((_, i) => /* @__PURE__ */ jsx127("div", { className: "flex shrink-0 items-center", style: { width: columnWidth, height: 48 }, children: /* @__PURE__ */ jsx127("div", { className: "h-4 w-3/4 animate-pulse rounded bg-ods-bg-surface" }) }, `header-${i}`)) }),
|
|
13950
|
+
Array.from({ length: rows }).map((_, rowIndex) => /* @__PURE__ */ jsx127(
|
|
13936
13951
|
"div",
|
|
13937
13952
|
{
|
|
13938
13953
|
className: cn(
|
|
13939
13954
|
"animate-pulse",
|
|
13940
13955
|
isCompact ? "border-b border-ods-border" : "relative overflow-hidden rounded-[6px] border border-ods-border bg-ods-card"
|
|
13941
13956
|
),
|
|
13942
|
-
children: /* @__PURE__ */
|
|
13957
|
+
children: /* @__PURE__ */ jsx127("div", { className: cn("flex items-center gap-4 px-4", isCompact ? "h-[56px]" : "h-[80px]"), children: Array.from({ length: columns }).map((_cell, colIndex) => /* @__PURE__ */ jsx127("div", { className: "shrink-0", style: { width: columnWidth }, children: /* @__PURE__ */ jsx127(
|
|
13943
13958
|
"div",
|
|
13944
13959
|
{
|
|
13945
13960
|
className: cn("rounded bg-ods-bg-surface", isCompact ? "h-4" : "h-5"),
|
|
@@ -13993,7 +14008,7 @@ function exportToCSV(data, columns, filename) {
|
|
|
13993
14008
|
}
|
|
13994
14009
|
|
|
13995
14010
|
// src/components/ui/query-report-table/query-report-table.tsx
|
|
13996
|
-
import { jsx as
|
|
14011
|
+
import { jsx as jsx128, jsxs as jsxs98 } from "react/jsx-runtime";
|
|
13997
14012
|
function QueryReportTable({
|
|
13998
14013
|
title,
|
|
13999
14014
|
data,
|
|
@@ -14034,22 +14049,22 @@ function QueryReportTable({
|
|
|
14034
14049
|
} = useHorizontalScrollbar();
|
|
14035
14050
|
return /* @__PURE__ */ jsxs98("div", { className: cn("flex w-full flex-col", isCompact ? "gap-0" : "gap-[var(--spacing-system-l)]", className), children: [
|
|
14036
14051
|
!isCompact && (title || headerActions || showExport && data.length > 0) && /* @__PURE__ */ jsxs98("div", { className: "flex items-end justify-between pt-[var(--spacing-system-l)]", children: [
|
|
14037
|
-
/* @__PURE__ */
|
|
14052
|
+
/* @__PURE__ */ jsx128("h2", { className: "text-ods-text-primary text-h2", children: title }),
|
|
14038
14053
|
/* @__PURE__ */ jsxs98("div", { className: "flex items-center gap-[var(--spacing-system-s)]", children: [
|
|
14039
14054
|
headerActions,
|
|
14040
|
-
showExport && data.length > 0 && /* @__PURE__ */
|
|
14055
|
+
showExport && data.length > 0 && /* @__PURE__ */ jsx128(
|
|
14041
14056
|
Button,
|
|
14042
14057
|
{
|
|
14043
14058
|
className: "bg-ods-card max-md:hidden",
|
|
14044
14059
|
variant: "outline",
|
|
14045
|
-
leftIcon: /* @__PURE__ */
|
|
14060
|
+
leftIcon: /* @__PURE__ */ jsx128(Download02Icon, { size: 18, className: "text-ods-text-secondary" }),
|
|
14046
14061
|
onClick: handleExport,
|
|
14047
14062
|
children: "Export CSV"
|
|
14048
14063
|
}
|
|
14049
14064
|
)
|
|
14050
14065
|
] })
|
|
14051
14066
|
] }),
|
|
14052
|
-
loading && /* @__PURE__ */
|
|
14067
|
+
loading && /* @__PURE__ */ jsx128(
|
|
14053
14068
|
QueryReportTableSkeleton,
|
|
14054
14069
|
{
|
|
14055
14070
|
rows: skeletonRows,
|
|
@@ -14058,16 +14073,16 @@ function QueryReportTable({
|
|
|
14058
14073
|
variant
|
|
14059
14074
|
}
|
|
14060
14075
|
),
|
|
14061
|
-
!loading && data.length === 0 && /* @__PURE__ */
|
|
14076
|
+
!loading && data.length === 0 && (emptyMessage != null ? /* @__PURE__ */ jsx128(DataTableEmpty, { title: emptyMessage, description: void 0 }) : /* @__PURE__ */ jsx128(DataTableEmpty, {})),
|
|
14062
14077
|
!loading && data.length > 0 && /* @__PURE__ */ jsxs98("div", { className: "flex flex-col", children: [
|
|
14063
|
-
!isCompact && thumbRatio > 0 && /* @__PURE__ */
|
|
14078
|
+
!isCompact && thumbRatio > 0 && /* @__PURE__ */ jsx128(
|
|
14064
14079
|
"div",
|
|
14065
14080
|
{
|
|
14066
14081
|
ref: trackRef,
|
|
14067
14082
|
className: "relative h-2 cursor-pointer rounded-full bg-ods-border",
|
|
14068
14083
|
onClick: onTrackClick,
|
|
14069
14084
|
onWheel: onTrackWheel,
|
|
14070
|
-
children: /* @__PURE__ */
|
|
14085
|
+
children: /* @__PURE__ */ jsx128(
|
|
14071
14086
|
"div",
|
|
14072
14087
|
{
|
|
14073
14088
|
ref: thumbRef,
|
|
@@ -14085,9 +14100,9 @@ function QueryReportTable({
|
|
|
14085
14100
|
}
|
|
14086
14101
|
),
|
|
14087
14102
|
/* @__PURE__ */ jsxs98("div", { className: "relative", children: [
|
|
14088
|
-
/* @__PURE__ */
|
|
14089
|
-
/* @__PURE__ */
|
|
14090
|
-
/* @__PURE__ */
|
|
14103
|
+
/* @__PURE__ */ jsx128("div", { ref: scrollRef, className: cn("overflow-x-auto", tableClassName), onScroll, children: /* @__PURE__ */ jsxs98("div", { style: { minWidth: tableMinWidth }, children: [
|
|
14104
|
+
/* @__PURE__ */ jsx128(QueryReportTableHeader, { columns, columnWidth, variant }),
|
|
14105
|
+
/* @__PURE__ */ jsx128("div", { className: cn("flex flex-col", isCompact ? "gap-0" : "gap-[var(--spacing-system-xs)]"), children: data.map((row, index) => /* @__PURE__ */ jsx128(
|
|
14091
14106
|
QueryReportTableRow,
|
|
14092
14107
|
{
|
|
14093
14108
|
row,
|
|
@@ -14098,28 +14113,13 @@ function QueryReportTable({
|
|
|
14098
14113
|
index
|
|
14099
14114
|
)) })
|
|
14100
14115
|
] }) }),
|
|
14101
|
-
!isCompact && canScrollLeft && /* @__PURE__ */
|
|
14102
|
-
!isCompact && canScrollRight && /* @__PURE__ */
|
|
14116
|
+
!isCompact && canScrollLeft && /* @__PURE__ */ jsx128("div", { className: "pointer-events-none absolute inset-y-0 left-0 w-10 bg-gradient-to-r from-ods-bg to-transparent" }),
|
|
14117
|
+
!isCompact && canScrollRight && /* @__PURE__ */ jsx128("div", { className: "pointer-events-none absolute inset-y-0 right-0 w-10 bg-gradient-to-l from-ods-bg to-transparent" })
|
|
14103
14118
|
] })
|
|
14104
14119
|
] })
|
|
14105
14120
|
] });
|
|
14106
14121
|
}
|
|
14107
14122
|
|
|
14108
|
-
// src/components/ui/data-table/data-table-empty.tsx
|
|
14109
|
-
import { jsx as jsx128 } from "react/jsx-runtime";
|
|
14110
|
-
function DataTableEmpty({ className, ...props }) {
|
|
14111
|
-
return /* @__PURE__ */ jsx128(
|
|
14112
|
-
NoData,
|
|
14113
|
-
{
|
|
14114
|
-
icon: /* @__PURE__ */ jsx128(SearchIcon, {}),
|
|
14115
|
-
title: "No results found",
|
|
14116
|
-
description: "Try adjusting your search or filters",
|
|
14117
|
-
...props,
|
|
14118
|
-
className: cn("py-[var(--spacing-system-xxl)]", className)
|
|
14119
|
-
}
|
|
14120
|
-
);
|
|
14121
|
-
}
|
|
14122
|
-
|
|
14123
14123
|
// src/components/ui/data-table/data-table-row.tsx
|
|
14124
14124
|
import { flexRender } from "@tanstack/react-table";
|
|
14125
14125
|
import { memo as memo4, useCallback as useCallback13, useRef as useRef19 } from "react";
|
|
@@ -14132,12 +14132,17 @@ function DataTableRowImpl({
|
|
|
14132
14132
|
autoHeight,
|
|
14133
14133
|
rowHeightClassName,
|
|
14134
14134
|
className,
|
|
14135
|
-
subRow
|
|
14135
|
+
subRow,
|
|
14136
|
+
animateRowReorder,
|
|
14137
|
+
motionDiv
|
|
14136
14138
|
}) {
|
|
14137
14139
|
const hasSubRow = subRow != null && subRow !== false;
|
|
14138
14140
|
const isLinkMode = Boolean(href) && !onClick;
|
|
14139
14141
|
const isWholeCardLink = isLinkMode && !hasSubRow;
|
|
14140
14142
|
const containerRef = useRef19(null);
|
|
14143
|
+
const animate = Boolean(animateRowReorder && motionDiv);
|
|
14144
|
+
const Card2 = animate && motionDiv ? motionDiv : "div";
|
|
14145
|
+
const motionProps = animate ? { layout: "position", transition: { layout: { duration: 0.35, ease: [0.22, 1, 0.36, 1] } } } : {};
|
|
14141
14146
|
const handleClick = useCallback13(
|
|
14142
14147
|
(e) => {
|
|
14143
14148
|
const target = e.target;
|
|
@@ -14205,11 +14210,12 @@ function DataTableRowImpl({
|
|
|
14205
14210
|
);
|
|
14206
14211
|
}
|
|
14207
14212
|
return /* @__PURE__ */ jsxs99(
|
|
14208
|
-
|
|
14213
|
+
Card2,
|
|
14209
14214
|
{
|
|
14210
14215
|
ref: containerRef,
|
|
14211
14216
|
className: containerClassName,
|
|
14212
14217
|
onClick: onClick ? handleClick : void 0,
|
|
14218
|
+
...motionProps,
|
|
14213
14219
|
children: [
|
|
14214
14220
|
isLinkMode && href ? /* @__PURE__ */ jsx129(
|
|
14215
14221
|
next_link_default,
|
|
@@ -14252,10 +14258,12 @@ function DataTableBody({
|
|
|
14252
14258
|
onRowClick,
|
|
14253
14259
|
rowHref,
|
|
14254
14260
|
minRows,
|
|
14255
|
-
renderSubRow
|
|
14261
|
+
renderSubRow,
|
|
14262
|
+
animateRowReorder
|
|
14256
14263
|
}) {
|
|
14257
14264
|
const table = useDataTableContext();
|
|
14258
14265
|
const rows = table.getRowModel().rows;
|
|
14266
|
+
const tableMotion = useTableMotion(Boolean(animateRowReorder));
|
|
14259
14267
|
if (loading && rows.length === 0) {
|
|
14260
14268
|
return /* @__PURE__ */ jsx130("div", { className: cn("flex w-full flex-col gap-[var(--spacing-system-xsf)]", className), children: /* @__PURE__ */ jsx130(DataTableSkeleton, { rows: skeletonRows, rowHeightClassName }) });
|
|
14261
14269
|
}
|
|
@@ -14275,26 +14283,30 @@ function DataTableBody({
|
|
|
14275
14283
|
return /* @__PURE__ */ jsx130("div", { className: cn("flex w-full flex-col gap-[var(--spacing-system-xsf)]", className), children: empty });
|
|
14276
14284
|
}
|
|
14277
14285
|
const padCount = minRows ? Math.max(0, minRows - rows.length) : 0;
|
|
14286
|
+
const rowNodes = rows.map((row, index) => {
|
|
14287
|
+
const item = row.original;
|
|
14288
|
+
const href = rowHref?.(item) ?? void 0;
|
|
14289
|
+
const cls = typeof rowClassName === "function" ? rowClassName(item, index) : rowClassName;
|
|
14290
|
+
return /* @__PURE__ */ jsx130(
|
|
14291
|
+
DataTableRow,
|
|
14292
|
+
{
|
|
14293
|
+
row,
|
|
14294
|
+
onClick: onRowClick,
|
|
14295
|
+
href,
|
|
14296
|
+
compact,
|
|
14297
|
+
autoHeight,
|
|
14298
|
+
rowHeightClassName,
|
|
14299
|
+
className: cls,
|
|
14300
|
+
subRow: renderSubRow?.(item),
|
|
14301
|
+
animateRowReorder,
|
|
14302
|
+
motionDiv: tableMotion?.motionDiv
|
|
14303
|
+
},
|
|
14304
|
+
row.id
|
|
14305
|
+
);
|
|
14306
|
+
});
|
|
14307
|
+
const LayoutGroup = tableMotion?.LayoutGroup;
|
|
14278
14308
|
return /* @__PURE__ */ jsxs100("div", { className: cn("flex w-full flex-col gap-[var(--spacing-system-xsf)]", className), children: [
|
|
14279
|
-
|
|
14280
|
-
const item = row.original;
|
|
14281
|
-
const href = rowHref?.(item) ?? void 0;
|
|
14282
|
-
const cls = typeof rowClassName === "function" ? rowClassName(item, index) : rowClassName;
|
|
14283
|
-
return /* @__PURE__ */ jsx130(
|
|
14284
|
-
DataTableRow,
|
|
14285
|
-
{
|
|
14286
|
-
row,
|
|
14287
|
-
onClick: onRowClick,
|
|
14288
|
-
href,
|
|
14289
|
-
compact,
|
|
14290
|
-
autoHeight,
|
|
14291
|
-
rowHeightClassName,
|
|
14292
|
-
className: cls,
|
|
14293
|
-
subRow: renderSubRow?.(item)
|
|
14294
|
-
},
|
|
14295
|
-
row.id
|
|
14296
|
-
);
|
|
14297
|
-
}),
|
|
14309
|
+
animateRowReorder && LayoutGroup ? /* @__PURE__ */ jsx130(LayoutGroup, { children: rowNodes }) : rowNodes,
|
|
14298
14310
|
padCount > 0 && /* @__PURE__ */ jsx130(PlaceholderRows, { count: padCount, rowHeightClassName })
|
|
14299
14311
|
] });
|
|
14300
14312
|
}
|
|
@@ -30724,13 +30736,13 @@ export {
|
|
|
30724
30736
|
Table,
|
|
30725
30737
|
TableDescriptionCell,
|
|
30726
30738
|
TableTimestampCell,
|
|
30739
|
+
DataTableEmpty,
|
|
30727
30740
|
QueryReportTableHeader,
|
|
30728
30741
|
QueryReportTableRow,
|
|
30729
30742
|
QueryReportTableSkeleton,
|
|
30730
30743
|
deriveColumns,
|
|
30731
30744
|
exportToCSV,
|
|
30732
30745
|
QueryReportTable,
|
|
30733
|
-
DataTableEmpty,
|
|
30734
30746
|
DataTableRow,
|
|
30735
30747
|
DataTableBody,
|
|
30736
30748
|
DataTableCursorFooter,
|
|
@@ -30785,4 +30797,4 @@ export {
|
|
|
30785
30797
|
LazyMount,
|
|
30786
30798
|
IconTile
|
|
30787
30799
|
};
|
|
30788
|
-
//# sourceMappingURL=chunk-
|
|
30800
|
+
//# sourceMappingURL=chunk-I5TRPSEK.js.map
|