@thecb/components 11.8.1-beta.0 → 11.8.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 CHANGED
@@ -1879,6 +1879,20 @@ var adjustHexColor = function adjustHexColor(hex, percent, action) {
1879
1879
  // Convert back to hex
1880
1880
  return "#".concat(((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1).padStart(6, "0"));
1881
1881
  };
1882
+ var arrowBorder = function arrowBorder(borderColor, direction) {
1883
+ var width = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "8px";
1884
+ var angle = "".concat(width, " solid transparent");
1885
+ var straight = "".concat(width, " solid ").concat(borderColor);
1886
+ if (direction == "down") {
1887
+ return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-top: ").concat(straight);
1888
+ } else if (direction == "up") {
1889
+ return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-bottom: ").concat(straight);
1890
+ } else if (direction == "left") {
1891
+ return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-right: ").concat(straight);
1892
+ } else if (direction == "right") {
1893
+ return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-left: ").concat(straight);
1894
+ }
1895
+ };
1882
1896
 
1883
1897
  var general = /*#__PURE__*/Object.freeze({
1884
1898
  __proto__: null,
@@ -1902,7 +1916,8 @@ var general = /*#__PURE__*/Object.freeze({
1902
1916
  titleCaseString: titleCaseString,
1903
1917
  kebabCaseString: kebabCaseString,
1904
1918
  wrapIndex: wrapIndex,
1905
- adjustHexColor: adjustHexColor
1919
+ adjustHexColor: adjustHexColor,
1920
+ arrowBorder: arrowBorder
1906
1921
  });
1907
1922
 
1908
1923
  var _excluded$1 = ["themeValues", "weight", "color", "textWrap", "extraStyles", "hoverStyles", "onClick", "onKeyPress", "as", "dataQa", "children", "variant"];
@@ -14863,7 +14878,9 @@ var GenericErrorIcon = function GenericErrorIcon() {
14863
14878
  };
14864
14879
 
14865
14880
  var IconAdd = function IconAdd(_ref) {
14866
- var _ref$strokeWidth = _ref.strokeWidth,
14881
+ var _ref$stroke = _ref.stroke,
14882
+ stroke = _ref$stroke === void 0 ? "none" : _ref$stroke,
14883
+ _ref$strokeWidth = _ref.strokeWidth,
14867
14884
  strokeWidth = _ref$strokeWidth === void 0 ? 1 : _ref$strokeWidth;
14868
14885
  return /*#__PURE__*/React__default.createElement("svg", {
14869
14886
  xmlns: "http://www.w3.org/2000/svg",
@@ -14878,7 +14895,7 @@ var IconAdd = function IconAdd(_ref) {
14878
14895
  })), /*#__PURE__*/React__default.createElement("g", {
14879
14896
  fill: "none",
14880
14897
  fillRule: "evenodd",
14881
- stroke: "none",
14898
+ stroke: stroke,
14882
14899
  strokeWidth: strokeWidth
14883
14900
  }, /*#__PURE__*/React__default.createElement("g", {
14884
14901
  transform: "translate(-407 -563)"
@@ -25196,406 +25213,6 @@ var DisplayBox = function DisplayBox(_ref) {
25196
25213
  };
25197
25214
  var DisplayBox$1 = themeComponent(DisplayBox, "DisplayBox", fallbackValues$l);
25198
25215
 
25199
- /*
25200
- Hook that assigns a click event listener to the main document element
25201
- Returns a ref to attach to another element (like an icon/button that triggers a popover)
25202
- If a click event gets captured by the document and the assigned element isn't the target
25203
- hook will run whatever handler is passed (eg a function that closes a popover)
25204
-
25205
- See popover component for implementation
25206
-
25207
- */
25208
-
25209
- var useOutsideClickHook = function useOutsideClickHook(handler) {
25210
- var ref = React.useRef();
25211
- React.useEffect(function () {
25212
- var handleOutsideClick = function handleOutsideClick(e) {
25213
- if (ref.current && !ref.current.contains(e.target)) {
25214
- handler();
25215
- }
25216
- };
25217
- document.addEventListener("click", handleOutsideClick, true);
25218
- return function () {
25219
- document.removeEventListener("click", handleOutsideClick, true);
25220
- };
25221
- }, [ref]);
25222
- return ref;
25223
- };
25224
-
25225
- /*
25226
- Hook that takes an ID selector for an element on the screen
25227
- And optionally values for top position, left position, smooth behavior
25228
- Finds element on screen and scrolls it to the provided coordinates
25229
-
25230
- (string, number, number, string, number) => undefined;
25231
- */
25232
-
25233
- var useScrollTo = function useScrollTo(id) {
25234
- var top = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
25235
- var left = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
25236
- var behavior = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "auto";
25237
- var delay = arguments.length > 4 ? arguments[4] : undefined;
25238
- var scrollItem;
25239
- if (delay) {
25240
- setTimeout(function () {
25241
- var _scrollItem;
25242
- scrollItem = document.getElementById(id);
25243
- (_scrollItem = scrollItem) === null || _scrollItem === void 0 || _scrollItem.scrollTo({
25244
- top: top,
25245
- left: left,
25246
- behavior: behavior
25247
- });
25248
- }, delay);
25249
- } else {
25250
- var _scrollItem2;
25251
- scrollItem = document.getElementById(id);
25252
- (_scrollItem2 = scrollItem) === null || _scrollItem2 === void 0 || _scrollItem2.scrollTo({
25253
- top: top,
25254
- left: left,
25255
- behavior: behavior
25256
- });
25257
- }
25258
- };
25259
-
25260
- var initialToastState = {
25261
- isOpen: false,
25262
- variant: "",
25263
- message: ""
25264
- };
25265
- var useToastNotification = function useToastNotification() {
25266
- var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
25267
- _ref$timeout = _ref.timeout,
25268
- timeout = _ref$timeout === void 0 ? 5000 : _ref$timeout;
25269
- var _useState = React.useState(initialToastState),
25270
- _useState2 = _slicedToArray(_useState, 2),
25271
- toastState = _useState2[0],
25272
- setToastState = _useState2[1];
25273
- React.useEffect(function () {
25274
- if (toastState.isOpen && timeout > 0) {
25275
- setTimeout(function () {
25276
- setToastState(initialToastState);
25277
- }, timeout);
25278
- }
25279
- }, [timeout, toastState.isOpen]);
25280
- var showToast = function showToast(_ref2) {
25281
- var message = _ref2.message,
25282
- variant = _ref2.variant;
25283
- return setToastState({
25284
- isOpen: true,
25285
- variant: variant,
25286
- message: message
25287
- });
25288
- };
25289
- var hideToast = function hideToast() {
25290
- return setToastState(initialToastState);
25291
- };
25292
- return {
25293
- isToastOpen: toastState.isOpen,
25294
- toastVariant: toastState.variant,
25295
- toastMessage: toastState.message,
25296
- showToast: showToast,
25297
- hideToast: hideToast
25298
- };
25299
- };
25300
-
25301
- function useConditionallyAddValidator(condition, validatorFn, addValidator, removeValidator) {
25302
- React.useEffect(function () {
25303
- if (condition) {
25304
- addValidator(validatorFn());
25305
- }
25306
- return function () {
25307
- // Remove validator when component unmounts
25308
- removeValidator(validatorFn());
25309
- };
25310
- }, [condition, addValidator, removeValidator]);
25311
- }
25312
-
25313
- /**
25314
- * A custom hook to dynamically load the Cloudflare Turnstile script.
25315
- *
25316
- * @param {string} verifyURL - The URL of the Turnstile verification script.
25317
- */
25318
- var useTurnstileScript = function useTurnstileScript(verifyURL) {
25319
- var _useState = React.useState(false),
25320
- _useState2 = _slicedToArray(_useState, 2),
25321
- scriptLoaded = _useState2[0],
25322
- setScriptLoaded = _useState2[1];
25323
- var _useState3 = React.useState(false),
25324
- _useState4 = _slicedToArray(_useState3, 2),
25325
- scriptError = _useState4[0],
25326
- setScriptError = _useState4[1];
25327
- var handleScriptError = function handleScriptError() {
25328
- setScriptError(true);
25329
- setScriptLoaded(false);
25330
- };
25331
- React.useEffect(function () {
25332
- if (typeof window === "undefined") {
25333
- setScriptLoaded(false);
25334
- return;
25335
- }
25336
- if (window.turnstile && window.turnstile.render) {
25337
- setScriptLoaded(true);
25338
- return;
25339
- }
25340
- var script = document.createElement("script");
25341
- script.src = "".concat(verifyURL, "?render=explicit");
25342
- script.onload = function () {
25343
- setScriptLoaded(true);
25344
- };
25345
- script.onerror = function () {
25346
- handleScriptError();
25347
- };
25348
- script.onabort = function () {
25349
- handleScriptError();
25350
- };
25351
- script.defer = true;
25352
- document.getElementsByTagName("head")[0].appendChild(script);
25353
- return function () {
25354
- setScriptLoaded(false);
25355
- setScriptError(false);
25356
- };
25357
- }, [verifyURL]);
25358
- return {
25359
- scriptLoaded: scriptLoaded,
25360
- scriptError: scriptError
25361
- };
25362
- };
25363
-
25364
-
25365
-
25366
- var index$1 = /*#__PURE__*/Object.freeze({
25367
- __proto__: null,
25368
- useOutsideClick: useOutsideClickHook,
25369
- useScrollTo: useScrollTo,
25370
- useToastNotification: useToastNotification,
25371
- useConditionallyAddValidator: useConditionallyAddValidator,
25372
- useTurnstileScript: useTurnstileScript
25373
- });
25374
-
25375
- var hoverColor$4 = "#116285";
25376
- var activeColor$5 = "#0E506D";
25377
- var popoverTriggerColor = "#15749D";
25378
- var fallbackValues$m = {
25379
- hoverColor: hoverColor$4,
25380
- activeColor: activeColor$5,
25381
- popoverTriggerColor: popoverTriggerColor
25382
- };
25383
-
25384
- var arrowBorder = function arrowBorder(borderColor, direction) {
25385
- var width = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : "8px";
25386
- var angle = "".concat(width, " solid transparent");
25387
- var straight = "".concat(width, " solid ").concat(borderColor);
25388
- if (direction == "down") {
25389
- return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-top: ").concat(straight);
25390
- } else if (direction == "up") {
25391
- return "border-left: ".concat(angle, "; border-right: ").concat(angle, "; border-bottom: ").concat(straight);
25392
- } else if (direction == "left") {
25393
- return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-right: ").concat(straight);
25394
- } else if (direction == "right") {
25395
- return "border-top: ".concat(angle, "; border-bottom: ").concat(angle, "; border-left: ").concat(straight);
25396
- }
25397
- };
25398
- var Popover = function Popover(_ref) {
25399
- var themeValues = _ref.themeValues,
25400
- _ref$triggerText = _ref.triggerText,
25401
- triggerText = _ref$triggerText === void 0 ? "" : _ref$triggerText,
25402
- _ref$content = _ref.content,
25403
- content = _ref$content === void 0 ? "" : _ref$content,
25404
- _ref$hasIcon = _ref.hasIcon,
25405
- hasIcon = _ref$hasIcon === void 0 ? false : _ref$hasIcon,
25406
- Icon = _ref.icon,
25407
- _ref$iconHelpText = _ref.iconHelpText,
25408
- iconHelpText = _ref$iconHelpText === void 0 ? "" : _ref$iconHelpText,
25409
- _ref$popoverID = _ref.popoverID,
25410
- popoverID = _ref$popoverID === void 0 ? 0 : _ref$popoverID,
25411
- _ref$popoverFocus = _ref.popoverFocus,
25412
- popoverFocus = _ref$popoverFocus === void 0 ? false : _ref$popoverFocus,
25413
- extraStyles = _ref.extraStyles,
25414
- textExtraStyles = _ref.textExtraStyles,
25415
- _ref$minWidth = _ref.minWidth,
25416
- minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
25417
- _ref$maxWidth = _ref.maxWidth,
25418
- maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
25419
- _ref$height = _ref.height,
25420
- height = _ref$height === void 0 ? "auto" : _ref$height,
25421
- position = _ref.position,
25422
- arrowPosition = _ref.arrowPosition,
25423
- _ref$arrowDirection = _ref.arrowDirection,
25424
- arrowDirection = _ref$arrowDirection === void 0 ? "down" : _ref$arrowDirection,
25425
- _ref$transform = _ref.transform,
25426
- transform = _ref$transform === void 0 ? "none" : _ref$transform,
25427
- buttonExtraStyles = _ref.buttonExtraStyles,
25428
- _ref$backgroundColor = _ref.backgroundColor,
25429
- backgroundColor = _ref$backgroundColor === void 0 ? "white" : _ref$backgroundColor,
25430
- _ref$borderColor = _ref.borderColor,
25431
- borderColor = _ref$borderColor === void 0 ? "rgba(255, 255, 255, 0.85)" : _ref$borderColor,
25432
- popoverExtraStyles = _ref.popoverExtraStyles;
25433
- var hoverColor = themeValues.hoverColor,
25434
- activeColor = themeValues.activeColor,
25435
- popoverTriggerColor = themeValues.popoverTriggerColor;
25436
- var _ref2 = position !== null && position !== void 0 ? position : {},
25437
- _ref2$top = _ref2.top,
25438
- top = _ref2$top === void 0 ? "-110px" : _ref2$top,
25439
- _ref2$right = _ref2.right,
25440
- right = _ref2$right === void 0 ? "auto" : _ref2$right,
25441
- _ref2$bottom = _ref2.bottom,
25442
- bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
25443
- _ref2$left = _ref2.left,
25444
- left = _ref2$left === void 0 ? "-225px" : _ref2$left;
25445
- var _ref3 = arrowPosition !== null && arrowPosition !== void 0 ? arrowPosition : {},
25446
- _ref3$arrowTop = _ref3.arrowTop,
25447
- arrowTop = _ref3$arrowTop === void 0 ? "auto" : _ref3$arrowTop,
25448
- _ref3$arrowRight = _ref3.arrowRight,
25449
- arrowRight = _ref3$arrowRight === void 0 ? "10px" : _ref3$arrowRight,
25450
- _ref3$arrowBottom = _ref3.arrowBottom,
25451
- arrowBottom = _ref3$arrowBottom === void 0 ? "-8px" : _ref3$arrowBottom,
25452
- _ref3$arrowLeft = _ref3.arrowLeft,
25453
- arrowLeft = _ref3$arrowLeft === void 0 ? "auto" : _ref3$arrowLeft;
25454
- var _useState = React.useState(false),
25455
- _useState2 = _slicedToArray(_useState, 2),
25456
- popoverOpen = _useState2[0],
25457
- togglePopover = _useState2[1];
25458
- var handleTogglePopover = function handleTogglePopover(popoverState) {
25459
- if (popoverOpen !== popoverState) {
25460
- togglePopover(popoverState);
25461
- }
25462
- };
25463
- var triggerRef = useOutsideClickHook(function () {
25464
- return handleTogglePopover(false);
25465
- });
25466
- return /*#__PURE__*/React__default.createElement(Box, {
25467
- padding: "0",
25468
- extraStyles: "position: relative; ".concat(extraStyles)
25469
- }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
25470
- action: function action() {
25471
- return noop$1;
25472
- },
25473
- onFocus: function onFocus() {
25474
- handleTogglePopover(true);
25475
- },
25476
- onBlur: function onBlur() {
25477
- handleTogglePopover(false);
25478
- },
25479
- onKeyDown: function onKeyDown(e) {
25480
- if (e.keyCode === ESCAPE) {
25481
- handleTogglePopover(false);
25482
- }
25483
- },
25484
- onTouchStart: function onTouchStart() {
25485
- return handleTogglePopover(true);
25486
- },
25487
- onTouchEnd: function onTouchEnd() {
25488
- return handleTogglePopover(false);
25489
- },
25490
- onMouseEnter: function onMouseEnter() {
25491
- return handleTogglePopover(true);
25492
- },
25493
- onMouseLeave: function onMouseLeave() {
25494
- return handleTogglePopover(false);
25495
- },
25496
- contentOverride: true,
25497
- variant: "smallGhost",
25498
- tabIndex: "0",
25499
- id: "btnPopover".concat(popoverID),
25500
- "aria-expanded": popoverOpen,
25501
- "aria-labelledby": "btnPopover".concat(popoverID, "_info Disclosure").concat(popoverID),
25502
- "aria-describedby": "Disclosure".concat(popoverID),
25503
- "aria-controls": "Disclosed".concat(popoverID),
25504
- ref: triggerRef,
25505
- extraStyles: buttonExtraStyles
25506
- }, hasIcon && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Icon, null), /*#__PURE__*/React__default.createElement(Box, {
25507
- padding: "0",
25508
- srOnly: true
25509
- }, /*#__PURE__*/React__default.createElement(Text$1, {
25510
- id: "btnPopover".concat(popoverID, "_info")
25511
- }, iconHelpText))), !hasIcon && /*#__PURE__*/React__default.createElement(Text$1, {
25512
- color: popoverTriggerColor,
25513
- extraStyles: "&:active { color: ".concat(activeColor, "; } &:hover { color: ").concat(hoverColor, " }; ").concat(textExtraStyles)
25514
- }, triggerText)), /*#__PURE__*/React__default.createElement(Box, {
25515
- background: backgroundColor,
25516
- borderRadius: "4px",
25517
- boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
25518
- id: "Disclosed".concat(popoverID),
25519
- role: "region",
25520
- "aria-describedby": "Disclosure".concat(popoverID),
25521
- tabIndex: popoverFocus && popoverOpen ? "0" : "-1",
25522
- minWidth: minWidth,
25523
- maxWidth: maxWidth,
25524
- extraStyles: "\n display: ".concat(popoverOpen ? "block" : "none", "; \n position: absolute; \n top: ").concat(top, "; \n right: ").concat(right, "; \n bottom: ").concat(bottom, "; \n left: ").concat(left, ";\n height: ").concat(height, ";\n transform: ").concat(transform, ";\n ").concat(popoverExtraStyles, ";\n ")
25525
- }, /*#__PURE__*/React__default.createElement(Paragraph$1, null, content), /*#__PURE__*/React__default.createElement(Box, {
25526
- padding: "0",
25527
- extraStyles: "\n position: absolute;\n content: \"\";\n width: 0;\n height: 0;\n ".concat(arrowBorder(borderColor, arrowDirection, "8px"), ";\n filter: drop-shadow(2px 8px 14px black);\n bottom: ").concat(arrowBottom, ";\n right: ").concat(arrowRight, ";\n top: ").concat(arrowTop, ";\n left: ").concat(arrowLeft, ";\n ")
25528
- })));
25529
- };
25530
- var Popover$1 = themeComponent(Popover, "Popover", fallbackValues$m);
25531
-
25532
- var DisplayCard = function DisplayCard(_ref) {
25533
- var title = _ref.title,
25534
- item = _ref.item,
25535
- buttonText = _ref.buttonText,
25536
- buttonAction = _ref.buttonAction,
25537
- url = _ref.url,
25538
- _ref$link = _ref.link,
25539
- link = _ref$link === void 0 ? false : _ref$link,
25540
- helpText = _ref.helpText,
25541
- _ref$hasPopover = _ref.hasPopover,
25542
- hasPopover = _ref$hasPopover === void 0 ? false : _ref$hasPopover,
25543
- _ref$popoverTriggerTe = _ref.popoverTriggerText,
25544
- popoverTriggerText = _ref$popoverTriggerTe === void 0 ? "" : _ref$popoverTriggerTe,
25545
- _ref$popoverContent = _ref.popoverContent,
25546
- popoverContent = _ref$popoverContent === void 0 ? "" : _ref$popoverContent,
25547
- popoverExtraStyles = _ref.popoverExtraStyles,
25548
- popoverTextExtraStyles = _ref.popoverTextExtraStyles;
25549
- return /*#__PURE__*/React__default.createElement(Box, {
25550
- padding: "0 0 16px"
25551
- }, /*#__PURE__*/React__default.createElement(Stack, {
25552
- childGap: "0rem"
25553
- }, /*#__PURE__*/React__default.createElement(Box, {
25554
- padding: "0 0 8px 0"
25555
- }, /*#__PURE__*/React__default.createElement(Cluster, {
25556
- justify: "space-between",
25557
- align: "center",
25558
- overflow: true
25559
- }, /*#__PURE__*/React__default.createElement(Paragraph$1, {
25560
- variant: "pL",
25561
- color: CHARADE_GREY,
25562
- extraStyles: "letter-spacing: 0.29px"
25563
- }, title), hasPopover && /*#__PURE__*/React__default.createElement(Popover$1, {
25564
- triggerText: popoverTriggerText,
25565
- content: popoverContent,
25566
- popoverExtraStyles: popoverExtraStyles,
25567
- popoverTextExtraStyles: popoverTextExtraStyles
25568
- }))), /*#__PURE__*/React__default.createElement(Box, {
25569
- padding: "0"
25570
- }, /*#__PURE__*/React__default.createElement(Box, {
25571
- padding: "24px",
25572
- borderSize: "1px",
25573
- borderRadius: "4px",
25574
- background: WHITE,
25575
- boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)"
25576
- }, /*#__PURE__*/React__default.createElement(Cluster, {
25577
- justify: "space-between",
25578
- align: "center"
25579
- }, /*#__PURE__*/React__default.createElement(Text$1, {
25580
- color: CHARADE_GREY
25581
- }, item), link ? /*#__PURE__*/React__default.createElement(ButtonWithLink, {
25582
- text: buttonText,
25583
- url: url,
25584
- variant: "smallGhost",
25585
- dataQa: buttonText,
25586
- extraStyles: "min-width: 0;"
25587
- }) : buttonAction ? /*#__PURE__*/React__default.createElement(ButtonWithAction, {
25588
- text: buttonText,
25589
- action: buttonAction,
25590
- variant: "smallGhost",
25591
- dataQa: buttonText,
25592
- extraStyles: "min-width: 0;"
25593
- }) : helpText ? /*#__PURE__*/React__default.createElement(Text$1, {
25594
- color: STORM_GREY,
25595
- extraStyles: "font-style: italic;"
25596
- }, helpText) : /*#__PURE__*/React__default.createElement(React.Fragment, null))))));
25597
- };
25598
-
25599
25216
  function _extends$2() {
25600
25217
  _extends$2 = Object.assign || function (target) {
25601
25218
  for (var i = 1; i < arguments.length; i++) {
@@ -25927,7 +25544,7 @@ var hoverFocusStyles$1 = {
25927
25544
  var formFooterPanel = {
25928
25545
  "default": "".concat(INFO_BLUE)
25929
25546
  };
25930
- var fallbackValues$n = {
25547
+ var fallbackValues$m = {
25931
25548
  linkColor: linkColor$2,
25932
25549
  formBackgroundColor: formBackgroundColor$1,
25933
25550
  inputBackgroundColor: inputBackgroundColor$1,
@@ -26184,7 +25801,7 @@ var FormInput = function FormInput(_ref15) {
26184
25801
  padding: "0 0 0 auto"
26185
25802
  }, decorator)));
26186
25803
  };
26187
- var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$n, "default");
25804
+ var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$m, "default");
26188
25805
 
26189
25806
  var _excluded$A = ["breakpoint", "childGap", "largeChild", "largeChildSize", "children"];
26190
25807
  var FormInputRow = function FormInputRow(_ref) {
@@ -26232,7 +25849,7 @@ var FormContainer = function FormContainer(_ref) {
26232
25849
  borderRadius: "4px"
26233
25850
  }, rest), children);
26234
25851
  };
