@flamingo-stack/openframe-frontend-core 0.0.596 → 0.0.597-snapshot.20260906135520

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 (119) hide show
  1. package/dist/{chunk-IMIR5V6E.cjs → chunk-2SYX2Z7R.cjs} +18 -18
  2. package/dist/{chunk-IMIR5V6E.cjs.map → chunk-2SYX2Z7R.cjs.map} +1 -1
  3. package/dist/{chunk-WRWXND3X.cjs → chunk-3WSS7C2V.cjs} +10 -10
  4. package/dist/{chunk-WRWXND3X.cjs.map → chunk-3WSS7C2V.cjs.map} +1 -1
  5. package/dist/{chunk-AVIZUQRW.js → chunk-75YW6ET4.js} +2 -2
  6. package/dist/{chunk-PTXOWFRB.js → chunk-BK6CCQG6.js} +5 -5
  7. package/dist/{chunk-B3NX4GZS.cjs → chunk-BPVHDDNY.cjs} +3 -3
  8. package/dist/{chunk-B3NX4GZS.cjs.map → chunk-BPVHDDNY.cjs.map} +1 -1
  9. package/dist/{chunk-DVSTM6QK.cjs → chunk-DAPOBLAK.cjs} +33 -33
  10. package/dist/{chunk-DVSTM6QK.cjs.map → chunk-DAPOBLAK.cjs.map} +1 -1
  11. package/dist/{chunk-EQ3DAGD7.cjs → chunk-DI3SVVY5.cjs} +34 -34
  12. package/dist/{chunk-EQ3DAGD7.cjs.map → chunk-DI3SVVY5.cjs.map} +1 -1
  13. package/dist/{chunk-MF324FSD.js → chunk-GHYFVT52.js} +436 -383
  14. package/dist/chunk-GHYFVT52.js.map +1 -0
  15. package/dist/{chunk-N7SFQMCH.js → chunk-HLPAVYK7.js} +2 -2
  16. package/dist/{chunk-AYVTVUZT.cjs → chunk-HWAYIK4U.cjs} +13 -13
  17. package/dist/{chunk-AYVTVUZT.cjs.map → chunk-HWAYIK4U.cjs.map} +1 -1
  18. package/dist/{chunk-YNO4DEXK.cjs → chunk-JVZVVZOZ.cjs} +4 -4
  19. package/dist/{chunk-YNO4DEXK.cjs.map → chunk-JVZVVZOZ.cjs.map} +1 -1
  20. package/dist/{chunk-GOD47MJM.js → chunk-KHOZ52NR.js} +3 -3
  21. package/dist/{chunk-SSSZ64YG.js → chunk-NIAMPMKV.js} +2 -2
  22. package/dist/{chunk-FCNICDWP.cjs → chunk-P24VPJTT.cjs} +3 -3
  23. package/dist/{chunk-FCNICDWP.cjs.map → chunk-P24VPJTT.cjs.map} +1 -1
  24. package/dist/{chunk-7L5ROE3Z.js → chunk-PTK3CINU.js} +2 -2
  25. package/dist/{chunk-TRJJMZSQ.js → chunk-PX4IPM7Q.js} +2 -2
  26. package/dist/{chunk-4S5E7NOM.cjs → chunk-QD64Q4I2.cjs} +3 -3
  27. package/dist/{chunk-4S5E7NOM.cjs.map → chunk-QD64Q4I2.cjs.map} +1 -1
  28. package/dist/{chunk-R5IWJONE.cjs → chunk-QIKBISZM.cjs} +282 -229
  29. package/dist/chunk-QIKBISZM.cjs.map +1 -0
  30. package/dist/{chunk-VD3ZAA2O.js → chunk-R4UV366K.js} +2 -2
  31. package/dist/{chunk-MGBWMZEL.js → chunk-SE3PVN64.js} +2 -2
  32. package/dist/{chunk-HFJSBIXL.js → chunk-TZPVRWPU.js} +2 -2
  33. package/dist/{chunk-OEDUVTPT.cjs → chunk-UE7OFLLS.cjs} +4 -4
  34. package/dist/{chunk-OEDUVTPT.cjs.map → chunk-UE7OFLLS.cjs.map} +1 -1
  35. package/dist/{chunk-SXVGFJ24.cjs → chunk-UG7JNQZY.cjs} +17 -17
  36. package/dist/{chunk-SXVGFJ24.cjs.map → chunk-UG7JNQZY.cjs.map} +1 -1
  37. package/dist/{chunk-FV5VGJE6.cjs → chunk-V2QK5W3O.cjs} +3 -3
  38. package/dist/{chunk-FV5VGJE6.cjs.map → chunk-V2QK5W3O.cjs.map} +1 -1
  39. package/dist/{chunk-PYWF5JJW.js → chunk-VIRTMRS4.js} +5 -5
  40. package/dist/{chunk-MIC4HHVZ.cjs → chunk-VLJTJAHJ.cjs} +17 -17
  41. package/dist/{chunk-MIC4HHVZ.cjs.map → chunk-VLJTJAHJ.cjs.map} +1 -1
  42. package/dist/{chunk-P2SECY3U.js → chunk-WDWCQD75.js} +4 -4
  43. package/dist/{chunk-KU3JQWYJ.js → chunk-WPN545FW.js} +4 -4
  44. package/dist/{chunk-6EBKO275.js → chunk-XNPAVMPB.js} +2 -2
  45. package/dist/{chunk-OGTXZFFE.cjs → chunk-YWBAIFI2.cjs} +50 -50
  46. package/dist/{chunk-OGTXZFFE.cjs.map → chunk-YWBAIFI2.cjs.map} +1 -1
  47. package/dist/components/case-studies/index.cjs +8 -8
  48. package/dist/components/case-studies/index.js +2 -2
  49. package/dist/components/contact/index.cjs +3 -3
  50. package/dist/components/contact/index.js +2 -2
  51. package/dist/components/docs/index.cjs +6 -6
  52. package/dist/components/docs/index.js +5 -5
  53. package/dist/components/embeds/index.cjs +3 -3
  54. package/dist/components/embeds/index.js +2 -2
  55. package/dist/components/faq/index.cjs +3 -3
  56. package/dist/components/faq/index.js +2 -2
  57. package/dist/components/features/index.cjs +2 -2
  58. package/dist/components/features/index.js +1 -1
  59. package/dist/components/help-center-pages/index.cjs +22 -22
  60. package/dist/components/help-center-pages/index.js +13 -13
  61. package/dist/components/index.cjs +31 -33
  62. package/dist/components/index.cjs.map +1 -1
  63. package/dist/components/index.js +12 -14
  64. package/dist/components/index.js.map +1 -1
  65. package/dist/components/meeting-scheduler/index.cjs +21 -21
  66. package/dist/components/meeting-scheduler/index.js +1 -1
  67. package/dist/components/navigation/index.cjs +5 -5
  68. package/dist/components/navigation/index.js +4 -4
  69. package/dist/components/onboarding-guides/index.cjs +5 -5
  70. package/dist/components/onboarding-guides/index.js +4 -4
  71. package/dist/components/tickets/index.cjs +6 -6
  72. package/dist/components/tickets/index.js +5 -5
  73. package/dist/components/ui/data-table/data-table-body.d.ts.map +1 -1
  74. package/dist/components/ui/data-table/data-table-skeleton.d.ts +31 -0
  75. package/dist/components/ui/data-table/data-table-skeleton.d.ts.map +1 -1
  76. package/dist/components/ui/index.cjs +2 -4
  77. package/dist/components/ui/index.cjs.map +1 -1
  78. package/dist/components/ui/index.d.ts +1 -1
  79. package/dist/components/ui/index.d.ts.map +1 -1
  80. package/dist/components/ui/index.js +1 -3
  81. package/dist/components/ui/table/index.d.ts +1 -1
  82. package/dist/components/ui/table/index.d.ts.map +1 -1
  83. package/dist/components/ui/table/table-empty-state.d.ts +1 -1
  84. package/dist/components/ui/table/table-empty-state.d.ts.map +1 -1
  85. package/dist/components/ui/table/table-skeleton.d.ts +5 -9
  86. package/dist/components/ui/table/table-skeleton.d.ts.map +1 -1
  87. package/dist/components/ui/table/table.d.ts +1 -1
  88. package/dist/components/ui/table/table.d.ts.map +1 -1
  89. package/dist/components/ui/table/types.d.ts +40 -0
  90. package/dist/components/ui/table/types.d.ts.map +1 -1
  91. package/dist/index.cjs +6 -8
  92. package/dist/index.cjs.map +1 -1
  93. package/dist/index.js +5 -7
  94. package/dist/index.js.map +1 -1
  95. package/package.json +1 -1
  96. package/src/components/ui/data-table/data-table-body.tsx +8 -49
  97. package/src/components/ui/data-table/data-table-skeleton.tsx +100 -0
  98. package/src/components/ui/index.ts +0 -1
  99. package/src/components/ui/table/index.ts +1 -1
  100. package/src/components/ui/table/table-empty-state.tsx +6 -2
  101. package/src/components/ui/table/table-skeleton.tsx +18 -11
  102. package/src/components/ui/table/table.tsx +39 -16
  103. package/src/components/ui/table/types.ts +40 -0
  104. package/dist/chunk-MF324FSD.js.map +0 -1
  105. package/dist/chunk-R5IWJONE.cjs.map +0 -1
  106. /package/dist/{chunk-AVIZUQRW.js.map → chunk-75YW6ET4.js.map} +0 -0
  107. /package/dist/{chunk-PTXOWFRB.js.map → chunk-BK6CCQG6.js.map} +0 -0
  108. /package/dist/{chunk-N7SFQMCH.js.map → chunk-HLPAVYK7.js.map} +0 -0
  109. /package/dist/{chunk-GOD47MJM.js.map → chunk-KHOZ52NR.js.map} +0 -0
  110. /package/dist/{chunk-SSSZ64YG.js.map → chunk-NIAMPMKV.js.map} +0 -0
  111. /package/dist/{chunk-7L5ROE3Z.js.map → chunk-PTK3CINU.js.map} +0 -0
  112. /package/dist/{chunk-TRJJMZSQ.js.map → chunk-PX4IPM7Q.js.map} +0 -0
  113. /package/dist/{chunk-VD3ZAA2O.js.map → chunk-R4UV366K.js.map} +0 -0
  114. /package/dist/{chunk-MGBWMZEL.js.map → chunk-SE3PVN64.js.map} +0 -0
  115. /package/dist/{chunk-HFJSBIXL.js.map → chunk-TZPVRWPU.js.map} +0 -0
  116. /package/dist/{chunk-PYWF5JJW.js.map → chunk-VIRTMRS4.js.map} +0 -0
  117. /package/dist/{chunk-P2SECY3U.js.map → chunk-WDWCQD75.js.map} +0 -0
  118. /package/dist/{chunk-KU3JQWYJ.js.map → chunk-WPN545FW.js.map} +0 -0
  119. /package/dist/{chunk-6EBKO275.js.map → chunk-XNPAVMPB.js.map} +0 -0
@@ -12839,24 +12839,225 @@ function CursorPaginationSimple({
12839
12839
  ] });
12840
12840
  }
12841
12841
 
12842
- // src/components/ui/table/table-empty-state.tsx
12842
+ // src/components/ui/data-table/data-table.tsx
12843
+ import { createContext as createContext4, useContext as useContext4 } from "react";
12843
12844
  import { jsx as jsx113 } from "react/jsx-runtime";
