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