26235
- var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$n, "default");
25852
+ var FormContainer$1 = themeComponent(withWindowSize(FormContainer), "FormContainer", fallbackValues$m, "default");
26236
25853
 
26237
25854
  var FormFooterPanel = function FormFooterPanel(_ref) {
26238
25855
  var themeValues = _ref.themeValues,
@@ -26253,7 +25870,7 @@ var FormFooterPanel = function FormFooterPanel(_ref) {
26253
25870
  text: linkText
26254
25871
  })));
26255
25872
  };
26256
- var FormFooterPanel$1 = themeComponent(withWindowSize(FormFooterPanel), "FormFooterPanel", fallbackValues$n, "default");
25873
+ var FormFooterPanel$1 = themeComponent(withWindowSize(FormFooterPanel), "FormFooterPanel", fallbackValues$m, "default");
26257
25874
 
26258
25875
  var _excluded$D = ["ariaLabelledBy", "labelDisplayOverride", "labelTextWhenNoError", "errorMessages", "helperModal", "field", "fieldActions", "showErrors", "themeValues", "customHeight", "extraStyles", "removeFromValue", "dataQa", "isRequired", "errorFieldExtraStyles", "showFieldErrorRow", "labelTextVariant", "errorTextVariant", "resize", "rows", "cols", "placeholder", "maxLength"];
