@banzamel/mineralui 1.10.1 → 1.10.2

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.
Files changed (60) hide show
  1. package/README.md +1 -1
  2. package/dist/{MDropdownMenu-B-dMj34h.cjs → MDropdownMenu-BT3u-ZJj.cjs} +2 -2
  3. package/dist/{MDropdownMenu-B-dMj34h.cjs.map → MDropdownMenu-BT3u-ZJj.cjs.map} +1 -1
  4. package/dist/{MDropdownMenu-DKbC3uSE.js → MDropdownMenu-CAwSTZ1h.js} +2 -2
  5. package/dist/{MDropdownMenu-DKbC3uSE.js.map → MDropdownMenu-CAwSTZ1h.js.map} +1 -1
  6. package/dist/{MInputCVC-BEO1SXzg.cjs → MInputCVC-B353PyVi.cjs} +2 -2
  7. package/dist/{MInputCVC-BEO1SXzg.cjs.map → MInputCVC-B353PyVi.cjs.map} +1 -1
  8. package/dist/{MInputCVC-BimlubK5.js → MInputCVC-BSHrWcEh.js} +2 -2
  9. package/dist/{MInputCVC-BimlubK5.js.map → MInputCVC-BSHrWcEh.js.map} +1 -1
  10. package/dist/{MPopover-Cqz5TsHg.js → MPopover-BRuwva-c.js} +2 -2
  11. package/dist/MPopover-BRuwva-c.js.map +1 -0
  12. package/dist/MPopover-BbgAAM5Z.cjs +2 -0
  13. package/dist/MPopover-BbgAAM5Z.cjs.map +1 -0
  14. package/dist/{cards-DNJvVlUm.js → cards-23tpYjxc.js} +29 -25
  15. package/dist/{cards-DNJvVlUm.js.map → cards-23tpYjxc.js.map} +1 -1
  16. package/dist/{cards-CTZ7694-.cjs → cards-CK6RnNZi.cjs} +2 -2
  17. package/dist/cards-CK6RnNZi.cjs.map +1 -0
  18. package/dist/cards.cjs +1 -1
  19. package/dist/cards.js +1 -1
  20. package/dist/{data-BDry4bk_.js → data-B5KYb0SW.js} +34 -30
  21. package/dist/data-B5KYb0SW.js.map +1 -0
  22. package/dist/data-CDZvakQ8.cjs +2 -0
  23. package/dist/data-CDZvakQ8.cjs.map +1 -0
  24. package/dist/data.cjs +1 -1
  25. package/dist/data.js +1 -1
  26. package/dist/{dropdowns-C_MjnFTp.cjs → dropdowns-BP2HBR-x.cjs} +2 -2
  27. package/dist/{dropdowns-C_MjnFTp.cjs.map → dropdowns-BP2HBR-x.cjs.map} +1 -1
  28. package/dist/{dropdowns-Chx4Tsde.js → dropdowns-C9jREjLg.js} +2 -2
  29. package/dist/{dropdowns-Chx4Tsde.js.map → dropdowns-C9jREjLg.js.map} +1 -1
  30. package/dist/dropdowns.cjs +1 -1
  31. package/dist/dropdowns.js +1 -1
  32. package/dist/index.cjs +1 -1
  33. package/dist/index.js +8 -8
  34. package/dist/inputs.cjs +1 -1
  35. package/dist/inputs.js +1 -1
  36. package/dist/{layout-CC8eu_Ec.js → layout-BgfQpVOU.js} +2 -2
  37. package/dist/{layout-CC8eu_Ec.js.map → layout-BgfQpVOU.js.map} +1 -1
  38. package/dist/{layout-CLVbUUlu.cjs → layout-D9LAqtZp.cjs} +2 -2
  39. package/dist/{layout-CLVbUUlu.cjs.map → layout-D9LAqtZp.cjs.map} +1 -1
  40. package/dist/layout.cjs +1 -1
  41. package/dist/layout.js +1 -1
  42. package/dist/{overlays-DySvwSRv.cjs → overlays-BpDz9ddf.cjs} +2 -2
  43. package/dist/{overlays-DySvwSRv.cjs.map → overlays-BpDz9ddf.cjs.map} +1 -1
  44. package/dist/{overlays-CGNbrxBY.js → overlays-NwVsvmlb.js} +2 -2
  45. package/dist/{overlays-CGNbrxBY.js.map → overlays-NwVsvmlb.js.map} +1 -1
  46. package/dist/overlays.cjs +1 -1
  47. package/dist/overlays.js +2 -2
  48. package/dist/primitives.cjs +1 -1
  49. package/dist/primitives.js +1 -1
  50. package/dist/style-runtime.cjs +1 -1
  51. package/dist/style-runtime.js +1 -1
  52. package/dist/styles.css +1 -1
  53. package/package.json +1 -1
  54. package/dist/MPopover-Cqz5TsHg.js.map +0 -1
  55. package/dist/MPopover-DHClYfBc.cjs +0 -2
  56. package/dist/MPopover-DHClYfBc.cjs.map +0 -1
  57. package/dist/cards-CTZ7694-.cjs.map +0 -1
  58. package/dist/data-BDry4bk_.js.map +0 -1
  59. package/dist/data-COVvihdF.cjs +0 -2
  60. package/dist/data-COVvihdF.cjs.map +0 -1
