@burdenoff/microfe-product 2026.624.3 → 2026.626.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.
Files changed (63) hide show
  1. package/dist/product/pages/ContentPageViewPage.js +41 -36
  2. package/dist/product/pages/ContentPageViewPage.js.map +1 -1
  3. package/dist/product/pages/ProductCatalogPage.js +63 -50
  4. package/dist/product/pages/ProductCatalogPage.js.map +1 -1
  5. package/dist/product/pages/ProductViewPage.js +220 -178
  6. package/dist/product/pages/ProductViewPage.js.map +1 -1
  7. package/dist/product-management/modules/content-pages/components/ContentPageForm.js +7 -7
  8. package/dist/product-management/modules/content-pages/components/ContentPageForm.js.map +1 -1
  9. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js +28 -26
  10. package/dist/product-management/modules/content-pages/pages/ContentPageCreatePage.js.map +1 -1
  11. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js +119 -90
  12. package/dist/product-management/modules/content-pages/pages/ContentPageDetailPage.js.map +1 -1
  13. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js +33 -31
  14. package/dist/product-management/modules/content-pages/pages/ContentPageEditPage.js.map +1 -1
  15. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js +171 -161
  16. package/dist/product-management/modules/content-pages/pages/ContentPagesListPage.js.map +1 -1
  17. package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js +1 -1
  18. package/dist/product-management/modules/feature-flags/components/FeatureFlagForm.js.map +1 -1
  19. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js +26 -24
  20. package/dist/product-management/modules/feature-flags/pages/FeatureFlagCreatePage.js.map +1 -1
  21. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js +152 -125
  22. package/dist/product-management/modules/feature-flags/pages/FeatureFlagDetailPage.js.map +1 -1
  23. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js +36 -34
  24. package/dist/product-management/modules/feature-flags/pages/FeatureFlagEditPage.js.map +1 -1
  25. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js +144 -136
  26. package/dist/product-management/modules/feature-flags/pages/FeatureFlagsListPage.js.map +1 -1
  27. package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js +4 -4
  28. package/dist/product-management/modules/press-kit/components/PressKitAssetForm.js.map +1 -1
  29. package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js +28 -26
  30. package/dist/product-management/modules/press-kit/pages/PressKitCreatePage.js.map +1 -1
  31. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js +111 -84
  32. package/dist/product-management/modules/press-kit/pages/PressKitDetailPage.js.map +1 -1
  33. package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js +33 -31
  34. package/dist/product-management/modules/press-kit/pages/PressKitEditPage.js.map +1 -1
  35. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js +85 -75
  36. package/dist/product-management/modules/press-kit/pages/PressKitListPage.js.map +1 -1
  37. package/dist/product-management/modules/products/components/ProductForm.js +8 -8
  38. package/dist/product-management/modules/products/components/ProductForm.js.map +1 -1
  39. package/dist/product-management/modules/products/components/ProductPlans.js +136 -147
  40. package/dist/product-management/modules/products/components/ProductPlans.js.map +1 -1
  41. package/dist/product-management/modules/products/pages/ProductCreatePage.js +28 -26
  42. package/dist/product-management/modules/products/pages/ProductCreatePage.js.map +1 -1
  43. package/dist/product-management/modules/products/pages/ProductDetailPage.js +170 -140
  44. package/dist/product-management/modules/products/pages/ProductDetailPage.js.map +1 -1
  45. package/dist/product-management/modules/products/pages/ProductEditPage.js +32 -30
  46. package/dist/product-management/modules/products/pages/ProductEditPage.js.map +1 -1
  47. package/dist/product-management/modules/products/pages/ProductsListPage.js +219 -202
  48. package/dist/product-management/modules/products/pages/ProductsListPage.js.map +1 -1
  49. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js +3 -3
  50. package/dist/product-management/modules/shortcuts/components/ShortcutForm.js.map +1 -1
  51. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js +28 -23
  52. package/dist/product-management/modules/shortcuts/pages/ShortcutCreatePage.js.map +1 -1
  53. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js +228 -209
  54. package/dist/product-management/modules/shortcuts/pages/ShortcutDetailPage.js.map +1 -1
  55. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js +31 -26
  56. package/dist/product-management/modules/shortcuts/pages/ShortcutEditPage.js.map +1 -1
  57. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js +209 -198
  58. package/dist/product-management/modules/shortcuts/pages/ShortcutsListPage.js.map +1 -1
  59. package/dist/product-management/shared/components/AuditHistoryTab.js +19 -17
  60. package/dist/product-management/shared/components/AuditHistoryTab.js.map +1 -1
  61. package/dist/product-management/shared/components/feedback/EmptyState.js +2 -20
  62. package/package.json +2 -2
  63. package/dist/product-management/shared/components/feedback/EmptyState.js.map +0 -1
