@firecms/user_management 3.0.0-canary.108 → 3.0.0-canary.109

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/index.umd.js CHANGED
@@ -933,18 +933,25 @@
933
933
  onRoleClicked(role);
934
934
  },
935
935
  children: [
936
- /* @__PURE__ */ jsxRuntime.jsx(ui.TableCell, { style: { width: "64px" }, children: !role.isAdmin && /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: "Delete this role", children: /* @__PURE__ */ jsxRuntime.jsx(
937
- ui.IconButton,
936
+ /* @__PURE__ */ jsxRuntime.jsx(ui.TableCell, { style: { width: "64px" }, children: !role.isAdmin && /* @__PURE__ */ jsxRuntime.jsx(
937
+ ui.Tooltip,
938
938
  {
939
- size: "small",
940
- disabled: !editable,
941
- onClick: (event) => {
942
- event.stopPropagation();
943
- return setRoleToBeDeleted(role);
944
- },
945
- children: /* @__PURE__ */ jsxRuntime.jsx(ui.DeleteIcon, {})
939
+ asChild: true,
940
+ title: "Delete this role",
941
+ children: /* @__PURE__ */ jsxRuntime.jsx(
942
+ ui.IconButton,
943
+ {
944
+ size: "small",
945
+ disabled: !editable,
946
+ onClick: (event) => {
947
+ event.stopPropagation();
948
+ return setRoleToBeDeleted(role);
949
+ },
950
+ children: /* @__PURE__ */ jsxRuntime.jsx(ui.DeleteIcon, {})
951
+ }
952
+ )
946
953
  }
947
- ) }) }),
954
+ ) }),
948
955
  /* @__PURE__ */ jsxRuntime.jsx(ui.TableCell, { children: /* @__PURE__ */ jsxRuntime.jsx(RoleChip, { role }) }),
949
956
  /* @__PURE__ */ jsxRuntime.jsx(ui.TableCell, { className: "items-center", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Checkbox, { checked: role.isAdmin ?? false }) }),
950
957
  /* @__PURE__ */ jsxRuntime.jsx(ui.TableCell, { children: /* @__PURE__ */ jsxRuntime.jsxs("ul", { children: [
@@ -1028,16 +1035,23 @@
1028
1035
  children: "Roles"
1029
1036
  }
1030
1037
  ),
1031
- /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: !canEditRoles ? "Update plans to customise roles" : void 0, children: /* @__PURE__ */ jsxRuntime.jsx(
1032
- ui.Button,
1038
+ /* @__PURE__ */ jsxRuntime.jsx(
1039
+ ui.Tooltip,
1033
1040
  {
1034
- size: "large",
1035
- disabled: !canEditRoles,
1036
- startIcon: /* @__PURE__ */ jsxRuntime.jsx(ui.AddIcon, {}),
1037
- onClick: () => setDialogOpen(true),
1038
- children: "Add role"
1041
+ asChild: true,
1042
+ title: !canEditRoles ? "Update plans to customise roles" : void 0,
1043
+ children: /* @__PURE__ */ jsxRuntime.jsx(
1044
+ ui.Button,
1045
+ {
1046
+ size: "large",
1047
+ disabled: !canEditRoles,
1048
+ startIcon: /* @__PURE__ */ jsxRuntime.jsx(ui.AddIcon, {}),
1049
+ onClick: () => setDialogOpen(true),
1050
+ children: "Add role"
1051
+ }
1052
+ )
1039
1053
  }
1040
- ) })
1054
+ )
1041
1055
  ] }),
1042
1056
  /* @__PURE__ */ jsxRuntime.jsx(RolesTable, { onRoleClicked, editable: Boolean(canEditRoles) }),
1043
1057
  /* @__PURE__ */ jsxRuntime.jsx(
@@ -1291,17 +1305,24 @@
1291
1305
  onUserClicked(user);
1292
1306
  },
1293
1307
  children: [
1294
- /* @__PURE__ */ jsxRuntime.jsx(ui.TableCell, { className: "w-10", children: /* @__PURE__ */ jsxRuntime.jsx(ui.Tooltip, { title: "Delete this user", children: /* @__PURE__ */ jsxRuntime.jsx(
1295
- ui.IconButton,
1308
+ /* @__PURE__ */ jsxRuntime.jsx(ui.TableCell, { className: "w-10", children: /* @__PURE__ */ jsxRuntime.jsx(
1309
+ ui.Tooltip,
1296
1310
  {
1297
- size: "small",
1298
- onClick: (event) => {
1299
- event.stopPropagation();
1300
- return setUserToBeDeleted(user);
1301
- },
1302
- children: /* @__PURE__ */ jsxRuntime.jsx(ui.DeleteIcon, {})
1311
+ asChild: true,
1312
+ title: "Delete this user",
1313
+ children: /* @__PURE__ */ jsxRuntime.jsx(
1314
+ ui.IconButton,
1315
+ {
1316
+ size: "small",
1317
+ onClick: (event) => {
1318
+ event.stopPropagation();
1319
+ return setUserToBeDeleted(user);
1320
+ },
1321
+ children: /* @__PURE__ */ jsxRuntime.jsx(ui.DeleteIcon, {})
1322
+ }
1323
+ )
1303
1324
  }
1304
- ) }) }),
1325
+ ) }),
1305
1326
  /* @__PURE__ */ jsxRuntime.jsx(ui.TableCell, { children: user.uid }),
1306
1327
  /* @__PURE__ */ jsxRuntime.jsx(ui.TableCell, { children: user.email }),
1307
1328
  /* @__PURE__ */ jsxRuntime.jsx(ui.TableCell, { className: "font-medium align-left", children: user.displayName }),