erp-pos-ecommerce-shared 0.1.7 → 0.2.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.
package/dist/index.js CHANGED
@@ -10,6 +10,7 @@ import { DatePickerInput, DatePicker } from '@mantine/dates';
10
10
  import { Dropzone, IMAGE_MIME_TYPE } from '@mantine/dropzone';
11
11
  import { modals } from '@mantine/modals';
12
12
  import * as z from 'zod';
13
+ import { useMediaQuery } from '@mantine/hooks';
13
14
  import { ArrowDown, ArrowUp, ArrowUpDown, FileX, X, Search, ChevronUp, ChevronDown, ListFilter, Check, CalendarDays, MoreVertical } from 'lucide-react';
14
15
 
15
16
  // src/config/env.ts
@@ -5866,6 +5867,8 @@ var BottomPagination = ({
5866
5867
  onPageSizeChange,
5867
5868
  onPageIndexChange
5868
5869
  }) => {
5870
+ const isMobile = useMediaQuery("(max-width: 767px)");
5871
+ const isDesktop = useMediaQuery("(min-width: 992px)");
5869
5872
  const totalPages = Math.ceil(total / pageSize);
5870
5873
  const currentPage = pageIndex + 1;
5871
5874
  const handlePageChange = (page) => {
@@ -5897,18 +5900,18 @@ var BottomPagination = ({
5897
5900
  Pagination,
5898
5901
  {
5899
5902
  radius: "md",
5900
- withEdges: true,
5903
+ withEdges: isDesktop,
5901
5904
  total: totalPages,
5902
5905
  value: currentPage,
5903
5906
  onChange: handlePageChange,
5904
5907
  size: "sm",
5905
- siblings: 1,
5906
- boundaries: 1,
5907
- style: {
5908
+ siblings: !isMobile ? 1 : 0,
5909
+ boundaries: !isMobile ? 1 : 0,
5910
+ style: isDesktop ? {
5908
5911
  position: "absolute",
5909
5912
  left: "50%",
5910
5913
  transform: "translateX(-50%)"
5911
- }
5914
+ } : void 0
5912
5915
  }
5913
5916
  ),
5914
5917
  /* @__PURE__ */ jsxs(Group, { style: { marginLeft: "auto", alignItems: "center" }, children: [
@@ -5931,8 +5934,8 @@ var BottomPagination = ({
5931
5934
  comboboxProps: { withinPortal: false }
5932
5935
  }
5933
5936
  ),
5934
- /* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", children: "registros" }),
5935
- total !== void 0 && /* @__PURE__ */ jsxs(Text, { size: "xs", c: "dimmed", ml: "xs", children: [
5937
+ /* @__PURE__ */ jsx(Text, { size: "xs", c: "dimmed", visibleFrom: "sm", children: "registros" }),
5938
+ total !== void 0 && !isMobile && /* @__PURE__ */ jsxs(Text, { size: "xs", c: "dimmed", ml: "xs", children: [
5936
5939
  "(",
5937
5940
  total,
5938
5941
  " en total)"