@thecb/components 10.4.4-beta.7 → 10.4.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.
Files changed (26) hide show
  1. package/dist/index.cjs.js +146 -996
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +147 -994
  4. package/dist/index.esm.js.map +1 -1
  5. package/package.json +1 -1
  6. package/src/.DS_Store +0 -0
  7. package/src/components/atoms/icons/IconAdd.js +9 -3
  8. package/src/components/atoms/icons/IconQuitLarge.js +0 -1
  9. package/src/components/atoms/icons/PropertiesAddIcon.js +0 -1
  10. package/src/components/atoms/icons/icons.stories.js +1 -9
  11. package/src/components/atoms/icons/index.js +1 -7
  12. package/src/components/atoms/placeholder/Placeholder.js +27 -96
  13. package/src/components/atoms/placeholder/Placeholder.stories.js +0 -1
  14. package/src/components/atoms/placeholder/Placeholder.theme.js +2 -8
  15. package/src/components/molecules/editable-list/EditableList.js +2 -16
  16. package/src/components/molecules/editable-list/EditableList.stories.js +3 -1
  17. package/src/components/molecules/toast-notification/ToastNotification.js +16 -12
  18. package/src/components/molecules/toast-notification/ToastNotification.stories.js +38 -0
  19. package/src/hooks/use-toast-notification/index.js +1 -1
  20. package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +0 -49322
  21. package/src/components/.DS_Store +0 -0
  22. package/src/components/atoms/.DS_Store +0 -0
  23. package/src/components/atoms/icons/.DS_Store +0 -0
  24. package/src/components/atoms/icons/DisabledAccountsAddIcon.js +0 -200
  25. package/src/components/atoms/icons/DisabledPaymentMethodsAddIcon.js +0 -62
  26. package/src/components/atoms/icons/DisabledPropertiesAddIcon.js +0 -54
package/dist/index.cjs.js CHANGED
@@ -14131,7 +14131,9 @@ var GenericErrorIcon = function GenericErrorIcon() {
14131
14131
  }));
14132
14132
  };
14133
14133
 