26259
25876
  var TextareaField = styled__default.textarea.withConfig({
@@ -26389,7 +26006,7 @@ var FormTextarea = function FormTextarea(_ref8) {
26389
26006
  extraStyles: "height: ".concat(themeValues.lineHeight, "; ").concat(errorFieldExtraStyles, ";")
26390
26007
  })));
26391
26008
  };
26392
- var FormTextarea$1 = themeComponent(FormTextarea, "FormTextarea", fallbackValues$n, "default");
26009
+ var FormTextarea$1 = themeComponent(FormTextarea, "FormTextarea", fallbackValues$m, "default");
26393
26010
 
26394
26011
  var fontSize$7 = {
26395
26012
  "default": "1rem",
@@ -26403,7 +26020,7 @@ var color$9 = {
26403
26020
  "default": "".concat(CHARADE_GREY),
26404
26021
  radio: "".concat(MINESHAFT_GREY)
26405
26022
  };
26406
- var fallbackValues$o = {
26023
+ var fallbackValues$n = {
26407
26024
  fontSize: fontSize$7,
26408
26025
  padding: padding$1,
26409
26026
  color: color$9
@@ -26445,11 +26062,11 @@ var FormattedAddress = function FormattedAddress(_ref) {
26445
26062
  dataQa: "".concat(qaPrefix, "-3")
26446
26063
  }, city, ", ", stateProvince, " ".concat(zip), country ? " ".concat(country) : "")));
26447
26064
  };
26448
- var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$o, "default");
26065
+ var FormattedAddress$1 = themeComponent(FormattedAddress, "FormattedAddress", fallbackValues$n, "default");
26449
26066
 
26450
26067
  var textColor$1 = "".concat(CHARADE_GREY);
26451
26068
  var autopayTextColor = "".concat(REGENT_GREY);
26452
- var fallbackValues$p = {
26069
+ var fallbackValues$o = {
26453
26070
  textColor: textColor$1,
26454
26071
  autopayTextColor: autopayTextColor
26455
26072
  };
@@ -26487,11 +26104,11 @@ var FormattedBankAccount = function FormattedBankAccount(_ref2) {
26487
26104
  extraStyles: "font-style: italic;"
26488
26105
  }, "Autopay Enabled")));
26489
26106
  };
26490
- var FormattedBankAccount$1 = themeComponent(FormattedBankAccount, "FormattedBankAccount", fallbackValues$p);
26107
+ var FormattedBankAccount$1 = themeComponent(FormattedBankAccount, "FormattedBankAccount", fallbackValues$o);
26491
26108
 
26492
26109
  var textColor$2 = "".concat(CHARADE_GREY);
26493
26110
  var autopayTextColor$1 = "".concat(REGENT_GREY);
26494
- var fallbackValues$q = {
26111
+ var fallbackValues$p = {
26495
26112
  textColor: textColor$2,
26496
26113
  autopayTextColor: autopayTextColor$1
26497
26114
  };
@@ -26583,7 +26200,7 @@ var FormattedCreditCard = function FormattedCreditCard(_ref) {
26583
26200
  extraStyles: "font-style: italic;"
26584
26201
  }, "Autopay Enabled")));
26585
26202
  };
