@appcorp/fusion-storybook 0.2.2 → 0.2.3

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.
@@ -432,13 +432,13 @@ export const useRbacModule = () => {
432
432
  order: 0,
433
433
  },
434
434
  {
435
- enabled: true,
435
+ enabled: false,
436
436
  handleOnClick: handleFilters,
437
437
  label: t("actionsButtonFilters"),
438
438
  order: 1,
439
439
  },
440
440
  {
441
- enabled: true,
441
+ enabled: false,
442
442
  handleOnClick: handleCreate,
443
443
  label: t("actionsButtonAddItem"),
444
444
  order: 2,
@@ -478,7 +478,10 @@ export const useRbacModule = () => {
478
478
  });
479
479
  dispatch({
480
480
  type: RBAC_ACTION_TYPES.SET_ITEMS,
481
- payload: { items: items || [], count: count || 0 },
481
+ payload: {
482
+ items: items.filter((item) => item.name !== "SUPER_ADMIN") || [],
483
+ count: count || 0,
484
+ },
482
485
  });
483
486
  }
484
487
  catch (_a) {
@@ -79,8 +79,8 @@ const createRbacConfig = ({ dispatch, drawerButtonCancel, drawerButtonSave, draw
79
79
  { label: tableColumnHeaderId, width: "5%" },
80
80
  { label: tableColumnHeaderName, width: "25%" },
81
81
  { label: tableColumnHeaderDescription, width: "35%" },
82
- { label: tableColumnHeaderPermissions, width: "25%" },
83
- { label: tableColumnHeaderActions, width: "10%" },
82
+ { label: tableColumnHeaderPermissions, width: "30%" },
83
+ { label: tableColumnHeaderActions, width: "5%" },
84
84
  ],
85
85
  tableDescription,
86
86
  tableTitle,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/fusion-storybook",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "scripts": {
5
5
  "build-storybook": "storybook build",
6
6
  "build:next": "next build",