14134
- var IconAdd = function IconAdd() {
14134
+ var IconAdd = function IconAdd(_ref) {
14135
+ var _ref$strokeWidth = _ref.strokeWidth,
14136
+ strokeWidth = _ref$strokeWidth === void 0 ? 1 : _ref$strokeWidth;
14135
14137
  return /*#__PURE__*/React__default.createElement("svg", {
14136
14138
  xmlns: "http://www.w3.org/2000/svg",
14137
14139
  xmlnsXlink: "http://www.w3.org/1999/xlink",
@@ -14146,7 +14148,7 @@ var IconAdd = function IconAdd() {
14146
14148
  fill: "none",
14147
14149
  fillRule: "evenodd",
14148
14150
  stroke: "none",
14149
- strokeWidth: "1"
14151
+ strokeWidth: strokeWidth
14150
14152
  }, /*#__PURE__*/React__default.createElement("g", {
14151
14153
  transform: "translate(-407 -563)"
14152
14154
  }, /*#__PURE__*/React__default.createElement("g", {
@@ -14164,6 +14166,7 @@ var IconAdd = function IconAdd() {
14164
14166
  xlinkHref: "#path-1"
14165
14167
  })), /*#__PURE__*/React__default.createElement("circle", {
14166
14168
  className: "stroke",
14169
+ strokeWidth: strokeWidth,
14167
14170
  cx: "8.155",
14168
14171
  cy: "8.072",
14169
14172
  r: "8"
@@ -14180,7 +14183,7 @@ var IconQuitLarge = function IconQuitLarge(_ref) {
14180
14183
  version: "1.1",
14181
14184
  xmlns: "http://www.w3.org/2000/svg",
14182
14185
  xmlnsXlink: "http://www.w3.org/1999/xlink"
14183
- }, /*#__PURE__*/React__default.createElement("title", null, "Icon/X"), /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("polygon", {
14186
+ }, /*#__PURE__*/React__default.createElement("defs", null, /*#__PURE__*/React__default.createElement("polygon", {
14184
14187
  id: "quit-large-path-1",
14185
14188
  points: "18.9999989 6.40999946 17.589999 4.9999997 11.9999993 10.5899995 6.40999946 4.9999997 4.9999997 6.40999946 10.5899995 11.9999993 4.9999997 17.589999 6.40999946 18.9999989 11.9999993 13.409999 17.589999 18.9999989 18.9999989 17.589999 13.409999 11.9999993"
14186
14189
  })), /*#__PURE__*/React__default.createElement("g", {
@@ -18434,285 +18437,6 @@ var TrashIconV2 = function TrashIconV2(_ref) {
18434
18437
  };
18435
18438
  var TrashIconV2$1 = themeComponent(TrashIconV2, "Icons", fallbackValues$2, "primary");
18436
18439
 
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: "#878E9B",
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: "#878E9B",
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: "#878E9B",
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: "#878E9B",
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: "#878E9B",
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: "#878E9B",
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: "#878E9B",
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: "#878E9B",
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: "#878E9B",
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: "#878E9B"
18548
- }), /*#__PURE__*/React__default.createElement("path", {
18549
- fillRule: "evenodd",
18550
- clipRule: "evenodd",
18551
- d: "M48.3403 83.2719H62.672V79.298H48.3403V83.2719Z",
18552
- stroke: "#878E9B",
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: "#878E9B",
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: "#878E9B"
18572
- }), /*#__PURE__*/React__default.createElement("path", {
18573
- fillRule: "evenodd",
18574
- clipRule: "evenodd",
18575
- d: "M23.3363 19.3112H69.1557V10.5323H23.3363V19.3112Z",
18576
- fill: "#878E9B"
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
-
18611
- var DisabledPropertiesAddIcon = function DisabledPropertiesAddIcon() {
18612
- return /*#__PURE__*/React__default.createElement("svg", {
18613
- width: "100",
18614
- height: "100",
18615
- viewBox: "0 0 100 100",
18616
- fill: "none",
18617
- xmlns: "http://www.w3.org/2000/svg"
18618
- }, /*#__PURE__*/React__default.createElement("path", {
18619
- fillRule: "evenodd",
18620
- clipRule: "evenodd",
18621
- d: "M81.2621 37.7524C81.2621 38.0343 81.0333 38.2631 80.7514 38.2631H61.1325C60.8505 38.2631 60.6227 38.0343 60.6227 37.7524V36.6749C60.6227 36.393 60.8505 36.1641 61.1325 36.1641H80.7514C81.0333 36.1641 81.2621 36.393 81.2621 36.6749V37.7524ZM72.0783 49.0989V40.0831C72.0783 39.5434 72.5147 39.107 73.0544 39.107H79.2877C79.8274 39.107 80.2638 39.5434 80.2638 40.0831V48.2087C80.2638 48.7485 79.8274 49.1858 79.2877 49.1858H72.1643C72.116 49.1858 72.0783 49.1462 72.0783 49.0989ZM79.4277 51.0531C79.8892 51.0531 80.2638 51.4277 80.2638 51.8902V60.2948C80.2638 60.7564 79.8892 61.131 79.4277 61.131H72.9144C72.4529 61.131 72.0783 60.7564 72.0783 60.2948V51.0531H79.4277ZM61.6519 48.2898V40.003C61.6519 39.5077 62.0526 39.107 62.5479 39.107H68.9414C69.4367 39.107 69.8374 39.5077 69.8374 40.003V49.1791C69.8374 49.1829 69.8345 49.1858 69.8316 49.1858H62.5479C62.0526 49.1858 61.6519 48.7842 61.6519 48.2898ZM62.6444 51.0531H69.7351C69.7911 51.0531 69.8374 51.0994 69.8374 51.1564V60.1394C69.8374 60.6868 69.3933 61.131 68.8458 61.131H62.6444C62.096 61.131 61.6519 60.6868 61.6519 60.1394V52.0456C61.6519 51.4972 62.096 51.0531 62.6444 51.0531ZM81.2621 63.845C81.2621 64.1269 81.0333 64.3567 80.7514 64.3567H61.1325C60.8505 64.3567 60.6227 64.1269 60.6227 63.845V62.7675C60.6227 62.4856 60.8505 62.2577 61.1325 62.2577H80.7514C81.0333 62.2577 81.2621 62.4856 81.2621 62.7675V63.845ZM63.917 17.6758L62.0526 16.4226L40.6542 30.8134V73.442H44.0422V36.7994C44.0422 36.448 44.327 36.1641 44.6775 36.1641H57.367C57.7175 36.1641 58.0023 36.448 58.0023 36.7994V73.442H73.8365H78.2199C79.7917 71.6057 81.8328 68.8076 83.4635 65.1571V65.1474V30.8085L63.917 17.6758ZM46.1624 12.7267V18.6152L50.7881 15.4735V12.5857V9.95762V8.28345H46.1624V10.0986V12.7267ZM88.2929 28.3726L63.216 11.5227C62.8617 11.2871 62.4571 11.1693 62.0526 11.1693C61.648 11.1693 61.2425 11.2871 60.8882 11.5237L40.8 25.0204L35.8403 28.3533C35.6385 28.4875 35.5844 28.7607 35.7196 28.9625L36.5586 30.2254C36.6436 30.3528 36.7845 30.4223 36.9265 30.4223C37.0114 30.4223 37.0974 30.3982 37.1727 30.347L38.2521 29.6219L62.0526 13.6313L86.9615 30.3673C87.032 30.4136 87.1102 30.4358 87.1884 30.4358C87.3187 30.4358 87.4481 30.3721 87.5263 30.2543L88.4049 28.9335C88.5285 28.7482 88.4792 28.4971 88.2929 28.3726ZM38.2525 59.7028V73.4418H28.7249C28.6313 73.382 28.5454 73.3096 28.4565 73.2439C28.3185 73.1406 28.1852 73.0305 28.0578 72.9147C27.9757 72.8394 27.8917 72.765 27.8145 72.6849C27.6407 72.5024 27.4804 72.3093 27.3356 72.1046C27.2825 72.0293 27.2361 71.9501 27.1869 71.8729C27.0681 71.6846 26.96 71.4886 26.8673 71.284C26.8403 71.226 26.8094 71.171 26.7852 71.1131C26.6771 70.8533 26.595 70.5811 26.5323 70.302C26.5168 70.2325 26.5043 70.162 26.4908 70.0916C26.4367 69.7961 26.399 69.4939 26.399 69.183C26.4 66.0104 29.339 63.4876 32.6159 64.23C33.034 64.3304 33.4617 64.1354 33.6712 63.7647C33.8575 63.4345 34.069 63.1236 34.2901 62.8223C34.3383 62.7576 34.3857 62.692 34.4349 62.6292C34.6579 62.3415 34.8935 62.0673 35.1465 61.8086C35.188 61.767 35.2314 61.7284 35.2739 61.6879C35.5085 61.4571 35.7547 61.2389 36.0096 61.0352L36.1593 60.9145C36.4431 60.6982 36.7395 60.4993 37.0466 60.3159C37.1132 60.2753 37.1808 60.2387 37.2484 60.2C37.5554 60.0272 37.8692 59.866 38.1945 59.7269C38.209 59.7211 38.2225 59.7134 38.238 59.7067C38.2428 59.7057 38.2476 59.7047 38.2525 59.7028ZM48.0673 55.2366C48.8272 55.2366 49.4441 55.8536 49.4441 56.6134C49.4441 57.3732 48.8272 57.9892 48.0673 57.9892C47.3075 57.9892 46.6915 57.3732 46.6915 56.6134C46.6915 55.8536 47.3075 55.2366 48.0673 55.2366Z",
18622
- fill: "#FEFEFE"
18623
- }), /*#__PURE__*/React__default.createElement("path", {
18624
- fillRule: "evenodd",
18625
- clipRule: "evenodd",
18626
- d: "M43.8455 10.3697V13.0248C26.1702 15.8566 12.6213 31.209 12.6213 49.6694C12.6213 53.4068 13.1823 57.0139 14.2144 60.4192C14.4606 61.2331 14.7358 62.0326 15.036 62.8214C16.5171 66.7152 18.6316 70.2992 21.2596 73.4419C21.9558 74.2732 22.6847 75.0765 23.4494 75.844C30.1741 82.5987 39.4767 86.787 49.7399 86.787C60.0032 86.787 69.3048 82.5987 76.0304 75.844C76.7951 75.0765 77.5231 74.2732 78.2192 73.4419C80.3143 70.9354 82.0802 68.149 83.4638 65.1473C84.4863 62.9276 85.2944 60.5911 85.866 58.1628C86.508 55.4334 86.8575 52.5919 86.8575 49.6694C86.8575 46.7603 86.5225 43.9005 85.8746 41.1373L85.8669 36.1379L85.866 35.6252V33.2269C85.8998 33.3013 86.4395 34.3807 86.4559 34.4232C88.4323 39.186 89.4789 44.3504 89.4789 49.6694C89.4789 55.5637 88.1793 61.1578 85.866 66.1939C85.1582 67.7367 84.3569 69.2275 83.4638 70.6554C82.8671 71.6113 82.2376 72.543 81.5656 73.4419C80.9448 74.2703 80.2854 75.0678 79.6037 75.844C72.3142 84.1502 61.6329 89.4083 49.7399 89.4083C27.827 89.4083 10 71.5813 10 49.6694C10 29.7598 24.7181 13.2266 43.8455 10.3697ZM80.751 62.2576C81.033 62.2576 81.2618 62.4855 81.2618 62.7674V63.8459C81.2618 64.1278 81.033 64.3566 80.751 64.3566H61.1331C60.8512 64.3566 60.6223 64.1278 60.6223 63.8459V62.7674C60.6223 62.4855 60.8512 62.2576 61.1331 62.2576H80.751ZM53.1047 10.0859C54.6948 10.223 56.2744 10.4421 57.8308 10.7665L56.7041 11.5573L54.7219 12.8897C54.6456 12.879 54.5684 12.8694 54.4921 12.8588C54.0315 12.7989 53.5681 12.7661 53.1047 12.7236V10.0859ZM80.751 36.165H61.1331C60.8512 36.165 60.6223 36.3929 60.6223 36.6748V37.7523C60.6223 38.0342 60.8512 38.2631 61.1331 38.2631H80.751C81.033 38.2631 81.2618 38.0342 81.2618 37.7523V36.6748C81.2618 36.3929 81.033 36.165 80.751 36.165ZM61.6525 60.1393C61.6525 60.6868 62.0966 61.1309 62.6441 61.1309H68.8455C69.3929 61.1309 69.837 60.6868 69.837 60.1393V51.1563C69.837 51.0994 69.7907 51.054 69.7347 51.054H62.6441C62.0966 51.054 61.6525 51.4971 61.6525 52.0456V60.1393ZM72.0789 60.2948C72.0789 60.7563 72.4526 61.1309 72.9151 61.1309H79.4273C79.8889 61.1309 80.2635 60.7563 80.2635 60.2948V51.8901C80.2635 51.4276 79.8889 51.054 79.4273 51.054H72.0789V60.2948ZM69.8313 49.1857C69.8342 49.1857 69.837 49.1828 69.837 49.179V40.0029C69.837 39.5086 69.4364 39.1069 68.942 39.1069H62.5475C62.0532 39.1069 61.6525 39.5086 61.6525 40.0029V48.2898C61.6525 48.7841 62.0532 49.1857 62.5475 49.1857H69.8313ZM79.2873 49.1857C79.8271 49.1857 80.2635 48.7484 80.2635 48.2087V40.083C80.2635 39.5443 79.8271 39.1069 79.2873 39.1069H73.0541C72.5153 39.1069 72.0789 39.5443 72.0789 40.083V49.0989C72.0789 49.1462 72.1166 49.1857 72.1639 49.1857H79.2873ZM88.2935 28.3725L63.2157 11.5226C62.8623 11.287 62.4577 11.1692 62.0532 11.1692C61.6477 11.1692 61.2422 11.287 60.8888 11.5236L40.7997 25.0213L35.8399 28.3532C35.6381 28.4874 35.585 28.7616 35.7192 28.9634L36.5592 30.2253C36.6432 30.3527 36.7842 30.4222 36.9261 30.4222C37.0111 30.4222 37.097 30.3981 37.1723 30.3469L38.2517 29.6219L62.0522 13.6313L86.9621 30.3672C87.0316 30.4145 87.1098 30.4358 87.188 30.4358C87.3193 30.4358 87.4487 30.373 87.5269 30.2552L88.4055 28.9335C88.5291 28.7481 88.4789 28.497 88.2935 28.3725ZM46.1621 8.28337V10.0995V12.7266L46.163 18.6152L50.7878 15.4734V12.5856V9.95755V8.28337H46.1621ZM46.6921 56.6133C46.6921 57.3732 47.3071 57.9892 48.067 57.9892C48.8278 57.9892 49.4438 57.3732 49.4438 56.6133C49.4438 55.8535 48.8278 55.2375 48.067 55.2375C47.3071 55.2375 46.6921 55.8535 46.6921 56.6133ZM38.2517 40.9027L18.3499 40.8689L18.405 64.5555L26.2419 64.5372C26.4282 64.3267 26.6242 64.1249 26.8347 63.9376V60.3488C26.8347 60.2059 26.9506 60.0901 27.0944 60.0901H33.5131C33.6569 60.0901 33.7728 60.2059 33.7728 60.3488V60.4541C34.5848 59.6266 35.5223 58.9489 36.5351 58.4063V55.6768C36.5351 55.5339 36.6509 55.418 36.7948 55.418H38.2517V54.5867H36.7948C36.6509 54.5867 36.5351 54.4709 36.5351 54.327V51.1669C36.5351 51.0241 36.6509 50.9082 36.7948 50.9082H38.2517V50.0769H36.7948C36.6509 50.0769 36.5351 49.961 36.5351 49.8172V46.6571C36.5351 46.5132 36.6509 46.3974 36.7948 46.3974H38.2517V45.5671H36.7948C36.6509 45.5671 36.5351 45.4512 36.5351 45.3073V42.1473C36.5351 42.0034 36.6509 41.8875 36.7948 41.8875H38.2517V40.9027ZM38.2517 73.442V59.701C36.3487 60.4966 34.7199 61.91 33.6704 63.7648C33.4619 64.1355 33.0342 64.3296 32.6161 64.2301C29.3392 63.4867 26.4002 66.0105 26.3993 69.1831C26.3993 70.9674 27.3291 72.5354 28.7242 73.442H38.2517ZM90.3346 30.2166L89.456 31.5393C88.9491 32.2992 88.1014 32.753 87.188 32.753C86.7198 32.753 86.2679 32.6284 85.8624 32.4006L85.866 35.6252V58.1628C85.2944 60.5911 84.4863 62.9276 83.4638 65.1473L83.4641 30.8084L62.0522 16.4225L41.4765 30.2475L40.6549 30.8142V73.442H44.0418V36.7994C44.0418 36.4489 44.3267 36.165 44.6781 36.165H57.3667C57.7181 36.165 58.002 36.4489 58.002 36.7994V73.442H73.8361L78.2192 73.4419C77.5231 74.2732 76.7951 75.0765 76.0304 75.844L73.8361 75.8441H40.4975L23.4494 75.844C22.6847 75.0765 21.9558 74.2732 21.2596 73.4419L25.9281 73.442C25.0177 72.2583 24.4683 70.7868 24.4683 69.1831C24.4683 68.0168 24.7657 66.9181 25.2735 65.9478H18.349C17.5814 65.9478 16.9567 65.3231 16.9567 64.5555V62.8215L15.036 62.8214C14.7358 62.0326 14.4606 61.2331 14.2144 60.4192L16.9567 60.4193V40.8689H16.4662V38.3596H18.768L18.767 35.9266C18.767 35.7267 18.8491 35.5365 18.9929 35.4004L22.0545 32.5039C22.266 32.304 22.5749 32.2499 22.8395 32.3648C23.104 32.4788 23.2769 32.7404 23.2769 33.0301L23.2778 38.3596H24.4017L24.4007 35.9266C24.4007 35.7267 24.4828 35.5365 24.6266 35.4004L27.6882 32.5039C27.8997 32.304 28.2077 32.2499 28.4732 32.3648C28.7377 32.4788 28.9105 32.7404 28.9105 33.0301L28.9115 38.3596H30.0344L30.0334 35.9266C30.0334 35.7267 30.1155 35.5365 30.2593 35.4004L33.3209 32.5039C33.4233 32.4063 33.5507 32.3446 33.684 32.3195C33.8172 32.2943 33.9601 32.2866 34.2053 32.4566C34.4438 32.6207 34.5037 32.8273 34.5182 32.8679C34.5336 32.9084 34.5433 32.9741 34.5433 33.0301L34.5442 38.3596H35.6681L35.6671 35.9266C35.6671 35.7267 35.7492 35.5365 35.893 35.4004L38.2517 33.1681V32.3919C37.8462 32.6159 37.3944 32.7394 36.9261 32.7394C36.0002 32.7394 35.1419 32.2789 34.6292 31.5084L33.7892 30.2465C32.9512 28.9856 33.292 27.2738 34.5481 26.4299L43.8458 20.1822L43.8455 13.0248V10.3697L43.8439 7.88655C43.8439 6.8274 44.7061 5.96521 45.7652 5.96521H51.1846C52.2437 5.96521 53.105 6.8274 53.105 7.88655L53.1047 10.0859V12.7236L53.105 13.9624L59.6018 9.59741C60.3317 9.10984 61.1794 8.85302 62.0532 8.85302C62.926 8.85302 63.7728 9.10887 64.5075 9.60031L89.5854 26.4483C90.827 27.2815 91.162 28.9721 90.3346 30.2166ZM19.7499 45.5671H23.8127C23.9566 45.5671 24.0724 45.4512 24.0724 45.3073V42.1473C24.0724 42.0034 23.9566 41.8875 23.8127 41.8875H19.7499C19.608 41.8875 19.4911 42.0034 19.4911 42.1473V45.3073C19.4911 45.4512 19.608 45.5671 19.7499 45.5671ZM25.4319 45.5671H29.4947C29.6385 45.5671 29.7544 45.4512 29.7544 45.3073V42.1473C29.7544 42.0034 29.6385 41.8875 29.4947 41.8875H25.4319C25.289 41.8875 25.1731 42.0034 25.1731 42.1473V45.3073C25.1731 45.4512 25.289 45.5671 25.4319 45.5671ZM31.1128 45.5671H35.1757C35.3186 45.5671 35.4344 45.4512 35.4344 45.3073V42.1473C35.4344 42.0034 35.3186 41.8875 35.1757 41.8875H31.1128C30.969 41.8875 30.8531 42.0034 30.8531 42.1473V45.3073C30.8531 45.4512 30.969 45.5671 31.1128 45.5671ZM19.7499 59.0966H23.8127C23.9566 59.0966 24.0724 58.9798 24.0724 58.8369V55.6768C24.0724 55.5339 23.9566 55.418 23.8127 55.418H19.7499C19.608 55.418 19.4911 55.5339 19.4911 55.6768V58.8369C19.4911 58.9798 19.608 59.0966 19.7499 59.0966ZM25.4319 59.0966H29.4947C29.6385 59.0966 29.7544 58.9798 29.7544 58.8369V55.6768C29.7544 55.5339 29.6385 55.418 29.4947 55.418H25.4319C25.289 55.418 25.1731 55.5339 25.1731 55.6768V58.8369C25.1731 58.9798 25.289 59.0966 25.4319 59.0966ZM31.1128 59.0966H35.1757C35.3186 59.0966 35.4344 58.9798 35.4344 58.8369V55.6768C35.4344 55.5339 35.3186 55.418 35.1757 55.418H31.1128C30.969 55.418 30.8531 55.5339 30.8531 55.6768V58.8369C30.8531 58.9798 30.969 59.0966 31.1128 59.0966ZM19.7499 54.5867H23.8127C23.9566 54.5867 24.0724 54.4709 24.0724 54.327V51.1669C24.0724 51.0241 23.9566 50.9082 23.8127 50.9082H19.7499C19.608 50.9082 19.4911 51.0241 19.4911 51.1669V54.327C19.4911 54.4709 19.608 54.5867 19.7499 54.5867ZM25.4319 54.5867H29.4947C29.6385 54.5867 29.7544 54.4709 29.7544 54.327V51.1669C29.7544 51.0241 29.6385 50.9082 29.4947 50.9082H25.4319C25.289 50.9082 25.1731 51.0241 25.1731 51.1669V54.327C25.1731 54.4709 25.289 54.5867 25.4319 54.5867ZM31.1128 54.5867H35.1757C35.3186 54.5867 35.4344 54.4709 35.4344 54.327V51.1669C35.4344 51.0241 35.3186 50.9082 35.1757 50.9082H31.1128C30.969 50.9082 30.8531 51.0241 30.8531 51.1669V54.327C30.8531 54.4709 30.969 54.5867 31.1128 54.5867ZM19.7499 50.0769H23.8127C23.9566 50.0769 24.0724 49.961 24.0724 49.8172V46.6571C24.0724 46.5132 23.9566 46.3974 23.8127 46.3974H19.7499C19.608 46.3974 19.4911 46.5132 19.4911 46.6571V49.8172C19.4911 49.961 19.608 50.0769 19.7499 50.0769ZM25.4319 50.0769H29.4947C29.6385 50.0769 29.7544 49.961 29.7544 49.8172V46.6571C29.7544 46.5132 29.6385 46.3974 29.4947 46.3974H25.4319C25.289 46.3974 25.1731 46.5132 25.1731 46.6571V49.8172C25.1731 49.961 25.289 50.0769 25.4319 50.0769ZM30.8531 49.8172V46.6571C30.8531 46.5132 30.969 46.3974 31.1128 46.3974H35.1757C35.3186 46.3974 35.4344 46.5132 35.4344 46.6571V49.8172C35.4344 49.961 35.3186 50.0769 35.1757 50.0769H31.1128C30.969 50.0769 30.8531 49.961 30.8531 49.8172Z",
18627
- fill: "#878E9B"
18628
- }), /*#__PURE__*/React__default.createElement("circle", {
18629
- cx: "71.9999",
18630
- cy: "74",
18631
- r: "12",
18632
- fill: "#878E9B"
18633
- }), /*#__PURE__*/React__default.createElement("path", {
18634
- fillRule: "evenodd",
18635
- clipRule: "evenodd",
18636
- d: "M65.9391 74.5102C65.9391 74.7863 66.1629 75.0102 66.4391 75.0102L70.9898 75.0102L70.9898 79.5609C70.9898 79.8371 71.2137 80.0609 71.4898 80.0609L72.5101 80.0609C72.7863 80.0609 73.0101 79.8371 73.0101 79.5609L73.0101 75.0102L77.5609 75.0102C77.837 75.0102 78.0609 74.7863 78.0609 74.5102L78.0609 73.4898C78.0609 73.2137 77.837 72.9898 77.5609 72.9898H73.0101L73.0101 68.4391C73.0101 68.1629 72.7863 67.9391 72.5101 67.9391L71.4898 67.9391C71.2137 67.9391 70.9898 68.1629 70.9898 68.4391L70.9898 72.9898L66.4391 72.9898C66.1629 72.9898 65.9391 73.2137 65.9391 73.4898L65.9391 74.5102Z",
18637
- fill: "#FEFEFE"
18638
- }), /*#__PURE__*/React__default.createElement("mask", {
18639
- id: "mask0_2013_203",
18640
- style: {
18641
- maskType: "luminance"
18642
- },
18643
- maskUnits: "userSpaceOnUse",
18644
- x: "65",
18645
- y: "67",
18646
- width: "14",
18647
- height: "14"
18648
- }, /*#__PURE__*/React__default.createElement("path", {
18649
- fillRule: "evenodd",
18650
- clipRule: "evenodd",
18651
- d: "M65.9391 74.5102C65.9391 74.7863 66.1629 75.0102 66.4391 75.0102L70.9898 75.0102L70.9898 79.5609C70.9898 79.8371 71.2137 80.0609 71.4898 80.0609L72.5101 80.0609C72.7863 80.0609 73.0101 79.8371 73.0101 79.5609L73.0101 75.0102L77.5609 75.0102C77.837 75.0102 78.0609 74.7863 78.0609 74.5102L78.0609 73.4898C78.0609 73.2137 77.837 72.9898 77.5609 72.9898H73.0101L73.0101 68.4391C73.0101 68.1629 72.7863 67.9391 72.5101 67.9391L71.4898 67.9391C71.2137 67.9391 70.9898 68.1629 70.9898 68.4391L70.9898 72.9898L66.4391 72.9898C66.1629 72.9898 65.9391 73.2137 65.9391 73.4898L65.9391 74.5102Z",
18652
- fill: "white"
18653
- })), /*#__PURE__*/React__default.createElement("g", {
18654
- mask: "url(#mask0_2013_203)"
18655
- }, /*#__PURE__*/React__default.createElement("path", {
18656
- d: "M62 64H82V84H62V64Z",
18657
- fill: "#FEFEFE"
18658
- })));
18659
- };
18660
-
18661
- var DisabledPaymentMethodsAddIcon = function DisabledPaymentMethodsAddIcon() {
18662
- return /*#__PURE__*/React__default.createElement("svg", {
18663
- xmlns: "http://www.w3.org/2000/svg",
18664
- width: "100",
18665
- height: "100",
18666
- viewBox: "0 0 100 100",
18667
- fill: "none"
18668
- }, /*#__PURE__*/React__default.createElement("mask", {
18669
- id: "a",
18670
- x: "-1",
18671
- y: "0",
18672
- maskUnits: "userSpaceOnUse",
18673
- style: {
18674
- maskType: "luminance"
18675
- }
18676
- }, /*#__PURE__*/React__default.createElement("path", {
18677
- fill: "#fff",
18678
- d: "M97.88 0H-1v96h98.88V0Z"
18679
- })), /*#__PURE__*/React__default.createElement("g", {
18680
- mask: "url(#a)"
18681
- }, /*#__PURE__*/React__default.createElement("path", {
18682
- fill: "#FEFEFE",
18683
- fillRule: "evenodd",
18684
- d: "M91.947 19.2v36.48H48.44v15.6c0 .881-.697 1.603-1.584 1.673l-.141.006H20.402c-1.888-2.755-3.416-5.315-4.649-7.68H40.53v-3.84H14.82v1.972c-6.089-12.75-3.332-19.251-3.332-19.251h13.22V19.2h67.24Z",
18685
- clipRule: "evenodd"
18686
- }), /*#__PURE__*/React__default.createElement("path", {
18687
- fill: "#878E9B",
18688
- d: "M48.24 10.56c8.325 0 16.249 2.587 22.793 7.298l.442.323h20.472c.525 0 .958.397 1.013.908l.006.111v36.48c0 .525-.397.958-.908 1.013l-.11.006h-6.48l-.01.039c-4.176 16.497-19.471 28.315-37.217 28.315-21.16 0-38.328-16.668-38.328-37.246 0-11.497 5.358-21.772 13.776-28.603V19.2c0-.525.398-.958.909-1.013l.11-.006h.298c6.447-4.782 14.501-7.621 23.235-7.621Zm34.688 46.139H48.47V71.28c0 1.44-1.138 2.608-2.565 2.693l-.166.005h-21.13c6.31 5.364 14.578 8.617 23.632 8.617 16.42 0 30.585-10.788 34.687-25.897Zm-60.52 15.243h23.331a.683.683 0 0 0 .687-.572l.006-.089V56.64H13.537c1.577 5.84 4.68 11.083 8.87 15.302Zm68.52-51.723-64.542-.001c-.222.165-.442.333-.66.504l.001 22.42H45.74c1.448 0 2.64 1.116 2.726 2.533l.005.165v8.821h42.458V20.217ZM66.324 44.784l.217.134.32.208.834.562 1.937 1.34c.583.396 1.101.73 1.59 1.023 1.5.896 2.662 1.348 3.404 1.298.678-.044 1.166-.132 1.655-.293l.247-.088 2.087-.915.92-.39.337-.138.307-.12c1.758-.675 3.308.021 4.548 1.49.513.608.867 1.21 1.061 1.633a.84.84 0 0 1-1.475.795l-.146-.28-.107-.19a6.45 6.45 0 0 0-.616-.875c-.83-.982-1.703-1.374-2.664-1.005l-.437.174-.766.322-2.46 1.071-.044.018c-.72.265-1.405.406-2.337.467-1.184.079-2.6-.471-4.375-1.533a31.938 31.938 0 0 1-1.315-.834l-2.312-1.594-.823-.554-.362-.233a2.115 2.115 0 0 0-.055-.033c-1.924-1.094-4.566 1.331-6.416 5.012a.84.84 0 0 1-1.5-.754c.083-.166.168-.33.255-.493l.263-.48c.446-.788.925-1.518 1.429-2.168l.305-.38c1.954-2.344 4.255-3.47 6.494-2.197Zm-53.847.326-.03.41a34.227 34.227 0 0 0-.011 4.4l33.996-.001v-4.08c0-.33-.257-.61-.598-.655l-.095-.006H12.843c-.129 0-.252-.024-.366-.068Zm.212-1.957.043-.007.111-.006H23.69V22.442c-5.868 5.346-9.88 12.586-11 20.712ZM84.135 24v1.629c1.346.237 2.494.713 3.488 1.42l-1.884 2.36c-1.243-.793-2.603-1.189-3.806-1.189-.913 0-1.36.327-1.36.775v.034c0 .551.467.792 2.37 1.171 3.106.602 5.049 1.498 5.049 3.753v.034c0 2.027-1.49 3.375-3.858 3.79v1.583h-3.587v-1.605c-1.665-.266-3.197-.879-4.42-1.839l2.096-2.22c1.36.945 2.835 1.446 4.408 1.446 1.03 0 1.573-.312 1.573-.828v-.034c0-.516-.446-.775-2.31-1.17-2.894-.585-5.128-1.31-5.128-3.771v-.034c0-1.875 1.408-3.311 3.781-3.73V24h3.588ZM57.339 36.12a.84.84 0 0 1 .105 1.673l-.105.007H28.664a.84.84 0 0 1-.105-1.673l.105-.007h28.675Zm-11.865-5.76a.84.84 0 0 1 .105 1.673l-.105.007h-16.81a.84.84 0 0 1-.105-1.673l.105-.007h16.81ZM56.35 24.6a.84.84 0 0 1 .106 1.673l-.106.007H43.496a.84.84 0 0 1-.105-1.673l.105-.007H56.35Zm-16.81 0a.84.84 0 0 1 .106 1.673l-.105.007H28.664a.84.84 0 0 1-.105-1.673l.105-.007H39.54Zm8.7-11.583c-6.9 0-13.345 1.89-18.814 5.164h37.63c-5.592-3.349-12.06-5.164-18.815-5.164Z"
18689
- })), /*#__PURE__*/React__default.createElement("path", {
18690
- fill: "#878E9B",
18691
- d: "M73.768 86.536c7.052 0 12.768-5.716 12.768-12.768C86.536 66.716 80.82 61 73.768 61 66.716 61 61 66.716 61 73.768c0 7.052 5.716 12.768 12.768 12.768Z"
18692
- }), /*#__PURE__*/React__default.createElement("path", {
18693
- fill: "#FEFEFE",
18694
- d: "M79.648 74.608h-5.04v5.04h-1.68v-5.04h-5.04v-1.68h5.04v-5.04h1.68v5.04h5.04v1.68Z"
18695
- }), /*#__PURE__*/React__default.createElement("mask", {
18696
- id: "b",
18697
- width: "13",
18698
- height: "13",
18699
- x: "67",
18700
- y: "67",
18701
- maskUnits: "userSpaceOnUse",
18702
- style: {
18703
- maskType: "luminance"
18704
- }
18705
- }, /*#__PURE__*/React__default.createElement("path", {
18706
- fill: "#fff",
18707
- d: "M79.648 74.608h-5.04v5.04h-1.68v-5.04h-5.04v-1.68h5.04v-5.04h1.68v5.04h5.04v1.68Z"
18708
- })), /*#__PURE__*/React__default.createElement("g", {
18709
- mask: "url(#b)"
18710
- }, /*#__PURE__*/React__default.createElement("path", {
18711
- fill: "#FEFEFE",
18712
- d: "M83.848 63.688h-20.16v20.16h20.16v-20.16Z"
18713
- })));
18714
- };
18715
-
18716
18440
  var color$2 = "#15749D";
18717
18441
  var hoverColor$1 = "#116285";
18718
18442
  var activeColor$1 = "#0E506D";
@@ -19587,6 +19311,7 @@ function _wrapNativeSuper(Class) {
19587
19311
  }
19588
19312
 
19589
19313
  // based on https://github.com/styled-components/styled-components/blob/fcf6f3804c57a14dd7984dfab7bc06ee2edca044/src/utils/error.js
19314
+
19590
19315
  /**
19591
19316
  * Parse errors.md and turn it into a simple hash of code: message
19592
19317
  * @private
@@ -19671,71 +19396,84 @@ var ERRORS = {
19671
19396
  "77": "remToPx expects a value in \"rem\" but you provided it in \"%s\".\n\n",
19672
19397
  "78": "base must be set in \"px\" or \"%\" but you set it in \"%s\".\n"
19673
19398
  };
19674
-
19675
19399
  /**
19676
19400
  * super basic version of sprintf
19677
19401
  * @private
19678
19402
  */
19403
+
19679
19404
  function format() {
19680
19405
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
19681
19406
  args[_key] = arguments[_key];
19682
19407
  }
19408
+
19683
19409
  var a = args[0];
19684
19410
  var b = [];
19685
19411
  var c;
19412
+
19686
19413
  for (c = 1; c < args.length; c += 1) {
19687
19414
  b.push(args[c]);
19688
19415
  }
19416
+
19689
19417
  b.forEach(function (d) {
19690
19418
  a = a.replace(/%[a-z]/, d);
19691
19419
  });
19692
19420
  return a;
19693
19421
  }
19694
-
19695
19422
  /**
19696
19423
  * Create an error file out of errors.md for development and a simple web link to the full errors
19697
19424
  * in production mode.
19698
19425
  * @private
19699
19426
  */
19427
+
19428
+
19700
19429
  var PolishedError = /*#__PURE__*/function (_Error) {
19701
19430
  _inheritsLoose(PolishedError, _Error);
19431
+
19702
19432
  function PolishedError(code) {
19703
19433
  var _this;
19434
+
19704
19435
  if (process.env.NODE_ENV === 'production') {
19705
19436
  _this = _Error.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#" + code + " for more information.") || this;
19706
19437
  } else {
19707
19438
  for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
19708
19439
  args[_key2 - 1] = arguments[_key2];
19709
19440
  }
19441
+
19710
19442
  _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this;
19711
19443
  }
19444
+
19712
19445
  return _assertThisInitialized(_this);
19713
19446
  }
19447
+
19714
19448
  return PolishedError;
19715
19449
  }( /*#__PURE__*/_wrapNativeSuper(Error));
19716
19450
 
19717
19451
  function colorToInt(color) {
19718
19452
  return Math.round(color * 255);
19719
19453
  }
19454
+
19720
19455
  function convertToInt(red, green, blue) {
19721
19456
  return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue);
19722
19457
  }
19458
+
19723
19459
  function hslToRgb(hue, saturation, lightness, convert) {
19724
19460
  if (convert === void 0) {
19725
19461
  convert = convertToInt;
19726
19462
  }
19463
+
19727
19464
  if (saturation === 0) {
19728
19465
  // achromatic
19729
19466
  return convert(lightness, lightness, lightness);
19730
- }
19467
+ } // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV
19468
+
19731
19469
 
19732
- // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV
19733
19470
  var huePrime = (hue % 360 + 360) % 360 / 60;
19734
19471
  var chroma = (1 - Math.abs(2 * lightness - 1)) * saturation;
19735
19472
  var secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
19736
19473
  var red = 0;
19737
19474
  var green = 0;
19738
19475
  var blue = 0;
19476
+
19739
19477
  if (huePrime >= 0 && huePrime < 1) {
19740
19478
  red = chroma;
19741
19479
  green = secondComponent;
@@ -19755,6 +19493,7 @@ function hslToRgb(hue, saturation, lightness, convert) {
19755
19493
  red = chroma;
19756
19494
  blue = secondComponent;
19757
19495
  }
19496
+
19758
19497
  var lightnessModification = lightness - chroma / 2;
19759
19498
  var finalRed = red + lightnessModification;
19760
19499
  var finalGreen = green + lightnessModification;
@@ -19912,11 +19651,11 @@ var namedColorMap = {
19912
19651
  yellow: 'ff0',
19913
19652
  yellowgreen: '9acd32'
19914
19653
  };
19915
-
19916
19654
  /**
19917
19655
  * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.
19918
19656
  * @private
19919
19657
  */
19658
+
19920
19659
  function nameToHex(color) {
19921
19660
  if (typeof color !== 'string') return color;
19922
19661
  var normalizedColorName = color.toLowerCase();
@@ -19931,7 +19670,6 @@ var rgbRegex = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\
19931
19670
  var rgbaRegex = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
19932
19671
  var hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i;
19933
19672
  var hslaRegex = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
19934
-
19935
19673
  /**
19936
19674
  * Returns an RgbColor or RgbaColor object. This utility function is only useful
19937
19675
  * if want to extract a color component. With the color util `toColorString` you
@@ -19943,11 +19681,14 @@ var hslaRegex = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[
19943
19681
  * // Assigns `{ red: 92, green: 102, blue: 112, alpha: 0.75 }` to color2
19944
19682
  * const color2 = parseToRgb('hsla(210, 10%, 40%, 0.75)');
19945
19683
  */
19684
+
19946
19685
  function parseToRgb(color) {
19947
19686
  if (typeof color !== 'string') {
19948
19687
  throw new PolishedError(3);
19949
19688
  }
19689
+
19950
19690
  var normalizedColor = nameToHex(color);
19691
+
19951
19692
  if (normalizedColor.match(hexRegex)) {
19952
19693
  return {
19953
19694
  red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16),
@@ -19955,6 +19696,7 @@ function parseToRgb(color) {
19955
19696
  blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16)
19956
19697
  };
19957
19698
  }
19699
+
19958
19700
  if (normalizedColor.match(hexRgbaRegex)) {
19959
19701
  var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));
19960
19702
  return {
@@ -19964,6 +19706,7 @@ function parseToRgb(color) {
19964
19706
  alpha: alpha
19965
19707
  };
19966
19708
  }
19709
+
19967
19710
  if (normalizedColor.match(reducedHexRegex)) {
19968
19711
  return {
19969
19712
  red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
@@ -19971,8 +19714,10 @@ function parseToRgb(color) {
19971
19714
  blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16)
19972
19715
  };
19973
19716
  }
19717
+
19974
19718
  if (normalizedColor.match(reducedRgbaHexRegex)) {
19975
19719
  var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));
19720
+
19976
19721
  return {
19977
19722
  red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16),
19978
19723
  green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16),
@@ -19980,7 +19725,9 @@ function parseToRgb(color) {
19980
19725
  alpha: _alpha
19981
19726
  };
19982
19727
  }
19728
+
19983
19729
  var rgbMatched = rgbRegex.exec(normalizedColor);
19730
+
19984
19731
  if (rgbMatched) {
19985
19732
  return {
19986
19733
  red: parseInt("" + rgbMatched[1], 10),
@@ -19988,7 +19735,9 @@ function parseToRgb(color) {
19988
19735
  blue: parseInt("" + rgbMatched[3], 10)
19989
19736
  };
19990
19737
  }
19738
+
19991
19739
  var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));
19740
+
19992
19741
  if (rgbaMatched) {
19993
19742
  return {
19994
19743
  red: parseInt("" + rgbaMatched[1], 10),
@@ -19997,32 +19746,44 @@ function parseToRgb(color) {
19997
19746
  alpha: parseFloat("" + rgbaMatched[4]) > 1 ? parseFloat("" + rgbaMatched[4]) / 100 : parseFloat("" + rgbaMatched[4])
19998
19747
  };
19999
19748
  }
19749
+
20000
19750
  var hslMatched = hslRegex.exec(normalizedColor);
19751
+
20001
19752
  if (hslMatched) {
20002
19753
  var hue = parseInt("" + hslMatched[1], 10);
20003
19754
  var saturation = parseInt("" + hslMatched[2], 10) / 100;
20004
19755
  var lightness = parseInt("" + hslMatched[3], 10) / 100;
20005
19756
  var rgbColorString = "rgb(" + hslToRgb(hue, saturation, lightness) + ")";
20006
19757
  var hslRgbMatched = rgbRegex.exec(rgbColorString);
19758
+
20007
19759
  if (!hslRgbMatched) {
20008
19760
  throw new PolishedError(4, normalizedColor, rgbColorString);
20009
19761
  }
19762
+
20010
19763
  return {
20011
19764
  red: parseInt("" + hslRgbMatched[1], 10),
20012
19765
  green: parseInt("" + hslRgbMatched[2], 10),
20013
19766
  blue: parseInt("" + hslRgbMatched[3], 10)
20014
19767
  };
20015
19768
  }
19769
+
20016
19770
  var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
19771
+
20017
19772
  if (hslaMatched) {
20018
19773
  var _hue = parseInt("" + hslaMatched[1], 10);
19774
+
20019
19775
  var _saturation = parseInt("" + hslaMatched[2], 10) / 100;
19776
+
20020
19777
  var _lightness = parseInt("" + hslaMatched[3], 10) / 100;
19778
+
20021
19779
  var _rgbColorString = "rgb(" + hslToRgb(_hue, _saturation, _lightness) + ")";
19780
+
20022
19781
  var _hslRgbMatched = rgbRegex.exec(_rgbColorString);
19782
+
20023
19783
  if (!_hslRgbMatched) {
20024
19784
  throw new PolishedError(4, normalizedColor, _rgbColorString);
20025
19785
  }
19786
+
20026
19787
  return {
20027
19788
  red: parseInt("" + _hslRgbMatched[1], 10),
20028
19789
  green: parseInt("" + _hslRgbMatched[2], 10),
@@ -20030,80 +19791,8 @@ function parseToRgb(color) {
20030
19791
  alpha: parseFloat("" + hslaMatched[4]) > 1 ? parseFloat("" + hslaMatched[4]) / 100 : parseFloat("" + hslaMatched[4])
20031
19792
  };
20032
19793
  }
20033
- throw new PolishedError(5);
20034
- }
20035
-
20036
- function rgbToHsl(color) {
20037
- // make sure rgb are contained in a set of [0, 255]
20038
- var red = color.red / 255;
20039
- var green = color.green / 255;
20040
- var blue = color.blue / 255;
20041
- var max = Math.max(red, green, blue);
20042
- var min = Math.min(red, green, blue);
20043
- var lightness = (max + min) / 2;
20044
- if (max === min) {
20045
- // achromatic
20046
- if (color.alpha !== undefined) {
20047
- return {
20048
- hue: 0,
20049
- saturation: 0,
20050
- lightness: lightness,
20051
- alpha: color.alpha
20052
- };
20053
- } else {
20054
- return {
20055
- hue: 0,
20056
- saturation: 0,
20057
- lightness: lightness
20058
- };
20059
- }
20060
- }
20061
- var hue;
20062
- var delta = max - min;
20063
- var saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);
20064
- switch (max) {
20065
- case red:
20066
- hue = (green - blue) / delta + (green < blue ? 6 : 0);
20067
- break;
20068
- case green:
20069
- hue = (blue - red) / delta + 2;
20070
- break;
20071
- default:
20072
- // blue case
20073
- hue = (red - green) / delta + 4;
20074
- break;
20075
- }
20076
- hue *= 60;
20077
- if (color.alpha !== undefined) {
20078
- return {
20079
- hue: hue,
20080
- saturation: saturation,
20081
- lightness: lightness,
20082
- alpha: color.alpha
20083
- };
20084
- }
20085
- return {
20086
- hue: hue,
20087
- saturation: saturation,
20088
- lightness: lightness
20089
- };
20090
- }
20091
19794
 
20092
- /**
20093
- * Returns an HslColor or HslaColor object. This utility function is only useful
20094
- * if want to extract a color component. With the color util `toColorString` you
20095
- * can convert a HslColor or HslaColor object back to a string.
20096
- *
20097
- * @example
20098
- * // Assigns `{ hue: 0, saturation: 1, lightness: 0.5 }` to color1
20099
- * const color1 = parseToHsl('rgb(255, 0, 0)');
20100
- * // Assigns `{ hue: 128, saturation: 1, lightness: 0.5, alpha: 0.75 }` to color2
20101
- * const color2 = parseToHsl('hsla(128, 100%, 50%, 0.75)');
20102
- */
20103
- function parseToHsl(color) {
20104
- // Note: At a later stage we can optimize this function as right now a hsl
20105
- // color would be parsed converted to rgb values and converted back to hsl.
20106
- return rgbToHsl(parseToRgb(color));
19795
+ throw new PolishedError(5);
20107
19796
  }
20108
19797
 
20109
19798
  /**
@@ -20114,8 +19803,10 @@ var reduceHexValue = function reduceHexValue(value) {
20114
19803
  if (value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6]) {
20115
19804
  return "#" + value[1] + value[3] + value[5];
20116
19805
  }
19806
+
20117
19807
  return value;
20118
19808
  };
19809
+
20119
19810
  var reduceHexValue$1 = reduceHexValue;
20120
19811
 
20121
19812
  function numberToHex(value) {
@@ -20123,83 +19814,6 @@ function numberToHex(value) {
20123
19814
  return hex.length === 1 ? "0" + hex : hex;
20124
19815
  }
20125
19816
 
20126
- function colorToHex(color) {
20127
- return numberToHex(Math.round(color * 255));
20128
- }
20129
- function convertToHex(red, green, blue) {
20130
- return reduceHexValue$1("#" + colorToHex(red) + colorToHex(green) + colorToHex(blue));
20131
- }
20132
- function hslToHex(hue, saturation, lightness) {
20133
- return hslToRgb(hue, saturation, lightness, convertToHex);
20134
- }
20135
-
20136
- /**
20137
- * Returns a string value for the color. The returned result is the smallest possible hex notation.
20138
- *
20139
- * @example
20140
- * // Styles as object usage
20141
- * const styles = {
20142
- * background: hsl(359, 0.75, 0.4),
20143
- * background: hsl({ hue: 360, saturation: 0.75, lightness: 0.4 }),
20144
- * }
20145
- *
20146
- * // styled-components usage
20147
- * const div = styled.div`
20148
- * background: ${hsl(359, 0.75, 0.4)};
20149
- * background: ${hsl({ hue: 360, saturation: 0.75, lightness: 0.4 })};
20150
- * `
20151
- *
20152
- * // CSS in JS Output
20153
- *
20154
- * element {
20155
- * background: "#b3191c";
20156
- * background: "#b3191c";
20157
- * }
20158
- */
20159
- function hsl(value, saturation, lightness) {
20160
- if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number') {
20161
- return hslToHex(value, saturation, lightness);
20162
- } else if (typeof value === 'object' && saturation === undefined && lightness === undefined) {
20163
- return hslToHex(value.hue, value.saturation, value.lightness);
20164
- }
20165
- throw new PolishedError(1);
20166
- }
20167
-
20168
- /**
20169
- * Returns a string value for the color. The returned result is the smallest possible rgba or hex notation.
20170
- *
20171
- * @example
20172
- * // Styles as object usage
20173
- * const styles = {
20174
- * background: hsla(359, 0.75, 0.4, 0.7),
20175
- * background: hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 }),
20176
- * background: hsla(359, 0.75, 0.4, 1),
20177
- * }
20178
- *
20179
- * // styled-components usage
20180
- * const div = styled.div`
20181
- * background: ${hsla(359, 0.75, 0.4, 0.7)};
20182
- * background: ${hsla({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0,7 })};
20183
- * background: ${hsla(359, 0.75, 0.4, 1)};
20184
- * `
20185
- *
20186
- * // CSS in JS Output
20187
- *
20188
- * element {
20189
- * background: "rgba(179,25,28,0.7)";
20190
- * background: "rgba(179,25,28,0.7)";
20191
- * background: "#b3191c";
20192
- * }
20193
- */
20194
- function hsla$1(value, saturation, lightness, alpha) {
20195
- if (typeof value === 'number' && typeof saturation === 'number' && typeof lightness === 'number' && typeof alpha === 'number') {
20196
- return alpha >= 1 ? hslToHex(value, saturation, lightness) : "rgba(" + hslToRgb(value, saturation, lightness) + "," + alpha + ")";
20197
- } else if (typeof value === 'object' && saturation === undefined && lightness === undefined && alpha === undefined) {
20198
- return value.alpha >= 1 ? hslToHex(value.hue, value.saturation, value.lightness) : "rgba(" + hslToRgb(value.hue, value.saturation, value.lightness) + "," + value.alpha + ")";
20199
- }
20200
- throw new PolishedError(2);
20201
- }
20202
-
20203
19817
  /**
20204
19818
  * Returns a string value for the color. The returned result is the smallest possible hex notation.
20205
19819
  *
@@ -20229,6 +19843,7 @@ function rgb(value, green, blue) {
20229
19843
  } else if (typeof value === 'object' && green === undefined && blue === undefined) {
20230
19844
  return reduceHexValue$1("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));
20231
19845
  }
19846
+
20232
19847
  throw new PolishedError(6);
20233
19848
  }
20234
19849
 
@@ -20275,60 +19890,8 @@ function rgba$1(firstValue, secondValue, thirdValue, fourthValue) {
20275
19890
  } else if (typeof firstValue === 'object' && secondValue === undefined && thirdValue === undefined && fourthValue === undefined) {
20276
19891
  return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
20277
19892
  }
20278
- throw new PolishedError(7);
20279
- }
20280
19893
 
20281
- var isRgb = function isRgb(color) {
20282
- return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined');
20283
- };
20284
- var isRgba$1 = function isRgba(color) {
20285
- return typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number' && typeof color.alpha === 'number';
20286
- };
20287
- var isHsl = function isHsl(color) {
20288
- return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && (typeof color.alpha !== 'number' || typeof color.alpha === 'undefined');
20289
- };
20290
- var isHsla$1 = function isHsla(color) {
20291
- return typeof color.hue === 'number' && typeof color.saturation === 'number' && typeof color.lightness === 'number' && typeof color.alpha === 'number';
20292
- };
20293
-
20294
- /**
20295
- * Converts a RgbColor, RgbaColor, HslColor or HslaColor object to a color string.
20296
- * This util is useful in case you only know on runtime which color object is
20297
- * used. Otherwise we recommend to rely on `rgb`, `rgba`, `hsl` or `hsla`.
20298
- *
20299
- * @example
20300
- * // Styles as object usage
20301
- * const styles = {
20302
- * background: toColorString({ red: 255, green: 205, blue: 100 }),
20303
- * background: toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 }),
20304
- * background: toColorString({ hue: 240, saturation: 1, lightness: 0.5 }),
20305
- * background: toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 }),
20306
- * }
20307
- *
20308
- * // styled-components usage
20309
- * const div = styled.div`
20310
- * background: ${toColorString({ red: 255, green: 205, blue: 100 })};
20311
- * background: ${toColorString({ red: 255, green: 205, blue: 100, alpha: 0.72 })};
20312
- * background: ${toColorString({ hue: 240, saturation: 1, lightness: 0.5 })};
20313
- * background: ${toColorString({ hue: 360, saturation: 0.75, lightness: 0.4, alpha: 0.72 })};
20314
- * `
20315
- *
20316
- * // CSS in JS Output
20317
- * element {
20318
- * background: "#ffcd64";
20319
- * background: "rgba(255,205,100,0.72)";
20320
- * background: "#00f";
20321
- * background: "rgba(179,25,25,0.72)";
20322
- * }
20323
- */
20324
-
20325
- function toColorString(color) {
20326
- if (typeof color !== 'object') throw new PolishedError(8);
20327
- if (isRgba$1(color)) return rgba$1(color);
20328
- if (isRgb(color)) return rgb(color);
20329
- if (isHsla$1(color)) return hsla$1(color);
20330
- if (isHsl(color)) return hsl(color);
20331
- throw new PolishedError(8);
19894
+ throw new PolishedError(7);
20332
19895
  }
20333
19896
 
20334
19897
  // Type definitions taken from https://github.com/gcanti/flow-static-land/blob/master/src/Fun.js
@@ -20341,156 +19904,14 @@ function curried(f, length, acc) {
20341
19904
  var combined = acc.concat(Array.prototype.slice.call(arguments));
20342
19905
  return combined.length >= length ? f.apply(this, combined) : curried(f, length, combined);
20343
19906
  };
20344
- }
19907
+ } // eslint-disable-next-line no-redeclare
19908
+
20345
19909
 
20346
- // eslint-disable-next-line no-redeclare
20347
19910
  function curry(f) {
20348
19911
  // eslint-disable-line no-redeclare
20349
19912
  return curried(f, f.length, []);
20350
19913
  }
20351
19914
 
20352
- /**
20353
- * Changes the hue of the color. Hue is a number between 0 to 360. The first
20354
- * argument for adjustHue is the amount of degrees the color is rotated around
20355
- * the color wheel, always producing a positive hue value.
20356
- *
20357
- * @example
20358
- * // Styles as object usage
20359
- * const styles = {
20360
- * background: adjustHue(180, '#448'),
20361
- * background: adjustHue('180', 'rgba(101,100,205,0.7)'),
20362
- * }
20363
- *
20364
- * // styled-components usage
20365
- * const div = styled.div`
20366
- * background: ${adjustHue(180, '#448')};
20367
- * background: ${adjustHue('180', 'rgba(101,100,205,0.7)')};
20368
- * `
20369
- *
20370
- * // CSS in JS Output
20371
- * element {
20372
- * background: "#888844";
20373
- * background: "rgba(136,136,68,0.7)";
20374
- * }
20375
- */
20376
- function adjustHue(degree, color) {
20377
- if (color === 'transparent') return color;
20378
- var hslColor = parseToHsl(color);
20379
- return toColorString(_extends$1({}, hslColor, {
20380
- hue: hslColor.hue + parseFloat(degree)
20381
- }));
20382
- }
20383
-
20384
- // prettier-ignore
20385
- var curriedAdjustHue = curry /* ::<number | string, string, string> */(adjustHue);
20386
-
20387
- function guard(lowerBoundary, upperBoundary, value) {
20388
- return Math.max(lowerBoundary, Math.min(upperBoundary, value));
20389
- }
20390
-
20391
- /**
20392
- * Returns a string value for the darkened color.
20393
- *
20394
- * @example
20395
- * // Styles as object usage
20396
- * const styles = {
20397
- * background: darken(0.2, '#FFCD64'),
20398
- * background: darken('0.2', 'rgba(255,205,100,0.7)'),
20399
- * }
20400
- *
20401
- * // styled-components usage
20402
- * const div = styled.div`
20403
- * background: ${darken(0.2, '#FFCD64')};
20404
- * background: ${darken('0.2', 'rgba(255,205,100,0.7)')};
20405
- * `
20406
- *
20407
- * // CSS in JS Output
20408
- *
20409
- * element {
20410
- * background: "#ffbd31";
20411
- * background: "rgba(255,189,49,0.7)";
20412
- * }
20413
- */
20414
- function darken(amount, color) {
20415
- if (color === 'transparent') return color;
20416
- var hslColor = parseToHsl(color);
20417
- return toColorString(_extends$1({}, hslColor, {
20418
- lightness: guard(0, 1, hslColor.lightness - parseFloat(amount))
20419
- }));
20420
- }
20421
-
20422
- // prettier-ignore
20423
- var curriedDarken = curry /* ::<number | string, string, string> */(darken);
20424
-
20425
- /**
20426
- * Decreases the intensity of a color. Its range is between 0 to 1. The first
20427
- * argument of the desaturate function is the amount by how much the color
20428
- * intensity should be decreased.
20429
- *
20430
- * @example
20431
- * // Styles as object usage
20432
- * const styles = {
20433
- * background: desaturate(0.2, '#CCCD64'),
20434
- * background: desaturate('0.2', 'rgba(204,205,100,0.7)'),
20435
- * }
20436
- *
20437
- * // styled-components usage
20438
- * const div = styled.div`
20439
- * background: ${desaturate(0.2, '#CCCD64')};
20440
- * background: ${desaturate('0.2', 'rgba(204,205,100,0.7)')};
20441
- * `
20442
- *
20443
- * // CSS in JS Output
20444
- * element {
20445
- * background: "#b8b979";
20446
- * background: "rgba(184,185,121,0.7)";
20447
- * }
20448
- */
20449
- function desaturate(amount, color) {
20450
- if (color === 'transparent') return color;
20451
- var hslColor = parseToHsl(color);
20452
- return toColorString(_extends$1({}, hslColor, {
20453
- saturation: guard(0, 1, hslColor.saturation - parseFloat(amount))
20454
- }));
20455
- }
20456
-
20457
- // prettier-ignore
20458
- var curriedDesaturate = curry /* ::<number | string, string, string> */(desaturate);
20459
-
20460
- /**
20461
- * Returns a string value for the lightened color.
20462
- *
20463
- * @example
20464
- * // Styles as object usage
20465
- * const styles = {
20466
- * background: lighten(0.2, '#CCCD64'),
20467
- * background: lighten('0.2', 'rgba(204,205,100,0.7)'),
20468
- * }
20469
- *
20470
- * // styled-components usage
20471
- * const div = styled.div`
20472
- * background: ${lighten(0.2, '#FFCD64')};
20473
- * background: ${lighten('0.2', 'rgba(204,205,100,0.7)')};
20474
- * `
20475
- *
20476
- * // CSS in JS Output
20477
- *
20478
- * element {
20479
- * background: "#e5e6b1";
20480
- * background: "rgba(229,230,177,0.7)";
20481
- * }
20482
- */
20483
- function lighten(amount, color) {
20484
- if (color === 'transparent') return color;
20485
- var hslColor = parseToHsl(color);
20486
- return toColorString(_extends$1({}, hslColor, {
20487
- lightness: guard(0, 1, hslColor.lightness + parseFloat(amount))
20488
- }));
20489
- }
20490
-
20491
- // prettier-ignore
20492
- var curriedLighten = curry /* ::<number | string, string, string> */(lighten);
20493
-
20494
19915
  /**
20495
19916
  * Mixes the two provided colors together by calculating the average of each of the RGB components weighted to the first color by the provided weight.
20496
19917
  *
@@ -20517,21 +19938,25 @@ var curriedLighten = curry /* ::<number | string, string, string> */(lighten);
20517
19938
  * background: "rgba(63, 0, 191, 0.75)";
20518
19939
  * }