26586
- var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$q);
26203
+ var FormattedCreditCard$1 = themeComponent(FormattedCreditCard, "FormattedCreditCard", fallbackValues$p);
26587
26204
 
26588
26205
  var Hamburger = styled__default.button.withConfig({
26589
26206
  displayName: "HamburgerButton__Hamburger",
@@ -26664,7 +26281,7 @@ var fontSize$8 = {
26664
26281
  h5: "1.375rem",
26665
26282
  h6: "1.25rem"
26666
26283
  };
26667
- var fallbackValues$r = {
26284
+ var fallbackValues$q = {
26668
26285
  fontFamily: fontFamily$5,
26669
26286
  fontSize: fontSize$8
26670
26287
  };
@@ -26703,7 +26320,7 @@ var Heading = function Heading(_ref) {
26703
26320
  "data-qa": dataQa
26704
26321
  }, rest), safeChildren(children, /*#__PURE__*/React__default.createElement("span", null)));
26705
26322
  };
26706
- var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$r, "h1");
26323
+ var Heading$1 = themeComponent(Heading, "Heading", fallbackValues$q, "h1");
26707
26324
 
26708
26325
  var Image = styled__default.img.withConfig({
26709
26326
  displayName: "ImageBoxstyled__Image",
@@ -26759,7 +26376,7 @@ var ImageBox = function ImageBox(_ref) {
26759
26376
  };
26760
26377
 
26761
26378
  var color$a = "#15749D";
26762
- var fallbackValues$s = {
26379
+ var fallbackValues$r = {
26763
26380
  color: color$a
26764
26381
  };
26765
26382
 
@@ -26825,7 +26442,7 @@ var Spinner$1 = function Spinner(_ref6) {
26825
26442
  strokeWidth: strokeWidth
26826
26443
  })));
26827
26444
  };
26828
- var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$s);
26445
+ var Spinner$2 = themeComponent(Spinner$1, "Spinner", fallbackValues$r);
26829
26446
 
26830
26447
  var Jumbo = function Jumbo(_ref) {
26831
26448
  var showButton = _ref.showButton,
@@ -26917,7 +26534,7 @@ var fontWeight$5 = {
26917
26534
  // fontsize Detail regular
26918
26535
  large: "700" // fontsize Title small
26919
26536
  };
26920
- var fallbackValues$t = {
26537
+ var fallbackValues$s = {
26921
26538
  fontWeight: fontWeight$5
26922
26539
  };
26923
26540
 
@@ -26976,7 +26593,7 @@ var LabeledAmount = function LabeledAmount(_ref) {
26976
26593
  var LabeledAmountComponent = version === "v1" ? LabeledAmountV1 : LabeledAmountV2;
26977
26594
  return /*#__PURE__*/React__default.createElement(LabeledAmountComponent, rest);
26978
26595
  };
26979
- var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$t, "default");
26596
+ var LabeledAmount$1 = themeComponent(LabeledAmount, "LabeledAmount", fallbackValues$s, "default");
26980
26597
 
26981
26598
  var weightTitle = {
26982
26599
  "default": "600",
@@ -26986,7 +26603,7 @@ var detailVariant = {
26986
26603
  "default": "large",
26987
26604
  small: "small"
26988
26605
  };
26989
- var fallbackValues$u = {
26606
+ var fallbackValues$t = {
26990
26607
  weightTitle: weightTitle,
26991
26608
  detailVariant: detailVariant
26992
26609
  };
@@ -27034,7 +26651,7 @@ var LineItem = function LineItem(_ref) {
27034
26651
  childGap: "0.25rem"
27035
26652
  }, visibleCustomAttrs));
27036
26653
  };
27037
- var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$u, "default");
26654
+ var LineItem$1 = themeComponent(LineItem, "LineItem", fallbackValues$t, "default");
27038
26655
 
27039
26656
  var Loading = function Loading() {
27040
26657
  return /*#__PURE__*/React__default.createElement(Box, {
@@ -27222,9 +26839,10 @@ var PasswordRequirements = function PasswordRequirements(_ref) {
27222
26839
  color: RAZZMATAZZ_RED
27223
26840
  }), INPUT_STATE_VALID, {
27224
26841
  icon: /*#__PURE__*/React__default.createElement(IconValid, {
27225
- margin: "0 0.5rem 0 0"
26842
+ margin: "0 0.5rem 0 0",
26843
+ bgFill: SEA_GREEN
27226
26844
  }),
27227
- color: FOREST_GREEN
26845
+ color: SEA_GREEN
27228
26846
  });
27229
26847
  var validationMap = {
27230
26848
  charactersValidation: {
@@ -27294,7 +26912,7 @@ var height$1 = {
27294
26912
  "default": "3rem",
27295
26913
  large: "192px"
27296
26914
  };
27297
- var fallbackValues$v = {
26915
+ var fallbackValues$u = {
27298
26916
  color: color$b,
27299
26917
  height: height$1
27300
26918
  };
@@ -27436,12 +27054,12 @@ var Placeholder = function Placeholder(_ref4) {
27436
27054
  extraStyles: "padding: 0 0 0 8px; text-align: center;"
27437
27055
  }, text)))))))))));
27438
27056
  };
27439
- var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$v, "default");
27057
+ var Placeholder$1 = themeComponent(Placeholder, "Placeholder", fallbackValues$u, "default");
27440
27058
 
27441
27059
  var backgroundColor$5 = {
27442
27060
  "default": "".concat(WHITE)
27443
27061
  };
27444
- var fallbackValues$w = {
27062
+ var fallbackValues$v = {
27445
27063
  backgroundColor: backgroundColor$5
27446
27064
  };
27447
27065
 
@@ -27468,13 +27086,13 @@ var ProcessingFee = function ProcessingFee(_ref) {
27468
27086
  showQuitLink: false
27469
27087
  }));
27470
27088
  };
27471
- var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$w, "default");
27089
+ var ProcessingFee$1 = themeComponent(ProcessingFee, "ProcessingFee", fallbackValues$v, "default");
27472
27090
 
27473
- var activeColor$6 = MATISSE_BLUE;
27091
+ var activeColor$5 = MATISSE_BLUE;
27474
27092
  var disabledColor$1 = MANATEE_GREY;
27475
27093
  var inactiveBorderColor = GREY_CHATEAU;
27476
- var fallbackValues$x = {
27477
- activeColor: activeColor$6,
27094
+ var fallbackValues$w = {
27095
+ activeColor: activeColor$5,
27478
27096
  disabledColor: disabledColor$1,
27479
27097
  inactiveBorderColor: inactiveBorderColor
27480
27098
  };
@@ -27560,12 +27178,12 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
27560
27178
  borderColor: themeValues.inactiveBorderColor
27561
27179
  }), labelText));
27562
27180
  };
27563
- var RadioButtonWithLabel$1 = themeComponent(RadioButtonWithLabel, "RadioButtonWithLabel", fallbackValues$x);
27181
+ var RadioButtonWithLabel$1 = themeComponent(RadioButtonWithLabel, "RadioButtonWithLabel", fallbackValues$w);
27564
27182
 
27565
- var activeColor$7 = "".concat(MATISSE_BLUE);
27183
+ var activeColor$6 = "".concat(MATISSE_BLUE);
27566
27184
  var inactiveColor$1 = "".concat(STORM_GREY);
27567
- var fallbackValues$y = {
27568
- activeColor: activeColor$7,
27185
+ var fallbackValues$x = {
27186
+ activeColor: activeColor$6,
27569
27187
  inactiveColor: inactiveColor$1
27570
27188
  };
27571
27189
 
@@ -27673,11 +27291,11 @@ var RadioButton$1 = function RadioButton(_ref2) {
27673
27291
  borderRadius: "8px"
27674
27292
  })));
27675
27293
  };
27676
- var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$y);
27294
+ var RadioButton$2 = themeComponent(RadioButton$1, "RadioButton", fallbackValues$x);
27677
27295
 
27678
27296
  var searchIconColor = WHITE;
27679
27297
  var searchIconBackgroundColor = MATISSE_BLUE;
27680
- var fallbackValues$z = {
27298
+ var fallbackValues$y = {
27681
27299
  searchIconColor: searchIconColor,
27682
27300
  searchIconBackgroundColor: searchIconBackgroundColor
27683
27301
  };
@@ -27775,12 +27393,12 @@ var Search = function Search(_ref) {
27775
27393
  size: 24
27776
27394
  })));
27777
27395
  };
27778
- var Search$1 = themeComponent(Search, "Search", fallbackValues$z);
27396
+ var Search$1 = themeComponent(Search, "Search", fallbackValues$y);
27779
27397
 
27780
27398
  var border$2 = {
27781
27399
  "default": "1px solid #caced8"
27782
27400
  };
27783
- var fallbackValues$A = {
27401
+ var fallbackValues$z = {
27784
27402
  border: border$2
27785
27403
  };
27786
27404
 
@@ -27853,7 +27471,7 @@ var SearchableSelect = function SearchableSelect(_ref) {
27853
27471
  });
27854
27472
  }))));
27855
27473
  };
27856
- var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$A, "default");
27474
+ var SearchableSelect$1 = themeComponent(SearchableSelect, "SearchableSelect", fallbackValues$z, "default");
27857
27475
 
