@burdenoff/microfe-workspaces 2026.1110.2 → 2026.1114.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/WorkspacesRoot.js +31 -25
- package/dist/components/CreateProjectDialog.js +81 -78
- package/dist/components/CreateWorkspaceDialog.js +41 -41
- package/dist/components/InviteMemberDialog.js +54 -54
- package/dist/components/MemberListItem.js +53 -53
- package/dist/components/ProjectCard.js +82 -82
- package/dist/components/ProjectMemberPickerDialog.js +46 -46
- package/dist/components/RenameProjectDialog.js +16 -16
- package/dist/components/WorkspaceCard.js +18 -18
- package/dist/components/WorkspacesErrorBoundary.js +25 -25
- package/dist/components/tags/ProjectTagsWidget.js +50 -50
- package/dist/components/tags/WorkspaceTagsEditor.js +9 -9
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -14
- package/dist/pages/ActivityListPage.js +30 -30
- package/dist/pages/CreateWorkspacePage.js +205 -173
- package/dist/pages/InviteAcceptancePage.js +201 -201
- package/dist/pages/MembersListPage.js +165 -164
- package/dist/pages/PendingInvitesPage.js +67 -67
- package/dist/pages/ProjectDetailPage.js +297 -272
- package/dist/pages/ProjectMembersPage.js +59 -59
- package/dist/pages/ProjectsListPage.js +275 -244
- package/dist/pages/WorkspaceDetailPage.js +175 -172
- package/dist/pages/WorkspaceInvitePage.js +298 -298
- package/dist/pages/WorkspaceSettingsPage.js +48 -48
- package/dist/pages/WorkspacesListPage.js +55 -55
- package/dist/pages/dashboard/DashboardCustomizer.js +27 -27
- package/dist/pages/dashboard/DashboardPage.js +35 -35
- package/dist/pages/dashboard/WidgetWrapper.js +21 -21
- package/dist/pages/dashboard/widgets/AgentsWidget.js +25 -25
- package/dist/pages/dashboard/widgets/GroupsWidget.js +14 -14
- package/dist/pages/dashboard/widgets/MembersWidget.js +15 -15
- package/dist/pages/dashboard/widgets/ProjectsWidget.js +20 -20
- package/dist/pages/dashboard/widgets/QuickActionsWidget.js +7 -7
- package/dist/pages/dashboard/widgets/RecentActivityWidget.js +16 -16
- package/dist/pages/dashboard/widgets/SessionsWidget.js +15 -15
- package/dist/pages/dashboard/widgets/TagCloudWidget.js +11 -11
- package/dist/pages/dashboard/widgets/UpcomingEventsWidget.js +16 -16
- package/dist/pages/dashboard/widgets/VibesWidget.js +13 -13
- package/dist/pages/dashboard/widgets/WelcomeWidget.js +23 -23
- package/dist/pages/dashboard/widgets/WorkflowRunsWidget.js +26 -26
- package/dist/pages/dashboard/widgets/WorkflowStatsWidget.js +21 -21
- package/dist/pages/dashboard/widgets/WorkflowsOverviewWidget.js +22 -22
- package/dist/pages/dashboard/widgets/WorkspacesWidget.js +16 -16
- package/dist/providers/WorkspacesProvider.d.ts +5 -0
- package/dist/providers/WorkspacesProvider.js +2 -2
- package/dist/types/index.d.ts +11 -1
- package/dist/utils/createForms.d.ts +21 -0
- package/dist/utils/createForms.js +20 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +4 -4
|
@@ -5,8 +5,8 @@ import { useProjects as r } from "../hooks/useProjects.js";
|
|
|
5
5
|
import { useWorkspaceRoles as i } from "../hooks/useWorkspaceRoles.js";
|
|
6
6
|
import { useMemo as a, useState as o } from "react";
|
|
7
7
|
import { AlertCircle as s } from "lucide-react";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { Badge as c, Button as l, Checkbox as u, ResponsiveDialog as d, ResponsiveDialogContent as f, ResponsiveDialogDescription as p, ResponsiveDialogHeader as m, ResponsiveDialogTitle as h, Tooltip as g, TooltipContent as _, TooltipProvider as v, TooltipTrigger as y } from "@burdenoff/fe-libs/ui";
|
|
9
|
+
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
10
10
|
import { FormControl as S, FormDescription as C, FormField as w, FormItem as T, FormLabel as E, FormMessage as D, FormProvider as O, Input as k, useForm as A, z as j } from "@burdenoff/fe-libs/form";
|
|
11
11
|
// src/components/InviteMemberDialog.tsx
|
|
12
12
|
function M(e) {
|
|
@@ -45,31 +45,31 @@ function N({ workspaceId: j }) {
|
|
|
45
45
|
}, J = (e) => {
|
|
46
46
|
e || (F(), K.reset(), U(null));
|
|
47
47
|
};
|
|
48
|
-
return /* @__PURE__ */
|
|
48
|
+
return /* @__PURE__ */ b(d, {
|
|
49
49
|
open: P,
|
|
50
50
|
onOpenChange: J,
|
|
51
|
-
children: /* @__PURE__ */
|
|
51
|
+
children: /* @__PURE__ */ x(f, {
|
|
52
52
|
className: "z-[120] flex h-[min(88vh,900px)] flex-col overflow-hidden sm:max-w-[960px] lg:max-w-[1120px]",
|
|
53
|
-
children: [/* @__PURE__ */
|
|
53
|
+
children: [/* @__PURE__ */ x(m, { children: [/* @__PURE__ */ b(h, { children: N("inviteMemberDialog.title", "Invite Member") }), /* @__PURE__ */ b(p, { children: N("inviteMemberDialog.description", "Invite a new member to this workspace by email. They'll receive an invitation link to join.") })] }), /* @__PURE__ */ b(O, {
|
|
54
54
|
...K,
|
|
55
|
-
children: /* @__PURE__ */
|
|
55
|
+
children: /* @__PURE__ */ x("form", {
|
|
56
56
|
onSubmit: K.handleSubmit(q),
|
|
57
57
|
className: "flex min-h-0 flex-1 flex-col",
|
|
58
|
-
children: [/* @__PURE__ */
|
|
58
|
+
children: [/* @__PURE__ */ b("div", {
|
|
59
59
|
className: "min-h-0 flex-1 overflow-y-auto pr-2",
|
|
60
|
-
children: /* @__PURE__ */
|
|
60
|
+
children: /* @__PURE__ */ x("div", {
|
|
61
61
|
className: "space-y-5 pb-4 pr-2",
|
|
62
62
|
children: [
|
|
63
|
-
H && /* @__PURE__ */
|
|
63
|
+
H && /* @__PURE__ */ x("div", {
|
|
64
64
|
className: "flex items-center gap-2 rounded-md border border-status-error-border/20 bg-status-error-bg/10 p-3 text-sm text-status-error-text",
|
|
65
|
-
children: [/* @__PURE__ */
|
|
65
|
+
children: [/* @__PURE__ */ b(s, { className: "size-4 flex-shrink-0" }), /* @__PURE__ */ b("span", { children: H })]
|
|
66
66
|
}),
|
|
67
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ b(w, {
|
|
68
68
|
control: K.control,
|
|
69
69
|
name: "email",
|
|
70
|
-
render: ({ field: e }) => /* @__PURE__ */
|
|
71
|
-
/* @__PURE__ */
|
|
72
|
-
/* @__PURE__ */
|
|
70
|
+
render: ({ field: e }) => /* @__PURE__ */ x(T, { children: [
|
|
71
|
+
/* @__PURE__ */ b(E, { children: N("inviteMemberDialog.emailLabel", "Email Address *") }),
|
|
72
|
+
/* @__PURE__ */ b(S, { children: /* @__PURE__ */ b(k, {
|
|
73
73
|
type: "email",
|
|
74
74
|
placeholder: N("inviteMemberDialog.emailPlaceholder", "member@example.com"),
|
|
75
75
|
...e,
|
|
@@ -78,23 +78,23 @@ function N({ workspaceId: j }) {
|
|
|
78
78
|
e.onChange(t), U(null);
|
|
79
79
|
}
|
|
80
80
|
}) }),
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ b(C, { children: N("inviteMemberDialog.emailHint", "Enter the email address of the person you want to invite") }),
|
|
82
|
+
/* @__PURE__ */ b(D, {})
|
|
83
83
|
] })
|
|
84
84
|
}),
|
|
85
|
-
/* @__PURE__ */
|
|
85
|
+
/* @__PURE__ */ b(w, {
|
|
86
86
|
control: K.control,
|
|
87
87
|
name: "roleIds",
|
|
88
|
-
render: ({ field: e }) => /* @__PURE__ */
|
|
89
|
-
/* @__PURE__ */
|
|
88
|
+
render: ({ field: e }) => /* @__PURE__ */ x(T, { children: [
|
|
89
|
+
/* @__PURE__ */ x("div", {
|
|
90
90
|
className: "flex flex-wrap items-center justify-between gap-2",
|
|
91
|
-
children: [/* @__PURE__ */
|
|
91
|
+
children: [/* @__PURE__ */ x("div", {
|
|
92
92
|
className: "space-y-1",
|
|
93
|
-
children: [/* @__PURE__ */
|
|
93
|
+
children: [/* @__PURE__ */ b(E, { children: N("inviteMemberDialog.rolesLabel", "Roles (Optional)") }), /* @__PURE__ */ b("p", {
|
|
94
94
|
className: "text-sm text-text-secondary",
|
|
95
95
|
children: N("inviteMemberDialog.rolesHint", "Choose roles. Hover any role to preview its full description.")
|
|
96
96
|
})]
|
|
97
|
-
}), e.value.length > 0 ? /* @__PURE__ */
|
|
97
|
+
}), e.value.length > 0 ? /* @__PURE__ */ x(c, {
|
|
98
98
|
variant: "secondary",
|
|
99
99
|
children: [
|
|
100
100
|
e.value.length,
|
|
@@ -103,24 +103,24 @@ function N({ workspaceId: j }) {
|
|
|
103
103
|
]
|
|
104
104
|
}) : null]
|
|
105
105
|
}),
|
|
106
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ b(S, { children: /* @__PURE__ */ b(v, { children: /* @__PURE__ */ b("div", {
|
|
107
107
|
className: "grid grid-cols-1 gap-2 md:grid-cols-2 xl:grid-cols-3",
|
|
108
|
-
children: z ? /* @__PURE__ */
|
|
108
|
+
children: z ? /* @__PURE__ */ b("p", {
|
|
109
109
|
className: "text-sm text-text-secondary",
|
|
110
110
|
children: N("inviteMemberDialog.loadingRoles", "Loading roles…")
|
|
111
|
-
}) : R.length === 0 ? /* @__PURE__ */
|
|
111
|
+
}) : R.length === 0 ? /* @__PURE__ */ b("p", {
|
|
112
112
|
className: "text-sm text-text-secondary",
|
|
113
113
|
children: N("inviteMemberDialog.noRoles", "No assignable roles were returned for this workspace.")
|
|
114
114
|
}) : R.map((t) => {
|
|
115
115
|
let n = e.value.includes(t.id);
|
|
116
|
-
return /* @__PURE__ */
|
|
116
|
+
return /* @__PURE__ */ x(g, { children: [/* @__PURE__ */ b(y, {
|
|
117
117
|
asChild: !0,
|
|
118
|
-
children: /* @__PURE__ */
|
|
118
|
+
children: /* @__PURE__ */ x("label", {
|
|
119
119
|
className: `flex cursor-pointer items-center justify-between gap-3 rounded-lg border px-3 py-3 text-left text-sm font-medium transition-colors focus-within:ring-2 focus-within:ring-[var(--color-focus-ring)] focus-within:ring-offset-2 ${n ? "border-primary bg-action-primary-bg/10 text-text-primary shadow-sm" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-accent"}`,
|
|
120
|
-
children: [/* @__PURE__ */
|
|
120
|
+
children: [/* @__PURE__ */ b("span", {
|
|
121
121
|
className: "min-w-0 flex-1 truncate",
|
|
122
122
|
children: t.name
|
|
123
|
-
}), /* @__PURE__ */
|
|
123
|
+
}), /* @__PURE__ */ b(u, {
|
|
124
124
|
checked: n,
|
|
125
125
|
disabled: L,
|
|
126
126
|
onCheckedChange: (n) => {
|
|
@@ -130,18 +130,18 @@ function N({ workspaceId: j }) {
|
|
|
130
130
|
"aria-label": N("inviteMemberDialog.selectRoleAriaLabel", "Select {{roleName}}", { roleName: t.name })
|
|
131
131
|
})]
|
|
132
132
|
})
|
|
133
|
-
}), /* @__PURE__ */
|
|
133
|
+
}), /* @__PURE__ */ x(_, {
|
|
134
134
|
className: "max-w-xs text-sm leading-6",
|
|
135
135
|
children: [
|
|
136
|
-
/* @__PURE__ */
|
|
136
|
+
/* @__PURE__ */ b("p", {
|
|
137
137
|
className: "font-medium",
|
|
138
138
|
children: t.name
|
|
139
139
|
}),
|
|
140
|
-
/* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ b("p", {
|
|
141
141
|
className: "mt-1 text-text-secondary",
|
|
142
142
|
children: t.description || N("inviteMemberDialog.noRoleDescription", "No description available for this role.")
|
|
143
143
|
}),
|
|
144
|
-
t.isSystem ? /* @__PURE__ */
|
|
144
|
+
t.isSystem ? /* @__PURE__ */ b("p", {
|
|
145
145
|
className: "mt-2 text-xs",
|
|
146
146
|
children: N("inviteMemberDialog.systemRole", "System role")
|
|
147
147
|
}) : null
|
|
@@ -149,22 +149,22 @@ function N({ workspaceId: j }) {
|
|
|
149
149
|
})] }, t.id);
|
|
150
150
|
})
|
|
151
151
|
}) }) }),
|
|
152
|
-
/* @__PURE__ */
|
|
152
|
+
/* @__PURE__ */ b(D, {})
|
|
153
153
|
] })
|
|
154
154
|
}),
|
|
155
|
-
/* @__PURE__ */
|
|
155
|
+
/* @__PURE__ */ b(w, {
|
|
156
156
|
control: K.control,
|
|
157
157
|
name: "projectIds",
|
|
158
|
-
render: ({ field: e }) => /* @__PURE__ */
|
|
159
|
-
/* @__PURE__ */
|
|
158
|
+
render: ({ field: e }) => /* @__PURE__ */ x(T, { children: [
|
|
159
|
+
/* @__PURE__ */ x("div", {
|
|
160
160
|
className: "flex flex-wrap items-center justify-between gap-2",
|
|
161
|
-
children: [/* @__PURE__ */
|
|
161
|
+
children: [/* @__PURE__ */ x("div", {
|
|
162
162
|
className: "space-y-1",
|
|
163
|
-
children: [/* @__PURE__ */
|
|
163
|
+
children: [/* @__PURE__ */ b(E, { children: N("inviteMemberDialog.projectsLabel", "Projects to add on acceptance (Optional)") }), /* @__PURE__ */ b("p", {
|
|
164
164
|
className: "text-sm text-text-secondary",
|
|
165
165
|
children: N("inviteMemberDialog.projectsHint", "The invited user will be added to these projects automatically after they accept the workspace invitation.")
|
|
166
166
|
})]
|
|
167
|
-
}), e.value.length > 0 ? /* @__PURE__ */
|
|
167
|
+
}), e.value.length > 0 ? /* @__PURE__ */ x(c, {
|
|
168
168
|
variant: "secondary",
|
|
169
169
|
children: [
|
|
170
170
|
e.value.length,
|
|
@@ -173,34 +173,34 @@ function N({ workspaceId: j }) {
|
|
|
173
173
|
]
|
|
174
174
|
}) : null]
|
|
175
175
|
}),
|
|
176
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ b(S, { children: /* @__PURE__ */ b("div", {
|
|
177
177
|
className: "grid grid-cols-1 gap-2 md:grid-cols-2 xl:grid-cols-3",
|
|
178
|
-
children: V ? /* @__PURE__ */
|
|
178
|
+
children: V ? /* @__PURE__ */ b("p", {
|
|
179
179
|
className: "text-sm text-text-secondary",
|
|
180
180
|
children: N("inviteMemberDialog.loadingProjects", "Loading projects…")
|
|
181
|
-
}) : W.length === 0 ? /* @__PURE__ */
|
|
181
|
+
}) : W.length === 0 ? /* @__PURE__ */ b("p", {
|
|
182
182
|
className: "text-sm text-text-secondary",
|
|
183
183
|
children: N("inviteMemberDialog.noProjects", "No active projects are available in this workspace yet.")
|
|
184
184
|
}) : W.map((t) => {
|
|
185
185
|
let n = e.value.includes(t.id);
|
|
186
|
-
return /* @__PURE__ */
|
|
186
|
+
return /* @__PURE__ */ x("label", {
|
|
187
187
|
className: `flex cursor-pointer items-start justify-between gap-3 rounded-lg border px-3 py-3 transition-colors focus-within:ring-2 focus-within:ring-[var(--color-focus-ring)] focus-within:ring-offset-2 ${n ? "border-primary bg-action-primary-bg/10 text-text-primary shadow-sm" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-accent"}`,
|
|
188
|
-
children: [/* @__PURE__ */
|
|
188
|
+
children: [/* @__PURE__ */ x("div", {
|
|
189
189
|
className: "min-w-0 flex-1 space-y-1",
|
|
190
|
-
children: [/* @__PURE__ */
|
|
190
|
+
children: [/* @__PURE__ */ b("p", {
|
|
191
191
|
className: "truncate text-sm font-semibold leading-tight",
|
|
192
192
|
children: t.name
|
|
193
|
-
}), /* @__PURE__ */
|
|
193
|
+
}), /* @__PURE__ */ x("div", {
|
|
194
194
|
className: "flex items-center gap-2 text-xs text-text-secondary",
|
|
195
|
-
children: [/* @__PURE__ */
|
|
195
|
+
children: [/* @__PURE__ */ b("span", {
|
|
196
196
|
className: "truncate font-mono",
|
|
197
197
|
children: t.key
|
|
198
|
-
}), /* @__PURE__ */ c
|
|
198
|
+
}), /* @__PURE__ */ b(c, {
|
|
199
199
|
variant: "outline",
|
|
200
200
|
children: t.status
|
|
201
201
|
})]
|
|
202
202
|
})]
|
|
203
|
-
}), /* @__PURE__ */
|
|
203
|
+
}), /* @__PURE__ */ b(u, {
|
|
204
204
|
checked: n,
|
|
205
205
|
disabled: L,
|
|
206
206
|
onCheckedChange: (n) => {
|
|
@@ -212,20 +212,20 @@ function N({ workspaceId: j }) {
|
|
|
212
212
|
}, t.id);
|
|
213
213
|
})
|
|
214
214
|
}) }),
|
|
215
|
-
/* @__PURE__ */
|
|
215
|
+
/* @__PURE__ */ b(D, {})
|
|
216
216
|
] })
|
|
217
217
|
})
|
|
218
218
|
]
|
|
219
219
|
})
|
|
220
|
-
}), /* @__PURE__ */
|
|
220
|
+
}), /* @__PURE__ */ x("div", {
|
|
221
221
|
className: "flex justify-end gap-3 border-t pt-4",
|
|
222
|
-
children: [/* @__PURE__ */
|
|
222
|
+
children: [/* @__PURE__ */ b(l, {
|
|
223
223
|
type: "button",
|
|
224
224
|
variant: "outline",
|
|
225
225
|
onClick: () => J(!1),
|
|
226
226
|
disabled: L,
|
|
227
227
|
children: N("common.cancel", "Cancel")
|
|
228
|
-
}), /* @__PURE__ */
|
|
228
|
+
}), /* @__PURE__ */ b(l, {
|
|
229
229
|
type: "submit",
|
|
230
230
|
disabled: L,
|
|
231
231
|
children: L ? N("inviteMemberDialog.sending", "Sending...") : N("inviteMemberDialog.submit", "Send Invitation")
|
|
@@ -1,99 +1,99 @@
|
|
|
1
1
|
import { useRemoveWorkspaceMember as e } from "../hooks/useMemberMutations.js";
|
|
2
2
|
import { nativeImpact as t, nativeNotify as n } from "../utils/nativeBridge.js";
|
|
3
3
|
import { formatRelativeTime as r } from "../utils/formatters.js";
|
|
4
|
-
import {
|
|
5
|
-
import { useTr as
|
|
6
|
-
import { useMemo as
|
|
7
|
-
import { MoreHorizontal as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { ActorIdentity as
|
|
4
|
+
import { useIsFluidGridsVariant as i, useWorkspacesContext as a } from "../providers/WorkspacesProvider.js";
|
|
5
|
+
import { useTr as o } from "../hooks/useTr.js";
|
|
6
|
+
import { useMemo as s, useState as c } from "react";
|
|
7
|
+
import { MoreHorizontal as l, UserMinus as u } from "lucide-react";
|
|
8
|
+
import { AlertDialog as d, AlertDialogAction as f, AlertDialogCancel as p, AlertDialogContent as m, AlertDialogDescription as h, AlertDialogFooter as g, AlertDialogHeader as _, AlertDialogTitle as v, Badge as y, Button as b, CardContent as x, DropdownMenu as S, DropdownMenuContent as C, DropdownMenuTrigger as w, GlassCard as T } from "@burdenoff/fe-libs/ui";
|
|
9
|
+
import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
10
|
+
import { ActorIdentity as k, useActorProfiles as A } from "@burdenoff/fe-libs/shared";
|
|
11
11
|
// src/components/MemberListItem.tsx
|
|
12
|
-
function
|
|
13
|
-
let
|
|
14
|
-
actorId:
|
|
12
|
+
function j({ member: j, selected: M = !1, onToggleSelect: N, canRemove: P = !1 }) {
|
|
13
|
+
let F = o(), I = i(), [L, R] = c(!1), { mutate: z, isPending: B } = e(j.workspaceId), { apiGatewayUrl: V, authToken: H, organizationId: U } = a(), W = s(() => [{
|
|
14
|
+
actorId: j.userId,
|
|
15
15
|
actorType: "user"
|
|
16
|
-
}], [
|
|
17
|
-
apiGatewayUrl:
|
|
18
|
-
authToken:
|
|
19
|
-
orgId:
|
|
20
|
-
workspaceId:
|
|
21
|
-
})[
|
|
22
|
-
return /* @__PURE__ */
|
|
16
|
+
}], [j.userId]), G = A(W, {
|
|
17
|
+
apiGatewayUrl: V,
|
|
18
|
+
authToken: H,
|
|
19
|
+
orgId: U,
|
|
20
|
+
workspaceId: j.workspaceId
|
|
21
|
+
})[j.userId];
|
|
22
|
+
return /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(T, {
|
|
23
23
|
treatment: "plain",
|
|
24
|
-
className: `border-border-seam ${
|
|
25
|
-
children: /* @__PURE__ */
|
|
24
|
+
className: `border-border-seam ${M ? "ring-2 ring-action-primary-bg/25 border-action-primary-bg/50" : ""}`,
|
|
25
|
+
children: /* @__PURE__ */ D(x, {
|
|
26
26
|
className: "p-4",
|
|
27
|
-
children: /* @__PURE__ */
|
|
27
|
+
children: /* @__PURE__ */ O("div", {
|
|
28
28
|
className: "flex items-center justify-between gap-4",
|
|
29
|
-
children: [/* @__PURE__ */
|
|
29
|
+
children: [/* @__PURE__ */ O("div", {
|
|
30
30
|
className: "flex items-center gap-3 flex-1 min-w-0",
|
|
31
|
-
children: [
|
|
31
|
+
children: [N && /* @__PURE__ */ D("input", {
|
|
32
32
|
type: "checkbox",
|
|
33
|
-
checked:
|
|
34
|
-
onChange: (e) =>
|
|
33
|
+
checked: M,
|
|
34
|
+
onChange: (e) => N(e.target.checked),
|
|
35
35
|
className: "size-4 rounded border-border-default text-action-primary-bg",
|
|
36
|
-
"aria-label":
|
|
37
|
-
}), /* @__PURE__ */
|
|
36
|
+
"aria-label": F("memberListItem.selectMemberAriaLabel", "Select member {{name}}", { name: G?.displayName ?? "" })
|
|
37
|
+
}), /* @__PURE__ */ O("div", {
|
|
38
38
|
className: "flex-1 min-w-0",
|
|
39
|
-
children: [
|
|
40
|
-
profile:
|
|
39
|
+
children: [G ? /* @__PURE__ */ D(k, {
|
|
40
|
+
profile: G,
|
|
41
41
|
variant: "cell"
|
|
42
|
-
}) : null, /* @__PURE__ */
|
|
42
|
+
}) : null, /* @__PURE__ */ O("div", {
|
|
43
43
|
className: "mt-1 flex items-center gap-2",
|
|
44
|
-
children: [/* @__PURE__ */
|
|
44
|
+
children: [/* @__PURE__ */ D(y, {
|
|
45
45
|
variant: "secondary",
|
|
46
46
|
className: "text-xs",
|
|
47
|
-
children:
|
|
48
|
-
}), /* @__PURE__ */
|
|
47
|
+
children: F("memberListItem.workspaceMember", "Workspace member")
|
|
48
|
+
}), /* @__PURE__ */ D("span", {
|
|
49
49
|
className: "text-xs text-text-secondary",
|
|
50
|
-
children:
|
|
50
|
+
children: F("memberListItem.joined", "Joined {{time}}", { time: r(j.createdAt) })
|
|
51
51
|
})]
|
|
52
52
|
})]
|
|
53
53
|
})]
|
|
54
|
-
}),
|
|
54
|
+
}), P && /* @__PURE__ */ O(S, { children: [/* @__PURE__ */ D(w, {
|
|
55
55
|
asChild: !0,
|
|
56
|
-
children: /* @__PURE__ */
|
|
56
|
+
children: /* @__PURE__ */ O(b, {
|
|
57
57
|
variant: "ghost",
|
|
58
58
|
size: "icon",
|
|
59
59
|
className: "size-8 flex-shrink-0",
|
|
60
|
-
children: [/* @__PURE__ */
|
|
60
|
+
children: [/* @__PURE__ */ D(l, { className: "size-4" }), /* @__PURE__ */ D("span", {
|
|
61
61
|
className: "sr-only",
|
|
62
|
-
children:
|
|
62
|
+
children: F("memberListItem.openActions", "Open member actions")
|
|
63
63
|
})]
|
|
64
64
|
})
|
|
65
|
-
}), /* @__PURE__ */
|
|
65
|
+
}), /* @__PURE__ */ D(C, {
|
|
66
66
|
align: "end",
|
|
67
|
-
children: /* @__PURE__ */
|
|
67
|
+
children: /* @__PURE__ */ O("button", {
|
|
68
68
|
type: "button",
|
|
69
|
-
onClick: () =>
|
|
69
|
+
onClick: () => R(!0),
|
|
70
70
|
className: "flex w-full items-center rounded-sm px-2 py-1.5 text-sm text-status-danger-text outline-none transition-colors hover:bg-action-ghost-bg-hover focus:bg-action-ghost-bg-hover",
|
|
71
|
-
children: [/* @__PURE__ */
|
|
71
|
+
children: [/* @__PURE__ */ D(u, { className: "mr-2 size-4" }), F("memberListItem.removeMember", "Remove Member")]
|
|
72
72
|
})
|
|
73
73
|
})] })]
|
|
74
74
|
})
|
|
75
75
|
})
|
|
76
|
-
}), /* @__PURE__ */ d
|
|
77
|
-
open:
|
|
78
|
-
onOpenChange:
|
|
79
|
-
children: /* @__PURE__ */
|
|
80
|
-
disabled:
|
|
81
|
-
children:
|
|
82
|
-
}), /* @__PURE__ */
|
|
76
|
+
}), /* @__PURE__ */ D(d, {
|
|
77
|
+
open: L,
|
|
78
|
+
onOpenChange: R,
|
|
79
|
+
children: /* @__PURE__ */ O(m, { children: [/* @__PURE__ */ O(_, { children: [/* @__PURE__ */ D(v, { children: F("memberListItem.removeTitle", "Remove Member") }), /* @__PURE__ */ D(h, { children: I ? F("memberListItem.removeDescriptionNamed", "Remove {{name}} from this workspace? They lose access to its projects and data straight away. They stay in the organization, and you can invite them again later.", { name: G?.displayName ?? F("memberListItem.thisMemberFallback", "this member") }) : F("memberListItem.removeDescription", "Are you sure you want to remove {{name}} from the workspace? This action cannot be undone.", { name: G?.displayName ?? F("memberListItem.thisMemberFallback", "this member") }) })] }), /* @__PURE__ */ O(g, { children: [/* @__PURE__ */ D(p, {
|
|
80
|
+
disabled: B,
|
|
81
|
+
children: F("common.cancel", "Cancel")
|
|
82
|
+
}), /* @__PURE__ */ D(f, {
|
|
83
83
|
onClick: () => {
|
|
84
|
-
t("medium"),
|
|
84
|
+
t("medium"), z(j.id, {
|
|
85
85
|
onSuccess: () => {
|
|
86
|
-
n("success"),
|
|
86
|
+
n("success"), R(!1);
|
|
87
87
|
},
|
|
88
88
|
onError: () => {
|
|
89
89
|
n("error");
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
},
|
|
93
|
-
disabled:
|
|
93
|
+
disabled: B,
|
|
94
94
|
className: "bg-status-danger-bg text-status-danger-text hover:bg-status-danger-bg/90",
|
|
95
|
-
children:
|
|
95
|
+
children: B ? F("memberListItem.removing", "Removing...") : F("memberListItem.removeButton", "Remove Member")
|
|
96
96
|
})] })] })
|
|
97
97
|
})] });
|
|
98
98
|
}
|
|
99
|
-
export {
|
|
99
|
+
export { j as MemberListItem };
|