@davincihealthcare/elty-design-system-vue 1.68.0 → 1.68.1

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
@@ -21875,7 +21875,9 @@ const VB = () => {
21875
21875
  },
21876
21876
  setup(t) {
21877
21877
  return (e, r) => (I(), c("button", {
21878
- class: te(["flex min-h-[40px] flex-nowrap justify-start items-center gap-2 rounded-md p-2 text-sm bg-white text-neutral-darker hover:bg-neutral-hover hover:text-neutral-darker active:bg-neutral-pressed active:text-neutral-darker", {
21878
+ class: te(["flex min-h-[40px] flex-nowrap justify-start items-center gap-2 rounded-md p-2 text-sm bg-white text-neutral-darker", {
21879
+ "active:bg-neutral-pressed hover:bg-neutral-hover": !e.disabled,
21880
+ "active:text-neutral-darker hover:text-neutral-darker": !e.disabled && !e.check,
21879
21881
  "bg-primary-light-active text-primary-active": !e.disabled && e.check && e.color === "primary",
21880
21882
  "bg-secondary-light-active text-secondary-active": !e.disabled && e.check && e.color === "secondary",
21881
21883
  "bg-neutral-hover text-neutral-darker": !e.disabled && e.focused,
@@ -21982,7 +21984,9 @@ const VB = () => {
21982
21984
  show: f,
21983
21985
  hide: C,
21984
21986
  toggle: L
21985
- }), Wp(a.multiple ? u : l, C), (h, v) => (I(), c("div", PB, [
21987
+ }), Wp(a.multiple ? u : l, (h) => {
21988
+ h.target.closest('[data-disabled="true"]') || C();
21989
+ }), (h, v) => (I(), c("div", PB, [
21986
21990
  O("div", {
21987
21991
  ref_key: "listAnchor",
21988
21992
  ref: l
@@ -22041,13 +22045,14 @@ const VB = () => {
22041
22045
  tabindex: "-1"
22042
22046
  }, U(f5.omit)(M, "onClick"), {
22043
22047
  disabled: M.disabled,
22048
+ "data-disabled": M.disabled ? "true" : void 0,
22044
22049
  "data-cy": `${(F = M.text) == null ? void 0 : F.trim().replaceAll(" ", "").replaceAll(",", "")}-dropdown-item`,
22045
22050
  focused: E.value === Z,
22046
22051
  onClick: Ye((V) => {
22047
22052
  var x;
22048
22053
  return !M.disabled && ((x = M.onClick) == null ? void 0 : x.call(M));
22049
22054
  }, ["prevent"])
22050
- }), null, 16, ["id", "class", "disabled", "data-cy", "focused", "onClick"]);
22055
+ }), null, 16, ["id", "class", "disabled", "data-disabled", "data-cy", "focused", "onClick"]);
22051
22056
  }), 128)) : (I(), le(fl, {
22052
22057
  key: 1,
22053
22058
  class: "cursor-pointer self-stretch",