20519
19940
  */
19941
+
20520
19942
  function mix$1(weight, color, otherColor) {
20521
19943
  if (color === 'transparent') return otherColor;
20522
19944
  if (otherColor === 'transparent') return color;
20523
19945
  if (weight === 0) return otherColor;
20524
19946
  var parsedColor1 = parseToRgb(color);
19947
+
20525
19948
  var color1 = _extends$1({}, parsedColor1, {
20526
19949
  alpha: typeof parsedColor1.alpha === 'number' ? parsedColor1.alpha : 1
20527
19950
  });
19951
+
20528
19952
  var parsedColor2 = parseToRgb(otherColor);
19953
+
20529
19954
  var color2 = _extends$1({}, parsedColor2, {
20530
19955
  alpha: typeof parsedColor2.alpha === 'number' ? parsedColor2.alpha : 1
20531
- });
20532
-
20533
- // The formula is copied from the original Sass implementation:
19956
+ }); // The formula is copied from the original Sass implementation:
20534
19957
  // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method
19958
+
19959
+
20535
19960
  var alphaDelta = color1.alpha - color2.alpha;
20536
19961
  var x = parseFloat(weight) * 2 - 1;
20537
19962
  var y = x * alphaDelta === -1 ? x : x + alphaDelta;
@@ -20545,217 +19970,13 @@ function mix$1(weight, color, otherColor) {
20545
19970
  alpha: color1.alpha * parseFloat(weight) + color2.alpha * (1 - parseFloat(weight))
20546
19971
  };
