@getflip/swirl-components 0.391.0 → 0.392.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (139) hide show
  1. package/components.json +30 -1
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/{media-query.service-BcAHijM-.js → media-query.service-B8u-DqoO.js} +1 -1
  4. package/dist/cjs/swirl-action-list_2.cjs.entry.js +2 -2
  5. package/dist/cjs/swirl-app-layout_5.cjs.entry.js +2 -2
  6. package/dist/cjs/swirl-autocomplete.cjs.entry.js +1 -1
  7. package/dist/cjs/swirl-banner.cjs.entry.js +2 -2
  8. package/dist/cjs/swirl-button.cjs.entry.js +2 -2
  9. package/dist/cjs/swirl-carousel.cjs.entry.js +1 -1
  10. package/dist/cjs/swirl-chip.cjs.entry.js +2 -2
  11. package/dist/cjs/swirl-components.cjs.js +1 -1
  12. package/dist/cjs/swirl-console-layout.cjs.entry.js +1 -1
  13. package/dist/cjs/swirl-date-input.cjs.entry.js +2 -2
  14. package/dist/cjs/swirl-date-picker_2.cjs.entry.js +1 -1
  15. package/dist/cjs/swirl-file-chip.cjs.entry.js +1 -1
  16. package/dist/cjs/swirl-file-viewer_8.cjs.entry.js +1 -1
  17. package/dist/cjs/swirl-form-control.cjs.entry.js +1 -1
  18. package/dist/cjs/swirl-icon-error_3.cjs.entry.js +2 -2
  19. package/dist/cjs/swirl-image-grid-item.cjs.entry.js +1 -1
  20. package/dist/cjs/swirl-inline-status.cjs.entry.js +2 -2
  21. package/dist/cjs/swirl-lightbox.cjs.entry.js +1 -1
  22. package/dist/cjs/swirl-menu-item.cjs.entry.js +1 -1
  23. package/dist/cjs/swirl-menu.cjs.entry.js +1 -1
  24. package/dist/cjs/swirl-modal.cjs.entry.js +1 -1
  25. package/dist/cjs/swirl-option-list_2.cjs.entry.js +2 -2
  26. package/dist/cjs/swirl-pagination.cjs.entry.js +1 -1
  27. package/dist/cjs/swirl-pdf-reader.cjs.entry.js +1 -1
  28. package/dist/cjs/swirl-popover_2.cjs.entry.js +1 -1
  29. package/dist/cjs/swirl-resource-list-file-item.cjs.entry.js +2 -2
  30. package/dist/cjs/swirl-search.cjs.entry.js +2 -2
  31. package/dist/cjs/swirl-select.cjs.entry.js +1 -1
  32. package/dist/cjs/swirl-shell-layout.cjs.entry.js +1 -1
  33. package/dist/cjs/swirl-tab-bar.cjs.entry.js +1 -1
  34. package/dist/cjs/swirl-table-column.cjs.entry.js +1 -1
  35. package/dist/cjs/swirl-table-row.cjs.entry.js +1 -1
  36. package/dist/cjs/swirl-table.cjs.entry.js +1 -1
  37. package/dist/cjs/swirl-tabs.cjs.entry.js +1 -1
  38. package/dist/cjs/swirl-text-input.cjs.entry.js +2 -2
  39. package/dist/cjs/swirl-time-input.cjs.entry.js +2 -2
  40. package/dist/cjs/swirl-toast.cjs.entry.js +2 -2
  41. package/dist/cjs/swirl-toolbar.cjs.entry.js +1 -1
  42. package/dist/cjs/swirl-tooltip.cjs.entry.js +36 -10
  43. package/dist/cjs/{utils-CllbYlRY.js → utils-UfZG-xPD.js} +6 -0
  44. package/dist/collection/components/swirl-tooltip/swirl-tooltip.css +5 -0
  45. package/dist/collection/components/swirl-tooltip/swirl-tooltip.js +57 -10
  46. package/dist/collection/utils.js +5 -0
  47. package/dist/components/assets/pdfjs/pdf.worker.min.mjs +4 -1
  48. package/dist/components/media-query.service.js +1 -1
  49. package/dist/components/swirl-tooltip2.js +39 -11
  50. package/dist/components/utils.js +6 -1
  51. package/dist/esm/loader.js +1 -1
  52. package/dist/esm/{media-query.service-CpP-qu5C.js → media-query.service-BZg4zbFx.js} +1 -1
  53. package/dist/esm/swirl-action-list_2.entry.js +2 -2
  54. package/dist/esm/swirl-app-layout_5.entry.js +2 -2
  55. package/dist/esm/swirl-autocomplete.entry.js +1 -1
  56. package/dist/esm/swirl-banner.entry.js +2 -2
  57. package/dist/esm/swirl-button.entry.js +2 -2
  58. package/dist/esm/swirl-carousel.entry.js +1 -1
  59. package/dist/esm/swirl-chip.entry.js +2 -2
  60. package/dist/esm/swirl-components.js +1 -1
  61. package/dist/esm/swirl-console-layout.entry.js +1 -1
  62. package/dist/esm/swirl-date-input.entry.js +2 -2
  63. package/dist/esm/swirl-date-picker_2.entry.js +1 -1
  64. package/dist/esm/swirl-file-chip.entry.js +1 -1
  65. package/dist/esm/swirl-file-viewer_8.entry.js +1 -1
  66. package/dist/esm/swirl-form-control.entry.js +1 -1
  67. package/dist/esm/swirl-icon-error_3.entry.js +2 -2
  68. package/dist/esm/swirl-image-grid-item.entry.js +1 -1
  69. package/dist/esm/swirl-inline-status.entry.js +2 -2
  70. package/dist/esm/swirl-lightbox.entry.js +1 -1
  71. package/dist/esm/swirl-menu-item.entry.js +1 -1
  72. package/dist/esm/swirl-menu.entry.js +1 -1
  73. package/dist/esm/swirl-modal.entry.js +1 -1
  74. package/dist/esm/swirl-option-list_2.entry.js +2 -2
  75. package/dist/esm/swirl-pagination.entry.js +1 -1
  76. package/dist/esm/swirl-pdf-reader.entry.js +1 -1
  77. package/dist/esm/swirl-popover_2.entry.js +1 -1
  78. package/dist/esm/swirl-resource-list-file-item.entry.js +2 -2
  79. package/dist/esm/swirl-search.entry.js +2 -2
  80. package/dist/esm/swirl-select.entry.js +1 -1
  81. package/dist/esm/swirl-shell-layout.entry.js +1 -1
  82. package/dist/esm/swirl-tab-bar.entry.js +1 -1
  83. package/dist/esm/swirl-table-column.entry.js +1 -1
  84. package/dist/esm/swirl-table-row.entry.js +1 -1
  85. package/dist/esm/swirl-table.entry.js +1 -1
  86. package/dist/esm/swirl-tabs.entry.js +1 -1
  87. package/dist/esm/swirl-text-input.entry.js +2 -2
  88. package/dist/esm/swirl-time-input.entry.js +2 -2
  89. package/dist/esm/swirl-toast.entry.js +2 -2
  90. package/dist/esm/swirl-toolbar.entry.js +1 -1
  91. package/dist/esm/swirl-tooltip.entry.js +36 -10
  92. package/dist/esm/{utils-DytJsmhr.js → utils-wi_3Z3FQ.js} +6 -1
  93. package/dist/swirl-components/{p-84522af5.entry.js → p-08096eb7.entry.js} +1 -1
  94. package/dist/swirl-components/{p-7eaa0fa6.entry.js → p-0f996944.entry.js} +1 -1
  95. package/dist/swirl-components/{p-d9d2d3cd.entry.js → p-19dadeeb.entry.js} +1 -1
  96. package/dist/swirl-components/{p-27a2334e.entry.js → p-1a298d4a.entry.js} +1 -1
  97. package/dist/swirl-components/{p-2fae365b.entry.js → p-1b8edbad.entry.js} +1 -1
  98. package/dist/swirl-components/{p-744bb10c.entry.js → p-2ba77bbd.entry.js} +1 -1
  99. package/dist/swirl-components/{p-41514546.entry.js → p-3a51cd1d.entry.js} +1 -1
  100. package/dist/swirl-components/{p-81b2e380.entry.js → p-3cb860e0.entry.js} +1 -1
  101. package/dist/swirl-components/{p-0da2362d.entry.js → p-3ff37617.entry.js} +1 -1
  102. package/dist/swirl-components/{p-922134b6.entry.js → p-40d6a295.entry.js} +1 -1
  103. package/dist/swirl-components/{p-2a61a410.entry.js → p-488cfc82.entry.js} +1 -1
  104. package/dist/swirl-components/{p-81ee71b8.entry.js → p-492d52f6.entry.js} +1 -1
  105. package/dist/swirl-components/{p-bfa2491e.entry.js → p-59116473.entry.js} +1 -1
  106. package/dist/swirl-components/{p-2a285267.entry.js → p-5b34a195.entry.js} +1 -1
  107. package/dist/swirl-components/{p-1182eb75.entry.js → p-5c5c2a10.entry.js} +1 -1
  108. package/dist/swirl-components/{p-fc502f05.entry.js → p-5d81e853.entry.js} +1 -1
  109. package/dist/swirl-components/{p-b9a299b9.entry.js → p-6d325fa7.entry.js} +1 -1
  110. package/dist/swirl-components/{p-192e260b.entry.js → p-6e55cabe.entry.js} +1 -1
  111. package/dist/swirl-components/{p-f28a4f8e.entry.js → p-74aa7188.entry.js} +1 -1
  112. package/dist/swirl-components/{p-042ee5d4.entry.js → p-7bc63fc2.entry.js} +1 -1
  113. package/dist/swirl-components/{p-8acdbcb3.entry.js → p-7f4e05df.entry.js} +1 -1
  114. package/dist/swirl-components/{p-1531276b.entry.js → p-92fb5c55.entry.js} +1 -1
  115. package/dist/swirl-components/{p-180ed63e.entry.js → p-971f8aa4.entry.js} +1 -1
  116. package/dist/swirl-components/{p-fb5079da.entry.js → p-9b0a52d8.entry.js} +1 -1
  117. package/dist/swirl-components/{p-7a9af724.entry.js → p-9d829bc6.entry.js} +1 -1
  118. package/dist/swirl-components/{p-DJ2FyZeW.js → p-BKpD2IO9.js} +1 -1
  119. package/dist/swirl-components/{p-64e4d854.entry.js → p-ab26446b.entry.js} +1 -1
  120. package/dist/swirl-components/{p-350a5b37.entry.js → p-acf964f6.entry.js} +1 -1
  121. package/dist/swirl-components/{p-6a4c15e4.entry.js → p-b1926a98.entry.js} +1 -1
  122. package/dist/swirl-components/{p-84535964.entry.js → p-b674e398.entry.js} +1 -1
  123. package/dist/swirl-components/{p-c8e30ded.entry.js → p-b80acce3.entry.js} +1 -1
  124. package/dist/swirl-components/{p-6f8ef29e.entry.js → p-bf1ed31d.entry.js} +1 -1
  125. package/dist/swirl-components/{p-0d5171f8.entry.js → p-bf4d2ac3.entry.js} +1 -1
  126. package/dist/swirl-components/{p-e872b698.entry.js → p-c31d13e2.entry.js} +1 -1
  127. package/dist/swirl-components/{p-441c94ba.entry.js → p-d92888a6.entry.js} +1 -1
  128. package/dist/swirl-components/{p-57dfce0c.entry.js → p-eaa660fd.entry.js} +1 -1
  129. package/dist/swirl-components/{p-157e2343.entry.js → p-ebac4d1b.entry.js} +1 -1
  130. package/dist/swirl-components/{p-750914d8.entry.js → p-f1b42a86.entry.js} +1 -1
  131. package/dist/swirl-components/p-f38f71c9.entry.js +1 -0
  132. package/dist/swirl-components/{p-DytJsmhr.js → p-wi_3Z3FQ.js} +1 -1
  133. package/dist/swirl-components/swirl-components.esm.js +1 -1
  134. package/dist/types/components/swirl-tooltip/swirl-tooltip.d.ts +7 -0
  135. package/dist/types/components.d.ts +10 -0
  136. package/dist/types/utils.d.ts +1 -0
  137. package/package.json +1 -1
  138. package/vscode-data.json +4 -0
  139. package/dist/swirl-components/p-eef34c13.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import { t as getDesktopMediaQuery } from './utils.js';