12844
- function TableEmptyState({ message, icon, action, className }) {
12845
- return /* @__PURE__ */ jsx113(
12845
+ var DataTableContext = createContext4(null);
12846
+ function useDataTableContext() {
12847
+ const ctx = useContext4(DataTableContext);
12848
+ if (!ctx) {
12849
+ throw new Error("<DataTable.Header/Body/...> must be used inside <DataTable table={...}>");
12850
+ }
12851
+ return ctx;
12852
+ }
12853
+ function DataTableRoot({ table, children, className }) {
12854
+ return /* @__PURE__ */ jsx113(DataTableContext.Provider, { value: table, children: /* @__PURE__ */ jsx113("div", { className: cn("flex w-full flex-col", className), children }) });
12855
+ }
12856
+
12857
+ // src/components/ui/data-table/utils.ts
12858
+ var BREAKPOINT_ORDER = ["md", "lg", "xl", "2xl"];
12859
+ function getHideClasses(hideAt) {
12860
+ if (!hideAt) return "";
12861
+ const breakpoints = Array.isArray(hideAt) ? hideAt : [hideAt];
12862
+ if (breakpoints.length === 1) {
12863
+ return `hidden ${breakpoints[0]}:flex`;
12864
+ }
12865
+ const maxIdx = Math.max(...breakpoints.map((bp) => BREAKPOINT_ORDER.indexOf(bp)));
12866
+ const hideClasses = breakpoints.map((bp) => `${bp}:hidden`).join(" ");
12867
+ const showBreakpoint = BREAKPOINT_ORDER[maxIdx + 1];
12868
+ return showBreakpoint ? `${hideClasses} ${showBreakpoint}:flex` : hideClasses;
12869
+ }
12870
+ function getHideAtVisibility(hideAt) {
12871
+ const steps = BREAKPOINT_ORDER.length + 1;
12872
+ if (!hideAt) return Array.from({ length: steps }, () => true);
12873
+ const breakpoints = Array.isArray(hideAt) ? hideAt : [hideAt];
12874
+ if (breakpoints.length === 1) {
12875
+ const showFrom = BREAKPOINT_ORDER.indexOf(breakpoints[0]) + 1;
12876
+ return Array.from({ length: steps }, (_, step) => step >= showFrom);
12877
+ }
12878
+ const maxIdx = Math.max(...breakpoints.map((bp) => BREAKPOINT_ORDER.indexOf(bp)));
12879
+ const showBreakpoint = BREAKPOINT_ORDER[maxIdx + 1];
12880
+ const visible = [true];
12881
+ for (const bp of BREAKPOINT_ORDER) {
12882
+ let state = visible[visible.length - 1];
12883
+ if (breakpoints.includes(bp)) state = false;
12884
+ if (bp === showBreakpoint) state = true;
12885
+ visible.push(state);
12886
+ }
12887
+ return visible;
12888
+ }
12889
+ function alignJustify(align) {
12890
+ switch (align) {
12891
+ case "center":
12892
+ return "justify-center text-center";
12893
+ case "right":
12894
+ return "justify-end text-right";
12895
+ default:
12896
+ return "justify-start text-left";
12897
+ }
12898
+ }
12899
+ var multiSelectFilterFn = (row, columnId, filterValue) => {
12900
+ const values = filterValue;
12901
+ if (!values || values.length === 0) return true;
12902
+ const cellValue = row.getValue(columnId);
12903
+ return values.some((v) => v === cellValue || String(v) === String(cellValue));
12904
+ };
12905
+
12906
+ // src/components/ui/data-table/data-table-skeleton.tsx
12907
+ import { Fragment as Fragment15, jsx as jsx114, jsxs as jsxs88 } from "react/jsx-runtime";
12908
+ var ROW_HEIGHT_DESKTOP = "h-[66px] md:h-[78px]";
12909
+ var ROW_HEIGHT_MOBILE = "h-[66px]";
12910
+ var ROW_SHELL_CLASSES = "items-center gap-[var(--spacing-system-mf)] px-[var(--spacing-system-mf)]";
12911
+ function DataTableSkeleton({ rows = 10, className, rowClassName, rowHeightClassName }) {
12912
+ const table = useDataTableContext();
12913
+ const columns = table.getVisibleFlatColumns();
12914
+ const firstColumnId = columns[0]?.id;
12915
+ return /* @__PURE__ */ jsx114(Fragment15, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ jsxs88(
12916
+ "div",
12917
+ {
12918
+ className: cn(
12919
+ "relative animate-pulse overflow-hidden rounded-md border border-ods-border bg-ods-card",
12920
+ // The slot height sits on the card, matching a real row.
12921
+ rowHeightClassName,
12922
+ className
12923
+ ),
12924
+ children: [
12925
+ /* @__PURE__ */ jsx114(
12926
+ "div",
12927
+ {
12928
+ className: cn(
12929
+ "hidden py-0 md:flex",
12930
+ ROW_SHELL_CLASSES,
12931
+ rowHeightClassName ? "h-full" : ROW_HEIGHT_DESKTOP,
12932
+ rowClassName
12933
+ ),
12934
+ children: columns.map((column) => {
12935
+ const meta = column.columnDef.meta;
12936
+ return /* @__PURE__ */ jsxs88(
12937
+ "div",
12938
+ {
12939
+ className: cn(
12940
+ "flex shrink-0 flex-col justify-center",
12941
+ meta?.width || "flex-1",
12942
+ // Same responsive hiding the real header and row apply.
12943
+ // Without it a `hideAt` column was drawn in the skeleton and
12944
+ // absent from the loaded table, so below that breakpoint the
12945
+ // remaining columns were sized against a different total and
12946
+ // the whole row re-laid-out the moment data arrived.
12947
+ getHideClasses(meta?.hideAt)
12948
+ ),
12949
+ children: [
12950
+ /* @__PURE__ */ jsx114("div", { className: "mb-[var(--spacing-system-xxs)] h-5 w-3/4 rounded-sm bg-ods-bg-surface" }),
12951
+ index % 2 === 0 && column.id === firstColumnId && /* @__PURE__ */ jsx114("div", { className: "h-4 w-1/2 rounded-sm bg-ods-bg-surface opacity-60" })
12952
+ ]
12953
+ },
12954
+ column.id
12955
+ );
12956
+ })
12957
+ }
12958
+ ),
12959
+ /* @__PURE__ */ jsx114(
12960
+ "div",
12961
+ {
12962
+ className: cn(
12963
+ "flex justify-start py-0 md:hidden",
12964
+ ROW_SHELL_CLASSES,
12965
+ rowHeightClassName ? "h-full" : ROW_HEIGHT_MOBILE,
12966
+ rowClassName
12967
+ ),
12968
+ children: /* @__PURE__ */ jsxs88("div", { className: "flex min-w-0 flex-1 flex-col justify-center py-[var(--spacing-system-sf)]", children: [
12969
+ /* @__PURE__ */ jsx114("div", { className: "mb-[var(--spacing-system-xsf)] h-4 w-3/4 rounded-sm bg-ods-bg-surface" }),
12970
+ /* @__PURE__ */ jsx114("div", { className: "h-3 w-1/2 rounded-sm bg-ods-bg-surface opacity-60" })
12971
+ ] })
12972
+ }
12973
+ )
12974
+ ]
12975
+ },
12976
+ index
12977
+ )) });
12978
+ }
12979
+ function ReservedEmptyState({
12980
+ count,
12981
+ gapClassName,
12982
+ rowHeightClassName,
12983
+ innerHeightClassName,
12984
+ children
12985
+ }) {
12986
+ return /* @__PURE__ */ jsxs88("div", { className: cn("relative flex w-full flex-col", gapClassName), children: [
12987
+ /* @__PURE__ */ jsx114(
12988
+ PlaceholderRows,
12989
+ {
12990
+ count,
12991
+ rowHeightClassName,
12992
+ innerHeightClassName
12993
+ }
12994
+ ),
12995
+ /* @__PURE__ */ jsx114("div", { className: "absolute inset-0 flex items-center", children: /* @__PURE__ */ jsx114("div", { className: "sticky left-0 flex w-screen max-w-full justify-center", children }) })
12996
+ ] });
12997
+ }
12998
+ function PlaceholderRows({
12999
+ count,
13000
+ rowHeightClassName,
13001
+ innerHeightClassName
13002
+ }) {
13003
+ return /* @__PURE__ */ jsx114(Fragment15, { children: Array.from({ length: count }).map((_, i) => /* @__PURE__ */ jsxs88(
13004
+ "div",
13005
+ {
13006
+ className: cn(
13007
+ "pointer-events-none relative overflow-hidden rounded-md border border-transparent",
13008
+ // The stated slot height belongs on the CARD, exactly as a real
13009
+ // row carries it — a real row with a sub-row is taller than its
13010
+ // cells, so reserving the cells' height here left every pad row
13011
+ // short by the sub-row.
13012
+ rowHeightClassName
13013
+ ),
13014
+ "aria-hidden": "true",
13015
+ children: [
13016
+ /* @__PURE__ */ jsx114(
13017
+ "div",
13018
+ {
13019
+ className: cn(
13020
+ "hidden py-0 md:flex",
13021
+ ROW_SHELL_CLASSES,
13022
+ innerHeightClassName ?? (rowHeightClassName ? "h-full" : ROW_HEIGHT_DESKTOP)
13023
+ )
13024
+ }
13025
+ ),
13026
+ /* @__PURE__ */ jsx114(
13027
+ "div",
13028
+ {
13029
+ className: cn(
13030
+ "flex justify-start py-0 md:hidden",
13031
+ ROW_SHELL_CLASSES,
13032
+ innerHeightClassName ?? (rowHeightClassName ? "h-full" : ROW_HEIGHT_MOBILE)
13033
+ )
13034
+ }
13035
+ )
13036
+ ]
13037
+ },
13038
+ `placeholder-${i}`
13039
+ )) });
13040
+ }
13041
+
13042
+ // src/components/ui/table/table-empty-state.tsx
13043
+ import { jsx as jsx115 } from "react/jsx-runtime";
13044
+ function TableEmptyState({ message, description, emptyState, icon, action, className }) {
13045
+ return /* @__PURE__ */ jsx115(
12846
13046
  NoData,
12847
13047
  {
12848
- icon: icon ?? /* @__PURE__ */ jsx113(SearchIcon, {}),
13048
+ icon: icon ?? /* @__PURE__ */ jsx115(SearchIcon, {}),
12849
13049
  title: message ?? "No results found",
12850
- description: message == null ? "Try adjusting your search or filters" : void 0,
13050
+ description: description ?? (message == null ? "Try adjusting your search or filters" : void 0),
12851
13051
  buttonLabel: action?.label,
12852
13052
  onButtonClick: action?.onClick,
12853
- className: cn("py-[var(--spacing-system-xxl)]", className)
13053
+ className: cn("py-[var(--spacing-system-xxl)]", className),
13054
+ ...emptyState
12854
13055
  }
12855
13056
  );
12856
13057
  }
12857
13058
 
12858
13059
  // src/components/ui/table/table-column-filter-dropdown.tsx