20547
19972
  return rgba$1(mixedColor);
20548
- }
20549
-
20550
- // prettier-ignore
20551
- var curriedMix = curry /* ::<number | string, string, string, string> */(mix$1);
20552
- var mix$1$1 = curriedMix;
20553
-
20554
- /**
20555
- * Increases the opacity of a color. Its range for the amount is between 0 to 1.
20556
- *
20557
- *
20558
- * @example
20559
- * // Styles as object usage
20560
- * const styles = {
20561
- * background: opacify(0.1, 'rgba(255, 255, 255, 0.9)');
20562
- * background: opacify(0.2, 'hsla(0, 0%, 100%, 0.5)'),
20563
- * background: opacify('0.5', 'rgba(255, 0, 0, 0.2)'),
20564
- * }
20565
- *
20566
- * // styled-components usage
20567
- * const div = styled.div`
20568
- * background: ${opacify(0.1, 'rgba(255, 255, 255, 0.9)')};
20569
- * background: ${opacify(0.2, 'hsla(0, 0%, 100%, 0.5)')},
20570
- * background: ${opacify('0.5', 'rgba(255, 0, 0, 0.2)')},
20571
- * `
20572
- *
20573
- * // CSS in JS Output
20574
- *
20575
- * element {
20576
- * background: "#fff";
20577
- * background: "rgba(255,255,255,0.7)";
20578
- * background: "rgba(255,0,0,0.7)";
20579
- * }
20580
- */
20581
- function opacify(amount, color) {
20582
- if (color === 'transparent') return color;
20583
- var parsedColor = parseToRgb(color);
20584
- var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;
20585
- var colorWithAlpha = _extends$1({}, parsedColor, {
20586
- alpha: guard(0, 1, (alpha * 100 + parseFloat(amount) * 100) / 100)
20587
- });
20588
- return rgba$1(colorWithAlpha);
20589
- }
20590
-
20591
- // prettier-ignore
20592
- var curriedOpacify = curry /* ::<number | string, string, string> */(opacify);
20593
-
20594
- /**
20595
- * Increases the intensity of a color. Its range is between 0 to 1. The first
20596
- * argument of the saturate function is the amount by how much the color
20597
- * intensity should be increased.
20598
- *
20599
- * @example
20600
- * // Styles as object usage
20601
- * const styles = {
20602
- * background: saturate(0.2, '#CCCD64'),
20603
- * background: saturate('0.2', 'rgba(204,205,100,0.7)'),
20604
- * }
20605
- *
20606
- * // styled-components usage
20607
- * const div = styled.div`
20608
- * background: ${saturate(0.2, '#FFCD64')};
20609
- * background: ${saturate('0.2', 'rgba(204,205,100,0.7)')};
20610
- * `
20611
- *
20612
- * // CSS in JS Output
20613
- *
20614
- * element {
20615
- * background: "#e0e250";
20616
- * background: "rgba(224,226,80,0.7)";
20617
- * }
20618
- */
20619
- function saturate(amount, color) {
20620
- if (color === 'transparent') return color;
20621
- var hslColor = parseToHsl(color);
20622
- return toColorString(_extends$1({}, hslColor, {
20623
- saturation: guard(0, 1, hslColor.saturation + parseFloat(amount))
20624
- }));
20625
- }
20626
-
20627
- // prettier-ignore
20628
- var curriedSaturate = curry /* ::<number | string, string, string> */(saturate);
20629
-
20630
- /**
20631
- * Sets the hue of a color to the provided value. The hue range can be
20632
- * from 0 and 359.
20633
- *
20634
- * @example
20635
- * // Styles as object usage
20636
- * const styles = {
20637
- * background: setHue(42, '#CCCD64'),
20638
- * background: setHue('244', 'rgba(204,205,100,0.7)'),
20639
- * }
20640
- *
20641
- * // styled-components usage
20642
- * const div = styled.div`
20643
- * background: ${setHue(42, '#CCCD64')};
20644
- * background: ${setHue('244', 'rgba(204,205,100,0.7)')};
20645
- * `
20646
- *
20647
- * // CSS in JS Output
20648
- * element {
20649
- * background: "#cdae64";
20650
- * background: "rgba(107,100,205,0.7)";
20651
- * }
20652
- */
20653
- function setHue(hue, color) {
20654
- if (color === 'transparent') return color;
20655
- return toColorString(_extends$1({}, parseToHsl(color), {
20656
- hue: parseFloat(hue)
20657
- }));
20658
- }
20659
-
20660
- // prettier-ignore
20661
- var curriedSetHue = curry /* ::<number | string, string, string> */(setHue);
20662
-
20663
- /**
20664
- * Sets the lightness of a color to the provided value. The lightness range can be
20665
- * from 0 and 1.
20666
- *
20667
- * @example
20668
- * // Styles as object usage
20669
- * const styles = {
20670
- * background: setLightness(0.2, '#CCCD64'),
20671
- * background: setLightness('0.75', 'rgba(204,205,100,0.7)'),
20672
- * }
20673
- *
20674
- * // styled-components usage
20675
- * const div = styled.div`
20676
- * background: ${setLightness(0.2, '#CCCD64')};
20677
- * background: ${setLightness('0.75', 'rgba(204,205,100,0.7)')};
20678
- * `
20679
- *
20680
- * // CSS in JS Output
20681
- * element {
20682
- * background: "#4d4d19";
20683
- * background: "rgba(223,224,159,0.7)";
20684
- * }
20685
- */
20686
- function setLightness(lightness, color) {
20687
- if (color === 'transparent') return color;
20688
- return toColorString(_extends$1({}, parseToHsl(color), {
20689
- lightness: parseFloat(lightness)
20690
- }));
20691
- }
20692
-
20693
- // prettier-ignore
20694
- var curriedSetLightness = curry /* ::<number | string, string, string> */(setLightness);
19973
+ } // prettier-ignore
20695
19974
 
