lecom-ui 3.8.3 → 3.8.5

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.
@@ -1,8 +1,9 @@
1
1
  import * as React from 'react';
2
- import { useTranslation } from 'react-i18next';
2
+ import { useTranslation, I18nextProvider } from 'react-i18next';
3
3
  import { Button } from '../Button/Button.js';
4
4
  import { cn } from '../../lib/utils.js';
5
5
  import { ChevronFirst, ChevronLast, ChevronLeft, ChevronRight, MoreHorizontal, ChevronDown } from 'lucide-react';
6
+ import { i18n } from '../../i18n/index.js';
6
7
  import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem } from '../DropdownMenu/DropdownMenu.js';
7
8
  import { Typography } from '../Typography/Typography.js';
8
9
 
@@ -186,7 +187,7 @@ const Pagination = ({
186
187
  };
187
188
  return React.createElement(mappedComponents[item.type], componentProps);
188
189
  };
189
- return /* @__PURE__ */ React.createElement("div", { className: "flex items-center justify-between mt-6 gap-4" }, /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-4" }, /* @__PURE__ */ React.createElement(DropdownMenu, null, /* @__PURE__ */ React.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React.createElement(Button, { size: "small", color: "grey", variant: "outlined" }, /* @__PURE__ */ React.createElement("span", { className: "max-md:hidden" }, t("process_list.table.show")), " ", perPage, /* @__PURE__ */ React.createElement(ChevronDown, { size: 20 }))), /* @__PURE__ */ React.createElement(DropdownMenuContent, { side: "top", align: "center" }, perPageOptions.map((option) => /* @__PURE__ */ React.createElement(
190
+ return /* @__PURE__ */ React.createElement(I18nextProvider, { i18n }, /* @__PURE__ */ React.createElement("div", { className: "flex items-center justify-between mt-6 gap-4" }, /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-4" }, /* @__PURE__ */ React.createElement(DropdownMenu, null, /* @__PURE__ */ React.createElement(DropdownMenuTrigger, { asChild: true }, /* @__PURE__ */ React.createElement(Button, { size: "small", color: "grey", variant: "outlined" }, /* @__PURE__ */ React.createElement("span", { className: "max-md:hidden" }, t("pagination.show")), " ", perPage, /* @__PURE__ */ React.createElement(ChevronDown, { size: 20 }))), /* @__PURE__ */ React.createElement(DropdownMenuContent, { side: "top", align: "center" }, perPageOptions.map((option) => /* @__PURE__ */ React.createElement(
190
191
  DropdownMenuItem,
191
192
  {
192
193
  key: option.value,
@@ -195,7 +196,7 @@ const Pagination = ({
195
196
  }
196
197
  },
197
198
  option.value.toString()
198
- )))), totalRowsSelected > 0 && /* @__PURE__ */ React.createElement(Typography, { variant: "heading-xxsmall-600", textColor: "text-grey-800" }, totalRowsSelected, " ", t("process_list.table.selected_process"))), /* @__PURE__ */ React.createElement("nav", { role: "navigation", "aria-label": "pagination" }, /* @__PURE__ */ React.createElement(PaginationContent, null, itemsPage.map((item) => /* @__PURE__ */ React.createElement(PaginationItem, { key: item.id }, mapPaginationItem(item))))));
199
+ )))), totalRowsSelected > 0 && /* @__PURE__ */ React.createElement(Typography, { variant: "heading-xxsmall-600", textColor: "text-grey-800" }, totalRowsSelected, " ", t("pagination.selectedProcess"))), /* @__PURE__ */ React.createElement("nav", { role: "navigation", "aria-label": "pagination" }, /* @__PURE__ */ React.createElement(PaginationContent, null, itemsPage.map((item) => /* @__PURE__ */ React.createElement(PaginationItem, { key: item.id }, mapPaginationItem(item)))))));
199
200
  };
200
201
  Pagination.displayName = "Pagination";
201
202
 
@@ -6,6 +6,10 @@ const language = {
6
6
  settings: "Settings",
7
7
  help: "Help",
8
8
  modules: "Modules"
9
+ },
10
+ pagination: {
11
+ show: "Show:",
12
+ selectedProcess: "selected process"
9
13
  }
10
14
  }
11
15
  };
@@ -6,6 +6,10 @@ const language = {
6
6
  settings: "Ajustes",
7
7
  help: "Ayuda",
8
8
  modules: "M\xF3dulos"
9
+ },
10
+ pagination: {
11
+ show: "Mostrar:",
12
+ selectedProcess: "proceso(s) seleccionado(s)"
9
13
  }
10
14
  }
11
15
  };
@@ -6,6 +6,10 @@ const language = {
6
6
  settings: "Configura\xE7\xF5es",
7
7
  help: "Ajuda",
8
8
  modules: "M\xF3dulos"
9
+ },
10
+ pagination: {
11
+ show: "Mostrar:",
12
+ selectedProcess: "processo(s) selecionado(s)"
9
13
  }
10
14
  }
11
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lecom-ui",
3
- "version": "3.8.3",
3
+ "version": "3.8.5",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",