12859
- import { jsx as jsx114, jsxs as jsxs88 } from "react/jsx-runtime";
13060
+ import { jsx as jsx116, jsxs as jsxs89 } from "react/jsx-runtime";
12860
13061
  function TableColumnFilterDropdown({
12861
13062
  columnKey,
12862
13063
  columnLabel,
@@ -12867,17 +13068,17 @@ function TableColumnFilterDropdown({
12867
13068
  dropdownClassName = "min-w-[240px]"
12868
13069
  }) {
12869
13070
  const activeCount = filters?.[columnKey]?.length || 0;
12870
- return /* @__PURE__ */ jsx114(
13071
+ return /* @__PURE__ */ jsx116(
12871
13072
  FiltersDropdown,
12872
13073
  {
12873
- triggerElement: /* @__PURE__ */ jsxs88(
13074
+ triggerElement: /* @__PURE__ */ jsxs89(
12874
13075
  "div",
12875
13076
  {
12876
13077
  className: "flex cursor-pointer items-center gap-1.5 rounded px-1 py-0.5 transition-all duration-200 hover:bg-ods-bg-active",
12877
13078
  "aria-label": `Filter by ${columnLabel}`,
12878
13079
  children: [
12879
- /* @__PURE__ */ jsx114("span", { className: "select-none text-ods-text-secondary text-h5", children: columnLabel }),
12880
- /* @__PURE__ */ jsx114(
13080
+ /* @__PURE__ */ jsx116("span", { className: "select-none text-ods-text-secondary text-h5", children: columnLabel }),
13081
+ /* @__PURE__ */ jsx116(
12881
13082
  Filter02Icon,
12882
13083
  {
12883
13084
  className: cn("h-4 w-4 transition-colors", activeCount > 0 ? "text-ods-accent" : "text-ods-text-secondary")
@@ -12914,7 +13115,7 @@ function TableColumnFilterDropdown({
12914
13115
  }
12915
13116
 
12916
13117
  // src/components/ui/table/utils.ts
12917
- function getHideClasses(hideAt) {
13118
+ function getHideClasses2(hideAt) {
12918
13119
  if (!hideAt) {
12919
13120
  return "";
12920
13121
  }
@@ -12934,7 +13135,7 @@ function getHideClasses(hideAt) {
12934
13135
  }
12935
13136
 
12936
13137
  // src/components/ui/table/table-header.tsx
12937
- import { Fragment as Fragment15, jsx as jsx115, jsxs as jsxs89 } from "react/jsx-runtime";
13138
+ import { Fragment as Fragment16, jsx as jsx117, jsxs as jsxs90 } from "react/jsx-runtime";
12938
13139
  function TableHeader({
12939
13140
  columns,
12940
13141
  className,
@@ -12975,12 +13176,12 @@ function TableHeader({
12975
13176
  const columnKey = column.sortKey || column.key;
12976
13177
  const isActive = sortBy === columnKey;
12977
13178
  if (!isActive) {
12978
- return /* @__PURE__ */ jsx115(SwitchVrIcon, { className: "h-4 w-4 text-ods-text-secondary" });
13179
+ return /* @__PURE__ */ jsx117(SwitchVrIcon, { className: "h-4 w-4 text-ods-text-secondary" });
12979
13180
  }
12980
- return sortDirection === "asc" ? /* @__PURE__ */ jsx115(Arrow01UpIcon, { className: "h-4 w-4 text-ods-accent" }) : /* @__PURE__ */ jsx115(Arrow01DownIcon, { className: "h-4 w-4 text-ods-accent" });
13181
+ return sortDirection === "asc" ? /* @__PURE__ */ jsx117(Arrow01UpIcon, { className: "h-4 w-4 text-ods-accent" }) : /* @__PURE__ */ jsx117(Arrow01DownIcon, { className: "h-4 w-4 text-ods-accent" });
12981
13182
  };
12982
13183
  const isLgUp = useLgUp() ?? false;
12983
- return /* @__PURE__ */ jsxs89(
13184
+ return /* @__PURE__ */ jsxs90(
12984
13185
  "div",
12985
13186
  {
12986
13187
  className: cn(
@@ -12989,7 +13190,7 @@ function TableHeader({
12989
13190
  className
12990
13191
  ),
12991
13192
  children: [
12992
- selectable && /* @__PURE__ */ jsx115("div", { className: "flex w-10 shrink-0 items-center justify-center", children: /* @__PURE__ */ jsx115(
13193
+ selectable && /* @__PURE__ */ jsx117("div", { className: "flex w-10 shrink-0 items-center justify-center", children: /* @__PURE__ */ jsx117(
12993
13194
  Checkbox,
12994
13195
  {
12995
13196
  checked: allSelected || someSelected && !allSelected ? true : false,
@@ -13003,7 +13204,7 @@ function TableHeader({
13003
13204
  if (!isLgUp && !isActionsColumn && !filterable) {
13004
13205
  return null;
13005
13206
  }
13006
- return /* @__PURE__ */ jsx115(
13207
+ return /* @__PURE__ */ jsx117(
13007
13208
  "div",
13008
13209
  {
13009
13210
  className: cn(
@@ -13012,12 +13213,12 @@ function TableHeader({
13012
13213
  isLgUp && (column.width || "min-w-0 flex-1"),
13013
13214
  column.className,
13014
13215
  // Only apply hide classes if the column is not filterable or on tablet
13015
- !(filterable && !isLgUp) && getHideClasses(column.hideAt),
13216
+ !(filterable && !isLgUp) && getHideClasses2(column.hideAt),
13016
13217
  isActionsColumn && "ml-auto"
13017
13218
  ),
13018
13219
  children: isActionsColumn ? (
13019
13220
  // Render total items count in actions column
13020
- totalItemsCount > 0 && /* @__PURE__ */ jsxs89("span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: [
13221
+ totalItemsCount > 0 && /* @__PURE__ */ jsxs90("span", { className: "whitespace-nowrap text-ods-text-secondary text-h6", children: [
13021
13222
  "Showing ",
13022
13223
  totalItemsCount,
13023
13224
  " ",
@@ -13025,7 +13226,7 @@ function TableHeader({
13025
13226
  ] })
13026
13227
  ) : column.filterable && column.filterOptions && onFilterChange ? (
13027
13228
  /* Filterable column — label + icon are both inside the dropdown trigger */
13028
- /* @__PURE__ */ jsx115(
13229
+ /* @__PURE__ */ jsx117(
13029
13230
  TableColumnFilterDropdown,
13030
13231
  {
13031
13232
  columnKey: column.key,
@@ -13037,7 +13238,7 @@ function TableHeader({
13037
13238
  )
13038
13239
  ) : (
13039
13240
  /* Non-filterable column — regular label with optional sort */
13040
- /* @__PURE__ */ jsx115(
13241
+ /* @__PURE__ */ jsx117(
13041
13242
  "div",
13042
13243
  {
13043
13244
  className: cn(
@@ -13045,11 +13246,11 @@ function TableHeader({
13045
13246
  column.sortable && "cursor-pointer transition-colors hover:text-ods-text-primary"
13046
13247
  ),
13047
13248
  onClick: () => handleSort(column),
13048
- children: column.renderHeader ? /* @__PURE__ */ jsxs89(Fragment15, { children: [
13249
+ children: column.renderHeader ? /* @__PURE__ */ jsxs90(Fragment16, { children: [
13049
13250
  column.renderHeader(),
13050
13251
  getSortIcon(column)
13051
- ] }) : /* @__PURE__ */ jsxs89(Fragment15, { children: [
13052
- /* @__PURE__ */ jsx115("span", { className: "whitespace-nowrap uppercase text-ods-text-secondary text-h5", children: column.label }),
13252
+ ] }) : /* @__PURE__ */ jsxs90(Fragment16, { children: [
13253
+ /* @__PURE__ */ jsx117("span", { className: "whitespace-nowrap uppercase text-ods-text-secondary text-h5", children: column.label }),
13053
13254
  getSortIcon(column)
13054
13255
  ] })
13055
13256
  }
@@ -13065,7 +13266,7 @@ function TableHeader({
13065
13266
  }
13066
13267
 
13067
13268
  // src/components/ui/table/table-cell.tsx
13068
- import { jsx as jsx116 } from "react/jsx-runtime";
13269
+ import { jsx as jsx118 } from "react/jsx-runtime";
13069
13270
  function TableCell({ children, align = "left", className, width }) {
13070
13271
  const getAlignment = () => {
13071
13272
  switch (align) {
@@ -13077,15 +13278,14 @@ function TableCell({ children, align = "left", className, width }) {
13077
13278
  return "justify-start text-left";
13078
13279
  }
13079
13280
  };
13080
- return /* @__PURE__ */ jsx116("div", { className: cn("flex flex-col overflow-hidden", getAlignment(), width || "min-w-0 flex-1", className), children: typeof children === "string" || typeof children === "number" ? /* @__PURE__ */ jsx116("span", { className: "truncate text-ods-text-primary text-h4", children }) : children });
13281
+ return /* @__PURE__ */ jsx118("div", { className: cn("flex flex-col overflow-hidden", getAlignment(), width || "min-w-0 flex-1", className), children: typeof children === "string" || typeof children === "number" ? /* @__PURE__ */ jsx118("span", { className: "truncate text-ods-text-primary text-h4", children }) : children });
13081
13282
  }
13082
13283
 
13083
13284
  // src/components/ui/table/table-skeleton.tsx
13084
- import { Fragment as Fragment16, jsx as jsx117, jsxs as jsxs90 } from "react/jsx-runtime";
13085
- var ROW_HEIGHT_DESKTOP = "h-[66px] md:h-[78px]";
13285
+ import { Fragment as Fragment17, jsx as jsx119, jsxs as jsxs91 } from "react/jsx-runtime";
13286
+ var ROW_HEIGHT_DESKTOP2 = "h-[66px] md:h-[78px]";
13086
13287
  var COMPACT_ROW_MIN_HEIGHT = "min-h-[56px]";
13087
- var COMPACT_ROW_MIN_HEIGHT_PX = 56;
13088
- var ROW_HEIGHT_MOBILE = "h-[66px]";
13288
+ var ROW_HEIGHT_MOBILE2 = "h-[66px]";
13089
13289
  function TableCardSkeleton({
13090
13290
  columns,
13091
13291
  rows = 10,
@@ -13096,7 +13296,7 @@ function TableCardSkeleton({
13096
13296
  rowClassName
13097
13297
  }) {
13098
13298
  const primaryKey = (columns.find((c) => /flex-(1|\[)/.test(c.width || "")) ?? columns[0])?.key;
13099
- return /* @__PURE__ */ jsx117(Fragment16, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ jsxs90(
13299
+ return /* @__PURE__ */ jsx119(Fragment17, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ jsxs91(
13100
13300
  "div",
13101
13301
  {
13102
13302
  className: cn(
@@ -13104,38 +13304,46 @@ function TableCardSkeleton({
13104
13304
  className
13105
13305
  ),
13106
13306
  children: [
13107
- /* @__PURE__ */ jsxs90(
13307
+ /* @__PURE__ */ jsxs91(
13108
13308
  "div",
13109
13309
  {
13110
13310
  className: cn(
13111
13311
  "hidden items-center gap-4 px-4 md:flex",
13112
- compact ? cn("py-2", COMPACT_ROW_MIN_HEIGHT) : cn("py-0", ROW_HEIGHT_DESKTOP),
13312
+ compact ? cn("py-2", COMPACT_ROW_MIN_HEIGHT) : cn("py-0", ROW_HEIGHT_DESKTOP2),
13113
13313
  rowClassName
13114
13314
  ),
13115
13315
  children: [
13116
- columns.map((column) => /* @__PURE__ */ jsxs90("div", { className: cn("flex shrink-0 flex-col justify-center", column.width || "flex-1"), children: [
13117
- /* @__PURE__ */ jsx117("div", { className: "mb-1 h-5 w-3/4 rounded bg-ods-bg-surface" }),
13118
- index % 2 === 0 && column.key === primaryKey && /* @__PURE__ */ jsx117("div", { className: "h-4 w-1/2 rounded bg-ods-bg-surface opacity-60" })
13316
+ columns.map((column) => /* @__PURE__ */ jsxs91("div", { className: cn("flex shrink-0 flex-col justify-center", column.width || "flex-1"), children: [
13317
+ /* @__PURE__ */ jsx119("div", { className: "mb-1 h-5 w-3/4 rounded bg-ods-bg-surface" }),
13318
+ index % 2 === 0 && column.key === primaryKey && /* @__PURE__ */ jsx119("div", { className: "h-4 w-1/2 rounded bg-ods-bg-surface opacity-60" })
13119
13319
  ] }, column.key)),
13120
- hasActions && /* @__PURE__ */ jsxs90("div", { className: cn("flex shrink-0 items-center gap-2", !hasChevron && "ml-auto"), children: [
13121
- /* @__PURE__ */ jsx117("div", { className: "h-12 w-12 rounded bg-ods-bg-surface" }),
13122
- /* @__PURE__ */ jsx117("div", { className: "h-12 w-24 rounded bg-ods-bg-surface" })
13320
+ hasActions && /* @__PURE__ */ jsxs91("div", { className: cn("flex shrink-0 items-center gap-2", !hasChevron && "ml-auto"), children: [
13321
+ /* @__PURE__ */ jsx119("div", { className: "h-12 w-12 rounded bg-ods-bg-surface" }),
13322
+ /* @__PURE__ */ jsx119("div", { className: "h-12 w-24 rounded bg-ods-bg-surface" })
13123
13323
  ] }),
13124
- hasChevron && /* @__PURE__ */ jsx117("div", { className: cn("flex w-12 shrink-0 items-center justify-end", !hasActions && "ml-auto"), children: /* @__PURE__ */ jsx117("div", { className: "h-8 w-8 rounded bg-ods-bg-surface" }) })
13324
+ hasChevron && /* @__PURE__ */ jsx119("div", { className: cn("flex w-12 shrink-0 items-center justify-end", !hasActions && "ml-auto"), children: /* @__PURE__ */ jsx119("div", { className: "h-8 w-8 rounded bg-ods-bg-surface" }) })
13125
13325
  ]
13126
13326
  }
13127
13327
  ),
13128
- /* @__PURE__ */ jsxs90(
13328
+ /* @__PURE__ */ jsxs91(
13129
13329
  "div",
13130
13330
  {
13131
- className: cn("flex items-center justify-start gap-3 px-3 py-0 md:hidden", ROW_HEIGHT_MOBILE, rowClassName),
13331
+ className: cn(
13332
+ "flex items-center justify-start gap-3 px-3 md:hidden",
13333
+ // Mirror the real row on mobile too: a compact row is
13334
+ // content-sized with a floor, a normal row a fixed height.
13335
+ // Hard-wiring ROW_HEIGHT_MOBILE made every COMPACT table jump
13336
+ // 68px -> 58px per row when the data replaced the skeleton.
13337
+ compact ? cn("py-2", COMPACT_ROW_MIN_HEIGHT) : cn("py-0", ROW_HEIGHT_MOBILE2),
13338
+ rowClassName
13339
+ ),
13132
13340
  children: [
13133
- /* @__PURE__ */ jsxs90("div", { className: "flex min-w-0 flex-1 flex-col justify-center py-3", children: [
13134
- /* @__PURE__ */ jsx117("div", { className: "mb-2 h-4 w-3/4 rounded bg-ods-bg-surface" }),
13135
- /* @__PURE__ */ jsx117("div", { className: "h-3 w-1/2 rounded bg-ods-bg-surface opacity-60" })
13341
+ /* @__PURE__ */ jsxs91("div", { className: cn("flex min-w-0 flex-1 flex-col justify-center", compact ? "py-0" : "py-3"), children: [
13342
+ /* @__PURE__ */ jsx119("div", { className: "mb-2 h-4 w-3/4 rounded bg-ods-bg-surface" }),
13343
+ /* @__PURE__ */ jsx119("div", { className: "h-3 w-1/2 rounded bg-ods-bg-surface opacity-60" })
13136
13344
  ] }),
13137
- hasActions && /* @__PURE__ */ jsx117("div", { className: "h-12 w-12 shrink-0 rounded bg-ods-bg-surface" }),
13138
- hasChevron && /* @__PURE__ */ jsx117("div", { className: "h-8 w-8 shrink-0 rounded bg-ods-bg-surface" })
13345
+ hasActions && /* @__PURE__ */ jsx119("div", { className: "h-12 w-12 shrink-0 rounded bg-ods-bg-surface" }),
13346
+ hasChevron && /* @__PURE__ */ jsx119("div", { className: "h-8 w-8 shrink-0 rounded bg-ods-bg-surface" })
13139
13347
  ]
13140
13348
  }
13141
13349
  )
@@ -13146,7 +13354,7 @@ function TableCardSkeleton({
13146
13354
  }
13147
13355
 
13148
13356
  // src/components/ui/table/table-row.tsx
13149
- import { jsx as jsx118, jsxs as jsxs91 } from "react/jsx-runtime";
13357
+ import { jsx as jsx120, jsxs as jsxs92 } from "react/jsx-runtime";
13150
13358
  function isIndexable(value) {
13151
13359
  return typeof value === "object" && value !== null;
13152
13360
  }
@@ -13206,7 +13414,7 @@ function TableRow({
13206
13414
  }
13207
13415
  return String(value);
13208
13416
  };
13209
- return /* @__PURE__ */ jsxs91(
13417
+ return /* @__PURE__ */ jsxs92(
13210
13418
  Row,
13211
13419
  {
13212
13420
  ...motionProps,
@@ -13217,8 +13425,8 @@ function TableRow({
13217
13425
  ),
13218
13426
  onClick: isLinkMode ? void 0 : handleRowClick,
13219
13427
  children: [
13220
- isLinkMode && href && /* @__PURE__ */ jsx118(next_link_default, { href, prefetch: false, className: "absolute inset-0", "aria-label": "View details" }),
13221
- /* @__PURE__ */ jsxs91(
13428
+ isLinkMode && href && /* @__PURE__ */ jsx120(next_link_default, { href, prefetch: false, className: "absolute inset-0", "aria-label": "View details" }),
13429
+ /* @__PURE__ */ jsxs92(
13222
13430
  "div",
13223
13431
  {
13224
13432
  className: cn(
@@ -13228,17 +13436,17 @@ function TableRow({
13228
13436
  // function of the row COUNT alone. That is what lets a host reserve
13229
13437
  // space for a full page and stop the layout jumping between a full
13230
13438
  // page, a short last page and the skeleton.
13231
- compact ? cn("py-2", COMPACT_ROW_MIN_HEIGHT) : cn("py-0", ROW_HEIGHT_DESKTOP),
13439
+ compact ? cn("py-2", COMPACT_ROW_MIN_HEIGHT) : cn("py-0", ROW_HEIGHT_DESKTOP2),
13232
13440
  isLinkMode && "pointer-events-none"
13233
13441
  ),
13234
13442
  children: [
13235
- selectable && /* @__PURE__ */ jsx118("div", { className: "pointer-events-auto flex w-10 shrink-0 items-center justify-center", "data-no-row-click": true, children: /* @__PURE__ */ jsx118(Checkbox, { checked: selected, onCheckedChange: handleSelect, className: "border-ods-border" }) }),
13236
- columns.map((column) => /* @__PURE__ */ jsx118(
13443
+ selectable && /* @__PURE__ */ jsx120("div", { className: "pointer-events-auto flex w-10 shrink-0 items-center justify-center", "data-no-row-click": true, children: /* @__PURE__ */ jsx120(Checkbox, { checked: selected, onCheckedChange: handleSelect, className: "border-ods-border" }) }),
13444
+ columns.map((column) => /* @__PURE__ */ jsx120(
13237
13445
  TableCell,
13238
13446
  {
13239
13447
  align: column.align,
13240
13448
  width: column.width || "flex-1 min-w-0",
13241
- className: cn(column.className, getHideClasses(column.hideAt)),
13449
+ className: cn(column.className, getHideClasses2(column.hideAt)),
13242
13450
  children: getCellValue(column)
13243
13451
  },
13244
13452
  column.key
@@ -13270,7 +13478,7 @@ function useTableMotion(enabled) {
13270
13478
  }
13271
13479
 
13272
13480
  // src/components/ui/table/table.tsx
13273
- import { Fragment as Fragment17, jsx as jsx119, jsxs as jsxs92 } from "react/jsx-runtime";
13481
+ import { Fragment as Fragment18, jsx as jsx121, jsxs as jsxs93 } from "react/jsx-runtime";
13274
13482
  function injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref, actionsColumnWidth) {
13275
13483
  const hasActions = Boolean(rowActions?.length) || Boolean(renderRowActions);
13276
13484
  const result = [...columns];
@@ -13284,7 +13492,7 @@ function injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref,
13284
13492
  // content-sized for back-compat.
13285
13493
  width: actionsColumnWidth ?? "min-w-[100px] w-auto shrink-0 flex-none",
13286
13494
  align: "right",
13287
- renderCell: (item) => /* @__PURE__ */ jsx119("div", { className: "pointer-events-auto flex items-center justify-end gap-2", "data-no-row-click": true, children: renderRowActions ? renderRowActions(item) : actions.map((action, actionIndex) => /* @__PURE__ */ jsx119(
13495
+ renderCell: (item) => /* @__PURE__ */ jsx121("div", { className: "pointer-events-auto flex items-center justify-end gap-2", "data-no-row-click": true, children: renderRowActions ? renderRowActions(item) : actions.map((action, actionIndex) => /* @__PURE__ */ jsx121(
13288
13496
  Button,
13289
13497
  {
13290
13498
  variant: "outline",
@@ -13310,14 +13518,14 @@ function injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref,
13310
13518
  renderCell: (item) => {
13311
13519
  const href = rowHref(item);
13312
13520
  if (!href) return null;
13313
- return /* @__PURE__ */ jsx119("div", { className: "pointer-events-auto flex items-center justify-end", "data-no-row-click": true, children: /* @__PURE__ */ jsx119(
13521
+ return /* @__PURE__ */ jsx121("div", { className: "pointer-events-auto flex items-center justify-end", "data-no-row-click": true, children: /* @__PURE__ */ jsx121(
13314
13522
  Button,
13315
13523
  {
13316
13524
  href,
13317
13525
  prefetch: false,
13318
13526
  variant: "outline",
13319
13527
  size: "icon",
13320
- leftIcon: /* @__PURE__ */ jsx119(Chevron02RightIcon, { className: "h-6 w-6" }),
13528
+ leftIcon: /* @__PURE__ */ jsx121(Chevron02RightIcon, { className: "h-6 w-6" }),
13321
13529
  "aria-label": "View details"
13322
13530
  }
13323
13531
  ) });
@@ -13334,6 +13542,10 @@ function Table({
13334
13542
  loading = false,
13335
13543
  emptyMessage,
13336
13544
  skeletonRows = 10,
13545
+ minRows,
13546
+ emptyState,
13547
+ keepHeightWhenEmpty,
13548
+ emptyDescription,
13337
13549
  className,
13338
13550
  containerClassName,
13339
13551
  headerClassName,
@@ -13364,6 +13576,8 @@ function Table({
13364
13576
  }) {
13365
13577
  const tableMotion = useTableMotion(Boolean(animateRowReorder));
13366
13578
  const columnsWithActions = injectSyntheticColumns(columns, rowActions, renderRowActions, rowHref, actionsColumnWidth);
13579
+ const reservedRows = minRows ?? (keepHeightWhenEmpty ? skeletonRows : void 0);
13580
+ const resolvedEmptyState = emptyState ?? (emptyDescription ? { title: emptyMessage, description: emptyDescription } : void 0);
13367
13581
  const getRowHref = (item) => {
13368
13582
  if (onRowClick || !rowHref) return void 0;
13369
13583
  return rowHref(item) ?? void 0;
@@ -13426,15 +13640,15 @@ function Table({
13426
13640
  observer.observe(sentinel);
13427
13641
  return () => observer.disconnect();
13428
13642
  }, [infiniteScroll?.hasNextPage, infiniteScroll?.isFetchingNextPage]);
13429
- return /* @__PURE__ */ jsxs92("div", { className: cn("flex w-full flex-col gap-1", containerClassName), children: [
13430
- showToolbar && bulkActions && selectedRows.length > 0 && /* @__PURE__ */ jsxs92("div", { className: "mb-2 flex items-center justify-between rounded-[6px] border border-ods-border bg-ods-card p-3", children: [
13431
- /* @__PURE__ */ jsxs92("span", { className: "text-ods-text-secondary text-h6", children: [
13643
+ return /* @__PURE__ */ jsxs93("div", { className: cn("flex w-full flex-col gap-1", containerClassName), children: [
13644
+ showToolbar && bulkActions && selectedRows.length > 0 && /* @__PURE__ */ jsxs93("div", { className: "mb-2 flex items-center justify-between rounded-[6px] border border-ods-border bg-ods-card p-3", children: [
13645
+ /* @__PURE__ */ jsxs93("span", { className: "text-ods-text-secondary text-h6", children: [
13432
13646
  selectedRows.length,
13433
13647
  " item",
13434
13648
  selectedRows.length !== 1 ? "s" : "",
13435
13649
  " selected"
13436
13650
  ] }),
13437
- /* @__PURE__ */ jsx119("div", { className: "flex gap-2", children: bulkActions.map((action, index) => /* @__PURE__ */ jsxs92(
13651
+ /* @__PURE__ */ jsx121("div", { className: "flex gap-2", children: bulkActions.map((action, index) => /* @__PURE__ */ jsxs93(
13438
13652
  "button",
13439
13653
  {
13440
13654
  onClick: () => action.onClick(selectedRows),
@@ -13452,7 +13666,7 @@ function Table({
13452
13666
  index
13453
13667
  )) })
13454
13668
  ] }),
13455
- /* @__PURE__ */ jsx119(
13669
+ /* @__PURE__ */ jsx121(
13456
13670
  TableHeader,
13457
13671
  {
13458
13672
  columns: columnsWithActions,
@@ -13471,7 +13685,7 @@ function Table({
13471
13685
  stickyHeaderOffset
13472
13686
  }
13473
13687
  ),
13474
- /* @__PURE__ */ jsx119("div", { className: cn("flex w-full flex-col gap-2", className), children: loading && data.length === 0 ? /* @__PURE__ */ jsx119(
13688
+ /* @__PURE__ */ jsx121("div", { className: cn("flex w-full flex-col gap-2", className), children: loading && data.length === 0 ? /* @__PURE__ */ jsx121(
13475
13689
  TableCardSkeleton,
13476
13690
  {
13477
13691
  columns,
@@ -13480,9 +13694,24 @@ function Table({
13480
13694
  hasActions: (rowActions?.length ?? 0) > 0,
13481
13695
  hasChevron: Boolean(rowHref)
13482
13696
  }
13483
- ) : data.length === 0 ? /* @__PURE__ */ jsx119(TableEmptyState, { message: emptyMessage }) : /* @__PURE__ */ jsxs92(Fragment17, { children: [
13697
+ ) : data.length === 0 ? (
13698
+ /* `minRows` promises a STABLE height, and an empty table is exactly
13699
+ when a collapsing one is most visible — the pagination and
13700
+ everything under it jump the moment a filter matches nothing. So
13701
+ reserve the same slots and centre the empty state over them,
13702
+ identically to `DataTableBody`. */
13703
+ reservedRows ? /* @__PURE__ */ jsx121(
13704
+ ReservedEmptyState,
13705
+ {
13706
+ count: reservedRows,
13707
+ gapClassName: "gap-2",
13708
+ innerHeightClassName: compact ? COMPACT_ROW_MIN_HEIGHT : void 0,
13709
+ children: /* @__PURE__ */ jsx121(TableEmptyState, { message: emptyMessage, emptyState: resolvedEmptyState })
13710
+ }
13711
+ ) : /* @__PURE__ */ jsx121(TableEmptyState, { message: emptyMessage, emptyState: resolvedEmptyState })
13712
+ ) : /* @__PURE__ */ jsxs93(Fragment18, { children: [
13484
13713
  (() => {
13485
- const rows = data.map((item, index) => /* @__PURE__ */ jsx119(
13714
+ const rows = data.map((item, index) => /* @__PURE__ */ jsx121(
13486
13715
  TableRow,
13487
13716
  {
13488
13717
  item,
@@ -13501,9 +13730,9 @@ function Table({
13501
13730
  getRowKey(item, index)
13502
13731
  ));
13503
13732
  const LayoutGroup = tableMotion?.LayoutGroup;
13504
- return animateRowReorder && LayoutGroup ? /* @__PURE__ */ jsx119(LayoutGroup, { children: rows }) : rows;
13733
+ return animateRowReorder && LayoutGroup ? /* @__PURE__ */ jsx121(LayoutGroup, { children: rows }) : rows;
13505
13734
  })(),
13506
- infiniteScroll?.isFetchingNextPage && /* @__PURE__ */ jsx119(
13735
+ infiniteScroll?.isFetchingNextPage && /* @__PURE__ */ jsx121(
13507
13736
  TableCardSkeleton,
13508
13737
  {
13509
13738
  columns,
@@ -13512,21 +13741,16 @@ function Table({
13512
13741
  hasChevron: Boolean(rowHref)
13513
13742
  }
13514
13743
  ),
13515
- infiniteScroll?.hasNextPage && /* @__PURE__ */ jsx119("div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" }),
13516
- !infiniteScroll && Array.from({ length: Math.max(0, skeletonRows - data.length) }).map((_, index) => /* @__PURE__ */ jsxs92(
13517
- "div",
13744
+ infiniteScroll?.hasNextPage && /* @__PURE__ */ jsx121("div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" }),
13745
+ !infiniteScroll && /* @__PURE__ */ jsx121(
13746
+ PlaceholderRows,
13518
13747
  {
13519
- className: "pointer-events-none relative overflow-hidden rounded-[6px]",
13520
- "aria-hidden": "true",
13521
- children: [
13522
- /* @__PURE__ */ jsx119("div", { className: cn("hidden items-center gap-4 px-4 py-0 md:flex", ROW_HEIGHT_DESKTOP) }),
13523
- /* @__PURE__ */ jsx119("div", { className: cn("flex items-center justify-start gap-3 px-3 py-0 md:hidden", ROW_HEIGHT_MOBILE) })
13524
- ]
13525
- },
13526
- `placeholder-${index}`
13527
- ))
13748
+ count: Math.max(0, (reservedRows ?? skeletonRows) - data.length),
13749
+ innerHeightClassName: compact ? COMPACT_ROW_MIN_HEIGHT : void 0
13750
+ }
13751
+ )
13528
13752
  ] }) }),
13529
- !infiniteScroll && cursorPagination && data.length > 0 && /* @__PURE__ */ jsx119(
13753
+ !infiniteScroll && cursorPagination && data.length > 0 && /* @__PURE__ */ jsx121(
13530
13754
  CursorPagination,
13531
13755
  {
13532
13756
  hasNextPage: cursorPagination.hasNextPage,
@@ -13548,7 +13772,7 @@ function Table({
13548
13772
  className: cn("mt-2 border-t border-ods-border pt-3", paginationClassName)
13549
13773
  }
13550
13774
  ),
13551
- !infiniteScroll && pagePagination && !cursorPagination && data.length > 0 && /* @__PURE__ */ jsx119("div", { className: cn("mt-2 border-t border-ods-border pt-3", paginationClassName), children: /* @__PURE__ */ jsx119(
13775
+ !infiniteScroll && pagePagination && !cursorPagination && data.length > 0 && /* @__PURE__ */ jsx121("div", { className: cn("mt-2 border-t border-ods-border pt-3", paginationClassName), children: /* @__PURE__ */ jsx121(
13552
13776
  Pagination,
13553
13777
  {
13554
13778
  currentPage: pagePagination.currentPage,
@@ -13560,9 +13784,9 @@ function Table({
13560
13784
  }
13561
13785
 
13562
13786
  // src/components/ui/table/table-description-cell.tsx
13563
- import { jsx as jsx120 } from "react/jsx-runtime";
13787
+ import { jsx as jsx122 } from "react/jsx-runtime";
13564
13788
  function TableDescriptionCell({ text, className, maxLines = 3 }) {
13565
- return /* @__PURE__ */ jsx120("div", { className: "flex-1", children: /* @__PURE__ */ jsx120("div", { className: "flex flex-col justify-center", children: /* @__PURE__ */ jsx120(
13789
+ return /* @__PURE__ */ jsx122("div", { className: "flex-1", children: /* @__PURE__ */ jsx122("div", { className: "flex flex-col justify-center", children: /* @__PURE__ */ jsx122(
13566
13790
  "span",
13567
13791
  {
13568
13792
  className: cn(
@@ -13581,7 +13805,7 @@ function TableDescriptionCell({ text, className, maxLines = 3 }) {
13581
13805
  }
13582
13806
 
13583
13807
  // src/components/ui/table/table-timestamp-cell.tsx
13584
- import { jsx as jsx121, jsxs as jsxs93 } from "react/jsx-runtime";
13808
+ import { jsx as jsx123, jsxs as jsxs94 } from "react/jsx-runtime";
13585
13809
  function formatTimestampValue(timestamp) {
13586
13810
  if (timestamp instanceof Date) {
13587
13811
  return timestamp.toLocaleString();
@@ -13605,9 +13829,9 @@ function TableTimestampCell({
13605
13829
  formatTimestamp = true
13606
13830
  }) {
13607
13831
  const displayTimestamp = formatTimestamp ? formatTimestampValue(timestamp) : String(timestamp);
13608
- return /* @__PURE__ */ jsxs93("div", { className: cn("flex shrink-0 flex-col justify-center", className), children: [
13609
- /* @__PURE__ */ jsx121("span", { className: "truncate text-ods-text-primary text-h4", children: displayTimestamp }),
13610
- /* @__PURE__ */ jsx121("span", { className: "truncate text-ods-text-secondary text-h6", children: idLabel ? `${idLabel}: ${id}` : id })
13832
+ return /* @__PURE__ */ jsxs94("div", { className: cn("flex shrink-0 flex-col justify-center", className), children: [
13833
+ /* @__PURE__ */ jsx123("span", { className: "truncate text-ods-text-primary text-h4", children: displayTimestamp }),
13834
+ /* @__PURE__ */ jsx123("span", { className: "truncate text-ods-text-secondary text-h6", children: idLabel ? `${idLabel}: ${id}` : id })
13611
13835
  ] });
13612
13836
  }
13613
13837
 
@@ -13616,7 +13840,7 @@ import { useMemo as useMemo12 } from "react";
13616
13840
 
13617
13841
  // src/components/ui/query-report-table/query-report-table-header.tsx
13618
13842
  import { useRef as useRef17, useState as useState31, useCallback as useCallback11 } from "react";
13619
- import { jsx as jsx122, jsxs as jsxs94 } from "react/jsx-runtime";
13843
+ import { jsx as jsx124, jsxs as jsxs95 } from "react/jsx-runtime";
13620
13844
  function QueryReportTableHeader({
13621
13845
  columns,
13622
13846
  columnWidth,
@@ -13624,7 +13848,7 @@ function QueryReportTableHeader({
13624
13848
  className
13625
13849
  }) {
13626
13850
  const isCompact = variant === "compact";
13627
- return /* @__PURE__ */ jsx122("div", { className: cn("flex items-center gap-4 px-4", isCompact ? "border-b border-ods-border py-2" : "", className), children: columns.map((column) => /* @__PURE__ */ jsx122(TruncatedHeaderCell, { value: column, width: columnWidth }, column)) });
13851
+ return /* @__PURE__ */ jsx124("div", { className: cn("flex items-center gap-4 px-4", isCompact ? "border-b border-ods-border py-2" : "", className), children: columns.map((column) => /* @__PURE__ */ jsx124(TruncatedHeaderCell, { value: column, width: columnWidth }, column)) });
13628
13852
  }
13629
13853
  function TruncatedHeaderCell({ value, width }) {
13630
13854
  const textRef = useRef17(null);
@@ -13635,15 +13859,15 @@ function TruncatedHeaderCell({ value, width }) {
13635
13859
  setIsTruncated(el.scrollWidth > el.clientWidth);
13636
13860
  }
13637
13861
  }, []);
13638
- return /* @__PURE__ */ jsx122(TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ jsxs94(Tooltip, { open: isTruncated ? void 0 : false, children: [
13639
- /* @__PURE__ */ jsx122(TooltipTrigger, { asChild: true, onMouseEnter: checkTruncation, children: /* @__PURE__ */ jsx122("div", { className: "flex shrink-0 items-center", style: { width, height: 48 }, children: /* @__PURE__ */ jsx122("div", { ref: textRef, className: "truncate text-ods-text-secondary text-h5", children: value }) }) }),
13640
- /* @__PURE__ */ jsx122(TooltipContent, { side: "bottom", className: "max-w-xs break-words", children: value })
13862
+ return /* @__PURE__ */ jsx124(TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ jsxs95(Tooltip, { open: isTruncated ? void 0 : false, children: [
13863
+ /* @__PURE__ */ jsx124(TooltipTrigger, { asChild: true, onMouseEnter: checkTruncation, children: /* @__PURE__ */ jsx124("div", { className: "flex shrink-0 items-center", style: { width, height: 48 }, children: /* @__PURE__ */ jsx124("div", { ref: textRef, className: "truncate text-ods-text-secondary text-h5", children: value }) }) }),
13864
+ /* @__PURE__ */ jsx124(TooltipContent, { side: "bottom", className: "max-w-xs break-words", children: value })
13641
13865
  ] }) });
13642
13866
  }
13643
13867
 
13644
13868
  // src/components/ui/query-report-table/query-report-table-row.tsx
13645
13869
  import { useRef as useRef18, useState as useState32, useCallback as useCallback12 } from "react";
13646
- import { jsx as jsx123, jsxs as jsxs95 } from "react/jsx-runtime";
13870
+ import { jsx as jsx125, jsxs as jsxs96 } from "react/jsx-runtime";
13647
13871
  function QueryReportTableRow({
13648
13872
  row,
13649
13873
  columns,
@@ -13652,22 +13876,22 @@ function QueryReportTableRow({
13652
13876
  className
13653
13877
  }) {
13654
13878
  const isCompact = variant === "compact";
13655
- return /* @__PURE__ */ jsx123(
13879
+ return /* @__PURE__ */ jsx125(
13656
13880
  "div",
13657
13881
  {
13658
13882
  className: cn(
13659
13883
  isCompact ? "border-b border-ods-border" : "relative overflow-hidden rounded-[6px] border border-ods-border bg-ods-card",
13660
13884
  className
13661
13885
  ),
13662
- children: /* @__PURE__ */ jsx123("div", { className: cn("flex items-center gap-4 px-4", isCompact ? "h-[56px]" : "h-[80px]"), children: columns.map((column) => {
13886
+ children: /* @__PURE__ */ jsx125("div", { className: cn("flex items-center gap-4 px-4", isCompact ? "h-[56px]" : "h-[80px]"), children: columns.map((column) => {
13663
13887
  const value = row[column];
13664
13888
  const displayValue = value === null || value === void 0 ? "-" : String(value);
13665
- return /* @__PURE__ */ jsx123(
13889
+ return /* @__PURE__ */ jsx125(
13666
13890
  "div",
13667
13891
  {
13668
13892
  className: "flex shrink-0 flex-col justify-center overflow-hidden",
13669
13893
  style: { width: columnWidth },
13670
- children: /* @__PURE__ */ jsx123(
13894
+ children: /* @__PURE__ */ jsx125(
13671
13895
  TruncatedCell,
13672
13896
  {
13673
13897
  className: cn("text-ods-text-primary", isCompact ? "text-h6" : "text-h4"),
@@ -13690,14 +13914,14 @@ function TruncatedCell({ value, className }) {
13690
13914
  setIsTruncated(el.scrollWidth > el.clientWidth);
13691
13915
  }
13692
13916
  }, []);
13693
- return /* @__PURE__ */ jsx123(TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ jsxs95(Tooltip, { open: isTruncated ? void 0 : false, children: [
13694
- /* @__PURE__ */ jsx123(TooltipTrigger, { asChild: true, onMouseEnter: checkTruncation, children: /* @__PURE__ */ jsx123("span", { ref: textRef, className: cn("block truncate", className), children: value }) }),
13695
- /* @__PURE__ */ jsx123(TooltipContent, { side: "top", className: "max-w-xs break-words", children: value })
13917
+ return /* @__PURE__ */ jsx125(TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ jsxs96(Tooltip, { open: isTruncated ? void 0 : false, children: [
13918
+ /* @__PURE__ */ jsx125(TooltipTrigger, { asChild: true, onMouseEnter: checkTruncation, children: /* @__PURE__ */ jsx125("span", { ref: textRef, className: cn("block truncate", className), children: value }) }),
13919
+ /* @__PURE__ */ jsx125(TooltipContent, { side: "top", className: "max-w-xs break-words", children: value })
13696
13920
  ] }) });
13697
13921
  }
13698
13922
 
13699
13923
  // src/components/ui/query-report-table/query-report-table-skeleton.tsx
13700
- import { jsx as jsx124, jsxs as jsxs96 } from "react/jsx-runtime";
13924
+ import { jsx as jsx126, jsxs as jsxs97 } from "react/jsx-runtime";
13701
13925
  function QueryReportTableSkeleton({
13702
13926
  rows,
13703
13927
  columns,
@@ -13706,16 +13930,16 @@ function QueryReportTableSkeleton({
13706
13930
  className
13707
13931
  }) {
13708
13932
  const isCompact = variant === "compact";
13709
- return /* @__PURE__ */ jsxs96("div", { className: cn("flex flex-col", isCompact ? "gap-0" : "gap-[var(--spacing-system-xs)]", className), children: [
13710
- /* @__PURE__ */ jsx124("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__ */ jsx124("div", { className: "flex shrink-0 items-center", style: { width: columnWidth, height: 48 }, children: /* @__PURE__ */ jsx124("div", { className: "h-4 w-3/4 animate-pulse rounded bg-ods-bg-surface" }) }, `header-${i}`)) }),
13711
- Array.from({ length: rows }).map((_, rowIndex) => /* @__PURE__ */ jsx124(
13933
+ return /* @__PURE__ */ jsxs97("div", { className: cn("flex flex-col", isCompact ? "gap-0" : "gap-[var(--spacing-system-xs)]", className), children: [
13934
+ /* @__PURE__ */ jsx126("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__ */ jsx126("div", { className: "flex shrink-0 items-center", style: { width: columnWidth, height: 48 }, children: /* @__PURE__ */ jsx126("div", { className: "h-4 w-3/4 animate-pulse rounded bg-ods-bg-surface" }) }, `header-${i}`)) }),
13935
+ Array.from({ length: rows }).map((_, rowIndex) => /* @__PURE__ */ jsx126(
13712
13936
  "div",
13713
13937
  {
13714
13938
  className: cn(
13715
13939
  "animate-pulse",
13716
13940
  isCompact ? "border-b border-ods-border" : "relative overflow-hidden rounded-[6px] border border-ods-border bg-ods-card"
13717
13941
  ),
13718
- children: /* @__PURE__ */ jsx124("div", { className: cn("flex items-center gap-4 px-4", isCompact ? "h-[56px]" : "h-[80px]"), children: Array.from({ length: columns }).map((_cell, colIndex) => /* @__PURE__ */ jsx124("div", { className: "shrink-0", style: { width: columnWidth }, children: /* @__PURE__ */ jsx124(
13942
+ children: /* @__PURE__ */ jsx126("div", { className: cn("flex items-center gap-4 px-4", isCompact ? "h-[56px]" : "h-[80px]"), children: Array.from({ length: columns }).map((_cell, colIndex) => /* @__PURE__ */ jsx126("div", { className: "shrink-0", style: { width: columnWidth }, children: /* @__PURE__ */ jsx126(
13719
13943
  "div",
13720
13944
  {
13721
13945
  className: cn("rounded bg-ods-bg-surface", isCompact ? "h-4" : "h-5"),
@@ -13769,7 +13993,7 @@ function exportToCSV(data, columns, filename) {
13769
13993
  }
13770
13994
 
13771
13995
  // src/components/ui/query-report-table/query-report-table.tsx
13772
- import { jsx as jsx125, jsxs as jsxs97 } from "react/jsx-runtime";
13996
+ import { jsx as jsx127, jsxs as jsxs98 } from "react/jsx-runtime";
13773
13997
  function QueryReportTable({
13774
13998
  title,
13775
13999
  data,
@@ -13808,24 +14032,24 @@ function QueryReportTable({
13808
14032
  onThumbPointerMove,
13809
14033
  onThumbPointerUp
13810
14034
  } = useHorizontalScrollbar();
13811
- return /* @__PURE__ */ jsxs97("div", { className: cn("flex w-full flex-col", isCompact ? "gap-0" : "gap-[var(--spacing-system-l)]", className), children: [
13812
- !isCompact && (title || headerActions || showExport && data.length > 0) && /* @__PURE__ */ jsxs97("div", { className: "flex items-end justify-between pt-[var(--spacing-system-l)]", children: [
13813
- /* @__PURE__ */ jsx125("h2", { className: "text-ods-text-primary text-h2", children: title }),
13814
- /* @__PURE__ */ jsxs97("div", { className: "flex items-center gap-[var(--spacing-system-s)]", children: [
14035
+ return /* @__PURE__ */ jsxs98("div", { className: cn("flex w-full flex-col", isCompact ? "gap-0" : "gap-[var(--spacing-system-l)]", className), children: [
14036
+ !isCompact && (title || headerActions || showExport && data.length > 0) && /* @__PURE__ */ jsxs98("div", { className: "flex items-end justify-between pt-[var(--spacing-system-l)]", children: [
14037
+ /* @__PURE__ */ jsx127("h2", { className: "text-ods-text-primary text-h2", children: title }),
14038
+ /* @__PURE__ */ jsxs98("div", { className: "flex items-center gap-[var(--spacing-system-s)]", children: [
13815
14039
  headerActions,
13816
- showExport && data.length > 0 && /* @__PURE__ */ jsx125(
14040
+ showExport && data.length > 0 && /* @__PURE__ */ jsx127(
13817
14041
  Button,
13818
14042
  {
13819
14043
  className: "bg-ods-card max-md:hidden",
13820
14044
  variant: "outline",
13821
- leftIcon: /* @__PURE__ */ jsx125(Download02Icon, { size: 18, className: "text-ods-text-secondary" }),
14045
+ leftIcon: /* @__PURE__ */ jsx127(Download02Icon, { size: 18, className: "text-ods-text-secondary" }),
13822
14046
  onClick: handleExport,
13823
14047
  children: "Export CSV"
13824
14048
  }
13825
14049
  )
13826
14050
  ] })
13827
14051
  ] }),
13828
- loading && /* @__PURE__ */ jsx125(
14052
+ loading && /* @__PURE__ */ jsx127(
13829
14053
  QueryReportTableSkeleton,
13830
14054
  {
13831
14055
  rows: skeletonRows,
@@ -13834,16 +14058,16 @@ function QueryReportTable({
13834
14058
  variant
13835
14059
  }
13836
14060
  ),
13837
- !loading && data.length === 0 && /* @__PURE__ */ jsx125(TableEmptyState, { message: emptyMessage }),
13838
- !loading && data.length > 0 && /* @__PURE__ */ jsxs97("div", { className: "flex flex-col", children: [
13839
- !isCompact && thumbRatio > 0 && /* @__PURE__ */ jsx125(
14061
+ !loading && data.length === 0 && /* @__PURE__ */ jsx127(TableEmptyState, { message: emptyMessage }),
14062
+ !loading && data.length > 0 && /* @__PURE__ */ jsxs98("div", { className: "flex flex-col", children: [
14063
+ !isCompact && thumbRatio > 0 && /* @__PURE__ */ jsx127(
13840
14064
  "div",
13841
14065
  {
13842
14066
  ref: trackRef,
13843
14067
  className: "relative h-2 cursor-pointer rounded-full bg-ods-border",
13844
14068
  onClick: onTrackClick,
13845
14069
  onWheel: onTrackWheel,
13846
- children: /* @__PURE__ */ jsx125(
14070
+ children: /* @__PURE__ */ jsx127(
13847
14071
  "div",
13848
14072
  {
13849
14073
  ref: thumbRef,
@@ -13860,10 +14084,10 @@ function QueryReportTable({
13860
14084
  )
13861
14085
  }
13862
14086
  ),
13863
- /* @__PURE__ */ jsxs97("div", { className: "relative", children: [
13864
- /* @__PURE__ */ jsx125("div", { ref: scrollRef, className: cn("overflow-x-auto", tableClassName), onScroll, children: /* @__PURE__ */ jsxs97("div", { style: { minWidth: tableMinWidth }, children: [
13865
- /* @__PURE__ */ jsx125(QueryReportTableHeader, { columns, columnWidth, variant }),
13866
- /* @__PURE__ */ jsx125("div", { className: cn("flex flex-col", isCompact ? "gap-0" : "gap-[var(--spacing-system-xs)]"), children: data.map((row, index) => /* @__PURE__ */ jsx125(
14087
+ /* @__PURE__ */ jsxs98("div", { className: "relative", children: [
14088
+ /* @__PURE__ */ jsx127("div", { ref: scrollRef, className: cn("overflow-x-auto", tableClassName), onScroll, children: /* @__PURE__ */ jsxs98("div", { style: { minWidth: tableMinWidth }, children: [
14089
+ /* @__PURE__ */ jsx127(QueryReportTableHeader, { columns, columnWidth, variant }),
14090
+ /* @__PURE__ */ jsx127("div", { className: cn("flex flex-col", isCompact ? "gap-0" : "gap-[var(--spacing-system-xs)]"), children: data.map((row, index) => /* @__PURE__ */ jsx127(
13867
14091
  QueryReportTableRow,
13868
14092
  {
13869
14093
  row,
@@ -13874,35 +14098,20 @@ function QueryReportTable({
13874
14098
  index
13875
14099
  )) })
13876
14100
  ] }) }),
13877
- !isCompact && canScrollLeft && /* @__PURE__ */ jsx125("div", { className: "pointer-events-none absolute inset-y-0 left-0 w-10 bg-gradient-to-r from-ods-bg to-transparent" }),
13878
- !isCompact && canScrollRight && /* @__PURE__ */ jsx125("div", { className: "pointer-events-none absolute inset-y-0 right-0 w-10 bg-gradient-to-l from-ods-bg to-transparent" })
14101
+ !isCompact && canScrollLeft && /* @__PURE__ */ jsx127("div", { className: "pointer-events-none absolute inset-y-0 left-0 w-10 bg-gradient-to-r from-ods-bg to-transparent" }),
14102
+ !isCompact && canScrollRight && /* @__PURE__ */ jsx127("div", { className: "pointer-events-none absolute inset-y-0 right-0 w-10 bg-gradient-to-l from-ods-bg to-transparent" })
13879
14103
  ] })
13880
14104
  ] })
13881
14105
  ] });
13882
14106
  }
13883
14107
 
13884
- // src/components/ui/data-table/data-table.tsx
13885
- import { createContext as createContext4, useContext as useContext4 } from "react";
13886
- import { jsx as jsx126 } from "react/jsx-runtime";
13887
- var DataTableContext = createContext4(null);
13888
- function useDataTableContext() {
13889
- const ctx = useContext4(DataTableContext);
13890
- if (!ctx) {
13891
- throw new Error("<DataTable.Header/Body/...> must be used inside <DataTable table={...}>");
13892
- }
13893
- return ctx;
13894
- }
13895
- function DataTableRoot({ table, children, className }) {
13896
- return /* @__PURE__ */ jsx126(DataTableContext.Provider, { value: table, children: /* @__PURE__ */ jsx126("div", { className: cn("flex w-full flex-col", className), children }) });
13897
- }
13898
-
13899
14108
  // src/components/ui/data-table/data-table-empty.tsx
13900
- import { jsx as jsx127 } from "react/jsx-runtime";
14109
+ import { jsx as jsx128 } from "react/jsx-runtime";
13901
14110
  function DataTableEmpty({ className, ...props }) {
13902
- return /* @__PURE__ */ jsx127(
14111
+ return /* @__PURE__ */ jsx128(
13903
14112
  NoData,
13904
14113
  {
13905
- icon: /* @__PURE__ */ jsx127(SearchIcon, {}),
14114
+ icon: /* @__PURE__ */ jsx128(SearchIcon, {}),
13906
14115
  title: "No results found",
13907
14116
  description: "Try adjusting your search or filters",
13908
14117
  ...props,
@@ -13914,131 +14123,6 @@ function DataTableEmpty({ className, ...props }) {
13914
14123
  // src/components/ui/data-table/data-table-row.tsx
13915
14124
  import { flexRender } from "@tanstack/react-table";
13916
14125
  import { memo as memo4, useCallback as useCallback13, useRef as useRef19 } from "react";
13917
-
13918
- // src/components/ui/data-table/utils.ts
13919
- var BREAKPOINT_ORDER = ["md", "lg", "xl", "2xl"];
13920
- function getHideClasses2(hideAt) {
13921
- if (!hideAt) return "";
13922
- const breakpoints = Array.isArray(hideAt) ? hideAt : [hideAt];
13923
- if (breakpoints.length === 1) {
13924
- return `hidden ${breakpoints[0]}:flex`;
13925
- }
13926
- const maxIdx = Math.max(...breakpoints.map((bp) => BREAKPOINT_ORDER.indexOf(bp)));
13927
- const hideClasses = breakpoints.map((bp) => `${bp}:hidden`).join(" ");
13928
- const showBreakpoint = BREAKPOINT_ORDER[maxIdx + 1];
13929
- return showBreakpoint ? `${hideClasses} ${showBreakpoint}:flex` : hideClasses;
13930
- }
13931
- function getHideAtVisibility(hideAt) {
13932
- const steps = BREAKPOINT_ORDER.length + 1;
13933
- if (!hideAt) return Array.from({ length: steps }, () => true);
13934
- const breakpoints = Array.isArray(hideAt) ? hideAt : [hideAt];
13935
- if (breakpoints.length === 1) {
13936
- const showFrom = BREAKPOINT_ORDER.indexOf(breakpoints[0]) + 1;
13937
- return Array.from({ length: steps }, (_, step) => step >= showFrom);
13938
- }
13939
- const maxIdx = Math.max(...breakpoints.map((bp) => BREAKPOINT_ORDER.indexOf(bp)));
13940
- const showBreakpoint = BREAKPOINT_ORDER[maxIdx + 1];
13941
- const visible = [true];
13942
- for (const bp of BREAKPOINT_ORDER) {
13943
- let state = visible[visible.length - 1];
13944
- if (breakpoints.includes(bp)) state = false;
13945
- if (bp === showBreakpoint) state = true;
13946
- visible.push(state);
13947
- }
13948
- return visible;
13949
- }
13950
- function alignJustify(align) {
13951
- switch (align) {
13952
- case "center":
13953
- return "justify-center text-center";
13954
- case "right":
13955
- return "justify-end text-right";
13956
- default:
13957
- return "justify-start text-left";
13958
- }
13959
- }
13960
- var multiSelectFilterFn = (row, columnId, filterValue) => {
13961
- const values = filterValue;
13962
- if (!values || values.length === 0) return true;
13963
- const cellValue = row.getValue(columnId);
13964
- return values.some((v) => v === cellValue || String(v) === String(cellValue));
13965
- };
13966
-
13967
- // src/components/ui/data-table/data-table-skeleton.tsx
13968
- import { Fragment as Fragment18, jsx as jsx128, jsxs as jsxs98 } from "react/jsx-runtime";
13969
- var ROW_HEIGHT_DESKTOP2 = "h-[66px] md:h-[78px]";
13970
- var ROW_HEIGHT_MOBILE2 = "h-[66px]";
13971
- var ROW_SHELL_CLASSES = "items-center gap-[var(--spacing-system-mf)] px-[var(--spacing-system-mf)]";
13972
- function DataTableSkeleton({ rows = 10, className, rowClassName, rowHeightClassName }) {
13973
- const table = useDataTableContext();
13974
- const columns = table.getVisibleFlatColumns();
13975
- const firstColumnId = columns[0]?.id;
13976
- return /* @__PURE__ */ jsx128(Fragment18, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ jsxs98(
13977
- "div",
13978
- {
13979
- className: cn(
13980
- "relative animate-pulse overflow-hidden rounded-md border border-ods-border bg-ods-card",
13981
- // The slot height sits on the card, matching a real row.
13982
- rowHeightClassName,
13983
- className
13984
- ),
13985
- children: [
13986
- /* @__PURE__ */ jsx128(
13987
- "div",
13988
- {
13989
- className: cn(
13990
- "hidden py-0 md:flex",
13991
- ROW_SHELL_CLASSES,
13992
- rowHeightClassName ? "h-full" : ROW_HEIGHT_DESKTOP2,
13993
- rowClassName
13994
- ),
13995
- children: columns.map((column) => {
13996
- const meta = column.columnDef.meta;
13997
- return /* @__PURE__ */ jsxs98(
13998
- "div",
13999
- {
14000
- className: cn(
14001
- "flex shrink-0 flex-col justify-center",
14002
- meta?.width || "flex-1",
14003
- // Same responsive hiding the real header and row apply.
14004
- // Without it a `hideAt` column was drawn in the skeleton and
14005
- // absent from the loaded table, so below that breakpoint the
14006
- // remaining columns were sized against a different total and
14007
- // the whole row re-laid-out the moment data arrived.
14008
- getHideClasses2(meta?.hideAt)
14009
- ),
14010
- children: [
14011
- /* @__PURE__ */ jsx128("div", { className: "mb-[var(--spacing-system-xxs)] h-5 w-3/4 rounded-sm bg-ods-bg-surface" }),
14012
- index % 2 === 0 && column.id === firstColumnId && /* @__PURE__ */ jsx128("div", { className: "h-4 w-1/2 rounded-sm bg-ods-bg-surface opacity-60" })
14013
- ]
14014
- },
14015
- column.id
14016
- );
14017
- })
14018
- }
14019
- ),
14020
- /* @__PURE__ */ jsx128(
14021
- "div",
14022
- {
14023
- className: cn(
14024
- "flex justify-start py-0 md:hidden",
14025
- ROW_SHELL_CLASSES,
14026
- rowHeightClassName ? "h-full" : ROW_HEIGHT_MOBILE2,
14027
- rowClassName
14028
- ),
14029
- children: /* @__PURE__ */ jsxs98("div", { className: "flex min-w-0 flex-1 flex-col justify-center py-[var(--spacing-system-sf)]", children: [
14030
- /* @__PURE__ */ jsx128("div", { className: "mb-[var(--spacing-system-xsf)] h-4 w-3/4 rounded-sm bg-ods-bg-surface" }),
14031
- /* @__PURE__ */ jsx128("div", { className: "h-3 w-1/2 rounded-sm bg-ods-bg-surface opacity-60" })
14032
- ] })
14033
- }
14034
- )
14035
- ]
14036
- },
14037
- index
14038
- )) });
14039
- }
14040
-
14041
- // src/components/ui/data-table/data-table-row.tsx
14042
14126
  import { Fragment as Fragment19, jsx as jsx129, jsxs as jsxs99 } from "react/jsx-runtime";
14043
14127
  function DataTableRowImpl({
14044
14128
  row,
@@ -14085,7 +14169,7 @@ function DataTableRowImpl({
14085
14169
  className: cn(
14086
14170
  "flex",
14087
14171
  ROW_SHELL_CLASSES,
14088
- rowHeightClassName ? "min-h-0 flex-1 py-0" : compact ? "py-[var(--spacing-system-xsf)]" : autoHeight ? "min-h-[66px] py-[var(--spacing-system-sf)] md:min-h-[78px]" : `py-0 ${ROW_HEIGHT_DESKTOP2}`,
14172
+ rowHeightClassName ? "min-h-0 flex-1 py-0" : compact ? "py-[var(--spacing-system-xsf)]" : autoHeight ? "min-h-[66px] py-[var(--spacing-system-sf)] md:min-h-[78px]" : `py-0 ${ROW_HEIGHT_DESKTOP}`,
14089
14173
  hasSubRow && "border-b border-ods-border"
14090
14174
  ),
14091
14175
  children: row.getVisibleCells().map((cell) => {
@@ -14098,7 +14182,7 @@ function DataTableRowImpl({
14098
14182
  alignJustify(meta?.align),
14099
14183
  meta?.width || "min-w-0 flex-1",
14100
14184
  meta?.cellClassName,
14101
- getHideClasses2(meta?.hideAt)
14185
+ getHideClasses(meta?.hideAt)
14102
14186
  ),
14103
14187
  children: /* @__PURE__ */ jsx129(CellContent, { children: flexRender(cell.column.columnDef.cell, cell.getContext()) })
14104
14188
  },
@@ -14154,7 +14238,7 @@ function CellContent({ children }) {
14154
14238
  }
14155
14239
 
14156
14240
  // src/components/ui/data-table/data-table-body.tsx
14157
- import { Fragment as Fragment20, jsx as jsx130, jsxs as jsxs100 } from "react/jsx-runtime";
14241
+ import { jsx as jsx130, jsxs as jsxs100 } from "react/jsx-runtime";
14158
14242
  function DataTableBody({
14159
14243
  loading,
14160
14244
  emptyMessage,
@@ -14178,10 +14262,15 @@ function DataTableBody({
14178
14262
  if (rows.length === 0) {
14179
14263
  const empty = emptyState ? /* @__PURE__ */ jsx130(DataTableEmpty, { ...emptyState }) : emptyMessage != null ? /* @__PURE__ */ jsx130(DataTableEmpty, { title: emptyMessage, description: void 0 }) : /* @__PURE__ */ jsx130(DataTableEmpty, {});
14180
14264
  if (minRows) {
14181
- return /* @__PURE__ */ jsxs100("div", { className: cn("relative flex w-full flex-col gap-[var(--spacing-system-xsf)]", className), children: [
14182
- /* @__PURE__ */ jsx130(PlaceholderRows, { count: minRows, rowHeightClassName }),
14183
- /* @__PURE__ */ jsx130("div", { className: "absolute inset-0 flex items-center justify-center", children: empty })
14184
- ] });
14265
+ return /* @__PURE__ */ jsx130(
14266
+ ReservedEmptyState,
14267
+ {
14268
+ count: minRows,
14269
+ gapClassName: cn("gap-[var(--spacing-system-xsf)]", className),
14270
+ rowHeightClassName,
14271
+ children: empty
14272
+ }
14273
+ );
14185
14274
  }
14186
14275
  return /* @__PURE__ */ jsx130("div", { className: cn("flex w-full flex-col gap-[var(--spacing-system-xsf)]", className), children: empty });
14187
14276
  }
@@ -14209,41 +14298,6 @@ function DataTableBody({
14209
14298
  padCount > 0 && /* @__PURE__ */ jsx130(PlaceholderRows, { count: padCount, rowHeightClassName })
14210
14299
  ] });
14211
14300
  }
14212
- function PlaceholderRows({ count, rowHeightClassName }) {
14213
- return /* @__PURE__ */ jsx130(Fragment20, { children: Array.from({ length: count }).map((_, i) => /* @__PURE__ */ jsxs100(
14214
- "div",
14215
- {
14216
- className: cn(
14217
- "pointer-events-none relative overflow-hidden rounded-md border border-transparent",
14218
- // The stated slot height belongs on the CARD, exactly as a real
14219
- // row carries it — a real row with a sub-row is taller than its
14220
- // cells, so reserving the cells' height here left every pad row
14221
- // short by the sub-row.
14222
- rowHeightClassName
14223
- ),
14224
- "aria-hidden": "true",
14225
- children: [
14226
- /* @__PURE__ */ jsx130(
14227
- "div",
14228
- {
14229
- className: cn("hidden py-0 md:flex", ROW_SHELL_CLASSES, rowHeightClassName ? "h-full" : ROW_HEIGHT_DESKTOP2)
14230
- }
14231
- ),
14232
- /* @__PURE__ */ jsx130(
14233
- "div",
14234
- {
14235
- className: cn(
14236
- "flex justify-start py-0 md:hidden",
14237
- ROW_SHELL_CLASSES,
14238
- rowHeightClassName ? "h-full" : ROW_HEIGHT_MOBILE2
14239
- )
14240
- }
14241
- )
14242
- ]
14243
- },
14244
- `placeholder-${i}`
14245
- )) });
14246
- }
14247
14301
 
14248
14302
  // src/components/ui/data-table/data-table-cursor-footer.tsx
14249
14303
  import { jsx as jsx131 } from "react/jsx-runtime";
@@ -14364,7 +14418,7 @@ function DataTableColumnFilter({
14364
14418
  }
14365
14419
 
14366
14420
  // src/components/ui/data-table/data-table-header.tsx
14367
- import { Fragment as Fragment21, jsx as jsx133, jsxs as jsxs102 } from "react/jsx-runtime";
14421
+ import { Fragment as Fragment20, jsx as jsx133, jsxs as jsxs102 } from "react/jsx-runtime";
14368
14422
  function DataTableHeader({
14369
14423
  className,
14370
14424
  stickyHeader,
@@ -14523,7 +14577,7 @@ function HeaderLabel({ header }) {
14523
14577
  if (typeof headerDef === "string") {
14524
14578
  return /* @__PURE__ */ jsx133("span", { className: DATA_TABLE_HEADER_LABEL_CLASS, children: headerDef });
14525
14579
  }
14526
- return /* @__PURE__ */ jsx133(Fragment21, { children: flexRender2(headerDef, header.getContext()) });
14580
+ return /* @__PURE__ */ jsx133(Fragment20, { children: flexRender2(headerDef, header.getContext()) });
14527
14581
  }
14528
14582
  function SortIcon({ sorted }) {
14529
14583
  if (sorted === "asc") return /* @__PURE__ */ jsx133(Arrow01UpIcon, { className: "h-4 w-4 text-ods-accent" });
@@ -14537,7 +14591,7 @@ function resolveHeaderLabel(header) {
14537
14591
 
14538
14592
  // src/components/ui/data-table/data-table-infinite-footer.tsx
14539
14593
  import { useEffect as useEffect17, useRef as useRef20 } from "react";
14540
- import { Fragment as Fragment22, jsx as jsx134, jsxs as jsxs103 } from "react/jsx-runtime";
14594
+ import { Fragment as Fragment21, jsx as jsx134, jsxs as jsxs103 } from "react/jsx-runtime";
14541
14595
  function DataTableInfiniteFooter({
14542
14596
  hasNextPage,
14543
14597
  isFetchingNextPage,
@@ -14563,7 +14617,7 @@ function DataTableInfiniteFooter({
14563
14617
  observer.observe(sentinel);
14564
14618
  return () => observer.disconnect();
14565
14619
  }, [hasNextPage, isFetchingNextPage, rootMargin]);
14566
- return /* @__PURE__ */ jsxs103(Fragment22, { children: [
14620
+ return /* @__PURE__ */ jsxs103(Fragment21, { children: [
14567
14621
  isFetchingNextPage && /* @__PURE__ */ jsx134(DataTableSkeleton, { rows: skeletonRows }),
14568
14622
  hasNextPage && /* @__PURE__ */ jsx134("div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" })
14569
14623
  ] });
@@ -15181,7 +15235,7 @@ function SearchInput({
15181
15235
 
15182
15236
  // src/components/ui/filter-list.tsx
15183
15237
  import * as CheckboxPrimitive4 from "@radix-ui/react-checkbox";
15184
- import { Fragment as Fragment23 } from "react";
15238
+ import { Fragment as Fragment22 } from "react";
15185
15239
  import { jsx as jsx138, jsxs as jsxs107 } from "react/jsx-runtime";
15186
15240
  function FilterListItem({
15187
15241
  title,
@@ -15229,7 +15283,7 @@ function FilterListItem({
15229
15283
  "flex items-start gap-[var(--spacing-system-xxs)] text-h6",
15230
15284
  selected ? "text-ods-accent" : "text-ods-text-secondary"
15231
15285
  ),
15232
- children: meta.map((item, index) => /* @__PURE__ */ jsxs107(Fragment23, { children: [
15286
+ children: meta.map((item, index) => /* @__PURE__ */ jsxs107(Fragment22, { children: [
15233
15287
  index > 0 && /* @__PURE__ */ jsx138("span", { "aria-hidden": "true", children: "\u2022" }),
15234
15288
  /* @__PURE__ */ jsx138("span", { children: item })
15235
15289
  ] }, index))
@@ -16095,7 +16149,7 @@ function FileUpload({
16095
16149
  // src/components/ui/image-uploader.tsx
16096
16150
  import { Loader2 as Loader24 } from "lucide-react";
16097
16151
  import { useRef as useRef26, useState as useState39 } from "react";
16098
- import { Fragment as Fragment24, jsx as jsx142, jsxs as jsxs111 } from "react/jsx-runtime";
16152
+ import { Fragment as Fragment23, jsx as jsx142, jsxs as jsxs111 } from "react/jsx-runtime";
16099
16153
  var DEFAULT_MAX_SIZE = 25 * 1024 * 1024;
16100
16154
  function formatSize(bytes) {
16101
16155
  const mb = bytes / (1024 * 1024);
@@ -16224,7 +16278,7 @@ function ImageUploader({
16224
16278
  !hasImage && !interactive && "cursor-not-allowed",
16225
16279
  dropzoneClassName
16226
16280
  ),
16227
- children: hasImage ? /* @__PURE__ */ jsxs111(Fragment24, { children: [
16281
+ children: hasImage ? /* @__PURE__ */ jsxs111(Fragment23, { children: [
16228
16282
  /* @__PURE__ */ jsx142("div", { className: "relative min-h-0 w-full flex-1 overflow-hidden rounded-md", children: resolvedValue && /* @__PURE__ */ jsx142(
16229
16283
  next_image_default,
16230
16284
  {
@@ -16248,7 +16302,7 @@ function ImageUploader({
16248
16302
  onRemove && /* @__PURE__ */ jsx142(ActionIconButton, { onClick: onRemove, disabled: !interactive, ariaLabel: "Remove image", children: /* @__PURE__ */ jsx142(TrashIcon, { className: "size-6" }) })
16249
16303
  ] }),
16250
16304
  loading && /* @__PURE__ */ jsx142("div", { className: "absolute inset-0 flex items-center justify-center rounded-md bg-ods-overlay", children: /* @__PURE__ */ jsx142(Loader24, { className: "size-8 animate-spin text-ods-text-on-dark" }) })
16251
- ] }) : loading ? /* @__PURE__ */ jsx142(Loader24, { className: "size-8 animate-spin text-ods-accent" }) : /* @__PURE__ */ jsxs111(Fragment24, { children: [
16305
+ ] }) : loading ? /* @__PURE__ */ jsx142(Loader24, { className: "size-8 animate-spin text-ods-accent" }) : /* @__PURE__ */ jsxs111(Fragment23, { children: [
16252
16306
  /* @__PURE__ */ jsx142("div", { className: "flex shrink-0 items-center justify-center rounded-full border border-ods-border bg-ods-card p-[var(--spacing-system-s)]", children: /* @__PURE__ */ jsx142(ImagePlusIcon, { className: "size-6 text-ods-text-primary" }) }),
16253
16307
  /* @__PURE__ */ jsxs111("div", { className: "flex w-full flex-col items-center text-center", children: [
16254
16308
  /* @__PURE__ */ jsx142("p", { className: "text-ods-text-primary text-h4", children: label }),
@@ -16318,7 +16372,7 @@ var PopoverContent = forwardRef28(({ className, align = "center", sideOffset = 4
16318
16372
  PopoverContent.displayName = PopoverPrimitive6.Content.displayName;
16319
16373
 
16320
16374
  // src/components/ui/color-preset-select.tsx
16321
- import { Fragment as Fragment25, jsx as jsx144, jsxs as jsxs112 } from "react/jsx-runtime";
16375
+ import { Fragment as Fragment24, jsx as jsx144, jsxs as jsxs112 } from "react/jsx-runtime";
16322
16376
  var TICKET_STATUS_COLOR_PRESETS = [
16323
16377
  { key: "green", label: "Green", color: "#5ea62e" },
16324
16378
  { key: "lime", label: "Lime", color: "#8bc34a" },
@@ -16471,7 +16525,7 @@ function RgbInputs({ value, onChange }) {
16471
16525
  const b = next.b ?? rgb.b;
16472
16526
  onChange(rgbToHex(r, g, b));
16473
16527
  };
16474
- return /* @__PURE__ */ jsxs112(Fragment25, { children: [
16528
+ return /* @__PURE__ */ jsxs112(Fragment24, { children: [
16475
16529
  /* @__PURE__ */ jsx144(ChannelInput, { value: rgb.r, min: 0, max: 255, ariaLabel: "Red", onCommit: (r) => update({ r }) }),
16476
16530
  /* @__PURE__ */ jsx144(ChannelInput, { value: rgb.g, min: 0, max: 255, ariaLabel: "Green", onCommit: (g) => update({ g }) }),
16477
16531
  /* @__PURE__ */ jsx144(ChannelInput, { value: rgb.b, min: 0, max: 255, ariaLabel: "Blue", onCommit: (b) => update({ b }) })
@@ -16487,7 +16541,7 @@ function HslInputs({ value, onChange }) {
16487
16541
  const out = hslToRgb(h, s, l);
16488
16542
  onChange(rgbToHex(out.r, out.g, out.b));
16489
16543
  };
16490
- return /* @__PURE__ */ jsxs112(Fragment25, { children: [
16544
+ return /* @__PURE__ */ jsxs112(Fragment24, { children: [
16491
16545
  /* @__PURE__ */ jsx144(ChannelInput, { value: hsl.h, min: 0, max: 360, ariaLabel: "Hue", onCommit: (h) => update({ h }) }),
16492
16546
  /* @__PURE__ */ jsx144(ChannelInput, { value: hsl.s, min: 0, max: 100, ariaLabel: "Saturation", onCommit: (s) => update({ s }) }),
16493
16547
  /* @__PURE__ */ jsx144(ChannelInput, { value: hsl.l, min: 0, max: 100, ariaLabel: "Lightness", onCommit: (l) => update({ l }) })
@@ -16557,7 +16611,7 @@ function ColorPickerInput({ value, onChange, disabled, className }) {
16557
16611
  }
16558
16612
 
16559
16613
  // src/components/ui/ticket-status-config-row.tsx
16560
- import { Fragment as Fragment26, jsx as jsx145, jsxs as jsxs113 } from "react/jsx-runtime";
16614
+ import { Fragment as Fragment25, jsx as jsx145, jsxs as jsxs113 } from "react/jsx-runtime";
16561
16615
  function TicketStatusConfigRow({
16562
16616
  variant,
16563
16617
  statusKey,
@@ -16667,7 +16721,7 @@ function TicketStatusConfigRow({
16667
16721
  ),
16668
16722
  children: chip
16669
16723
  }
16670
- ) : /* @__PURE__ */ jsxs113(Fragment26, { children: [
16724
+ ) : /* @__PURE__ */ jsxs113(Fragment25, { children: [
16671
16725
  /* @__PURE__ */ jsx145(
16672
16726
  "div",
16673
16727
  {
@@ -16981,7 +17035,7 @@ import { useState as useState43 } from "react";
16981
17035
 
16982
17036
  // src/components/ui/ticket-note-card.tsx
16983
17037
  import { useState as useState42 } from "react";
16984
- import { Fragment as Fragment27, jsx as jsx149, jsxs as jsxs117 } from "react/jsx-runtime";
17038
+ import { Fragment as Fragment26, jsx as jsx149, jsxs as jsxs117 } from "react/jsx-runtime";
16985
17039
  function TicketNoteCard({ note, onEdit, onDelete, className }) {
16986
17040
  const [isEditing, setIsEditing] = useState42(false);
16987
17041
  const [editText, setEditText] = useState42(note.text);
@@ -17039,7 +17093,7 @@ function TicketNoteCard({ note, onEdit, onDelete, className }) {
17039
17093
  children: /* @__PURE__ */ jsx149(XmarkIcon, { className: "size-5" })
17040
17094
  }
17041
17095
  )
17042
- ] }) : /* @__PURE__ */ jsxs117(Fragment27, { children: [
17096
+ ] }) : /* @__PURE__ */ jsxs117(Fragment26, { children: [
17043
17097
  /* @__PURE__ */ jsx149("p", { className: "text-ods-text-primary text-h4", children: note.text }),
17044
17098
  /* @__PURE__ */ jsxs117("p", { className: "truncate text-ods-text-secondary text-h6", title: `${note.authorName} \u2022 ${note.createdAt}`, children: [
17045
17099
  note.authorName,
@@ -17129,7 +17183,7 @@ function TicketNotesSection({
17129
17183
  }
17130
17184
 
17131
17185
  // src/components/ui/ticket-info-section.tsx
17132
- import { Fragment as Fragment28, jsx as jsx151, jsxs as jsxs119 } from "react/jsx-runtime";
17186
+ import { Fragment as Fragment27, jsx as jsx151, jsxs as jsxs119 } from "react/jsx-runtime";
17133
17187
  function InfoCell({
17134
17188
  value,
17135
17189
  label,
@@ -17248,7 +17302,7 @@ function TicketInfoSection({
17248
17302
  )
17249
17303
  ] })
17250
17304
  ] }),
17251
- expanded && /* @__PURE__ */ jsxs119(Fragment28, { children: [
17305
+ expanded && /* @__PURE__ */ jsxs119(Fragment27, { children: [
17252
17306
  createdAt && /* @__PURE__ */ jsx151("div", { className: "grid grid-cols-2 items-center gap-4 border-b border-ods-border bg-ods-bg px-4 py-3", children: /* @__PURE__ */ jsx151(InfoCell, { value: createdAt, label: "Created" }) }),
17253
17307
  /* @__PURE__ */ jsxs119("div", { className: "flex flex-col gap-4 border-b border-ods-border bg-ods-bg p-4", children: [
17254
17308
  description && /* @__PURE__ */ jsx151(SimpleMarkdownRenderer, { content: description }),
@@ -17799,7 +17853,7 @@ function ArrayEntryManager({
17799
17853
  }
17800
17854
 
17801
17855
  // src/components/features/auth/account-details-fields.tsx
17802
- import { Fragment as Fragment29, jsx as jsx160, jsxs as jsxs125 } from "react/jsx-runtime";
17856
+ import { Fragment as Fragment28, jsx as jsx160, jsxs as jsxs125 } from "react/jsx-runtime";
17803
17857
  function AccountDetailsFields({
17804
17858
  firstName,
17805
17859
  lastName,
@@ -17879,12 +17933,12 @@ function AccountDetailsFields({
17879
17933
  )
17880
17934
  ];
17881
17935
  if (layout === "stacked") {
17882
- return /* @__PURE__ */ jsxs125(Fragment29, { children: [
17936
+ return /* @__PURE__ */ jsxs125(Fragment28, { children: [
17883
17937
  names,
17884
17938
  passwords
17885
17939
  ] });
17886
17940
  }
17887
- return /* @__PURE__ */ jsxs125(Fragment29, { children: [
17941
+ return /* @__PURE__ */ jsxs125(Fragment28, { children: [
17888
17942
  /* @__PURE__ */ jsx160("div", { className: "grid grid-cols-2 gap-[var(--spacing-system-l)]", children: names }),
17889
17943
  /* @__PURE__ */ jsx160("div", { className: "grid grid-cols-2 gap-[var(--spacing-system-l)]", children: passwords })
17890
17944
  ] });
@@ -18066,7 +18120,7 @@ function SsoProviderButtons({
18066
18120
  }
18067
18121
 
18068
18122
  // src/components/features/auth/complete-account-form.tsx
18069
- import { Fragment as Fragment30, jsx as jsx167, jsxs as jsxs130 } from "react/jsx-runtime";
18123
+ import { Fragment as Fragment29, jsx as jsx167, jsxs as jsxs130 } from "react/jsx-runtime";
18070
18124
  function CompleteAccountForm({
18071
18125
  firstName,
18072
18126
  lastName,
@@ -18111,7 +18165,7 @@ function CompleteAccountForm({
18111
18165
  /* @__PURE__ */ jsx167("h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: title }),
18112
18166
  /* @__PURE__ */ jsx167("p", { className: "text-ods-text-secondary text-h4", children: subtitle })
18113
18167
  ] }),
18114
- ssoProviders && ssoProviders.length > 0 && /* @__PURE__ */ jsxs130(Fragment30, { children: [
18168
+ ssoProviders && ssoProviders.length > 0 && /* @__PURE__ */ jsxs130(Fragment29, { children: [
18115
18169
  /* @__PURE__ */ jsx167(
18116
18170
  SsoProviderButtons,
18117
18171
  {
@@ -18188,7 +18242,7 @@ function TermsAgreementLabel({ termsUrl = "#", privacyPolicyUrl = "#" }) {
18188
18242
  }
18189
18243
 
18190
18244
  // src/components/features/auth/create-organization-form.tsx
18191
- import { Fragment as Fragment31, jsx as jsx169, jsxs as jsxs132 } from "react/jsx-runtime";
18245
+ import { Fragment as Fragment30, jsx as jsx169, jsxs as jsxs132 } from "react/jsx-runtime";
18192
18246
  function CreateOrganizationForm({
18193
18247
  email,
18194
18248
  organizationName,
@@ -18357,7 +18411,7 @@ function CreateOrganizationForm({
18357
18411
  }
18358
18412
  )
18359
18413
  ] }),
18360
- hasSso && /* @__PURE__ */ jsxs132(Fragment31, { children: [
18414
+ hasSso && /* @__PURE__ */ jsxs132(Fragment30, { children: [
18361
18415
  /* @__PURE__ */ jsx169(LabeledDivider, { label: dividerLabel }),
18362
18416
  /* @__PURE__ */ jsx169(
18363
18417
  SsoProviderButtons,
@@ -21190,7 +21244,7 @@ var MediaSkeleton = {
21190
21244
  };
21191
21245
 
21192
21246
  // src/components/loading/card-skeleton.tsx
21193
- import { Fragment as Fragment32, jsx as jsx196, jsxs as jsxs153 } from "react/jsx-runtime";
21247
+ import { Fragment as Fragment31, jsx as jsx196, jsxs as jsxs153 } from "react/jsx-runtime";
21194
21248
  function CardSkeleton({
21195
21249
  className,
21196
21250
  containerClassName,
@@ -21255,7 +21309,7 @@ function VendorCardContent({ showMetadata }) {
21255
21309
  ] });
21256
21310
  }
21257
21311
  function BlogCardContent({ showActions, showMetadata }) {
21258
- return /* @__PURE__ */ jsxs153(Fragment32, { children: [
21312
+ return /* @__PURE__ */ jsxs153(Fragment31, { children: [
21259
21313
  /* @__PURE__ */ jsx196("div", { className: "blog-card-image-container relative aspect-[1200/630] w-full overflow-hidden bg-ods-bg", children: /* @__PURE__ */ jsx196(MediaSkeleton.CardImage, {}) }),
21260
21314
  /* @__PURE__ */ jsxs153("div", { className: "flex flex-grow flex-col p-4", children: [
21261
21315
  /* @__PURE__ */ jsx196("div", { className: "mb-3 flex min-h-[50.4px] items-center md:min-h-[56px] lg:min-h-[61.6px]", children: /* @__PURE__ */ jsxs153("div", { className: "w-full space-y-1", children: [
@@ -21346,7 +21400,7 @@ function CardSkeletonGrid({
21346
21400
  }
21347
21401
 
21348
21402
  // src/components/loading/page-layout-skeleton.tsx
21349
- import { Fragment as Fragment33, jsx as jsx197, jsxs as jsxs154 } from "react/jsx-runtime";
21403
+ import { Fragment as Fragment32, jsx as jsx197, jsxs as jsxs154 } from "react/jsx-runtime";
21350
21404
  function AnnouncementBarSkeleton() {
21351
21405
  return /* @__PURE__ */ jsx197("div", { className: "relative w-full animate-pulse bg-ods-skeleton", children: /* @__PURE__ */ jsx197("div", { className: "relative flex w-full flex-row items-center", children: /* @__PURE__ */ jsxs154("div", { className: "relative box-border flex w-full flex-row items-center justify-start gap-4 py-3 pl-4 pr-12 md:gap-6 md:py-4 md:pl-6 md:pr-16", children: [
21352
21406
  /* @__PURE__ */ jsx197("div", { className: "relative h-6 w-6 shrink-0 rounded bg-ods-border md:h-8 md:w-8" }),
@@ -21461,10 +21515,10 @@ function TwoColumnLayoutSkeleton({
21461
21515
  sidebarPosition === "right" && "lg:grid-cols-[1fr_320px]",
21462
21516
  className
21463
21517
  ),
21464
- children: sidebarPosition === "left" ? /* @__PURE__ */ jsxs154(Fragment33, { children: [
21518
+ children: sidebarPosition === "left" ? /* @__PURE__ */ jsxs154(Fragment32, { children: [
21465
21519
  /* @__PURE__ */ jsx197("aside", { className: "order-2 lg:order-1", children: sidebar }),
21466
21520
  /* @__PURE__ */ jsx197("main", { className: "order-1 lg:order-2", children: main })
21467
- ] }) : /* @__PURE__ */ jsxs154(Fragment33, { children: [
21521
+ ] }) : /* @__PURE__ */ jsxs154(Fragment32, { children: [
21468
21522
  /* @__PURE__ */ jsx197("main", { className: "order-1", children: main }),
21469
21523
  /* @__PURE__ */ jsx197("aside", { className: "order-2", children: sidebar })
21470
21524
  ] })
@@ -22294,7 +22348,7 @@ function useThemeAware() {
22294
22348
  }
22295
22349
 
22296
22350
  // src/components/dynamic-skeleton.tsx
22297
- import { Fragment as Fragment34, jsx as jsx207, jsxs as jsxs164 } from "react/jsx-runtime";
22351
+ import { Fragment as Fragment33, jsx as jsx207, jsxs as jsxs164 } from "react/jsx-runtime";
22298
22352
  var sizePresets = {
22299
22353
  sm: { width: "4rem", height: "1rem" },
22300
22354
  md: { width: "8rem", height: "1.5rem" },
@@ -22475,7 +22529,7 @@ function PlatformSkeletonContainer({
22475
22529
  }) {
22476
22530
  const { platform } = useThemeAware();
22477
22531
  if (!isLoading) {
22478
- return /* @__PURE__ */ jsx207(Fragment34, { children });
22532
+ return /* @__PURE__ */ jsx207(Fragment33, { children });
22479
22533
  }
22480
22534
  const SkeletonComponent = SkeletonPresets[skeletonType];
22481
22535
  return /* @__PURE__ */ jsx207("div", { className: `platform-skeleton skeleton-${platform}`, children: /* @__PURE__ */ jsx207(SkeletonComponent, { ...skeletonProps }) });
@@ -22662,7 +22716,7 @@ function DeviceCardSkeletonGrid({ count = 12, className }) {
22662
22716
  }
22663
22717
 
22664
22718
  // src/components/features/push-button-selector.tsx
22665
- import { Fragment as Fragment35, jsx as jsx211, jsxs as jsxs167 } from "react/jsx-runtime";
22719
+ import { Fragment as Fragment34, jsx as jsx211, jsxs as jsxs167 } from "react/jsx-runtime";
22666
22720
  function PushButtonSelectorSkeleton({ count = 3, hasTitle }) {
22667
22721
  return /* @__PURE__ */ jsxs167("div", { className: "space-y-3", role: "status", "aria-label": "Loading options", children: [
22668
22722
  hasTitle && /* @__PURE__ */ jsx211(UnifiedSkeleton, { className: "h-5 w-20", "aria-label": "Loading title" }),
@@ -22836,9 +22890,9 @@ function PushButtonSelector({
22836
22890
  ] });
22837
22891
  };
22838
22892
  const framedSkeletonCount = lazyLoad ? Math.max(skeletonCount, 4) : skeletonCount;
22839
- const listContent = isLoading ? /* @__PURE__ */ jsx211(PushButtonSelectorSkeleton, { count: framedSkeletonCount }) : error ? /* @__PURE__ */ jsx211(PushButtonSelectorError, { message: error }) : /* @__PURE__ */ jsxs167(Fragment35, { children: [
22893
+ const listContent = isLoading ? /* @__PURE__ */ jsx211(PushButtonSelectorSkeleton, { count: framedSkeletonCount }) : error ? /* @__PURE__ */ jsx211(PushButtonSelectorError, { message: error }) : /* @__PURE__ */ jsxs167(Fragment34, { children: [
22840
22894
  options.length === 0 && emptyMessage !== void 0 ? /* @__PURE__ */ jsx211("div", { className: "text-ods-text-secondary text-h6", children: emptyMessage }) : renderOptionsContent(),
22841
- lazyLoad ? /* @__PURE__ */ jsxs167(Fragment35, { children: [
22895
+ lazyLoad ? /* @__PURE__ */ jsxs167(Fragment34, { children: [
22842
22896
  /* @__PURE__ */ jsx211("div", { ref: sentinelRef }),
22843
22897
  lazyLoad.isFetchingMore ? /* @__PURE__ */ jsx211("div", { className: "py-2 text-center text-ods-text-secondary text-h6", children: "Loading more\u2026" }) : null
22844
22898
  ] }) : null
@@ -23208,7 +23262,7 @@ var ConfidenceBadge = ({
23208
23262
  };
23209
23263
 
23210
23264
  // src/components/features/seo-editor-preview.tsx
23211
- import { Fragment as Fragment36, jsx as jsx215, jsxs as jsxs171 } from "react/jsx-runtime";
23265
+ import { Fragment as Fragment35, jsx as jsx215, jsxs as jsxs171 } from "react/jsx-runtime";
23212
23266
  var SEO_MEDIA_BOX_HEIGHT = "h-[280px]";
23213
23267
  function SEOEditorPreview({
23214
23268
  seoTitle,
@@ -23265,7 +23319,7 @@ function SEOEditorPreview({
23265
23319
  {
23266
23320
  label: "SEO Title",
23267
23321
  error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${SEO_TITLE_MAX_LENGTH})` : null,
23268
- labelExtras: aiConfidenceSeoTitle !== void 0 ? /* @__PURE__ */ jsxs171(Fragment36, { children: [
23322
+ labelExtras: aiConfidenceSeoTitle !== void 0 ? /* @__PURE__ */ jsxs171(Fragment35, { children: [
23269
23323
  /* @__PURE__ */ jsx215(AIGeneratedBadge, {}),
23270
23324
  /* @__PURE__ */ jsx215(ConfidenceBadge, { confidence: aiConfidenceSeoTitle, showLabel: true, showPercentage: true, size: "sm" })
23271
23325
  ] }) : void 0,
@@ -23304,7 +23358,7 @@ function SEOEditorPreview({
23304
23358
  Field,
23305
23359
  {
23306
23360
  label: "SEO Keywords",
23307
- labelExtras: aiConfidenceSeoKeywords !== void 0 ? /* @__PURE__ */ jsxs171(Fragment36, { children: [
23361
+ labelExtras: aiConfidenceSeoKeywords !== void 0 ? /* @__PURE__ */ jsxs171(Fragment35, { children: [
23308
23362
  /* @__PURE__ */ jsx215(AIGeneratedBadge, {}),
23309
23363
  /* @__PURE__ */ jsx215(
23310
23364
  ConfidenceBadge,
@@ -23337,7 +23391,7 @@ function SEOEditorPreview({
23337
23391
  {
23338
23392
  label: "SEO Description",
23339
23393
  error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${SEO_DESCRIPTION_MAX_LENGTH})` : null,
23340
- labelExtras: aiConfidenceSeoDescription !== void 0 ? /* @__PURE__ */ jsxs171(Fragment36, { children: [
23394
+ labelExtras: aiConfidenceSeoDescription !== void 0 ? /* @__PURE__ */ jsxs171(Fragment35, { children: [
23341
23395
  /* @__PURE__ */ jsx215(AIGeneratedBadge, {}),
23342
23396
  /* @__PURE__ */ jsx215(
23343
23397
  ConfidenceBadge,
@@ -23428,7 +23482,7 @@ function SEOEditorPreview({
23428
23482
  "flex cursor-pointer flex-col items-center justify-center rounded-lg border-2 border-dashed border-ods-border bg-ods-bg-hover transition-colors hover:border-ods-accent"
23429
23483
  ),
23430
23484
  onClick: () => onOgImageUpload && fileInputRef?.click(),
23431
- children: isUploading ? /* @__PURE__ */ jsx215(Loader28, { className: "h-8 w-8 animate-spin text-ods-accent" }) : /* @__PURE__ */ jsxs171(Fragment36, { children: [
23485
+ children: isUploading ? /* @__PURE__ */ jsx215(Loader28, { className: "h-8 w-8 animate-spin text-ods-accent" }) : /* @__PURE__ */ jsxs171(Fragment35, { children: [
23432
23486
  /* @__PURE__ */ jsx215(Upload4, { className: "mb-2 h-8 w-8 text-ods-text-secondary" }),
23433
23487
  /* @__PURE__ */ jsx215("span", { className: "text-ods-text-secondary text-h6", children: onOgImageUpload ? "Click to upload OG image" : "No image" })
23434
23488
  ] })
@@ -24017,7 +24071,7 @@ function VideoBitesDisplay({
24017
24071
  // src/components/features/walkthrough-video.tsx
24018
24072
  import * as DialogPrimitive2 from "@radix-ui/react-dialog";
24019
24073
  import { useCallback as useCallback20, useEffect as useEffect30, useLayoutEffect as useLayoutEffect2, useMemo as useMemo19, useRef as useRef33, useState as useState58 } from "react";
24020
- import { Fragment as Fragment37, jsx as jsx223, jsxs as jsxs177 } from "react/jsx-runtime";
24074
+ import { Fragment as Fragment36, jsx as jsx223, jsxs as jsxs177 } from "react/jsx-runtime";
24021
24075
  var isAtEnd = (duration, time) => duration > 0 && duration - time < 1;
24022
24076
  function theaterSeedFromLive(live, fallbackTime, fallbackMuted) {
24023
24077
  const time = live?.getCurrentTime() ?? 0;
@@ -24567,7 +24621,7 @@ function WalkthroughVideo({
24567
24621
  ]
24568
24622
  }
24569
24623
  );
24570
- return /* @__PURE__ */ jsxs177(Fragment37, { children: [
24624
+ return /* @__PURE__ */ jsxs177(Fragment36, { children: [
24571
24625
  showCard && (inline ? (
24572
24626
  // No wrapper: a positioning / z-index / safe-area shell around an
24573
24627
  // in-flow block is exactly what stops it sizing to its container.
@@ -26060,7 +26114,7 @@ function ViewToggle({
26060
26114
  // src/components/features/policy-configuration-panel.tsx
26061
26115
  import { ChevronDown as ChevronDown8, Shield } from "lucide-react";
26062
26116
  import { useState as useState61 } from "react";
26063
- import { Fragment as Fragment38, jsx as jsx242, jsxs as jsxs192 } from "react/jsx-runtime";
26117
+ import { Fragment as Fragment37, jsx as jsx242, jsxs as jsxs192 } from "react/jsx-runtime";
26064
26118
  var approvalLevelLabels = {
26065
26119
  ALLOW: "Allow",
26066
26120
  ASK_USER: "Ask User",
@@ -26126,7 +26180,7 @@ var PolicyRow = ({ policy, categoryId, editMode, onPermissionChange }) => {
26126
26180
  var CategorySection = ({ category, editMode, isExpanded, bulkLevel, onToggle, onBulkLevelChange, onPolicyPermissionChange }) => {
26127
26181
  const { innerRef, containerStyle } = useCollapsible({ expanded: isExpanded, durationMs: 300 });
26128
26182
  const handleBulkChange = (level) => onBulkLevelChange(category.id, level);
26129
- return /* @__PURE__ */ jsxs192(Fragment38, { children: [
26183
+ return /* @__PURE__ */ jsxs192(Fragment37, { children: [
26130
26184
  /* @__PURE__ */ jsxs192(
26131
26185
  "div",
26132
26186
  {
@@ -26267,7 +26321,7 @@ PolicyConfigurationPanel.displayName = "PolicyConfigurationPanel";
26267
26321
  // src/components/features/waitlist-form.tsx
26268
26322
  import { getCountries as getCountries2 } from "libphonenumber-js";
26269
26323
  import { useEffect as useEffect31, useState as useState62 } from "react";
26270
- import { Fragment as Fragment39, jsx as jsx243, jsxs as jsxs193 } from "react/jsx-runtime";
26324
+ import { Fragment as Fragment38, jsx as jsx243, jsxs as jsxs193 } from "react/jsx-runtime";
26271
26325
  function WaitlistForm({
26272
26326
  id = "waitlist-form",
26273
26327
  className,
@@ -26428,7 +26482,7 @@ function WaitlistForm({
26428
26482
  error: showConsentError ? "Please agree to SMS notifications to continue." : void 0,
26429
26483
  disabled: isSubmitting,
26430
26484
  label: smsCheckboxLabel,
26431
- description: /* @__PURE__ */ jsxs193(Fragment39, { children: [
26485
+ description: /* @__PURE__ */ jsxs193(Fragment38, { children: [
26432
26486
  consentText,
26433
26487
  " View our ",
26434
26488
  /* @__PURE__ */ jsx243(PolicyLink, { href: termsOfServiceUrl || "#", children: "Terms of Service" }),
@@ -27302,7 +27356,7 @@ function NotificationTile({
27302
27356
  }
27303
27357
 
27304
27358
  // src/components/features/notifications/notification-drawer.tsx
27305
- import { Fragment as Fragment40, jsx as jsx247, jsxs as jsxs196 } from "react/jsx-runtime";
27359
+ import { Fragment as Fragment39, jsx as jsx247, jsxs as jsxs196 } from "react/jsx-runtime";
27306
27360
  function NotificationDrawer({
27307
27361
  className,
27308
27362
  liveDurationMs,
@@ -27335,7 +27389,7 @@ function NotificationDrawer({
27335
27389
  } = ctx;
27336
27390
  const renderTile = renderTileProp ?? ctxRenderTile;
27337
27391
  const unreadNotifications = notifications.filter((n) => !n.read);
27338
- const content = /* @__PURE__ */ jsxs196(Fragment40, { children: [
27392
+ const content = /* @__PURE__ */ jsxs196(Fragment39, { children: [
27339
27393
  /* @__PURE__ */ jsx247("div", { className: "px-[var(--spacing-system-m)] pt-[var(--spacing-system-m)]", children: /* @__PURE__ */ jsx247(
27340
27394
  DrawerTitle,
27341
27395
  {
@@ -27447,7 +27501,7 @@ function DrawerScrollList({
27447
27501
  {
27448
27502
  ref: scrollRef,
27449
27503
  className: "flex flex-1 flex-col gap-[var(--spacing-system-xs)] overflow-y-auto px-[var(--spacing-system-m)]",
27450
- children: isEmpty && !isLoadingMore ? /* @__PURE__ */ jsx247(EmptyState, {}) : /* @__PURE__ */ jsxs196(Fragment40, { children: [
27504
+ children: isEmpty && !isLoadingMore ? /* @__PURE__ */ jsx247(EmptyState, {}) : /* @__PURE__ */ jsxs196(Fragment39, { children: [
27451
27505
  unreadNotifications.map((n) => {
27452
27506
  const custom = renderTile?.(n, { onComplete, onSettle, liveDurationMs });
27453
27507
  if (custom) return /* @__PURE__ */ jsx247("div", { children: custom }, n.id);
@@ -27469,7 +27523,7 @@ function DrawerScrollList({
27469
27523
  );
27470
27524
  }
27471
27525
  function DrawerLoadingTiles() {
27472
- return /* @__PURE__ */ jsxs196(Fragment40, { children: [
27526
+ return /* @__PURE__ */ jsxs196(Fragment39, { children: [
27473
27527
  /* @__PURE__ */ jsx247(
27474
27528
  "div",
27475
27529
  {
@@ -27699,7 +27753,7 @@ function approvalMetaToBatchData(approval) {
27699
27753
  }
27700
27754
 
27701
27755
  // src/components/features/notifications/approval-request-notification-tile.tsx
27702
- import { Fragment as Fragment41, jsx as jsx249, jsxs as jsxs197 } from "react/jsx-runtime";
27756
+ import { Fragment as Fragment40, jsx as jsx249, jsxs as jsxs197 } from "react/jsx-runtime";
27703
27757
  function ApprovalRequestNotificationTile({
27704
27758
  notification,
27705
27759
  onApprove,
@@ -27749,7 +27803,7 @@ function ApprovalRequestNotificationTile({
27749
27803
  className,
27750
27804
  paused: pinned || processing,
27751
27805
  actions: /* @__PURE__ */ jsxs197("div", { className: "flex w-full items-center gap-[var(--spacing-system-xs)]", children: [
27752
- status === "pending" ? /* @__PURE__ */ jsxs197(Fragment41, { children: [
27806
+ status === "pending" ? /* @__PURE__ */ jsxs197(Fragment40, { children: [
27753
27807
  /* @__PURE__ */ jsx249(
27754
27808
  Button,
27755
27809
  {
@@ -28234,7 +28288,7 @@ function HeaderButton({
28234
28288
  }
28235
28289
 
28236
28290
  // src/components/features/time-tracker/time-tracker-header-button.tsx
28237
- import { Fragment as Fragment42, jsx as jsx254, jsxs as jsxs200 } from "react/jsx-runtime";
28291
+ import { Fragment as Fragment41, jsx as jsx254, jsxs as jsxs200 } from "react/jsx-runtime";
28238
28292
  function TimeTrackerHeaderButton({ className, disabled }) {
28239
28293
  const ctx = useOptionalTimeTracker();
28240
28294
  const elapsedLabel = useTrackerClock({
@@ -28279,7 +28333,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
28279
28333
  isActive && "md:w-auto md:min-w-[144px] md:justify-center md:gap-[var(--spacing-system-xsf)] md:px-[var(--spacing-system-sf)]",
28280
28334
  className
28281
28335
  ),
28282
- icon: /* @__PURE__ */ jsxs200(Fragment42, { children: [
28336
+ icon: /* @__PURE__ */ jsxs200(Fragment41, { children: [
28283
28337
  /* @__PURE__ */ jsx254(
28284
28338
  ClockHistoryIcon,
28285
28339
  {
@@ -28334,7 +28388,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
28334
28388
  import { combine as combine3 } from "@atlaskit/pragmatic-drag-and-drop/combine";
28335
28389
  import { monitorForElements } from "@atlaskit/pragmatic-drag-and-drop/element/adapter";
28336
28390
  import { preventUnhandled } from "@atlaskit/pragmatic-drag-and-drop/utils/prevent-unhandled";
28337
- import { Fragment as Fragment45, useCallback as useCallback27, useEffect as useEffect42, useMemo as useMemo23, useRef as useRef42, useState as useState76 } from "react";
28391
+ import { Fragment as Fragment44, useCallback as useCallback27, useEffect as useEffect42, useMemo as useMemo23, useRef as useRef42, useState as useState76 } from "react";
28338
28392
  import { createPortal } from "react-dom";
28339
28393
 
28340
28394
  // src/utils/auto-scroll-ancestors.ts
@@ -28721,7 +28775,7 @@ function hasMoveSettled(columns, move) {
28721
28775
  }
28722
28776
 
28723
28777
  // src/components/features/board/ticket-card.tsx
28724
- import { Fragment as Fragment43, jsx as jsx257, jsxs as jsxs203 } from "react/jsx-runtime";
28778
+ import { Fragment as Fragment42, jsx as jsx257, jsxs as jsxs203 } from "react/jsx-runtime";
28725
28779
  var PRIORITY_COLOR_CLASS = {
28726
28780
  low: "text-ods-text-secondary",
28727
28781
  medium: "text-ods-info",
@@ -28782,7 +28836,7 @@ function TicketCardBody({ ticket, columnColor, renderAssignSlot, onApprove, onRe
28782
28836
  ] }) : null;
28783
28837
  const timestampLabel = ticket.createdAt ? formatTicketRelativeTime(ticket.createdAt) : null;
28784
28838
  const tooltipLabel = ticket.createdAt ? formatTicketFullTimestamp(ticket.createdAt) : null;
28785
- return /* @__PURE__ */ jsxs203(Fragment43, { children: [
28839
+ return /* @__PURE__ */ jsxs203(Fragment42, { children: [
28786
28840
  /* @__PURE__ */ jsxs203("div", { className: "flex items-start gap-[var(--spacing-system-sf)]", children: [
28787
28841
  /* @__PURE__ */ jsxs203("div", { className: "flex min-w-0 flex-1 flex-col gap-[var(--spacing-system-zero)]", title: ticket.title, children: [
28788
28842
  /* @__PURE__ */ jsx257("p", { className: "truncate text-ods-text-primary text-h3", children: ticket.title }),
@@ -29074,7 +29128,7 @@ var TicketCardSkeleton = forwardRef31(
29074
29128
  TicketCardSkeleton.displayName = "TicketCardSkeleton";
29075
29129
 
29076
29130
  // src/components/features/board/board-column.tsx
29077
- import { Fragment as Fragment44, jsx as jsx259, jsxs as jsxs205 } from "react/jsx-runtime";
29131
+ import { Fragment as Fragment43, jsx as jsx259, jsxs as jsxs205 } from "react/jsx-runtime";
29078
29132
  var BoardColumn = memo6(function BoardColumnImpl({
29079
29133
  column,
29080
29134
  collapsed = false,
@@ -29152,7 +29206,7 @@ var BoardColumn = memo6(function BoardColumnImpl({
29152
29206
  onArchive: !collapsed && column.archivable && onArchive ? () => onArchive(column.id) : void 0
29153
29207
  }
29154
29208
  ),
29155
- !collapsed && /* @__PURE__ */ jsxs205(Fragment44, { children: [
29209
+ !collapsed && /* @__PURE__ */ jsxs205(Fragment43, { children: [
29156
29210
  /* @__PURE__ */ jsx259("div", { "aria-hidden": true, className: "-mx-[var(--spacing-system-sf)] h-px shrink-0 bg-ods-border" }),
29157
29211
  /* @__PURE__ */ jsx259(
29158
29212
  ColumnBody,
@@ -29247,7 +29301,7 @@ function ColumnBody({
29247
29301
  );
29248
29302
  }
29249
29303
  function SkeletonStack({ count = 4 }) {
29250
- return /* @__PURE__ */ jsx259(Fragment44, { children: Array.from({ length: count }, (_, i) => /* @__PURE__ */ jsx259(TicketCardSkeleton, {}, `skeleton-${i}`)) });
29304
+ return /* @__PURE__ */ jsx259(Fragment43, { children: Array.from({ length: count }, (_, i) => /* @__PURE__ */ jsx259(TicketCardSkeleton, {}, `skeleton-${i}`)) });
29251
29305
  }
29252
29306
  function EmptyState2({ columnId, touchMode }) {
29253
29307
  const aim = useDropAim();
@@ -29642,7 +29696,7 @@ function DragBoard({
29642
29696
  const joinLeft = !!(column.system && prev?.system);
29643
29697
  const joinRight = !!(column.system && next?.system);
29644
29698
  const showGap = i > 0 && !joinLeft;
29645
- return /* @__PURE__ */ jsxs206(Fragment45, { children: [
29699
+ return /* @__PURE__ */ jsxs206(Fragment44, { children: [
29646
29700
  showGap && /* @__PURE__ */ jsx261("div", { "aria-hidden": true, className: "w-[var(--spacing-system-mf)] shrink-0" }),
29647
29701
  /* @__PURE__ */ jsx261(
29648
29702
  BoardColumn,
@@ -30444,6 +30498,15 @@ export {
30444
30498
  ListLoader,
30445
30499
  CursorPagination,
30446
30500
  CursorPaginationSimple,
30501
+ useDataTableContext,
30502
+ DataTableRoot,
30503
+ getHideClasses,
30504
+ alignJustify,
30505
+ multiSelectFilterFn,
30506
+ ROW_HEIGHT_DESKTOP,
30507
+ ROW_HEIGHT_MOBILE,
30508
+ ROW_SHELL_CLASSES,
30509
+ DataTableSkeleton,
30447
30510
  TableEmptyState,
30448
30511
  DynamicThemeProvider,
30449
30512
  useDynamicTheme,
@@ -30637,7 +30700,6 @@ export {
30637
30700
  TicketStatusConfigList,
30638
30701
  TableHeader,
30639
30702
  TableCell,
30640
- COMPACT_ROW_MIN_HEIGHT_PX,
30641
30703
  TableCardSkeleton,
30642
30704
  TableRow,
30643
30705
  Table,
@@ -30649,16 +30711,7 @@ export {
30649
30711
  deriveColumns,
30650
30712
  exportToCSV,
30651
30713
  QueryReportTable,
30652
- useDataTableContext,
30653
- DataTableRoot,
30654
30714
  DataTableEmpty,
30655
- getHideClasses2 as getHideClasses,
30656
- alignJustify,
30657
- multiSelectFilterFn,
30658
- ROW_HEIGHT_DESKTOP2 as ROW_HEIGHT_DESKTOP,
30659
- ROW_HEIGHT_MOBILE2 as ROW_HEIGHT_MOBILE,
30660
- ROW_SHELL_CLASSES,
30661
- DataTableSkeleton,
30662
30715
  DataTableRow,
30663
30716
  DataTableBody,
30664
30717
  DataTableCursorFooter,
@@ -30713,4 +30766,4 @@ export {
30713
30766
  LazyMount,
30714
30767
  IconTile
30715
30768
  };
30716
- //# sourceMappingURL=chunk-MF324FSD.js.map
30769
+ //# sourceMappingURL=chunk-GHYFVT52.js.map