20696
- /**
20697
- * Sets the saturation of a color to the provided value. The saturation range can be
20698
- * from 0 and 1.
20699
- *
20700
- * @example
20701
- * // Styles as object usage
20702
- * const styles = {
20703
- * background: setSaturation(0.2, '#CCCD64'),
20704
- * background: setSaturation('0.75', 'rgba(204,205,100,0.7)'),
20705
- * }
20706
- *
20707
- * // styled-components usage
20708
- * const div = styled.div`
20709
- * background: ${setSaturation(0.2, '#CCCD64')};
20710
- * background: ${setSaturation('0.75', 'rgba(204,205,100,0.7)')};
20711
- * `
20712
- *
20713
- * // CSS in JS Output
20714
- * element {
20715
- * background: "#adad84";
20716
- * background: "rgba(228,229,76,0.7)";
20717
- * }
20718
- */
20719
- function setSaturation(saturation, color) {
20720
- if (color === 'transparent') return color;
20721
- return toColorString(_extends$1({}, parseToHsl(color), {
20722
- saturation: parseFloat(saturation)
20723
- }));
20724
- }
20725
19975
 
20726
- // prettier-ignore
20727
- var curriedSetSaturation = curry /* ::<number | string, string, string> */(setSaturation);
20728
-
20729
- /**
20730
- * Shades a color by mixing it with black. `shade` can produce
20731
- * hue shifts, where as `darken` manipulates the luminance channel and therefore
20732
- * doesn't produce hue shifts.
20733
- *
20734
- * @example
20735
- * // Styles as object usage
20736
- * const styles = {
20737
- * background: shade(0.25, '#00f')
20738
- * }
20739
- *
20740
- * // styled-components usage
20741
- * const div = styled.div`
20742
- * background: ${shade(0.25, '#00f')};
20743
- * `
20744
- *
20745
- * // CSS in JS Output
20746
- *
20747
- * element {
20748
- * background: "#00003f";
20749
- * }
20750
- */
20751
-
20752
- function shade(percentage, color) {
20753
- if (color === 'transparent') return color;
20754
- return mix$1$1(parseFloat(percentage), 'rgb(0, 0, 0)', color);
20755
- }
20756
-
20757
- // prettier-ignore
20758
- var curriedShade = curry /* ::<number | string, string, string> */(shade);
19976
+ var curriedMix = /*#__PURE__*/curry
19977
+ /* ::<number | string, string, string, string> */
19978
+ (mix$1);
19979
+ var mix$1$1 = curriedMix;
20759
19980
 
