react-magma-dom 3.1.2-next.0 → 3.1.2-next.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/esm/index.js CHANGED
@@ -7077,38 +7077,57 @@ var max = Math.max;
7077
7077
  var min = Math.min;
7078
7078
  var round = Math.round;
7079
7079
 
7080
- function getBoundingClientRect(element, includeScale) {
7080
+ function getUAString() {
7081
+ var uaData = navigator.userAgentData;
7082
+
7083
+ if (uaData != null && uaData.brands) {
7084
+ return uaData.brands.map(function (item) {
7085
+ return item.brand + "/" + item.version;
7086
+ }).join(' ');
7087
+ }
7088
+
7089
+ return navigator.userAgent;
7090
+ }
7091
+
7092
+ function isLayoutViewport() {
7093
+ return !/^((?!chrome|android).)*safari/i.test(getUAString());
7094
+ }
7095
+
7096
+ function getBoundingClientRect(element, includeScale, isFixedStrategy) {
7081
7097
  if (includeScale === void 0) {
7082
7098
  includeScale = false;
7083
7099
  }
7084
7100
 
7085
- var rect = element.getBoundingClientRect();
7101
+ if (isFixedStrategy === void 0) {
7102
+ isFixedStrategy = false;
7103
+ }
7104
+
7105
+ var clientRect = element.getBoundingClientRect();
7086
7106
  var scaleX = 1;
7087
7107
  var scaleY = 1;
7088
7108
 
7089
- if (isHTMLElement(element) && includeScale) {
7090
- var offsetHeight = element.offsetHeight;
7091
- var offsetWidth = element.offsetWidth; // Do not attempt to divide by 0, otherwise we get `Infinity` as scale
7092
- // Fallback to 1 in case both values are `0`
7093
-
7094
- if (offsetWidth > 0) {
7095
- scaleX = round(rect.width) / offsetWidth || 1;
7096
- }
7097
-
7098
- if (offsetHeight > 0) {
7099
- scaleY = round(rect.height) / offsetHeight || 1;
7100
- }
7109
+ if (includeScale && isHTMLElement(element)) {
7110
+ scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
7111
+ scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
7101
7112
  }
7102
7113
 
7114
+ var _ref = isElement(element) ? getWindow(element) : window,
7115
+ visualViewport = _ref.visualViewport;
7116
+
7117
+ var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
7118
+ var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
7119
+ var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
7120
+ var width = clientRect.width / scaleX;
7121
+ var height = clientRect.height / scaleY;
7103
7122
  return {
7104
- width: rect.width / scaleX,
7105
- height: rect.height / scaleY,
7106
- top: rect.top / scaleY,
7107
- right: rect.right / scaleX,
7108
- bottom: rect.bottom / scaleY,
7109
- left: rect.left / scaleX,
7110
- x: rect.left / scaleX,
7111
- y: rect.top / scaleY
7123
+ width: width,
7124
+ height: height,
7125
+ top: y,
7126
+ right: x + width,
7127
+ bottom: y + height,
7128
+ left: x,
7129
+ x: x,
7130
+ y: y
7112
7131
  };
7113
7132
  }
7114
7133
 
@@ -7203,8 +7222,8 @@ function getTrueOffsetParent(element) {
7203
7222
 
7204
7223
 
7205
7224
  function getContainingBlock(element) {
7206
- var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
7207
- var isIE = navigator.userAgent.indexOf('Trident') !== -1;
7225
+ var isFirefox = /firefox/i.test(getUAString());
7226
+ var isIE = /Trident/i.test(getUAString());
7208
7227
 
7209
7228
  if (isIE && isHTMLElement(element)) {
7210
7229
  // In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
@@ -7644,31 +7663,21 @@ function getWindowScrollBarX(element) {
7644
7663
  return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
7645
7664
  }
7646
7665
 
7647
- function getViewportRect(element) {
7666
+ function getViewportRect(element, strategy) {
7648
7667
  var win = getWindow(element);
7649
7668
  var html = getDocumentElement(element);
7650
7669
  var visualViewport = win.visualViewport;
7651
7670
  var width = html.clientWidth;
7652
7671
  var height = html.clientHeight;
7653
7672
  var x = 0;
7654
- var y = 0; // NB: This isn't supported on iOS <= 12. If the keyboard is open, the popper
7655
- // can be obscured underneath it.
7656
- // Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
7657
- // if it isn't open, so if this isn't available, the popper will be detected
7658
- // to overflow the bottom of the screen too early.
7673
+ var y = 0;
7659
7674
 
7660
7675
  if (visualViewport) {
7661
7676
  width = visualViewport.width;
7662
- height = visualViewport.height; // Uses Layout Viewport (like Chrome; Safari does not currently)
7663
- // In Chrome, it returns a value very close to 0 (+/-) but contains rounding
7664
- // errors due to floating point numbers, so we need to check precision.
7665
- // Safari returns a number <= 0, usually < -1 when pinch-zoomed
7666
- // Feature detection fails in mobile emulation mode in Chrome.
7667
- // Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
7668
- // 0.001
7669
- // Fallback here: "Not Safari" userAgent
7670
-
7671
- if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
7677
+ height = visualViewport.height;
7678
+ var layoutViewport = isLayoutViewport();
7679
+
7680
+ if (layoutViewport || !layoutViewport && strategy === 'fixed') {
7672
7681
  x = visualViewport.offsetLeft;
7673
7682
  y = visualViewport.offsetTop;
7674
7683
  }
@@ -7762,8 +7771,8 @@ function rectToClientRect(rect) {
7762
7771
  });
7763
7772
  }
7764
7773
 
7765
- function getInnerBoundingClientRect(element) {
7766
- var rect = getBoundingClientRect(element);
7774
+ function getInnerBoundingClientRect(element, strategy) {
7775
+ var rect = getBoundingClientRect(element, false, strategy === 'fixed');
7767
7776
  rect.top = rect.top + element.clientTop;
7768
7777
  rect.left = rect.left + element.clientLeft;
7769
7778
  rect.bottom = rect.top + element.clientHeight;
@@ -7775,8 +7784,8 @@ function getInnerBoundingClientRect(element) {
7775
7784
  return rect;
7776
7785
  }
7777
7786
 
7778
- function getClientRectFromMixedType(element, clippingParent) {
7779
- return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
7787
+ function getClientRectFromMixedType(element, clippingParent, strategy) {
7788
+ return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
7780
7789
  } // A "clipping parent" is an overflowable container with the characteristic of
7781
7790
  // clipping (or hiding) overflowing elements with a position different from
7782
7791
  // `initial`
@@ -7799,18 +7808,18 @@ function getClippingParents(element) {
7799
7808
  // clipping parents
7800
7809
 
7801
7810
 
7802
- function getClippingRect(element, boundary, rootBoundary) {
7811
+ function getClippingRect(element, boundary, rootBoundary, strategy) {
7803
7812
  var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
7804
7813
  var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
7805
7814
  var firstClippingParent = clippingParents[0];
7806
7815
  var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
7807
- var rect = getClientRectFromMixedType(element, clippingParent);
7816
+ var rect = getClientRectFromMixedType(element, clippingParent, strategy);
7808
7817
  accRect.top = max(rect.top, accRect.top);
7809
7818
  accRect.right = min(rect.right, accRect.right);
7810
7819
  accRect.bottom = min(rect.bottom, accRect.bottom);
7811
7820
  accRect.left = max(rect.left, accRect.left);
7812
7821
  return accRect;
7813
- }, getClientRectFromMixedType(element, firstClippingParent));
7822
+ }, getClientRectFromMixedType(element, firstClippingParent, strategy));
7814
7823
  clippingRect.width = clippingRect.right - clippingRect.left;
7815
7824
  clippingRect.height = clippingRect.bottom - clippingRect.top;
7816
7825
  clippingRect.x = clippingRect.left;
@@ -7891,6 +7900,8 @@ function detectOverflow(state, options) {
7891
7900
  var _options = options,
7892
7901
  _options$placement = _options.placement,
7893
7902
  placement = _options$placement === void 0 ? state.placement : _options$placement,
7903
+ _options$strategy = _options.strategy,
7904
+ strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,
7894
7905
  _options$boundary = _options.boundary,
7895
7906
  boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
7896
7907
  _options$rootBoundary = _options.rootBoundary,
@@ -7905,7 +7916,7 @@ function detectOverflow(state, options) {
7905
7916
  var altContext = elementContext === popper ? reference : popper;
7906
7917
  var popperRect = state.rects.popper;
7907
7918
  var element = state.elements[altBoundary ? altContext : elementContext];
7908
- var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
7919
+ var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);
7909
7920
  var referenceClientRect = getBoundingClientRect(state.elements.reference);
7910
7921
  var popperOffsets = computeOffsets({
7911
7922
  reference: referenceClientRect,
@@ -8423,7 +8434,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
8423
8434
  var isOffsetParentAnElement = isHTMLElement(offsetParent);
8424
8435
  var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
8425
8436
  var documentElement = getDocumentElement(offsetParent);
8426
- var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
8437
+ var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
8427
8438
  var scroll = {
8428
8439
  scrollLeft: 0,
8429
8440
  scrollTop: 0
@@ -24446,7 +24457,7 @@ var TimePicker = /*#__PURE__*/forwardRef(function (props, ref) {
24446
24457
  });
24447
24458
 
24448
24459
  function getStyles(theme, isInverse) {
24449
- return /*#__PURE__*/css("@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');*,*:before,*:after{box-sizing:border-box;}*:focus{outline:2px solid ", isInverse ? theme.colors.focusInverse : theme.colors.focus, ";outline-offset:2px;}html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;font-size:", theme.typeScale.size03.fontSize, ";line-height:", theme.typeScale.size03.lineHeight, ";scroll-behavior:smooth;}html,body{background:", isInverse ? theme.colors.primary600 : theme.colors.neutral100, ";color:", isInverse ? theme.colors.neutral100 : theme.colors.neutral, ";margin:0;padding:0;}body{font-family:", theme.bodyFont, ";font-style:normal;font-weight:400;font-size:", theme.typeScale.size03.fontSize, ";line-height:", theme.typeScale.size03.lineHeight, ";}a{color:", isInverse ? theme.colors.neutral200 : theme.colors.primary, ";cursor:pointer;text-decoration:underline;&:hover,&:focus{color:", isInverse ? theme.colors.focusInverse : theme.colors.focus, ";}}button,input,optgroup,select,textarea{font:inherit;margin:0;}svg:not(:root){overflow:hidden;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLZSIsImZpbGUiOiJpbmRleC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBSZWFjdCBmcm9tICdyZWFjdCc7XHJcbmltcG9ydCB7IEdsb2JhbCwgY3NzIH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XHJcbmltcG9ydCB7IFRoZW1lQ29udGV4dCB9IGZyb20gJy4uL1RoZW1lQ29udGV4dCc7XHJcbmltcG9ydCB7IHVzZUlzSW52ZXJzZSB9IGZyb20gJy4uLy4uL2ludmVyc2UnO1xyXG5mdW5jdGlvbiBnZXRTdHlsZXModGhlbWUsIGlzSW52ZXJzZSkge1xyXG4gICAgcmV0dXJuIGNzcyBgXG4gICAgQGltcG9ydCB1cmwoJ2h0dHBzOi8vZm9udHMuZ29vZ2xlYXBpcy5jb20vY3NzMj9mYW1pbHk9V29yaytTYW5zOml0YWwsd2dodEAwLDEwMDswLDIwMDswLDMwMDswLDQwMDswLDUw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ge1xyXG4gICAgY29uc3QgaXNJbnZlcnNlID0gdXNlSXNJbnZlcnNlKCk7XHJcbiAgICByZXR1cm4gKFJlYWN0LmNyZWF0ZUVsZW1lbnQoVGhlbWVDb250ZXh0LkNvbnN1bWVyLCBudWxsLCB0aGVtZSA9PiBSZWFjdC5jcmVhdGVFbGVtZW50KEdsb2JhbCwgeyBzdHlsZXM6IGdldFN0eWxlcyh0aGVtZSwgaXNJbnZlcnNlKSB9KSkpO1xyXG59O1xyXG4vLyMgc291cmNlTWFwcGluZ1VSTD1pbmRleC5qcy5tYXAiXX0= */"));
24460
+ return /*#__PURE__*/css("@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');*,*:before,*:after{box-sizing:border-box;}*:focus{outline:2px solid ", isInverse ? theme.colors.focusInverse : theme.colors.focus, ";outline-offset:2px;}html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;font-size:", theme.typeScale.size03.fontSize, ";line-height:", theme.typeScale.size03.lineHeight, ";scroll-behavior:smooth;}html,body{background:", isInverse ? theme.colors.primary600 : theme.colors.neutral100, ";color:", isInverse ? theme.colors.neutral100 : theme.colors.neutral, ";margin:0;padding:0;}body{font-family:", theme.bodyFont, ";font-style:normal;font-weight:400;font-size:", theme.typeScale.size03.fontSize, ";line-height:", theme.typeScale.size03.lineHeight, ";}a{color:", isInverse ? theme.colors.tertiary : theme.colors.primary, ";cursor:pointer;text-decoration:underline;&:hover,&:focus{color:", isInverse ? theme.colors.primary100 : theme.colors.primary400, ";}&:focus{outline:2px solid ", isInverse ? theme.colors.focusInverse : theme.colors.focus, ";outline-offset:2px;}}button,input,optgroup,select,textarea{font:inherit;margin:0;}svg:not(:root){overflow:hidden;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLZSIsImZpbGUiOiJpbmRleC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBSZWFjdCBmcm9tICdyZWFjdCc7XHJcbmltcG9ydCB7IEdsb2JhbCwgY3NzIH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XHJcbmltcG9ydCB7IFRoZW1lQ29udGV4dCB9IGZyb20gJy4uL1RoZW1lQ29udGV4dCc7XHJcbmltcG9ydCB7IHVzZUlzSW52ZXJzZSB9IGZyb20gJy4uLy4uL2ludmVyc2UnO1xyXG5mdW5jdGlvbiBnZXRTdHlsZXModGhlbWUsIGlzSW52ZXJzZSkge1xyXG4gICAgcmV0dXJuIGNzcyBgXG4gICAgQGltcG9ydCB1cmwoJ2h0dHBzOi8vZm9udHMuZ29vZ2xlYXBpcy5jb20vY3NzMj9mYW1pbHk9V29yaytTYW5zOml0YWwsd2dodEAwLDEwMDswLDIwMDswLDMwMDswLDQwMDswLDUwMDswLDYwMDswLDcwMDswLDgwMDswLDkwMDsxLDEwMDsxLDIwMDsxLDMwMDsxLDQwMDsxLDUwMDsxLDYwMDsxLDcwMDsxLDgwMDsxLDkwMCZkaXNwbGF5PXN3YXAnKTtcbiAgICBAaW1wb3J0IHVybCgnaHR0cHM6Ly9mb250cy5nb29nbGVhcGlzLmNvbS9jc3MyP2ZhbWlseT1Ob3RvK1NlcmlmOml0YWwsd2dodEAwLDQwMDswLDcwMDsxLDQwMDsxLDcwMCZkaXNwbGF5PXN3YXAnKTtcblxuICAgICosXG4gICAgKjpiZWZvcmUsXG4gICAgKjphZnRlciB7XG4gICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICAgIH1cblxuICAgICo6Zm9jdXMge1xuICAgICAgb3V0bGluZTogMnB4IHNv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nNlKSB9KSkpO1xyXG59O1xyXG4vLyMgc291cmNlTWFwcGluZ1VSTD1pbmRleC5qcy5tYXAiXX0= */"));
24450
24461
  }
24451
24462
 
24452
24463
  var GlobalStyles = function GlobalStyles() {