@plesk/ui-library 3.46.3 → 3.46.4

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 (89) hide show
  1. package/cjs/components/Card/PreviewPanel.js +2 -2
  2. package/cjs/components/CodeEditor/CodeEditor.js +4 -0
  3. package/cjs/components/InputFile/InputFile.js +2 -1
  4. package/cjs/components/Layout/Layout.js +1 -1
  5. package/cjs/components/Pagination/Pagination.js +4 -1
  6. package/cjs/index.js +1 -1
  7. package/cjs/locales/ar.js +2 -1
  8. package/cjs/locales/ca-ES.js +2 -1
  9. package/cjs/locales/cs-CZ.js +2 -1
  10. package/cjs/locales/da-DK.js +2 -1
  11. package/cjs/locales/de-DE.js +2 -1
  12. package/cjs/locales/el-GR.js +2 -1
  13. package/cjs/locales/en-US.js +2 -1
  14. package/cjs/locales/es-ES.js +2 -1
  15. package/cjs/locales/fi-FI.js +2 -1
  16. package/cjs/locales/fr-FR.js +2 -1
  17. package/cjs/locales/he-IL.js +2 -1
  18. package/cjs/locales/hu-HU.js +2 -1
  19. package/cjs/locales/id-ID.js +2 -1
  20. package/cjs/locales/it-IT.js +2 -1
  21. package/cjs/locales/ja-JP.js +2 -1
  22. package/cjs/locales/ko-KR.js +2 -1
  23. package/cjs/locales/ms-MY.js +2 -1
  24. package/cjs/locales/nb-NO.js +2 -1
  25. package/cjs/locales/nl-NL.js +2 -1
  26. package/cjs/locales/pl-PL.js +2 -1
  27. package/cjs/locales/pt-BR.js +2 -1
  28. package/cjs/locales/pt-PT.js +2 -1
  29. package/cjs/locales/ro-RO.js +2 -1
  30. package/cjs/locales/ru-RU.js +2 -1
  31. package/cjs/locales/sv-SE.js +2 -1
  32. package/cjs/locales/th-TH.js +2 -1
  33. package/cjs/locales/tl-PH.js +2 -1
  34. package/cjs/locales/tr-TR.js +2 -1
  35. package/cjs/locales/uk-UA.js +2 -1
  36. package/cjs/locales/vi-VN.js +2 -1
  37. package/cjs/locales/zh-CN.js +2 -1
  38. package/cjs/locales/zh-TW.js +2 -1
  39. package/dist/plesk-ui-library-rtl.css +1 -1
  40. package/dist/plesk-ui-library-rtl.css.map +1 -1
  41. package/dist/plesk-ui-library.css +1 -1
  42. package/dist/plesk-ui-library.css.map +1 -1
  43. package/dist/plesk-ui-library.js +78 -38
  44. package/dist/plesk-ui-library.js.map +1 -1
  45. package/dist/plesk-ui-library.min.js +4 -4
  46. package/dist/plesk-ui-library.min.js.map +1 -1
  47. package/esm/components/Card/PreviewPanel.js +2 -2
  48. package/esm/components/CodeEditor/CodeEditor.js +4 -0
  49. package/esm/components/InputFile/InputFile.js +2 -1
  50. package/esm/components/Layout/Layout.js +1 -1
  51. package/esm/components/Pagination/Pagination.js +4 -1
  52. package/esm/index.js +1 -1
  53. package/esm/locales/ar.js +2 -1
  54. package/esm/locales/ca-ES.js +2 -1
  55. package/esm/locales/cs-CZ.js +2 -1
  56. package/esm/locales/da-DK.js +2 -1
  57. package/esm/locales/de-DE.js +2 -1
  58. package/esm/locales/el-GR.js +2 -1
  59. package/esm/locales/en-US.js +2 -1
  60. package/esm/locales/es-ES.js +2 -1
  61. package/esm/locales/fi-FI.js +2 -1
  62. package/esm/locales/fr-FR.js +2 -1
  63. package/esm/locales/he-IL.js +2 -1
  64. package/esm/locales/hu-HU.js +2 -1
  65. package/esm/locales/id-ID.js +2 -1
  66. package/esm/locales/it-IT.js +2 -1
  67. package/esm/locales/ja-JP.js +2 -1
  68. package/esm/locales/ko-KR.js +2 -1
  69. package/esm/locales/ms-MY.js +2 -1
  70. package/esm/locales/nb-NO.js +2 -1
  71. package/esm/locales/nl-NL.js +2 -1
  72. package/esm/locales/pl-PL.js +2 -1
  73. package/esm/locales/pt-BR.js +2 -1
  74. package/esm/locales/pt-PT.js +2 -1
  75. package/esm/locales/ro-RO.js +2 -1
  76. package/esm/locales/ru-RU.js +2 -1
  77. package/esm/locales/sv-SE.js +2 -1
  78. package/esm/locales/th-TH.js +2 -1
  79. package/esm/locales/tl-PH.js +2 -1
  80. package/esm/locales/tr-TR.js +2 -1
  81. package/esm/locales/uk-UA.js +2 -1
  82. package/esm/locales/vi-VN.js +2 -1
  83. package/esm/locales/zh-CN.js +2 -1
  84. package/esm/locales/zh-TW.js +2 -1
  85. package/package.json +1 -1
  86. package/styleguide/build/bundle.cbbcd468.js +2 -0
  87. package/styleguide/index.html +2 -2
  88. package/styleguide/build/bundle.12369e15.js +0 -2
  89. /package/styleguide/build/{bundle.12369e15.js.LICENSE.txt → bundle.cbbcd468.js.LICENSE.txt} +0 -0
