@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.
Files changed (51) hide show
  1. package/dist/WorkspacesRoot.js +31 -25
  2. package/dist/components/CreateProjectDialog.js +81 -78
  3. package/dist/components/CreateWorkspaceDialog.js +41 -41
  4. package/dist/components/InviteMemberDialog.js +54 -54
  5. package/dist/components/MemberListItem.js +53 -53
  6. package/dist/components/ProjectCard.js +82 -82
  7. package/dist/components/ProjectMemberPickerDialog.js +46 -46
  8. package/dist/components/RenameProjectDialog.js +16 -16
  9. package/dist/components/WorkspaceCard.js +18 -18
  10. package/dist/components/WorkspacesErrorBoundary.js +25 -25
  11. package/dist/components/tags/ProjectTagsWidget.js +50 -50
  12. package/dist/components/tags/WorkspaceTagsEditor.js +9 -9
  13. package/dist/index.d.ts +2 -2
  14. package/dist/index.js +15 -14
  15. package/dist/pages/ActivityListPage.js +30 -30
  16. package/dist/pages/CreateWorkspacePage.js +205 -173
  17. package/dist/pages/InviteAcceptancePage.js +201 -201
  18. package/dist/pages/MembersListPage.js +165 -164
  19. package/dist/pages/PendingInvitesPage.js +67 -67
  20. package/dist/pages/ProjectDetailPage.js +297 -272
  21. package/dist/pages/ProjectMembersPage.js +59 -59
  22. package/dist/pages/ProjectsListPage.js +275 -244
  23. package/dist/pages/WorkspaceDetailPage.js +175 -172
  24. package/dist/pages/WorkspaceInvitePage.js +298 -298
  25. package/dist/pages/WorkspaceSettingsPage.js +48 -48
  26. package/dist/pages/WorkspacesListPage.js +55 -55
  27. package/dist/pages/dashboard/DashboardCustomizer.js +27 -27
  28. package/dist/pages/dashboard/DashboardPage.js +35 -35
  29. package/dist/pages/dashboard/WidgetWrapper.js +21 -21
  30. package/dist/pages/dashboard/widgets/AgentsWidget.js +25 -25
  31. package/dist/pages/dashboard/widgets/GroupsWidget.js +14 -14
  32. package/dist/pages/dashboard/widgets/MembersWidget.js +15 -15
  33. package/dist/pages/dashboard/widgets/ProjectsWidget.js +20 -20
  34. package/dist/pages/dashboard/widgets/QuickActionsWidget.js +7 -7
  35. package/dist/pages/dashboard/widgets/RecentActivityWidget.js +16 -16
  36. package/dist/pages/dashboard/widgets/SessionsWidget.js +15 -15
  37. package/dist/pages/dashboard/widgets/TagCloudWidget.js +11 -11
  38. package/dist/pages/dashboard/widgets/UpcomingEventsWidget.js +16 -16
  39. package/dist/pages/dashboard/widgets/VibesWidget.js +13 -13
  40. package/dist/pages/dashboard/widgets/WelcomeWidget.js +23 -23
  41. package/dist/pages/dashboard/widgets/WorkflowRunsWidget.js +26 -26
  42. package/dist/pages/dashboard/widgets/WorkflowStatsWidget.js +21 -21
  43. package/dist/pages/dashboard/widgets/WorkflowsOverviewWidget.js +22 -22
  44. package/dist/pages/dashboard/widgets/WorkspacesWidget.js +16 -16
  45. package/dist/providers/WorkspacesProvider.d.ts +5 -0
  46. package/dist/providers/WorkspacesProvider.js +2 -2
  47. package/dist/types/index.d.ts +11 -1
  48. package/dist/utils/createForms.d.ts +21 -0
  49. package/dist/utils/createForms.js +20 -0
  50. package/dist/utils/index.d.ts +1 -0
  51. 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 { jsx as c, jsxs as l } from "react/jsx-runtime";
