@flamingo-stack/openframe-frontend-core 0.0.596 → 0.0.597
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-SXVGFJ24.cjs → chunk-2JOIC34G.cjs} +17 -17
- package/dist/{chunk-SXVGFJ24.cjs.map → chunk-2JOIC34G.cjs.map} +1 -1
- package/dist/{chunk-YNO4DEXK.cjs → chunk-6QZNDPMV.cjs} +4 -4
- package/dist/{chunk-YNO4DEXK.cjs.map → chunk-6QZNDPMV.cjs.map} +1 -1
- package/dist/{chunk-N7SFQMCH.js → chunk-B4BZRBKC.js} +2 -2
- package/dist/{chunk-KU3JQWYJ.js → chunk-BOILDHSY.js} +4 -4
- package/dist/{chunk-P2SECY3U.js → chunk-BZ4UEHNJ.js} +4 -4
- package/dist/{chunk-FV5VGJE6.cjs → chunk-CPJP7GKL.cjs} +3 -3
- package/dist/{chunk-FV5VGJE6.cjs.map → chunk-CPJP7GKL.cjs.map} +1 -1
- package/dist/{chunk-PTXOWFRB.js → chunk-DNQP4VPB.js} +5 -5
- package/dist/{chunk-4S5E7NOM.cjs → chunk-E27AKT4A.cjs} +3 -3
- package/dist/{chunk-4S5E7NOM.cjs.map → chunk-E27AKT4A.cjs.map} +1 -1
- package/dist/{chunk-B3NX4GZS.cjs → chunk-E74GL4E3.cjs} +3 -3
- package/dist/{chunk-B3NX4GZS.cjs.map → chunk-E74GL4E3.cjs.map} +1 -1
- package/dist/{chunk-SSSZ64YG.js → chunk-EGQ345IA.js} +2 -2
- package/dist/{chunk-PYWF5JJW.js → chunk-ELG2QNW5.js} +5 -5
- package/dist/{chunk-7L5ROE3Z.js → chunk-FHWL7QFL.js} +2 -2
- package/dist/{chunk-MF324FSD.js → chunk-FKOYQPMK.js} +46 -18
- package/dist/chunk-FKOYQPMK.js.map +1 -0
- package/dist/{chunk-FCNICDWP.cjs → chunk-GKZUTZT3.cjs} +3 -3
- package/dist/{chunk-FCNICDWP.cjs.map → chunk-GKZUTZT3.cjs.map} +1 -1
- package/dist/{chunk-HFJSBIXL.js → chunk-IRXLB6GV.js} +2 -2
- package/dist/{chunk-DVSTM6QK.cjs → chunk-JJFYMYBJ.cjs} +33 -33
- package/dist/{chunk-DVSTM6QK.cjs.map → chunk-JJFYMYBJ.cjs.map} +1 -1
- package/dist/{chunk-EQ3DAGD7.cjs → chunk-L3L2ATFK.cjs} +34 -34
- package/dist/{chunk-EQ3DAGD7.cjs.map → chunk-L3L2ATFK.cjs.map} +1 -1
- package/dist/{chunk-AYVTVUZT.cjs → chunk-NK6COZ3P.cjs} +13 -13
- package/dist/{chunk-AYVTVUZT.cjs.map → chunk-NK6COZ3P.cjs.map} +1 -1
- package/dist/{chunk-MIC4HHVZ.cjs → chunk-PIQRGLTF.cjs} +17 -17
- package/dist/{chunk-MIC4HHVZ.cjs.map → chunk-PIQRGLTF.cjs.map} +1 -1
- package/dist/{chunk-6EBKO275.js → chunk-PT54TJWD.js} +2 -2
- package/dist/{chunk-IMIR5V6E.cjs → chunk-R2MOCGZ7.cjs} +18 -18
- package/dist/{chunk-IMIR5V6E.cjs.map → chunk-R2MOCGZ7.cjs.map} +1 -1
- package/dist/{chunk-AVIZUQRW.js → chunk-R2YJKREE.js} +2 -2
- package/dist/{chunk-WRWXND3X.cjs → chunk-RYZKWZBG.cjs} +10 -10
- package/dist/{chunk-WRWXND3X.cjs.map → chunk-RYZKWZBG.cjs.map} +1 -1
- package/dist/{chunk-VD3ZAA2O.js → chunk-TVK7PQON.js} +2 -2
- package/dist/{chunk-R5IWJONE.cjs → chunk-UIVLSMEZ.cjs} +47 -19
- package/dist/chunk-UIVLSMEZ.cjs.map +1 -0
- package/dist/{chunk-TRJJMZSQ.js → chunk-V6KX4KO3.js} +2 -2
- package/dist/{chunk-OGTXZFFE.cjs → chunk-VQ6INRQ4.cjs} +50 -50
- package/dist/{chunk-OGTXZFFE.cjs.map → chunk-VQ6INRQ4.cjs.map} +1 -1
- package/dist/{chunk-GOD47MJM.js → chunk-VXEHG53O.js} +3 -3
- package/dist/{chunk-MGBWMZEL.js → chunk-WWGSYT7R.js} +2 -2
- package/dist/{chunk-OEDUVTPT.cjs → chunk-Z4QFA4BF.cjs} +4 -4
- package/dist/{chunk-OEDUVTPT.cjs.map → chunk-Z4QFA4BF.cjs.map} +1 -1
- package/dist/components/case-studies/index.cjs +8 -8
- package/dist/components/case-studies/index.js +2 -2
- package/dist/components/contact/index.cjs +3 -3
- package/dist/components/contact/index.js +2 -2
- package/dist/components/docs/index.cjs +6 -6
- package/dist/components/docs/index.js +5 -5
- package/dist/components/embeds/index.cjs +3 -3
- package/dist/components/embeds/index.js +2 -2
- package/dist/components/faq/index.cjs +3 -3
- package/dist/components/faq/index.js +2 -2
- package/dist/components/features/index.cjs +2 -2
- package/dist/components/features/index.js +1 -1
- package/dist/components/help-center-pages/index.cjs +22 -22
- package/dist/components/help-center-pages/index.js +13 -13
- package/dist/components/index.cjs +31 -33
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +12 -14
- package/dist/components/index.js.map +1 -1
- package/dist/components/meeting-scheduler/index.cjs +21 -21
- package/dist/components/meeting-scheduler/index.js +1 -1
- package/dist/components/navigation/index.cjs +5 -5
- package/dist/components/navigation/index.js +4 -4
- package/dist/components/onboarding-guides/index.cjs +5 -5
- package/dist/components/onboarding-guides/index.js +4 -4
- package/dist/components/tickets/index.cjs +6 -6
- package/dist/components/tickets/index.js +5 -5
- package/dist/components/ui/index.cjs +2 -4
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +1 -3
- package/dist/components/ui/table/index.d.ts +1 -1
- package/dist/components/ui/table/index.d.ts.map +1 -1
- package/dist/components/ui/table/table-empty-state.d.ts +1 -1
- package/dist/components/ui/table/table-empty-state.d.ts.map +1 -1
- package/dist/components/ui/table/table-skeleton.d.ts +18 -9
- package/dist/components/ui/table/table-skeleton.d.ts.map +1 -1
- package/dist/components/ui/table/table.d.ts +1 -1
- package/dist/components/ui/table/table.d.ts.map +1 -1
- package/dist/components/ui/table/types.d.ts +13 -0
- package/dist/components/ui/table/types.d.ts.map +1 -1
- package/dist/index.cjs +6 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ui/index.ts +0 -1
- package/src/components/ui/table/index.ts +1 -1
- package/src/components/ui/table/table-empty-state.tsx +2 -2
- package/src/components/ui/table/table-skeleton.tsx +42 -9
- package/src/components/ui/table/table.tsx +19 -15
- package/src/components/ui/table/types.ts +13 -0
- package/dist/chunk-MF324FSD.js.map +0 -1
- package/dist/chunk-R5IWJONE.cjs.map +0 -1
- /package/dist/{chunk-N7SFQMCH.js.map → chunk-B4BZRBKC.js.map} +0 -0
- /package/dist/{chunk-KU3JQWYJ.js.map → chunk-BOILDHSY.js.map} +0 -0
- /package/dist/{chunk-P2SECY3U.js.map → chunk-BZ4UEHNJ.js.map} +0 -0
- /package/dist/{chunk-PTXOWFRB.js.map → chunk-DNQP4VPB.js.map} +0 -0
- /package/dist/{chunk-SSSZ64YG.js.map → chunk-EGQ345IA.js.map} +0 -0
- /package/dist/{chunk-PYWF5JJW.js.map → chunk-ELG2QNW5.js.map} +0 -0
- /package/dist/{chunk-7L5ROE3Z.js.map → chunk-FHWL7QFL.js.map} +0 -0
- /package/dist/{chunk-HFJSBIXL.js.map → chunk-IRXLB6GV.js.map} +0 -0
- /package/dist/{chunk-6EBKO275.js.map → chunk-PT54TJWD.js.map} +0 -0
- /package/dist/{chunk-AVIZUQRW.js.map → chunk-R2YJKREE.js.map} +0 -0
- /package/dist/{chunk-VD3ZAA2O.js.map → chunk-TVK7PQON.js.map} +0 -0
- /package/dist/{chunk-TRJJMZSQ.js.map → chunk-V6KX4KO3.js.map} +0 -0
- /package/dist/{chunk-GOD47MJM.js.map → chunk-VXEHG53O.js.map} +0 -0
- /package/dist/{chunk-MGBWMZEL.js.map → chunk-WWGSYT7R.js.map} +0 -0
|
@@ -12841,13 +12841,13 @@ function CursorPaginationSimple({
|
|
|
12841
12841
|
|
|
12842
12842
|
// src/components/ui/table/table-empty-state.tsx
|
|
12843
12843
|
import { jsx as jsx113 } from "react/jsx-runtime";
|
|
12844
|
-
function TableEmptyState({ message, icon, action, className }) {
|
|
12844
|
+
function TableEmptyState({ message, description, icon, action, className }) {
|
|
12845
12845
|
return /* @__PURE__ */ jsx113(
|
|
12846
12846
|
NoData,
|
|
12847
12847
|
{
|
|
12848
12848
|
icon: icon ?? /* @__PURE__ */ jsx113(SearchIcon, {}),
|
|
12849
12849
|
title: message ?? "No results found",
|
|
12850
|
-
description: message == null ? "Try adjusting your search or filters" : void 0,
|
|
12850
|
+
description: description ?? (message == null ? "Try adjusting your search or filters" : void 0),
|
|
12851
12851
|
buttonLabel: action?.label,
|
|
12852
12852
|
onButtonClick: action?.onClick,
|
|
12853
12853
|
className: cn("py-[var(--spacing-system-xxl)]", className)
|
|
@@ -13084,8 +13084,38 @@ function TableCell({ children, align = "left", className, width }) {
|
|
|
13084
13084
|
import { Fragment as Fragment16, jsx as jsx117, jsxs as jsxs90 } from "react/jsx-runtime";
|
|
13085
13085
|
var ROW_HEIGHT_DESKTOP = "h-[66px] md:h-[78px]";
|
|
13086
13086
|
var COMPACT_ROW_MIN_HEIGHT = "min-h-[56px]";
|
|
13087
|
-
var COMPACT_ROW_MIN_HEIGHT_PX = 56;
|
|
13088
13087
|
var ROW_HEIGHT_MOBILE = "h-[66px]";
|
|
13088
|
+
function TablePlaceholderRows({ rows, compact }) {
|
|
13089
|
+
if (rows <= 0) return null;
|
|
13090
|
+
return /* @__PURE__ */ jsx117(Fragment16, { children: Array.from({ length: rows }).map((_, index) => /* @__PURE__ */ jsxs90(
|
|
13091
|
+
"div",
|
|
13092
|
+
{
|
|
13093
|
+
className: "pointer-events-none relative overflow-hidden rounded-[6px] border border-transparent",
|
|
13094
|
+
"aria-hidden": "true",
|
|
13095
|
+
children: [
|
|
13096
|
+
/* @__PURE__ */ jsx117(
|
|
13097
|
+
"div",
|
|
13098
|
+
{
|
|
13099
|
+
className: cn(
|
|
13100
|
+
"hidden items-center gap-4 px-4 md:flex",
|
|
13101
|
+
compact ? cn("py-2", COMPACT_ROW_MIN_HEIGHT) : cn("py-0", ROW_HEIGHT_DESKTOP)
|
|
13102
|
+
)
|
|
13103
|
+
}
|
|
13104
|
+
),
|
|
13105
|
+
/* @__PURE__ */ jsx117(
|
|
13106
|
+
"div",
|
|
13107
|
+
{
|
|
13108
|
+
className: cn(
|
|
13109
|
+
"flex items-center justify-start gap-3 px-3 md:hidden",
|
|
13110
|
+
compact ? cn("py-2", COMPACT_ROW_MIN_HEIGHT) : cn("py-0", ROW_HEIGHT_MOBILE)
|
|
13111
|
+
)
|
|
13112
|
+
}
|
|
13113
|
+
)
|
|
13114
|
+
]
|
|
13115
|
+
},
|
|
13116
|
+
`placeholder-${index}`
|
|
13117
|
+
)) });
|
|
13118
|
+
}
|
|
13089
13119
|
function TableCardSkeleton({
|
|
13090
13120
|
columns,
|
|
13091
13121
|
rows = 10,
|
|
@@ -13334,6 +13364,8 @@ function Table({
|
|
|
13334
13364
|
loading = false,
|
|
13335
13365
|
emptyMessage,
|
|
13336
13366
|
skeletonRows = 10,
|
|
13367
|
+
keepHeightWhenEmpty = false,
|
|
13368
|
+
emptyDescription,
|
|
13337
13369
|
className,
|
|
13338
13370
|
containerClassName,
|
|
13339
13371
|
headerClassName,
|
|
@@ -13480,7 +13512,15 @@ function Table({
|
|
|
13480
13512
|
hasActions: (rowActions?.length ?? 0) > 0,
|
|
13481
13513
|
hasChevron: Boolean(rowHref)
|
|
13482
13514
|
}
|
|
13483
|
-
) : data.length === 0 ?
|
|
13515
|
+
) : data.length === 0 ? keepHeightWhenEmpty ? (
|
|
13516
|
+
/* Same box as a full page: the placeholders hold the rows' height
|
|
13517
|
+
and the empty state floats over them — TOP-aligned, not centred,
|
|
13518
|
+
so a 20-row reservation still shows the message above the fold. */
|
|
13519
|
+
/* @__PURE__ */ jsxs92("div", { className: "relative flex w-full flex-col gap-2", children: [
|
|
13520
|
+
/* @__PURE__ */ jsx119(TablePlaceholderRows, { rows: skeletonRows, compact }),
|
|
13521
|
+
/* @__PURE__ */ jsx119("div", { className: "absolute inset-x-0 top-0 flex justify-center", children: /* @__PURE__ */ jsx119(TableEmptyState, { message: emptyMessage, description: emptyDescription }) })
|
|
13522
|
+
] })
|
|
13523
|
+
) : /* @__PURE__ */ jsx119(TableEmptyState, { message: emptyMessage, description: emptyDescription }) : /* @__PURE__ */ jsxs92(Fragment17, { children: [
|
|
13484
13524
|
(() => {
|
|
13485
13525
|
const rows = data.map((item, index) => /* @__PURE__ */ jsx119(
|
|
13486
13526
|
TableRow,
|
|
@@ -13513,18 +13553,7 @@ function Table({
|
|
|
13513
13553
|
}
|
|
13514
13554
|
),
|
|
13515
13555
|
infiniteScroll?.hasNextPage && /* @__PURE__ */ jsx119("div", { ref: sentinelRef, className: "h-1", "aria-hidden": "true" }),
|
|
13516
|
-
!infiniteScroll &&
|
|
13517
|
-
"div",
|
|
13518
|
-
{
|
|
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
|
-
))
|
|
13556
|
+
!infiniteScroll && /* @__PURE__ */ jsx119(TablePlaceholderRows, { rows: Math.max(0, skeletonRows - data.length), compact })
|
|
13528
13557
|
] }) }),
|
|
13529
13558
|
!infiniteScroll && cursorPagination && data.length > 0 && /* @__PURE__ */ jsx119(
|
|
13530
13559
|
CursorPagination,
|
|
@@ -30637,7 +30666,6 @@ export {
|
|
|
30637
30666
|
TicketStatusConfigList,
|
|
30638
30667
|
TableHeader,
|
|
30639
30668
|
TableCell,
|
|
30640
|
-
COMPACT_ROW_MIN_HEIGHT_PX,
|
|
30641
30669
|
TableCardSkeleton,
|
|
30642
30670
|
TableRow,
|
|
30643
30671
|
Table,
|
|
@@ -30713,4 +30741,4 @@ export {
|
|
|
30713
30741
|
LazyMount,
|
|
30714
30742
|
IconTile
|
|
30715
30743
|
};
|
|
30716
|
-
//# sourceMappingURL=chunk-
|
|
30744
|
+
//# sourceMappingURL=chunk-FKOYQPMK.js.map
|