@@ -120,10 +120,10 @@ const PreviewPanel = ({
120
120
  padding: `${padding instanceof Array ? padding.join('px ') : padding}px`
121
121
  };
122
122
  }
123
- return /*#__PURE__*/_jsx("img", {
123
+ return imageProps.src ? /*#__PURE__*/_jsx("img", {
124
124
  className: `${baseClassName}__image`,
125
125
  ...imageProps
126
- });
126
+ }) : null;
127
127
  };
128
128
  return /*#__PURE__*/_jsxs("div", {
129
129
  className: classNames(baseClassName, {
@@ -100,6 +100,10 @@ class CodeEditor extends Component {
100
100
  options
101
101
  } = this.state;
102
102
  this.codeMirror = CodeMirror.fromTextArea(this.textareaNode.current, options);
103
+ const cmInput = this.codeMirror.getInputField();
104
+ if (cmInput && this.props['aria-label']) {
105
+ cmInput.setAttribute('aria-label', this.props['aria-label']);
106
+ }
103
107
  this.codeMirror.on('scroll', this.handleScroll);
104
108
  if (scrollPosition) {
105
109
  this.codeMirror.scrollTo(scrollPosition.left, scrollPosition.top);
@@ -75,7 +75,8 @@ const InputFile = ({
75
75
  "data-testid": testId && `${testId}--file-input`,
76
76
  onFocus: handleFocus,
77
77
  onBlur: handleBlur,
78
- accept: accept
78
+ accept: accept,
79
+ "aria-hidden": true
79
80
  }, id), /*#__PURE__*/_jsx(InternalTranslate, {
80
81
  namespace: "InputFile",
81
82
  content: "browseButton",
@@ -305,7 +305,7 @@ class Layout extends Component {
305
305
  const isMobile = window.matchMedia('(max-width: 768px)').matches;
306
306
  const sidebarOffsetTop = this.headerRef.current?.getBoundingClientRect().height || 0;
307
307
  return /*#__PURE__*/_jsx(CSSTransition, {
308
- in: !rightSidebarVisible,
308
+ in: rightSidebarVisible,
309
309
  timeout: 300,
310
310
  classNames: {
311
311
  enter: `${baseClassName}__right-sidebar--enter`,
@@ -10,6 +10,7 @@ import SegmentedControl from '../SegmentedControl';
10
10
  import Text from '../Text';
11
11
  import { InternalTranslate } from '../Translate';
12
12
  import { safeInvoke } from '../utils';
13
+ import { useInternalTranslate } from '../LocaleProvider';
13
14
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
15
  export const ITEMS_PER_PAGE_OPTIONS = [25, 100, 'all'];
15
16
  const VIEW_DEFAULT = 'default';
@@ -35,6 +36,7 @@ const Pagination = ({
35
36
  ...props
36
37
  }) => {
37
38
  const handleSelect = page => safeInvoke(onSelect, page);
39
+ const translate = useInternalTranslate();
38
40
  const handleItemsPerPageChange = option => safeInvoke(onItemsPerPageChange, option);
39
41
  const pagination = /*#__PURE__*/_jsxs("div", {
40
42
  className: classNames(baseClassName, className),
@@ -55,7 +57,8 @@ const Pagination = ({
55
57
  max: total,
56
58
  decrementIcon: "arrow-left",
57
59
  incrementIcon: "arrow-right",
58
- className: `${baseClassName}__input`
60
+ className: `${baseClassName}__input`,
61
+ "aria-label": translate('Pagination.enterPageNumber')
59
62
  })
60
63
  }), /*#__PURE__*/_jsx(InternalTranslate, {
61
64
  content: "Pagination.totalShort",
package/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // Copyright 1999-2025. WebPros International GmbH. All rights reserved.
2
2
  import svg4everybody from 'svg4everybody';
3
- const version = "3.46.3";
3
+ const version = "3.46.4";
4
4
  export * from './publicPath';
5
5
  export { version };
6
6
  export * from './utils';
package/esm/locales/ar.js CHANGED
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'من %%total%%',
141
141
  itemsPerPage: 'عدد العناصر في كل صفحة',
142
142
  all: 'الكل',
143
- total: 'صفحة %%current%% من %%total%%'
143
+ total: 'صفحة %%current%% من %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'de %%total%%',
141
141
  itemsPerPage: 'Elements per pàgina',
142
142
  all: 'Tot',
143
- total: 'Pàgina %%current%% de %%total%%'
143
+ total: 'Pàgina %%current%% de %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'z %%total%%',
141
141
  itemsPerPage: 'Položek na stránku',
142
142
  all: 'Všechny',
143
- total: 'Stránka %%current%% z %%total%%'
143
+ total: 'Stránka %%current%% z %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'af %%total%%',
141
141
  itemsPerPage: 'Elementer pr. side',
142
142
  all: 'Alle',
143
- total: 'Side %%current%% af %%total%%'
143
+ total: 'Side %%current%% af %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'von %%total%%',
141
141
  itemsPerPage: 'Elemente pro Seite',
142
142
  all: 'Alle',
143
- total: 'Seite %%current%% von %%total%%'
143
+ total: 'Seite %%current%% von %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'από %%total%%',
141
141
  itemsPerPage: 'Στοιχεία ανά σελίδα',
142
142
  all: 'Όλες',
143
- total: 'Σελίδα %%current%% από %%total%%'
143
+ total: 'Σελίδα %%current%% από %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'of %%total%%',
141
141
  itemsPerPage: 'Items per page',
142
142
  all: 'All',
143
- total: 'Page %%current%% of %%total%%'
143
+ total: 'Page %%current%% of %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'of %%total%%',
141
141
  itemsPerPage: 'Elementos por página',
142
142
  all: 'Todo',
143
- total: 'Página %%current%% de %%total%%'
143
+ total: 'Página %%current%% de %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: '/%%total%%',
141
141
  itemsPerPage: 'Kohdetta per sivu',
142
142
  all: 'Kaikki',
143
- total: 'Sivu %%current%%/%%total%%'
143
+ total: 'Sivu %%current%%/%%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'sur %%total%%',
141
141
  itemsPerPage: 'Éléments par page',
142
142
  all: 'Tous',
143
- total: 'Page %%current%% sur %%total%%'
143
+ total: 'Page %%current%% sur %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'מתוך %%total%%',
141
141
  itemsPerPage: 'פריטים בכל דף',
142
142
  all: 'הכול',
143
- total: 'דף %%current%% מתוך %%total%%'
143
+ total: 'דף %%current%% מתוך %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: '/ %%total%%',
141
141
  itemsPerPage: 'Elem oldalanként',
142
142
  all: 'Az összes',
143
- total: '%%current%% / %%total%% oldal'
143
+ total: '%%current%% / %%total%% oldal',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'dari %%total%%',
141
141
  itemsPerPage: 'Item per halaman',
142
142
  all: 'Semua',
143
- total: 'Halaman %%current%% dari %%total%%'
143
+ total: 'Halaman %%current%% dari %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'di %%total%%',
141
141
  itemsPerPage: 'Elementi per pagina',
142
142
  all: 'Tutti',
143
- total: 'Pagina %%current%% di %%total%%'
143
+ total: 'Pagina %%current%% di %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: '/ %%total%%',
141
141
  itemsPerPage: 'ページあたりのアイテム数',
142
142
  all: 'すべて',
143
- total: '%%current%% / %%total%% ページ'
143
+ total: '%%current%% / %%total%% ページ',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: '/%%total%%',
141
141
  itemsPerPage: '페이지당 아이템',
142
142
  all: '전체',
143
- total: '%%current%%/%%total%%페이지'
143
+ total: '%%current%%/%%total%%페이지',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'of %%total%%',
141
141
  itemsPerPage: 'Items per page',
142
142
  all: 'All',
143
- total: 'Page %%current%% of %%total%%'
143
+ total: 'Page %%current%% of %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'av %%total%%',
141
141
  itemsPerPage: 'Elementer per side',
142
142
  all: 'Alle',
143
- total: 'Side %%current%% av %%total%%'
143
+ total: 'Side %%current%% av %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'van %%total%%',
141
141
  itemsPerPage: 'Items per pagina',
142
142
  all: 'Alles',
143
- total: 'Pagina %%current%% van %%total%%'
143
+ total: 'Pagina %%current%% van %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'z %%total%%',
141
141
  itemsPerPage: 'Elementów na stronę',
142
142
  all: 'Wszystkie',
143
- total: 'Strona %%current%% z %%total%%'
143
+ total: 'Strona %%current%% z %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'de %%total%%',
141
141
  itemsPerPage: 'Itens por página',
142
142
  all: 'Todas',
143
- total: 'Página %%current%% de %%total%%'
143
+ total: 'Página %%current%% de %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'de %%total%%',
141
141
  itemsPerPage: 'Artigos por página',
142
142
  all: 'Tudo',
143
- total: 'Página %%current%% de %%total%%'
143
+ total: 'Página %%current%% de %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'din %%total%%',
141
141
  itemsPerPage: 'Elem. pe pagină',
142
142
  all: 'Toate',
143
- total: 'Pagina %%current%% din %%total%%'
143
+ total: 'Pagina %%current%% din %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'из %%total%%',
141
141
  itemsPerPage: 'Элементов на странице',
142
142
  all: 'Все',
143
- total: 'Страница %%current%% из %%total%%'
143
+ total: 'Страница %%current%% из %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'av %%total%%',
141
141
  itemsPerPage: 'Objekt per sida',
142
142
  all: 'Alla',
143
- total: 'Sida %%current%% av %%total%%'
143
+ total: 'Sida %%current%% av %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'จาก %%total%%',
141
141
  itemsPerPage: 'รายการต่อหน้า',
142
142
  all: 'ทั้งหมด',
143
- total: 'หน้า %%current%% จาก %%total%%'
143
+ total: 'หน้า %%current%% จาก %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'of %%total%%',
141
141
  itemsPerPage: 'Items per page',
142
142
  all: 'All',
143
- total: 'Page %%current%% of %%total%%'
143
+ total: 'Page %%current%% of %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: '/%%total%%',
141
141
  itemsPerPage: 'Sayfa başına öğe',
142
142
  all: 'Hepsi',
143
- total: 'Sayfa %%current%%/%%total%%'
143
+ total: 'Sayfa %%current%%/%%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'з %%total%%',
141
141
  itemsPerPage: 'Елементів на сторінку',
142
142
  all: 'Усі',
143
- total: 'Сторінка %%current%% з %%total%%'
143
+ total: 'Сторінка %%current%% з %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: 'trên %%total%%',
141
141
  itemsPerPage: 'Mục mỗi trang',
142
142
  all: 'Tất cả',
143
- total: 'Trang %%current%% trên %%total%%'
143
+ total: 'Trang %%current%% trên %%total%%',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: '%%total%%',
141
141
  itemsPerPage: '每页的项目',
142
142
  all: '所有',
143
- total: '第 %%current%% 页(共计 %%total%% 页)'
143
+ total: '第 %%current%% 页(共计 %%total%% 页)',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
@@ -140,7 +140,8 @@ export default {
140
140
  totalShort: '共 %%total%% 項',
141
141
  itemsPerPage: '每頁的項目',
142
142
  all: '全部',
143
- total: '第 %%current%% 頁,共 %%total%% 頁'
143
+ total: '第 %%current%% 頁,共 %%total%% 頁',
144
+ enterPageNumber: 'Enter page number'
144
145
  },
145
146
  Popover: {
146
147
  closeButton: 'Close'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plesk/ui-library",
3
- "version": "3.46.3",
3
+ "version": "3.46.4",
4
4
  "description": "Plesk UI Library",
5
5
  "main": "index.js",
6
6
  "module": "esm/index.js",