27858
27476
  var borderColor$4 = {
27859
27477
  "default": "".concat(GREY_CHATEAU)
@@ -27861,7 +27479,7 @@ var borderColor$4 = {
27861
27479
  var borderSize = {
27862
27480
  "default": "1px"
27863
27481
  };
27864
- var fallbackValues$B = {
27482
+ var fallbackValues$A = {
27865
27483
  borderColor: borderColor$4,
27866
27484
  borderSize: borderSize
27867
27485
  };
@@ -27879,7 +27497,7 @@ var SolidDivider = function SolidDivider(_ref) {
27879
27497
  borderWidthOverride: "0px 0px ".concat(borderSize || themeValues.borderSize, " 0px")
27880
27498
  });
27881
27499
  };
27882
- var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$B, "default");
27500
+ var SolidDivider$1 = themeComponent(SolidDivider, "SolidDivider", fallbackValues$A, "default");
27883
27501
 
27884
27502
  var placeHolderOptionUS = {
27885
27503
  text: "Please select state",
@@ -38474,7 +38092,7 @@ var white = "".concat(WHITE);
38474
38092
  var labelStyles = "\n display: flex;\n justify-content: flex-start;\n align-items: center;\n";
38475
38093
  var rightLabelStyles = "\n > div {\n flex-direction: row;\n }\n";
38476
38094
  var leftLabelStyles = "\n > div {\n flex-direction: row-reverse;\n }\n";
38477
- var fallbackValues$C = {
38095
+ var fallbackValues$B = {
38478
38096
  onBackground: onBackground,
38479
38097
  disabledBackground: disabledBackground,
38480
38098
  disabledBackgroundLight: disabledBackgroundLight,
@@ -38646,7 +38264,7 @@ var ToggleSwitch = function ToggleSwitch(_ref10) {
38646
38264
  padding: "0"
38647
38265
  }, label))));
38648
38266
  };
38649
- var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$C);
38267
+ var ToggleSwitch$1 = themeComponent(ToggleSwitch, "ToggleSwitch", fallbackValues$B);
38650
38268
 
38651
38269
  var background$2 = "".concat(ATHENS_GREY);
38652
38270
  var white$1 = "".concat(WHITE);
@@ -38693,7 +38311,7 @@ var imageBackgroundColor = INFO_BLUE;
38693
38311
  var headerBackgroundColor = STORM_GREY;
38694
38312
  var headerColor = WHITE;
38695
38313
  var contentBackgroundColor = INFO_BLUE;
38696
- var fallbackValues$D = {
38314
+ var fallbackValues$C = {
38697
38315
  backgroundColor: backgroundColor$6,
38698
38316
  contentBackgroundColor: contentBackgroundColor,
38699
38317
  imageBackgroundColor: imageBackgroundColor,
@@ -38718,7 +38336,7 @@ var CardImage = styled__default.img.withConfig({
38718
38336
  var titleColor = BRIGHT_GREY;
38719
38337
  var titleWeight = FONT_WEIGHT_BOLD;
38720
38338
  var textColor$3 = BRIGHT_GREY;
38721
- var fallbackValues$E = {
38339
+ var fallbackValues$D = {
38722
38340
  titleColor: titleColor,
38723
38341
  titleWeight: titleWeight,
38724
38342
  textColor: textColor$3
@@ -38763,7 +38381,7 @@ var CardText = function CardText(_ref) {
38763
38381
  color: themeValues.textColor
38764
38382
  }, text))));
38765
38383
  };
38766
- var CardText$1 = themeComponent(withWindowSize(CardText), "CardText", fallbackValues$E);
38384
+ var CardText$1 = themeComponent(withWindowSize(CardText), "CardText", fallbackValues$D);
38767
38385
 
38768
38386
  var CardHeader = function CardHeader(_ref) {
38769
38387
  var backgroundColor = _ref.backgroundColor,
@@ -38879,14 +38497,14 @@ var Card = function Card(_ref) {
38879
38497
  titleVariant: titleVariant
38880
38498
  }), children)))));
38881
38499
  };
38882
- var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$D);
38500
+ var Card$1 = themeComponent(withWindowSize(Card), "Card", fallbackValues$C);
38883
38501
 
38884
38502
  var fontFamily$6 = "Public Sans, sans-serif";
38885
- var activeColor$8 = MATISSE_BLUE;
38503
+ var activeColor$7 = MATISSE_BLUE;
38886
38504
  var linkColor$3 = CHARADE_GREY;
38887
- var fallbackValues$F = {
38505
+ var fallbackValues$E = {
38888
38506
  fontFamily: fontFamily$6,
38889
- activeColor: activeColor$8,
38507
+ activeColor: activeColor$7,
38890
38508
  linkColor: linkColor$3
38891
38509
  };
38892
38510
 
@@ -38913,7 +38531,7 @@ var NavTab = function NavTab(_ref) {
38913
38531
  extraStyles: "\n border-bottom: 3px solid transparent;\n font-family: ".concat(themeValues.fontFamily, ";\n text-decoration: none;\n ").concat(isActive && !isMobile ? border : "none", ";\n &:hover {\n text-decoration: none;\n color: ").concat(themeValues.activeColor, ";\n ").concat(isMobile ? "" : "".concat(border), "\n };\n padding: 1.25rem 0;\n ")
38914
38532
  }, label));
38915
38533
  };
38916
- var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$F);
38534
+ var NavTab$1 = themeComponent(NavTab, "NavTab", fallbackValues$E);
38917
38535
 
38918
38536
  var NavTabs = function NavTabs(_ref) {
38919
38537
  var tabsConfig = _ref.tabsConfig,
@@ -39041,7 +38659,7 @@ var backgroundColor$7 = {
39041
38659
  largeTitle: WHITE,
39042
38660
  small: WHITE
39043
38661
  };
39044
- var fallbackValues$G = {
38662
+ var fallbackValues$F = {
39045
38663
  fontSize: fontSize$9,
39046
38664
  fontWeight: fontWeight$6,
39047
38665
  fontColor: fontColor,
@@ -39121,7 +38739,7 @@ var Module = function Module(_ref) {
39121
38739
  boxShadow: themeValues.boxShadow
39122
38740
  }, children)));
39123
38741
  };
39124
- var Module$1 = /*#__PURE__*/React.memo(themeComponent(Module, "Module", fallbackValues$G, "default"));
38742
+ var Module$1 = /*#__PURE__*/React.memo(themeComponent(Module, "Module", fallbackValues$F, "default"));
39125
38743
 
39126
38744
  var WalletName = function WalletName(_ref) {
39127
38745
  var mainText = _ref.mainText,
@@ -40101,7 +39719,7 @@ AddressForm.mapStateToProps = mapStateToProps$1;
40101
39719
  AddressForm.mapDispatchToProps = mapDispatchToProps;
40102
39720
 
40103
39721
  var backgroundColor$8 = "#ebeffb";
40104
- var fallbackValues$H = {
39722
+ var fallbackValues$G = {
40105
39723
  backgroundColor: backgroundColor$8
40106
39724
  };
40107
39725
 
@@ -40150,7 +39768,7 @@ var Banner = function Banner(_ref) {
40150
39768
  extraStyles: isMobile && "> svg { width: 176px; }"
40151
39769
  }, /*#__PURE__*/React__default.createElement(Image, null))));
40152
39770
  };
40153
- var Banner$1 = themeComponent(Banner, "Banner", fallbackValues$H);
39771
+ var Banner$1 = themeComponent(Banner, "Banner", fallbackValues$G);
40154
39772
 
40155
39773
  var ChangePasswordForm = function ChangePasswordForm(_ref) {
40156
39774
  var clearOnDismount = _ref.clearOnDismount,
@@ -40284,7 +39902,7 @@ ChangePasswordForm.mapDispatchToProps = mapDispatchToProps$1;
40284
39902
  var titleColor$1 = "#292A33";
40285
39903
  var headingBackgroundColor = "transparent";
40286
39904
  var bodyBackgroundColor = "transparent";
40287
- var fallbackValues$I = {
39905
+ var fallbackValues$H = {
40288
39906
  titleColor: titleColor$1,
40289
39907
  headingBackgroundColor: headingBackgroundColor,
40290
39908
  bodyBackgroundColor: bodyBackgroundColor
@@ -40409,7 +40027,7 @@ var CollapsibleSection = function CollapsibleSection(_ref) {
40409
40027
  "aria-labelledby": "".concat(id, "-button")
40410
40028
  }, children))));
40411
40029
  };
40412
- var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$I);
40030
+ var CollapsibleSection$1 = themeComponent(CollapsibleSection, "CollapsibleSection", fallbackValues$H);
40413
40031
 
