@mailstep/design-system 0.8.32-beta.1 → 0.8.32-beta.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailstep/design-system",
3
- "version": "0.8.32-beta.1",
3
+ "version": "0.8.32-beta.3",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./ui/index.js",
@@ -14,7 +14,7 @@ const useGridAggregation = ({ rowsData, columns, activeColumnName, operation })
14
14
  rowsData
15
15
  ]);
16
16
  const numericValues = useMemo(() => {
17
- return rowsData.map((row) => {
17
+ return rowsData?.map((row) => {
18
18
  const value = get(activeColumnName || "", row);
19
19
  const rowValue = column?.formatRowValue?.(row) || value;
20
20
  return Number(rowValue);
@@ -11,7 +11,7 @@ const Wrapper = styled$1(x.div)`
11
11
  }
12
12
  `;
13
13
  const StyledSelect = styled$1(x.div)`
14
- width: 150px;
14
+ width: 170px;
15
15
  `;
16
16
  const ColumnTitle = styled$1(x.span)`
17
17
  font-size: 8px;
@@ -3,7 +3,6 @@ import { rowsPerPageOptions } from "../../utils/constants.js";
3
3
  import { useCallback, useMemo } from "react";
4
4
  import styled$1, { x } from "@xstyled/styled-components";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
- import { Trans } from "@lingui/react";
7
6
  //#region packages/ui/Blocks/CommonGrid/components/TablePagination/TablePagination.tsx
8
7
  const Wrapper = styled$1.span`
9
8
  display: flex;
@@ -20,7 +19,7 @@ const StyledSelect = styled$1(x.div)`
20
19
  align-items: center;
21
20
  gap: 8px;
22
21
  margin-right: 15px;
23
- width: 135px;
22
+ width: 170px;
24
23
  font-size: 14px;
25
24
  white-space: nowrap;
26
25
  color: gray1;
@@ -47,10 +46,7 @@ const TablePagination = ({ gridActions, gridSelectors, autoRowsPerPage, customPa
47
46
  page,
48
47
  customPaginationHandler
49
48
  ]);
50
- return /* @__PURE__ */ jsx(Wrapper, { children: /* @__PURE__ */ jsxs(StyledSelect, { children: [/* @__PURE__ */ jsx(Trans, {
51
- id: "dataGrid.perPage",
52
- message: "Per page"
53
- }), /* @__PURE__ */ jsx(Select, {
49
+ return /* @__PURE__ */ jsx(Wrapper, { children: /* @__PURE__ */ jsxs(StyledSelect, { children: ["Na stránce", /* @__PURE__ */ jsx(Select, {
54
50
  name: "rowsPerPage",
55
51
  menuPlacement: "top",
56
52
  style: "gridFilter",