@davincihealthcare/elty-design-system-vue 1.16.3 → 1.17.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.
@@ -1,4 +1,4 @@
1
- export declare const elToastStates: readonly ["error", "danger", "success"];
1
+ export declare const elToastStates: readonly ["error", "warning", "success"];
2
2
  export type ElToastStates = (typeof elToastStates)[number];
3
3
  export interface ToastOptions {
4
4
  title: string;
package/dist/index.js CHANGED
@@ -16486,7 +16486,7 @@ const ih = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16486
16486
  class: Q(["flex min-h-[40px] flex-nowrap items-center gap-2 rounded-md bg-white p-2 text-sm", {
16487
16487
  "bg-primary-light-pressed text-primary-pressed": e.check,
16488
16488
  "text-neutral-darker hover:bg-primary-light-hover hover:text-primary-hover focus:bg-primary-light-pressed focus:text-primary-pressed ": !e.disabled,
16489
- "text-neutral-400 hover:bg-primary-light-hover ": e.disabled
16489
+ "text-neutral-400 hover:bg-primary-light-hover cursor-not-allowed": e.disabled
16490
16490
  }])
16491
16491
  }, [
16492
16492
  e.avatar ? (a(), t0(p3, {
@@ -16499,8 +16499,8 @@ const ih = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16499
16499
  name: e.leadingIcon.name,
16500
16500
  solid: e.leadingIcon.solid,
16501
16501
  class: "h-5 w-5 shrink-0",
16502
- disabled: ""
16503
- }, null, 8, ["name", "solid"])) : K("", !0),
16502
+ disabled: e.disabled
16503
+ }, null, 8, ["name", "solid", "disabled"])) : K("", !0),
16504
16504
  I("span", Mh, [
16505
16505
  SO(i0(e.text) + " ", 1),
16506
16506
  e.semiboldText ? (a(), o("span", hh, i0(e.semiboldText), 1)) : K("", !0)
@@ -16513,8 +16513,8 @@ const ih = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16513
16513
  "focus:text-primary-pressed hover:text-primary-hover": !e.disabled,
16514
16514
  "text-neutral-300": e.disabled
16515
16515
  }]),
16516
- disabled: ""
16517
- }, null, 8, ["class"])) : K("", !0)
16516
+ disabled: e.disabled
16517
+ }, null, 8, ["class", "disabled"])) : K("", !0)
16518
16518
  ], 2));
16519
16519
  }
16520
16520
  }), Gh = { class: "h-10 relative text-neutral-darker group" }, Bh = { class: "absolute top-5 left-0 overflow-hidden w-full" }, Vh = { class: "transform duration-100 w-full flex flex-col gap-2 p-2 bg-white pt-7" }, fh = { class: "text-ellipsis whitespace-nowrap overflow-hidden text-sm font-semibold" }, BB = /* @__PURE__ */ o0({
@@ -17506,9 +17506,10 @@ const aG = { class: "relative" }, oG = { class: "border-neutral-surface text-neu
17506
17506
  }],
17507
17507
  ref_for: !0
17508
17508
  }, V, {
17509
+ disabled: V.disabled,
17509
17510
  "data-cy": `${(D = V.text) == null ? void 0 : D.trim().replaceAll(" ", "").replaceAll(",", "")}-dropdown-item`,
17510
17511
  onClick: (Z) => !V.disabled && V.onClick
17511
- }), null, 16, ["class", "data-cy", "onClick"]);
17512
+ }), null, 16, ["class", "disabled", "data-cy", "onClick"]);
17512
17513
  }), 128)) : (a(), t0(_t, {
17513
17514
  key: 1,
17514
17515
  class: "cursor-pointer self-stretch",
@@ -21398,7 +21399,7 @@ function print() { __p += __j.call(arguments, '') }
21398
21399
  }).call(z5);
21399
21400
  })(q2, q2.exports);
21400
21401
  var BG = q2.exports;
21401
- const VG = { class: "pointer-events-none fixed inset-0 z-50 flex items-end px-4 py-6 sm:items-start sm:p-6" }, fG = ["show", "data-cy", "onMouseover", "onMouseleave"], DG = { class: "font-semibold" }, vG = { key: 0 }, yB = ["error", "danger", "success"], V5 = m0([]), H3 = (t) => {
21402
+ const VG = { class: "pointer-events-none fixed inset-0 z-50 flex items-end px-4 py-6 sm:items-start sm:p-6" }, fG = ["show", "data-cy", "onMouseover", "onMouseleave"], DG = { class: "font-semibold" }, vG = { key: 0 }, yB = ["error", "warning", "success"], V5 = m0([]), H3 = (t) => {
21402
21403
  t.showing = !1, t.timeoutId && clearTimeout(t.timeoutId);
21403
21404
  const e = V5.value.findIndex((n) => n.id === t.id);
21404
21405
  e > -1 && V5.value.splice(e, 1);
@@ -21445,7 +21446,7 @@ const VG = { class: "pointer-events-none fixed inset-0 z-50 flex items-end px-4
21445
21446
  class: Q([{
21446
21447
  "bg-green-50 border-green-300": E.options.state === "success",
21447
21448
  "bg-red-50 border-red-300": E.options.state === "error",
21448
- "bg-yellow-50 border-yellow-300": E.options.state === "danger"
21449
+ "bg-yellow-50 border-yellow-300": E.options.state === "warning"
21449
21450
  }, "pointer-events-auto flex items-center w-full max-w-sm transform overflow-hidden rounded-lg p-4 shadow transition duration-500 border gap-3"]),
21450
21451
  onMouseover: (i) => yt(E, !1),
21451
21452
  onMouseleave: (i) => yt(E, !0)
@@ -21457,7 +21458,7 @@ const VG = { class: "pointer-events-none fixed inset-0 z-50 flex items-end px-4
21457
21458
  name: "CheckBadgeIcon",
21458
21459
  solid: ""
21459
21460
  })) : K("", !0),
21460
- E.options.state === "danger" ? (a(), t0(k0, {
21461
+ E.options.state === "warning" ? (a(), t0(k0, {
21461
21462
  key: 1,
21462
21463
  disabled: "",
21463
21464
  class: "h-7 w-7 text-yellow-500 shrink-0",
@@ -21474,7 +21475,7 @@ const VG = { class: "pointer-events-none fixed inset-0 z-50 flex items-end px-4
21474
21475
  I("div", {
21475
21476
  class: Q(["flex flex-col grow justify-center text-sm gap-1", {
21476
21477
  "text-green-700": E.options.state === "success",
21477
- "text-yellow-700": E.options.state === "danger",
21478
+ "text-yellow-700": E.options.state === "warning",
21478
21479
  "text-red-700": E.options.state === "error"
21479
21480
  }])
21480
21481
  }, [
@@ -21485,7 +21486,7 @@ const VG = { class: "pointer-events-none fixed inset-0 z-50 flex items-end px-4
21485
21486
  name: "XMarkIcon",
21486
21487
  class: Q(["h-6 w-6 shrink-0", {
21487
21488
  "text-green-700": E.options.state === "success",
21488
- "text-yellow-700": E.options.state === "danger",
21489
+ "text-yellow-700": E.options.state === "warning",
21489
21490
  "text-red-700": E.options.state === "error"
21490
21491
  }]),
21491
21492
  onClick: (i) => H3(E)