@@ -9,12 +9,13 @@ import { useConfirmDialog as l } from "../../../shared/hooks/useConfirmDialog.js
9
9
  import { useContentPages as u, useDeleteContentPage as d } from "../hooks/useContentPages.js";
10
10
  import { ContentPageStatusBadge as f } from "../components/ContentPageStatusBadge.js";
11
11
  import { useDebounced as p } from "../../../shared/hooks/useDebounced.js";
12
- import { useEffect as m, useState as h } from "react";
13
- import { ChevronLeft as g, ChevronRight as _, Download as v, Eye as y, FileText as b, Plus as x, RefreshCw as S, SquarePen as C, Trash2 as w } from "lucide-react";
14
- import { jsx as T, jsxs as E } from "react/jsx-runtime";
15
- import { PermissionGate as D } from "@burdenoff/fe-libs/shared/components";
12
+ import { useEffect as ee, useState as m } from "react";
13
+ import { ChevronLeft as h, ChevronRight as g, Download as _, Eye as v, FileText as y, Plus as b, RefreshCw as x, SquarePen as S, Trash2 as C } from "lucide-react";
14
+ import { jsx as w, jsxs as T } from "react/jsx-runtime";
15
+ import { PermissionGate as E } from "@burdenoff/fe-libs/shared/components";
16
+ import { Button as D, CTAOverflowMenu as O, GlassCard as k, GradientText as A, IllustratedEmptyState as j, PagePurpose as M } from "@burdenoff/fe-libs/ui";
16
17
  //#region src/product-management/modules/content-pages/pages/ContentPagesListPage.tsx
