@plesk/ui-library 3.25.6 → 3.27.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/README.md +35 -35
- package/cjs/components/Action/Action.js +3 -3
- package/cjs/components/Button/Button.js +50 -50
- package/cjs/components/Checkbox/Checkbox.js +3 -3
- package/cjs/components/CodeEditor/CodeEditor.js +40 -40
- package/cjs/components/Dialog/Dialog.js +63 -63
- package/cjs/components/Drawer/Drawer.js +100 -90
- package/cjs/components/Drawer/DrawerProgress.js +17 -14
- package/cjs/components/Drawer/Header.js +11 -4
- package/cjs/components/Form/Form.js +4 -4
- package/cjs/components/FormField/FormField.js +87 -82
- package/cjs/components/FormFieldCheckbox/FormFieldCheckbox.js +26 -26
- package/cjs/components/FormFieldPassword/FormFieldPassword.js +34 -34
- package/cjs/components/FormFieldRadioButtons/FormFieldRadioButtons.js +32 -32
- package/cjs/components/FormFieldSelect/FormFieldSelect.js +1 -1
- package/cjs/components/Icon/Icon.js +6 -6
- package/cjs/components/Icon/constants.js +2 -2
- package/cjs/components/Icon/images/symbols.svg +1653 -1639
- package/cjs/components/InputNumber/InputNumber.js +3 -3
- package/cjs/components/Item/Item.js +50 -41
- package/cjs/components/ItemLink/ItemLink.js +1 -0
- package/cjs/components/ItemList/ItemList.js +43 -12
- package/cjs/components/ItemList/ItemList.stories.js +35 -3
- package/cjs/components/Layout/Layout.js +55 -55
- package/cjs/components/List/List.js +139 -134
- package/cjs/components/LocaleProvider/LocaleProvider.js +3 -3
- package/cjs/components/Menu/MenuBaseItem.js +19 -19
- package/cjs/components/Overlay/Overlay.js +34 -34
- package/cjs/components/Pagination/Pagination.js +3 -3
- package/cjs/components/Panel/Panel.js +14 -4
- package/cjs/components/Popper/Popper.js +30 -30
- package/cjs/components/ProgressStep/ProgressStep.js +16 -14
- package/cjs/components/Section/Section.js +128 -68
- package/cjs/components/Select/Select.js +9 -9
- package/cjs/components/Select/SelectControl.js +1 -1
- package/cjs/components/Tabs/Tab.js +28 -28
- package/cjs/components/Tabs/Tabs.js +33 -33
- package/cjs/components/Translate/Translate.js +25 -25
- package/cjs/index.js +1 -1
- package/dist/images/symbols.svg +1653 -1639
- package/dist/plesk-ui-library-rtl.css +1 -1
- package/dist/plesk-ui-library-rtl.css.map +1 -1
- package/dist/plesk-ui-library.css +1 -1
- package/dist/plesk-ui-library.css.map +1 -1
- package/dist/plesk-ui-library.js +1116 -970
- package/dist/plesk-ui-library.js.map +1 -1
- package/dist/plesk-ui-library.min.js +5 -5
- package/dist/plesk-ui-library.min.js.map +1 -1
- package/esm/components/Action/Action.js +3 -3
- package/esm/components/Button/Button.js +50 -50
- package/esm/components/Checkbox/Checkbox.js +3 -3
- package/esm/components/CodeEditor/CodeEditor.js +40 -40
- package/esm/components/Dialog/Dialog.js +63 -63
- package/esm/components/Drawer/Drawer.js +100 -89
- package/esm/components/Drawer/DrawerProgress.js +16 -15
- package/esm/components/Drawer/Header.js +11 -4
- package/esm/components/Form/Form.js +4 -4
- package/esm/components/FormField/FormField.js +87 -82
- package/esm/components/FormFieldCheckbox/FormFieldCheckbox.js +26 -26
- package/esm/components/FormFieldPassword/FormFieldPassword.js +34 -34
- package/esm/components/FormFieldRadioButtons/FormFieldRadioButtons.js +32 -32
- package/esm/components/FormFieldSelect/FormFieldSelect.js +1 -1
- package/esm/components/Icon/Icon.js +6 -6
- package/esm/components/Icon/constants.js +2 -2
- package/esm/components/Icon/images/symbols.svg +1653 -1639
- package/esm/components/InputNumber/InputNumber.js +3 -3
- package/esm/components/Item/Item.js +50 -41
- package/esm/components/ItemLink/ItemLink.js +1 -0
- package/esm/components/ItemList/ItemList.js +43 -12
- package/esm/components/ItemList/ItemList.stories.js +32 -2
- package/esm/components/Layout/Layout.js +55 -55
- package/esm/components/List/List.js +139 -134
- package/esm/components/LocaleProvider/LocaleProvider.js +3 -3
- package/esm/components/Menu/MenuBaseItem.js +19 -19
- package/esm/components/Overlay/Overlay.js +34 -34
- package/esm/components/Pagination/Pagination.js +3 -3
- package/esm/components/Panel/Panel.js +14 -5
- package/esm/components/Popper/Popper.js +30 -30
- package/esm/components/ProgressStep/ProgressStep.js +17 -15
- package/esm/components/Section/Section.js +129 -72
- package/esm/components/Select/Select.js +9 -9
- package/esm/components/Select/SelectControl.js +1 -1
- package/esm/components/Tabs/Tab.js +28 -28
- package/esm/components/Tabs/Tabs.js +33 -33
- package/esm/components/Translate/Translate.js +25 -25
- package/esm/index.js +1 -1
- package/package.json +146 -146
- package/styleguide/build/bundle.ff1f903a.js +2 -0
- package/styleguide/build/{bundle.b7db9339.js.LICENSE.txt → bundle.ff1f903a.js.LICENSE.txt} +0 -0
- package/styleguide/images/symbols.svg +1653 -1639
- package/styleguide/index.html +6 -6
- package/types/src/components/Drawer/DrawerProgress.d.ts +7 -2
- package/types/src/components/Icon/constants.d.ts +1 -1
- package/types/src/components/ItemLink/ItemLink.d.ts +4 -0
- package/types/src/components/ItemLink/ItemLink.stories.d.ts +1 -0
- package/types/src/components/ItemList/ItemList.d.ts +8 -0
- package/types/src/components/ItemList/ItemList.stories.d.ts +104 -0
- package/styleguide/build/bundle.b7db9339.js +0 -2
|
@@ -168,10 +168,10 @@ const getHumanTotalRows = ({
|
|
|
168
168
|
return null;
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
|
-
/**
|
|
172
|
-
* `List` component is used for displaying a collection of tabular data.
|
|
173
|
-
* [More details about designing of lists.](#!/Sets%20of%20Objects)
|
|
174
|
-
* @since 0.0.42
|
|
171
|
+
/**
|
|
172
|
+
* `List` component is used for displaying a collection of tabular data.
|
|
173
|
+
* [More details about designing of lists.](#!/Sets%20of%20Objects)
|
|
174
|
+
* @since 0.0.42
|
|
175
175
|
*/
|
|
176
176
|
|
|
177
177
|
|
|
@@ -892,9 +892,14 @@ class List extends _react.Component {
|
|
|
892
892
|
|
|
893
893
|
if (totalRows && /*#__PURE__*/(0, _react.isValidElement)(pagination)) {
|
|
894
894
|
const {
|
|
895
|
-
itemsPerPageOptions = _Pagination.ITEMS_PER_PAGE_OPTIONS
|
|
895
|
+
itemsPerPageOptions = _Pagination.ITEMS_PER_PAGE_OPTIONS,
|
|
896
|
+
itemsPerPage
|
|
896
897
|
} = pagination.props;
|
|
897
898
|
|
|
899
|
+
if (Number.isInteger(itemsPerPage)) {
|
|
900
|
+
return totalRows > itemsPerPage;
|
|
901
|
+
}
|
|
902
|
+
|
|
898
903
|
if (Array.isArray(itemsPerPageOptions)) {
|
|
899
904
|
const numericOptions = itemsPerPageOptions.filter(v => Number(v) === v);
|
|
900
905
|
|
|
@@ -1347,214 +1352,214 @@ class List extends _react.Component {
|
|
|
1347
1352
|
}
|
|
1348
1353
|
|
|
1349
1354
|
List.propTypes = {
|
|
1350
|
-
/**
|
|
1351
|
-
* Columns definition.
|
|
1352
|
-
*
|
|
1353
|
-
* In addition to the properties described below, you can use any native properties
|
|
1354
|
-
* supported by the `TH` element like `className`, `style`, etc.
|
|
1355
|
-
* @since 0.0.42
|
|
1355
|
+
/**
|
|
1356
|
+
* Columns definition.
|
|
1357
|
+
*
|
|
1358
|
+
* In addition to the properties described below, you can use any native properties
|
|
1359
|
+
* supported by the `TH` element like `className`, `style`, etc.
|
|
1360
|
+
* @since 0.0.42
|
|
1356
1361
|
*/
|
|
1357
1362
|
columns: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
1358
|
-
/**
|
|
1359
|
-
* Unique column key.
|
|
1363
|
+
/**
|
|
1364
|
+
* Unique column key.
|
|
1360
1365
|
*/
|
|
1361
1366
|
key: _propTypes.default.string.isRequired,
|
|
1362
1367
|
|
|
1363
|
-
/**
|
|
1364
|
-
* Column title.
|
|
1368
|
+
/**
|
|
1369
|
+
* Column title.
|
|
1365
1370
|
*/
|
|
1366
1371
|
title: _propTypes.default.node,
|
|
1367
1372
|
|
|
1368
|
-
/**
|
|
1369
|
-
* Optional cell renderer function: `row => Component`. By default render value of cell.
|
|
1370
|
-
* The renderer function can also returns a configuration object like: `{children: 'cell content', colSpan: 3}`
|
|
1373
|
+
/**
|
|
1374
|
+
* Optional cell renderer function: `row => Component`. By default render value of cell.
|
|
1375
|
+
* The renderer function can also returns a configuration object like: `{children: 'cell content', colSpan: 3}`
|
|
1371
1376
|
*/
|
|
1372
1377
|
render: _propTypes.default.func,
|
|
1373
1378
|
|
|
1374
|
-
/**
|
|
1375
|
-
* Is column sortable.
|
|
1376
|
-
* Default is `false`
|
|
1379
|
+
/**
|
|
1380
|
+
* Is column sortable.
|
|
1381
|
+
* Default is `false`
|
|
1377
1382
|
*/
|
|
1378
1383
|
sortable: _propTypes.default.bool,
|
|
1379
1384
|
|
|
1380
|
-
/**
|
|
1381
|
-
* Optional function for row comparison: `(row1, row2) => -1 | 0 | 1`
|
|
1385
|
+
/**
|
|
1386
|
+
* Optional function for row comparison: `(row1, row2) => -1 | 0 | 1`
|
|
1382
1387
|
*/
|
|
1383
1388
|
sort: _propTypes.default.func,
|
|
1384
1389
|
|
|
1385
|
-
/**
|
|
1386
|
-
* Column alignment.
|
|
1390
|
+
/**
|
|
1391
|
+
* Column alignment.
|
|
1387
1392
|
*/
|
|
1388
1393
|
align: _propTypes.default.oneOf(['left', 'center', 'right']),
|
|
1389
1394
|
|
|
1390
|
-
/**
|
|
1391
|
-
* Truncate the text in cell with an ellipsis.
|
|
1395
|
+
/**
|
|
1396
|
+
* Truncate the text in cell with an ellipsis.
|
|
1392
1397
|
*/
|
|
1393
1398
|
truncate: _propTypes.default.bool,
|
|
1394
1399
|
|
|
1395
|
-
/**
|
|
1396
|
-
* Determine type of column content.
|
|
1397
|
-
*
|
|
1398
|
-
* * title - There should a title of the row.
|
|
1399
|
-
* * controls - There should be some control: a button or a dropdown.
|
|
1400
|
-
* * actions - There should be the ListAction component.
|
|
1400
|
+
/**
|
|
1401
|
+
* Determine type of column content.
|
|
1402
|
+
*
|
|
1403
|
+
* * title - There should a title of the row.
|
|
1404
|
+
* * controls - There should be some control: a button or a dropdown.
|
|
1405
|
+
* * actions - There should be the ListAction component.
|
|
1401
1406
|
*/
|
|
1402
1407
|
type: _propTypes.default.oneOf(['title', 'controls', 'actions'])
|
|
1403
1408
|
})).isRequired,
|
|
1404
1409
|
|
|
1405
|
-
/**
|
|
1406
|
-
* Array of row objects.
|
|
1407
|
-
*
|
|
1408
|
-
* Each row must contains `key` property, all columns keys, and can contain `disabled` property.
|
|
1409
|
-
* @since 0.0.42
|
|
1410
|
+
/**
|
|
1411
|
+
* Array of row objects.
|
|
1412
|
+
*
|
|
1413
|
+
* Each row must contains `key` property, all columns keys, and can contain `disabled` property.
|
|
1414
|
+
* @since 0.0.42
|
|
1410
1415
|
*/
|
|
1411
1416
|
data: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
1412
|
-
/**
|
|
1413
|
-
* Unique column key. This property can by renamed using `rowKey` property of List.
|
|
1417
|
+
/**
|
|
1418
|
+
* Unique column key. This property can by renamed using `rowKey` property of List.
|
|
1414
1419
|
*/
|
|
1415
1420
|
key: _propTypes.default.string,
|
|
1416
1421
|
|
|
1417
|
-
/**
|
|
1418
|
-
* Optional property for disabling ability to select this row.
|
|
1422
|
+
/**
|
|
1423
|
+
* Optional property for disabling ability to select this row.
|
|
1419
1424
|
*/
|
|
1420
1425
|
disabled: _propTypes.default.bool,
|
|
1421
1426
|
|
|
1422
|
-
/**
|
|
1423
|
-
* Optional array of children rows.
|
|
1427
|
+
/**
|
|
1428
|
+
* Optional array of children rows.
|
|
1424
1429
|
*/
|
|
1425
1430
|
data: _propTypes.default.array
|
|
1426
1431
|
})),
|
|
1427
1432
|
|
|
1428
|
-
/**
|
|
1429
|
-
* Current sort column key
|
|
1430
|
-
* @since 0.0.42
|
|
1433
|
+
/**
|
|
1434
|
+
* Current sort column key
|
|
1435
|
+
* @since 0.0.42
|
|
1431
1436
|
*/
|
|
1432
1437
|
sortColumn: _propTypes.default.string,
|
|
1433
1438
|
|
|
1434
|
-
/**
|
|
1435
|
-
* Sort direction of the column being sorted.
|
|
1436
|
-
* @since 0.0.42
|
|
1439
|
+
/**
|
|
1440
|
+
* Sort direction of the column being sorted.
|
|
1441
|
+
* @since 0.0.42
|
|
1437
1442
|
*/
|
|
1438
1443
|
sortDirection: _propTypes.default.oneOf(['ASC', 'DESC']),
|
|
1439
1444
|
|
|
1440
|
-
/**
|
|
1441
|
-
* Sort change handler
|
|
1442
|
-
* @since 0.0.42
|
|
1445
|
+
/**
|
|
1446
|
+
* Sort change handler
|
|
1447
|
+
* @since 0.0.42
|
|
1443
1448
|
*/
|
|
1444
1449
|
onSortChange: _propTypes.default.func,
|
|
1445
1450
|
|
|
1446
|
-
/**
|
|
1447
|
-
* Array of keys of selected rows
|
|
1448
|
-
* @since 0.0.42
|
|
1451
|
+
/**
|
|
1452
|
+
* Array of keys of selected rows
|
|
1453
|
+
* @since 0.0.42
|
|
1449
1454
|
*/
|
|
1450
1455
|
selection: _propTypes.default.array,
|
|
1451
1456
|
|
|
1452
|
-
/**
|
|
1453
|
-
* Selection change handler for list. Checkboxes will only be rendered if this prop is defined.
|
|
1454
|
-
* @since 0.0.42
|
|
1457
|
+
/**
|
|
1458
|
+
* Selection change handler for list. Checkboxes will only be rendered if this prop is defined.
|
|
1459
|
+
* @since 0.0.42
|
|
1455
1460
|
*/
|
|
1456
1461
|
onSelectionChange: _propTypes.default.func,
|
|
1457
1462
|
|
|
1458
|
-
/**
|
|
1459
|
-
* Renderer for a selection checkbox. Allow to replace checkboxes in the List by a custom implementation.
|
|
1460
|
-
* @since 3.19.0
|
|
1463
|
+
/**
|
|
1464
|
+
* Renderer for a selection checkbox. Allow to replace checkboxes in the List by a custom implementation.
|
|
1465
|
+
* @since 3.19.0
|
|
1461
1466
|
*/
|
|
1462
1467
|
renderSelectionCheckbox: _propTypes.default.func,
|
|
1463
1468
|
|
|
1464
|
-
/**
|
|
1465
|
-
* Row's key getter. Could be a string or function like: `row => <unique_string>`
|
|
1466
|
-
* @since 0.0.45
|
|
1469
|
+
/**
|
|
1470
|
+
* Row's key getter. Could be a string or function like: `row => <unique_string>`
|
|
1471
|
+
* @since 0.0.45
|
|
1467
1472
|
*/
|
|
1468
1473
|
rowKey: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.func]),
|
|
1469
1474
|
|
|
1470
|
-
/**
|
|
1471
|
-
* Renderer for a row body. Should return ReactNode.
|
|
1472
|
-
* @since 1.12.0
|
|
1475
|
+
/**
|
|
1476
|
+
* Renderer for a row body. Should return ReactNode.
|
|
1477
|
+
* @since 1.12.0
|
|
1473
1478
|
*/
|
|
1474
1479
|
renderRowBody: _propTypes.default.func,
|
|
1475
1480
|
|
|
1476
|
-
/**
|
|
1477
|
-
* Array of keys of expanded rows
|
|
1478
|
-
* @since 1.12.0
|
|
1481
|
+
/**
|
|
1482
|
+
* Array of keys of expanded rows
|
|
1483
|
+
* @since 1.12.0
|
|
1479
1484
|
*/
|
|
1480
1485
|
expandedRows: _propTypes.default.array,
|
|
1481
1486
|
|
|
1482
|
-
/**
|
|
1483
|
-
* Array of keys of rows which not have expand indicator
|
|
1484
|
-
* @since 1.12.0
|
|
1487
|
+
/**
|
|
1488
|
+
* Array of keys of rows which not have expand indicator
|
|
1489
|
+
* @since 1.12.0
|
|
1485
1490
|
*/
|
|
1486
1491
|
notExpandableRows: _propTypes.default.array,
|
|
1487
1492
|
|
|
1488
|
-
/**
|
|
1489
|
-
* Rows expanding change handler.
|
|
1490
|
-
* @since 1.12.0
|
|
1493
|
+
/**
|
|
1494
|
+
* Rows expanding change handler.
|
|
1495
|
+
* @since 1.12.0
|
|
1491
1496
|
*/
|
|
1492
1497
|
onExpandedRowsChange: _propTypes.default.func,
|
|
1493
1498
|
|
|
1494
|
-
/**
|
|
1495
|
-
* Array of keys of loading rows. They are displayed instead of checkboxes.
|
|
1496
|
-
* @since 2.5.0
|
|
1499
|
+
/**
|
|
1500
|
+
* Array of keys of loading rows. They are displayed instead of checkboxes.
|
|
1501
|
+
* @since 2.5.0
|
|
1497
1502
|
*/
|
|
1498
1503
|
loadingRows: _propTypes.default.array,
|
|
1499
1504
|
|
|
1500
|
-
/**
|
|
1501
|
-
* A `Pagination` element. It displays at the top and the bottom of the list. When pagination is defined, the built-in sort is disabled.
|
|
1502
|
-
* @since 2.4.0
|
|
1505
|
+
/**
|
|
1506
|
+
* A `Pagination` element. It displays at the top and the bottom of the list. When pagination is defined, the built-in sort is disabled.
|
|
1507
|
+
* @since 2.4.0
|
|
1503
1508
|
*/
|
|
1504
1509
|
pagination: _propTypes.default.node,
|
|
1505
1510
|
|
|
1506
|
-
/**
|
|
1507
|
-
* Total rows count, including nested rows. Usually, it uses together with pagination.
|
|
1508
|
-
* @since 2.4.0
|
|
1511
|
+
/**
|
|
1512
|
+
* Total rows count, including nested rows. Usually, it uses together with pagination.
|
|
1513
|
+
* @since 2.4.0
|
|
1509
1514
|
*/
|
|
1510
1515
|
totalRows: _propTypes.default.number,
|
|
1511
1516
|
|
|
1512
|
-
/**
|
|
1513
|
-
* A `Toolbar` element.
|
|
1514
|
-
* @since 2.4.0
|
|
1517
|
+
/**
|
|
1518
|
+
* A `Toolbar` element.
|
|
1519
|
+
* @since 2.4.0
|
|
1515
1520
|
*/
|
|
1516
1521
|
toolbar: _propTypes.default.node,
|
|
1517
1522
|
|
|
1518
|
-
/**
|
|
1519
|
-
* A flag that all rows are selected.
|
|
1520
|
-
* @since 2.4.0
|
|
1523
|
+
/**
|
|
1524
|
+
* A flag that all rows are selected.
|
|
1525
|
+
* @since 2.4.0
|
|
1521
1526
|
*/
|
|
1522
1527
|
allRowsSelected: _propTypes.default.bool,
|
|
1523
1528
|
|
|
1524
|
-
/**
|
|
1525
|
-
* A callback executed when the allRowsSelected prop is changed.
|
|
1526
|
-
* @since 2.4.0
|
|
1529
|
+
/**
|
|
1530
|
+
* A callback executed when the allRowsSelected prop is changed.
|
|
1531
|
+
* @since 2.4.0
|
|
1527
1532
|
*/
|
|
1528
1533
|
onAllRowsSelectedChange: _propTypes.default.func,
|
|
1529
1534
|
|
|
1530
|
-
/**
|
|
1531
|
-
* Filtered list. Manages toolbar visibility when data is absent and defines the defaults for empty view.
|
|
1532
|
-
* @since 3.0.1
|
|
1535
|
+
/**
|
|
1536
|
+
* Filtered list. Manages toolbar visibility when data is absent and defines the defaults for empty view.
|
|
1537
|
+
* @since 3.0.1
|
|
1533
1538
|
*/
|
|
1534
1539
|
filtered: _propTypes.default.bool,
|
|
1535
1540
|
|
|
1536
|
-
/**
|
|
1537
|
-
* A custom view for the case when data is absent.
|
|
1538
|
-
* @since 2.5.0
|
|
1541
|
+
/**
|
|
1542
|
+
* A custom view for the case when data is absent.
|
|
1543
|
+
* @since 2.5.0
|
|
1539
1544
|
*/
|
|
1540
1545
|
emptyView: _propTypes.default.node,
|
|
1541
1546
|
|
|
1542
|
-
/**
|
|
1543
|
-
* Which part of the List component should be replaced by the empty view.
|
|
1544
|
-
* @since 2.6.0
|
|
1545
|
-
* @deprecated Use `filtered` instead.
|
|
1547
|
+
/**
|
|
1548
|
+
* Which part of the List component should be replaced by the empty view.
|
|
1549
|
+
* @since 2.6.0
|
|
1550
|
+
* @deprecated Use `filtered` instead.
|
|
1546
1551
|
*/
|
|
1547
1552
|
emptyViewMode: _propTypes.default.oneOf(['all', 'items']),
|
|
1548
1553
|
|
|
1549
|
-
/**
|
|
1550
|
-
* A slot on the right of the items.
|
|
1551
|
-
* @since 2.6.0
|
|
1554
|
+
/**
|
|
1555
|
+
* A slot on the right of the items.
|
|
1556
|
+
* @since 2.6.0
|
|
1552
1557
|
*/
|
|
1553
1558
|
sidebar: _propTypes.default.node,
|
|
1554
1559
|
|
|
1555
|
-
/**
|
|
1556
|
-
* Custom localization messages.
|
|
1557
|
-
* @since 2.6.0
|
|
1560
|
+
/**
|
|
1561
|
+
* Custom localization messages.
|
|
1562
|
+
* @since 2.6.0
|
|
1558
1563
|
*/
|
|
1559
1564
|
locale: _propTypes.default.shape({
|
|
1560
1565
|
selectAll: _propTypes.default.node,
|
|
@@ -1564,49 +1569,49 @@ List.propTypes = {
|
|
|
1564
1569
|
selectedRows: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.node])
|
|
1565
1570
|
}),
|
|
1566
1571
|
|
|
1567
|
-
/**
|
|
1568
|
-
* Render List row's content vertically.
|
|
1569
|
-
* When some number is specified, it turns into vertical mode automatically if the List's width is less than the provided number.
|
|
1570
|
-
* @since 3.3.0
|
|
1572
|
+
/**
|
|
1573
|
+
* Render List row's content vertically.
|
|
1574
|
+
* When some number is specified, it turns into vertical mode automatically if the List's width is less than the provided number.
|
|
1575
|
+
* @since 3.3.0
|
|
1571
1576
|
*/
|
|
1572
1577
|
vertical: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.number]),
|
|
1573
1578
|
|
|
1574
|
-
/**
|
|
1575
|
-
* Indicate the loading state of the list.
|
|
1576
|
-
* @since 3.3.1
|
|
1579
|
+
/**
|
|
1580
|
+
* Indicate the loading state of the list.
|
|
1581
|
+
* @since 3.3.1
|
|
1577
1582
|
*/
|
|
1578
1583
|
loading: _propTypes.default.bool,
|
|
1579
1584
|
|
|
1580
|
-
/**
|
|
1581
|
-
* Apply some props to each row.
|
|
1582
|
-
*
|
|
1583
|
-
* `virtual` - Virtual row does not have any controls.
|
|
1584
|
-
*
|
|
1585
|
-
* @since 3.11.0
|
|
1585
|
+
/**
|
|
1586
|
+
* Apply some props to each row.
|
|
1587
|
+
*
|
|
1588
|
+
* `virtual` - Virtual row does not have any controls.
|
|
1589
|
+
*
|
|
1590
|
+
* @since 3.11.0
|
|
1586
1591
|
*/
|
|
1587
1592
|
rowProps: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1588
1593
|
virtual: _propTypes.default.bool
|
|
1589
1594
|
}), _propTypes.default.func]),
|
|
1590
1595
|
|
|
1591
|
-
/**
|
|
1592
|
-
* Enable reorderable view.
|
|
1593
|
-
* @since 3.18.0
|
|
1596
|
+
/**
|
|
1597
|
+
* Enable reorderable view.
|
|
1598
|
+
* @since 3.18.0
|
|
1594
1599
|
*/
|
|
1595
1600
|
reorderable: _propTypes.default.bool,
|
|
1596
1601
|
|
|
1597
|
-
/**
|
|
1598
|
-
* Reorder end handler.
|
|
1599
|
-
* @since 3.18.0
|
|
1602
|
+
/**
|
|
1603
|
+
* Reorder end handler.
|
|
1604
|
+
* @since 3.18.0
|
|
1600
1605
|
*/
|
|
1601
1606
|
onReorderEnd: _propTypes.default.func,
|
|
1602
1607
|
|
|
1603
|
-
/**
|
|
1604
|
-
* @ignore
|
|
1608
|
+
/**
|
|
1609
|
+
* @ignore
|
|
1605
1610
|
*/
|
|
1606
1611
|
className: _propTypes.default.string,
|
|
1607
1612
|
|
|
1608
|
-
/**
|
|
1609
|
-
* @ignore
|
|
1613
|
+
/**
|
|
1614
|
+
* @ignore
|
|
1610
1615
|
*/
|
|
1611
1616
|
baseClassName: _propTypes.default.string
|
|
1612
1617
|
};
|
|
@@ -101,9 +101,9 @@ const useTranslate = namespace => {
|
|
|
101
101
|
|
|
102
102
|
exports.useTranslate = useTranslate;
|
|
103
103
|
|
|
104
|
-
/**
|
|
105
|
-
* LocaleProvider provides a uniform localization support for built-in text of components.
|
|
106
|
-
* @since 0.0.42
|
|
104
|
+
/**
|
|
105
|
+
* LocaleProvider provides a uniform localization support for built-in text of components.
|
|
106
|
+
* @since 0.0.42
|
|
107
107
|
*/
|
|
108
108
|
class LocaleProvider extends _react.PureComponent {
|
|
109
109
|
getChildContext() {
|
|
@@ -25,9 +25,9 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
25
25
|
|
|
26
26
|
// Copyright 1999-2020. Plesk International GmbH. All rights reserved.
|
|
27
27
|
|
|
28
|
-
/**
|
|
29
|
-
* `MenuBaseItem` component.
|
|
30
|
-
* @since 0.0.60
|
|
28
|
+
/**
|
|
29
|
+
* `MenuBaseItem` component.
|
|
30
|
+
* @since 0.0.60
|
|
31
31
|
*/
|
|
32
32
|
const MenuBaseItem = ({
|
|
33
33
|
baseClassName,
|
|
@@ -50,37 +50,37 @@ const MenuBaseItem = ({
|
|
|
50
50
|
}, label));
|
|
51
51
|
|
|
52
52
|
MenuBaseItem.propTypes = {
|
|
53
|
-
/**
|
|
54
|
-
* Icon
|
|
55
|
-
* @since 0.0.60
|
|
53
|
+
/**
|
|
54
|
+
* Icon
|
|
55
|
+
* @since 0.0.60
|
|
56
56
|
*/
|
|
57
57
|
icon: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object, _propTypes.default.element]),
|
|
58
58
|
|
|
59
|
-
/**
|
|
60
|
-
* Right label of item.
|
|
61
|
-
* @since 0.0.60
|
|
59
|
+
/**
|
|
60
|
+
* Right label of item.
|
|
61
|
+
* @since 0.0.60
|
|
62
62
|
*/
|
|
63
63
|
label: _propTypes.default.node,
|
|
64
64
|
|
|
65
|
-
/**
|
|
66
|
-
* Content of the `MenuBaseItem`.
|
|
67
|
-
* @since 0.0.60
|
|
65
|
+
/**
|
|
66
|
+
* Content of the `MenuBaseItem`.
|
|
67
|
+
* @since 0.0.60
|
|
68
68
|
*/
|
|
69
69
|
children: _propTypes.default.node,
|
|
70
70
|
|
|
71
|
-
/**
|
|
72
|
-
* @ignore
|
|
71
|
+
/**
|
|
72
|
+
* @ignore
|
|
73
73
|
*/
|
|
74
74
|
className: _propTypes.default.string,
|
|
75
75
|
|
|
76
|
-
/**
|
|
77
|
-
* @ignore
|
|
76
|
+
/**
|
|
77
|
+
* @ignore
|
|
78
78
|
*/
|
|
79
79
|
baseClassName: _propTypes.default.string,
|
|
80
80
|
|
|
81
|
-
/**
|
|
82
|
-
* Component to render as the root element. Useful when rendering a `MenuBaseItem` as other component or tag.
|
|
83
|
-
* @since 1.9.1
|
|
81
|
+
/**
|
|
82
|
+
* Component to render as the root element. Useful when rendering a `MenuBaseItem` as other component or tag.
|
|
83
|
+
* @since 1.9.1
|
|
84
84
|
*/
|
|
85
85
|
component: _propTypes.default.elementType
|
|
86
86
|
};
|
|
@@ -37,12 +37,12 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
37
37
|
|
|
38
38
|
// Copyright 1999-2021. Plesk International GmbH. All rights reserved.
|
|
39
39
|
|
|
40
|
-
/**
|
|
41
|
-
* `Overlay` component.
|
|
40
|
+
/**
|
|
41
|
+
* `Overlay` component.
|
|
42
42
|
*/
|
|
43
43
|
const overlays = [];
|
|
44
|
-
/**
|
|
45
|
-
* @since 0.0.65
|
|
44
|
+
/**
|
|
45
|
+
* @since 0.0.65
|
|
46
46
|
*/
|
|
47
47
|
|
|
48
48
|
class Overlay extends _react.Component {
|
|
@@ -274,75 +274,75 @@ class Overlay extends _react.Component {
|
|
|
274
274
|
|
|
275
275
|
exports.default = Overlay;
|
|
276
276
|
(0, _defineProperty2.default)(Overlay, "propTypes", {
|
|
277
|
-
/**
|
|
278
|
-
* Toggles visibility.
|
|
277
|
+
/**
|
|
278
|
+
* Toggles visibility.
|
|
279
279
|
*/
|
|
280
280
|
isOpen: _propTypes.default.bool,
|
|
281
281
|
|
|
282
|
-
/**
|
|
283
|
-
* Overlay placement.
|
|
282
|
+
/**
|
|
283
|
+
* Overlay placement.
|
|
284
284
|
*/
|
|
285
285
|
placement: _propTypes.default.oneOf(['center', 'left', 'right']),
|
|
286
286
|
|
|
287
|
-
/**
|
|
288
|
-
* Overlay size.
|
|
287
|
+
/**
|
|
288
|
+
* Overlay size.
|
|
289
289
|
*/
|
|
290
290
|
size: _propTypes.default.oneOf(['xs', 'sm', 'md', 'lg']),
|
|
291
291
|
|
|
292
|
-
/**
|
|
293
|
-
* onClose handler.
|
|
292
|
+
/**
|
|
293
|
+
* onClose handler.
|
|
294
294
|
*/
|
|
295
295
|
onClose: _propTypes.default.func,
|
|
296
296
|
|
|
297
|
-
/**
|
|
298
|
-
* Indicating if clicking the backdrop should close the overlay.
|
|
297
|
+
/**
|
|
298
|
+
* Indicating if clicking the backdrop should close the overlay.
|
|
299
299
|
*/
|
|
300
300
|
canCloseOnBackdropClick: _propTypes.default.bool,
|
|
301
301
|
|
|
302
|
-
/**
|
|
303
|
-
* Indicating if pressing the escape key should close the overlay.
|
|
302
|
+
/**
|
|
303
|
+
* Indicating if pressing the escape key should close the overlay.
|
|
304
304
|
*/
|
|
305
305
|
canCloseOnEscapePress: _propTypes.default.bool,
|
|
306
306
|
|
|
307
|
-
/**
|
|
308
|
-
* Block with an image, placed at the side of the component
|
|
309
|
-
* @since 3.25.0
|
|
307
|
+
/**
|
|
308
|
+
* Block with an image, placed at the side of the component
|
|
309
|
+
* @since 3.25.0
|
|
310
310
|
*/
|
|
311
311
|
sideBanner: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.object, _propTypes.default.element]),
|
|
312
312
|
|
|
313
|
-
/**
|
|
314
|
-
* Additional properties for the sideBanner
|
|
315
|
-
* @since 3.25.0
|
|
313
|
+
/**
|
|
314
|
+
* Additional properties for the sideBanner
|
|
315
|
+
* @since 3.25.0
|
|
316
316
|
*/
|
|
317
317
|
sideBannerContainer: _propTypes.default.shape({
|
|
318
|
-
/**
|
|
319
|
-
* Values for css background property
|
|
318
|
+
/**
|
|
319
|
+
* Values for css background property
|
|
320
320
|
*/
|
|
321
321
|
background: _propTypes.default.string,
|
|
322
322
|
|
|
323
|
-
/**
|
|
324
|
-
* One of: center, flex-start, flex-end
|
|
323
|
+
/**
|
|
324
|
+
* One of: center, flex-start, flex-end
|
|
325
325
|
*/
|
|
326
326
|
align: _propTypes.default.oneOf(['center', 'flex-start', 'flex-end'])
|
|
327
327
|
}),
|
|
328
328
|
|
|
329
|
-
/**
|
|
330
|
-
* @ignore
|
|
329
|
+
/**
|
|
330
|
+
* @ignore
|
|
331
331
|
*/
|
|
332
332
|
style: _propTypes.default.object,
|
|
333
333
|
|
|
334
|
-
/**
|
|
335
|
-
* Content of the `Overlay`.
|
|
334
|
+
/**
|
|
335
|
+
* Content of the `Overlay`.
|
|
336
336
|
*/
|
|
337
337
|
children: _propTypes.default.node,
|
|
338
338
|
|
|
339
|
-
/**
|
|
340
|
-
* @ignore
|
|
339
|
+
/**
|
|
340
|
+
* @ignore
|
|
341
341
|
*/
|
|
342
342
|
className: _propTypes.default.string,
|
|
343
343
|
|
|
344
|
-
/**
|
|
345
|
-
* @ignore
|
|
344
|
+
/**
|
|
345
|
+
* @ignore
|
|
346
346
|
*/
|
|
347
347
|
baseClassName: _propTypes.default.string
|
|
348
348
|
});
|
|
@@ -37,9 +37,9 @@ exports.ITEMS_PER_PAGE_OPTIONS = ITEMS_PER_PAGE_OPTIONS;
|
|
|
37
37
|
const VIEW_DEFAULT = 'default';
|
|
38
38
|
const VIEW_POPOVER = 'popover';
|
|
39
39
|
|
|
40
|
-
/**
|
|
41
|
-
* `Pagination` component is used for navigating objects in [List](#!/List) which content is displayed on multiple pages.
|
|
42
|
-
* @since 0.0.54
|
|
40
|
+
/**
|
|
41
|
+
* `Pagination` component is used for navigating objects in [List](#!/List) which content is displayed on multiple pages.
|
|
42
|
+
* @since 0.0.54
|
|
43
43
|
*/
|
|
44
44
|
const Pagination = ({
|
|
45
45
|
baseClassName = `${_constants.CLS_PREFIX}pagination`,
|