20760
19981
  /**
20761
19982
  * Tints a color by mixing it with white. `tint` can produce
@@ -20783,51 +20004,13 @@ var curriedShade = curry /* ::<number | string, string, string> */(shade);
20783
20004
  function tint(percentage, color) {
20784
20005
  if (color === 'transparent') return color;
20785
20006
  return mix$1$1(parseFloat(percentage), 'rgb(255, 255, 255)', color);
20786
- }
20007
+ } // prettier-ignore
20787
20008
 
20788
- // prettier-ignore
20789
- var curriedTint = curry /* ::<number | string, string, string> */(tint);
20790
- var curriedTint$1 = curriedTint;
20791
20009
 
20792
- /**
20793
- * Decreases the opacity of a color. Its range for the amount is between 0 to 1.
20794
- *
20795
- *
20796
- * @example
20797
- * // Styles as object usage
20798
- * const styles = {
20799
- * background: transparentize(0.1, '#fff'),
20800
- * background: transparentize(0.2, 'hsl(0, 0%, 100%)'),
20801
- * background: transparentize('0.5', 'rgba(255, 0, 0, 0.8)'),
20802
- * }
20803
- *
20804
- * // styled-components usage
20805
- * const div = styled.div`
20806
- * background: ${transparentize(0.1, '#fff')};
20807
- * background: ${transparentize(0.2, 'hsl(0, 0%, 100%)')};
20808
- * background: ${transparentize('0.5', 'rgba(255, 0, 0, 0.8)')};
20809
- * `
20810
- *
20811
- * // CSS in JS Output
20812
- *
20813
- * element {
20814
- * background: "rgba(255,255,255,0.9)";
20815
- * background: "rgba(255,255,255,0.8)";
20816
- * background: "rgba(255,0,0,0.3)";
20817
- * }
20818
- */
20819
- function transparentize(amount, color) {
20820
- if (color === 'transparent') return color;
20821
- var parsedColor = parseToRgb(color);
20822
- var alpha = typeof parsedColor.alpha === 'number' ? parsedColor.alpha : 1;
20823
- var colorWithAlpha = _extends$1({}, parsedColor, {
20824
- alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
20825
- });
20826
- return rgba$1(colorWithAlpha);
20827
- }
20828
-
20829
- // prettier-ignore
20830
- var curriedTransparentize = curry /* ::<number | string, string, string> */(transparentize);
20010
+ var curriedTint = /*#__PURE__*/curry
20011
+ /* ::<number | string, string, string> */
20012
+ (tint);
20013
+ var curriedTint$1 = curriedTint;
20831
20014
 
