@burdenoff/microfe-headshotmarketing 2026.827.1 → 2026.830.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/headshotmarketing/HeadshotMarketingRoot.d.ts.map +1 -1
- package/dist/headshotmarketing/HeadshotMarketingRoot.js +43 -49
- package/dist/headshotmarketing/HeadshotMarketingRoot.js.map +1 -1
- package/dist/headshotmarketing/components/DataTable.d.ts.map +1 -1
- package/dist/headshotmarketing/components/DataTable.js +87 -79
- package/dist/headshotmarketing/components/DataTable.js.map +1 -1
- package/dist/headshotmarketing/components/Pagination.js +23 -23
- package/dist/headshotmarketing/components/QueryStateBoundary.js +12 -12
- package/dist/headshotmarketing/hooks/index.d.ts +1 -0
- package/dist/headshotmarketing/hooks/index.d.ts.map +1 -1
- package/dist/headshotmarketing/hooks/index.js +1 -0
- package/dist/headshotmarketing/pages/HomePage.js +164 -164
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdsPage.js +57 -57
- package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +5 -5
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +115 -115
- package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
- package/dist/shared/hooks/useTr.d.ts +17 -0
- package/dist/shared/hooks/useTr.d.ts.map +1 -0
- package/dist/shared/hooks/useTr.js +14 -0
- package/dist/shared/hooks/useTr.js.map +1 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { cn as e } from "../utils/helpers.js";
|
|
2
2
|
import { ChevronLeft as t, ChevronRight as n } from "lucide-react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
+
import { useI18n as a } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
5
5
|
//#region src/headshotmarketing/components/Pagination.tsx
|
|
6
6
|
var o = ({ page: o, pageSize: s, total: c, onPageChange: l, onPageSizeChange: u, pageSizeOptions: d = [
|
|
7
7
|
10,
|
|
@@ -9,100 +9,100 @@ var o = ({ page: o, pageSize: s, total: c, onPageChange: l, onPageSizeChange: u,
|
|
|
9
9
|
50,
|
|
10
10
|
100
|
|
11
11
|
], disabled: f = !1, hideWhenSinglePage: p = !1, className: m }) => {
|
|
12
|
-
let { t: h } =
|
|
12
|
+
let { t: h } = a(), g = (e, t) => {
|
|
13
13
|
let n = h(e);
|
|
14
14
|
return n === e ? t : n;
|
|
15
15
|
}, _ = Math.max(1, Math.ceil(c / s)), v = Math.min(Math.max(1, o), _), y = v > 1, b = v < _, x = c === 0 ? 0 : (v - 1) * s + 1, S = Math.min(v * s, c);
|
|
16
16
|
if (p && _ <= 1) return null;
|
|
17
17
|
let C = (t) => e("inline-flex min-h-[40px] items-center gap-1 rounded-md border border-border-seam bg-bg-surface px-3 py-2 text-sm font-medium text-text-primary transition-colors", t && !f ? "hover:bg-bg-sunken focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]" : "cursor-not-allowed opacity-50");
|
|
18
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ i("nav", {
|
|
19
19
|
className: e("flex flex-col items-center justify-between gap-3 pt-2 sm:flex-row", m),
|
|
20
20
|
"aria-label": g("headshotmarketing.common.pagination.label", "Pagination"),
|
|
21
|
-
children: [/* @__PURE__ */
|
|
21
|
+
children: [/* @__PURE__ */ i("div", {
|
|
22
22
|
className: "flex items-center gap-3",
|
|
23
|
-
children: [/* @__PURE__ */
|
|
23
|
+
children: [/* @__PURE__ */ i("p", {
|
|
24
24
|
className: "text-sm text-text-secondary tabular-nums",
|
|
25
25
|
children: [
|
|
26
26
|
g("headshotmarketing.common.pagination.showing", "Showing"),
|
|
27
27
|
" ",
|
|
28
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ r("span", {
|
|
29
29
|
className: "font-medium text-text-primary",
|
|
30
30
|
children: x
|
|
31
31
|
}),
|
|
32
32
|
"–",
|
|
33
|
-
/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ r("span", {
|
|
34
34
|
className: "font-medium text-text-primary",
|
|
35
35
|
children: S
|
|
36
36
|
}),
|
|
37
37
|
" ",
|
|
38
38
|
g("headshotmarketing.common.pagination.of", "of"),
|
|
39
39
|
" ",
|
|
40
|
-
/* @__PURE__ */
|
|
40
|
+
/* @__PURE__ */ r("span", {
|
|
41
41
|
className: "font-medium text-text-primary",
|
|
42
42
|
children: c
|
|
43
43
|
})
|
|
44
44
|
]
|
|
45
|
-
}), u && /* @__PURE__ */
|
|
45
|
+
}), u && /* @__PURE__ */ i("label", {
|
|
46
46
|
className: "flex items-center gap-2 text-sm text-text-secondary",
|
|
47
|
-
children: [/* @__PURE__ */
|
|
47
|
+
children: [/* @__PURE__ */ r("span", {
|
|
48
48
|
className: "sr-only sm:not-sr-only",
|
|
49
49
|
children: g("headshotmarketing.common.pagination.perPage", "Per page")
|
|
50
|
-
}), /* @__PURE__ */
|
|
50
|
+
}), /* @__PURE__ */ r("select", {
|
|
51
51
|
value: s,
|
|
52
52
|
disabled: f,
|
|
53
53
|
onChange: (e) => u(Number(e.target.value)),
|
|
54
54
|
className: "rounded-md border border-border-subtle bg-bg-surface px-2 py-1.5 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)] disabled:cursor-not-allowed disabled:opacity-50",
|
|
55
|
-
children: d.map((e) => /* @__PURE__ */
|
|
55
|
+
children: d.map((e) => /* @__PURE__ */ r("option", {
|
|
56
56
|
value: e,
|
|
57
57
|
children: e
|
|
58
58
|
}, e))
|
|
59
59
|
})]
|
|
60
60
|
})]
|
|
61
|
-
}), /* @__PURE__ */
|
|
61
|
+
}), /* @__PURE__ */ i("div", {
|
|
62
62
|
className: "flex items-center gap-2",
|
|
63
63
|
children: [
|
|
64
|
-
/* @__PURE__ */
|
|
64
|
+
/* @__PURE__ */ i("button", {
|
|
65
65
|
type: "button",
|
|
66
66
|
onClick: () => y && !f && l(v - 1),
|
|
67
67
|
disabled: !y || f,
|
|
68
68
|
className: C(y),
|
|
69
69
|
"aria-label": g("headshotmarketing.common.pagination.previous", "Previous"),
|
|
70
|
-
children: [/* @__PURE__ */
|
|
70
|
+
children: [/* @__PURE__ */ r(t, {
|
|
71
71
|
className: "h-4 w-4",
|
|
72
72
|
"aria-hidden": "true"
|
|
73
|
-
}), /* @__PURE__ */
|
|
73
|
+
}), /* @__PURE__ */ r("span", {
|
|
74
74
|
className: "hidden sm:inline",
|
|
75
75
|
children: g("headshotmarketing.common.pagination.previous", "Previous")
|
|
76
76
|
})]
|
|
77
77
|
}),
|
|
78
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ i("span", {
|
|
79
79
|
className: "text-sm text-text-secondary tabular-nums",
|
|
80
80
|
children: [
|
|
81
81
|
g("headshotmarketing.common.pagination.page", "Page"),
|
|
82
82
|
" ",
|
|
83
|
-
/* @__PURE__ */
|
|
83
|
+
/* @__PURE__ */ r("span", {
|
|
84
84
|
className: "font-medium text-text-primary",
|
|
85
85
|
children: v
|
|
86
86
|
}),
|
|
87
87
|
" ",
|
|
88
88
|
g("headshotmarketing.common.pagination.of", "of"),
|
|
89
89
|
" ",
|
|
90
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ r("span", {
|
|
91
91
|
className: "font-medium text-text-primary",
|
|
92
92
|
children: _
|
|
93
93
|
})
|
|
94
94
|
]
|
|
95
95
|
}),
|
|
96
|
-
/* @__PURE__ */
|
|
96
|
+
/* @__PURE__ */ i("button", {
|
|
97
97
|
type: "button",
|
|
98
98
|
onClick: () => b && !f && l(v + 1),
|
|
99
99
|
disabled: !b || f,
|
|
100
100
|
className: C(b),
|
|
101
101
|
"aria-label": g("headshotmarketing.common.pagination.next", "Next"),
|
|
102
|
-
children: [/* @__PURE__ */
|
|
102
|
+
children: [/* @__PURE__ */ r("span", {
|
|
103
103
|
className: "hidden sm:inline",
|
|
104
104
|
children: g("headshotmarketing.common.pagination.next", "Next")
|
|
105
|
-
}), /* @__PURE__ */
|
|
105
|
+
}), /* @__PURE__ */ r(n, {
|
|
106
106
|
className: "h-4 w-4",
|
|
107
107
|
"aria-hidden": "true"
|
|
108
108
|
})]
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import { cn as e } from "../utils/helpers.js";
|
|
2
2
|
import { LoadingSkeleton as t } from "./LoadingSkeleton.js";
|
|
3
3
|
import { AlertTriangle as n, RefreshCw as r } from "lucide-react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
|
+
import { useI18n as s } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
6
6
|
//#region src/headshotmarketing/components/QueryStateBoundary.tsx
|
|
7
7
|
var c = ({ loading: c, error: l, onRetry: u, hasData: d = !1, skeletonLines: f = 5, loadingFallback: p, errorTitle: m, errorDescription: h, retryLabel: g, className: _, children: v }) => {
|
|
8
|
-
let { t: y } =
|
|
8
|
+
let { t: y } = s(), b = (e, t) => {
|
|
9
9
|
let n = y(e);
|
|
10
10
|
return n === e ? t : n;
|
|
11
11
|
};
|
|
12
|
-
return l && !d ? /* @__PURE__ */
|
|
12
|
+
return l && !d ? /* @__PURE__ */ o("div", {
|
|
13
13
|
role: "alert",
|
|
14
14
|
className: e("flex flex-col items-center justify-center rounded-card border border-status-error-border bg-status-error-bg/40 px-6 py-12 text-center", _),
|
|
15
15
|
children: [
|
|
16
|
-
/* @__PURE__ */
|
|
16
|
+
/* @__PURE__ */ a(n, {
|
|
17
17
|
className: "mb-4 h-10 w-10 text-status-error-text",
|
|
18
18
|
"aria-hidden": "true"
|
|
19
19
|
}),
|
|
20
|
-
/* @__PURE__ */
|
|
20
|
+
/* @__PURE__ */ a("h3", {
|
|
21
21
|
className: "text-lg font-semibold text-text-primary",
|
|
22
22
|
children: m ?? b("headshotmarketing.common.error.title", "Something went wrong")
|
|
23
23
|
}),
|
|
24
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ a("p", {
|
|
25
25
|
className: "mt-1 max-w-md text-sm text-text-secondary",
|
|
26
26
|
children: h ?? l?.message ?? b("headshotmarketing.common.error.description", "We couldn't load this data. Please try again.")
|
|
27
27
|
}),
|
|
28
|
-
u && /* @__PURE__ */
|
|
28
|
+
u && /* @__PURE__ */ o("button", {
|
|
29
29
|
type: "button",
|
|
30
30
|
onClick: u,
|
|
31
31
|
className: "mt-5 inline-flex min-h-[44px] items-center gap-2 rounded-md bg-action-primary-bg px-4 py-2 text-sm font-medium text-action-primary-text shadow-pop transition-colors hover:bg-action-primary-bg/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
|
|
32
|
-
children: [/* @__PURE__ */
|
|
32
|
+
children: [/* @__PURE__ */ a(r, {
|
|
33
33
|
className: "h-4 w-4",
|
|
34
34
|
"aria-hidden": "true"
|
|
35
35
|
}), g ?? b("headshotmarketing.common.error.retry", "Retry")]
|
|
36
36
|
})
|
|
37
37
|
]
|
|
38
|
-
}) : c && !d ? /* @__PURE__ */
|
|
38
|
+
}) : c && !d ? /* @__PURE__ */ a("div", {
|
|
39
39
|
className: _,
|
|
40
|
-
children: p ?? /* @__PURE__ */
|
|
41
|
-
}) : /* @__PURE__ */
|
|
40
|
+
children: p ?? /* @__PURE__ */ a(t, { lines: f })
|
|
41
|
+
}) : /* @__PURE__ */ a(i, { children: v });
|
|
42
42
|
};
|
|
43
43
|
//#endregion
|
|
44
44
|
export { c as QueryStateBoundary };
|
|
@@ -2,4 +2,5 @@ export { useHeadshotMarketing } from '../context/HeadshotMarketingContext';
|
|
|
2
2
|
export { useHeadshotmarketingBootstrap } from './useHeadshotmarketingBootstrap';
|
|
3
3
|
export { usePagination, type UsePaginationOptions, type UsePaginationResult, } from './usePagination';
|
|
4
4
|
export { useAssetUpload, type UseAssetUploadResult, type UploadedAsset, } from './useAssetUpload';
|
|
5
|
+
export { useTr } from '../../shared/hooks/useTr';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/headshotmarketing/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EACL,aAAa,EACb,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,cAAc,EACd,KAAK,oBAAoB,EACzB,KAAK,aAAa,GACnB,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/headshotmarketing/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EACL,aAAa,EACb,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,cAAc,EACd,KAAK,oBAAoB,EACzB,KAAK,aAAa,GACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC"}
|