@burdenoff/microfe-workspaces 2026.1108.1 → 2026.1109.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { tWithFallback as e } from "../../utils/i18n.js";
|
|
2
2
|
import { AlertCircle as t, WifiOff as n } from "lucide-react";
|
|
3
3
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
-
import { CardContent as a, CardHeader as o,
|
|
5
|
-
import { useI18n as
|
|
4
|
+
import { CardContent as a, CardHeader as o, GlassCard as s, Skeleton as c } from "@burdenoff/fe-libs/ui";
|
|
5
|
+
import { useI18n as l } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
6
6
|
//#region src/pages/dashboard/WidgetWrapper.tsx
|
|
7
|
-
function
|
|
7
|
+
function u(e) {
|
|
8
8
|
switch (e) {
|
|
9
9
|
case "large": return "col-span-1 sm:col-span-2 lg:col-span-3";
|
|
10
10
|
case "medium": return "col-span-1 sm:col-span-2 lg:col-span-2 xl:col-span-2 2xl:col-span-1";
|
|
@@ -12,18 +12,18 @@ function d(e) {
|
|
|
12
12
|
default: return "col-span-1";
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function d() {
|
|
16
16
|
return /* @__PURE__ */ i("div", {
|
|
17
17
|
className: "space-y-3 p-1",
|
|
18
18
|
children: [
|
|
19
|
-
/* @__PURE__ */ r(
|
|
20
|
-
/* @__PURE__ */ r(
|
|
21
|
-
/* @__PURE__ */ r(
|
|
22
|
-
/* @__PURE__ */ r(
|
|
19
|
+
/* @__PURE__ */ r(c, { className: "h-4 w-3/4" }),
|
|
20
|
+
/* @__PURE__ */ r(c, { className: "h-4 w-1/2" }),
|
|
21
|
+
/* @__PURE__ */ r(c, { className: "h-20 w-full" }),
|
|
22
|
+
/* @__PURE__ */ r(c, { className: "h-4 w-2/3" })
|
|
23
23
|
]
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function f({ message: e }) {
|
|
27
27
|
return /* @__PURE__ */ i("div", {
|
|
28
28
|
className: "flex flex-col items-center justify-center py-6 text-center",
|
|
29
29
|
children: [/* @__PURE__ */ r("div", {
|
|
@@ -35,8 +35,8 @@ function p({ message: e }) {
|
|
|
35
35
|
})]
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
let { t } =
|
|
38
|
+
function p() {
|
|
39
|
+
let { t } = l();
|
|
40
40
|
return /* @__PURE__ */ i("div", {
|
|
41
41
|
className: "flex flex-col items-center justify-center py-6 text-center",
|
|
42
42
|
children: [/* @__PURE__ */ r("div", {
|
|
@@ -48,21 +48,21 @@ function m() {
|
|
|
48
48
|
})]
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return /* @__PURE__ */ i(
|
|
51
|
+
function m({ title: e, icon: t, size: n, isLoading: c, error: l, unavailable: m, headerAction: h, children: g, className: _ = "" }) {
|
|
52
|
+
return /* @__PURE__ */ i(s, {
|
|
53
53
|
treatment: "insight",
|
|
54
|
-
className: `h-full ${
|
|
54
|
+
className: `h-full ${u(n)} border-border-seam bg-bg-surface ${_}`,
|
|
55
55
|
children: [/* @__PURE__ */ i(o, {
|
|
56
56
|
className: "flex flex-row items-center justify-between pb-2 gap-y-0",
|
|
57
|
-
children: [/* @__PURE__ */ i(
|
|
58
|
-
className: "text-sm font-semibold text-text-primary flex items-center gap-2",
|
|
57
|
+
children: [/* @__PURE__ */ i("h2", {
|
|
58
|
+
className: "text-sm font-semibold leading-tight tracking-tight text-text-primary flex items-center gap-2",
|
|
59
59
|
children: [t, e]
|
|
60
|
-
}),
|
|
60
|
+
}), h]
|
|
61
61
|
}), /* @__PURE__ */ r(a, {
|
|
62
62
|
className: "pt-0",
|
|
63
|
-
children:
|
|
63
|
+
children: c ? /* @__PURE__ */ r(d, {}) : l ? /* @__PURE__ */ r(f, { message: l }) : m ? /* @__PURE__ */ r(p, {}) : g
|
|
64
64
|
})]
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
//#endregion
|
|
68
|
-
export {
|
|
68
|
+
export { m as WidgetWrapper, u as getColSpan };
|
|
@@ -43,7 +43,7 @@ function p({ workspaceData: p, globalData: m, isLoading: h, navigate: g }) {
|
|
|
43
43
|
treatment: "glass",
|
|
44
44
|
glow: !0,
|
|
45
45
|
className: "relative overflow-hidden p-4",
|
|
46
|
-
children: [/* @__PURE__ */ c("
|
|
46
|
+
children: [/* @__PURE__ */ c("h3", {
|
|
47
47
|
className: "text-xl font-bold text-text-primary",
|
|
48
48
|
children: [
|
|
49
49
|
x,
|