@@ -2,7 +2,7 @@ import { Jn as e, Li as t, Ni as n, Or as r, Ri as i, Xn as a, kr as o, nr as s,
2
2
  import { t as d } from "./cn-YER3QsV1.js";
3
3
  import { n as f, t as p } from "./creditCards-D_iWmtG6.js";
4
4
  import { t as m } from "./useInteractionEffect-DtpbVd77.js";
5
- import { t as h } from "./MPopover-Cqz5TsHg.js";
5
+ import { t as h } from "./MPopover-BRuwva-c.js";
6
6
  import { n as g } from "./MSurface-B-sjyczH.js";
7
7
  import { t as _ } from "./MText-CL-LPcXi.js";
8
8
  import { t as v } from "./MHeading-B7KgSP4T.js";
@@ -13,12 +13,12 @@ import { n as S } from "./MSkeleton-BpylRABV.js";
13
13
  import { r as C, t as w } from "./MGrid-yLmEteNw.js";
14
14
  import { t as T } from "./MStack-B8JtyM10.js";
15
15
  import { a as E, i as D, n as O, r as k, t as A } from "./MCard-9ucghJJs.js";
16
- import { n as j, t as M } from "./MInputCVC-BimlubK5.js";
16
+ import { n as j, t as M } from "./MInputCVC-BSHrWcEh.js";
17
17
  import { t as N } from "./MAvatar-CIvYzQV4.js";
18
18
  import { n as ee, t as P } from "./MDetailList-Gh5Y0UOx.js";
19
19
  import { t as F } from "./MInputSearch-Dj55a3oO.js";
20
20
  import { t as I } from "./MTreeView-DMTzRk6c.js";
21
- import { i as te, r as ne } from "./MDropdownMenu-DKbC3uSE.js";
21
+ import { i as te, r as ne } from "./MDropdownMenu-CAwSTZ1h.js";
22
22
  import { t as L } from "./MPagination-CnFI794t.js";
23
23
  import { Children as re, Fragment as R, cloneElement as z, isValidElement as B, useCallback as V, useEffect as ie, useMemo as ae, useRef as oe, useState as H } from "react";
24
24
  import { Fragment as se, jsx as U, jsxs as W } from "react/jsx-runtime";
@@ -821,7 +821,7 @@ function xe(e, t) {
821
821
  }
822
822
  return r;
823
823
  }
