@plesk/ui-library 3.40.10 → 3.40.12

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.
@@ -4,7 +4,7 @@
4
4
  <meta charset="utf-8">
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
6
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
7
- <title>Plesk UI Library 3.40.10</title>
7
+ <title>Plesk UI Library 3.40.12</title>
8
8
  <meta name="msapplication-TileColor" content="#da532c">
9
9
  <meta name="theme-color" content="#ffffff">
10
10
  <link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
@@ -26,6 +26,6 @@
26
26
  <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KWST26V"
27
27
  height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
28
28
  <!-- End Google Tag Manager (noscript) -->
29
- <script src="build/bundle.2d1a02e1.js"></script>
29
+ <script src="build/bundle.0d8a8996.js"></script>
30
30
  </body>
31
31
  </html>
@@ -20,7 +20,7 @@ export type CuttableProps = {
20
20
  * Localization messages
21
21
  * @since 0.0.42
22
22
  */
23
- locale: {
23
+ locale?: {
24
24
  showMore: string;
25
25
  showLess: string;
26
26
  };
@@ -23,7 +23,7 @@ export type FormFieldPasswordProps = {
23
23
  * Additional props for password meter. See [Popover](#!/Popover) for more information.
24
24
  * @since 1.5.6
25
25
  */
26
- passwordMeterProps?: PasswordMeterProps;
26
+ passwordMeterProps?: Omit<PasswordMeterProps, 'children' | 'value' | 'visible' | 'onClose' | 'targetRef'>;
27
27
  /**
28
28
  * Size of the control
29
29
  * @since 1.5.6
@@ -0,0 +1,8 @@
1
+ interface EditorProps {
2
+ value?: string;
3
+ onSave: (value: string) => void;
4
+ onCancel: () => void;
5
+ baseClassName: string;
6
+ }
7
+ declare const Editor: ({ value: initialValue, onSave, onCancel, baseClassName }: EditorProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default Editor;
@@ -1,4 +1,4 @@
1
- import { ChangeEvent, Component, ReactNode, KeyboardEvent, HTMLAttributes } from 'react';
1
+ import { ReactNode, HTMLAttributes } from 'react';
2
2
  import './InPlaceEdit.less';
3
3
  export interface InPlaceEditProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
4
4
  /**
@@ -20,31 +20,11 @@ export interface InPlaceEditProps extends Omit<HTMLAttributes<HTMLDivElement>, '
20
20
  */
21
21
  baseClassName?: string;
22
22
  }
23
- type InPlaceEditState = {
24
- editing: boolean;
25
- draft: ReactNode;
26
- };
27
23
  /**
28
24
  * This component allows users to edit a short text "in place" — in other words, straight in the interface, without
29
25
  * opening additional dialog windows. If a text is large enough that it doesn't fit on a single line, you should
30
26
  * give users a different way of editing the text.
31
27
  * @since 1.8.3
32
28
  */
33
- declare class InPlaceEdit extends Component<InPlaceEditProps, InPlaceEditState> {
34
- static defaultProps: {
35
- value: null;
36
- onChange: null;
37
- className: null;
38
- baseClassName: string;
39
- };
40
- state: {
41
- editing: boolean;
42
- draft: string;
43
- };
44
- handleEdit: () => void;
45
- handleEditKey: (event: KeyboardEvent<HTMLInputElement>) => void;
46
- handleChange: (event: ChangeEvent<HTMLInputElement>) => void;
47
- handleEditOk: () => void;
48
- render(): import("react/jsx-runtime").JSX.Element;
49
- }
29
+ declare const InPlaceEdit: ({ baseClassName, className, onChange, value, ...props }: InPlaceEditProps) => import("react/jsx-runtime").JSX.Element;
50
30
  export default InPlaceEdit;
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ editButtonHint: string;
3
+ okButtonHint: string;
4
+ cancelButtonHint: string;
5
+ };
6
+ export default _default;
@@ -34,13 +34,25 @@ type ListRowData<T extends ListData> = T & {
34
34
  className?: string;
35
35
  };
36
36
  export type ListColumn<T extends ListData> = {
37
+ /**
38
+ * Unique column key.
39
+ */
37
40
  key: string;
41
+ /**
42
+ * Column title.
43
+ */
38
44
  title?: ReactNode;
45
+ /**
46
+ * Optional cell renderer function: row => Component. By default render value of cell.
47
+ */
39
48
  render?: (row: ListRowData<T>, opts?: {
40
49
  parent?: ListRowData<T>;
41
50
  }) => ReactNode | {
42
51
  children: ReactNode;
43
52
  };
53
+ /**
54
+ * Is column sortable. Default is false
55
+ */
44
56
  sortable?: boolean;
45
57
  /**
46
58
  * Optional function for row comparison: `(row1, row2) => -1 | 0 | 1`
@@ -78,6 +90,19 @@ export interface ListProps<T extends ListData> {
78
90
  *
79
91
  * In addition to the properties described below, you can use any native properties
80
92
  * supported by the `TH` element like `className`, `style`, etc.
93
+ *
94
+ * - key: string - Required - Unique column key.
95
+ * - title: ReactNode - Column title.
96
+ * - render: func - Optional cell renderer function: row => Component. By default render value of cell.
97
+ * - sortable: boolean - Is column sortable. Default is false.
98
+ * - sort: func - Optional function for row comparison: (row1, row2) => number.
99
+ * - align: 'left' | 'center' | 'right' - Column alignment. Default is 'left'.
100
+ * - truncate: boolean - Truncate the text in cell with an ellipsis. Default is false.
101
+ * - type: 'title' | 'controls' | 'actions' - Determine type of column content.
102
+ * - title - There should a title of the row.
103
+ * - controls - There should be some control: a button or a dropdown.
104
+ * - actions - There should be the ListAction component.
105
+ * - width: number | string - Column width. Default is auto.
81
106
  * @since 0.0.42
82
107
  */
83
108
  columns: ListColumn<T>[];
@@ -338,6 +363,7 @@ declare class List<T extends ListData> extends Component<ListProps<T>, ListState
338
363
  suppressContentEditableWarning?: boolean | undefined;
339
364
  suppressHydrationWarning?: boolean | undefined;
340
365
  accessKey?: string | undefined;
366
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | (string & {}) | undefined;
341
367
  autoFocus?: boolean | undefined;
342
368
  className?: string | undefined;
343
369
  contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
@@ -368,7 +394,6 @@ declare class List<T extends ListData> extends Component<ListProps<T>, ListState
368
394
  rev?: string | undefined;
369
395
  typeof?: string | undefined;
370
396
  vocab?: string | undefined;
371
- autoCapitalize?: string | undefined;
372
397
  autoCorrect?: string | undefined;
373
398
  autoSave?: string | undefined;
374
399
  color?: string | undefined;
@@ -379,7 +404,7 @@ declare class List<T extends ListData> extends Component<ListProps<T>, ListState
379
404
  itemRef?: string | undefined;
380
405
  results?: number | undefined;
381
406
  security?: string | undefined;
382
- unselectable?: "on" | "off" | undefined;
407
+ unselectable?: "off" | "on" | undefined;
383
408
  inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
384
409
  is?: string | undefined;
385
410
  "aria-activedescendant"?: string | undefined;
@@ -603,8 +628,8 @@ declare class List<T extends ListData> extends Component<ListProps<T>, ListState
603
628
  };
604
629
  isRowExpanded(row: ListRowData<T>): boolean;
605
630
  isRowExpandable(row: ListRowData<T>): boolean;
606
- isAllRowsChecked: (this: any, rows: any, selectedKeys: any) => boolean;
607
- isAnyRowsExpanded: (this: any, rows: any, expandedRows: any) => boolean;
631
+ isAllRowsChecked: import("memoize-one").MemoizedFn<(this: any, rows: any, selectedKeys: any) => boolean>;
632
+ isAnyRowsExpanded: import("memoize-one").MemoizedFn<(this: any, rows: any, expandedRows: any) => boolean>;
608
633
  handleRowExpandingChange(row: ListRowData<T>): void;
609
634
  handleGlobalExpandingChange: () => void;
610
635
  createRowClickHandler: (row: ListRowData<T>) => (e: SyntheticEvent<HTMLElement, MouseEvent>) => void;
@@ -45,7 +45,7 @@ export type PageHeaderProps = {
45
45
  * @since 2.3.0
46
46
  */
47
47
  tabs?: ReactNode;
48
- } & HTMLProps<HTMLDivElement> & DataAttributes;
48
+ } & Omit<HTMLProps<HTMLDivElement>, 'title'> & DataAttributes;
49
49
  /**
50
50
  * `PageHeader` component is used for identification of the current page.
51
51
  * @since 0.0.35