@espresso-lab/mantine-data-table 2.1.9 → 2.1.10

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
@@ -3539,7 +3539,7 @@ var Ar = [
3539
3539
  100,
3540
3540
  500
3541
3541
  ];
3542
- function jr({ title: e, queryKey: t, connectedQueryKeys: n, apiPath: r, mutationApiPath: a, buttons: o, fields: c, selection: l, pagination: u, filters: y, actions: b, steps: x, defaultSort: S, onSortChange: C, createButtonText: T, queryParams: D, tabs: O, defaultTab: k, activeTab: j, onActiveTabChange: M, canUpdate: N, canDelete: P, showRefresh: ee = !0, rowExpansion: F, onRowClick: te, mobileCards: R = !1, deleteConfirmMessage: ne }) {
3542
+ function jr({ title: e, queryKey: t, connectedQueryKeys: n, apiPath: r, mutationApiPath: a, buttons: o, fields: c, selection: l, pagination: u, filters: y, actions: b, steps: x, defaultSort: S, onSortChange: w, createButtonText: T, queryParams: D, tabs: O, defaultTab: k, activeTab: j, onActiveTabChange: M, canUpdate: N, canDelete: P, showRefresh: ee = !0, rowExpansion: F, onRowClick: te, mobileCards: R = !1, deleteConfirmMessage: ne }) {
3543
3543
  let [re, ie] = d(k || (O && O.length > 0 ? O[0].value : null)), z = j === void 0 ? re : j, ae = (e) => {
3544
3544
  j === void 0 && ie(e), M && M(e);
3545
3545
  }, B = O?.find((e) => e.value === z), V = B?.queryParams || {}, se = B?.apiPath ?? r, ce = B?.mutationApiPath ?? a ?? se, ue = {
@@ -3589,7 +3589,7 @@ function jr({ title: e, queryKey: t, connectedQueryKeys: n, apiPath: r, mutation
3589
3589
  columnAccessor: S?.field ?? c[0].id,
3590
3590
  direction: S?.direction ?? "desc"
3591
3591
  }), Ee = (e) => {
3592
- Te(e), C && C(String(e.columnAccessor), e.direction);
3592
+ Te(e), w && w(String(e.columnAccessor), e.direction);
3593
3593
  }, De = Tr(Se, Ce.columnAccessor, Ce.direction), [Oe, ke] = xr(Ar[1], "mantine-table-page-size"), [Ae, je] = d(1), Me = u ? De.slice((Ae - 1) * Oe, Ae * Oe) : De, [U, W] = d([]);
3594
3594
  s(() => {
3595
3595
  W([]);
@@ -3608,20 +3608,40 @@ function jr({ title: e, queryKey: t, connectedQueryKeys: n, apiPath: r, mutation
3608
3608
  W(e), G(!0);
3609
3609
  }
3610
3610
  }), /* @__PURE__ */ m(f, { children: [
3611
- /* @__PURE__ */ m(w, {
3611
+ /* @__PURE__ */ m(C, {
3612
3612
  gap: "xs",
3613
- justify: e ? "space-between" : "end",
3614
- align: "center",
3613
+ align: {
3614
+ base: "stretch",
3615
+ sm: "center"
3616
+ },
3617
+ direction: {
3618
+ base: "column",
3619
+ sm: "row"
3620
+ },
3621
+ justify: e ? "space-between" : "flex-end",
3615
3622
  wrap: "wrap",
3616
3623
  children: [e && (typeof e == "string" ? /* @__PURE__ */ p(le, {
3617
3624
  order: 4,
3618
3625
  children: e
3619
- }) : e), /* @__PURE__ */ m(w, {
3620
- align: "center",
3626
+ }) : e), /* @__PURE__ */ m(C, {
3627
+ align: {
3628
+ base: "stretch",
3629
+ sm: "center"
3630
+ },
3631
+ direction: {
3632
+ base: "column",
3633
+ sm: "row"
3634
+ },
3621
3635
  gap: "xs",
3622
3636
  wrap: "wrap",
3623
- justify: "end",
3624
- style: { marginLeft: "auto" },
3637
+ justify: {
3638
+ base: "flex-start",
3639
+ sm: "flex-end"
3640
+ },
3641
+ ml: {
3642
+ base: 0,
3643
+ sm: "auto"
3644
+ },
3625
3645
  children: [
3626
3646
  ee && /* @__PURE__ */ p(h, {
3627
3647
  variant: "subtle",