@ws-ui/roles-editor 1.13.10 → 1.14.0

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
@@ -27883,9 +27883,9 @@ const tne = ({
27883
27883
  return /* @__PURE__ */ de(
27884
27884
  "div",
27885
27885
  {
27886
- className: "flex flex-1 h-full",
27886
+ className: "flex h-full min-h-0 min-w-0 flex-1",
27887
27887
  children: [
27888
- /* @__PURE__ */ de("div", { className: "flex h-full w-[356px] flex-col bg-grey-800", children: [
27888
+ /* @__PURE__ */ de("div", { className: "flex h-full w-[356px] shrink-0 flex-col bg-grey-800", children: [
27889
27889
  /* @__PURE__ */ de("div", { className: "flex flex-shrink-0 items-center justify-between bg-grey-800 px-3.5 py-[10px]", children: [
27890
27890
  /* @__PURE__ */ de("div", { className: "flex items-center space-x-1 text-[#DDE1E6]", children: [
27891
27891
  /* @__PURE__ */ I("span", { children: /* @__PURE__ */ I(Ul, { className: "h-[14px] w-[14px]" }) }),
@@ -27909,9 +27909,9 @@ const tne = ({
27909
27909
  }
27910
27910
  )
27911
27911
  ] }),
27912
- a && o[a.id] ? /* @__PURE__ */ de("div", { className: "privileges-container relative flex flex-1 flex-col overflow-x-auto border-l-[0.5px] border-grey-900 bg-grey-800", children: [
27913
- /* @__PURE__ */ de("div", { className: "mb-1 flex h-full w-full flex-col items-stretch", children: [
27914
- (l ?? a).privilege !== "guest" ? /* @__PURE__ */ I(
27912
+ a && o[a.id] ? /* @__PURE__ */ de("div", { className: "privileges-container relative flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden border-l-[0.5px] border-grey-900 bg-grey-800", children: [
27913
+ /* @__PURE__ */ de("div", { className: "mb-1 flex min-h-0 min-w-0 flex-1 w-full flex-col items-stretch overflow-auto", children: [
27914
+ a.privilege !== "guest" ? /* @__PURE__ */ I(
27915
27915
  rJ,
27916
27916
  {
27917
27917
  privileges: o,
@@ -27932,14 +27932,14 @@ const tne = ({
27932
27932
  }
27933
27933
  )
27934
27934
  ] }),
27935
- /* @__PURE__ */ I(
27935
+ /* @__PURE__ */ I("div", { className: "mt-auto flex-shrink-0", children: /* @__PURE__ */ I(
27936
27936
  ine,
27937
27937
  {
27938
27938
  privileges: o,
27939
- selectedPrivilege: l ?? a,
27939
+ selectedPrivilege: a,
27940
27940
  setSelectedPrivilege: u
27941
27941
  }
27942
- )
27942
+ ) })
27943
27943
  ] }) : /* @__PURE__ */ I(nq, { tab: "Privilege" })
27944
27944
  ]
27945
27945
  }
@@ -27957,7 +27957,7 @@ const tne = ({
27957
27957
  isOpen: n,
27958
27958
  onOpen: () => i(!0),
27959
27959
  onClose: () => i(!1),
27960
- children: /* @__PURE__ */ I("div", { className: "h-full w-full px-3 pb-3", children: /* @__PURE__ */ I("div", { className: "h-full w-full rounded bg-grey-900", children: /* @__PURE__ */ I(
27960
+ children: /* @__PURE__ */ I("div", { className: "flex h-full w-full min-h-0 px-3 pb-3", children: /* @__PURE__ */ I("div", { className: "h-full w-full overflow-hidden rounded bg-grey-900", children: /* @__PURE__ */ I(
27961
27961
  pZ,
27962
27962
  {
27963
27963
  dict: e,
@@ -28745,7 +28745,8 @@ const fne = ({ selectedRole: e }) => {
28745
28745
  return ((G = X.current) == null ? void 0 : G.getScrollElement()) ?? null;
28746
28746
  },
28747
28747
  estimateSize: () => 36,
28748
- overscan: 5
28748
+ overscan: 5,
28749
+ paddingEnd: 40
28749
28750
  }), H = je(() => {
28750
28751
  const G = Object.values(d).find(
28751
28752
  (_e) => _e.privilege === "guest"
@@ -28800,7 +28801,8 @@ const fne = ({ selectedRole: e }) => {
28800
28801
  return ((G = X.current) == null ? void 0 : G.getScrollElement()) ?? null;
28801
28802
  },
28802
28803
  estimateSize: () => 36,
28803
- overscan: 8
28804
+ overscan: 8,
28805
+ paddingEnd: 15
28804
28806
  }), re = Oe(() => {
28805
28807
  N2.next({
28806
28808
  kind: "info",
@@ -29183,10 +29185,10 @@ const fne = ({ selectedRole: e }) => {
29183
29185
  return /* @__PURE__ */ I("div", { className: "absolute inset-0 flex flex-1 overflow-hidden", children: /* @__PURE__ */ I(
29184
29186
  "div",
29185
29187
  {
29186
- className: "relative flex flex-1 overflow-x-auto bg-grey-900",
29188
+ className: "relative flex flex-1 overflow-hidden bg-grey-900",
29187
29189
  "data-cy": "Roles&Privileges-editor-cy",
29188
29190
  ref: (a) => o.current = a,
29189
- children: /* @__PURE__ */ de("div", { className: "flex w-full flex-col", children: [
29191
+ children: /* @__PURE__ */ de("div", { className: "flex min-h-0 w-full flex-1 flex-col", children: [
29190
29192
  /* @__PURE__ */ I(
29191
29193
  ZU,
29192
29194
  {