9
- import { Badge as u, Button as d, Checkbox as f, ResponsiveDialog as p, ResponsiveDialogContent as m, ResponsiveDialogDescription as h, ResponsiveDialogHeader as g, ResponsiveDialogTitle as _, Tooltip as v, TooltipContent as y, TooltipProvider as b, TooltipTrigger as x } from "@burdenoff/fe-libs/ui";
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__ */ c(p, {
48
+ return /* @__PURE__ */ b(d, {
49
49
  open: P,
50
50
  onOpenChange: J,
51
- children: /* @__PURE__ */ l(m, {
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__ */ l(g, { children: [/* @__PURE__ */ c(_, { children: N("inviteMemberDialog.title", "Invite Member") }), /* @__PURE__ */ c(h, { children: N("inviteMemberDialog.description", "Invite a new member to this workspace by email. They'll receive an invitation link to join.") })] }), /* @__PURE__ */ c(O, {
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__ */ l("form", {
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__ */ c("div", {
58
+ children: [/* @__PURE__ */ b("div", {
59
59
  className: "min-h-0 flex-1 overflow-y-auto pr-2",
60
- children: /* @__PURE__ */ l("div", {
60
+ children: /* @__PURE__ */ x("div", {
61
61
  className: "space-y-5 pb-4 pr-2",
62
62
  children: [
63
- H && /* @__PURE__ */ l("div", {
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__ */ c(s, { className: "size-4 flex-shrink-0" }), /* @__PURE__ */ c("span", { children: H })]
65
+ children: [/* @__PURE__ */ b(s, { className: "size-4 flex-shrink-0" }), /* @__PURE__ */ b("span", { children: H })]
66
66
  }),
67
- /* @__PURE__ */ c(w, {
67
+ /* @__PURE__ */ b(w, {
68
68
  control: K.control,
69
69
  name: "email",
70
- render: ({ field: e }) => /* @__PURE__ */ l(T, { children: [
71
- /* @__PURE__ */ c(E, { children: N("inviteMemberDialog.emailLabel", "Email Address *") }),
72
- /* @__PURE__ */ c(S, { children: /* @__PURE__ */ c(k, {
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__ */ c(C, { children: N("inviteMemberDialog.emailHint", "Enter the email address of the person you want to invite") }),
82
- /* @__PURE__ */ c(D, {})
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__ */ c(w, {
85
+ /* @__PURE__ */ b(w, {
86
86
  control: K.control,
87
87
  name: "roleIds",
88
- render: ({ field: e }) => /* @__PURE__ */ l(T, { children: [
89
- /* @__PURE__ */ l("div", {
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__ */ l("div", {
91
+ children: [/* @__PURE__ */ x("div", {
92
92
  className: "space-y-1",
93
- children: [/* @__PURE__ */ c(E, { children: N("inviteMemberDialog.rolesLabel", "Roles (Optional)") }), /* @__PURE__ */ c("p", {
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__ */ l(u, {
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__ */ c(S, { children: /* @__PURE__ */ c(b, { children: /* @__PURE__ */ c("div", {
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__ */ c("p", {
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__ */ c("p", {
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__ */ l(v, { children: [/* @__PURE__ */ c(x, {
116
+ return /* @__PURE__ */ x(g, { children: [/* @__PURE__ */ b(y, {
117
117
  asChild: !0,
118
- children: /* @__PURE__ */ l("label", {
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__ */ c("span", {
120
+ children: [/* @__PURE__ */ b("span", {
121
121
  className: "min-w-0 flex-1 truncate",
122
122
  children: t.name
123
- }), /* @__PURE__ */ c(f, {
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__ */ l(y, {
133
+ }), /* @__PURE__ */ x(_, {
134
134
  className: "max-w-xs text-sm leading-6",
135
135
  children: [
136
- /* @__PURE__ */ c("p", {
136
+ /* @__PURE__ */ b("p", {
137
137
  className: "font-medium",
138
138
  children: t.name
139
139
  }),
140
- /* @__PURE__ */ c("p", {
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__ */ c("p", {
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__ */ c(D, {})
152
+ /* @__PURE__ */ b(D, {})
153
153
  ] })
154
154
  }),
155
- /* @__PURE__ */ c(w, {
155
+ /* @__PURE__ */ b(w, {
156
156
  control: K.control,
157
157
  name: "projectIds",
158
- render: ({ field: e }) => /* @__PURE__ */ l(T, { children: [
159
- /* @__PURE__ */ l("div", {
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__ */ l("div", {
161
+ children: [/* @__PURE__ */ x("div", {
162
162
  className: "space-y-1",
163
- children: [/* @__PURE__ */ c(E, { children: N("inviteMemberDialog.projectsLabel", "Projects to add on acceptance (Optional)") }), /* @__PURE__ */ c("p", {
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__ */ l(u, {
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__ */ c(S, { children: /* @__PURE__ */ c("div", {
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__ */ c("p", {
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__ */ c("p", {
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__ */ l("label", {
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__ */ l("div", {
188
+ children: [/* @__PURE__ */ x("div", {
189
189
  className: "min-w-0 flex-1 space-y-1",
190
- children: [/* @__PURE__ */ c("p", {
190
+ children: [/* @__PURE__ */ b("p", {
191
191
  className: "truncate text-sm font-semibold leading-tight",
192
192
  children: t.name
193
- }), /* @__PURE__ */ l("div", {
193
+ }), /* @__PURE__ */ x("div", {
194
194
  className: "flex items-center gap-2 text-xs text-text-secondary",
195
- children: [/* @__PURE__ */ c("span", {
195
+ children: [/* @__PURE__ */ b("span", {
196
196
  className: "truncate font-mono",
197
197
  children: t.key
198
- }), /* @__PURE__ */ c(u, {
198
+ }), /* @__PURE__ */ b(c, {
199
199
  variant: "outline",
200
200
  children: t.status
201
201
  })]
202
202
  })]
203
- }), /* @__PURE__ */ c(f, {
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__ */ c(D, {})
215
+ /* @__PURE__ */ b(D, {})
216
216
  ] })
217
217
  })
218
218
  ]
219
219
  })
220
- }), /* @__PURE__ */ l("div", {
220
+ }), /* @__PURE__ */ x("div", {
221
221
  className: "flex justify-end gap-3 border-t pt-4",
222
- children: [/* @__PURE__ */ c(d, {
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__ */ c(d, {
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 { useWorkspacesContext as i } from "../providers/WorkspacesProvider.js";
5
- import { useTr as a } from "../hooks/useTr.js";
6
- import { useMemo as o, useState as s } from "react";
7
- import { MoreHorizontal as c, UserMinus as l } from "lucide-react";
8
- import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
9
- import { AlertDialog as p, AlertDialogAction as m, AlertDialogCancel as h, AlertDialogContent as g, AlertDialogDescription as _, AlertDialogFooter as v, AlertDialogHeader as y, AlertDialogTitle as b, Badge as x, Button as S, CardContent as C, DropdownMenu as w, DropdownMenuContent as T, DropdownMenuTrigger as E, GlassCard as D } from "@burdenoff/fe-libs/ui";
10
- import { ActorIdentity as O, useActorProfiles as k } from "@burdenoff/fe-libs/shared";
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 A({ member: A, selected: j = !1, onToggleSelect: M, canRemove: N = !1 }) {
13
- let P = a(), [F, I] = s(!1), { mutate: L, isPending: R } = e(A.workspaceId), { apiGatewayUrl: z, authToken: B, organizationId: V } = i(), H = o(() => [{
14
- actorId: A.userId,
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
- }], [A.userId]), U = k(H, {
17
- apiGatewayUrl: z,
18
- authToken: B,
19
- orgId: V,
20
- workspaceId: A.workspaceId
21
- })[A.userId];
22
- return /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d(D, {
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 ${j ? "ring-2 ring-action-primary-bg/25 border-action-primary-bg/50" : ""}`,
25
- children: /* @__PURE__ */ d(C, {
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__ */ f("div", {
27
+ children: /* @__PURE__ */ O("div", {
28
28
  className: "flex items-center justify-between gap-4",
29
- children: [/* @__PURE__ */ f("div", {
29
+ children: [/* @__PURE__ */ O("div", {
30
30
  className: "flex items-center gap-3 flex-1 min-w-0",
31
- children: [M && /* @__PURE__ */ d("input", {
31
+ children: [N && /* @__PURE__ */ D("input", {
32
32
  type: "checkbox",
33
- checked: j,
34
- onChange: (e) => M(e.target.checked),
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": P("memberListItem.selectMemberAriaLabel", "Select member {{name}}", { name: U?.displayName ?? "" })
37
- }), /* @__PURE__ */ f("div", {
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: [U ? /* @__PURE__ */ d(O, {
40
- profile: U,
39
+ children: [G ? /* @__PURE__ */ D(k, {
40
+ profile: G,
41
41
  variant: "cell"
42
- }) : null, /* @__PURE__ */ f("div", {
42
+ }) : null, /* @__PURE__ */ O("div", {
43
43
  className: "mt-1 flex items-center gap-2",
44
- children: [/* @__PURE__ */ d(x, {
44
+ children: [/* @__PURE__ */ D(y, {
45
45
  variant: "secondary",
46
46
  className: "text-xs",
47
- children: P("memberListItem.workspaceMember", "Workspace member")
48
- }), /* @__PURE__ */ d("span", {
47
+ children: F("memberListItem.workspaceMember", "Workspace member")
48
+ }), /* @__PURE__ */ D("span", {
49
49
  className: "text-xs text-text-secondary",
50
- children: P("memberListItem.joined", "Joined {{time}}", { time: r(A.createdAt) })
50
+ children: F("memberListItem.joined", "Joined {{time}}", { time: r(j.createdAt) })
51
51
  })]
52
52
  })]
53
53
  })]
54
- }), N && /* @__PURE__ */ f(w, { children: [/* @__PURE__ */ d(E, {
54
+ }), P && /* @__PURE__ */ O(S, { children: [/* @__PURE__ */ D(w, {
55
55
  asChild: !0,
56
- children: /* @__PURE__ */ f(S, {
56
+ children: /* @__PURE__ */ O(b, {
57
57
  variant: "ghost",
58
58
  size: "icon",
59
59
  className: "size-8 flex-shrink-0",
60
- children: [/* @__PURE__ */ d(c, { className: "size-4" }), /* @__PURE__ */ d("span", {
60
+ children: [/* @__PURE__ */ D(l, { className: "size-4" }), /* @__PURE__ */ D("span", {
61
61
  className: "sr-only",
62
- children: P("memberListItem.openActions", "Open member actions")
62
+ children: F("memberListItem.openActions", "Open member actions")
63
63
  })]
64
64
  })
65
- }), /* @__PURE__ */ d(T, {
65
+ }), /* @__PURE__ */ D(C, {
66
66
  align: "end",
67
- children: /* @__PURE__ */ f("button", {
67
+ children: /* @__PURE__ */ O("button", {
68
68
  type: "button",
69
- onClick: () => I(!0),
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__ */ d(l, { className: "mr-2 size-4" }), P("memberListItem.removeMember", "Remove Member")]
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(p, {
77
- open: F,
78
- onOpenChange: I,
79
- children: /* @__PURE__ */ f(g, { children: [/* @__PURE__ */ f(y, { children: [/* @__PURE__ */ d(b, { children: P("memberListItem.removeTitle", "Remove Member") }), /* @__PURE__ */ d(_, { children: P("memberListItem.removeDescription", "Are you sure you want to remove {{name}} from the workspace? This action cannot be undone.", { name: U?.displayName ?? P("memberListItem.thisMemberFallback", "this member") }) })] }), /* @__PURE__ */ f(v, { children: [/* @__PURE__ */ d(h, {
80
- disabled: R,
81
- children: P("common.cancel", "Cancel")
82
- }), /* @__PURE__ */ d(m, {
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"), L(A.id, {
84
+ t("medium"), z(j.id, {
85
85
  onSuccess: () => {
86
- n("success"), I(!1);
86
+ n("success"), R(!1);
87
87
  },
88
88
  onError: () => {
89
89
  n("error");
90
90
  }
91
91
  });
92
92
  },
93
- disabled: R,
93
+ disabled: B,
94
94
  className: "bg-status-danger-bg text-status-danger-text hover:bg-status-danger-bg/90",
95
- children: R ? P("memberListItem.removing", "Removing...") : P("memberListItem.removeButton", "Remove Member")
95
+ children: B ? F("memberListItem.removing", "Removing...") : F("memberListItem.removeButton", "Remove Member")
96
96
  })] })] })
97
97
  })] });
98
98
  }
99
- export { A as MemberListItem };
99
+ export { j as MemberListItem };