20832
20015
  var linkColor = MATISSE_BLUE;
20833
20016
  var fallbackValues$8 = {
@@ -23518,19 +22701,32 @@ var toIndexedObject = function (it) {
23518
22701
  return indexedObject(requireObjectCoercible(it));
23519
22702
  };
23520
22703
 
23521
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
23522
22704
  var documentAll = typeof document == 'object' && document.all;
23523
22705
 
22706
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
22707
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
22708
+ var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;
22709
+
22710
+ var documentAll_1 = {
22711
+ all: documentAll,
22712
+ IS_HTMLDDA: IS_HTMLDDA
22713
+ };
22714
+
22715
+ var documentAll$1 = documentAll_1.all;
22716
+
23524
22717
  // `IsCallable` abstract operation
23525
22718
  // https://tc39.es/ecma262/#sec-iscallable
23526
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
23527
- var isCallable = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
23528
- return typeof argument == 'function' || argument === documentAll;
22719
+ var isCallable = documentAll_1.IS_HTMLDDA ? function (argument) {
22720
+ return typeof argument == 'function' || argument === documentAll$1;
23529
22721
  } : function (argument) {
23530
22722
  return typeof argument == 'function';
23531
22723
  };
23532
22724
 
23533
- var isObject = function (it) {
22725
+ var documentAll$2 = documentAll_1.all;
22726
+
22727
+ var isObject = documentAll_1.IS_HTMLDDA ? function (it) {
22728
+ return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll$2;
22729
+ } : function (it) {
23534
22730
  return typeof it == 'object' ? it !== null : isCallable(it);
23535
22731
  };
23536
22732
 
@@ -23666,10 +22862,10 @@ var shared = createCommonjsModule(function (module) {
23666
22862
  (module.exports = function (key, value) {
23667
22863
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
23668
22864
  })('versions', []).push({
23669
- version: '3.35.1',
22865
+ version: '3.33.3',
23670
22866
  mode: 'global',
23671
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
23672
- license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
22867
+ copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
22868
+ license: 'https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE',
23673
22869
  source: 'https://github.com/zloirock/core-js'
23674
22870
  });
23675
22871
  });
@@ -23966,7 +23162,7 @@ var TEMPLATE = String(String).split('String');
23966
23162
 
23967
23163
  var makeBuiltIn = module.exports = function (value, name, options) {
23968
23164
  if (stringSlice($String(name), 0, 7) === 'Symbol(') {
23969
- name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
23165
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
23970
23166
  }
23971
23167
  if (options && options.getter) name = 'get ' + name;
23972
23168
  if (options && options.setter) name = 'set ' + name;
@@ -24054,8 +23250,7 @@ var min$1 = Math.min;
24054
23250
  // `ToLength` abstract operation
24055
23251
  // https://tc39.es/ecma262/#sec-tolength
24056
23252
  var toLength = function (argument) {
24057
- var len = toIntegerOrInfinity(argument);
24058
- return len > 0 ? min$1(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
23253
+ return argument > 0 ? min$1(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
24059
23254
  };
24060
23255
 
24061
23256
  // `LengthOfArrayLike` abstract operation
@@ -24215,7 +23410,7 @@ var _export = function (options, source) {
24215
23410
  } else if (STATIC) {
24216
23411
  target = global_1[TARGET] || defineGlobalProperty(TARGET, {});
24217
23412
  } else {
24218
- target = global_1[TARGET] && global_1[TARGET].prototype;
23413
+ target = (global_1[TARGET] || {}).prototype;
24219
23414
  }
24220
23415
  if (target) for (key in source) {
24221
23416
  sourceProperty = source[key];
@@ -24478,15 +23673,11 @@ var functionUncurryThisAccessor = function (object, key, method) {
24478
23673
  } catch (error) { /* empty */ }
24479
23674
  };
24480
23675
 
24481
- var isPossiblePrototype = function (argument) {
24482
- return isObject(argument) || argument === null;
24483
- };
24484
-
24485
23676
  var $String$4 = String;
24486
23677
  var $TypeError$6 = TypeError;
24487
23678
 
24488
23679
  var aPossiblePrototype = function (argument) {
24489
- if (isPossiblePrototype(argument)) return argument;
23680
+ if (typeof argument == 'object' || isCallable(argument)) return argument;
24490
23681
  throw new $TypeError$6("Can't set " + $String$4(argument) + ' as a prototype');
24491
23682
  };
24492
23683
 
@@ -26273,7 +25464,7 @@ var useToastNotification = function useToastNotification() {
26273
25464
  toastState = _useState2[0],
26274
25465
  setToastState = _useState2[1];
26275
25466
  React.useEffect(function () {
26276
- if (toastState.isOpen) {
25467
+ if (toastState.isOpen && timeout > 0) {
26277
25468
  setTimeout(function () {
26278
25469
  setToastState(initialToastState);
26279
25470
  }, timeout);
@@ -28037,38 +27228,27 @@ var fallbackValues$s = {
28037
27228
  height: height$1
28038
27229
  };
28039
27230
 
28040
- var getLargeIcon = function getLargeIcon(iconName, isDisabled) {
27231
+ var getLargeIcon = function getLargeIcon(iconName) {
28041
27232
  switch (iconName) {
28042
27233
  case "accounts":
28043
- return isDisabled ? /*#__PURE__*/React__default.createElement(DisabledAccountsAddIcon, null) : /*#__PURE__*/React__default.createElement(AccountsAddIcon$1, null);
27234
+ return /*#__PURE__*/React__default.createElement(AccountsAddIcon$1, null);
28044
27235
  case "properties":
28045
- return isDisabled ? /*#__PURE__*/React__default.createElement(DisabledPropertiesAddIcon, null) : /*#__PURE__*/React__default.createElement(PropertiesAddIcon$1, null);
27236
+ return /*#__PURE__*/React__default.createElement(PropertiesAddIcon$1, null);
28046
27237
  case "payments":
28047
- return isDisabled ? /*#__PURE__*/React__default.createElement(DisabledPaymentMethodsAddIcon, null) : /*#__PURE__*/React__default.createElement(PaymentMethodAddIcon$1, null);
27238
+ return /*#__PURE__*/React__default.createElement(PaymentMethodAddIcon$1, null);
28048
27239
  default:
28049
- return isDisabled ? /*#__PURE__*/React__default.createElement(DisabledAccountsAddIcon, null) : /*#__PURE__*/React__default.createElement(AccountsAddIcon$1, null);
27240
+ return /*#__PURE__*/React__default.createElement(AccountsAddIcon$1, null);
28050
27241
  }
28051
27242
  };
28052
- var renderDisabledContent = function renderDisabledContent(_ref) {
28053
- var children = _ref.children;
28054
- return /*#__PURE__*/React__default.createElement(Box, {
28055
- padding: "0",
28056
- minHeight: "100%",
28057
- extraStyles: "cursor: default;",
28058
- "aria-disabled": true
28059
- }, children);
28060
- };
28061
- var renderContent = function renderContent(_ref2) {
28062
- var isLink = _ref2.isLink,
28063
- destination = _ref2.destination,
28064
- dataQa = _ref2.dataQa,
28065
- isDisabled = _ref2.isDisabled,
28066
- children = _ref2.children,
28067
- action = _ref2.action;
27243
+ var PlaceholderContentWrapper = function PlaceholderContentWrapper(_ref) {
27244
+ var isLink = _ref.isLink,
27245
+ action = _ref.action,
27246
+ destination = _ref.destination,
27247
+ children = _ref.children,
27248
+ dataQa = _ref.dataQa;
28068
27249
  return isLink ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
28069
27250
  to: destination,
28070
27251
  "data-qa": dataQa,
28071
- disabled: isDisabled,
28072
27252
  style: {
28073
27253
  textDecoration: "none"
28074
27254
  }
@@ -28084,60 +27264,38 @@ var renderContent = function renderContent(_ref2) {
28084
27264
  dataQa: dataQa
28085
27265
  }, children);
28086
27266
  };
28087
- var PlaceholderContentWrapper = function PlaceholderContentWrapper(_ref3) {
28088
- var isLink = _ref3.isLink,
28089
- action = _ref3.action,
28090
- destination = _ref3.destination,
28091
- children = _ref3.children,
28092
- _ref3$isDisabled = _ref3.isDisabled,
28093
- isDisabled = _ref3$isDisabled === void 0 ? false : _ref3$isDisabled,
28094
- dataQa = _ref3.dataQa;
28095
- return isDisabled ? renderDisabledContent({
28096
- children: children
28097
- }) : renderContent({
28098
- children: children,
28099
- action: action,
28100
- isLink: isLink,
28101
- destination: destination,
28102
- dataQa: dataQa,
28103
- isDisabled: isDisabled
28104
- });
28105
- };
28106
- var Placeholder = function Placeholder(_ref4) {
28107
- var text = _ref4.text,
28108
- action = _ref4.action,
28109
- _ref4$visible = _ref4.visible,
28110
- visible = _ref4$visible === void 0 ? true : _ref4$visible,
28111
- _ref4$isLink = _ref4.isLink,
28112
- isLink = _ref4$isLink === void 0 ? false : _ref4$isLink,
28113
- destination = _ref4.destination,
28114
- variant = _ref4.variant,
28115
- largeIcon = _ref4.largeIcon,
28116
- themeValues = _ref4.themeValues,
28117
- _ref4$isDisabled = _ref4.isDisabled,
28118
- isDisabled = _ref4$isDisabled === void 0 ? false : _ref4$isDisabled,
28119
- dataQa = _ref4.dataQa;
27267
+ var Placeholder = function Placeholder(_ref2) {
27268
+ var text = _ref2.text,
27269
+ action = _ref2.action,
27270
+ _ref2$visible = _ref2.visible,
27271
+ visible = _ref2$visible === void 0 ? true : _ref2$visible,
27272
+ _ref2$isLink = _ref2.isLink,
27273
+ isLink = _ref2$isLink === void 0 ? false : _ref2$isLink,
27274
+ destination = _ref2.destination,
27275
+ variant = _ref2.variant,
27276
+ largeIcon = _ref2.largeIcon,
27277
+ themeValues = _ref2.themeValues,
27278
+ dataQa = _ref2.dataQa;
28120
27279
  return /*#__PURE__*/React__default.createElement(PlaceholderContentWrapper, {
28121
27280
  isLink: isLink,
28122
27281
  action: action,
28123
27282
  destination: destination,
28124
- dataQa: dataQa,
28125
- isDisabled: isDisabled
27283
+ dataQa: dataQa
28126
27284
  }, /*#__PURE__*/React__default.createElement(Box, {
28127
27285
  padding: "0",
28128
27286
  borderRadius: "4px",
28129
27287
  border: "none",
28130
27288
  minHeight: themeValues.height,
28131
27289
  hiddenStyles: !visible,
28132
- 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;"),
28133
- hoverStyles: "background-color: ".concat(isDisabled ? TRANSPARENT : variant === "large" ? GRECIAN_GREY : curriedTint$1(0.9, themeValues.color), ";")
27290
+ 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;"),
27291
+ hoverStyles: "background-color: ".concat(variant === "large" ? GRECIAN_GREY : curriedTint$1(0.9, themeValues.color), ";")
28134
27292
  }, /*#__PURE__*/React__default.createElement(Center, {
28135
27293
  maxWidth: "300px"
28136
27294
  }, /*#__PURE__*/React__default.createElement(Box, {
28137
27295
  padding: "0",
28138
27296
  tabIndex: "0",
28139
27297
  onKeyPress: function onKeyPress(e) {
28140
- return isDisabled ? noop : e.key === "Enter" && action();
27298
+ return e.key === "Enter" && action();
28141
27299
  }
28142
27300
  }, /*#__PURE__*/React__default.createElement(Cluster, {
28143
27301
  justify: "center",
@@ -28148,14 +27306,13 @@ var Placeholder = function Placeholder(_ref4) {
28148
27306
  childGap: "0"
28149
27307
  }, variant === "large" && /*#__PURE__*/React__default.createElement("div", null), /*#__PURE__*/React__default.createElement(Box, {
28150
27308
  padding: "0",
28151
- "aria-disabled": isDisabled,
28152
- 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 }")
27309
+ extraStyles: ".fill { \n fill: ".concat(variant === "large" ? CHARADE_GREY : themeValues.color, "; \n } .stroke { \n stroke: ").concat(variant === "large" ? CHARADE_GREY : themeValues.color, "; \n } ")
28153
27310
  }, variant === "large" ? /*#__PURE__*/React__default.createElement(Center, {
28154
27311
  intrinsic: true
28155
- }, getLargeIcon(largeIcon, isDisabled), /*#__PURE__*/React__default.createElement(Text$1, {
27312
+ }, getLargeIcon(largeIcon), /*#__PURE__*/React__default.createElement(Text$1, {
28156
27313
  variant: "pS",
28157
- color: isDisabled ? MANATEE_GREY : themeValues.color,
28158
- weight: FONT_WEIGHT_REGULAR,
27314
+ color: themeValues.color,
27315
+ weight: FONT_WEIGHT_SEMIBOLD,
28159
27316
  extraStyles: "text-align: center;"
28160
27317
  }, text)) : /*#__PURE__*/React__default.createElement(Cover, {
28161
27318
  singleChild: true,
@@ -28164,13 +27321,13 @@ var Placeholder = function Placeholder(_ref4) {
28164
27321
  justify: "center",
28165
27322
  align: "center"
28166
27323
  }, /*#__PURE__*/React__default.createElement(IconAdd, {
28167
- fill: isDisabled ? MANATEE_GREY : WHITE
27324
+ strokeWidth: "2"
28168
27325
  }), /*#__PURE__*/React__default.createElement(Center, {
28169
27326
  intrinsic: true
28170
27327
  }, /*#__PURE__*/React__default.createElement(Text$1, {
28171
27328
  variant: "pS",
28172
- color: isDisabled ? MANATEE_GREY : themeValues.color,
28173
- weight: FONT_WEIGHT_REGULAR,
27329
+ color: themeValues.color,
27330
+ weight: FONT_WEIGHT_SEMIBOLD,
28174
27331
  extraStyles: "padding: 0 0 0 8px; text-align: center;"
28175
27332
  }, text)))))))))));
28176
27333
  };
@@ -41078,9 +40235,7 @@ var EditableList = function EditableList(_ref) {
41078
40235
  qaPrefix = _ref.qaPrefix,
41079
40236
  ariaLabel = _ref.ariaLabel,
41080
40237
  _ref$editItemAriaRole = _ref.editItemAriaRole,
41081
- editItemAriaRole = _ref$editItemAriaRole === void 0 ? "" : _ref$editItemAriaRole,
41082
- _ref$disablePlacehold = _ref.disablePlaceholder,
41083
- disablePlaceholder = _ref$disablePlacehold === void 0 ? false : _ref$disablePlacehold;
40238
+ editItemAriaRole = _ref$editItemAriaRole === void 0 ? "" : _ref$editItemAriaRole;
41084
40239
  var addText = "Add a".concat(itemName[0].match(/[aieouAIEOU]/) ? "n" : "", " ").concat(itemName);
41085
40240
  return /*#__PURE__*/React__default.createElement(Box, {
41086
40241
  padding: listPadding,
@@ -41157,22 +40312,13 @@ var EditableList = function EditableList(_ref) {
41157
40312
  "aria-label": "Edit ".concat(ariaLabel || itemName),
41158
40313
  role: editItemAriaRole
41159
40314
  }))));
41160
- })), canAdd && (!maxItems || items.length < maxItems) && !disablePlaceholder ? /*#__PURE__*/React__default.createElement(Box, {
41161
- padding: items.length === 0 ? "0" : "1rem 0 0"
41162
- }, /*#__PURE__*/React__default.createElement(Placeholder$1, {
41163
- text: addText,
41164
- action: addItem,
41165
- dataQa: "Add " + qaPrefix,
41166
- "aria-label": addText,
41167
- isDisabled: disablePlaceholder
41168
- })) : /*#__PURE__*/React__default.createElement(Box, {
40315
+ })), canAdd && (!maxItems || items.length < maxItems) && /*#__PURE__*/React__default.createElement(Box, {
41169
40316
  padding: items.length === 0 ? "0" : "1rem 0 0"
41170
40317
  }, /*#__PURE__*/React__default.createElement(Placeholder$1, {
41171
40318
  text: addText,
41172
40319
  action: addItem,
41173
40320
  dataQa: "Add " + qaPrefix,
41174
- "aria-label": addText,
41175
- isDisabled: disablePlaceholder
40321
+ "aria-label": addText
41176
40322
  }))));
41177
40323
  };
41178
40324
 
@@ -50245,7 +49391,9 @@ var ToastNotification = function ToastNotification(_ref) {
50245
49391
  height = _ref$height === void 0 ? "56px" : _ref$height,
50246
49392
  _ref$childGap = _ref.childGap,
50247
49393
  childGap = _ref$childGap === void 0 ? "1rem" : _ref$childGap,
50248
- backgroundColor = _ref.backgroundColor;
49394
+ backgroundColor = _ref.backgroundColor,
49395
+ _ref$role = _ref.role,
49396
+ role = _ref$role === void 0 ? "alert" : _ref$role;
50249
49397
  return /*#__PURE__*/React__default.createElement(Box, {
50250
49398
  onClick: closeToastNotification,
50251
49399
  background: backgroundColor ? backgroundColor : variant === VARIANTS.SUCCESS ? HINT_GREEN : variant === VARIANTS.ERROR ? ERROR_BACKGROUND_COLOR : WHITE,
@@ -50256,7 +49404,12 @@ var ToastNotification = function ToastNotification(_ref) {
50256
49404
  padding: "0rem 1rem",
50257
49405
  borderRadius: "4px",
50258
49406
  boxShadow: generateShadows().standard.base,
50259
- extraStyles: "\n display: ".concat(toastOpen ? "block" : "none", ";\n position: fixed; bottom: 4rem; left: 4rem;\n ").concat(extraStyles, ";\n cursor: pointer;\n ")
49407
+ extraStyles: "\n display: ".concat(toastOpen ? "block" : "none", ";\n position: fixed; bottom: 4rem; left: 4rem;\n ").concat(extraStyles, ";\n cursor: pointer;\n "),
49408
+ role: role
49409
+ }, /*#__PURE__*/React__default.createElement(Cluster, {
49410
+ align: "center",
49411
+ childGap: childGap,
49412
+ justify: "space-between"
50260
49413
  }, /*#__PURE__*/React__default.createElement(Cluster, {
50261
49414
  align: "center",
50262
49415
  childGap: childGap
@@ -50266,7 +49419,7 @@ var ToastNotification = function ToastNotification(_ref) {
50266
49419
  }, /*#__PURE__*/React__default.createElement(Paragraph$1, {
50267
49420
  weight: FONT_WEIGHT_SEMIBOLD,
50268
49421
  extraStyles: "word-break: break-word;"
50269
- }, message)), /*#__PURE__*/React__default.createElement(IconQuitLarge, null)));
49422
+ }, message))), /*#__PURE__*/React__default.createElement(IconQuitLarge, null)));
50270
49423
  };
50271
49424
 
50272
49425
  var fontWeight$9 = "600";
@@ -50938,9 +50091,6 @@ exports.Cover = Cover;
50938
50091
  exports.CustomerSearchIcon = CustomerSearchIcon;
50939
50092
  exports.DefaultPageTemplate = DefaultPageTemplate;
50940
50093
  exports.Detail = Detail$1;
50941
- exports.DisabledAccountsAddIcon = DisabledAccountsAddIcon;
50942
- exports.DisabledPaymentMethodsAddIcon = DisabledPaymentMethodsAddIcon;
50943
- exports.DisabledPropertiesAddIcon = DisabledPropertiesAddIcon;
50944
50094
  exports.DisplayBox = DisplayBox$1;
50945
50095
  exports.DisplayCard = DisplayCard;
50946
50096
  exports.Dropdown = Dropdown$1;