40414
40032
  var ClipboardIcon = function ClipboardIcon(_ref) {
40415
40033
  var themeValues = _ref.themeValues;
@@ -40444,6 +40062,325 @@ var ClipboardIcon = function ClipboardIcon(_ref) {
40444
40062
  };
40445
40063
  var ClipboardIcon$1 = themeComponent(ClipboardIcon, "Icons", fallbackValues$2, "primary");
40446
40064
 
40065
+ /*
40066
+ Hook that assigns a click event listener to the main document element
40067
+ Returns a ref to attach to another element (like an icon/button that triggers a popover)
40068
+ If a click event gets captured by the document and the assigned element isn't the target
40069
+ hook will run whatever handler is passed (eg a function that closes a popover)
40070
+
40071
+ See popover component for implementation
40072
+
40073
+ */
40074
+
40075
+ var useOutsideClickHook = function useOutsideClickHook(handler) {
40076
+ var ref = React.useRef();
40077
+ React.useEffect(function () {
40078
+ var handleOutsideClick = function handleOutsideClick(e) {
40079
+ if (ref.current && !ref.current.contains(e.target)) {
40080
+ handler();
40081
+ }
40082
+ };
40083
+ document.addEventListener("click", handleOutsideClick, true);
40084
+ return function () {
40085
+ document.removeEventListener("click", handleOutsideClick, true);
40086
+ };
40087
+ }, [ref]);
40088
+ return ref;
40089
+ };
40090
+
40091
+ /*
40092
+ Hook that takes an ID selector for an element on the screen
40093
+ And optionally values for top position, left position, smooth behavior
40094
+ Finds element on screen and scrolls it to the provided coordinates
40095
+
40096
+ (string, number, number, string, number) => undefined;
40097
+ */
40098
+
40099
+ var useScrollTo = function useScrollTo(id) {
40100
+ var top = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
40101
+ var left = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
40102
+ var behavior = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : "auto";
40103
+ var delay = arguments.length > 4 ? arguments[4] : undefined;
40104
+ var scrollItem;
40105
+ if (delay) {
40106
+ setTimeout(function () {
40107
+ var _scrollItem;
40108
+ scrollItem = document.getElementById(id);
40109
+ (_scrollItem = scrollItem) === null || _scrollItem === void 0 || _scrollItem.scrollTo({
40110
+ top: top,
40111
+ left: left,
40112
+ behavior: behavior
40113
+ });
40114
+ }, delay);
40115
+ } else {
40116
+ var _scrollItem2;
40117
+ scrollItem = document.getElementById(id);
40118
+ (_scrollItem2 = scrollItem) === null || _scrollItem2 === void 0 || _scrollItem2.scrollTo({
40119
+ top: top,
40120
+ left: left,
40121
+ behavior: behavior
40122
+ });
40123
+ }
40124
+ };
40125
+
40126
+ var initialToastState = {
40127
+ isOpen: false,
40128
+ variant: "",
40129
+ message: ""
40130
+ };
40131
+ var useToastNotification = function useToastNotification() {
40132
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
40133
+ _ref$timeout = _ref.timeout,
40134
+ timeout = _ref$timeout === void 0 ? 5000 : _ref$timeout;
40135
+ var _useState = React.useState(initialToastState),
40136
+ _useState2 = _slicedToArray(_useState, 2),
40137
+ toastState = _useState2[0],
40138
+ setToastState = _useState2[1];
40139
+ React.useEffect(function () {
40140
+ if (toastState.isOpen && timeout > 0) {
40141
+ setTimeout(function () {
40142
+ setToastState(initialToastState);
40143
+ }, timeout);
40144
+ }
40145
+ }, [timeout, toastState.isOpen]);
40146
+ var showToast = function showToast(_ref2) {
40147
+ var message = _ref2.message,
40148
+ variant = _ref2.variant;
40149
+ return setToastState({
40150
+ isOpen: true,
40151
+ variant: variant,
40152
+ message: message
40153
+ });
40154
+ };
40155
+ var hideToast = function hideToast() {
40156
+ return setToastState(initialToastState);
40157
+ };
40158
+ return {
40159
+ isToastOpen: toastState.isOpen,
40160
+ toastVariant: toastState.variant,
40161
+ toastMessage: toastState.message,
40162
+ showToast: showToast,
40163
+ hideToast: hideToast
40164
+ };
40165
+ };
40166
+
40167
+ function useConditionallyAddValidator(condition, validatorFn, addValidator, removeValidator) {
40168
+ React.useEffect(function () {
40169
+ if (condition) {
40170
+ addValidator(validatorFn());
40171
+ }
40172
+ return function () {
40173
+ // Remove validator when component unmounts
40174
+ removeValidator(validatorFn());
40175
+ };
40176
+ }, [condition, addValidator, removeValidator]);
40177
+ }
40178
+
40179
+ /**
40180
+ * A custom hook to dynamically load the Cloudflare Turnstile script.
40181
+ *
40182
+ * @param {string} verifyURL - The URL of the Turnstile verification script.
40183
+ */
40184
+ var useTurnstileScript = function useTurnstileScript(verifyURL) {
40185
+ var _useState = React.useState(false),
40186
+ _useState2 = _slicedToArray(_useState, 2),
40187
+ scriptLoaded = _useState2[0],
40188
+ setScriptLoaded = _useState2[1];
40189
+ var _useState3 = React.useState(false),
40190
+ _useState4 = _slicedToArray(_useState3, 2),
40191
+ scriptError = _useState4[0],
40192
+ setScriptError = _useState4[1];
40193
+ var handleScriptError = function handleScriptError() {
40194
+ setScriptError(true);
40195
+ setScriptLoaded(false);
40196
+ };
40197
+ React.useEffect(function () {
40198
+ if (typeof window === "undefined") {
40199
+ setScriptLoaded(false);
40200
+ return;
40201
+ }
40202
+ if (window.turnstile && window.turnstile.render) {
40203
+ setScriptLoaded(true);
40204
+ return;
40205
+ }
40206
+ var script = document.createElement("script");
40207
+ script.src = "".concat(verifyURL, "?render=explicit");
40208
+ script.onload = function () {
40209
+ setScriptLoaded(true);
40210
+ };
40211
+ script.onerror = function () {
40212
+ handleScriptError();
40213
+ };
40214
+ script.onabort = function () {
40215
+ handleScriptError();
40216
+ };
40217
+ script.defer = true;
40218
+ document.getElementsByTagName("head")[0].appendChild(script);
40219
+ return function () {
40220
+ setScriptLoaded(false);
40221
+ setScriptError(false);
40222
+ };
40223
+ }, [verifyURL]);
40224
+ return {
40225
+ scriptLoaded: scriptLoaded,
40226
+ scriptError: scriptError
40227
+ };
40228
+ };
40229
+
40230
+
40231
+
40232
+ var index$1 = /*#__PURE__*/Object.freeze({
40233
+ __proto__: null,
40234
+ useOutsideClick: useOutsideClickHook,
40235
+ useScrollTo: useScrollTo,
40236
+ useToastNotification: useToastNotification,
40237
+ useConditionallyAddValidator: useConditionallyAddValidator,
40238
+ useTurnstileScript: useTurnstileScript
40239
+ });
40240
+
40241
+ var hoverColor$4 = "#116285";
40242
+ var activeColor$8 = "#0E506D";
40243
+ var popoverTriggerColor = "#15749D";
40244
+ var fallbackValues$I = {
40245
+ hoverColor: hoverColor$4,
40246
+ activeColor: activeColor$8,
40247
+ popoverTriggerColor: popoverTriggerColor
40248
+ };
40249
+
40250
+ var Popover = function Popover(_ref) {
40251
+ var themeValues = _ref.themeValues,
40252
+ _ref$triggerText = _ref.triggerText,
40253
+ triggerText = _ref$triggerText === void 0 ? "" : _ref$triggerText,
40254
+ _ref$content = _ref.content,
40255
+ content = _ref$content === void 0 ? "" : _ref$content,
40256
+ _ref$hasIcon = _ref.hasIcon,
40257
+ hasIcon = _ref$hasIcon === void 0 ? false : _ref$hasIcon,
40258
+ Icon = _ref.icon,
40259
+ _ref$iconHelpText = _ref.iconHelpText,
40260
+ iconHelpText = _ref$iconHelpText === void 0 ? "" : _ref$iconHelpText,
40261
+ _ref$popoverID = _ref.popoverID,
40262
+ popoverID = _ref$popoverID === void 0 ? 0 : _ref$popoverID,
40263
+ _ref$popoverFocus = _ref.popoverFocus,
40264
+ popoverFocus = _ref$popoverFocus === void 0 ? false : _ref$popoverFocus,
40265
+ extraStyles = _ref.extraStyles,
40266
+ textExtraStyles = _ref.textExtraStyles,
40267
+ _ref$minWidth = _ref.minWidth,
40268
+ minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
40269
+ _ref$maxWidth = _ref.maxWidth,
40270
+ maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
40271
+ _ref$height = _ref.height,
40272
+ height = _ref$height === void 0 ? "auto" : _ref$height,
40273
+ position = _ref.position,
40274
+ arrowPosition = _ref.arrowPosition,
40275
+ _ref$arrowDirection = _ref.arrowDirection,
40276
+ arrowDirection = _ref$arrowDirection === void 0 ? "down" : _ref$arrowDirection,
40277
+ _ref$transform = _ref.transform,
40278
+ transform = _ref$transform === void 0 ? "none" : _ref$transform,
40279
+ buttonExtraStyles = _ref.buttonExtraStyles,
40280
+ _ref$backgroundColor = _ref.backgroundColor,
40281
+ backgroundColor = _ref$backgroundColor === void 0 ? "white" : _ref$backgroundColor,
40282
+ _ref$borderColor = _ref.borderColor,
40283
+ borderColor = _ref$borderColor === void 0 ? "rgba(255, 255, 255, 0.85)" : _ref$borderColor,
40284
+ popoverExtraStyles = _ref.popoverExtraStyles;
40285
+ var hoverColor = themeValues.hoverColor,
40286
+ activeColor = themeValues.activeColor,
40287
+ popoverTriggerColor = themeValues.popoverTriggerColor;
40288
+ var _ref2 = position !== null && position !== void 0 ? position : {},
40289
+ _ref2$top = _ref2.top,
40290
+ top = _ref2$top === void 0 ? "-110px" : _ref2$top,
40291
+ _ref2$right = _ref2.right,
40292
+ right = _ref2$right === void 0 ? "auto" : _ref2$right,
40293
+ _ref2$bottom = _ref2.bottom,
40294
+ bottom = _ref2$bottom === void 0 ? "auto" : _ref2$bottom,
40295
+ _ref2$left = _ref2.left,
40296
+ left = _ref2$left === void 0 ? "-225px" : _ref2$left;
40297
+ var _ref3 = arrowPosition !== null && arrowPosition !== void 0 ? arrowPosition : {},
40298
+ _ref3$arrowTop = _ref3.arrowTop,
40299
+ arrowTop = _ref3$arrowTop === void 0 ? "auto" : _ref3$arrowTop,
40300
+ _ref3$arrowRight = _ref3.arrowRight,
40301
+ arrowRight = _ref3$arrowRight === void 0 ? "10px" : _ref3$arrowRight,
40302
+ _ref3$arrowBottom = _ref3.arrowBottom,
40303
+ arrowBottom = _ref3$arrowBottom === void 0 ? "-8px" : _ref3$arrowBottom,
40304
+ _ref3$arrowLeft = _ref3.arrowLeft,
40305
+ arrowLeft = _ref3$arrowLeft === void 0 ? "auto" : _ref3$arrowLeft;
40306
+ var _useState = React.useState(false),
40307
+ _useState2 = _slicedToArray(_useState, 2),
40308
+ popoverOpen = _useState2[0],
40309
+ togglePopover = _useState2[1];
40310
+ var handleTogglePopover = function handleTogglePopover(popoverState) {
40311
+ if (popoverOpen !== popoverState) {
40312
+ togglePopover(popoverState);
40313
+ }
40314
+ };
40315
+ var triggerRef = useOutsideClickHook(function () {
40316
+ return handleTogglePopover(false);
40317
+ });
40318
+ return /*#__PURE__*/React__default.createElement(Box, {
40319
+ padding: "0",
40320
+ extraStyles: "position: relative; ".concat(extraStyles)
40321
+ }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
40322
+ action: function action() {
40323
+ return noop$1;
40324
+ },
40325
+ onFocus: function onFocus() {
40326
+ handleTogglePopover(true);
40327
+ },
40328
+ onBlur: function onBlur() {
40329
+ handleTogglePopover(false);
40330
+ },
40331
+ onKeyDown: function onKeyDown(e) {
40332
+ if (e.keyCode === ESCAPE) {
40333
+ handleTogglePopover(false);
40334
+ }
40335
+ },
40336
+ onTouchStart: function onTouchStart() {
40337
+ return handleTogglePopover(true);
40338
+ },
40339
+ onTouchEnd: function onTouchEnd() {
40340
+ return handleTogglePopover(false);
40341
+ },
40342
+ onMouseEnter: function onMouseEnter() {
40343
+ return handleTogglePopover(true);
40344
+ },
40345
+ onMouseLeave: function onMouseLeave() {
40346
+ return handleTogglePopover(false);
40347
+ },
40348
+ contentOverride: true,
40349
+ variant: "smallGhost",
40350
+ tabIndex: "0",
40351
+ id: "btnPopover".concat(popoverID),
40352
+ "aria-expanded": popoverOpen,
40353
+ "aria-labelledby": "btnPopover".concat(popoverID, "_info Disclosure").concat(popoverID),
40354
+ "aria-describedby": "Disclosure".concat(popoverID),
40355
+ "aria-controls": "Disclosed".concat(popoverID),
40356
+ ref: triggerRef,
40357
+ extraStyles: buttonExtraStyles
40358
+ }, hasIcon && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Icon, null), /*#__PURE__*/React__default.createElement(Box, {
40359
+ padding: "0",
40360
+ srOnly: true
40361
+ }, /*#__PURE__*/React__default.createElement(Text$1, {
40362
+ id: "btnPopover".concat(popoverID, "_info")
40363
+ }, iconHelpText))), !hasIcon && /*#__PURE__*/React__default.createElement(Text$1, {
40364
+ color: popoverTriggerColor,
40365
+ extraStyles: "&:active { color: ".concat(activeColor, "; } &:hover { color: ").concat(hoverColor, " }; ").concat(textExtraStyles)
40366
+ }, triggerText)), /*#__PURE__*/React__default.createElement(Box, {
40367
+ background: backgroundColor,
40368
+ borderRadius: "4px",
40369
+ boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
40370
+ id: "Disclosed".concat(popoverID),
40371
+ role: "region",
40372
+ "aria-describedby": "Disclosure".concat(popoverID),
40373
+ tabIndex: popoverFocus && popoverOpen ? "0" : "-1",
40374
+ minWidth: minWidth,
40375
+ maxWidth: maxWidth,
40376
+ extraStyles: "\n display: ".concat(popoverOpen ? "block" : "none", "; \n position: absolute; \n top: ").concat(top, "; \n right: ").concat(right, "; \n bottom: ").concat(bottom, "; \n left: ").concat(left, ";\n height: ").concat(height, ";\n transform: ").concat(transform, ";\n ").concat(popoverExtraStyles, ";\n ")
40377
+ }, /*#__PURE__*/React__default.createElement(Paragraph$1, null, content), /*#__PURE__*/React__default.createElement(Box, {
40378
+ padding: "0",
40379
+ extraStyles: "\n position: absolute;\n content: \"\";\n width: 0;\n height: 0;\n ".concat(arrowBorder(borderColor, arrowDirection, "8px"), ";\n filter: drop-shadow(2px 8px 14px black);\n bottom: ").concat(arrowBottom, ";\n right: ").concat(arrowRight, ";\n top: ").concat(arrowTop, ";\n left: ").concat(arrowLeft, ";\n ")
40380
+ })));
40381
+ };
40382
+ var Popover$1 = themeComponent(Popover, "Popover", fallbackValues$I);
40383
+
40447
40384
  /*
40448
40385
  This component will render `content` and a clipboard icon.
40449
40386
  When hovered, a popover with content `initialPopoverContent` will be displayed.
@@ -51239,8 +51176,161 @@ var TurnstileWidget = /*#__PURE__*/React.forwardRef(function (_ref4, ref) {
51239
51176
  }, error)));
