@onewelcome/react-lib-components 1.9.0 → 1.9.2

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.
@@ -16,4 +16,4 @@ export interface Props extends ComponentPropsWithRef<"div"> {
16
16
  domRoot?: HTMLElement;
17
17
  }
18
18
  export declare const useSetBodyScroll: (open: boolean) => void;
19
- export declare const BaseModal: React.ForwardRefExoticComponent<Pick<Props, "hidden" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "domRoot" | "open" | "onClose" | "containerProps" | "backdropProps" | "labelledby" | "describedby" | "disableEscapeKeyDown" | "disableBackdrop" | "forceContainerOpen" | "zIndex"> & React.RefAttributes<HTMLDivElement>>;
19
+ export declare const BaseModal: React.ForwardRefExoticComponent<Pick<Props, "hidden" | "slot" | "style" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "open" | "onClose" | "containerProps" | "backdropProps" | "labelledby" | "describedby" | "disableEscapeKeyDown" | "disableBackdrop" | "forceContainerOpen" | "zIndex" | "domRoot"> & React.RefAttributes<HTMLDivElement>>;
@@ -19,6 +19,7 @@ interface CSSProperties {
19
19
  colorBlueGrey200?: string;
20
20
  colorBlueGrey400?: string;
21
21
  colorBlueGrey25?: string;
22
+ colorBlueGrey50?: string;
22
23
  colorBlueGrey500?: string;
23
24
  colorBlueGrey700?: string;
24
25
  colorBlueGrey900?: string;
@@ -0,0 +1,3 @@
1
+ export declare const useGetDomRoot: (passedDomRoot: HTMLElement | undefined, relativeElement: React.RefObject<HTMLDivElement> | null) => {
2
+ root: HTMLElement;
3
+ };
@@ -47,6 +47,7 @@ var BaseStyling = function BaseStyling(_ref) {
47
47
  colorPrimary700: "#020B59",
48
48
  colorPrimary900: "#01041E",
49
49
  colorBlueGrey25: "#F7F7F9",
50
+ colorBlueGrey50: "#EEEFF3",
50
51
  colorBlueGrey100: "#DEDEE6",
51
52
  colorBlueGrey200: "#BCBECE",
52
53
  colorBlueGrey400: "#797D9C",
@@ -612,8 +613,8 @@ var usePosition = function usePosition(providedConfigObject) {
612
613
  });
613
614
  };
