@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.es.js CHANGED
@@ -920,18 +920,25 @@ function RolesTable({
920
920
  onRoleClicked(role);
921
921
  },
922
922
  children: [
923
- /* @__PURE__ */ jsx(TableCell, { style: { width: "64px" }, children: !role.isAdmin && /* @__PURE__ */ jsx(Tooltip, { title: "Delete this role", children: /* @__PURE__ */ jsx(
924
- IconButton,
923
+ /* @__PURE__ */ jsx(TableCell, { style: { width: "64px" }, children: !role.isAdmin && /* @__PURE__ */ jsx(
924
+ Tooltip,
925
925
  {
926
- size: "small",
927
- disabled: !editable,
928
- onClick: (event) => {
929
- event.stopPropagation();
930
- return setRoleToBeDeleted(role);
931
- },
932
- children: /* @__PURE__ */ jsx(DeleteIcon, {})
926
+ asChild: true,
927
+ title: "Delete this role",
928
+ children: /* @__PURE__ */ jsx(
929
+ IconButton,
930
+ {
931
+ size: "small",
932
+ disabled: !editable,
933
+ onClick: (event) => {
934
+ event.stopPropagation();
935
+ return setRoleToBeDeleted(role);
936
+ },
937
+ children: /* @__PURE__ */ jsx(DeleteIcon, {})
938
+ }
939
+ )
933
940
  }
934
- ) }) }),
941
+ ) }),
935
942
  /* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsx(RoleChip, { role }) }),
936
943
  /* @__PURE__ */ jsx(TableCell, { className: "items-center", children: /* @__PURE__ */ jsx(Checkbox, { checked: role.isAdmin ?? false }) }),
937
944
  /* @__PURE__ */ jsx(TableCell, { children: /* @__PURE__ */ jsxs("ul", { children: [
@@ -1015,16 +1022,23 @@ const RolesView = React.memo(
1015
1022
  children: "Roles"
1016
1023
  }
1017
1024
  ),
1018
- /* @__PURE__ */ jsx(Tooltip, { title: !canEditRoles ? "Update plans to customise roles" : void 0, children: /* @__PURE__ */ jsx(
1019
- Button,
1025
+ /* @__PURE__ */ jsx(
1026
+ Tooltip,
1020
1027
  {
1021
- size: "large",
1022
- disabled: !canEditRoles,
1023
- startIcon: /* @__PURE__ */ jsx(AddIcon, {}),
1024
- onClick: () => setDialogOpen(true),
1025
- children: "Add role"
1028
+ asChild: true,
1029
+ title: !canEditRoles ? "Update plans to customise roles" : void 0,
1030
+ children: /* @__PURE__ */ jsx(
1031
+ Button,
1032
+ {
1033
+ size: "large",
1034
+ disabled: !canEditRoles,
1035
+ startIcon: /* @__PURE__ */ jsx(AddIcon, {}),
1036
+ onClick: () => setDialogOpen(true),
1037
+ children: "Add role"
1038
+ }
1039
+ )
1026
1040
  }
1027
- ) })
1041
+ )
1028
1042
  ] }),
1029
1043
  /* @__PURE__ */ jsx(RolesTable, { onRoleClicked, editable: Boolean(canEditRoles) }),
1030
1044
  /* @__PURE__ */ jsx(
@@ -1278,17 +1292,24 @@ function UsersTable({ onUserClicked }) {
1278
1292
  onUserClicked(user);
1279
1293
  },
1280
1294
  children: [
1281
- /* @__PURE__ */ jsx(TableCell, { className: "w-10", children: /* @__PURE__ */ jsx(Tooltip, { title: "Delete this user", children: /* @__PURE__ */ jsx(
1282
- IconButton,
1295
+ /* @__PURE__ */ jsx(TableCell, { className: "w-10", children: /* @__PURE__ */ jsx(
1296
+ Tooltip,
1283
1297
  {
1284
- size: "small",
1285
- onClick: (event) => {
1286
- event.stopPropagation();
1287
- return setUserToBeDeleted(user);
1288
- },
1289
- children: /* @__PURE__ */ jsx(DeleteIcon, {})
1298
+ asChild: true,
1299
+ title: "Delete this user",
1300
+ children: /* @__PURE__ */ jsx(
1301
+ IconButton,
1302
+ {
1303
+ size: "small",
1304
+ onClick: (event) => {
1305
+ event.stopPropagation();
1306
+ return setUserToBeDeleted(user);
1307
+ },
1308
+ children: /* @__PURE__ */ jsx(DeleteIcon, {})
1309
+ }
1310
+ )
1290
1311
  }
1291
- ) }) }),
1312
+ ) }),
1292
1313
  /* @__PURE__ */ jsx(TableCell, { children: user.uid }),
1293
1314
  /* @__PURE__ */ jsx(TableCell, { children: user.email }),
1294
1315
  /* @__PURE__ */ jsx(TableCell, { className: "font-medium align-left", children: user.displayName }),