51240
51177
  });
51241
51178
 
51242
- var pageBackground = "#FBFCFD";
51179
+ var TOOLTIP_THEME_SOURCE = "Popover";
51243
51180
  var fallbackValues$12 = {
51181
+ hoverColor: SAPPHIRE_BLUE,
51182
+ activeColor: PEACOCK_BLUE,
51183
+ popoverTriggerColor: MATISSE_BLUE,
51184
+ borderColor: "rgba(255, 255, 255, 0.85)"
51185
+ };
51186
+ var Tooltip = function Tooltip(_ref) {
51187
+ var tooltipID = _ref.tooltipID,
51188
+ _ref$hasIconTrigger = _ref.hasIconTrigger,
51189
+ hasIconTrigger = _ref$hasIconTrigger === void 0 ? false : _ref$hasIconTrigger,
51190
+ _ref$IconTrigger = _ref.IconTrigger,
51191
+ IconTrigger = _ref$IconTrigger === void 0 ? WarningIconXS : _ref$IconTrigger,
51192
+ _ref$iconHelpText = _ref.iconHelpText,
51193
+ iconHelpText = _ref$iconHelpText === void 0 ? "Open the tooltip" : _ref$iconHelpText,
51194
+ _ref$triggerText = _ref.triggerText,
51195
+ triggerText = _ref$triggerText === void 0 ? "Open the tooltip" : _ref$triggerText,
51196
+ _ref$tooltipContent = _ref.tooltipContent,
51197
+ tooltipContent = _ref$tooltipContent === void 0 ? "The contents of the tooltip go here." : _ref$tooltipContent,
51198
+ _ref$contentPosition = _ref.contentPosition,
51199
+ contentPosition = _ref$contentPosition === void 0 ? {
51200
+ top: "-110px",
51201
+ right: "auto",
51202
+ bottom: "auto",
51203
+ left: "-225px"
51204
+ } : _ref$contentPosition,
51205
+ _ref$arrowDirection = _ref.arrowDirection,
51206
+ arrowDirection = _ref$arrowDirection === void 0 ? "down" : _ref$arrowDirection,
51207
+ _ref$arrowPosition = _ref.arrowPosition,
51208
+ arrowPosition = _ref$arrowPosition === void 0 ? {
51209
+ arrowTop: "auto",
51210
+ arrowRight: "10px",
51211
+ arrowBottom: "-8px",
51212
+ arrowLeft: "auto"
51213
+ } : _ref$arrowPosition,
51214
+ _ref$minWidth = _ref.minWidth,
51215
+ minWidth = _ref$minWidth === void 0 ? "250px" : _ref$minWidth,
51216
+ _ref$maxWidth = _ref.maxWidth,
51217
+ maxWidth = _ref$maxWidth === void 0 ? "300px" : _ref$maxWidth,
51218
+ _ref$height = _ref.height,
51219
+ height = _ref$height === void 0 ? "auto" : _ref$height,
51220
+ _ref$containerExtraSt = _ref.containerExtraStyles,
51221
+ containerExtraStyles = _ref$containerExtraSt === void 0 ? "" : _ref$containerExtraSt,
51222
+ _ref$triggerExtraStyl = _ref.triggerExtraStyles,
51223
+ triggerExtraStyles = _ref$triggerExtraStyl === void 0 ? "" : _ref$triggerExtraStyl,
51224
+ _ref$triggerButtonVar = _ref.triggerButtonVariant,
51225
+ triggerButtonVariant = _ref$triggerButtonVar === void 0 ? "smallGhost" : _ref$triggerButtonVar,
51226
+ _ref$contentExtraStyl = _ref.contentExtraStyles,
51227
+ contentExtraStyles = _ref$contentExtraStyl === void 0 ? "" : _ref$contentExtraStyl,
51228
+ _ref$contentBackgroun = _ref.contentBackgroundColor,
51229
+ contentBackgroundColor = _ref$contentBackgroun === void 0 ? WHITE : _ref$contentBackgroun;
51230
+ var closeTimeoutRef = React.useRef(null);
51231
+ var _useState = React.useState(false),
51232
+ _useState2 = _slicedToArray(_useState, 2),
51233
+ tooltipOpen = _useState2[0],
51234
+ setTooltipOpen = _useState2[1];
51235
+ var themeContext = React.useContext(styled.ThemeContext);
51236
+ var themeValues = createThemeValues(themeContext, fallbackValues$12, TOOLTIP_THEME_SOURCE);
51237
+ var borderColor = themeValues.borderColor,
51238
+ tooltipTriggerColor = themeValues.popoverTriggerColor,
51239
+ hoverColor = themeValues.hoverColor,
51240
+ activeColor = themeValues.activeColor;
51241
+ var top = contentPosition.top,
51242
+ right = contentPosition.right,
51243
+ bottom = contentPosition.bottom,
51244
+ left = contentPosition.left;
51245
+ var arrowTop = arrowPosition.arrowTop,
51246
+ arrowRight = arrowPosition.arrowRight,
51247
+ arrowBottom = arrowPosition.arrowBottom,
51248
+ arrowLeft = arrowPosition.arrowLeft;
51249
+ var handleToggleTooltip = function handleToggleTooltip(desiredTooltipState) {
51250
+ if (tooltipOpen !== desiredTooltipState) {
51251
+ setTooltipOpen(desiredTooltipState);
51252
+ }
51253
+ };
51254
+ var handleKeyboardEvent = function handleKeyboardEvent(e) {
51255
+ if (e.key === "Escape") {
51256
+ handleToggleTooltip(false);
51257
+ }
51258
+ };
51259
+ var handleMouseEnter = function handleMouseEnter() {
51260
+ if (closeTimeoutRef.current) {
51261
+ clearTimeout(closeTimeoutRef.current);
51262
+ closeTimeoutRef.current = null;
51263
+ }
51264
+ handleToggleTooltip(true);
51265
+ };
51266
+ var handleMouseLeave = function handleMouseLeave() {
51267
+ closeTimeoutRef.current = setTimeout(function () {
51268
+ handleToggleTooltip(false);
51269
+ }, 300);
51270
+ };
51271
+ React.useEffect(function () {
51272
+ return function () {
51273
+ if (closeTimeoutRef.current) {
51274
+ clearTimeout(closeTimeoutRef.current);
51275
+ }
51276
+ };
51277
+ }, []);
51278
+ return /*#__PURE__*/React__default.createElement(Box, {
51279
+ ref: closeTimeoutRef,
51280
+ padding: "0",
51281
+ extraStyles: "position: relative; ".concat(containerExtraStyles),
51282
+ onMouseEnter: function onMouseEnter() {
51283
+ return handleMouseEnter();
51284
+ },
51285
+ onMouseLeave: function onMouseLeave() {
51286
+ return handleMouseLeave();
51287
+ },
51288
+ "data-qa": "tooltip-container"
51289
+ }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
51290
+ "aria-describedby": tooltipID,
51291
+ onKeyDown: handleKeyboardEvent,
51292
+ variant: triggerButtonVariant,
51293
+ onFocus: function onFocus() {
51294
+ return handleToggleTooltip(true);
51295
+ },
51296
+ onBlur: function onBlur() {
51297
+ return handleToggleTooltip(false);
51298
+ },
51299
+ onTouchStart: function onTouchStart() {
51300
+ return handleToggleTooltip(true);
51301
+ },
51302
+ "data-qa": "tooltip-trigger",
51303
+ contentOverride: true
51304
+ }, hasIconTrigger === true && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Box, {
51305
+ "aria-label": "Open tooltip"
51306
+ }, /*#__PURE__*/React__default.createElement(IconTrigger, {
51307
+ color: tooltipTriggerColor
51308
+ })), /*#__PURE__*/React__default.createElement(Box, {
51309
+ padding: "0",
51310
+ srOnly: true
51311
+ }, /*#__PURE__*/React__default.createElement(Text$1, null, iconHelpText))), hasIconTrigger === false && /*#__PURE__*/React__default.createElement(Text$1, {
51312
+ color: tooltipTriggerColor,
51313
+ extraStyles: "\n color: ".concat(tooltipTriggerColor, ";\n &:visited {\n color: ").concat(tooltipTriggerColor, ";\n }\n &:hover {\n color: ").concat(hoverColor, "; \n }\n &:active,\n &:focus {\n color: ").concat(activeColor, "; \n }\n ").concat(triggerExtraStyles, ";\n ")
51314
+ }, triggerText)), /*#__PURE__*/React__default.createElement(Box, {
51315
+ role: "tooltip",
51316
+ id: tooltipID,
51317
+ "aria-hidden": !tooltipOpen,
51318
+ background: contentBackgroundColor,
51319
+ "data-qa": "tooltip-contents",
51320
+ extraStyles: "\n position: absolute;\n display: ".concat(tooltipOpen ? "block" : "none", ";\n top: ").concat(top, "; \n right: ").concat(right, ";\n bottom: ").concat(bottom, ";\n left: ").concat(left, ";\n height: ").concat(height, ";\n ").concat(contentExtraStyles, "\n "),
51321
+ boxShadow: "0px 2px 14px 0px rgb(246, 246, 249), 0px 3px 8px 0px rgb(202, 206, 216)",
51322
+ border: "1px solid transparent",
51323
+ borderRadius: "4px",
51324
+ minWidth: minWidth,
51325
+ maxWidth: maxWidth
51326
+ }, /*#__PURE__*/React__default.createElement(Paragraph$1, null, tooltipContent), /*#__PURE__*/React__default.createElement(Box, {
51327
+ padding: "0",
51328
+ extraStyles: "\n position: absolute;\n content: \"\";\n width: 0;\n height: 0;\n ".concat(arrowBorder(borderColor, arrowDirection, "8px"), ";\n filter: drop-shadow(2px 8px 14px black);\n bottom: ").concat(arrowBottom, ";\n right: ").concat(arrowRight, ";\n top: ").concat(arrowTop, ";\n left: ").concat(arrowLeft, ";\n ")
51329
+ })));
51330
+ };
51331
+
51332
+ var pageBackground = "#FBFCFD";
51333
+ var fallbackValues$13 = {
51244
51334
  pageBackground: pageBackground
51245
51335
  };
