@gouvfr-lasuite/ui-kit 0.19.4 → 0.19.5

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.js CHANGED
@@ -21099,7 +21099,7 @@ const La = ({
21099
21099
  onDelete: a,
21100
21100
  canDelete: s = !0
21101
21101
  }) => {
21102
- const { t: c } = xe(), u = t.find((h) => h.value === n), d = q(() => [
21102
+ const { t: c } = xe(), u = t.find((h) => h.value === n), d = q(() => !a && !s ? t : [
21103
21103
  ...t,
21104
21104
  { type: "separator" },
21105
21105
  {
@@ -21166,7 +21166,9 @@ const La = ({
21166
21166
  selectedRole: l,
21167
21167
  onSelect: a,
21168
21168
  isOpen: c,
21169
- onOpenChange: u
21169
+ onOpenChange: u,
21170
+ canDelete: !1,
21171
+ onDelete: void 0
21170
21172
  }
21171
21173
  ),
21172
21174
  /* @__PURE__ */ v.jsx($e, { onClick: n, children: i ?? s("components.share.shareButton") })
@@ -21292,7 +21294,7 @@ const La = ({
21292
21294
  canUpdate: o,
21293
21295
  roleTopMessage: l,
21294
21296
  canDelete: s,
21295
- onDelete: s && i ? () => i(t) : void 0
21297
+ onDelete: i ? () => i(t) : void 0
21296
21298
  }
21297
21299
  ) })
21298
21300
  }