caplink-saas-ui-shared-component-library 1.85.0 → 1.86.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.
@@ -21,7 +21,7 @@ export declare const DocumentFolder: {
21
21
  displayName: string;
22
22
  };
23
23
  Cell: {
24
- ({ className, description, error, expired, isHeader, selected, setMode, mode, children, ...props }: DocumentFolderCellProps): import("react/jsx-runtime").JSX.Element;
24
+ ({ className, description, error, expired, isHeader, selected, setMode, mode, children, tooltipMessage, ...props }: DocumentFolderCellProps): import("react/jsx-runtime").JSX.Element;
25
25
  displayName: string;
26
26
  };
27
27
  };
@@ -34,9 +34,10 @@ export type DocumentFolderCellProps = React.HTMLAttributes<HTMLDivElement> & {
34
34
  selected?: boolean;
35
35
  setMode?: (mode: 'edit' | 'view' | 'readonly') => void;
36
36
  mode?: 'edit' | 'view' | 'readonly';
37
+ tooltipMessage?: string;
37
38
  };
38
39
  declare const DocumentFolderCell: {
39
- ({ className, description, error, expired, isHeader, selected, setMode, mode, children, ...props }: DocumentFolderCellProps): import("react/jsx-runtime").JSX.Element;
40
+ ({ className, description, error, expired, isHeader, selected, setMode, mode, children, tooltipMessage, ...props }: DocumentFolderCellProps): import("react/jsx-runtime").JSX.Element;
40
41
  displayName: string;
41
42
  };
42
43
  export { DocumentFolderRoot, DocumentFolderHeader, DocumentFolderContent, DocumentFolderRowIndicator, DocumentFolderCell, DocumentFolderRow, };
