@bigbinary/neeto-molecules 1.0.55 → 1.0.56
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/dist/CustomDomainDashboard.cjs.js +57 -11
- package/dist/CustomDomainDashboard.cjs.js.map +1 -1
- package/dist/CustomDomainDashboard.js +142 -96
- package/dist/CustomDomainDashboard.js.map +1 -1
- package/dist/IpRestriction.cjs.js +52 -6
- package/dist/IpRestriction.cjs.js.map +1 -1
- package/dist/IpRestriction.js +104 -58
- package/dist/IpRestriction.js.map +1 -1
- package/dist/NeetoWidget.cjs.js +53 -7
- package/dist/NeetoWidget.cjs.js.map +1 -1
- package/dist/NeetoWidget.js +135 -89
- package/dist/NeetoWidget.js.map +1 -1
- package/dist/PageLoader.cjs.js +70 -6
- package/dist/PageLoader.cjs.js.map +1 -1
- package/dist/PageLoader.js +62 -16
- package/dist/PageLoader.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { forwardRef, useRef, useState } from 'react';
|
|
2
3
|
import { snakeToCamelCase, isNotEmpty } from '@bigbinary/neeto-commons-frontend/pure';
|
|
3
4
|
import { useDebounce } from '@bigbinary/neeto-commons-frontend/react-utils';
|
|
4
5
|
import { Typography, Dropdown as Dropdown$1, Button, Input, Alert, Tag, Callout, Pane, Label, Table, NoData } from '@bigbinary/neetoui';
|
|
@@ -6,7 +7,6 @@ import { useTranslation, Trans } from 'react-i18next';
|
|
|
6
7
|
import { Right, MenuVertical, HamburgerMenu, Search, Column, Download, Filter, MenuHorizontal, Info, Copy, Check } from '@bigbinary/neeto-icons';
|
|
7
8
|
import { isEmpty } from 'ramda';
|
|
8
9
|
import { Link } from 'react-router-dom';
|
|
9
|
-
import { Neeto } from '@bigbinary/neeto-icons/logos';
|
|
10
10
|
import ManageColumns from '@bigbinary/neeto-molecules/Columns';
|
|
11
11
|
import { Filters } from '@bigbinary/neeto-filters-frontend';
|
|
12
12
|
import { Formik, Form } from 'formik';
|
|
@@ -17,8 +17,8 @@ import * as Yup from 'yup';
|
|
|
17
17
|
import { useQueryClient, useMutation, useQuery } from 'react-query';
|
|
18
18
|
import axios from 'axios';
|
|
19
19
|
|
|
20
|
-
function _extends() {
|
|
21
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
20
|
+
function _extends$1() {
|
|
21
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function (target) {
|
|
22
22
|
for (var i = 1; i < arguments.length; i++) {
|
|
23
23
|
var source = arguments[i];
|
|
24
24
|
for (var key in source) {
|
|
@@ -29,7 +29,7 @@ function _extends() {
|
|
|
29
29
|
}
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
|
-
return _extends.apply(this, arguments);
|
|
32
|
+
return _extends$1.apply(this, arguments);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
function _arrayWithHoles(arr) {
|
|
@@ -1339,7 +1339,7 @@ var Container = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
1339
1339
|
var _ref$isHeaderFixed = _ref.isHeaderFixed,
|
|
1340
1340
|
isHeaderFixed = _ref$isHeaderFixed === void 0 ? false : _ref$isHeaderFixed,
|
|
1341
1341
|
children = _ref.children;
|
|
1342
|
-
return /*#__PURE__*/
|
|
1342
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1343
1343
|
ref: ref,
|
|
1344
1344
|
className: classnames("neeto-molecules-container", {
|
|
1345
1345
|
"neeto-molecules-container--header-fixed": isHeaderFixed
|
|
@@ -1359,24 +1359,24 @@ n(css$2,{});
|
|
|
1359
1359
|
|
|
1360
1360
|
var Breadcrumbs = function Breadcrumbs(_ref) {
|
|
1361
1361
|
var breadcrumbs = _ref.breadcrumbs;
|
|
1362
|
-
return /*#__PURE__*/
|
|
1362
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1363
1363
|
className: "neeto-molecules-header__breadcrumbs-wrap"
|
|
1364
1364
|
}, breadcrumbs.map(function (_ref2, index) {
|
|
1365
1365
|
var text = _ref2.text,
|
|
1366
1366
|
link = _ref2.link;
|
|
1367
|
-
return /*#__PURE__*/
|
|
1367
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1368
1368
|
className: "neeto-molecules-header__breadcrumb",
|
|
1369
1369
|
key: index
|
|
1370
|
-
}, /*#__PURE__*/
|
|
1370
|
+
}, /*#__PURE__*/React__default.createElement(Link, {
|
|
1371
1371
|
to: link
|
|
1372
|
-
}, /*#__PURE__*/
|
|
1372
|
+
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
1373
1373
|
className: "neeto-molecules-text-gray-700 hover:neeto-ui-text-gray-800 neeto-molecules-header__breadcrumb-link",
|
|
1374
1374
|
component: "span",
|
|
1375
1375
|
"data-cy": text,
|
|
1376
1376
|
"data-test-id": text,
|
|
1377
1377
|
style: "body2",
|
|
1378
1378
|
weight: "normal"
|
|
1379
|
-
}, text)), /*#__PURE__*/
|
|
1379
|
+
}, text)), /*#__PURE__*/React__default.createElement(Right, {
|
|
1380
1380
|
className: "neeto-molecules-header__breadcrumb-separator neeto-ui-text-gray-400",
|
|
1381
1381
|
size: 16
|
|
1382
1382
|
}));
|
|
@@ -1417,7 +1417,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
1417
1417
|
var _ref$dropdownProps = _ref.dropdownProps,
|
|
1418
1418
|
children = _ref$dropdownProps.children,
|
|
1419
1419
|
otherProps = _objectWithoutProperties(_ref$dropdownProps, _excluded$3);
|
|
1420
|
-
return /*#__PURE__*/
|
|
1420
|
+
return /*#__PURE__*/React__default.createElement(Dropdown$1, _extends$1({
|
|
1421
1421
|
buttonProps: {
|
|
1422
1422
|
className: "ml-1.5"
|
|
1423
1423
|
},
|
|
@@ -1441,44 +1441,90 @@ var Header = function Header(_ref) {
|
|
|
1441
1441
|
var searchRef = useRef(null);
|
|
1442
1442
|
var _useTranslation = useTranslation(),
|
|
1443
1443
|
t = _useTranslation.t;
|
|
1444
|
-
return /*#__PURE__*/
|
|
1444
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1445
1445
|
className: classnames(["neeto-molecules-header", {
|
|
1446
1446
|
"neeto-molecules-header--has-breadcrumbs": !isEmpty(breadcrumbs)
|
|
1447
1447
|
}, className])
|
|
1448
|
-
}, /*#__PURE__*/
|
|
1448
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1449
1449
|
className: "neeto-molecules-header__left"
|
|
1450
|
-
}, menuBarToggle && /*#__PURE__*/
|
|
1450
|
+
}, menuBarToggle && /*#__PURE__*/React__default.createElement(Button, {
|
|
1451
1451
|
"aria-label": "Toggle Menubar",
|
|
1452
1452
|
className: "neeto-molecules-header__toggle-menubar-btn",
|
|
1453
1453
|
"data-cy": "menubar-toggle-button",
|
|
1454
1454
|
icon: HamburgerMenu,
|
|
1455
1455
|
style: "text",
|
|
1456
1456
|
onClick: menuBarToggle
|
|
1457
|
-
}), /*#__PURE__*/
|
|
1457
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1458
1458
|
className: "neeto-molecules-header__left-data-wrap"
|
|
1459
|
-
}, breadcrumbs && /*#__PURE__*/
|
|
1459
|
+
}, breadcrumbs && /*#__PURE__*/React__default.createElement(Breadcrumbs, {
|
|
1460
1460
|
breadcrumbs: breadcrumbs
|
|
1461
|
-
}), /*#__PURE__*/
|
|
1461
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1462
1462
|
className: "neeto-molecules-header__page-title"
|
|
1463
|
-
}, /*#__PURE__*/
|
|
1463
|
+
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
1464
1464
|
"data-cy": "main-header",
|
|
1465
1465
|
"data-test-id": "main-header",
|
|
1466
1466
|
lineHeight: "tight",
|
|
1467
1467
|
style: "h2",
|
|
1468
1468
|
weight: "semibold"
|
|
1469
|
-
}, title), dropdownProps && /*#__PURE__*/
|
|
1469
|
+
}, title), dropdownProps && /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
1470
1470
|
dropdownProps: dropdownProps
|
|
1471
|
-
})))), /*#__PURE__*/
|
|
1471
|
+
})))), /*#__PURE__*/React__default.createElement("div", {
|
|
1472
1472
|
className: "neeto-ui-gap-3 neeto-molecules-header__right"
|
|
1473
|
-
}, searchProps && /*#__PURE__*/
|
|
1473
|
+
}, searchProps && /*#__PURE__*/React__default.createElement(Input, _extends$1({
|
|
1474
1474
|
placeholder: t("neetoMolecules.common.actions.search"),
|
|
1475
|
-
prefix: /*#__PURE__*/
|
|
1475
|
+
prefix: /*#__PURE__*/React__default.createElement(Search, null),
|
|
1476
1476
|
ref: searchRef,
|
|
1477
1477
|
type: "search",
|
|
1478
1478
|
className: classnames(["neeto-molecules-header__search-input", searchProps.className])
|
|
1479
1479
|
}, searchProps)), actionBlock));
|
|
1480
1480
|
};
|
|
1481
1481
|
|
|
1482
|
+
var _path, _path2, _g, _defs;
|
|
1483
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
1484
|
+
var SvgNeeto = function SvgNeeto(props) {
|
|
1485
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
1486
|
+
width: 50,
|
|
1487
|
+
height: 50,
|
|
1488
|
+
viewBox: "0 0 415 415",
|
|
1489
|
+
fill: "none",
|
|
1490
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
1491
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
1492
|
+
d: "M414.989 207.495C414.989 92.899 322.091 0 207.495 0H0v414.989h414.989V207.495Z",
|
|
1493
|
+
fill: "#0043AC"
|
|
1494
|
+
})), /*#__PURE__*/React.createElement("mask", {
|
|
1495
|
+
id: "neeto_svg__a",
|
|
1496
|
+
style: {
|
|
1497
|
+
maskType: "alpha"
|
|
1498
|
+
},
|
|
1499
|
+
maskUnits: "userSpaceOnUse",
|
|
1500
|
+
x: 0,
|
|
1501
|
+
y: 0,
|
|
1502
|
+
width: 415,
|
|
1503
|
+
height: 415
|
|
1504
|
+
}, _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
|
|
1505
|
+
d: "M414.989 207.495C414.989 92.899 322.091 0 207.495 0H0v414.989h414.989V207.495Z",
|
|
1506
|
+
fill: "#0043AC"
|
|
1507
|
+
}))), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
1508
|
+
mask: "url(#neeto_svg__a)"
|
|
1509
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
1510
|
+
d: "M233.747 348.74c88.579 101.145 172.015 116.411 202.661 111.401v32.491H-8.032V230.487c43.685-2.726 153.2 17.108 241.779 118.253Z",
|
|
1511
|
+
fill: "url(#neeto_svg__b)"
|
|
1512
|
+
}))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("radialGradient", {
|
|
1513
|
+
id: "neeto_svg__b",
|
|
1514
|
+
cx: 0,
|
|
1515
|
+
cy: 0,
|
|
1516
|
+
r: 1,
|
|
1517
|
+
gradientUnits: "userSpaceOnUse",
|
|
1518
|
+
gradientTransform: "rotate(47.118 -220.556 214.818) scale(427.964 725.049)"
|
|
1519
|
+
}, /*#__PURE__*/React.createElement("stop", {
|
|
1520
|
+
stopColor: "#0043AC"
|
|
1521
|
+
}), /*#__PURE__*/React.createElement("stop", {
|
|
1522
|
+
offset: 1,
|
|
1523
|
+
stopColor: "#3DB1CA",
|
|
1524
|
+
stopOpacity: 0.8
|
|
1525
|
+
})))));
|
|
1526
|
+
};
|
|
1527
|
+
|
|
1482
1528
|
var css$1 = ".neeto-molecules-pageloader__wrapper{height:100%;position:relative;width:100%}.neeto-molecules-pageloader__wrapper .neeto-molecules-pageloader{height:100%;left:0;position:absolute;top:0;width:100%}.neeto-molecules-pageloader__wrapper .neeto-molecules-pageloader__content{height:66px;margin-bottom:16px;overflow:hidden;padding:8px;position:relative;width:66px}.neeto-molecules-pageloader__wrapper .neeto-molecules-pageloader__text{color:rgb(var(--neeto-ui-gray-800));font-size:1.25rem;line-height:1.75rem;margin-bottom:4rem;text-align:center}.neeto-molecules-pageloader__spinner{display:flex;gap:2px;height:25px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}.neeto-molecules-pageloader__spinner>div{animation:neeto-ui-stretch-delay 1.2s ease-in-out infinite;background-color:#fff;border-radius:2px;display:inline-flex;height:100%;width:2px}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect2{animation-delay:-1.1s}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect3{animation-delay:-1s}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect4{animation-delay:-.9s}.neeto-molecules-pageloader__spinner .neeto-molecules-pageloader__rect5{animation-delay:-.8s}@keyframes neeto-ui-stretch-delay{0%,40%,to{transform:scaleY(.4);-webkit-transform:scaleY(.4)}20%{transform:scaleY(1);-webkit-transform:scaleY(1)}}";
|
|
1483
1529
|
n(css$1,{});
|
|
1484
1530
|
|
|
@@ -1487,28 +1533,28 @@ var PageLoader = function PageLoader(_ref) {
|
|
|
1487
1533
|
var _ref$text = _ref.text,
|
|
1488
1534
|
text = _ref$text === void 0 ? "" : _ref$text,
|
|
1489
1535
|
otherProps = _objectWithoutProperties(_ref, _excluded$2);
|
|
1490
|
-
return /*#__PURE__*/
|
|
1536
|
+
return /*#__PURE__*/React__default.createElement("div", _extends$1({
|
|
1491
1537
|
className: "neeto-molecules-pageloader__wrapper"
|
|
1492
|
-
}, otherProps), /*#__PURE__*/
|
|
1538
|
+
}, otherProps), /*#__PURE__*/React__default.createElement("div", {
|
|
1493
1539
|
className: "neeto-molecules-pageloader neeto-ui-flex neeto-ui-flex-col neeto-ui-items-center neeto-ui-justify-center"
|
|
1494
|
-
}, /*#__PURE__*/
|
|
1540
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1495
1541
|
className: "neeto-molecules-pageloader__content neeto-ui-flex neeto-ui-flex-shrink-0 neeto-ui-items-center neeto-ui-justify-center"
|
|
1496
|
-
}, /*#__PURE__*/
|
|
1542
|
+
}, /*#__PURE__*/React__default.createElement(SvgNeeto, {
|
|
1497
1543
|
className: "neeto-molecules-pageloader__logo",
|
|
1498
1544
|
size: 50
|
|
1499
|
-
}), /*#__PURE__*/
|
|
1545
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1500
1546
|
className: "neeto-molecules-pageloader__spinner"
|
|
1501
|
-
}, /*#__PURE__*/
|
|
1547
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1502
1548
|
className: "neeto-molecules-pageloader__rect1"
|
|
1503
|
-
}), /*#__PURE__*/
|
|
1549
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1504
1550
|
className: "neeto-molecules-pageloader__rect2"
|
|
1505
|
-
}), /*#__PURE__*/
|
|
1551
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1506
1552
|
className: "neeto-molecules-pageloader__rect3"
|
|
1507
|
-
}), /*#__PURE__*/
|
|
1553
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1508
1554
|
className: "neeto-molecules-pageloader__rect4"
|
|
1509
|
-
}), /*#__PURE__*/
|
|
1555
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1510
1556
|
className: "neeto-molecules-pageloader__rect5"
|
|
1511
|
-
}))), text && /*#__PURE__*/
|
|
1557
|
+
}))), text && /*#__PURE__*/React__default.createElement(Typography, {
|
|
1512
1558
|
style: "h5",
|
|
1513
1559
|
weight: "semibold"
|
|
1514
1560
|
}, text)));
|
|
@@ -1567,9 +1613,9 @@ var Columns = function Columns(_ref) {
|
|
|
1567
1613
|
t = _useTranslation.t;
|
|
1568
1614
|
var buttonProps = dropdownProps.buttonProps,
|
|
1569
1615
|
restDropdownProps = _objectWithoutProperties(dropdownProps, _excluded2);
|
|
1570
|
-
return /*#__PURE__*/
|
|
1616
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1571
1617
|
className: "neeto-molecules-subheader__columns"
|
|
1572
|
-
}, /*#__PURE__*/
|
|
1618
|
+
}, /*#__PURE__*/React__default.createElement(ManageColumns, _extends$1({
|
|
1573
1619
|
dropdownProps: _objectSpread$2({
|
|
1574
1620
|
buttonProps: _objectSpread$2({
|
|
1575
1621
|
icon: Column,
|
|
@@ -1592,9 +1638,9 @@ var DownloadButton = function DownloadButton(_ref) {
|
|
|
1592
1638
|
dataCy = _ref$dataCy === void 0 ? "download-button" : _ref$dataCy;
|
|
1593
1639
|
var _useTranslation = useTranslation(),
|
|
1594
1640
|
t = _useTranslation.t;
|
|
1595
|
-
return /*#__PURE__*/
|
|
1641
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1596
1642
|
className: "neeto-molecules-subheader__download"
|
|
1597
|
-
}, /*#__PURE__*/
|
|
1643
|
+
}, /*#__PURE__*/React__default.createElement(Button, {
|
|
1598
1644
|
"data-cy": dataCy,
|
|
1599
1645
|
"data-testid": "download-button",
|
|
1600
1646
|
icon: Download,
|
|
@@ -1604,7 +1650,7 @@ var DownloadButton = function DownloadButton(_ref) {
|
|
|
1604
1650
|
position: "bottom"
|
|
1605
1651
|
},
|
|
1606
1652
|
onClick: onClick
|
|
1607
|
-
}), count && /*#__PURE__*/
|
|
1653
|
+
}), count && /*#__PURE__*/React__default.createElement("span", {
|
|
1608
1654
|
className: "neeto-molecules-subheader__download-count"
|
|
1609
1655
|
}, count));
|
|
1610
1656
|
};
|
|
@@ -1617,9 +1663,9 @@ var FilterButton = function FilterButton(_ref) {
|
|
|
1617
1663
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
1618
1664
|
var _useTranslation = useTranslation(),
|
|
1619
1665
|
t = _useTranslation.t;
|
|
1620
|
-
return /*#__PURE__*/
|
|
1666
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1621
1667
|
className: "neeto-molecules-subheader__filter"
|
|
1622
|
-
}, /*#__PURE__*/
|
|
1668
|
+
}, /*#__PURE__*/React__default.createElement(Filters, _extends$1({
|
|
1623
1669
|
buttonProps: _objectSpread$1({
|
|
1624
1670
|
"data-testid": "filter-button",
|
|
1625
1671
|
icon: Filter,
|
|
@@ -1637,9 +1683,9 @@ var RightBlock = function RightBlock(_ref) {
|
|
|
1637
1683
|
var downloadButtonProps = _ref.downloadButtonProps,
|
|
1638
1684
|
columnsButtonProps = _ref.columnsButtonProps,
|
|
1639
1685
|
filterProps = _ref.filterProps;
|
|
1640
|
-
return /*#__PURE__*/
|
|
1686
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1641
1687
|
className: "neeto-molecules-subheader__right-actions"
|
|
1642
|
-
}, downloadButtonProps && /*#__PURE__*/
|
|
1688
|
+
}, downloadButtonProps && /*#__PURE__*/React__default.createElement(DownloadButton, downloadButtonProps), columnsButtonProps && /*#__PURE__*/React__default.createElement(Columns, columnsButtonProps), filterProps && /*#__PURE__*/React__default.createElement(FilterButton, filterProps));
|
|
1643
1689
|
};
|
|
1644
1690
|
|
|
1645
1691
|
var css = ".neeto-molecules-subheader{align-items:center;background-color:rgb(var(--neeto-ui-white));display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--neeto-ui-sub-header-bottom-margin);min-height:var(--neeto-ui-sub-header-height);width:100%}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper{display:flex;flex-grow:1}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper .neeto-molecules-subheader__left{align-items:center;display:flex;flex-direction:row;justify-content:flex-start}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper .neeto-molecules-subheader__left .neeto-molecules-input__prefix{color:rgb(var(--neeto-ui-gray-400))}.neeto-molecules-subheader .neeto-molecules-subheader__right{align-items:center;display:flex;flex-direction:row;gap:12px;justify-content:flex-end}.neeto-molecules-subheader .neeto-molecules-subheader__right-actions{align-items:center;display:flex;flex-direction:row;gap:8px;justify-content:flex-end}.neeto-molecules-subheader .neeto-molecules-subheader__right-actions>:not([hidden])~:not([hidden]){border-left:thin solid rgb(var(--neeto-ui-gray-300));padding-left:8px}.neeto-molecules-subheader__download{position:relative}.neeto-molecules-subheader__download-count{align-items:center;background-color:rgb(var(--neeto-ui-primary-500));border-radius:var(--neeto-ui-rounded-full);color:rgb(var(--neeto-ui-white));display:inline-flex;font-size:10px;justify-content:center;min-height:16px;min-width:16px;position:absolute;right:-2px;text-align:center;top:-2px;z-index:1}";
|
|
@@ -1650,14 +1696,14 @@ var SubHeader = function SubHeader(_ref) {
|
|
|
1650
1696
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
1651
1697
|
leftActionBlock = _ref.leftActionBlock,
|
|
1652
1698
|
rightActionBlock = _ref.rightActionBlock;
|
|
1653
|
-
return /*#__PURE__*/
|
|
1699
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1654
1700
|
className: classnames(["neeto-molecules-subheader", className]),
|
|
1655
1701
|
"data-testid": "subheader"
|
|
1656
|
-
}, /*#__PURE__*/
|
|
1702
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1657
1703
|
className: "neeto-molecules-subheader__left-wrapper"
|
|
1658
|
-
}, leftActionBlock && /*#__PURE__*/
|
|
1704
|
+
}, leftActionBlock && /*#__PURE__*/React__default.createElement("div", {
|
|
1659
1705
|
className: "neeto-molecules-subheader__left"
|
|
1660
|
-
}, leftActionBlock)), rightActionBlock && /*#__PURE__*/
|
|
1706
|
+
}, leftActionBlock)), rightActionBlock && /*#__PURE__*/React__default.createElement("div", {
|
|
1661
1707
|
className: "neeto-molecules-subheader__right"
|
|
1662
1708
|
}, rightActionBlock));
|
|
1663
1709
|
};
|
|
@@ -1680,13 +1726,13 @@ var DeleteAlert = function DeleteAlert(_ref) {
|
|
|
1680
1726
|
hostname = _ref.hostname;
|
|
1681
1727
|
var _useTranslation = useTranslation(),
|
|
1682
1728
|
t = _useTranslation.t;
|
|
1683
|
-
return /*#__PURE__*/
|
|
1729
|
+
return /*#__PURE__*/React__default.createElement(Alert, {
|
|
1684
1730
|
cancelButtonLabel: t("neetoMolecules.common.actions.cancel"),
|
|
1685
1731
|
isOpen: isOpen,
|
|
1686
1732
|
isSubmitting: isSubmitting,
|
|
1687
1733
|
submitButtonLabel: t("neetoMolecules.common.actions.delete"),
|
|
1688
1734
|
title: t("neetoMolecules.customDomain.delete"),
|
|
1689
|
-
message: /*#__PURE__*/
|
|
1735
|
+
message: /*#__PURE__*/React__default.createElement(Trans, {
|
|
1690
1736
|
i18nKey: "neetoMolecules.customDomain.alertMessage",
|
|
1691
1737
|
values: {
|
|
1692
1738
|
hostname: hostname
|
|
@@ -1712,27 +1758,27 @@ var TagBlock = function TagBlock(_ref) {
|
|
|
1712
1758
|
t = _useTranslation.t;
|
|
1713
1759
|
var isDomainValidated = status === "active" || status === "pending_cname_validation";
|
|
1714
1760
|
var camelCasedStatus = snakeToCamelCase(status || "");
|
|
1715
|
-
return /*#__PURE__*/
|
|
1761
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1716
1762
|
className: classnames("flex gap-2", {
|
|
1717
1763
|
"flex-col items-start": stacked
|
|
1718
1764
|
})
|
|
1719
|
-
}, status === "failed" ? /*#__PURE__*/
|
|
1765
|
+
}, status === "failed" ? /*#__PURE__*/React__default.createElement(Tag, {
|
|
1720
1766
|
indicatorStyle: "danger",
|
|
1721
1767
|
label: t("neetoMolecules.customDomain.status.".concat(camelCasedStatus)),
|
|
1722
1768
|
style: "secondary"
|
|
1723
|
-
}) : /*#__PURE__*/
|
|
1769
|
+
}) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Tag, {
|
|
1724
1770
|
indicatorStyle: isDomainValidated ? "success" : "warning",
|
|
1725
1771
|
style: "secondary",
|
|
1726
1772
|
label: t("neetoMolecules.customDomain.status.domain.".concat(camelCasedStatus))
|
|
1727
|
-
}), isDomainValidated && /*#__PURE__*/
|
|
1773
|
+
}), isDomainValidated && /*#__PURE__*/React__default.createElement("div", {
|
|
1728
1774
|
className: classnames("flex items-center justify-between gap-2", {
|
|
1729
1775
|
"w-full": stacked
|
|
1730
1776
|
})
|
|
1731
|
-
}, /*#__PURE__*/
|
|
1777
|
+
}, /*#__PURE__*/React__default.createElement(Tag, {
|
|
1732
1778
|
indicatorStyle: status === "active" ? "success" : "warning",
|
|
1733
1779
|
style: "secondary",
|
|
1734
1780
|
label: t("neetoMolecules.customDomain.status.cname.".concat(camelCasedStatus))
|
|
1735
|
-
}), isCnameRecordsAdded && status === "pending_cname_validation" && /*#__PURE__*/
|
|
1781
|
+
}), isCnameRecordsAdded && status === "pending_cname_validation" && /*#__PURE__*/React__default.createElement(Button, {
|
|
1736
1782
|
className: "text-xs",
|
|
1737
1783
|
style: "link",
|
|
1738
1784
|
label: t("neetoMolecules.customDomain.validation.buttonLabel.cnameCheck"),
|
|
@@ -1752,7 +1798,7 @@ var renderColumnData = function renderColumnData(enableManagePane, enableDeleteA
|
|
|
1752
1798
|
dataIndex: "status",
|
|
1753
1799
|
key: "status",
|
|
1754
1800
|
render: function render(status) {
|
|
1755
|
-
return /*#__PURE__*/
|
|
1801
|
+
return /*#__PURE__*/React__default.createElement(TagBlock, {
|
|
1756
1802
|
status: status
|
|
1757
1803
|
});
|
|
1758
1804
|
},
|
|
@@ -1761,11 +1807,11 @@ var renderColumnData = function renderColumnData(enableManagePane, enableDeleteA
|
|
|
1761
1807
|
id: "actions",
|
|
1762
1808
|
width: "10%",
|
|
1763
1809
|
render: function render(_, customDomain) {
|
|
1764
|
-
return /*#__PURE__*/
|
|
1810
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1765
1811
|
onClick: function onClick(e) {
|
|
1766
1812
|
return e.stopPropagation();
|
|
1767
1813
|
}
|
|
1768
|
-
}, /*#__PURE__*/
|
|
1814
|
+
}, /*#__PURE__*/React__default.createElement(Dropdown$1, {
|
|
1769
1815
|
autoWidth: true,
|
|
1770
1816
|
buttonProps: {
|
|
1771
1817
|
style: "text"
|
|
@@ -1773,11 +1819,11 @@ var renderColumnData = function renderColumnData(enableManagePane, enableDeleteA
|
|
|
1773
1819
|
icon: MenuHorizontal,
|
|
1774
1820
|
position: "bottom-end",
|
|
1775
1821
|
strategy: "fixed"
|
|
1776
|
-
}, /*#__PURE__*/
|
|
1822
|
+
}, /*#__PURE__*/React__default.createElement(Menu, null, /*#__PURE__*/React__default.createElement(MenuItem.Button, {
|
|
1777
1823
|
onClick: function onClick() {
|
|
1778
1824
|
return enableManagePane(customDomain);
|
|
1779
1825
|
}
|
|
1780
|
-
}, t$1("neetoMolecules.common.actions.edit")), /*#__PURE__*/
|
|
1826
|
+
}, t$1("neetoMolecules.common.actions.edit")), /*#__PURE__*/React__default.createElement(MenuItem.Button, {
|
|
1781
1827
|
onClick: function onClick() {
|
|
1782
1828
|
return enableDeleteAlert(customDomain);
|
|
1783
1829
|
}
|
|
@@ -1822,29 +1868,29 @@ var Record = function Record(_ref) {
|
|
|
1822
1868
|
recordDescription = _recordData.recordDescription,
|
|
1823
1869
|
recordNameLabel = _recordData.recordNameLabel,
|
|
1824
1870
|
recordValueLabel = _recordData.recordValueLabel;
|
|
1825
|
-
return /*#__PURE__*/
|
|
1871
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1826
1872
|
className: "mt-6 grid gap-4"
|
|
1827
|
-
}, customDomain.status !== "active" && /*#__PURE__*/
|
|
1873
|
+
}, customDomain.status !== "active" && /*#__PURE__*/React__default.createElement(Callout, {
|
|
1828
1874
|
icon: Info,
|
|
1829
1875
|
style: "info"
|
|
1830
|
-
}, recordDescription), /*#__PURE__*/
|
|
1876
|
+
}, recordDescription), /*#__PURE__*/React__default.createElement(Input, {
|
|
1831
1877
|
disabled: true,
|
|
1832
1878
|
"data-cy": joinHyphenCase(recordNameLabel),
|
|
1833
1879
|
label: recordNameLabel,
|
|
1834
1880
|
value: recordName,
|
|
1835
|
-
suffix: /*#__PURE__*/
|
|
1881
|
+
suffix: /*#__PURE__*/React__default.createElement(Button, {
|
|
1836
1882
|
icon: Copy,
|
|
1837
1883
|
style: "text",
|
|
1838
1884
|
onClick: function onClick() {
|
|
1839
1885
|
return copyToClipboard(recordName);
|
|
1840
1886
|
}
|
|
1841
1887
|
})
|
|
1842
|
-
}), /*#__PURE__*/
|
|
1888
|
+
}), /*#__PURE__*/React__default.createElement(Input, {
|
|
1843
1889
|
disabled: true,
|
|
1844
1890
|
"data-cy": joinHyphenCase(recordValueLabel),
|
|
1845
1891
|
label: recordValueLabel,
|
|
1846
1892
|
value: recordValue,
|
|
1847
|
-
suffix: /*#__PURE__*/
|
|
1893
|
+
suffix: /*#__PURE__*/React__default.createElement(Button, {
|
|
1848
1894
|
icon: Copy,
|
|
1849
1895
|
style: "text",
|
|
1850
1896
|
onClick: function onClick() {
|
|
@@ -1858,17 +1904,17 @@ var CustomDomainInfo = function CustomDomainInfo(_ref) {
|
|
|
1858
1904
|
var time = _ref.time;
|
|
1859
1905
|
var _useTranslation = useTranslation(),
|
|
1860
1906
|
t = _useTranslation.t;
|
|
1861
|
-
return /*#__PURE__*/
|
|
1907
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1862
1908
|
className: "space-y-6"
|
|
1863
|
-
}, /*#__PURE__*/
|
|
1909
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1864
1910
|
className: "neeto-ui-rounded neeto-ui-bg-gray-100 neeto-ui-text-gray-700 space-y-3 p-4"
|
|
1865
|
-
}, /*#__PURE__*/
|
|
1911
|
+
}, /*#__PURE__*/React__default.createElement(Trans, {
|
|
1866
1912
|
i18nKey: "neetoMolecules.customDomain.messageBlock.dnsStatus"
|
|
1867
|
-
}), /*#__PURE__*/
|
|
1913
|
+
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
1868
1914
|
href: "mailto:support@neeto.com",
|
|
1869
1915
|
label: "support@neeto.com",
|
|
1870
1916
|
style: "link"
|
|
1871
|
-
})), /*#__PURE__*/
|
|
1917
|
+
})), /*#__PURE__*/React__default.createElement(Callout, {
|
|
1872
1918
|
icon: Info,
|
|
1873
1919
|
style: "info"
|
|
1874
1920
|
}, t("neetoMolecules.customDomain.messageBlock.cnameAddedTime", {
|
|
@@ -2034,61 +2080,61 @@ var Manage = function Manage(_ref) {
|
|
|
2034
2080
|
}
|
|
2035
2081
|
});
|
|
2036
2082
|
};
|
|
2037
|
-
return /*#__PURE__*/
|
|
2083
|
+
return /*#__PURE__*/React__default.createElement(Pane, {
|
|
2038
2084
|
initialFocusRef: initialFocusRef,
|
|
2039
2085
|
isOpen: isOpen,
|
|
2040
2086
|
onClose: onClose
|
|
2041
|
-
}, /*#__PURE__*/
|
|
2087
|
+
}, /*#__PURE__*/React__default.createElement(Formik, {
|
|
2042
2088
|
enableReinitialize: true,
|
|
2043
2089
|
initialValues: customDomain || INITIAL_VALUES,
|
|
2044
2090
|
validationSchema: getCustomDomainValidationSchema(),
|
|
2045
2091
|
onSubmit: handleSubmit
|
|
2046
2092
|
}, function (_ref2) {
|
|
2047
2093
|
var dirty = _ref2.dirty;
|
|
2048
|
-
return /*#__PURE__*/
|
|
2094
|
+
return /*#__PURE__*/React__default.createElement(Form, null, /*#__PURE__*/React__default.createElement(Pane.Header, null, /*#__PURE__*/React__default.createElement(Typography, {
|
|
2049
2095
|
"data-cy": "add-custom-domain-pane-heading",
|
|
2050
2096
|
style: "h2",
|
|
2051
2097
|
weight: "semibold"
|
|
2052
|
-
}, isNotEmpty(customDomain) ? t("neetoMolecules.customDomain.edit") : t("neetoMolecules.customDomain.addNew"))), /*#__PURE__*/
|
|
2098
|
+
}, isNotEmpty(customDomain) ? t("neetoMolecules.customDomain.edit") : t("neetoMolecules.customDomain.addNew"))), /*#__PURE__*/React__default.createElement(Pane.Body, null, /*#__PURE__*/React__default.createElement("div", {
|
|
2053
2099
|
className: "w-full space-y-6"
|
|
2054
|
-
}, isNotEmpty(customDomain) && /*#__PURE__*/
|
|
2100
|
+
}, isNotEmpty(customDomain) && /*#__PURE__*/React__default.createElement(TagBlock, {
|
|
2055
2101
|
stacked: true,
|
|
2056
2102
|
handleValidateCname: handleValidateCname,
|
|
2057
2103
|
isCnameRecordsAdded: customDomain.addedCnameAt,
|
|
2058
2104
|
status: customDomain.status
|
|
2059
|
-
}), /*#__PURE__*/
|
|
2105
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
2060
2106
|
className: "space-y-2"
|
|
2061
|
-
}, /*#__PURE__*/
|
|
2107
|
+
}, /*#__PURE__*/React__default.createElement(Label, {
|
|
2062
2108
|
htmlFor: "hostname"
|
|
2063
|
-
}, isNotEmpty(customDomain) ? t("neetoMolecules.customDomain.customDomain", SINGULAR) : t("neetoMolecules.customDomain.label")), /*#__PURE__*/
|
|
2109
|
+
}, isNotEmpty(customDomain) ? t("neetoMolecules.customDomain.customDomain", SINGULAR) : t("neetoMolecules.customDomain.label")), /*#__PURE__*/React__default.createElement("div", {
|
|
2064
2110
|
className: "flex items-start gap-2"
|
|
2065
|
-
}, /*#__PURE__*/
|
|
2111
|
+
}, /*#__PURE__*/React__default.createElement(Input$1, {
|
|
2066
2112
|
"data-cy": "custom-domain-input-field",
|
|
2067
2113
|
disabled: isNotEmpty(customDomain),
|
|
2068
2114
|
name: "hostname",
|
|
2069
2115
|
placeholder: t("neetoMolecules.customDomain.placeholder"),
|
|
2070
2116
|
ref: initialFocusRef
|
|
2071
|
-
}), !isNotEmpty(customDomain) && /*#__PURE__*/
|
|
2117
|
+
}), !isNotEmpty(customDomain) && /*#__PURE__*/React__default.createElement(Button, {
|
|
2072
2118
|
"data-cy": "submit-custom-domain-button",
|
|
2073
2119
|
disabled: !dirty || isCreating,
|
|
2074
2120
|
icon: Check,
|
|
2075
2121
|
loading: isCreating,
|
|
2076
2122
|
style: "primary",
|
|
2077
2123
|
type: "submit"
|
|
2078
|
-
}))), isNotEmpty(customDomain) && /*#__PURE__*/
|
|
2124
|
+
}))), isNotEmpty(customDomain) && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Record, {
|
|
2079
2125
|
customDomain: customDomain
|
|
2080
|
-
}), customDomain.status === "pending_domain_validation" && /*#__PURE__*/
|
|
2126
|
+
}), customDomain.status === "pending_domain_validation" && /*#__PURE__*/React__default.createElement(Button, {
|
|
2081
2127
|
"data-cy": "validate-domain-button",
|
|
2082
2128
|
disabled: isValidating,
|
|
2083
2129
|
loading: isValidating,
|
|
2084
2130
|
label: t("neetoMolecules.customDomain.validation.buttonLabel.domain"),
|
|
2085
2131
|
onClick: handleValidateDomain
|
|
2086
|
-
}), customDomain.status === "pending_cname_validation" && !customDomain.addedCnameAt && /*#__PURE__*/
|
|
2132
|
+
}), customDomain.status === "pending_cname_validation" && !customDomain.addedCnameAt && /*#__PURE__*/React__default.createElement(Button, {
|
|
2087
2133
|
"data-cy": "validate-cname-record-button",
|
|
2088
2134
|
loading: isCnameValidating || isUpdating,
|
|
2089
2135
|
label: t("neetoMolecules.customDomain.validation.buttonLabel.cnameAdded"),
|
|
2090
2136
|
onClick: handleUpdateCname
|
|
2091
|
-
}), customDomain.status === "pending_cname_validation" && customDomain.addedCnameAt && /*#__PURE__*/
|
|
2137
|
+
}), customDomain.status === "pending_cname_validation" && customDomain.addedCnameAt && /*#__PURE__*/React__default.createElement(CustomDomainInfo, {
|
|
2092
2138
|
time: customDomain.addedCnameAt
|
|
2093
2139
|
})))));
|
|
2094
2140
|
}));
|
|
@@ -2148,9 +2194,9 @@ var CustomDomainDashboard = function CustomDomainDashboard(_ref) {
|
|
|
2148
2194
|
setIsAlertOpen(false);
|
|
2149
2195
|
setCustomDomain({});
|
|
2150
2196
|
};
|
|
2151
|
-
return /*#__PURE__*/
|
|
2197
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Container, null, /*#__PURE__*/React__default.createElement(Header, _extends$1({
|
|
2152
2198
|
title: t("neetoMolecules.customDomain.customDomain", PLURAL),
|
|
2153
|
-
actionBlock: /*#__PURE__*/
|
|
2199
|
+
actionBlock: /*#__PURE__*/React__default.createElement(Button, {
|
|
2154
2200
|
"data-cy": "add-new-custom-domain-button",
|
|
2155
2201
|
label: t("neetoMolecules.customDomain.addNew"),
|
|
2156
2202
|
onClick: function onClick() {
|
|
@@ -2165,25 +2211,25 @@ var CustomDomainDashboard = function CustomDomainDashboard(_ref) {
|
|
|
2165
2211
|
placeholder: t("neetoMolecules.customDomain.search"),
|
|
2166
2212
|
"data-cy": "custom-domain-search-field"
|
|
2167
2213
|
}
|
|
2168
|
-
}, headerProps)), isLoading && /*#__PURE__*/
|
|
2214
|
+
}, headerProps)), isLoading && /*#__PURE__*/React__default.createElement("div", {
|
|
2169
2215
|
className: "h-screen w-full"
|
|
2170
|
-
}, /*#__PURE__*/
|
|
2216
|
+
}, /*#__PURE__*/React__default.createElement(PageLoader, null)), !isLoading && (isNotEmpty(data === null || data === void 0 ? void 0 : data.customDomains) ? /*#__PURE__*/React__default.createElement("div", {
|
|
2171
2217
|
className: "w-full flex-grow"
|
|
2172
|
-
}, /*#__PURE__*/
|
|
2173
|
-
leftActionBlock: /*#__PURE__*/
|
|
2218
|
+
}, /*#__PURE__*/React__default.createElement(SubHeader, {
|
|
2219
|
+
leftActionBlock: /*#__PURE__*/React__default.createElement(Typography, {
|
|
2174
2220
|
className: "neeto-ui-gray-800 font-semibold",
|
|
2175
2221
|
component: "h4"
|
|
2176
2222
|
}, t("neetoMolecules.customDomain.customDomainWithCount", {
|
|
2177
2223
|
count: data === null || data === void 0 ? void 0 : (_data$customDomains = data.customDomains) === null || _data$customDomains === void 0 ? void 0 : _data$customDomains.length
|
|
2178
2224
|
}))
|
|
2179
|
-
}), /*#__PURE__*/
|
|
2225
|
+
}), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Table, {
|
|
2180
2226
|
allowRowClick: false,
|
|
2181
2227
|
rowData: data === null || data === void 0 ? void 0 : data.customDomains,
|
|
2182
2228
|
rowSelection: false,
|
|
2183
2229
|
columnData: renderColumnData(enableManagePane, enableDeleteAlert)
|
|
2184
|
-
}))) : /*#__PURE__*/
|
|
2230
|
+
}))) : /*#__PURE__*/React__default.createElement("div", {
|
|
2185
2231
|
className: "flex h-full w-full flex-grow items-center justify-center"
|
|
2186
|
-
}, /*#__PURE__*/
|
|
2232
|
+
}, /*#__PURE__*/React__default.createElement(NoData, {
|
|
2187
2233
|
title: t("neetoMolecules.customDomain.notFound"),
|
|
2188
2234
|
primaryButtonProps: {
|
|
2189
2235
|
label: t("neetoMolecules.customDomain.addNew"),
|
|
@@ -2191,14 +2237,14 @@ var CustomDomainDashboard = function CustomDomainDashboard(_ref) {
|
|
|
2191
2237
|
return enableManagePane(null);
|
|
2192
2238
|
}
|
|
2193
2239
|
}
|
|
2194
|
-
})))), /*#__PURE__*/
|
|
2240
|
+
})))), /*#__PURE__*/React__default.createElement(Manage, {
|
|
2195
2241
|
customDomain: customDomain,
|
|
2196
2242
|
hasOne: false,
|
|
2197
2243
|
isOpen: isPaneOpen,
|
|
2198
2244
|
setCustomDomain: setCustomDomain,
|
|
2199
2245
|
url: url,
|
|
2200
2246
|
onClose: disableManagePane
|
|
2201
|
-
}), /*#__PURE__*/
|
|
2247
|
+
}), /*#__PURE__*/React__default.createElement(DeleteAlert, {
|
|
2202
2248
|
hostname: customDomain === null || customDomain === void 0 ? void 0 : customDomain.hostname,
|
|
2203
2249
|
isOpen: isAlertOpen,
|
|
2204
2250
|
isSubmitting: isDeleting,
|