@ssgc/alert-console 2.2.4 → 2.2.6

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
@@ -1,6 +1,6 @@
1
1
  import { jsx as i, jsxs as u, Fragment as xs } from "react/jsx-runtime";
2
2
  import * as ce from "react";
3
- import { useMemo as ue, createContext as Is, useContext as Cs, useState as C, useEffect as he, useRef as Ts } from "react";
3
+ import { useContext as Is, useMemo as ue, createContext as Cs, useState as C, useEffect as he, useRef as Ts } from "react";
4
4
  import { Select as me, Table as yt, Row as ye, Col as H, Input as Rs, Tag as Ve, Space as Se, Tooltip as ks, Button as pe, Progress as Os, Dropdown as Ps, Typography as _e, Spin as gt, Checkbox as je, Divider as Qe, TimePicker as Dt, Tabs as vt, Card as it, Steps as Es, Modal as Ds, Carousel as Fs } from "antd";
5
5
  import { MessageOutlined as Ms, MailOutlined as Us, MoreOutlined as Ls, EditOutlined as $s, LeftOutlined as Bs, RightOutlined as js } from "@ant-design/icons";
6
6
  import { toast as ne } from "react-toastify";
@@ -811,7 +811,7 @@ function or(e) {
811
811
  }
812
812
  };
813
813
  }
814
- const as = Is(null);
814
+ const as = Cs(null);
815
815
  function lr({
816
816
  tenant: e = "snl",
817
817
  override: t,
@@ -835,7 +835,7 @@ function lr({
835
835
  return /* @__PURE__ */ i(as.Provider, { value: n, children: s });
836
836
  }
837
837
  function Ae() {
838
- const e = Cs(as);
838
+ const e = Is(as);
839
839
  if (!e) throw new Error("useApi must be used inside ApiProvider");
840
840
  return e;
841
841
  }
@@ -851,7 +851,7 @@ const cr = {
851
851
  Low: "#007AFF"
852
852
  }, bt = 6, St = 7;
853
853
  function dr(e, t, s) {
854
- const r = e === bt, n = e === St, a = t.isEmailSent, o = t.isSMSSent, l = r && a || n && o, h = r ? "Send Email" : n ? "Send SMS" : s, d = r && a ? "Email sent" : n && o ? "SMS sent" : h, c = r && a ? "Email sent" : n && o ? "SMS sent" : `Click to ${h.toLowerCase()}`;
854
+ const r = e === bt, n = e === St, a = t.isEmailSent, o = t.isSMSSent, l = r && a || n && o, h = r ? "Send Email" : n ? "Send SMS" : s, d = r && a ? "Email sent" : n && o ? "SMS sent" : h, c = r && a ? "Email sent" : n && o ? "SMS sent" : `Click to ${h}`;
855
855
  return { isDisabled: l, buttonText: d, tooltipTitle: c };
856
856
  }
857
857
  function hr(e) {
@@ -3436,7 +3436,7 @@ const mn = [{ SeverityId: 1, Code: "LOW", DisplayName: "Low", SortOrder: 10, IsA
3436
3436
  function vn({ sortBy: e, onChange: t, showActions: s, onSave: r, onClear: n, saving: a }) {
3437
3437
  return /* @__PURE__ */ u(ye, { gutter: [16, 16], align: "middle", children: [
3438
3438
  /* @__PURE__ */ i(H, { xs: 24, md: 8, lg: 5, children: /* @__PURE__ */ u(Se, { className: "w-full items-center", direction: "horizontal", size: 12, children: [
3439
- /* @__PURE__ */ i(gn, { className: "text-gray-600", children: "Sort by:" }),
3439
+ /* @__PURE__ */ i(gn, { className: "text-gray-600 whitespace-nowrap", children: "Sort By:" }),
3440
3440
  /* @__PURE__ */ i(
3441
3441
  me,
3442
3442
  {