@quoreadmin/ui 1.3.16 → 1.3.17

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
@@ -64617,8 +64617,23 @@ const d5e = /* @__PURE__ */ ze(j2e, [["render", z2e], ["__scopeId", "data-v-ca1e
64617
64617
  default: ""
64618
64618
  }
64619
64619
  },
64620
- setup() {
64621
- return {};
64620
+ setup(t) {
64621
+ return {
64622
+ statusColor: Y(() => {
64623
+ switch (t.status) {
64624
+ case "error":
64625
+ return "red-30";
64626
+ case "info":
64627
+ return "blue-40";
64628
+ case "success":
64629
+ return "green-20";
64630
+ case "warning":
64631
+ return "yellow-30";
64632
+ default:
64633
+ return "inkwell-0";
64634
+ }
64635
+ })
64636
+ };
64622
64637
  }
64623
64638
  }), Z2e = { class: "form-group" }, q2e = ["for"], W2e = { class: "label-text" }, G2e = {
64624
64639
  key: 0,
@@ -64637,22 +64652,25 @@ function K2e(t, e, n, r, i, s) {
64637
64652
  D("div", {
64638
64653
  class: B([
64639
64654
  "message",
64655
+ { "text-blue-40": t.status === "info" },
64640
64656
  { "text-red-30": t.status === "error" },
64641
- { "text-green-20": t.status === "success" }
64657
+ { "text-green-20": t.status === "success" },
64658
+ { "text-yellow-30": t.status === "warning" }
64642
64659
  ])
64643
64660
  }, [
64644
- t.status === "error" ? (w(), q(o, {
64661
+ t.status === "error" || t.status === "info" ? (w(), q(o, {
64645
64662
  key: 0,
64646
64663
  class: "message-icon",
64647
- color: "red-30",
64664
+ color: t.statusColor,
64648
64665
  icon: "exclamation-circle",
64649
- type: "fill"
64650
- })) : L("", !0),
64666
+ type: "fill",
64667
+ size: "sm"
64668
+ }, null, 8, ["color"])) : L("", !0),
64651
64669
  z(t.$slots, "message", {}, void 0, !0)
64652
64670
  ], 2)
64653
64671
  ]);
64654
64672
  }
64655
- const f5e = /* @__PURE__ */ ze(U2e, [["render", K2e], ["__scopeId", "data-v-f2d32e20"]]), Y2e = Oe({
64673
+ const f5e = /* @__PURE__ */ ze(U2e, [["render", K2e], ["__scopeId", "data-v-5aa9ed4c"]]), Y2e = Oe({
64656
64674
  name: "QGrid",
64657
64675
  components: {
64658
64676
  QBadge: il