51246
51336
 
@@ -51288,7 +51378,7 @@ var CenterSingle = function CenterSingle(_ref) {
51288
51378
  padding: "0"
51289
51379
  })));
51290
51380
  };
51291
- var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$12));
51381
+ var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$13));
51292
51382
 
51293
51383
  var CenterStack = function CenterStack(_ref) {
51294
51384
  var header = _ref.header,
@@ -51331,7 +51421,7 @@ var CenterStack = function CenterStack(_ref) {
51331
51421
  padding: "0"
51332
51422
  })));
51333
51423
  };
51334
- var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$12));
51424
+ var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$13));
51335
51425
 
51336
51426
  var CenterSingle$2 = function CenterSingle(_ref) {
51337
51427
  var header = _ref.header,
@@ -51377,7 +51467,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
51377
51467
  padding: "0"
51378
51468
  })));
51379
51469
  };
51380
- var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$12));
51470
+ var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$13));
51381
51471
 
51382
51472
  var SidebarSingleContent = function SidebarSingleContent(_ref) {
51383
51473
  var header = _ref.header,
@@ -51430,7 +51520,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
51430
51520
  padding: "0"
51431
51521
  })));
51432
51522
  };
51433
- var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$12));
51523
+ var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$13));
51434
51524
 
51435
51525
  var SidebarStackContent = function SidebarStackContent(_ref) {
51436
51526
  var header = _ref.header,
@@ -51499,7 +51589,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
51499
51589
  key: "footer-box"
51500
51590
  })));
51501
51591
  };
51502
- var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$12));
51592
+ var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$13));
51503
51593
 
51504
51594
  var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
51505
51595
  var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
@@ -51638,7 +51728,6 @@ exports.DisabledPaymentMethodsAddIcon = DisabledPaymentMethodsAddIcon;
51638
51728
  exports.DisabledPropertiesAddIcon = DisabledPropertiesAddIcon;
51639
51729
  exports.DiscoverSmallIcon = DiscoverSmallIcon;
51640
51730
  exports.DisplayBox = DisplayBox$1;
51641
- exports.DisplayCard = DisplayCard;
51642
51731
  exports.Dropdown = Dropdown$1;
51643
51732
  exports.DuplicateIcon = DuplicateIcon;
51644
51733
  exports.EditNameForm = EditNameForm;
@@ -51795,6 +51884,7 @@ exports.TimeoutImage = TimeoutImage;
51795
51884
  exports.Title = Title$1;
51796
51885
  exports.ToastNotification = ToastNotification;
51797
51886
  exports.ToggleSwitch = ToggleSwitch$1;
51887
+ exports.Tooltip = Tooltip;
51798
51888
  exports.TrashIcon = TrashIcon$1;
51799
51889
  exports.TrashIconV2 = TrashIconV2$1;
51800
51890
  exports.TurnstileWidget = TurnstileWidget;