@3sc/common-component 0.0.369 → 0.0.371

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
@@ -41041,6 +41041,7 @@ const TV = ({ options: e, isDraggable: t }) => {
41041
41041
  autoFocus: !0,
41042
41042
  size: "small",
41043
41043
  InputProps: {
41044
+ readOnly: !1,
41044
41045
  disableUnderline: !0,
41045
41046
  tabIndex: 0,
41046
41047
  inputMode: "none"
@@ -44506,14 +44507,12 @@ function Ow({
44506
44507
  sx: {
44507
44508
  position: "absolute",
44508
44509
  bottom: 0,
44509
- // ✅ Required to anchor the bar correctly
44510
44510
  left: 0,
44511
44511
  width: "100%",
44512
44512
  height: "0.08rem",
44513
44513
  background: "linear-gradient(#F9B16E, #F68080)",
44514
44514
  pointerEvents: "none",
44515
44515
  zIndex: 1
44516
- // ✅ So it stays under content
44517
44516
  }
44518
44517
  }
44519
44518
  ),
@@ -45553,8 +45552,12 @@ const UW = {
45553
45552
  }, Aw = ({ baseUrl: e }) => {
45554
45553
  const t = wt(Iw), [n, r] = Me(!1), [o, i] = Me(!1), [a, l] = Me(!1), [c, u] = Me({}), [d, f] = Me(null), [p, h] = Me(1), [g, m] = Me(!1), [v, x] = Me(0), w = gt(!1), { loading: T, data: O, isMarkAllAsRead: b } = wt(th), [k, E] = Me([]);
45555
45554
  yt(() => {
45556
- E(O);
45557
- }, [O]);
45555
+ if (g) {
45556
+ const F = (O || []).filter((_) => !_.isRead);
45557
+ E(F);
45558
+ } else
45559
+ E(O);
45560
+ }, [O, g]);
45558
45561
  const P = Kt(async () => {
45559
45562
  var F, _, $;
45560
45563
  if (!w.current)
@@ -45609,14 +45612,14 @@ const UW = {
45609
45612
  try {
45610
45613
  if ((await Ty(e, F, _)).status === Uo.OK) {
45611
45614
  const L = O.map(
45612
- (N) => F.includes(N.id) ? { ...N, isRead: !0 } : N
45613
- ), R = L.filter((N) => !N.isRead).length;
45615
+ (W) => F.includes(W.id) ? { ...W, isRead: !0 } : W
45616
+ ), N = L.filter((W) => !W.isRead).length;
45614
45617
  t({
45615
45618
  type: qe.SUCCESS,
45616
45619
  data: Xa(L)
45617
45620
  }), t({
45618
45621
  type: qe.MARK_ALL_AS_READ,
45619
- isMarkAllAsRead: { count: R, boo: R > 0 }
45622
+ isMarkAllAsRead: { count: N, boo: N > 0 }
45620
45623
  }), setTimeout(() => {
45621
45624
  t({ type: qe.LOADING, loading: !1 });
45622
45625
  }, 200);