614
615
  var calculatePosition = useDebouncedCallback(function () {
615
- var _configObject$relativ;
616
- if (!((_configObject$relativ = configObject.relativeElement) != null && _configObject$relativ.current)) return;
616
+ var _configObject$relativ, _configObject$element;
617
+ if (!((_configObject$relativ = configObject.relativeElement) != null && _configObject$relativ.current) || !((_configObject$element = configObject.elementToBePositioned) != null && _configObject$element.current)) return;
617
618
  var relativeElRect = configObject.relativeElement.current.getBoundingClientRect();
618
619
  var elementToBePositionedDimensions = {
619
620
  height: configObject.elementToBePositioned.current.offsetHeight,
@@ -727,6 +728,27 @@ var useBodyClick = function useBodyClick(checkFunction, callbackFunction, depend
727
728
  }, [dependingStateVariable]);
728
729
  };
729
730
 
731
+ var useGetDomRoot = function useGetDomRoot(passedDomRoot, relativeElement) {
732
+ var _useState = React.useState(document.body),
733
+ root = _useState[0],
734
+ setRoot = _useState[1];
735
+ React.useEffect(function () {
736
+ if (relativeElement && relativeElement.current && !passedDomRoot) {
737
+ var closestBaseStylingWrapper = relativeElement.current.closest(".basestyling-wrapper");
738
+ if (closestBaseStylingWrapper) {
739
+ setRoot(closestBaseStylingWrapper);
740
+ return;
741
+ }
742
+ } else if (passedDomRoot) {
743
+ setRoot(passedDomRoot);
744
+ return;
745
+ }
746
+ }, [relativeElement]);
747
+ return {
748
+ root: root
749
+ };
750
+ };
751
+
730
752
  var _excluded$U = ["trigger", "children", "decorativeElement", "id", "show", "onShow", "onClose", "placement", "offset", "transformOrigin", "debounceAmount", "domRoot", "popoverProps"];
731
753
  var ContextMenuComponent = function ContextMenuComponent(_ref, ref) {
732
754
  var trigger = _ref.trigger,
@@ -755,11 +777,11 @@ var ContextMenuComponent = function ContextMenuComponent(_ref, ref) {
755
777
  vertical: "top"
756
778
  } : _ref$transformOrigin,
757
779
  debounceAmount = _ref.debounceAmount,
758
- _ref$domRoot = _ref.domRoot,
759
- domRoot = _ref$domRoot === void 0 ? document.body : _ref$domRoot,
780
+ domRoot = _ref.domRoot,
760
781
  popoverProps = _ref.popoverProps,
761
782
  rest = _objectWithoutPropertiesLoose(_ref, _excluded$U);
762
783
  var anchorEl = React.useRef(null);
784
+ var wrappingDivRef = ref || React.createRef();
763
785
  var _useState = React.useState(show),
764
786
  showContextMenu = _useState[0],
765
787
  setShowContextMenu = _useState[1];
@@ -777,6 +799,8 @@ var ContextMenuComponent = function ContextMenuComponent(_ref, ref) {
777
799
  setShouldClick = _useState5[1]; /** We need this, because whenever we use the arrow keys to select the contextmenu item, and we focus the currently selected item it fires the "click" listener in ContextMenuItem component. Instead, we only want this to fire if we press "enter" or "spacebar" so we set this to true whenever that is the case, and back to false when it has been executed. */
778
800
  var _useState6 = React.useState(React__default["default"].Children.count(children)),
779
801
  childrenCount = _useState6[0];
802
+ var _useGetDomRoot = useGetDomRoot(domRoot, wrappingDivRef),
803
+ root = _useGetDomRoot.root;
780
804
  if (!id) {
781
805
  throw new Error("You need to provide an ID to the context menu");
782
806
  }
@@ -874,8 +898,11 @@ var ContextMenuComponent = function ContextMenuComponent(_ref, ref) {
874
898
  var onOutOfViewHandler = React.useCallback(function () {
875
899
  setShowContextMenu(false);
876
900
  }, []);
901
+ if (!root) {
902
+ return null;
903
+ }
877
904
  return React__default["default"].createElement("div", _extends({}, rest, {
878
- ref: ref,
905
+ ref: wrappingDivRef,
879
906
  onKeyDown: onArrowNavigation,
880
907
  className: modules_846e6042["context-menu"]
881
908
  }), renderTrigger(), reactDom.createPortal(React__default["default"].createElement(Popover, _extends({}, popoverProps, {
@@ -893,7 +920,7 @@ var ContextMenuComponent = function ContextMenuComponent(_ref, ref) {
893
920
  id: id + "-menu",
894
921
  "aria-describedby": id,
895
922
  role: "menu"
896
- }, renderChildren())), domRoot));
923
+ }, renderChildren())), root));
897
924
  };
898
925
  var ContextMenu = /*#__PURE__*/React__default["default"].forwardRef(ContextMenuComponent);
899
926
 