1
+ import { u as getDesktopMediaQuery } from './utils.js';
2
2
 
3
3
  class DesktopMediaQueryService {
4
4
  constructor() {
@@ -1,8 +1,9 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
  import { u, P, N, D, k, b } from './floating-ui.dom.browser.min.js';
3
3
  import { c as classNames } from './index2.js';
4
+ import { t as getPixelsFromRemToken } from './utils.js';
4
5
 
5
- const swirlTooltipCss = ":host{display:contents;font-weight:var(--s-font-weight-normal)}:host *{box-sizing:border-box}.tooltip{display:contents}.tooltip--active .tooltip__popper{display:block}.tooltip--visible .tooltip__popper{animation:tooltip-fade-in 0.15s;animation-delay:0.1s;animation-fill-mode:forwards;opacity:0}.tooltip--actual-placement-top .tooltip__arrow{top:calc(100% - 0.0625rem);transform:translate3d(0, -50%, 0) rotate(45deg)}.tooltip--actual-placement-bottom .tooltip__arrow{bottom:calc(100% - 0.0625rem);transform:translate3d(0, 50%, 0) rotate(45deg)}.tooltip--actual-placement-left .tooltip__arrow{left:calc(100% - 0.0625rem);transform:translate3d(-50%, 0, 0) rotate(45deg)}.tooltip--actual-placement-right .tooltip__arrow{right:calc(100% - 0.0625rem);transform:translate3d(50%, 0, 0) rotate(45deg)}.tooltip .tooltip__reference{display:contents}.tooltip__popper{position:absolute;z-index:var(--s-z-40);display:none;max-width:17.5rem;opacity:0}.tooltip__bubble{position:relative;display:block;padding-top:var(--s-space-8);padding-right:var(--s-space-12);padding-bottom:calc(var(--s-space-8) + 0.0625rem);padding-left:var(--s-space-12);border-radius:var(--s-border-radius-sm);color:var(--s-text-on-status);background-color:var(--s-surface-neutral-default);line-height:var(--s-line-height-base);box-shadow:var(--s-shadow-level-2)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.tooltip__bubble{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.tooltip__content{white-space:normal}.tooltip__arrow{position:absolute;width:0.6875rem;height:0.6875rem;border-radius:0.125rem;background-color:var(--s-surface-neutral-default)}@keyframes tooltip-fade-in{from{opacity:0}to{opacity:1}}";
6
+ const swirlTooltipCss = ":host{display:contents;font-weight:var(--s-font-weight-normal)}:host *{box-sizing:border-box}.tooltip{display:contents}.tooltip--active .tooltip__popper{display:block}.tooltip--visible .tooltip__popper{animation:tooltip-fade-in 0.15s;animation-delay:0.1s;animation-fill-mode:forwards;opacity:0}.tooltip--actual-placement-top .tooltip__arrow{top:calc(100% - 0.0625rem);transform:translate3d(0, -50%, 0) rotate(45deg)}.tooltip--actual-placement-bottom .tooltip__arrow{bottom:calc(100% - 0.0625rem);transform:translate3d(0, 50%, 0) rotate(45deg)}.tooltip--actual-placement-left .tooltip__arrow{left:calc(100% - 0.0625rem);transform:translate3d(-50%, 0, 0) rotate(45deg)}.tooltip--actual-placement-right .tooltip__arrow{right:calc(100% - 0.0625rem);transform:translate3d(50%, 0, 0) rotate(45deg)}.tooltip .tooltip__reference{display:contents}.tooltip__popper{position:absolute;z-index:var(--s-z-40);display:none;max-width:17.5rem;opacity:0}.tooltip__bubble{position:relative;display:block;padding-top:var(--s-space-8);padding-right:var(--s-space-12);padding-bottom:calc(var(--s-space-8) + 0.0625rem);padding-left:var(--s-space-12);border-radius:var(--s-border-radius-sm);color:var(--s-text-on-status);background-color:var(--s-surface-neutral-default);line-height:var(--s-line-height-base);box-shadow:var(--s-shadow-level-2)}@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px){.tooltip__bubble{font-size:var(--s-font-size-sm);line-height:var(--s-line-height-sm)}}.tooltip__content{white-space:normal}.tooltip__arrow{position:absolute;width:0.6875rem;height:0.6875rem;border-radius:0.125rem;background-color:var(--s-surface-neutral-default)}.tooltip--promo .tooltip__bubble,.tooltip--promo .tooltip__arrow{background-color:var(--s-surface-info-default)}@keyframes tooltip-fade-in{from{opacity:0}to{opacity:1}}";
6
7
 
7
8
  const SwirlTooltip = /*@__PURE__*/ proxyCustomElement(class SwirlTooltip extends HTMLElement {
8
9
  constructor() {
@@ -13,9 +14,16 @@ const SwirlTooltip = /*@__PURE__*/ proxyCustomElement(class SwirlTooltip extends
13
14
  this.delay = 200;
14
15
  this.position = "top";
15
16
  this.positioning = "absolute";
17
+ /**
18
+ * If set to true, tooltip will be initially visible.
19
+ * It will only be dismissible via a click and will not reappear.
20
+ * Tooltip will have a blue background color.
21
+ */
22
+ this.isPromo = false;
16
23
  this.visible = false;
24
+ this.isPromoShown = false;
17
25
  this.onKeydown = (event) => {
18
- if (event.code === "Escape") {
26
+ if (event.code === "Escape" && !this.isPromo) {
19
27
  this.hide();
20
28
  }
21
29
  };
@@ -37,7 +45,7 @@ const SwirlTooltip = /*@__PURE__*/ proxyCustomElement(class SwirlTooltip extends
37
45
  };
38
46
  };
39
47
  this.show = () => {
40
- if (!this.active) {
48
+ if (!this.active || (this.isPromo && this.isPromoShown)) {
41
49
  return;
42
50
  }
43
51
  this.visible = true;
@@ -71,11 +79,22 @@ const SwirlTooltip = /*@__PURE__*/ proxyCustomElement(class SwirlTooltip extends
71
79
  this.disableAutoUpdate?.();
72
80
  };
73
81
  this.updateOptions = () => {
74
- const margin = +getComputedStyle(document.documentElement)
75
- .getPropertyValue("--s-space-12")
76
- .replace("rem", "") * 16;
82
+ const margin = getPixelsFromRemToken("--s-space-12");
83
+ const shiftPaddingY = getPixelsFromRemToken("--s-space-8");
84
+ const shiftPaddingX = getPixelsFromRemToken("--s-space-16");
77
85
  this.options = {
78
- middleware: [D(margin), k(), b()],
86
+ middleware: [
87
+ D(margin),
88
+ k({
89
+ padding: {
90
+ top: shiftPaddingY,
91
+ bottom: shiftPaddingY,
92
+ left: shiftPaddingX,
93
+ right: shiftPaddingX,
94
+ },
95
+ }),
96
+ b(),
97
+ ],
79
98
  placement: this.position,
80
99
  strategy: this.positioning,
81
100
  };
@@ -88,7 +107,9 @@ const SwirlTooltip = /*@__PURE__*/ proxyCustomElement(class SwirlTooltip extends
88
107
  this.showWithDelay();
89
108
  }
90
109
  onMouseLeave() {
91
- this.hide();
110
+ if (!this.isPromo) {
111
+ this.hide();
112
+ }
92
113
  }
93
114
  onWindowResize() {
94
115
  if (!this.active) {
@@ -107,13 +128,18 @@ const SwirlTooltip = /*@__PURE__*/ proxyCustomElement(class SwirlTooltip extends
107
128
  }
108
129
  componentDidLoad() {
109
130
  this.updateOptions();
131
+ if (this.isPromo) {
132
+ this.show();
133
+ this.isPromoShown = true;
134
+ }
110
135
  }
111
136
  render() {
112
137
  const className = classNames("tooltip", `tooltip--actual-placement-${this.actualPosition?.placement}`, {
113
138
  "tooltip--active": this.active,
114
139
  "tooltip--visible": this.visible,
140
+ "tooltip--promo": this.isPromo,
115
141
  });
116
- return (h(Host, { key: '7d75b9d6c223d29e88edff512c881d5c7689e287', onKeydown: this.onKeydown }, h("span", { key: '3abb23525fee5aa69bf2bf67ea1d7f72601b5328', class: className }, h("span", { key: 'b79893b8952d4258edea494bc008a7b416a179af', class: "tooltip__reference", "aria-describedby": "tooltip", onFocusout: this.hide, onClick: this.hide, onFocusin: this.show }, h("slot", { key: '710c29070174874d6a6be6a08ed5a5dd97bb1230' })), h("span", { key: '4003d8b277fc55de2460ec8c63f51535f9f64760', class: "tooltip__popper", ref: (el) => (this.popperEl = el), style: {
142
+ return (h(Host, { key: '0fa9404559103428ce19831a0b45a5330d00c9fa', onKeydown: this.onKeydown }, h("span", { key: '3602318c40723c65c318cef0254dab0161439cc6', class: className }, h("span", { key: 'a9aaf081590bcf01ad2c82c99b8ea10bc9b8f8a5', class: "tooltip__reference", "aria-describedby": "tooltip", onFocusout: !this.isPromo && this.hide, onClick: this.hide, onFocusin: this.show }, h("slot", { key: '73ad565e8b91925bba6fcb490b542d74890926c1' })), h("span", { key: 'bd84b556b64f4d24f2064d00556070af818524f5', class: "tooltip__popper", ref: (el) => (this.popperEl = el), style: {
117
143
  top: Boolean(this.actualPosition)
118
144
  ? `${this.actualPosition?.y}px`
119
145
  : "",
@@ -121,7 +147,7 @@ const SwirlTooltip = /*@__PURE__*/ proxyCustomElement(class SwirlTooltip extends
121
147
  ? `${this.actualPosition?.x}px`
122
148
  : "",
123
149
  position: this.positioning,
124
- } }, this.visible && (h("span", { key: '82c207a7951483894494abf1d7e46a1a997f1ff8', class: "tooltip__bubble", id: "tooltip", part: "tooltip__bubble", role: "tooltip" }, h("span", { key: '178678dc65ebe2d4232437b7f12564444c687510', class: "tooltip__content", innerHTML: this.content }))), h("span", { key: '0f97538a405da7b5fdf1b39cee2a7a4db82ece2f', class: "tooltip__arrow", ref: (el) => (this.arrowElement = el), style: {
150
+ } }, this.visible && (h("span", { key: '41fb5ef06491bfaf355d3fd5a98e00a92cd75a92', class: "tooltip__bubble", id: "tooltip", part: "tooltip__bubble", role: "tooltip" }, h("span", { key: 'a6a22b0bc86e87f2c7728fc3888ef109a8b9be8c', class: "tooltip__content", innerHTML: this.content }))), h("span", { key: 'b036d30ba31fbf5b4c8519b229aed70f20509874', class: "tooltip__arrow", ref: (el) => (this.arrowElement = el), style: {
125
151
  ...this.arrowStyles,
126
152
  visibility: this.visible ? "visible" : "hidden",
127
153
  } })))));
@@ -137,9 +163,11 @@ const SwirlTooltip = /*@__PURE__*/ proxyCustomElement(class SwirlTooltip extends
137
163
  "delay": [2],
138
164
  "position": [1],
139
165
  "positioning": [1],
166
+ "isPromo": [4, "is-promo"],
140
167
  "actualPosition": [32],
141
168
  "arrowStyles": [32],
142
- "visible": [32]
169
+ "visible": [32],
170
+ "isPromoShown": [32]
143
171
  }, [[1, "mouseenter", "onMouseEnter"], [1, "mouseleave", "onMouseLeave"], [9, "resize", "onWindowResize"], [9, "scroll", "onWindowScroll"]], {
144
172
  "position": ["watchPosition"]
145
173
  }]);
@@ -182,5 +182,10 @@ function isDocumentMimeType(mimeType) {
182
182
  mimeType.startsWith("application/vnd.openxmlformats-officedocument.wordprocessingml.document") ||
183
183
  mimeType.startsWith("application/vnd.apple.pages"));
184
184
  }
185
+ function getPixelsFromRemToken(token) {
186
+ return (+getComputedStyle(document.documentElement)
187
+ .getPropertyValue(token)
188
+ .replace("rem", "") * 16);
189
+ }
185
190
 
186
- export { isSupportedImageMimeType as a, isVideoMimeType as b, isAudioMimeType as c, debounce as d, isPdfMimeType as e, isCompressedArchiveMimeType as f, getISODateString as g, isDocumentMimeType as h, isMobileViewport as i, isDescendantOf as j, getActiveElement as k, closestPassShadow as l, parentsPassShadow as m, isDesktopViewport as n, getCircularArrayIndex as o, prefersReducedMotion as p, querySelectorAllDeep as q, removeTimezoneOffset as r, getVisibleHeight as s, getDesktopMediaQuery as t };
191
+ export { isSupportedImageMimeType as a, isVideoMimeType as b, isAudioMimeType as c, debounce as d, isPdfMimeType as e, isCompressedArchiveMimeType as f, getISODateString as g, isDocumentMimeType as h, isMobileViewport as i, isDescendantOf as j, getActiveElement as k, closestPassShadow as l, parentsPassShadow as m, isDesktopViewport as n, getCircularArrayIndex as o, prefersReducedMotion as p, querySelectorAllDeep as q, removeTimezoneOffset as r, getVisibleHeight as s, getPixelsFromRemToken as t, getDesktopMediaQuery as u };