@byline/host-tanstack-start 4.11.0 → 4.11.2
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/admin-shell/admin-activity/list.js +12 -12
- package/dist/admin-shell/admin-roles/container.js +17 -17
- package/dist/admin-shell/admin-roles/delete.js +9 -9
- package/dist/admin-shell/admin-roles/list.js +21 -21
- package/dist/admin-shell/admin-users/container.js +28 -28
- package/dist/admin-shell/admin-users/delete.js +9 -9
- package/dist/admin-shell/admin-users/list.js +17 -17
- package/dist/admin-shell/chrome/admin-app-bar.js +6 -6
- package/dist/admin-shell/chrome/admin-drawer-toggle.js +3 -3
- package/dist/admin-shell/chrome/admin-menu-drawer.js +4 -4
- package/dist/admin-shell/chrome/branding.js +3 -3
- package/dist/admin-shell/chrome/breadcrumbs/breadcrumbs.js +18 -18
- package/dist/admin-shell/chrome/content.js +2 -2
- package/dist/admin-shell/chrome/dashboard.js +12 -12
- package/dist/admin-shell/chrome/hamburger.js +3 -3
- package/dist/admin-shell/chrome/preview-toggle.js +2 -2
- package/dist/admin-shell/chrome/route-error.js +16 -16
- package/dist/admin-shell/chrome/route-progress-bar.js +2 -2
- package/dist/admin-shell/chrome/sign-in-page.js +4 -4
- package/dist/admin-shell/chrome/th-sortable.js +5 -5
- package/dist/admin-shell/collections/api.js +6 -6
- package/dist/admin-shell/collections/document-history.js +8 -8
- package/dist/admin-shell/collections/history.js +25 -25
- package/dist/admin-shell/collections/list.js +17 -17
- package/dist/admin-shell/collections/preview-link.js +2 -2
- package/dist/admin-shell/collections/restore-version-modal.js +10 -10
- package/dist/admin-shell/collections/tree-list.js +13 -13
- package/dist/admin-shell/collections/view-menu.js +11 -11
- package/dist/routes/create-admin-layout-route.js +2 -2
- package/package.json +18 -18
- package/src/admin-shell/admin-activity/list.tsx +1 -1
- package/src/admin-shell/admin-roles/container.tsx +1 -1
- package/src/admin-shell/admin-roles/delete.tsx +1 -1
- package/src/admin-shell/admin-roles/list.tsx +1 -1
- package/src/admin-shell/admin-users/container.tsx +1 -1
- package/src/admin-shell/admin-users/delete.tsx +1 -1
- package/src/admin-shell/admin-users/list.tsx +1 -1
- package/src/admin-shell/chrome/admin-app-bar.tsx +1 -1
- package/src/admin-shell/chrome/admin-drawer-toggle.tsx +1 -1
- package/src/admin-shell/chrome/admin-menu-drawer.tsx +1 -1
- package/src/admin-shell/chrome/branding.tsx +1 -1
- package/src/admin-shell/chrome/breadcrumbs/breadcrumbs.tsx +1 -1
- package/src/admin-shell/chrome/content.tsx +1 -1
- package/src/admin-shell/chrome/dashboard.tsx +1 -1
- package/src/admin-shell/chrome/hamburger.tsx +1 -1
- package/src/admin-shell/chrome/preview-toggle.tsx +1 -1
- package/src/admin-shell/chrome/route-error.tsx +1 -1
- package/src/admin-shell/chrome/route-progress-bar.tsx +1 -1
- package/src/admin-shell/chrome/sign-in-page.tsx +1 -1
- package/src/admin-shell/chrome/th-sortable.tsx +1 -1
- package/src/admin-shell/collections/api.tsx +1 -1
- package/src/admin-shell/collections/document-history.tsx +1 -1
- package/src/admin-shell/collections/history.tsx +1 -1
- package/src/admin-shell/collections/list.tsx +1 -1
- package/src/admin-shell/collections/preview-link.tsx +1 -1
- package/src/admin-shell/collections/restore-version-modal.tsx +1 -1
- package/src/admin-shell/collections/tree-list.tsx +1 -1
- package/src/admin-shell/collections/view-menu.tsx +1 -1
- package/src/routes/create-admin-layout-route.tsx +1 -1
|
@@ -8,7 +8,7 @@ import { UpdateUser } from "@byline/admin/admin-users/components/update";
|
|
|
8
8
|
import { LocalDateTime } from "@byline/admin/react";
|
|
9
9
|
import { useTranslation } from "@byline/i18n/react";
|
|
10
10
|
import { Button, CloseIcon, Drawer, EditIcon, IconButton, Modal, useToastManager } from "@byline/ui/react";
|
|
11
|
-
import
|
|
11
|
+
import clsx from "clsx";
|
|
12
12
|
import container_module from "./container.module.js";
|
|
13
13
|
import { DeleteUser } from "./delete.js";
|
|
14
14
|
const panelMeta = {
|
|
@@ -40,10 +40,10 @@ const panelMeta = {
|
|
|
40
40
|
};
|
|
41
41
|
function ContainerSection({ title, onEdit, editAriaLabel, children }) {
|
|
42
42
|
return /*#__PURE__*/ jsxs("div", {
|
|
43
|
-
className:
|
|
43
|
+
className: clsx('byline-admin-user-section', container_module.section),
|
|
44
44
|
children: [
|
|
45
45
|
/*#__PURE__*/ jsxs("div", {
|
|
46
|
-
className:
|
|
46
|
+
className: clsx('byline-admin-user-section-head', container_module.sectionHead),
|
|
47
47
|
children: [
|
|
48
48
|
/*#__PURE__*/ jsx("h2", {
|
|
49
49
|
children: title
|
|
@@ -68,7 +68,7 @@ function ContainerSection({ title, onEdit, editAriaLabel, children }) {
|
|
|
68
68
|
function RoleBadge({ role }) {
|
|
69
69
|
return /*#__PURE__*/ jsx("span", {
|
|
70
70
|
title: role.machine_name,
|
|
71
|
-
className:
|
|
71
|
+
className: clsx('byline-admin-user-role-badge', container_module.roleBadge),
|
|
72
72
|
children: role.name
|
|
73
73
|
});
|
|
74
74
|
}
|
|
@@ -123,17 +123,17 @@ function AccountContainer({ user, allRoles, initialUserRoles }) {
|
|
|
123
123
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
124
124
|
children: [
|
|
125
125
|
/*#__PURE__*/ jsxs("div", {
|
|
126
|
-
className:
|
|
126
|
+
className: clsx('byline-admin-user-grid', container_module.grid),
|
|
127
127
|
children: [
|
|
128
128
|
/*#__PURE__*/ jsx("div", {
|
|
129
|
-
className:
|
|
129
|
+
className: clsx('byline-admin-user-column', container_module.column),
|
|
130
130
|
children: /*#__PURE__*/ jsxs(ContainerSection, {
|
|
131
131
|
title: t('adminUsers.detail.sections.account'),
|
|
132
132
|
onEdit: openDrawer('update'),
|
|
133
133
|
editAriaLabel: editAriaFor(t('adminUsers.detail.sections.account')),
|
|
134
134
|
children: [
|
|
135
135
|
/*#__PURE__*/ jsxs("p", {
|
|
136
|
-
className:
|
|
136
|
+
className: clsx('byline-admin-user-line', container_module.line),
|
|
137
137
|
children: [
|
|
138
138
|
/*#__PURE__*/ jsx("span", {
|
|
139
139
|
className: "muted",
|
|
@@ -144,7 +144,7 @@ function AccountContainer({ user, allRoles, initialUserRoles }) {
|
|
|
144
144
|
]
|
|
145
145
|
}),
|
|
146
146
|
/*#__PURE__*/ jsxs("p", {
|
|
147
|
-
className:
|
|
147
|
+
className: clsx('byline-admin-user-line', container_module.line),
|
|
148
148
|
children: [
|
|
149
149
|
/*#__PURE__*/ jsx("span", {
|
|
150
150
|
className: "muted",
|
|
@@ -152,13 +152,13 @@ function AccountContainer({ user, allRoles, initialUserRoles }) {
|
|
|
152
152
|
}),
|
|
153
153
|
' ',
|
|
154
154
|
currentUser.given_name ?? /*#__PURE__*/ jsx("span", {
|
|
155
|
-
className:
|
|
155
|
+
className: clsx('muted byline-admin-user-not-set', container_module.notSet),
|
|
156
156
|
children: t('common.notSet')
|
|
157
157
|
})
|
|
158
158
|
]
|
|
159
159
|
}),
|
|
160
160
|
/*#__PURE__*/ jsxs("p", {
|
|
161
|
-
className:
|
|
161
|
+
className: clsx('byline-admin-user-line', container_module.line),
|
|
162
162
|
children: [
|
|
163
163
|
/*#__PURE__*/ jsx("span", {
|
|
164
164
|
className: "muted",
|
|
@@ -166,13 +166,13 @@ function AccountContainer({ user, allRoles, initialUserRoles }) {
|
|
|
166
166
|
}),
|
|
167
167
|
' ',
|
|
168
168
|
currentUser.family_name ?? /*#__PURE__*/ jsx("span", {
|
|
169
|
-
className:
|
|
169
|
+
className: clsx('muted byline-admin-user-not-set', container_module.notSet),
|
|
170
170
|
children: t('common.notSet')
|
|
171
171
|
})
|
|
172
172
|
]
|
|
173
173
|
}),
|
|
174
174
|
/*#__PURE__*/ jsxs("p", {
|
|
175
|
-
className:
|
|
175
|
+
className: clsx('byline-admin-user-line', container_module.line),
|
|
176
176
|
children: [
|
|
177
177
|
/*#__PURE__*/ jsx("span", {
|
|
178
178
|
className: "muted",
|
|
@@ -180,13 +180,13 @@ function AccountContainer({ user, allRoles, initialUserRoles }) {
|
|
|
180
180
|
}),
|
|
181
181
|
' ',
|
|
182
182
|
currentUser.username ?? /*#__PURE__*/ jsx("span", {
|
|
183
|
-
className:
|
|
183
|
+
className: clsx('muted byline-admin-user-not-set', container_module.notSet),
|
|
184
184
|
children: t('common.notSet')
|
|
185
185
|
})
|
|
186
186
|
]
|
|
187
187
|
}),
|
|
188
188
|
/*#__PURE__*/ jsxs("p", {
|
|
189
|
-
className:
|
|
189
|
+
className: clsx('byline-admin-user-line', container_module.line),
|
|
190
190
|
children: [
|
|
191
191
|
/*#__PURE__*/ jsx("span", {
|
|
192
192
|
className: "muted",
|
|
@@ -197,7 +197,7 @@ function AccountContainer({ user, allRoles, initialUserRoles }) {
|
|
|
197
197
|
]
|
|
198
198
|
}),
|
|
199
199
|
/*#__PURE__*/ jsxs("p", {
|
|
200
|
-
className:
|
|
200
|
+
className: clsx('byline-admin-user-line', container_module.line),
|
|
201
201
|
children: [
|
|
202
202
|
/*#__PURE__*/ jsx("span", {
|
|
203
203
|
className: "muted",
|
|
@@ -208,7 +208,7 @@ function AccountContainer({ user, allRoles, initialUserRoles }) {
|
|
|
208
208
|
]
|
|
209
209
|
}),
|
|
210
210
|
/*#__PURE__*/ jsxs("p", {
|
|
211
|
-
className:
|
|
211
|
+
className: clsx('byline-admin-user-line-spaced', container_module.lineSpaced),
|
|
212
212
|
children: [
|
|
213
213
|
/*#__PURE__*/ jsx("span", {
|
|
214
214
|
className: "muted",
|
|
@@ -216,7 +216,7 @@ function AccountContainer({ user, allRoles, initialUserRoles }) {
|
|
|
216
216
|
}),
|
|
217
217
|
' ',
|
|
218
218
|
/*#__PURE__*/ jsx("span", {
|
|
219
|
-
className:
|
|
219
|
+
className: clsx({
|
|
220
220
|
'byline-admin-user-status-on': currentUser.is_enabled,
|
|
221
221
|
[container_module.statusOn]: currentUser.is_enabled,
|
|
222
222
|
'byline-admin-user-status-off': !currentUser.is_enabled,
|
|
@@ -232,7 +232,7 @@ function AccountContainer({ user, allRoles, initialUserRoles }) {
|
|
|
232
232
|
children: t('adminUsers.detail.updateButton')
|
|
233
233
|
}),
|
|
234
234
|
/*#__PURE__*/ jsxs("div", {
|
|
235
|
-
className:
|
|
235
|
+
className: clsx('muted byline-admin-user-meta', container_module.meta),
|
|
236
236
|
children: [
|
|
237
237
|
/*#__PURE__*/ jsxs("p", {
|
|
238
238
|
children: [
|
|
@@ -263,7 +263,7 @@ function AccountContainer({ user, allRoles, initialUserRoles }) {
|
|
|
263
263
|
]
|
|
264
264
|
}),
|
|
265
265
|
/*#__PURE__*/ jsxs("p", {
|
|
266
|
-
className:
|
|
266
|
+
className: clsx('byline-admin-user-line', container_module.line),
|
|
267
267
|
children: [
|
|
268
268
|
/*#__PURE__*/ jsxs("span", {
|
|
269
269
|
className: "font-bold",
|
|
@@ -284,7 +284,7 @@ function AccountContainer({ user, allRoles, initialUserRoles }) {
|
|
|
284
284
|
})
|
|
285
285
|
}),
|
|
286
286
|
/*#__PURE__*/ jsxs("div", {
|
|
287
|
-
className:
|
|
287
|
+
className: clsx('byline-admin-user-column', container_module.column),
|
|
288
288
|
children: [
|
|
289
289
|
/*#__PURE__*/ jsxs(ContainerSection, {
|
|
290
290
|
title: t('adminUsers.detail.sections.roles'),
|
|
@@ -292,10 +292,10 @@ function AccountContainer({ user, allRoles, initialUserRoles }) {
|
|
|
292
292
|
editAriaLabel: editAriaFor(t('adminUsers.detail.sections.roles')),
|
|
293
293
|
children: [
|
|
294
294
|
0 === currentUserRoles.length ? /*#__PURE__*/ jsx("p", {
|
|
295
|
-
className:
|
|
295
|
+
className: clsx('muted byline-admin-user-role-empty', container_module.roleEmpty),
|
|
296
296
|
children: t('adminUsers.detail.rolesEmpty')
|
|
297
297
|
}) : /*#__PURE__*/ jsx("div", {
|
|
298
|
-
className:
|
|
298
|
+
className: clsx('byline-admin-user-role-list', container_module.roleList),
|
|
299
299
|
children: currentUserRoles.map((role)=>/*#__PURE__*/ jsx(RoleBadge, {
|
|
300
300
|
role: role
|
|
301
301
|
}, role.id))
|
|
@@ -313,7 +313,7 @@ function AccountContainer({ user, allRoles, initialUserRoles }) {
|
|
|
313
313
|
editAriaLabel: editAriaFor(t('adminUsers.detail.sections.password')),
|
|
314
314
|
children: [
|
|
315
315
|
/*#__PURE__*/ jsx("p", {
|
|
316
|
-
className:
|
|
316
|
+
className: clsx('byline-admin-user-line-spaced', container_module.lineSpaced),
|
|
317
317
|
children: t('adminUsers.detail.password.intro')
|
|
318
318
|
}),
|
|
319
319
|
/*#__PURE__*/ jsx(Button, {
|
|
@@ -327,7 +327,7 @@ function AccountContainer({ user, allRoles, initialUserRoles }) {
|
|
|
327
327
|
title: t('adminUsers.detail.sections.delete'),
|
|
328
328
|
children: [
|
|
329
329
|
/*#__PURE__*/ jsx("p", {
|
|
330
|
-
className:
|
|
330
|
+
className: clsx('byline-admin-user-line-spaced', container_module.lineSpaced),
|
|
331
331
|
children: t('adminUsers.detail.delete.intro')
|
|
332
332
|
}),
|
|
333
333
|
/*#__PURE__*/ jsx(Button, {
|
|
@@ -349,7 +349,7 @@ function AccountContainer({ user, allRoles, initialUserRoles }) {
|
|
|
349
349
|
topOffset: "46px",
|
|
350
350
|
isOpen: isDrawerOpen,
|
|
351
351
|
onDismiss: closeDrawer,
|
|
352
|
-
className:
|
|
352
|
+
className: clsx({
|
|
353
353
|
'byline-admin-user-drawer-large': 'large' === currentMeta.drawerWidth,
|
|
354
354
|
[container_module.drawerLarge]: 'large' === currentMeta.drawerWidth,
|
|
355
355
|
'byline-admin-user-drawer': 'large' !== currentMeta.drawerWidth,
|
|
@@ -386,7 +386,7 @@ function AccountContainer({ user, allRoles, initialUserRoles }) {
|
|
|
386
386
|
}),
|
|
387
387
|
/*#__PURE__*/ jsx(Drawer.Content, {
|
|
388
388
|
children: /*#__PURE__*/ jsx("div", {
|
|
389
|
-
className:
|
|
389
|
+
className: clsx('byline-admin-user-drawer-scroll', container_module.drawerScroll),
|
|
390
390
|
children: 'roles' === current ? /*#__PURE__*/ jsx(UserRoles, {
|
|
391
391
|
user: currentUser,
|
|
392
392
|
allRoles: allRoles,
|
|
@@ -408,10 +408,10 @@ function AccountContainer({ user, allRoles, initialUserRoles }) {
|
|
|
408
408
|
onDismiss: closeModal,
|
|
409
409
|
closeOnOverlayClick: false,
|
|
410
410
|
children: /*#__PURE__*/ jsxs(Modal.Container, {
|
|
411
|
-
className:
|
|
411
|
+
className: clsx('byline-admin-user-modal', container_module.modal),
|
|
412
412
|
children: [
|
|
413
413
|
/*#__PURE__*/ jsxs(Modal.Header, {
|
|
414
|
-
className:
|
|
414
|
+
className: clsx('byline-admin-user-modal-head', container_module.modalHead),
|
|
415
415
|
children: [
|
|
416
416
|
/*#__PURE__*/ jsx("h3", {
|
|
417
417
|
className: "m-0",
|
|
@@ -4,7 +4,7 @@ import { useState } from "react";
|
|
|
4
4
|
import { useRouter } from "@tanstack/react-router";
|
|
5
5
|
import { useTranslation } from "@byline/i18n/react";
|
|
6
6
|
import { Alert, Button, LoaderEllipsis, Modal } from "@byline/ui/react";
|
|
7
|
-
import
|
|
7
|
+
import clsx from "clsx";
|
|
8
8
|
import { getAdminRoutePath } from "../../routes/admin-path.js";
|
|
9
9
|
import { deleteAdminUser } from "../../server-fns/admin-users/index.js";
|
|
10
10
|
import { useNavigate } from "../chrome/loose-router.js";
|
|
@@ -47,10 +47,10 @@ function DeleteUser({ user, onClose }) {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
return /*#__PURE__*/ jsxs(Modal.Content, {
|
|
50
|
-
className:
|
|
50
|
+
className: clsx('byline-admin-user-delete-content', delete_module.content),
|
|
51
51
|
children: [
|
|
52
52
|
/*#__PURE__*/ jsxs("div", {
|
|
53
|
-
className:
|
|
53
|
+
className: clsx('byline-admin-user-delete-body', delete_module.body),
|
|
54
54
|
children: [
|
|
55
55
|
error ? /*#__PURE__*/ jsx(Alert, {
|
|
56
56
|
intent: "danger",
|
|
@@ -58,7 +58,7 @@ function DeleteUser({ user, onClose }) {
|
|
|
58
58
|
children: error
|
|
59
59
|
}) : null,
|
|
60
60
|
/*#__PURE__*/ jsxs("p", {
|
|
61
|
-
className:
|
|
61
|
+
className: clsx('byline-admin-user-delete-row', delete_module.row),
|
|
62
62
|
children: [
|
|
63
63
|
/*#__PURE__*/ jsx("span", {
|
|
64
64
|
className: "muted",
|
|
@@ -69,7 +69,7 @@ function DeleteUser({ user, onClose }) {
|
|
|
69
69
|
]
|
|
70
70
|
}),
|
|
71
71
|
/*#__PURE__*/ jsxs("p", {
|
|
72
|
-
className:
|
|
72
|
+
className: clsx('byline-admin-user-delete-row', delete_module.row),
|
|
73
73
|
children: [
|
|
74
74
|
/*#__PURE__*/ jsx("span", {
|
|
75
75
|
className: "muted",
|
|
@@ -80,13 +80,13 @@ function DeleteUser({ user, onClose }) {
|
|
|
80
80
|
]
|
|
81
81
|
}),
|
|
82
82
|
/*#__PURE__*/ jsx("p", {
|
|
83
|
-
className:
|
|
83
|
+
className: clsx('byline-admin-user-delete-warning', delete_module.warning),
|
|
84
84
|
children: t('adminUsers.delete.warning')
|
|
85
85
|
})
|
|
86
86
|
]
|
|
87
87
|
}),
|
|
88
88
|
/*#__PURE__*/ jsxs("div", {
|
|
89
|
-
className:
|
|
89
|
+
className: clsx('byline-admin-user-delete-actions', delete_module.actions),
|
|
90
90
|
children: [
|
|
91
91
|
/*#__PURE__*/ jsx(Button, {
|
|
92
92
|
type: "button",
|
|
@@ -94,7 +94,7 @@ function DeleteUser({ user, onClose }) {
|
|
|
94
94
|
size: "sm",
|
|
95
95
|
onClick: onClose,
|
|
96
96
|
disabled: pending,
|
|
97
|
-
className:
|
|
97
|
+
className: clsx('byline-admin-user-delete-button', delete_module.button),
|
|
98
98
|
children: t('common.actions.cancel')
|
|
99
99
|
}),
|
|
100
100
|
/*#__PURE__*/ jsx(Button, {
|
|
@@ -102,7 +102,7 @@ function DeleteUser({ user, onClose }) {
|
|
|
102
102
|
intent: "danger",
|
|
103
103
|
onClick: handleDelete,
|
|
104
104
|
disabled: pending,
|
|
105
|
-
className:
|
|
105
|
+
className: clsx('byline-admin-user-delete-button', delete_module.button),
|
|
106
106
|
children: true === pending ? /*#__PURE__*/ jsx(LoaderEllipsis, {
|
|
107
107
|
size: 42
|
|
108
108
|
}) : t('adminUsers.delete.confirmButton')
|
|
@@ -6,7 +6,7 @@ import { CreateAdminUser } from "@byline/admin/admin-users/components/create";
|
|
|
6
6
|
import { LocalDateTime } from "@byline/admin/react";
|
|
7
7
|
import { useTranslation } from "@byline/i18n/react";
|
|
8
8
|
import { CloseIcon, Container, Drawer, IconButton, PlusIcon, Search, Section, Select, Table, useToastManager } from "@byline/ui/react";
|
|
9
|
-
import
|
|
9
|
+
import clsx from "clsx";
|
|
10
10
|
import { getAdminRoutePath } from "../../routes/admin-path.js";
|
|
11
11
|
import { Link, useNavigate } from "../chrome/loose-router.js";
|
|
12
12
|
import { RouterPager } from "../chrome/router-pager.js";
|
|
@@ -57,7 +57,7 @@ const columnTemplates = [
|
|
|
57
57
|
];
|
|
58
58
|
function Stats({ total }) {
|
|
59
59
|
return /*#__PURE__*/ jsx("span", {
|
|
60
|
-
className:
|
|
60
|
+
className: clsx('byline-admin-users-list-stats', list_module.stats),
|
|
61
61
|
children: formatNumber(total, 0)
|
|
62
62
|
});
|
|
63
63
|
}
|
|
@@ -65,7 +65,7 @@ function padRows(value) {
|
|
|
65
65
|
return Array.from({
|
|
66
66
|
length: value
|
|
67
67
|
}).map((_, index)=>/*#__PURE__*/ jsx("div", {
|
|
68
|
-
className:
|
|
68
|
+
className: clsx('byline-admin-users-list-pad-row', list_module.padRow),
|
|
69
69
|
children: "\xa0"
|
|
70
70
|
}, `empty-row-${index}`));
|
|
71
71
|
}
|
|
@@ -136,10 +136,10 @@ function AdminUsersListView({ data }) {
|
|
|
136
136
|
/*#__PURE__*/ jsxs(Container, {
|
|
137
137
|
children: [
|
|
138
138
|
/*#__PURE__*/ jsxs("div", {
|
|
139
|
-
className:
|
|
139
|
+
className: clsx('byline-admin-users-list-head', list_module.head),
|
|
140
140
|
children: [
|
|
141
141
|
/*#__PURE__*/ jsx("h1", {
|
|
142
|
-
className:
|
|
142
|
+
className: clsx('byline-admin-users-list-title', list_module.title),
|
|
143
143
|
children: t('adminUsers.list.title')
|
|
144
144
|
}),
|
|
145
145
|
/*#__PURE__*/ jsx(Stats, {
|
|
@@ -157,14 +157,14 @@ function AdminUsersListView({ data }) {
|
|
|
157
157
|
]
|
|
158
158
|
}),
|
|
159
159
|
/*#__PURE__*/ jsxs("div", {
|
|
160
|
-
className:
|
|
160
|
+
className: clsx('byline-admin-users-list-options', list_module.options),
|
|
161
161
|
children: [
|
|
162
162
|
/*#__PURE__*/ jsx(Search, {
|
|
163
163
|
onSearch: handleOnSearch,
|
|
164
164
|
onClear: handleOnClear,
|
|
165
165
|
inputSize: "sm",
|
|
166
166
|
placeholder: t('adminUsers.list.searchPlaceholder'),
|
|
167
|
-
className:
|
|
167
|
+
className: clsx('byline-admin-users-list-search', list_module.search)
|
|
168
168
|
}),
|
|
169
169
|
/*#__PURE__*/ jsx(RouterPager, {
|
|
170
170
|
page: data.meta.page,
|
|
@@ -177,7 +177,7 @@ function AdminUsersListView({ data }) {
|
|
|
177
177
|
]
|
|
178
178
|
}),
|
|
179
179
|
/*#__PURE__*/ jsxs(Table.Container, {
|
|
180
|
-
className:
|
|
180
|
+
className: clsx('byline-admin-users-list-table-wrap', list_module.tableWrap),
|
|
181
181
|
children: [
|
|
182
182
|
/*#__PURE__*/ jsxs(Table, {
|
|
183
183
|
children: [
|
|
@@ -191,7 +191,7 @@ function AdminUsersListView({ data }) {
|
|
|
191
191
|
}),
|
|
192
192
|
/*#__PURE__*/ jsx(Table.Body, {
|
|
193
193
|
children: data.users.map((user)=>/*#__PURE__*/ jsxs(Table.Row, {
|
|
194
|
-
className:
|
|
194
|
+
className: clsx({
|
|
195
195
|
'byline-admin-users-list-disabled': !user.is_enabled,
|
|
196
196
|
[list_module.disabled]: !user.is_enabled
|
|
197
197
|
}),
|
|
@@ -203,14 +203,14 @@ function AdminUsersListView({ data }) {
|
|
|
203
203
|
id: user.id
|
|
204
204
|
},
|
|
205
205
|
children: user.given_name ?? /*#__PURE__*/ jsx("span", {
|
|
206
|
-
className:
|
|
206
|
+
className: clsx('muted byline-admin-users-list-not-set', list_module.notSet),
|
|
207
207
|
children: t('common.notSet')
|
|
208
208
|
})
|
|
209
209
|
})
|
|
210
210
|
}),
|
|
211
211
|
/*#__PURE__*/ jsx(Table.Cell, {
|
|
212
212
|
children: user.family_name ?? /*#__PURE__*/ jsx("span", {
|
|
213
|
-
className:
|
|
213
|
+
className: clsx('muted byline-admin-users-list-not-set', list_module.notSet),
|
|
214
214
|
children: t('common.notSet')
|
|
215
215
|
})
|
|
216
216
|
}),
|
|
@@ -218,13 +218,13 @@ function AdminUsersListView({ data }) {
|
|
|
218
218
|
children: user.email
|
|
219
219
|
}),
|
|
220
220
|
/*#__PURE__*/ jsx(Table.Cell, {
|
|
221
|
-
className:
|
|
221
|
+
className: clsx('byline-admin-users-list-cell-right', list_module.cellRight),
|
|
222
222
|
children: /*#__PURE__*/ jsx(LocalDateTime, {
|
|
223
223
|
value: user.updated_at
|
|
224
224
|
})
|
|
225
225
|
}),
|
|
226
226
|
/*#__PURE__*/ jsx(Table.Cell, {
|
|
227
|
-
className:
|
|
227
|
+
className: clsx('byline-admin-users-list-cell-right', list_module.cellRight),
|
|
228
228
|
children: /*#__PURE__*/ jsx(LocalDateTime, {
|
|
229
229
|
value: user.created_at
|
|
230
230
|
})
|
|
@@ -238,10 +238,10 @@ function AdminUsersListView({ data }) {
|
|
|
238
238
|
]
|
|
239
239
|
}),
|
|
240
240
|
/*#__PURE__*/ jsxs("div", {
|
|
241
|
-
className:
|
|
241
|
+
className: clsx('byline-admin-users-list-options byline-admin-users-list-options-bottom', list_module.options, list_module.optionsBottom),
|
|
242
242
|
children: [
|
|
243
243
|
/*#__PURE__*/ jsx(Select, {
|
|
244
|
-
containerClassName:
|
|
244
|
+
containerClassName: clsx('byline-admin-users-list-page-size', list_module.pageSize),
|
|
245
245
|
id: "page_size",
|
|
246
246
|
name: "page_size",
|
|
247
247
|
size: "sm",
|
|
@@ -286,7 +286,7 @@ function AdminUsersListView({ data }) {
|
|
|
286
286
|
topOffset: "50px",
|
|
287
287
|
isOpen: isCreateDrawerOpen,
|
|
288
288
|
onDismiss: closeCreateDrawer,
|
|
289
|
-
className:
|
|
289
|
+
className: clsx('byline-admin-users-list-drawer', list_module.drawer),
|
|
290
290
|
children: /*#__PURE__*/ jsxs(Drawer.Container, {
|
|
291
291
|
"aria-hidden": !isCreateDrawerOpen,
|
|
292
292
|
className: "p-2",
|
|
@@ -318,7 +318,7 @@ function AdminUsersListView({ data }) {
|
|
|
318
318
|
}),
|
|
319
319
|
/*#__PURE__*/ jsx(Drawer.Content, {
|
|
320
320
|
children: /*#__PURE__*/ jsx("div", {
|
|
321
|
-
className:
|
|
321
|
+
className: clsx('byline-admin-users-list-drawer-scroll', list_module.drawerScroll),
|
|
322
322
|
children: /*#__PURE__*/ jsx(CreateAdminUser, {
|
|
323
323
|
onClose: closeCreateDrawer,
|
|
324
324
|
onSuccess: handleCreateSuccess
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useState } from "react";
|
|
4
4
|
import { LanguageMenu, useTranslation } from "@byline/i18n/react";
|
|
5
5
|
import { Button } from "@byline/ui/react";
|
|
6
|
-
import
|
|
6
|
+
import clsx from "clsx";
|
|
7
7
|
import { getSignInRoutePath } from "../../routes/sign-in-path.js";
|
|
8
8
|
import { adminSignOut } from "../../server-fns/auth/index.js";
|
|
9
9
|
import admin_app_bar_module from "./admin-app-bar.module.js";
|
|
@@ -33,10 +33,10 @@ function AdminAppBar({ user }) {
|
|
|
33
33
|
window.location.assign(getSignInRoutePath());
|
|
34
34
|
}
|
|
35
35
|
return /*#__PURE__*/ jsxs("header", {
|
|
36
|
-
className:
|
|
36
|
+
className: clsx('byline-admin-app-bar', admin_app_bar_module.header),
|
|
37
37
|
children: [
|
|
38
38
|
/*#__PURE__*/ jsxs("div", {
|
|
39
|
-
className:
|
|
39
|
+
className: clsx('byline-admin-app-bar-left', admin_app_bar_module.left),
|
|
40
40
|
children: [
|
|
41
41
|
/*#__PURE__*/ jsx(AdminDrawerToggle, {}),
|
|
42
42
|
/*#__PURE__*/ jsx(Branding, {}),
|
|
@@ -48,16 +48,16 @@ function AdminAppBar({ user }) {
|
|
|
48
48
|
]
|
|
49
49
|
}),
|
|
50
50
|
/*#__PURE__*/ jsxs("div", {
|
|
51
|
-
className:
|
|
51
|
+
className: clsx('byline-admin-app-bar-right', admin_app_bar_module.right),
|
|
52
52
|
children: [
|
|
53
53
|
/*#__PURE__*/ jsx(LanguageMenu, {}),
|
|
54
54
|
/*#__PURE__*/ jsxs("span", {
|
|
55
|
-
className:
|
|
55
|
+
className: clsx('byline-admin-app-bar-user', admin_app_bar_module.user),
|
|
56
56
|
children: [
|
|
57
57
|
t('chrome.appBar.signedInAs'),
|
|
58
58
|
' ',
|
|
59
59
|
/*#__PURE__*/ jsx("span", {
|
|
60
|
-
className:
|
|
60
|
+
className: clsx('byline-admin-app-bar-user-name', admin_app_bar_module.userName),
|
|
61
61
|
children: displayNameFor(user)
|
|
62
62
|
})
|
|
63
63
|
]
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { IconButton, Tooltip } from "@byline/ui/react";
|
|
3
|
-
import
|
|
3
|
+
import clsx from "clsx";
|
|
4
4
|
import admin_drawer_toggle_module from "./admin-drawer-toggle.module.js";
|
|
5
5
|
import { useAdminMenu } from "./admin-menu-provider.js";
|
|
6
6
|
function AdminDrawerToggle() {
|
|
7
7
|
const { toggleDrawer, drawerOpen } = useAdminMenu();
|
|
8
8
|
return /*#__PURE__*/ jsx("div", {
|
|
9
|
-
className:
|
|
9
|
+
className: clsx('byline-admin-drawer-toggle', admin_drawer_toggle_module.root, {
|
|
10
10
|
'byline-admin-drawer-toggle-open': drawerOpen,
|
|
11
11
|
[admin_drawer_toggle_module.rootOpen]: drawerOpen,
|
|
12
12
|
'byline-admin-drawer-toggle-closed': !drawerOpen,
|
|
@@ -18,7 +18,7 @@ function AdminDrawerToggle() {
|
|
|
18
18
|
sideOffset: 8,
|
|
19
19
|
children: /*#__PURE__*/ jsx(IconButton, {
|
|
20
20
|
type: "button",
|
|
21
|
-
className:
|
|
21
|
+
className: clsx('byline-admin-drawer-toggle-button', admin_drawer_toggle_module.button),
|
|
22
22
|
variant: "text",
|
|
23
23
|
intent: "noeffect",
|
|
24
24
|
square: true,
|
|
@@ -6,7 +6,7 @@ import { ADMIN_ROLES_ABILITIES } from "@byline/admin/admin-roles";
|
|
|
6
6
|
import { ADMIN_USERS_ABILITIES } from "@byline/admin/admin-users";
|
|
7
7
|
import { useTranslation } from "@byline/i18n/react";
|
|
8
8
|
import { ActivityIcon, HomeIcon, RolesIcon, SettingsSlidersIcon, Tooltip, UserIcon, UsersIcon } from "@byline/ui/react";
|
|
9
|
-
import
|
|
9
|
+
import clsx from "clsx";
|
|
10
10
|
import { useSwipeable } from "react-swipeable";
|
|
11
11
|
import { useAbilities } from "../../integrations/abilities.js";
|
|
12
12
|
import { getAdminRoutePath, isAdminRoutePathActive, isRoutePathWithin } from "../../routes/admin-path.js";
|
|
@@ -24,7 +24,7 @@ function MenuItem({ to, label, icon, pathname, compact }) {
|
|
|
24
24
|
children: icon
|
|
25
25
|
});
|
|
26
26
|
return /*#__PURE__*/ jsx("li", {
|
|
27
|
-
className:
|
|
27
|
+
className: clsx('menu-item', {
|
|
28
28
|
active: isActive(pathname, to),
|
|
29
29
|
compact
|
|
30
30
|
}),
|
|
@@ -65,7 +65,7 @@ function AdminMenuDrawer() {
|
|
|
65
65
|
const compact = false === mobile && false === drawerOpen;
|
|
66
66
|
return /*#__PURE__*/ jsx("aside", {
|
|
67
67
|
id: "admin-menu",
|
|
68
|
-
className:
|
|
68
|
+
className: clsx('byline-admin-menu-drawer-aside', admin_menu_drawer_module.aside, {
|
|
69
69
|
'byline-admin-menu-drawer-aside-mobile': true === mobile,
|
|
70
70
|
[admin_menu_drawer_module.asideMobile]: true === mobile,
|
|
71
71
|
'byline-admin-menu-drawer-aside-mobile-open': true === mobile && true === drawerOpen,
|
|
@@ -81,7 +81,7 @@ function AdminMenuDrawer() {
|
|
|
81
81
|
}),
|
|
82
82
|
...handlers,
|
|
83
83
|
children: /*#__PURE__*/ jsx("nav", {
|
|
84
|
-
className:
|
|
84
|
+
className: clsx('byline-admin-menu-drawer admin-menu-drawer', admin_menu_drawer_module.nav),
|
|
85
85
|
children: /*#__PURE__*/ jsxs("ul", {
|
|
86
86
|
children: [
|
|
87
87
|
/*#__PURE__*/ jsx(MenuItem, {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import clsx from "clsx";
|
|
3
3
|
import branding_module from "./branding.module.js";
|
|
4
4
|
import byline_logo from "./byline-logo.js";
|
|
5
5
|
import { Link } from "./loose-router.js";
|
|
6
6
|
function Branding() {
|
|
7
7
|
return /*#__PURE__*/ jsx("div", {
|
|
8
|
-
className:
|
|
8
|
+
className: clsx('byline-admin-branding', branding_module.root),
|
|
9
9
|
children: /*#__PURE__*/ jsx(Link, {
|
|
10
10
|
to: '/',
|
|
11
11
|
children: /*#__PURE__*/ jsx(byline_logo, {
|
|
12
|
-
className:
|
|
12
|
+
className: clsx('byline-admin-branding-logo', branding_module.logo)
|
|
13
13
|
})
|
|
14
14
|
})
|
|
15
15
|
});
|