@@ -1471,8 +1498,7 @@ var TooltipComponent = function TooltipComponent(_ref, ref) {
1471
1498
  offset = _ref$offset === void 0 ? defaultPosition.offset : _ref$offset,
1472
1499
  _ref$transformOrigin = _ref.transformOrigin,
1473
1500
  transformOrigin = _ref$transformOrigin === void 0 ? defaultPosition.transformOrigin : _ref$transformOrigin,
1474
- _ref$domRoot = _ref.domRoot,
1475
- domRoot = _ref$domRoot === void 0 ? document.body : _ref$domRoot,
1501
+ domRoot = _ref.domRoot,
1476
1502
  label = _ref.label,
1477
1503
  rest = _objectWithoutPropertiesLoose(_ref, _excluded$K);
1478
1504
  var _useState = React.useState(generateID()),
@@ -1480,6 +1506,9 @@ var TooltipComponent = function TooltipComponent(_ref, ref) {
1480
1506
  var _useState2 = React.useState(false),
1481
1507
  visible = _useState2[0],
1482
1508
  setVisible = _useState2[1];
1509
+ var wrappingDivRef = ref || React.createRef();
1510
+ var _useGetDomRoot = useGetDomRoot(domRoot, wrappingDivRef),
1511
+ root = _useGetDomRoot.root;
1483
1512
  var relativeElement = React.useRef(null);
1484
1513
  var elementToBePositioned = React.useRef(null);
1485
1514
  var _usePosition = usePosition({
@@ -1536,7 +1565,7 @@ var TooltipComponent = function TooltipComponent(_ref, ref) {
1536
1565
  }, label);
1537
1566
  };
1538
1567
  return React__default["default"].createElement("div", _extends({}, rest, {
1539
- ref: ref,
1568
+ ref: wrappingDivRef,
1540
1569
  className: modules_16974fb0.wrapper + " " + (className != null ? className : "")
1541
1570
  }), renderChildren(), React__default["default"].createElement("div", {
1542
1571
  className: "" + modules_16974fb0["tooltip-wrapper"]
@@ -1562,7 +1591,7 @@ var TooltipComponent = function TooltipComponent(_ref, ref) {
1562
1591
  "aria-hidden": !visible,
1563
1592
  id: identifier,
1564
1593
  className: modules_16974fb0.tooltip + " " + (visible ? modules_16974fb0.visible : "")
1565
- }, children), domRoot)));
1594
+ }, children), root)));
1566
1595
  };
1567
1596
  var Tooltip = /*#__PURE__*/React__default["default"].forwardRef(TooltipComponent);
1568
1597
 