824
- function $({ items: n, renderCard: r, color: a = "primary", searchable: o = !1, searchKeys: s, searchPlaceholder: l = "Search...", search: u, onSearchChange: f, filterable: p = !1, filterKeys: m = [], filters: g, onFiltersChange: _, sortable: v = !1, sortKeys: y = [], defaultSort: S, sort: C, onSortChange: w, pagination: T = !1, pageSize: E = 12, page: D, onPageChange: O, total: k, manualSearch: A = !1, manualFilters: j = !1, manualSort: M = !1, manualPagination: N = !1, columns: ee = 3, emptyMessage: P = "No results found.", className: I, style: te, ...ne }) {
824
+ function Se({ items: n, renderCard: r, color: a = "primary", searchable: o = !1, searchKeys: s, searchPlaceholder: l = "Search...", search: u, onSearchChange: f, filterable: p = !1, filterKeys: m = [], filters: g, onFiltersChange: _, sortable: v = !1, sortKeys: y = [], defaultSort: S, sort: C, onSortChange: w, pagination: T = !1, pageSize: E = 12, page: D, onPageChange: O, total: k, manualSearch: A = !1, manualFilters: j = !1, manualSort: M = !1, manualPagination: N = !1, columns: ee = 3, emptyMessage: P = "No results found.", className: I, style: te, ...ne }) {
825
825
  let [re, z] = H(""), [B, ie] = H({}), [G, K] = H(S ?? null), [q, J] = H(1), [ce, Y] = H(!1), [le, ue] = H(!1), X = oe(null), de = oe(null), fe = u === void 0 ? re : u, Z = g === void 0 ? B : g, Q = C === void 0 ? G : C, pe = D === void 0 ? q : D, me = V((e) => {
826
826
  u === void 0 && z(e), !N && D === void 0 && J(1), f?.(e);
827
827
  }, [
@@ -843,11 +843,14 @@ function $({ items: n, renderCard: r, color: a = "primary", searchable: o = !1,
843
843
  D,
844
844
  N,
845
845
  w
846
- ]), _e = V((e) => {
847
- D === void 0 && J(e), O?.(e);
848
- }, [D, O]), ve = V(() => {
846
+ ]), _e = oe(null), ve = V((e) => {
847
+ D === void 0 && J(e), O?.(e), _e.current?.scrollIntoView({
848
+ block: "start",
849
+ behavior: "smooth"
850
+ });
851
+ }, [D, O]), ye = V(() => {
849
852
  Y((e) => !e), ue(!1);
850
- }, []), ye = V(() => {
853
+ }, []), Se = V(() => {
851
854
  ue((e) => !e), Y(!1);
852
855
  }, []), $ = ae(() => {
853
856
  let e = n;
@@ -879,7 +882,7 @@ function $({ items: n, renderCard: r, color: a = "primary", searchable: o = !1,
879
882
  A,
880
883
  j,
881
884
  M
882
- ]), Se = N ? k ?? $.length : $.length, Ce = ae(() => {
885
+ ]), Ce = N ? k ?? $.length : $.length, we = ae(() => {
883
886
  if (!T || N) return $;
884
887
  let e = (pe - 1) * E;
885
888
  return $.slice(e, e + E);
@@ -890,14 +893,14 @@ function $({ items: n, renderCard: r, color: a = "primary", searchable: o = !1,
890
893
  pe,
891
894
  E
892
895
  ]);
893
- function we(e, t) {
896
+ function Te(e, t) {
894
897
  let n = Z[e] ?? [], r = n.includes(t) ? n.filter((e) => e !== t) : [...n, t];
895
898
  he({
896
899
  ...Z,
897
900
  [e]: r
898
901
  });
899
902
  }
900
- let Te = ae(() => {
903
+ let Ee = ae(() => {
901
904
  let e = {};
902
905
  for (let t of m) {
903
906
  if (t.options) {
@@ -912,8 +915,9 @@ function $({ items: n, renderCard: r, color: a = "primary", searchable: o = !1,
912
915
  e[t.key] = Array.from(r).sort();
913
916
  }
914
917
  return e;
915
- }, [n, m]), Ee = y.find((e) => e.key === Q?.key);
918
+ }, [n, m]), De = y.find((e) => e.key === Q?.key);
916
919
  return /* @__PURE__ */ W("div", {
920
+ ref: _e,
917
921
  className: d("card-grid", `color-${a}`, I),
918
922
  style: te,
919
923
  ...ne,
@@ -937,7 +941,7 @@ function $({ items: n, renderCard: r, color: a = "primary", searchable: o = !1,
937
941
  size: "sm",
938
942
  startIcon: /* @__PURE__ */ U(e, {}),
939
943
  "aria-expanded": ce,
940
- onClick: ve,
944
+ onClick: ye,
941
945
  children: "Filter"
942
946
  }), /* @__PURE__ */ U(h, {
943
947
  open: ce,
@@ -950,13 +954,13 @@ function $({ items: n, renderCard: r, color: a = "primary", searchable: o = !1,
950
954
  children: [/* @__PURE__ */ U("span", {
951
955
  className: "card-grid-filter-label",
952
956
  children: e.label
953
- }), (Te[e.key] ?? []).map((t) => /* @__PURE__ */ U("div", {
957
+ }), (Ee[e.key] ?? []).map((t) => /* @__PURE__ */ U("div", {
954
958
  className: "card-grid-filter-option",
955
959
  children: /* @__PURE__ */ U(x, {
956
960
  size: "sm",
957
961
  clickEffect: "none",
958
962
  checked: Z[e.key]?.includes(t) ?? !1,
959
- onChange: () => we(e.key, t),
963
+ onChange: () => Te(e.key, t),
960
964
  label: t
961
965
  })
962
966
  }, t))]
@@ -968,8 +972,8 @@ function $({ items: n, renderCard: r, color: a = "primary", searchable: o = !1,
968
972
  size: "sm",
969
973
  startIcon: Q ? Q.direction === "asc" ? /* @__PURE__ */ U(i, {}) : /* @__PURE__ */ U(t, {}) : /* @__PURE__ */ U(c, {}),
970
974
  "aria-expanded": le,
971
- onClick: ye,
972
- children: Ee ? `Sort: ${Ee.label}` : "Sort"
975
+ onClick: Se,
976
+ children: De ? `Sort: ${De.label}` : "Sort"
973
977
  }), /* @__PURE__ */ U(h, {
974
978
  open: le,
975
979
  anchorRef: de,
@@ -996,10 +1000,10 @@ function $({ items: n, renderCard: r, color: a = "primary", searchable: o = !1,
996
1000
  })] })]
997
1001
  })]
998
1002
  }),
999
- Ce.length > 0 ? /* @__PURE__ */ U("div", {
1003
+ we.length > 0 ? /* @__PURE__ */ U("div", {
1000
1004
  className: "card-grid-items",
1001
1005
  style: be(ee),
1002
- children: Ce.map((e, t) => {
1006
+ children: we.map((e, t) => {
1003
1007
  let n = e?.id;
1004
1008
  return /* @__PURE__ */ U(R, { children: r(e, t) }, n ?? t);
1005
1009
  })
@@ -1007,13 +1011,13 @@ function $({ items: n, renderCard: r, color: a = "primary", searchable: o = !1,
1007
1011
  className: "card-grid-empty",
1008
1012
  children: P
1009
1013
  }),
1010
- T && Se > E && /* @__PURE__ */ U("div", {
1014
+ T && Ce > E && /* @__PURE__ */ U("div", {
1011
1015
  className: "card-grid-pagination",
1012
1016
  children: /* @__PURE__ */ U(L, {
1013
- total: Se,
1017
+ total: Ce,
1014
1018
  page: pe,
1015
1019
  pageSize: E,
1016
- onChange: _e
1020
+ onChange: ve
1017
1021
  })
1018
1022
  })
1019
1023
  ]
@@ -1021,7 +1025,7 @@ function $({ items: n, renderCard: r, color: a = "primary", searchable: o = !1,
1021
1025
  }
1022
1026
  //#endregion
1023
1027
  //#region src/components/cards/MCardDaySchedule/MCardDaySchedule.tsx
1024
- function Se({ title: e = "Today", description: t, color: n = "primary", workdayStart: r, workdayEnd: i, timeline: a, summary: o, tabs: s = [], footer: c, emptyTimeline: l = /* @__PURE__ */ U(_, {
1028
+ function $({ title: e = "Today", description: t, color: n = "primary", workdayStart: r, workdayEnd: i, timeline: a, summary: o, tabs: s = [], footer: c, emptyTimeline: l = /* @__PURE__ */ U(_, {
1025
1029
  tone: "muted",
1026
1030
  children: "No events scheduled for this day."
1027
1031
  }), ...u }) {
@@ -1198,6 +1202,6 @@ function Ce({ title: e = "Documents", description: t, color: n = "primary", item
1198
1202
  });
1199
1203
  }
1200
1204
  //#endregion
1201
- export { ge as a, Z as c, ue as d, Y as f, ye as i, fe as l, Se as n, pe as o, J as p, $ as r, Q as s, Ce as t, de as u };
1205
+ export { ge as a, Z as c, ue as d, Y as f, ye as i, fe as l, $ as n, pe as o, J as p, Se as r, Q as s, Ce as t, de as u };
1202
1206
 
1203
- //# sourceMappingURL=cards-DNJvVlUm.js.map
1207
+ //# sourceMappingURL=cards-23tpYjxc.js.map