package/dist/index.es.js CHANGED
@@ -5782,17 +5782,18 @@ const vS = ({
5782
5782
  setMode: i,
5783
5783
  mode: a,
5784
5784
  children: l,
5785
- ...c
5785
+ tooltipMessage: c,
5786
+ ...u
5786
5787
  }) => {
5787
- const u = fe(null), d = ne(
5788
- (f) => {
5789
- if (f.ctrlKey || f.metaKey || !i || !a || u.current && !u.current.contains(f.target)) return;
5790
- const h = f.code === "Enter", m = /[a-zA-Z0-9\u00C0-\u017F]/.test(f.key) && f.key.length === 1;
5791
- h && o && a === "view" && i("edit"), m && o && a === "view" && i("edit"), h && o && a === "edit" && i("view");
5788
+ const d = fe(null), f = ne(
5789
+ (h) => {
5790
+ if (h.ctrlKey || h.metaKey || !i || !a || d.current && !d.current.contains(h.target)) return;
5791
+ const m = h.code === "Enter", g = /[a-zA-Z0-9\u00C0-\u017F]/.test(h.key) && h.key.length === 1;
5792
+ m && o && a === "view" && i("edit"), g && o && a === "view" && i("edit"), m && o && a === "edit" && i("view");
5792
5793
  },
5793
5794
  [o, a, i]
5794
5795
  );
5795
- return se(() => (window.addEventListener("keydown", d), () => window.removeEventListener("keydown", d)), [d]), /* @__PURE__ */ p.jsxs(
5796
+ return se(() => (window.addEventListener("keydown", f), () => window.removeEventListener("keydown", f)), [f]), /* @__PURE__ */ p.jsxs(
5796
5797
  "div",
5797
5798
  {
5798
5799
  className: W(
@@ -5804,12 +5805,12 @@ const vS = ({
5804
5805
  o && "sl-bg-info-100",
5805
5806
  t
5806
5807
  ),
5807
- ref: u,
5808
- ...c,
5808
+ ref: d,
5809
+ ...u,
5809
5810
  children: [
5810
5811
  l,
5811
5812
  e && /* @__PURE__ */ p.jsx(Mn, { className: "sl-font-normal", message: e, delayDuration: 100, children: /* @__PURE__ */ p.jsx(Lc, { className: "sl-text-foreground-v2-700 sl-w-4 sl-h-4 sl-shrink-0" }) }),
5812
- r && /* @__PURE__ */ p.jsx(Mn, { className: "sl-font-normal", message: "Documento vencido", delayDuration: 100, children: /* @__PURE__ */ p.jsx(nr, { className: "sl-text-danger-300 sl-w-4 sl-h-4 sl-shrink-0" }) }),
5813
+ r && /* @__PURE__ */ p.jsx(Mn, { className: "sl-font-normal", message: c || "Documento vencido", delayDuration: 100, children: /* @__PURE__ */ p.jsx(nr, { className: "sl-text-danger-300 sl-w-4 sl-h-4 sl-shrink-0" }) }),
5813
5814
  n && /* @__PURE__ */ p.jsx(Mn, { className: "sl-font-normal", message: n, delayDuration: 100, children: /* @__PURE__ */ p.jsx(nr, { className: "sl-text-danger-300 sl-w-4 sl-h-4 sl-shrink-0" }) })
5814
5815
  ]
5815
5816
  }
@@ -5931,7 +5932,7 @@ function TY(t) {
5931
5932
  u && (l.preventDefault(), l.currentTarget.value = u, s?.({ data: u }));
5932
5933
  },
5933
5934
  onChange: (l) => s?.({ data: l.target.value }),
5934
- className: W("sl-h-full sl-w-full sl-bg-transparent sl-pl-1 sl-text-sm sl-outline-none"),
5935
+ className: W("sl-h-full sl-flex-1 sl-min-w-0 sl-bg-transparent sl-pl-1 sl-text-sm sl-outline-none"),
5935
5936
  "aria-readonly": e === "readonly"
5936
5937
  }
5937
5938
  );
@@ -5948,7 +5949,7 @@ function NY(t) {
5948
5949
  return /* @__PURE__ */ p.jsx(
5949
5950
  "div",
5950
5951
  {
5951
- className: "sl-flex sl-h-full sl-w-full sl-items-center",
5952
+ className: "sl-flex sl-h-full sl-flex-1 sl-min-w-0 sl-items-center",
5952
5953
  "aria-readonly": n === "readonly",
5953
5954
  children: /* @__PURE__ */ p.jsx("p", { className: "sl-line-clamp-1 sl-pl-1 sl-text-sm", children: r })
5954
5955
  }
@@ -7823,11 +7824,8 @@ function oX(t, e) {
7823
7824
  }
7824
7825
  );
7825
7826
  }
7826
- const Mn = ft(oX), F5 = Dn({}), iX = ({ children: t }) => {
7827
- const e = fe(null);
7828
- return /* @__PURE__ */ p.jsx(F5.Provider, { value: { portalRef: e }, children: Ue.cloneElement(t, { ref: e }) });
7829
- }, NS = () => xt(F5);
7830
- function V5(t, e = "600 12px Arial, Helvetica, sans-serif") {
7827
+ const Mn = ft(oX);
7828
+ function F5(t, e = "600 12px Arial, Helvetica, sans-serif") {
7831
7829
  const n = document.createElement("canvas"), r = n.getContext("2d");
7832
7830
  if (r) {
7833
7831
  r.font = e;
@@ -7837,7 +7835,14 @@ function V5(t, e = "600 12px Arial, Helvetica, sans-serif") {
7837
7835
  return 0;
7838
7836
  }
7839
7837
  function Vo(t, e) {
7840
- return V5(t) > e - 4;
7838
+ return F5(t) > e - 4;
7839
+ }
7840
+ const V5 = Dn({}), iX = ({ children: t }) => {
7841
+ const e = fe(null);
7842
+ return /* @__PURE__ */ p.jsx(V5.Provider, { value: { portalRef: e }, children: Ue.cloneElement(t, { ref: e }) });
7843
+ }, NS = () => xt(V5);
7844
+ function AS(t) {
7845
+ t.selectionStart = t.selectionEnd = t.value.length;
7841
7846
  }
7842
7847
  function aX(t) {
7843
7848
  const [e, n] = ie(!1);
@@ -7853,9 +7858,6 @@ function Ja(t, e = !1) {
7853
7858
  e || n && t.current?.select();
7854
7859
  }, [n, e, t.current]);
7855
7860
  }
7856
- function AS(t) {
7857
- t.selectionStart = t.selectionEnd = t.value.length;
7858
- }
7859
7861
  function lX(t) {
7860
7862
  const { setMode: e, value: n, onBlur: r, onChange: s, selected: o } = t, { portalRef: i } = NS(), a = n, l = fe(null), c = fe(null), [u, d] = ie(0), [f, h] = ie(!1);
7861
7863
  se(() => {
@@ -7941,7 +7943,7 @@ function lX(t) {
7941
7943
  value: a,
7942
7944
  maxLength: 255,
7943
7945
  onChange: k,
7944
- className: W("sl-h-full sl-w-full sl-bg-transparent sl-pl-1 sl-text-sm sl-outline-none"),
7946
+ className: W("sl-h-full sl-flex-1 sl-min-w-0 sl-bg-transparent sl-pl-1 sl-text-sm sl-outline-none"),
7945
7947
  autoFocus: !0
7946
7948
  }
7947
7949
  );
@@ -7967,7 +7969,7 @@ function cX(t) {
7967
7969
  children: /* @__PURE__ */ p.jsx(
7968
7970
  "div",
7969
7971
  {
7970
- className: "sl-flex sl-h-full sl-w-full sl-items-center sl-overflow-hidden",
7972
+ className: "sl-flex sl-h-full sl-flex-1 sl-min-w-0 sl-items-center sl-overflow-hidden",
7971
7973
  "aria-readonly": e === "readonly",
7972
7974
  ref: l,
7973
7975
  children: /* @__PURE__ */ p.jsx("p", { className: "sl-line-clamp-1 sl-break-all sl-pl-1 sl-text-left sl-text-sm", children: s })
@@ -7977,7 +7979,7 @@ function cX(t) {
7977
7979
  ) : /* @__PURE__ */ p.jsx(
7978
7980
  "div",
7979
7981
  {
7980
- className: "sl-flex sl-h-full sl-w-full sl-items-center sl-overflow-hidden",
7982
+ className: "sl-flex sl-h-full sl-flex-1 sl-min-w-0 sl-items-center sl-overflow-hidden",
7981
7983
  "aria-readonly": e === "readonly",
7982
7984
  ref: a,
7983
7985
  children: /* @__PURE__ */ p.jsx("p", { className: "sl-line-clamp-1 sl-break-all sl-pl-1 sl-text-left sl-text-sm", title: s, children: s })
@@ -37363,7 +37365,7 @@ var hr = /* @__PURE__ */ ((t) => (t.None = "None", t.IsEmptyValue = "IsEmptyValu
37363
37365
  const Ume = 8;
37364
37366
  function yA(t) {
37365
37367
  return t.map((e, n) => {
37366
- const r = V5(e.name) || 0;
37368
+ const r = F5(e.name) || 0;
37367
37369
  let s = cm(r, { rightIcon: !0 }) + Ume;
37368
37370
  return s = s < ul ? ul : s, s > cl && (s = cl), {
37369
37371
  ...e,