@@ -2462,10 +2491,12 @@ var BaseModalComponent = function BaseModalComponent(_ref, ref) {
2462
2491
  _ref$forceContainerOp = _ref.forceContainerOpen,
2463
2492
  forceContainerOpen = _ref$forceContainerOp === void 0 ? false : _ref$forceContainerOp,
2464
2493
  zIndex = _ref.zIndex,
2465
- _ref$domRoot = _ref.domRoot,
2466
- domRoot = _ref$domRoot === void 0 ? document.body : _ref$domRoot,
2494
+ domRoot = _ref.domRoot,
2467
2495
  rest = _objectWithoutPropertiesLoose(_ref, _excluded$B);
2468
2496
  useSetBodyScroll(open);
2497
+ var wrappingDivRef = React.useRef(null);
2498
+ var _useGetDomRoot = useGetDomRoot(domRoot, wrappingDivRef),
2499
+ root = _useGetDomRoot.root;
2469
2500
  var handleEscKeyPress = function handleEscKeyPress(event) {
2470
2501
  if (!disableEscapeKeyDown && event.key === "Escape") {
2471
2502
  event.stopPropagation();
@@ -2475,7 +2506,9 @@ var BaseModalComponent = function BaseModalComponent(_ref, ref) {
2475
2506
  var handleBackdropClick = function handleBackdropClick() {
2476
2507
  return !disableBackdrop && onClose && onClose();
2477
2508
  };
2478
- return reactDom.createPortal(React__default["default"].createElement("div", _extends({}, rest, {
2509
+ return React__default["default"].createElement("div", {
2510
+ ref: wrappingDivRef
2511
+ }, reactDom.createPortal(React__default["default"].createElement("div", _extends({}, rest, {
2479
2512
  ref: ref,
2480
2513
  id: id,
2481
2514
  className: modules_cf1b230e["modal"] + " " + (open ? modules_cf1b230e["visible"] : "") + " " + className,
@@ -2505,7 +2538,7 @@ var BaseModalComponent = function BaseModalComponent(_ref, ref) {
2505
2538
  zIndex: zIndex && zIndex + 1
2506
2539
  },
2507
2540
  className: modules_cf1b230e["container"] + " " + ((_containerProps$class2 = containerProps == null ? void 0 : containerProps.className) != null ? _containerProps$class2 : "")
2508
- }), children)), domRoot);
2541
+ }), children)), root));
2509
2542
  };
2510
2543
  var BaseModal = /*#__PURE__*/React__default["default"].forwardRef(BaseModalComponent);
2511
2544
 
@@ -3075,13 +3108,15 @@ var SnackbarProvider = function SnackbarProvider(_temp) {
3075
3108
  } : _ref$autoHideDuration,
3076
3109
  _ref$stackSize = _ref.stackSize,
3077
3110
  stackSize = _ref$stackSize === void 0 ? 3 : _ref$stackSize,
3078
- _ref$domRoot = _ref.domRoot,
3079
- domRoot = _ref$domRoot === void 0 ? document.body : _ref$domRoot,
3111
+ domRoot = _ref.domRoot,
3080
3112
  children = _ref.children,
3081
3113
  className = _ref.className;
3082
3114
  var _useState = React.useState([]),
3083
3115
  snackbars = _useState[0],
3084
3116
  setSnackbars = _useState[1];
3117
+ var wrappingDivRef = React.useRef(null);
3118
+ var _useGetDomRoot = useGetDomRoot(domRoot, wrappingDivRef),
3119
+ root = _useGetDomRoot.root;
3085
3120
  var addSnackbar = function addSnackbar(item) {
3086
3121
  setSnackbars(function (items) {
3087
3122
  return [].concat(items, [item]);
@@ -3159,7 +3194,7 @@ var SnackbarProvider = function SnackbarProvider(_temp) {
3159
3194
  var snackbarPortal = reactDom.createPortal(React__default["default"].createElement(SnackbarContainer, {
3160
3195
  placement: placement,
3161
3196
  className: className
3162
- }, snackbarList), domRoot);
3197
+ }, snackbarList), root);
3163
3198
  return React__default["default"].createElement(SnackbarContextProvider, {
3164
3199
  initialState: {
3165
3200
  enqueueSnackbar: enqueueSnackbar,
@@ -3168,7 +3203,9 @@ var SnackbarProvider = function SnackbarProvider(_temp) {
3168
3203
  setSnackbarHeight: setSnackbarHeight,
3169
3204
  snackbars: snackbars
3170
3205
  }
3171
- }, children, snackbarPortal);
3206
+ }, children, React__default["default"].createElement("div", {
3207
+ ref: wrappingDivRef
3208
+ }, snackbarPortal));
3172
3209
  };
3173
3210
 
3174
3211
  var css$p = ".Checkbox_module_checkboxWrapper__0342c60f{position:relative}.Checkbox_module_checkboxWrapper__0342c60f+.Checkbox_module_checkboxWrapper__0342c60f{margin-top:1.25rem}.Checkbox_module_checkboxContainer__0342c60f{align-items:center;display:flex}.Checkbox_module_checkboxContainer__0342c60f label{display:inline-block;font-family:var(--font-family);font-size:var(--font-size);margin-left:.5rem;user-select:none}.Checkbox_module_checkboxList__0342c60f{list-style:none;margin:1.25rem 0 0 1.75rem;padding:0}.Checkbox_module_checkboxList__0342c60f li+li{margin-top:1.25rem}.Checkbox_module_nativeInput__0342c60f{height:1.25rem;left:0;margin:0;opacity:0;position:absolute;top:0;width:1.25rem}.Checkbox_module_nativeInput__0342c60f:checked+*{color:var(--color-primary)}.Checkbox_module_nativeInput__0342c60f:focus-visible+*{border-radius:2px;outline:1px solid var(--color-focus);outline-offset:1px}.Checkbox_module_nativeInput__0342c60f.Checkbox_module_error__0342c60f:focus-visible+*{outline-color:var(--color-error)}.Checkbox_module_input__0342c60f{font-size:1.25rem;pointer-events:none}.Checkbox_module_disabled__0342c60f{color:var(--disabled)}";