@thecb/components 10.4.3-beta.1 → 10.4.4-beta.1
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/index.cjs.js +246 -31
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +246 -32
- package/dist/index.esm.js.map +1 -1
- package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +49322 -0
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/atoms/icons/.DS_Store +0 -0
- package/src/components/atoms/icons/DisabledAccountsAddIcon.js +200 -0
- package/src/components/atoms/icons/index.js +3 -1
- package/src/components/atoms/placeholder/Placeholder.js +80 -22
- package/src/components/atoms/placeholder/Placeholder.stories.js +2 -0
- package/src/components/atoms/placeholder/Placeholder.theme.js +8 -2
- package/src/components/molecules/account-and-routing-modal/AccountAndRoutingModal.js +50 -50
- package/src/components/molecules/editable-list/EditableList.js +16 -2
package/dist/index.cjs.js
CHANGED
|
@@ -18434,6 +18434,180 @@ var TrashIconV2 = function TrashIconV2(_ref) {
|
|
|
18434
18434
|
};
|
|
18435
18435
|
var TrashIconV2$1 = themeComponent(TrashIconV2, "Icons", fallbackValues$2, "primary");
|
|
18436
18436
|
|
|
18437
|
+
var DisabledAccountsAddIcon = function DisabledAccountsAddIcon() {
|
|
18438
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
18439
|
+
width: "100",
|
|
18440
|
+
height: "100",
|
|
18441
|
+
viewBox: "0 0 100 100",
|
|
18442
|
+
fill: "none",
|
|
18443
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
18444
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
18445
|
+
fillRule: "evenodd",
|
|
18446
|
+
clipRule: "evenodd",
|
|
18447
|
+
d: "M77.0408 78.1002V32.5154C77.0408 31.9007 76.5506 31.4039 75.9474 31.4039H32.3148C31.7106 31.4039 31.2213 31.9007 31.2213 32.5154V84.5326C31.2213 84.5326 55.7247 98.7028 77.0408 78.1002Z",
|
|
18448
|
+
fill: "white"
|
|
18449
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18450
|
+
fillRule: "evenodd",
|
|
18451
|
+
clipRule: "evenodd",
|
|
18452
|
+
d: "M88.0002 51.4983C88.0002 72.4847 70.9876 89.4983 50.0002 89.4983C29.0128 89.4983 12.0002 72.4847 12.0002 51.4983C12.0002 30.5109 29.0128 13.4983 50.0002 13.4983C59.0261 13.4983 67.3177 16.6447 73.8366 21.902C82.475 28.8674 88.0002 39.5368 88.0002 51.4983Z",
|
|
18453
|
+
stroke: "#878E9B",
|
|
18454
|
+
strokeWidth: "2.59255",
|
|
18455
|
+
strokeLinejoin: "round"
|
|
18456
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18457
|
+
d: "M77.0408 78.1002V32.5154C77.0408 31.9007 76.5506 31.4039 75.9474 31.4039H32.3148C31.7106 31.4039 31.2213 31.9007 31.2213 32.5154V81.3853",
|
|
18458
|
+
stroke: "#3B414D",
|
|
18459
|
+
strokeWidth: "2.0653",
|
|
18460
|
+
strokeLinecap: "round",
|
|
18461
|
+
strokeLinejoin: "round"
|
|
18462
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18463
|
+
fillRule: "evenodd",
|
|
18464
|
+
clipRule: "evenodd",
|
|
18465
|
+
d: "M23.3362 78.1002V11.6448C23.3362 11.0302 23.8264 10.5324 24.4306 10.5324H68.0622C68.6664 10.5324 69.1556 11.0302 69.1556 11.6448V84.1973C69.1556 84.1973 58.4947 90.719 43.9673 88.1179C32.3336 86.0346 23.3362 78.1002 23.3362 78.1002Z",
|
|
18466
|
+
fill: "white"
|
|
18467
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18468
|
+
d: "M69.156 84.1973V11.6448C69.156 11.0302 68.6658 10.5324 68.0625 10.5324H24.43C23.8258 10.5324 23.3365 11.0302 23.3365 11.6448V78.1002",
|
|
18469
|
+
stroke: "#3B414D",
|
|
18470
|
+
strokeWidth: "2.0653",
|
|
18471
|
+
strokeLinecap: "round",
|
|
18472
|
+
strokeLinejoin: "round"
|
|
18473
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18474
|
+
d: "M23.3362 19.3115H69.1556",
|
|
18475
|
+
stroke: "#3B414D",
|
|
18476
|
+
strokeWidth: "1.9285",
|
|
18477
|
+
strokeLinecap: "round",
|
|
18478
|
+
strokeLinejoin: "round"
|
|
18479
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18480
|
+
d: "M69.156 40.1818H77.041",
|
|
18481
|
+
stroke: "#3B414D",
|
|
18482
|
+
strokeWidth: "1.9285",
|
|
18483
|
+
strokeLinecap: "round",
|
|
18484
|
+
strokeLinejoin: "round"
|
|
18485
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18486
|
+
fillRule: "evenodd",
|
|
18487
|
+
clipRule: "evenodd",
|
|
18488
|
+
d: "M29.82 36.5974H62.672V31.4038H29.82V36.5974Z",
|
|
18489
|
+
fill: "white"
|
|
18490
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18491
|
+
fillRule: "evenodd",
|
|
18492
|
+
clipRule: "evenodd",
|
|
18493
|
+
d: "M29.82 36.5974H62.672V31.4038H29.82V36.5974Z",
|
|
18494
|
+
stroke: "#3B414D",
|
|
18495
|
+
strokeWidth: "2.0653",
|
|
18496
|
+
strokeLinecap: "round",
|
|
18497
|
+
strokeLinejoin: "round"
|
|
18498
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18499
|
+
fillRule: "evenodd",
|
|
18500
|
+
clipRule: "evenodd",
|
|
18501
|
+
d: "M29.82 45.9207H62.672V40.7271H29.82V45.9207Z",
|
|
18502
|
+
fill: "white"
|
|
18503
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18504
|
+
fillRule: "evenodd",
|
|
18505
|
+
clipRule: "evenodd",
|
|
18506
|
+
d: "M29.82 45.9207H62.672V40.7271H29.82V45.9207Z",
|
|
18507
|
+
stroke: "#3B414D",
|
|
18508
|
+
strokeWidth: "2.0653",
|
|
18509
|
+
strokeLinecap: "round",
|
|
18510
|
+
strokeLinejoin: "round"
|
|
18511
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18512
|
+
d: "M29.8201 26.2602H46.2466",
|
|
18513
|
+
stroke: "#3B414D",
|
|
18514
|
+
strokeWidth: "2.0653",
|
|
18515
|
+
strokeLinecap: "round",
|
|
18516
|
+
strokeLinejoin: "round"
|
|
18517
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18518
|
+
fillRule: "evenodd",
|
|
18519
|
+
clipRule: "evenodd",
|
|
18520
|
+
d: "M29.82 63.0901H62.672V57.8964H29.82V63.0901Z",
|
|
18521
|
+
fill: "white"
|
|
18522
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18523
|
+
fillRule: "evenodd",
|
|
18524
|
+
clipRule: "evenodd",
|
|
18525
|
+
d: "M29.82 63.0901H62.672V57.8964H29.82V63.0901Z",
|
|
18526
|
+
stroke: "#3B414D",
|
|
18527
|
+
strokeWidth: "2.0653",
|
|
18528
|
+
strokeLinecap: "round",
|
|
18529
|
+
strokeLinejoin: "round"
|
|
18530
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18531
|
+
fillRule: "evenodd",
|
|
18532
|
+
clipRule: "evenodd",
|
|
18533
|
+
d: "M29.82 72.4143H62.672V67.2207H29.82V72.4143Z",
|
|
18534
|
+
fill: "white"
|
|
18535
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18536
|
+
fillRule: "evenodd",
|
|
18537
|
+
clipRule: "evenodd",
|
|
18538
|
+
d: "M29.82 72.4143H62.672V67.2207H29.82V72.4143Z",
|
|
18539
|
+
stroke: "#3B414D",
|
|
18540
|
+
strokeWidth: "2.0653",
|
|
18541
|
+
strokeLinecap: "round",
|
|
18542
|
+
strokeLinejoin: "round"
|
|
18543
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18544
|
+
fillRule: "evenodd",
|
|
18545
|
+
clipRule: "evenodd",
|
|
18546
|
+
d: "M48.3403 83.2719H62.672V79.298H48.3403V83.2719Z",
|
|
18547
|
+
fill: "#3B414D"
|
|
18548
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18549
|
+
fillRule: "evenodd",
|
|
18550
|
+
clipRule: "evenodd",
|
|
18551
|
+
d: "M48.3403 83.2719H62.672V79.298H48.3403V83.2719Z",
|
|
18552
|
+
stroke: "#3B414D",
|
|
18553
|
+
strokeWidth: "2.0653",
|
|
18554
|
+
strokeLinecap: "round",
|
|
18555
|
+
strokeLinejoin: "round"
|
|
18556
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18557
|
+
d: "M29.8201 52.7535H46.2466",
|
|
18558
|
+
stroke: "#3B414D",
|
|
18559
|
+
strokeWidth: "2.0653",
|
|
18560
|
+
strokeLinecap: "round",
|
|
18561
|
+
strokeLinejoin: "round"
|
|
18562
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18563
|
+
d: "M73.8364 21.9017C82.4748 28.8671 88 39.5365 88 51.498C88 72.4844 70.9874 89.498 50 89.498C29.0126 89.498 12 72.4844 12 51.498",
|
|
18564
|
+
stroke: "#878E9B",
|
|
18565
|
+
strokeWidth: "2.59255",
|
|
18566
|
+
strokeLinejoin: "round"
|
|
18567
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18568
|
+
fillRule: "evenodd",
|
|
18569
|
+
clipRule: "evenodd",
|
|
18570
|
+
d: "M69.1557 40.1818H77.0407V31.4038H69.1557V40.1818Z",
|
|
18571
|
+
fill: "#3B414D"
|
|
18572
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18573
|
+
fillRule: "evenodd",
|
|
18574
|
+
clipRule: "evenodd",
|
|
18575
|
+
d: "M23.3363 19.3112H69.1557V10.5323H23.3363V19.3112Z",
|
|
18576
|
+
fill: "#3B414D"
|
|
18577
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18578
|
+
d: "M72.0041 90.1C79.3495 90.1 85.3041 84.1454 85.3041 76.8C85.3041 69.4546 79.3495 63.5 72.0041 63.5C64.6587 63.5 58.7041 69.4546 58.7041 76.8C58.7041 84.1454 64.6587 90.1 72.0041 90.1Z",
|
|
18579
|
+
fill: "#878E9B"
|
|
18580
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
18581
|
+
fillRule: "evenodd",
|
|
18582
|
+
clipRule: "evenodd",
|
|
18583
|
+
d: "M79.2041 77.5H73.2041V83.5H71.2041V77.5H65.2041V75.5H71.2041V69.5H73.2041V75.5H79.2041V77.5Z",
|
|
18584
|
+
fill: "white"
|
|
18585
|
+
}), /*#__PURE__*/React__default.createElement("mask", {
|
|
18586
|
+
id: "mask0_7610_37196",
|
|
18587
|
+
style: {
|
|
18588
|
+
maskType: "luminance"
|
|
18589
|
+
},
|
|
18590
|
+
maskUnits: "userSpaceOnUse",
|
|
18591
|
+
x: "65",
|
|
18592
|
+
y: "69",
|
|
18593
|
+
width: "15",
|
|
18594
|
+
height: "15"
|
|
18595
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
18596
|
+
fillRule: "evenodd",
|
|
18597
|
+
clipRule: "evenodd",
|
|
18598
|
+
d: "M79.2041 77.5H73.2041V83.5H71.2041V77.5H65.2041V75.5H71.2041V69.5H73.2041V75.5H79.2041V77.5Z",
|
|
18599
|
+
fill: "white"
|
|
18600
|
+
})), /*#__PURE__*/React__default.createElement("g", {
|
|
18601
|
+
mask: "url(#mask0_7610_37196)"
|
|
18602
|
+
}, /*#__PURE__*/React__default.createElement("rect", {
|
|
18603
|
+
x: "60.2041",
|
|
18604
|
+
y: "64.5",
|
|
18605
|
+
width: "24",
|
|
18606
|
+
height: "24",
|
|
18607
|
+
fill: "white"
|
|
18608
|
+
})));
|
|
18609
|
+
};
|
|
18610
|
+
|
|
18437
18611
|
var color$2 = "#15749D";
|
|
18438
18612
|
var hoverColor$1 = "#116285";
|
|
18439
18613
|
var activeColor$1 = "#0E506D";
|
|
@@ -27758,16 +27932,16 @@ var fallbackValues$s = {
|
|
|
27758
27932
|
height: height$1
|
|
27759
27933
|
};
|
|
27760
27934
|
|
|
27761
|
-
var getLargeIcon = function getLargeIcon(iconName) {
|
|
27935
|
+
var getLargeIcon = function getLargeIcon(iconName, isDisabled) {
|
|
27762
27936
|
switch (iconName) {
|
|
27763
27937
|
case "accounts":
|
|
27764
|
-
return /*#__PURE__*/React__default.createElement(AccountsAddIcon$1, null);
|
|
27938
|
+
return isDisabled ? /*#__PURE__*/React__default.createElement(DisabledAccountsAddIcon, null) : /*#__PURE__*/React__default.createElement(AccountsAddIcon$1, null);
|
|
27765
27939
|
case "properties":
|
|
27766
|
-
return /*#__PURE__*/React__default.createElement(PropertiesAddIcon$1, null);
|
|
27940
|
+
return isDisabled ? /*#__PURE__*/React__default.createElement(DisabledAccountsAddIcon, null) : /*#__PURE__*/React__default.createElement(PropertiesAddIcon$1, null);
|
|
27767
27941
|
case "payments":
|
|
27768
|
-
return /*#__PURE__*/React__default.createElement(PaymentMethodAddIcon$1, null);
|
|
27942
|
+
return isDisabled ? /*#__PURE__*/React__default.createElement(DisabledAccountsAddIcon, null) : /*#__PURE__*/React__default.createElement(PaymentMethodAddIcon$1, null);
|
|
27769
27943
|
default:
|
|
27770
|
-
return /*#__PURE__*/React__default.createElement(AccountsAddIcon$1, null);
|
|
27944
|
+
return isDisabled ? /*#__PURE__*/React__default.createElement(DisabledAccountsAddIcon, null) : /*#__PURE__*/React__default.createElement(AccountsAddIcon$1, null);
|
|
27771
27945
|
}
|
|
27772
27946
|
};
|
|
27773
27947
|
var PlaceholderContentWrapper = function PlaceholderContentWrapper(_ref) {
|
|
@@ -27775,22 +27949,35 @@ var PlaceholderContentWrapper = function PlaceholderContentWrapper(_ref) {
|
|
|
27775
27949
|
action = _ref.action,
|
|
27776
27950
|
destination = _ref.destination,
|
|
27777
27951
|
children = _ref.children,
|
|
27952
|
+
_ref$isDisabled = _ref.isDisabled,
|
|
27953
|
+
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
27778
27954
|
dataQa = _ref.dataQa;
|
|
27779
|
-
return
|
|
27955
|
+
return isDisabled ? /*#__PURE__*/React__default.createElement(Box, {
|
|
27956
|
+
padding: "0",
|
|
27957
|
+
minHeight: "100%",
|
|
27958
|
+
extraStyles: isDisabled ? "cursor: default" : "cursor: pointer;",
|
|
27959
|
+
"aria-disabled": isDisabled
|
|
27960
|
+
}, children) : isLink ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
27780
27961
|
to: destination,
|
|
27781
27962
|
"data-qa": dataQa,
|
|
27782
|
-
|
|
27963
|
+
disabled: isDisabled,
|
|
27964
|
+
style: isDisabled ? {
|
|
27965
|
+
textDecoration: "none",
|
|
27966
|
+
color: "".concat(MANATEE_GREY),
|
|
27967
|
+
borderColor: "".concat(MANATEE_GREY)
|
|
27968
|
+
} : {
|
|
27783
27969
|
textDecoration: "none"
|
|
27784
27970
|
}
|
|
27785
27971
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
27786
27972
|
padding: "0",
|
|
27787
27973
|
minHeight: "100%",
|
|
27788
|
-
extraStyles: "cursor: pointer;"
|
|
27974
|
+
extraStyles: isDisabled ? "cursor: default;" : "cursor: pointer;"
|
|
27789
27975
|
}, children)) : /*#__PURE__*/React__default.createElement(Box, {
|
|
27790
|
-
onClick: action,
|
|
27976
|
+
onClick: isDisabled ? noop : action,
|
|
27791
27977
|
padding: "0",
|
|
27792
27978
|
minHeight: "100%",
|
|
27793
|
-
|
|
27979
|
+
"aria-disabled": isDisabled,
|
|
27980
|
+
extraStyles: isDisabled ? "cursor: default" : "cursor: pointer;",
|
|
27794
27981
|
dataQa: dataQa
|
|
27795
27982
|
}, children);
|
|
27796
27983
|
};
|
|
@@ -27805,27 +27992,30 @@ var Placeholder = function Placeholder(_ref2) {
|
|
|
27805
27992
|
variant = _ref2.variant,
|
|
27806
27993
|
largeIcon = _ref2.largeIcon,
|
|
27807
27994
|
themeValues = _ref2.themeValues,
|
|
27995
|
+
_ref2$isDisabled = _ref2.isDisabled,
|
|
27996
|
+
isDisabled = _ref2$isDisabled === void 0 ? false : _ref2$isDisabled,
|
|
27808
27997
|
dataQa = _ref2.dataQa;
|
|
27809
27998
|
return /*#__PURE__*/React__default.createElement(PlaceholderContentWrapper, {
|
|
27810
27999
|
isLink: isLink,
|
|
27811
28000
|
action: action,
|
|
27812
28001
|
destination: destination,
|
|
27813
|
-
dataQa: dataQa
|
|
28002
|
+
dataQa: dataQa,
|
|
28003
|
+
isDisabled: isDisabled
|
|
27814
28004
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
27815
28005
|
padding: "0",
|
|
27816
28006
|
borderRadius: "4px",
|
|
27817
28007
|
border: "none",
|
|
27818
28008
|
minHeight: themeValues.height,
|
|
27819
28009
|
hiddenStyles: !visible,
|
|
27820
|
-
extraStyles: "\n background: linear-gradient(\n to right,\n ".concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%,\n rgba(255, 255, 255, 0) 0%\n ),\n linear-gradient(").concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%, rgba(255, 255, 255, 0) 0%),\n linear-gradient(to right, ").concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%, rgba(255, 255, 255, 0) 0%),\n linear-gradient(").concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%, rgba(255, 255, 255, 0) 0%);\n background-position: top, right, bottom, left;\n background-repeat: repeat-x, repeat-y;\n background-size: 5px 1px, 1px 5px;\n display: flex;\n justify-content: center;\n align-items:center;"),
|
|
27821
|
-
hoverStyles: "background-color: ".concat(variant === "large" ? GRECIAN_GREY : curriedTint$1(0.9, themeValues.color), ";")
|
|
28010
|
+
extraStyles: isDisabled ? "border: 1px dashed ".concat(MANATEE_GREY, "; \n display: flex;\n justify-content: center;\n align-items:center;") : "\n background: linear-gradient(\n to right,\n ".concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%,\n rgba(255, 255, 255, 0) 0%\n ),\n linear-gradient(").concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%, rgba(255, 255, 255, 0) 0%),\n linear-gradient(to right, ").concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%, rgba(255, 255, 255, 0) 0%),\n linear-gradient(").concat(variant === "large" ? STORM_GREY : themeValues.color, " 40%, rgba(255, 255, 255, 0) 0%);\n background-position: top, right, bottom, left;\n background-repeat: repeat-x, repeat-y;\n background-size: 5px 1px, 1px 5px;\n display: flex;\n justify-content: center;\n align-items:center;"),
|
|
28011
|
+
hoverStyles: "background-color: ".concat(isDisabled ? TRANSPARENT : variant === "large" ? GRECIAN_GREY : curriedTint$1(0.9, themeValues.color), ";")
|
|
27822
28012
|
}, /*#__PURE__*/React__default.createElement(Center, {
|
|
27823
28013
|
maxWidth: "300px"
|
|
27824
28014
|
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
27825
28015
|
padding: "0",
|
|
27826
28016
|
tabIndex: "0",
|
|
27827
28017
|
onKeyPress: function onKeyPress(e) {
|
|
27828
|
-
return e.key === "Enter" && action();
|
|
28018
|
+
return isDisabled ? noop : e.key === "Enter" && action();
|
|
27829
28019
|
}
|
|
27830
28020
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
27831
28021
|
justify: "center",
|
|
@@ -27836,12 +28026,13 @@ var Placeholder = function Placeholder(_ref2) {
|
|
|
27836
28026
|
childGap: "0"
|
|
27837
28027
|
}, variant === "large" && /*#__PURE__*/React__default.createElement("div", null), /*#__PURE__*/React__default.createElement(Box, {
|
|
27838
28028
|
padding: "0",
|
|
27839
|
-
|
|
28029
|
+
"aria-disabled": isDisabled,
|
|
28030
|
+
extraStyles: ".fill { \n fill: ".concat(isDisabled ? MANATEE_GREY : variant === "large" ? CHARADE_GREY : themeValues.color, "; \n } .stroke { \n stroke: ").concat(isDisabled ? MANATEE_GREY : variant === "large" ? CHARADE_GREY : themeValues.color, "; \n }")
|
|
27840
28031
|
}, variant === "large" ? /*#__PURE__*/React__default.createElement(Center, {
|
|
27841
28032
|
intrinsic: true
|
|
27842
|
-
}, getLargeIcon(largeIcon), /*#__PURE__*/React__default.createElement(Text$1, {
|
|
28033
|
+
}, getLargeIcon(largeIcon, isDisabled), /*#__PURE__*/React__default.createElement(Text$1, {
|
|
27843
28034
|
variant: "pS",
|
|
27844
|
-
color: themeValues.color,
|
|
28035
|
+
color: isDisabled ? MANATEE_GREY : themeValues.color,
|
|
27845
28036
|
weight: FONT_WEIGHT_REGULAR,
|
|
27846
28037
|
extraStyles: "text-align: center;"
|
|
27847
28038
|
}, text)) : /*#__PURE__*/React__default.createElement(Cover, {
|
|
@@ -27850,11 +28041,13 @@ var Placeholder = function Placeholder(_ref2) {
|
|
|
27850
28041
|
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
27851
28042
|
justify: "center",
|
|
27852
28043
|
align: "center"
|
|
27853
|
-
}, /*#__PURE__*/React__default.createElement(IconAdd,
|
|
28044
|
+
}, /*#__PURE__*/React__default.createElement(IconAdd, {
|
|
28045
|
+
fill: isDisabled ? MANATEE_GREY : "#fff"
|
|
28046
|
+
}), /*#__PURE__*/React__default.createElement(Center, {
|
|
27854
28047
|
intrinsic: true
|
|
27855
28048
|
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
27856
28049
|
variant: "pS",
|
|
27857
|
-
color: themeValues.color,
|
|
28050
|
+
color: isDisabled ? MANATEE_GREY : themeValues.color,
|
|
27858
28051
|
weight: FONT_WEIGHT_REGULAR,
|
|
27859
28052
|
extraStyles: "padding: 0 0 0 8px; text-align: center;"
|
|
27860
28053
|
}, text)))))))))));
|
|
@@ -39826,6 +40019,14 @@ validatorFns[IS_PROBABLY_EMAIL] = (value, args, form) => {
|
|
|
39826
40019
|
return new RegExp(/^\S+@\S+\.\S+$/).test(value);
|
|
39827
40020
|
};
|
|
39828
40021
|
|
|
40022
|
+
const VALID_NAME = 'validator/VALID_NAME';
|
|
40023
|
+
const VALID_NAME_ERROR = 'validator/VALID_NAME_ERROR';
|
|
40024
|
+
const validName = createValidator(VALID_NAME, VALID_NAME_ERROR);
|
|
40025
|
+
validatorFns[VALID_NAME] = (value, args, form) =>
|
|
40026
|
+
value === ''
|
|
40027
|
+
? false
|
|
40028
|
+
: new RegExp(/[A-zÀ-ÿ\-,'\S]+(\s?[A-zÀ-ÿ\-,'\S])*/).test(value);
|
|
40029
|
+
|
|
39829
40030
|
const runValidatorErrorMessage = (type) =>
|
|
39830
40031
|
`${type} was passed to runValidator, but that validator type does not exist.
|
|
39831
40032
|
Please check that you are only calling validator creator functions exported from
|
|
@@ -40763,7 +40964,9 @@ var EditableList = function EditableList(_ref) {
|
|
|
40763
40964
|
qaPrefix = _ref.qaPrefix,
|
|
40764
40965
|
ariaLabel = _ref.ariaLabel,
|
|
40765
40966
|
_ref$editItemAriaRole = _ref.editItemAriaRole,
|
|
40766
|
-
editItemAriaRole = _ref$editItemAriaRole === void 0 ? "" : _ref$editItemAriaRole
|
|
40967
|
+
editItemAriaRole = _ref$editItemAriaRole === void 0 ? "" : _ref$editItemAriaRole,
|
|
40968
|
+
_ref$disablePlacehold = _ref.disablePlaceholder,
|
|
40969
|
+
disablePlaceholder = _ref$disablePlacehold === void 0 ? false : _ref$disablePlacehold;
|
|
40767
40970
|
var addText = "Add a".concat(itemName[0].match(/[aieouAIEOU]/) ? "n" : "", " ").concat(itemName);
|
|
40768
40971
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
40769
40972
|
padding: listPadding,
|
|
@@ -40840,13 +41043,22 @@ var EditableList = function EditableList(_ref) {
|
|
|
40840
41043
|
"aria-label": "Edit ".concat(ariaLabel || itemName),
|
|
40841
41044
|
role: editItemAriaRole
|
|
40842
41045
|
}))));
|
|
40843
|
-
})), canAdd && (!maxItems || items.length < maxItems) && /*#__PURE__*/React__default.createElement(Box, {
|
|
41046
|
+
})), canAdd && (!maxItems || items.length < maxItems) && !disablePlaceholder ? /*#__PURE__*/React__default.createElement(Box, {
|
|
40844
41047
|
padding: items.length === 0 ? "0" : "1rem 0 0"
|
|
40845
41048
|
}, /*#__PURE__*/React__default.createElement(Placeholder$1, {
|
|
40846
41049
|
text: addText,
|
|
40847
41050
|
action: addItem,
|
|
40848
41051
|
dataQa: "Add " + qaPrefix,
|
|
40849
|
-
"aria-label": addText
|
|
41052
|
+
"aria-label": addText,
|
|
41053
|
+
isDisabled: disablePlaceholder
|
|
41054
|
+
})) : /*#__PURE__*/React__default.createElement(Box, {
|
|
41055
|
+
padding: items.length === 0 ? "0" : "1rem 0 0"
|
|
41056
|
+
}, /*#__PURE__*/React__default.createElement(Placeholder$1, {
|
|
41057
|
+
text: addText,
|
|
41058
|
+
action: addItem,
|
|
41059
|
+
dataQa: "Add " + qaPrefix,
|
|
41060
|
+
"aria-label": addText,
|
|
41061
|
+
isDisabled: disablePlaceholder
|
|
40850
41062
|
}))));
|
|
40851
41063
|
};
|
|
40852
41064
|
|
|
@@ -48265,21 +48477,23 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
48265
48477
|
toggleOpen(false);
|
|
48266
48478
|
},
|
|
48267
48479
|
initialFocusSelector: "[name='Close']"
|
|
48268
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
48269
|
-
variant: "
|
|
48270
|
-
tabIndex: "0",
|
|
48480
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
48481
|
+
variant: "pS",
|
|
48271
48482
|
onClick: function onClick() {
|
|
48272
48483
|
return toggleOpen(true);
|
|
48273
48484
|
},
|
|
48274
48485
|
onKeyPress: function onKeyPress(e) {
|
|
48275
48486
|
return e.key === "Enter" && toggleOpen(true);
|
|
48276
48487
|
},
|
|
48277
|
-
|
|
48278
|
-
|
|
48279
|
-
|
|
48280
|
-
|
|
48281
|
-
|
|
48282
|
-
|
|
48488
|
+
tabIndex: "0",
|
|
48489
|
+
color: themeValues.linkColor,
|
|
48490
|
+
weight: themeValues.fontWeight,
|
|
48491
|
+
hoverStyles: themeValues.modalLinkHoverFocus,
|
|
48492
|
+
textDecoration: themeValues.linkTextDecoration,
|
|
48493
|
+
extraStyles: "cursor: pointer;",
|
|
48494
|
+
role: "button",
|
|
48495
|
+
className: "modal-trigger"
|
|
48496
|
+
}, link));
|
|
48283
48497
|
};
|
|
48284
48498
|
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$O, "default");
|
|
48285
48499
|
|
|
@@ -50612,6 +50826,7 @@ exports.Cover = Cover;
|
|
|
50612
50826
|
exports.CustomerSearchIcon = CustomerSearchIcon;
|
|
50613
50827
|
exports.DefaultPageTemplate = DefaultPageTemplate;
|
|
50614
50828
|
exports.Detail = Detail$1;
|
|
50829
|
+
exports.DisabledAccountsAddIcon = DisabledAccountsAddIcon;
|
|
50615
50830
|
exports.DisplayBox = DisplayBox$1;
|
|
50616
50831
|
exports.DisplayCard = DisplayCard;
|
|
50617
50832
|
exports.Dropdown = Dropdown$1;
|