17
- var O = [
18
+ var N = [
18
19
  {
19
20
  label: "All",
20
21
  tag: ""
@@ -39,122 +40,128 @@ var O = [
39
40
  label: "Pages",
40
41
  tag: "page"
41
42
  }
42
- ], k = 20;
43
- function A() {
44
- let { navigate: A, basePath: j = "/products" } = t(), M = `${j}/content-pages`, [N, P] = h(""), F = p(N, 300), I = e(), [L, R] = h({}), [z, B] = h(0), { contentPages: V, total: H, hasMore: U, loading: W, error: G, refetch: K } = u(void 0, {
45
- ...L,
46
- search: F || void 0
43
+ ], P = 20;
44
+ function F() {
45
+ let { navigate: F, basePath: I = "/products" } = t(), L = `${I}/content-pages`, [R, z] = m(""), B = p(R, 300), V = e(), [H, U] = m({}), [W, G] = m(0), { contentPages: K, total: q, hasMore: J, loading: Y, error: X, refetch: Z } = u(void 0, {
46
+ ...H,
47
+ search: B || void 0
47
48
  }, {
48
- limit: k,
49
- offset: z * k
50
- }), q = Math.max(1, Math.ceil(H / k)), J = z * k + 1, Y = Math.min((z + 1) * k, H);
51
- m(() => {
52
- if (H === 0) {
53
- B(0);
49
+ limit: P,
50
+ offset: W * P
51
+ }), Q = Math.max(1, Math.ceil(q / P)), $ = W * P + 1, te = Math.min((W + 1) * P, q);
52
+ ee(() => {
53
+ if (q === 0) {
54
+ G(0);
54
55
  return;
55
56
  }
56
- let e = Math.ceil(H / k) - 1;
57
- B((t) => t > e ? e : t);
58
- }, [H]);
59
- let { deleteContentPage: X, loading: Z } = d(), { confirm: Q, ConfirmDialog: $ } = l(), ee = async (e) => {
57
+ let e = Math.ceil(q / P) - 1;
58
+ G((t) => t > e ? e : t);
59
+ }, [q]);
60
+ let { deleteContentPage: ne, loading: re } = d(), { confirm: ie, ConfirmDialog: ae } = l(), oe = async (e) => {
60
61
  s("medium");
61
- let t = I("contentPages.confirmDelete", "Are you sure you want to delete this content page?"), n = await o({
62
+ let t = V("contentPages.confirmDelete", "Are you sure you want to delete this content page?"), n = await o({
62
63
  title: "Delete content page",
63
64
  message: t,
64
65
  okButtonTitle: "Delete",
65
66
  cancelButtonTitle: "Cancel"
66
67
  });
67
- if (n === null ? await Q({
68
+ if (n === null ? await ie({
68
69
  title: "Delete content page",
69
70
  message: t,
70
71
  okButtonTitle: "Delete",
71
72
  cancelButtonTitle: "Cancel",
72
73
  destructive: !0
73
74
  }) : n) try {
74
- await X(e), c("success"), K();
75
+ await ne(e), c("success"), Z();
75
76
  } catch (e) {
76
77
  c("error"), console.error("Failed to delete content page:", e);
77
78
  }
78
- }, te = (e) => e ? new Date(e).toLocaleDateString("en-US", {
79
+ }, se = (e) => e ? new Date(e).toLocaleDateString("en-US", {
79
80
  year: "numeric",
80
81
  month: "short",
81
82
  day: "numeric"
82
83
  }) : "—";
83
- return /* @__PURE__ */ E("div", {
84
+ return /* @__PURE__ */ T("div", {
84
85
  className: "min-h-full bg-[var(--color-bg-canvas)] p-6 animate-in fade-in duration-200",
85
86
  children: [
86
- /* @__PURE__ */ E("div", {
87
+ /* @__PURE__ */ T("div", {
87
88
  className: "mb-6",
88
89
  children: [
89
- /* @__PURE__ */ E("div", {
90
- className: "flex items-center justify-between mb-4",
91
- children: [/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("h1", {
92
- className: "text-3xl font-bold text-text-primary mb-2",
93
- children: I("contentPages.title", "Content Pages")
94
- }), /* @__PURE__ */ T("p", {
90
+ /* @__PURE__ */ T("div", {
91
+ className: "flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 mb-4",
92
+ children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("h1", {
93
+ className: "text-2xl md:text-3xl font-semibold tracking-tight text-text-primary mb-2",
94
+ children: /* @__PURE__ */ w(A, { children: V("contentPages.title", "Content Pages") })
95
+ }), /* @__PURE__ */ w("p", {
95
96
  className: "text-text-secondary",
96
- children: I("contentPages.subtitle", "Manage content pages and documentation")
97
- })] }), /* @__PURE__ */ T(D, {
97
+ children: V("contentPages.subtitle", "Manage content pages and documentation")
98
+ })] }), /* @__PURE__ */ w(E, {
98
99
  role: "super_admin",
99
- children: /* @__PURE__ */ E("button", {
100
- type: "button",
101
- onClick: () => A(`${M}/new`),
102
- className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90\n transition-all duration-200\n font-medium\n ",
103
- children: [/* @__PURE__ */ T(x, { size: 20 }), I("contentPages.newPage", "New Page")]
100
+ children: /* @__PURE__ */ w(O, {
101
+ primary: {
102
+ label: V("contentPages.newPage", "New Page"),
103
+ onSelect: () => F(`${L}/new`),
104
+ icon: /* @__PURE__ */ w(b, { className: "size-4" })
105
+ },
106
+ actions: []
104
107
  })
105
108
  })]
106
109
  }),
107
- /* @__PURE__ */ T("div", {
108
- className: "flex flex-wrap gap-1 border-b border-default pb-px",
109
- children: O.map((e) => /* @__PURE__ */ T("button", {
110
+ /* @__PURE__ */ w(M, {
111
+ className: "mb-4",
112
+ children: V("contentPages.purpose", "Content pages are the published text your products show users — blog posts, legal pages, docs, and announcements. Write them in markdown or HTML, version each change, and publish only when they are ready to go live.")
113
+ }),
114
+ /* @__PURE__ */ w("div", {
115
+ className: "flex flex-wrap gap-1 border-b border-border-seam pb-px",
116
+ children: N.map((e) => /* @__PURE__ */ w("button", {
110
117
  type: "button",
111
118
  onClick: () => {
112
- R({
113
- ...L,
119
+ U({
120
+ ...H,
114
121
  tag: e.tag || void 0
115
- }), B(0);
122
+ }), G(0);
116
123
  },
117
- className: `px-4 py-2 rounded-t-lg text-sm font-medium transition-all border-b-2 ${(L.tag ?? "") === e.tag ? "border-[var(--color-action-primary-bg)] text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"}`,
118
- children: I(`contentPages.tab.${e.label.toLowerCase()}`, e.label)
124
+ className: `px-4 py-2 rounded-t-lg text-sm font-medium transition-all border-b-2 ${(H.tag ?? "") === e.tag ? "border-[var(--color-action-primary-bg)] text-text-primary" : "border-transparent text-text-secondary hover:text-text-primary"}`,
125
+ children: V(`contentPages.tab.${e.label.toLowerCase()}`, e.label)
119
126
  }, e.label))
120
127
  }),
121
- /* @__PURE__ */ E("div", {
128
+ /* @__PURE__ */ T("div", {
122
129
  className: "flex gap-4",
123
130
  children: [
124
- /* @__PURE__ */ T(i, {
125
- value: N,
131
+ /* @__PURE__ */ w(i, {
132
+ value: R,
126
133
  onChange: (e) => {
127
- P(e), B(0);
134
+ z(e), G(0);
128
135
  },
129
- placeholder: I("contentPages.searchPlaceholder", "Search content pages..."),
136
+ placeholder: V("contentPages.searchPlaceholder", "Search content pages..."),
130
137
  className: "flex-1"
131
138
  }),
132
- /* @__PURE__ */ E("select", {
133
- value: L.isPublished === void 0 ? "" : L.isPublished ? "published" : "all",
139
+ /* @__PURE__ */ T("select", {
140
+ value: H.isPublished === void 0 ? "" : H.isPublished ? "published" : "all",
134
141
  onChange: (e) => {
135
- R({
136
- ...L,
142
+ U({
143
+ ...H,
137
144
  isPublished: e.target.value === "published" ? !0 : void 0
138
- }), B(0);
145
+ }), G(0);
139
146
  },
140
147
  className: "\n px-4 py-2\n bg-surface\n border border-default\n rounded-lg\n text-text-primary\n focus:outline-none focus:ring-2 focus:ring-[var(--color-border-focus)]\n transition-all duration-200\n ",
141
- children: [/* @__PURE__ */ T("option", {
148
+ children: [/* @__PURE__ */ w("option", {
142
149
  value: "",
143
- children: I("contentPages.filterAll", "All")
144
- }), /* @__PURE__ */ T("option", {
150
+ children: V("contentPages.filterAll", "All")
151
+ }), /* @__PURE__ */ w("option", {
145
152
  value: "published",
146
- children: I("contentPages.publishedOnly", "Published Only")
153
+ children: V("contentPages.publishedOnly", "Published Only")
147
154
  })]
148
155
  }),
149
- /* @__PURE__ */ T("button", {
156
+ /* @__PURE__ */ w("button", {
150
157
  type: "button",
151
- onClick: () => K(),
158
+ onClick: () => Z(),
152
159
  className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-bg-sunken\n transition-all duration-200\n ",
153
- children: /* @__PURE__ */ T(S, { size: 18 })
160
+ children: /* @__PURE__ */ w(x, { size: 18 })
154
161
  }),
155
- V.length > 0 && /* @__PURE__ */ T("button", {
162
+ K.length > 0 && /* @__PURE__ */ w("button", {
156
163
  type: "button",
157
- onClick: () => a("content-pages", V.map((e) => ({
164
+ onClick: () => a("content-pages", K.map((e) => ({
158
165
  id: e.id,
159
166
  slug: e.slug,
160
167
  title: e.title,
@@ -167,135 +174,138 @@ function A() {
167
174
  updatedAt: e.updatedAt
168
175
  }))),
169
176
  className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-surface\n text-text-primary\n border border-default\n rounded-lg\n hover:bg-bg-sunken\n transition-all duration-200\n ",
170
- title: I("contentPages.exportCsv", "Export as CSV"),
171
- children: /* @__PURE__ */ T(v, { size: 18 })
177
+ title: V("contentPages.exportCsv", "Export as CSV"),
178
+ children: /* @__PURE__ */ w(_, { size: 18 })
172
179
  })
173
180
  ]
174
181
  })
175
182
  ]
176
183
  }),
177
- G ? /* @__PURE__ */ T(r, {
178
- message: G.message,
184
+ X ? /* @__PURE__ */ w(r, {
185
+ message: X.message,
179
186
  action: {
180
- label: I("productCommon.retry", "Retry"),
181
- onClick: () => K()
187
+ label: V("productCommon.retry", "Retry"),
188
+ onClick: () => Z()
182
189
  }
183
- }) : W && V.length === 0 ? /* @__PURE__ */ T(n, { message: I("contentPages.loadingContentPages", "Loading content pages...") }) : V.length === 0 ? /* @__PURE__ */ E("div", {
184
- className: "bg-surface border border-default rounded-lg p-12 text-center animate-in fade-in duration-200",
185
- children: [/* @__PURE__ */ T("p", {
186
- className: "text-text-secondary mb-4",
187
- children: I("contentPages.noContentPagesFound", "No content pages found")
188
- }), /* @__PURE__ */ E("button", {
189
- type: "button",
190
- onClick: () => A(`${M}/new`),
191
- className: "\n inline-flex items-center gap-2 px-4 py-2\n bg-[var(--color-action-primary-bg)]\n text-[var(--color-action-primary-text)]\n rounded-lg\n hover:opacity-90\n transition-all duration-200\n font-medium\n ",
192
- children: [/* @__PURE__ */ T(x, { size: 20 }), I("contentPages.newPage", "New Page")]
193
- })]
194
- }) : /* @__PURE__ */ E("div", {
195
- className: "bg-surface border border-default rounded-lg shadow-[var(--shadow-elevation-1)] overflow-hidden",
196
- children: [/* @__PURE__ */ E("table", {
190
+ }) : Y && K.length === 0 ? /* @__PURE__ */ w(n, { message: V("contentPages.loadingContentPages", "Loading content pages...") }) : K.length === 0 ? /* @__PURE__ */ w(k, {
191
+ treatment: "insight",
192
+ className: "animate-in fade-in duration-200",
193
+ children: /* @__PURE__ */ w(j, {
194
+ illustration: R || H.tag || H.isPublished ? "empty-search" : "empty-files",
195
+ title: V("contentPages.noContentPagesFound", "No content pages found"),
196
+ action: /* @__PURE__ */ T(D, {
197
+ type: "button",
198
+ onClick: () => F(`${L}/new`),
199
+ children: [/* @__PURE__ */ w(b, { className: "size-4" }), V("contentPages.newPage", "New Page")]
200
+ })
201
+ })
202
+ }) : /* @__PURE__ */ T(k, {
203
+ treatment: "glass",
204
+ glow: !0,
205
+ className: "overflow-hidden p-0",
206
+ children: [/* @__PURE__ */ T("table", {
197
207
  className: "w-full",
198
- children: [/* @__PURE__ */ T("thead", {
199
- className: "bg-bg-sunken border-b border-default",
200
- children: /* @__PURE__ */ E("tr", { children: [
201
- /* @__PURE__ */ T("th", {
208
+ children: [/* @__PURE__ */ w("thead", {
209
+ className: "bg-bg-sunken/60 border-b border-border-seam",
210
+ children: /* @__PURE__ */ T("tr", { children: [
211
+ /* @__PURE__ */ w("th", {
202
212
  className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
203
- children: I("contentPages.columnPage", "Page")
213
+ children: V("contentPages.columnPage", "Page")
204
214
  }),
205
- /* @__PURE__ */ T("th", {
215
+ /* @__PURE__ */ w("th", {
206
216
  className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
207
- children: I("contentPages.columnSlug", "Slug")
217
+ children: V("contentPages.columnSlug", "Slug")
208
218
  }),
209
- /* @__PURE__ */ T("th", {
219
+ /* @__PURE__ */ w("th", {
210
220
  className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
211
- children: I("contentPages.columnStatus", "Status")
221
+ children: V("contentPages.columnStatus", "Status")
212
222
  }),
213
- /* @__PURE__ */ T("th", {
223
+ /* @__PURE__ */ w("th", {
214
224
  className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
215
- children: I("contentPages.columnVersion", "Version")
225
+ children: V("contentPages.columnVersion", "Version")
216
226
  }),
217
- /* @__PURE__ */ T("th", {
227
+ /* @__PURE__ */ w("th", {
218
228
  className: "text-left px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
219
- children: I("contentPages.columnLastUpdated", "Last Updated")
229
+ children: V("contentPages.columnLastUpdated", "Last Updated")
220
230
  }),
221
- /* @__PURE__ */ T("th", {
231
+ /* @__PURE__ */ w("th", {
222
232
  className: "text-right px-6 py-3 text-xs font-semibold text-text-secondary uppercase",
223
- children: I("contentPages.columnActions", "Actions")
233
+ children: V("contentPages.columnActions", "Actions")
224
234
  })
225
235
  ] })
226
- }), /* @__PURE__ */ T("tbody", {
227
- className: "divide-y divide-[var(--color-border-default)]",
228
- children: V.map((e) => /* @__PURE__ */ E("tr", {
229
- className: "hover:bg-bg-sunken transition-all duration-200 cursor-pointer",
230
- onClick: () => A(`${M}/${e.id}`),
236
+ }), /* @__PURE__ */ w("tbody", {
237
+ className: "divide-y divide-border-seam",
238
+ children: K.map((e) => /* @__PURE__ */ T("tr", {
239
+ className: "hover:bg-bg-sunken/70 transition-colors duration-200 cursor-pointer",
240
+ onClick: () => F(`${L}/${e.id}`),
231
241
  children: [
232
- /* @__PURE__ */ T("td", {
242
+ /* @__PURE__ */ w("td", {
233
243
  className: "px-6 py-4",
234
- children: /* @__PURE__ */ E("div", {
244
+ children: /* @__PURE__ */ T("div", {
235
245
  className: "flex items-center gap-3",
236
- children: [/* @__PURE__ */ T("div", {
246
+ children: [/* @__PURE__ */ w("div", {
237
247
  className: "size-10 rounded-lg bg-[var(--color-status-info-subtle)] flex items-center justify-center",
238
- children: /* @__PURE__ */ T(b, {
248
+ children: /* @__PURE__ */ w(y, {
239
249
  size: 20,
240
250
  className: "text-[var(--color-status-info)]"
241
251
  })
242
- }), /* @__PURE__ */ T("div", { children: /* @__PURE__ */ T("p", {
252
+ }), /* @__PURE__ */ w("div", { children: /* @__PURE__ */ w("p", {
243
253
  className: "font-medium text-text-primary",
244
254
  children: e.title
245
255
  }) })]
246
256
  })
247
257
  }),
248
- /* @__PURE__ */ T("td", {
258
+ /* @__PURE__ */ w("td", {
249
259
  className: "px-6 py-4",
250
- children: /* @__PURE__ */ E("span", {
260
+ children: /* @__PURE__ */ T("span", {
251
261
  className: "text-sm text-text-tertiary font-mono",
252
262
  children: ["/", e.slug]
253
263
  })
254
264
  }),
255
- /* @__PURE__ */ T("td", {
265
+ /* @__PURE__ */ w("td", {
256
266
  className: "px-6 py-4",
257
- children: /* @__PURE__ */ T(f, { isPublished: e.isPublished })
267
+ children: /* @__PURE__ */ w(f, { isPublished: e.isPublished })
258
268
  }),
259
- /* @__PURE__ */ T("td", {
269
+ /* @__PURE__ */ w("td", {
260
270
  className: "px-6 py-4",
261
- children: /* @__PURE__ */ E("span", {
271
+ children: /* @__PURE__ */ T("span", {
262
272
  className: "text-sm text-text-primary font-mono",
263
273
  children: ["v", e.version]
264
274
  })
265
275
  }),
266
- /* @__PURE__ */ T("td", {
276
+ /* @__PURE__ */ w("td", {
267
277
  className: "px-6 py-4",
268
- children: /* @__PURE__ */ T("span", {
278
+ children: /* @__PURE__ */ w("span", {
269
279
  className: "text-sm text-text-secondary",
270
- children: te(e.lastUpdated || e.updatedAt)
280
+ children: se(e.lastUpdated || e.updatedAt)
271
281
  })
272
282
  }),
273
- /* @__PURE__ */ T("td", {
283
+ /* @__PURE__ */ w("td", {
274
284
  className: "px-6 py-4",
275
- children: /* @__PURE__ */ E("div", {
285
+ children: /* @__PURE__ */ T("div", {
276
286
  className: "flex items-center justify-end gap-2",
277
287
  onClick: (e) => e.stopPropagation(),
278
- children: [/* @__PURE__ */ T("button", {
288
+ children: [/* @__PURE__ */ w("button", {
279
289
  type: "button",
280
- onClick: () => A(`${M}/${e.id}`),
290
+ onClick: () => F(`${L}/${e.id}`),
281
291
  className: "p-2 rounded-lg text-text-secondary hover:bg-bg-sunken transition-all duration-200",
282
- title: I("contentPages.viewDetails", "View details"),
283
- children: /* @__PURE__ */ T(y, { size: 18 })
284
- }), /* @__PURE__ */ E(D, {
292
+ title: V("contentPages.viewDetails", "View details"),
293
+ children: /* @__PURE__ */ w(v, { size: 18 })
294
+ }), /* @__PURE__ */ T(E, {
285
295
  role: "super_admin",
286
- children: [/* @__PURE__ */ T("button", {
296
+ children: [/* @__PURE__ */ w("button", {
287
297
  type: "button",
288
- onClick: () => A(`${M}/${e.id}/edit`),
298
+ onClick: () => F(`${L}/${e.id}/edit`),
289
299
  className: "p-2 rounded-lg text-text-secondary hover:bg-bg-sunken transition-all duration-200",
290
- title: I("contentPages.edit", "Edit"),
291
- children: /* @__PURE__ */ T(C, { size: 18 })
292
- }), /* @__PURE__ */ T("button", {
300
+ title: V("contentPages.edit", "Edit"),
301
+ children: /* @__PURE__ */ w(S, { size: 18 })
302
+ }), /* @__PURE__ */ w("button", {
293
303
  type: "button",
294
- onClick: () => ee(e.id),
295
- disabled: Z,
304
+ onClick: () => oe(e.id),
305
+ disabled: re,
296
306
  className: "p-2 rounded-lg text-[var(--color-status-error)] hover:bg-[var(--color-status-error-subtle)] transition-all duration-200 disabled:opacity-50",
297
- title: I("contentPages.delete", "Delete"),
298
- children: /* @__PURE__ */ T(w, { size: 18 })
307
+ title: V("contentPages.delete", "Delete"),
308
+ children: /* @__PURE__ */ w(C, { size: 18 })
299
309
  })]
300
310
  })]
301
311
  })
@@ -303,59 +313,59 @@ function A() {
303
313
  ]
304
314
  }, e.id))
305
315
  })]
306
- }), H > k && /* @__PURE__ */ E("div", {
307
- className: "flex items-center justify-between px-6 py-3 border-t border-default bg-bg-sunken/50",
308
- children: [/* @__PURE__ */ E("p", {
316
+ }), q > P && /* @__PURE__ */ T("div", {
317
+ className: "flex items-center justify-between px-6 py-3 border-t border-border-seam bg-bg-sunken/40",
318
+ children: [/* @__PURE__ */ T("p", {
309
319
  className: "text-sm text-text-secondary",
310
320
  children: [
311
- I("contentPages.showing", "Showing"),
321
+ V("contentPages.showing", "Showing"),
312
322
  " ",
313
- J,
323
+ $,
314
324
  "–",
315
- Y,
325
+ te,
316
326
  " ",
317
- I("contentPages.of", "of"),
327
+ V("contentPages.of", "of"),
318
328
  " ",
319
- H,
329
+ q,
320
330
  " ",
321
- I("contentPages.contentPages", "content pages")
331
+ V("contentPages.contentPages", "content pages")
322
332
  ]
323
- }), /* @__PURE__ */ E("div", {
333
+ }), /* @__PURE__ */ T("div", {
324
334
  className: "flex items-center gap-2",
325
335
  children: [
326
- /* @__PURE__ */ E("button", {
336
+ /* @__PURE__ */ T("button", {
327
337
  type: "button",
328
- onClick: () => B((e) => Math.max(0, e - 1)),
329
- disabled: z === 0 || W,
330
- "aria-label": I("contentPages.prevPage", "Previous page"),
338
+ onClick: () => G((e) => Math.max(0, e - 1)),
339
+ disabled: W === 0 || Y,
340
+ "aria-label": V("contentPages.prevPage", "Previous page"),
331
341
  className: "\n inline-flex items-center gap-1 px-3 py-1.5 text-sm\n bg-surface border border-default rounded-lg\n text-text-primary\n hover:bg-bg-sunken transition-all duration-200\n disabled:opacity-40 disabled:cursor-not-allowed\n ",
332
- children: [/* @__PURE__ */ T(g, { size: 16 }), I("contentPages.prev", "Prev")]
342
+ children: [/* @__PURE__ */ w(h, { size: 16 }), V("contentPages.prev", "Prev")]
333
343
  }),
334
- /* @__PURE__ */ E("span", {
344
+ /* @__PURE__ */ T("span", {
335
345
  className: "text-sm text-text-secondary px-2 tabular-nums",
336
346
  children: [
337
- z + 1,
347
+ W + 1,
338
348
  " / ",
339
- q
349
+ Q
340
350
  ]
341
351
  }),
342
- /* @__PURE__ */ E("button", {
352
+ /* @__PURE__ */ T("button", {
343
353
  type: "button",
344
- onClick: () => B((e) => e + 1),
345
- disabled: !U && z + 1 >= q || W,
346
- "aria-label": I("contentPages.nextPage", "Next page"),
354
+ onClick: () => G((e) => e + 1),
355
+ disabled: !J && W + 1 >= Q || Y,
356
+ "aria-label": V("contentPages.nextPage", "Next page"),
347
357
  className: "\n inline-flex items-center gap-1 px-3 py-1.5 text-sm\n bg-surface border border-default rounded-lg\n text-text-primary\n hover:bg-bg-sunken transition-all duration-200\n disabled:opacity-40 disabled:cursor-not-allowed\n ",
348
- children: [I("contentPages.next", "Next"), /* @__PURE__ */ T(_, { size: 16 })]
358
+ children: [V("contentPages.next", "Next"), /* @__PURE__ */ w(g, { size: 16 })]
349
359
  })
350
360
  ]
351
361
  })]
352
362
  })]
353
363
  }),
354
- $
364
+ ae
355
365
  ]
356
366
  });
357
367
  }
358
368
  //#endregion
359
- export { A as ContentPagesListPage };
369
+ export { F as ContentPagesListPage };
360
370
 
361
371
  //# sourceMappingURL=ContentPagesListPage.js.map