@anoki/fse-ui 1.0.0-beta1.39.7 → 1.0.0-beta1.39.8

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 (246) hide show
  1. package/dist/index.cjs106.js.map +1 -1
  2. package/dist/index.cjs134.js +1 -1
  3. package/dist/index.cjs134.js.map +1 -1
  4. package/dist/index.cjs285.js +1 -1
  5. package/dist/index.cjs290.js +1 -1
  6. package/dist/index.cjs298.js +1 -1
  7. package/dist/index.cjs315.js +1 -1
  8. package/dist/index.cjs32.js +1 -1
  9. package/dist/index.cjs322.js +1 -1
  10. package/dist/index.cjs327.js +1 -1
  11. package/dist/index.cjs33.js +1 -1
  12. package/dist/index.cjs338.js +1 -1
  13. package/dist/index.cjs346.js +1 -1
  14. package/dist/index.cjs387.js +1 -1
  15. package/dist/index.cjs393.js +1 -1
  16. package/dist/index.cjs427.js +1 -1
  17. package/dist/index.cjs436.js +1 -1
  18. package/dist/index.cjs441.js +1 -1
  19. package/dist/index.cjs457.js +1 -1
  20. package/dist/index.cjs457.js.map +1 -1
  21. package/dist/index.cjs460.js +1 -1
  22. package/dist/index.cjs460.js.map +1 -1
  23. package/dist/index.cjs461.js +1 -1
  24. package/dist/index.cjs461.js.map +1 -1
  25. package/dist/index.cjs462.js +1 -1
  26. package/dist/index.cjs462.js.map +1 -1
  27. package/dist/index.cjs463.js +1 -1
  28. package/dist/index.cjs463.js.map +1 -1
  29. package/dist/index.cjs464.js +1 -1
  30. package/dist/index.cjs464.js.map +1 -1
  31. package/dist/index.cjs465.js +2 -0
  32. package/dist/index.cjs465.js.map +1 -0
  33. package/dist/index.cjs466.js +2 -0
  34. package/dist/index.cjs466.js.map +1 -0
  35. package/dist/index.cjs468.js +1 -1
  36. package/dist/index.cjs469.js +1 -1
  37. package/dist/index.cjs472.js +1 -1
  38. package/dist/index.cjs473.js +1 -1
  39. package/dist/index.cjs474.js +1 -1
  40. package/dist/index.cjs478.js +1 -1
  41. package/dist/{index.cjs491.js → index.cjs501.js} +1 -1
  42. package/dist/{index.cjs491.js.map → index.cjs501.js.map} +1 -1
  43. package/dist/{index.cjs492.js → index.cjs502.js} +2 -2
  44. package/dist/{index.cjs492.js.map → index.cjs502.js.map} +1 -1
  45. package/dist/{index.cjs493.js → index.cjs503.js} +1 -1
  46. package/dist/{index.cjs493.js.map → index.cjs503.js.map} +1 -1
  47. package/dist/{index.cjs494.js → index.cjs504.js} +2 -2
  48. package/dist/{index.cjs494.js.map → index.cjs504.js.map} +1 -1
  49. package/dist/{index.cjs495.js → index.cjs505.js} +2 -2
  50. package/dist/{index.cjs495.js.map → index.cjs505.js.map} +1 -1
  51. package/dist/index.cjs506.js +1 -1
  52. package/dist/index.cjs506.js.map +1 -1
  53. package/dist/index.cjs507.js +2 -0
  54. package/dist/index.cjs507.js.map +1 -0
  55. package/dist/index.cjs509.js +1 -1
  56. package/dist/index.cjs515.js +1 -1
  57. package/dist/index.cjs516.js +1 -1
  58. package/dist/index.cjs517.js +1 -1
  59. package/dist/index.cjs520.js +1 -1
  60. package/dist/index.cjs529.js +1 -1
  61. package/dist/index.cjs530.js +1 -1
  62. package/dist/index.cjs531.js +1 -1
  63. package/dist/index.cjs534.js +1 -1
  64. package/dist/index.cjs537.js +1 -1
  65. package/dist/index.cjs542.js +1 -1
  66. package/dist/index.cjs544.js +1 -1
  67. package/dist/index.cjs548.js +1 -38
  68. package/dist/index.cjs548.js.map +1 -1
  69. package/dist/index.cjs549.js +38 -1
  70. package/dist/index.cjs549.js.map +1 -1
  71. package/dist/index.cjs550.js +1 -1
  72. package/dist/index.cjs550.js.map +1 -1
  73. package/dist/index.cjs551.js +1 -1
  74. package/dist/index.cjs551.js.map +1 -1
  75. package/dist/index.cjs552.js +1 -1
  76. package/dist/index.cjs552.js.map +1 -1
  77. package/dist/index.cjs555.js +1 -1
  78. package/dist/index.cjs559.js +1 -1
  79. package/dist/index.cjs559.js.map +1 -1
  80. package/dist/index.cjs560.js +1 -1
  81. package/dist/index.cjs560.js.map +1 -1
  82. package/dist/index.cjs567.js +1 -1
  83. package/dist/index.cjs567.js.map +1 -1
  84. package/dist/index.cjs568.js +1 -1
  85. package/dist/index.cjs568.js.map +1 -1
  86. package/dist/index.cjs570.js +1 -1
  87. package/dist/index.cjs570.js.map +1 -1
  88. package/dist/{index.cjs564.js → index.cjs571.js} +1 -1
  89. package/dist/{index.cjs564.js.map → index.cjs571.js.map} +1 -1
  90. package/dist/{index.cjs565.js → index.cjs572.js} +1 -1
  91. package/dist/{index.cjs565.js.map → index.cjs572.js.map} +1 -1
  92. package/dist/{index.cjs566.js → index.cjs573.js} +1 -1
  93. package/dist/{index.cjs566.js.map → index.cjs573.js.map} +1 -1
  94. package/dist/index.cjs574.js +2 -0
  95. package/dist/index.cjs574.js.map +1 -0
  96. package/dist/index.cjs575.js +1 -1
  97. package/dist/index.cjs575.js.map +1 -1
  98. package/dist/index.cjs576.js +1 -1
  99. package/dist/index.cjs576.js.map +1 -1
  100. package/dist/{index.cjs569.js → index.cjs577.js} +1 -1
  101. package/dist/{index.cjs569.js.map → index.cjs577.js.map} +1 -1
  102. package/dist/index.cjs582.js +1 -1
  103. package/dist/index.cjs582.js.map +1 -1
  104. package/dist/index.cjs583.js +1 -1
  105. package/dist/index.cjs583.js.map +1 -1
  106. package/dist/{index.cjs580.js → index.cjs584.js} +1 -1
  107. package/dist/{index.cjs580.js.map → index.cjs584.js.map} +1 -1
  108. package/dist/{index.cjs581.js → index.cjs585.js} +2 -2
  109. package/dist/{index.cjs581.js.map → index.cjs585.js.map} +1 -1
  110. package/dist/index.cjs586.js +1 -1
  111. package/dist/index.cjs586.js.map +1 -1
  112. package/dist/index.cjs587.js +1 -1
  113. package/dist/index.cjs587.js.map +1 -1
  114. package/dist/index.d.ts +2 -2
  115. package/dist/index.es106.js.map +1 -1
  116. package/dist/index.es134.js +3 -3
  117. package/dist/index.es134.js.map +1 -1
  118. package/dist/index.es285.js +7 -7
  119. package/dist/index.es290.js +1 -1
  120. package/dist/index.es298.js +5 -5
  121. package/dist/index.es315.js +6 -6
  122. package/dist/index.es32.js +1 -1
  123. package/dist/index.es322.js +1 -1
  124. package/dist/index.es327.js +1 -1
  125. package/dist/index.es33.js +1 -1
  126. package/dist/index.es338.js +1 -1
  127. package/dist/index.es346.js +5 -5
  128. package/dist/index.es387.js +3 -3
  129. package/dist/index.es393.js +1 -1
  130. package/dist/index.es427.js +1 -1
  131. package/dist/index.es436.js +1 -1
  132. package/dist/index.es441.js +1 -1
  133. package/dist/index.es457.js +15 -7
  134. package/dist/index.es457.js.map +1 -1
  135. package/dist/index.es460.js +6 -29
  136. package/dist/index.es460.js.map +1 -1
  137. package/dist/index.es461.js +26 -32
  138. package/dist/index.es461.js.map +1 -1
  139. package/dist/index.es462.js +63 -617
  140. package/dist/index.es462.js.map +1 -1
  141. package/dist/index.es463.js +29 -10
  142. package/dist/index.es463.js.map +1 -1
  143. package/dist/index.es464.js +33 -15
  144. package/dist/index.es464.js.map +1 -1
  145. package/dist/index.es465.js +625 -0
  146. package/dist/index.es465.js.map +1 -0
  147. package/dist/index.es466.js +14 -0
  148. package/dist/index.es466.js.map +1 -0
  149. package/dist/index.es468.js +1 -1
  150. package/dist/index.es469.js +2 -2
  151. package/dist/index.es472.js +5 -5
  152. package/dist/index.es473.js +3 -3
  153. package/dist/index.es474.js +2 -2
  154. package/dist/index.es478.js +1 -1
  155. package/dist/{index.es491.js → index.es501.js} +1 -1
  156. package/dist/{index.es491.js.map → index.es501.js.map} +1 -1
  157. package/dist/{index.es492.js → index.es502.js} +3 -3
  158. package/dist/{index.es492.js.map → index.es502.js.map} +1 -1
  159. package/dist/{index.es493.js → index.es503.js} +1 -1
  160. package/dist/{index.es493.js.map → index.es503.js.map} +1 -1
  161. package/dist/{index.es494.js → index.es504.js} +6 -6
  162. package/dist/{index.es494.js.map → index.es504.js.map} +1 -1
  163. package/dist/{index.es495.js → index.es505.js} +10 -10
  164. package/dist/{index.es495.js.map → index.es505.js.map} +1 -1
  165. package/dist/index.es506.js +4 -12
  166. package/dist/index.es506.js.map +1 -1
  167. package/dist/index.es507.js +15 -0
  168. package/dist/index.es507.js.map +1 -0
  169. package/dist/index.es509.js +1 -1
  170. package/dist/index.es515.js +1 -1
  171. package/dist/index.es516.js +2 -2
  172. package/dist/index.es517.js +4 -4
  173. package/dist/index.es520.js +2 -2
  174. package/dist/index.es529.js +1 -1
  175. package/dist/index.es530.js +7 -7
  176. package/dist/index.es531.js +1 -1
  177. package/dist/index.es534.js +2 -2
  178. package/dist/index.es537.js +8 -8
  179. package/dist/index.es542.js +5 -5
  180. package/dist/index.es544.js +1 -1
  181. package/dist/index.es548.js +65 -69
  182. package/dist/index.es548.js.map +1 -1
  183. package/dist/index.es549.js +68 -8
  184. package/dist/index.es549.js.map +1 -1
  185. package/dist/index.es550.js +9 -14
  186. package/dist/index.es550.js.map +1 -1
  187. package/dist/index.es551.js +14 -62
  188. package/dist/index.es551.js.map +1 -1
  189. package/dist/index.es552.js +61 -64
  190. package/dist/index.es552.js.map +1 -1
  191. package/dist/index.es555.js +1 -1
  192. package/dist/index.es559.js +16 -6
  193. package/dist/index.es559.js.map +1 -1
  194. package/dist/index.es560.js +6 -16
  195. package/dist/index.es560.js.map +1 -1
  196. package/dist/index.es567.js +71 -20
  197. package/dist/index.es567.js.map +1 -1
  198. package/dist/index.es568.js +2 -3
  199. package/dist/index.es568.js.map +1 -1
  200. package/dist/index.es570.js +3 -4
  201. package/dist/index.es570.js.map +1 -1
  202. package/dist/{index.es564.js → index.es571.js} +1 -1
  203. package/dist/{index.es564.js.map → index.es571.js.map} +1 -1
  204. package/dist/{index.es565.js → index.es572.js} +1 -1
  205. package/dist/{index.es565.js.map → index.es572.js.map} +1 -1
  206. package/dist/{index.es566.js → index.es573.js} +1 -1
  207. package/dist/{index.es566.js.map → index.es573.js.map} +1 -1
  208. package/dist/index.es574.js +26 -0
  209. package/dist/index.es574.js.map +1 -0
  210. package/dist/index.es575.js +3 -73
  211. package/dist/index.es575.js.map +1 -1
  212. package/dist/index.es576.js +3 -2
  213. package/dist/index.es576.js.map +1 -1
  214. package/dist/{index.es569.js → index.es577.js} +1 -1
  215. package/dist/{index.es569.js.map → index.es577.js.map} +1 -1
  216. package/dist/index.es582.js +4 -27
  217. package/dist/index.es582.js.map +1 -1
  218. package/dist/index.es583.js +2 -7
  219. package/dist/index.es583.js.map +1 -1
  220. package/dist/{index.es580.js → index.es584.js} +1 -1
  221. package/dist/{index.es580.js.map → index.es584.js.map} +1 -1
  222. package/dist/{index.es581.js → index.es585.js} +2 -2
  223. package/dist/{index.es581.js.map → index.es585.js.map} +1 -1
  224. package/dist/index.es586.js +27 -4
  225. package/dist/index.es586.js.map +1 -1
  226. package/dist/index.es587.js +7 -2
  227. package/dist/index.es587.js.map +1 -1
  228. package/package.json +1 -1
  229. package/dist/index.cjs458.js +0 -2
  230. package/dist/index.cjs458.js.map +0 -1
  231. package/dist/index.cjs459.js +0 -2
  232. package/dist/index.cjs459.js.map +0 -1
  233. package/dist/index.cjs496.js +0 -2
  234. package/dist/index.cjs496.js.map +0 -1
  235. package/dist/index.cjs563.js +0 -2
  236. package/dist/index.cjs563.js.map +0 -1
  237. package/dist/index.es458.js +0 -30
  238. package/dist/index.es458.js.map +0 -1
  239. package/dist/index.es459.js +0 -71
  240. package/dist/index.es459.js.map +0 -1
  241. package/dist/index.es496.js +0 -7
  242. package/dist/index.es496.js.map +0 -1
  243. package/dist/index.es563.js +0 -6
  244. package/dist/index.es563.js.map +0 -1
  245. /package/dist/components/ui/{CardMapDoctorV2/CardMapDoctorV2.css → CardMapDoctor/CardMapDoctor.css} +0 -0
  246. /package/dist/components/ui/{ConsentModal/ConsentModalFooter/ConsentModalFooter.css → DoctorModal/DoctorModalFooter/DoctorModalFooter.css} +0 -0
@@ -0,0 +1,15 @@
1
+ import * as r from "react";
2
+ import { useCallbackRef as s } from "./index.es501.js";
3
+ function p(n, e = globalThis == null ? void 0 : globalThis.document) {
4
+ const t = s(n);
5
+ r.useEffect(() => {
6
+ const o = (a) => {
7
+ a.key === "Escape" && t(a);
8
+ };
9
+ return e.addEventListener("keydown", o, { capture: !0 }), () => e.removeEventListener("keydown", o, { capture: !0 });
10
+ }, [t, e]);
11
+ }
12
+ export {
13
+ p as useEscapeKeydown
14
+ };
15
+ //# sourceMappingURL=index.es507.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es507.js","sources":["../node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs"],"sourcesContent":["// packages/react/use-escape-keydown/src/use-escape-keydown.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {\n const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);\n React.useEffect(() => {\n const handleKeyDown = (event) => {\n if (event.key === \"Escape\") {\n onEscapeKeyDown(event);\n }\n };\n ownerDocument.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => ownerDocument.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n }, [onEscapeKeyDown, ownerDocument]);\n}\nexport {\n useEscapeKeydown\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useEscapeKeydown","onEscapeKeyDownProp","ownerDocument","onEscapeKeyDown","useCallbackRef","React","handleKeyDown","event"],"mappings":";;AAGA,SAASA,EAAiBC,GAAqBC,IAAgB,yCAAY,UAAU;AACnF,QAAMC,IAAkBC,EAAeH,CAAmB;AAC1D,EAAAI,EAAM,UAAU,MAAM;AACpB,UAAMC,IAAgB,CAACC,MAAU;AAC/B,MAAIA,EAAM,QAAQ,YAChBJ,EAAgBI,CAAK;AAAA,IAExB;AACD,WAAAL,EAAc,iBAAiB,WAAWI,GAAe,EAAE,SAAS,IAAM,GACnE,MAAMJ,EAAc,oBAAoB,WAAWI,GAAe,EAAE,SAAS,IAAM;AAAA,EAC9F,GAAK,CAACH,GAAiBD,CAAa,CAAC;AACrC;","x_google_ignoreList":[0]}
@@ -1,5 +1,5 @@
1
1
  import * as n from "react";
2
- import { Primitive as p } from "./index.es461.js";
2
+ import { Primitive as p } from "./index.es464.js";
3
3
  import { j as o } from "./index.es237.js";
4
4
  var v = "Arrow", e = n.forwardRef((r, i) => {
5
5
  const { children: t, width: s = 10, height: a = 5, ...m } = r;
@@ -1,4 +1,4 @@
1
- import { createSidecarMedium as e } from "./index.es552.js";
1
+ import { createSidecarMedium as e } from "./index.es548.js";
2
2
  var a = e();
3
3
  export {
4
4
  a as effectCar
@@ -1,6 +1,6 @@
1
1
  import * as f from "react";
2
- import { assignRef as o } from "./index.es566.js";
3
- import { useCallbackRef as l } from "./index.es567.js";
2
+ import { assignRef as o } from "./index.es573.js";
3
+ import { useCallbackRef as l } from "./index.es574.js";
4
4
  var s = typeof window < "u" ? f.useLayoutEffect : f.useEffect, c = /* @__PURE__ */ new WeakMap();
5
5
  function v(e, m) {
6
6
  var t = l(null, function(n) {
@@ -1,9 +1,9 @@
1
1
  import { __spreadArray as x } from "./index.es511.js";
2
2
  import * as n from "react";
3
- import { RemoveScrollBar as A } from "./index.es548.js";
4
- import { styleSingleton as I } from "./index.es549.js";
5
- import { nonPassive as s } from "./index.es550.js";
6
- import { locationCouldBeScrolled as T, handleScroll as W } from "./index.es551.js";
3
+ import { RemoveScrollBar as A } from "./index.es549.js";
4
+ import { styleSingleton as I } from "./index.es550.js";
5
+ import { nonPassive as s } from "./index.es551.js";
6
+ import { locationCouldBeScrolled as T, handleScroll as W } from "./index.es552.js";
7
7
  var b = function(t) {
8
8
  return "changedTouches" in t ? [t.changedTouches[0].clientX, t.changedTouches[0].clientY] : [0, 0];
9
9
  }, Y = function(t) {
@@ -1,11 +1,11 @@
1
1
  import * as e from "react";
2
2
  import u from "./index.es519.js";
3
- import { baseButtonPropDefs as s } from "./index.es559.js";
3
+ import { baseButtonPropDefs as s } from "./index.es560.js";
4
4
  import { Flex as f } from "./index.es521.js";
5
5
  import { Spinner as B } from "./index.es538.js";
6
6
  import { VisuallyHidden as b } from "./index.es543.js";
7
7
  import { extractProps as y } from "./index.es522.js";
8
- import { mapResponsiveProp as E, mapButtonSizeToSpinnerSize as g } from "./index.es560.js";
8
+ import { mapResponsiveProp as E, mapButtonSizeToSpinnerSize as g } from "./index.es559.js";
9
9
  import { marginPropDefs as h } from "./index.es524.js";
10
10
  import { Root as z } from "./index.es478.js";
11
11
  const S = e.forwardRef((t, o) => {
@@ -3,7 +3,7 @@ import G from "./index.es519.js";
3
3
  import { getMatchingGrayColor as N } from "./index.es540.js";
4
4
  import { themePropDefs as o } from "./index.es541.js";
5
5
  import { Provider as b } from "./index.es542.js";
6
- import { Provider as w } from "./index.es493.js";
6
+ import { Provider as w } from "./index.es503.js";
7
7
  import { Root as D } from "./index.es478.js";
8
8
  const g = () => {
9
9
  }, P = a.createContext(void 0), I = a.forwardRef((n, c) => a.useContext(P) === void 0 ? a.createElement(b, { delayDuration: 200 }, a.createElement(w, { dir: "ltr" }, a.createElement(A, { ...n, ref: c }))) : a.createElement(x, { ...n, ref: c }));
@@ -1,17 +1,17 @@
1
1
  import * as i from "react";
2
- import { composeEventHandlers as P } from "./index.es457.js";
3
- import { useComposedRefs as A } from "./index.es458.js";
4
- import { createContextScope as G } from "./index.es459.js";
2
+ import { composeEventHandlers as P } from "./index.es460.js";
3
+ import { useComposedRefs as A } from "./index.es461.js";
4
+ import { createContextScope as G } from "./index.es462.js";
5
5
  import { DismissableLayer as H } from "./index.es472.js";
6
6
  import { useFocusGuards as K } from "./index.es475.js";
7
7
  import { FocusScope as $ } from "./index.es473.js";
8
- import { useId as U } from "./index.es463.js";
9
- import { createPopperScope as O, Root as V, Anchor as _, Content as W, Arrow as Z } from "./index.es494.js";
8
+ import { useId as U } from "./index.es466.js";
9
+ import { createPopperScope as O, Root as V, Anchor as _, Content as W, Arrow as Z } from "./index.es504.js";
10
10
  import { Portal as q } from "./index.es474.js";
11
11
  import { Presence as E } from "./index.es469.js";
12
- import { Primitive as w } from "./index.es461.js";
12
+ import { Primitive as w } from "./index.es464.js";
13
13
  import { createSlot as z } from "./index.es478.js";
14
- import { useControllableState as B } from "./index.es460.js";
14
+ import { useControllableState as B } from "./index.es463.js";
15
15
  import { hideOthers as J } from "./index.es477.js";
16
16
  import Q from "./index.es476.js";
17
17
  import { j as p } from "./index.es237.js";
@@ -1,5 +1,5 @@
1
1
  import { asChildPropDef as r } from "./index.es561.js";
2
- import { radiusPropDef as o } from "./index.es563.js";
2
+ import { radiusPropDef as o } from "./index.es570.js";
3
3
  const s = ["1", "2", "3"], l = { ...r, size: { values: s, default: "1" }, ...o, scrollbars: { default: "both" } };
4
4
  export {
5
5
  l as scrollAreaPropDefs
@@ -1,5 +1,5 @@
1
- import { breakpoints as l } from "./index.es564.js";
2
- import { hasOwnProperty as p } from "./index.es565.js";
1
+ import { breakpoints as l } from "./index.es571.js";
2
+ import { hasOwnProperty as p } from "./index.es572.js";
3
3
  import { isResponsiveObject as m } from "./index.es555.js";
4
4
  function V({ className: n, customProperties: i, ...t }) {
5
5
  const u = v({ allowArbitraryValues: !0, className: n, ...t }), s = d({ customProperties: i, ...t });
@@ -1,13 +1,13 @@
1
1
  import * as c from "react";
2
- import { Primitive as L } from "./index.es461.js";
2
+ import { Primitive as L } from "./index.es464.js";
3
3
  import { Presence as O } from "./index.es469.js";
4
- import { createContextScope as le } from "./index.es459.js";
5
- import { useComposedRefs as T } from "./index.es458.js";
6
- import { useCallbackRef as x } from "./index.es491.js";
7
- import { useDirection as ce } from "./index.es493.js";
8
- import { useLayoutEffect as se } from "./index.es496.js";
9
- import { clamp as ie } from "./index.es570.js";
10
- import { composeEventHandlers as C } from "./index.es457.js";
4
+ import { createContextScope as le } from "./index.es462.js";
5
+ import { useComposedRefs as T } from "./index.es461.js";
6
+ import { useCallbackRef as x } from "./index.es501.js";
7
+ import { useDirection as ce } from "./index.es503.js";
8
+ import { useLayoutEffect as se } from "./index.es506.js";
9
+ import { clamp as ie } from "./index.es575.js";
10
+ import { composeEventHandlers as C } from "./index.es460.js";
11
11
  import { j as b } from "./index.es237.js";
12
12
  function ae(e, t) {
13
13
  return c.useReducer((r, l) => t[r][l] ?? r, e);
@@ -1,11 +1,11 @@
1
1
  import * as a from "react";
2
- import { composeEventHandlers as y } from "./index.es457.js";
3
- import { useComposedRefs as A } from "./index.es458.js";
4
- import { createContextScope as G } from "./index.es459.js";
2
+ import { composeEventHandlers as y } from "./index.es460.js";
3
+ import { useComposedRefs as A } from "./index.es461.js";
4
+ import { createContextScope as G } from "./index.es462.js";
5
5
  import { DismissableLayer as F } from "./index.es472.js";
6
- import { createPopperScope as j, Anchor as B, Content as U, Arrow as V } from "./index.es494.js";
6
+ import { createPopperScope as j, Anchor as B, Content as U, Arrow as V } from "./index.es504.js";
7
7
  import { Presence as Y } from "./index.es469.js";
8
- import { Primitive as q } from "./index.es461.js";
8
+ import { Primitive as q } from "./index.es464.js";
9
9
  import { createSlottable as X } from "./index.es478.js";
10
10
  import { Root as K } from "./index.es544.js";
11
11
  import { j as d } from "./index.es237.js";
@@ -1,5 +1,5 @@
1
1
  import * as a from "react";
2
- import { Primitive as o } from "./index.es461.js";
2
+ import { Primitive as o } from "./index.es464.js";
3
3
  import { j as t } from "./index.es237.js";
4
4
  var d = "VisuallyHidden", i = a.forwardRef(
5
5
  (r, e) => /* @__PURE__ */ t.jsx(
@@ -1,72 +1,68 @@
1
- import * as d from "react";
2
- import { styleSingleton as f } from "./index.es549.js";
3
- import { noScrollbarsClassName as p, zeroRightClassName as g, fullWidthClassName as l, removedBarSizeVariable as v } from "./index.es514.js";
4
- import { getGapWidth as m } from "./index.es580.js";
5
- var b = f(), e = "data-scroll-locked", h = function(n, a, o, t) {
6
- var r = n.left, i = n.top, s = n.right, c = n.gap;
7
- return o === void 0 && (o = "margin"), `
8
- .`.concat(p, ` {
9
- overflow: hidden `).concat(t, `;
10
- padding-right: `).concat(c, "px ").concat(t, `;
11
- }
12
- body[`).concat(e, `] {
13
- overflow: hidden `).concat(t, `;
14
- overscroll-behavior: contain;
15
- `).concat([
16
- a && "position: relative ".concat(t, ";"),
17
- o === "margin" && `
18
- padding-left: `.concat(r, `px;
19
- padding-top: `).concat(i, `px;
20
- padding-right: `).concat(s, `px;
21
- margin-left:0;
22
- margin-top:0;
23
- margin-right: `).concat(c, "px ").concat(t, `;
24
- `),
25
- o === "padding" && "padding-right: ".concat(c, "px ").concat(t, ";")
26
- ].filter(Boolean).join(""), `
27
- }
28
-
29
- .`).concat(g, ` {
30
- right: `).concat(c, "px ").concat(t, `;
31
- }
32
-
33
- .`).concat(l, ` {
34
- margin-right: `).concat(c, "px ").concat(t, `;
35
- }
36
-
37
- .`).concat(g, " .").concat(g, ` {
38
- right: 0 `).concat(t, `;
39
- }
40
-
41
- .`).concat(l, " .").concat(l, ` {
42
- margin-right: 0 `).concat(t, `;
43
- }
44
-
45
- body[`).concat(e, `] {
46
- `).concat(v, ": ").concat(c, `px;
47
- }
48
- `);
49
- }, u = function() {
50
- var n = parseInt(document.body.getAttribute(e) || "0", 10);
51
- return isFinite(n) ? n : 0;
52
- }, x = function() {
53
- d.useEffect(function() {
54
- return document.body.setAttribute(e, (u() + 1).toString()), function() {
55
- var n = u() - 1;
56
- n <= 0 ? document.body.removeAttribute(e) : document.body.setAttribute(e, n.toString());
57
- };
58
- }, []);
59
- }, C = function(n) {
60
- var a = n.noRelative, o = n.noImportant, t = n.gapMode, r = t === void 0 ? "margin" : t;
61
- x();
62
- var i = d.useMemo(function() {
63
- return m(r);
64
- }, [r]);
65
- return d.createElement(b, { styles: h(i, !a, r, o ? "" : "!important") });
66
- };
1
+ import { __assign as d } from "./index.es511.js";
2
+ function l(r) {
3
+ return r;
4
+ }
5
+ function h(r, t) {
6
+ t === void 0 && (t = l);
7
+ var e = [], o = !1, c = {
8
+ read: function() {
9
+ if (o)
10
+ throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
11
+ return e.length ? e[e.length - 1] : r;
12
+ },
13
+ useMedium: function(u) {
14
+ var n = t(u, o);
15
+ return e.push(n), function() {
16
+ e = e.filter(function(i) {
17
+ return i !== n;
18
+ });
19
+ };
20
+ },
21
+ assignSyncMedium: function(u) {
22
+ for (o = !0; e.length; ) {
23
+ var n = e;
24
+ e = [], n.forEach(u);
25
+ }
26
+ e = {
27
+ push: function(i) {
28
+ return u(i);
29
+ },
30
+ filter: function() {
31
+ return e;
32
+ }
33
+ };
34
+ },
35
+ assignMedium: function(u) {
36
+ o = !0;
37
+ var n = [];
38
+ if (e.length) {
39
+ var i = e;
40
+ e = [], i.forEach(u), n = e;
41
+ }
42
+ var s = function() {
43
+ var f = n;
44
+ n = [], f.forEach(u);
45
+ }, a = function() {
46
+ return Promise.resolve().then(s);
47
+ };
48
+ a(), e = {
49
+ push: function(f) {
50
+ n.push(f), a();
51
+ },
52
+ filter: function(f) {
53
+ return n = n.filter(f), e;
54
+ }
55
+ };
56
+ }
57
+ };
58
+ return c;
59
+ }
60
+ function v(r) {
61
+ r === void 0 && (r = {});
62
+ var t = h(null);
63
+ return t.options = d({ async: !0, ssr: !1 }, r), t;
64
+ }
67
65
  export {
68
- C as RemoveScrollBar,
69
- e as lockAttribute,
70
- x as useLockAttribute
66
+ v as createSidecarMedium
71
67
  };
72
68
  //# sourceMappingURL=index.es548.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es548.js","sources":["../node_modules/react-remove-scroll-bar/dist/es2015/component.js"],"sourcesContent":["import * as React from 'react';\nimport { styleSingleton } from 'react-style-singleton';\nimport { fullWidthClassName, zeroRightClassName, noScrollbarsClassName, removedBarSizeVariable } from './constants';\nimport { getGapWidth } from './utils';\nvar Style = styleSingleton();\nexport var lockAttribute = 'data-scroll-locked';\n// important tip - once we measure scrollBar width and remove them\n// we could not repeat this operation\n// thus we are using style-singleton - only the first \"yet correct\" style will be applied.\nvar getStyles = function (_a, allowRelative, gapMode, important) {\n var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;\n if (gapMode === void 0) { gapMode = 'margin'; }\n return \"\\n .\".concat(noScrollbarsClassName, \" {\\n overflow: hidden \").concat(important, \";\\n padding-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n body[\").concat(lockAttribute, \"] {\\n overflow: hidden \").concat(important, \";\\n overscroll-behavior: contain;\\n \").concat([\n allowRelative && \"position: relative \".concat(important, \";\"),\n gapMode === 'margin' &&\n \"\\n padding-left: \".concat(left, \"px;\\n padding-top: \").concat(top, \"px;\\n padding-right: \").concat(right, \"px;\\n margin-left:0;\\n margin-top:0;\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n \"),\n gapMode === 'padding' && \"padding-right: \".concat(gap, \"px \").concat(important, \";\"),\n ]\n .filter(Boolean)\n .join(''), \"\\n }\\n \\n .\").concat(zeroRightClassName, \" {\\n right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" {\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(zeroRightClassName, \" .\").concat(zeroRightClassName, \" {\\n right: 0 \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" .\").concat(fullWidthClassName, \" {\\n margin-right: 0 \").concat(important, \";\\n }\\n \\n body[\").concat(lockAttribute, \"] {\\n \").concat(removedBarSizeVariable, \": \").concat(gap, \"px;\\n }\\n\");\n};\nvar getCurrentUseCounter = function () {\n var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);\n return isFinite(counter) ? counter : 0;\n};\nexport var useLockAttribute = function () {\n React.useEffect(function () {\n document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());\n return function () {\n var newCounter = getCurrentUseCounter() - 1;\n if (newCounter <= 0) {\n document.body.removeAttribute(lockAttribute);\n }\n else {\n document.body.setAttribute(lockAttribute, newCounter.toString());\n }\n };\n }, []);\n};\n/**\n * Removes page scrollbar and blocks page scroll when mounted\n */\nexport var RemoveScrollBar = function (_a) {\n var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;\n useLockAttribute();\n /*\n gap will be measured on every component mount\n however it will be used only by the \"first\" invocation\n due to singleton nature of <Style\n */\n var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);\n return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });\n};\n"],"names":["Style","styleSingleton","lockAttribute","getStyles","_a","allowRelative","gapMode","important","left","top","right","gap","noScrollbarsClassName","zeroRightClassName","fullWidthClassName","removedBarSizeVariable","getCurrentUseCounter","counter","useLockAttribute","React","newCounter","RemoveScrollBar","noRelative","noImportant","_b","getGapWidth"],"mappings":";;;;AAIA,IAAIA,IAAQC,EAAgB,GACjBC,IAAgB,sBAIvBC,IAAY,SAAUC,GAAIC,GAAeC,GAASC,GAAW;AAC7D,MAAIC,IAAOJ,EAAG,MAAMK,IAAML,EAAG,KAAKM,IAAQN,EAAG,OAAOO,IAAMP,EAAG;AAC7D,SAAIE,MAAY,WAAUA,IAAU,WAC7B;AAAA,KAAQ,OAAOM,GAAuB;AAAA,qBAA0B,EAAE,OAAOL,GAAW;AAAA,mBAAuB,EAAE,OAAOI,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA;AAAA,QAAiB,EAAE,OAAOL,GAAe;AAAA,sBAA4B,EAAE,OAAOK,GAAW;AAAA;AAAA,KAA4C,EAAE,OAAO;AAAA,IACnSF,KAAiB,sBAAsB,OAAOE,GAAW,GAAG;AAAA,IAC5DD,MAAY,YACR;AAAA,oBAAuB,OAAOE,GAAM;AAAA,kBAAwB,EAAE,OAAOC,GAAK;AAAA,oBAA0B,EAAE,OAAOC,GAAO;AAAA;AAAA;AAAA,mBAAgE,EAAE,OAAOC,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA,KAAS;AAAA,IACxOD,MAAY,aAAa,kBAAkB,OAAOK,GAAK,KAAK,EAAE,OAAOJ,GAAW,GAAG;AAAA,EAC3F,EACS,OAAO,OAAO,EACd,KAAK,EAAE,GAAG;AAAA;AAAA;AAAA,IAAgB,EAAE,OAAOM,GAAoB;AAAA,YAAiB,EAAE,OAAOF,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA;AAAA;AAAA,IAAiB,EAAE,OAAOO,GAAoB;AAAA,mBAAwB,EAAE,OAAOH,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA;AAAA;AAAA,IAAiB,EAAE,OAAOM,GAAoB,IAAI,EAAE,OAAOA,GAAoB;AAAA,cAAmB,EAAE,OAAON,GAAW;AAAA;AAAA;AAAA,IAAiB,EAAE,OAAOO,GAAoB,IAAI,EAAE,OAAOA,GAAoB;AAAA,qBAA0B,EAAE,OAAOP,GAAW;AAAA;AAAA;AAAA,QAAqB,EAAE,OAAOL,GAAe;AAAA,KAAW,EAAE,OAAOa,GAAwB,IAAI,EAAE,OAAOJ,GAAK;AAAA;AAAA,CAAY;AAC/kB,GACIK,IAAuB,WAAY;AACnC,MAAIC,IAAU,SAAS,SAAS,KAAK,aAAaf,CAAa,KAAK,KAAK,EAAE;AAC3E,SAAO,SAASe,CAAO,IAAIA,IAAU;AACzC,GACWC,IAAmB,WAAY;AACtC,EAAAC,EAAM,UAAU,WAAY;AACxB,oBAAS,KAAK,aAAajB,IAAgBc,MAAyB,GAAG,UAAU,GAC1E,WAAY;AACf,UAAII,IAAaJ,EAAoB,IAAK;AAC1C,MAAII,KAAc,IACd,SAAS,KAAK,gBAAgBlB,CAAa,IAG3C,SAAS,KAAK,aAAaA,GAAekB,EAAW,SAAQ,CAAE;AAAA,IAEtE;AAAA,EACJ,GAAE,EAAE;AACT,GAIWC,IAAkB,SAAUjB,GAAI;AACvC,MAAIkB,IAAalB,EAAG,YAAYmB,IAAcnB,EAAG,aAAaoB,IAAKpB,EAAG,SAASE,IAAUkB,MAAO,SAAS,WAAWA;AACpH,EAAAN,EAAkB;AAMlB,MAAIP,IAAMQ,EAAM,QAAQ,WAAY;AAAE,WAAOM,EAAYnB,CAAO;AAAA,EAAE,GAAI,CAACA,CAAO,CAAC;AAC/E,SAAOa,EAAM,cAAcnB,GAAO,EAAE,QAAQG,EAAUQ,GAAK,CAACW,GAAYhB,GAAUiB,IAA6B,KAAf,YAAiB,EAAC,CAAE;AACxH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es548.js","sources":["../node_modules/use-sidecar/dist/es2015/medium.js"],"sourcesContent":["import { __assign } from \"tslib\";\nfunction ItoI(a) {\n return a;\n}\nfunction innerCreateMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n var buffer = [];\n var assigned = false;\n var medium = {\n read: function () {\n if (assigned) {\n throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');\n }\n if (buffer.length) {\n return buffer[buffer.length - 1];\n }\n return defaults;\n },\n useMedium: function (data) {\n var item = middleware(data, assigned);\n buffer.push(item);\n return function () {\n buffer = buffer.filter(function (x) { return x !== item; });\n };\n },\n assignSyncMedium: function (cb) {\n assigned = true;\n while (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n }\n buffer = {\n push: function (x) { return cb(x); },\n filter: function () { return buffer; },\n };\n },\n assignMedium: function (cb) {\n assigned = true;\n var pendingQueue = [];\n if (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n pendingQueue = buffer;\n }\n var executeQueue = function () {\n var cbs = pendingQueue;\n pendingQueue = [];\n cbs.forEach(cb);\n };\n var cycle = function () { return Promise.resolve().then(executeQueue); };\n cycle();\n buffer = {\n push: function (x) {\n pendingQueue.push(x);\n cycle();\n },\n filter: function (filter) {\n pendingQueue = pendingQueue.filter(filter);\n return buffer;\n },\n };\n },\n };\n return medium;\n}\nexport function createMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n return innerCreateMedium(defaults, middleware);\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function createSidecarMedium(options) {\n if (options === void 0) { options = {}; }\n var medium = innerCreateMedium(null);\n medium.options = __assign({ async: true, ssr: false }, options);\n return medium;\n}\n"],"names":["ItoI","a","innerCreateMedium","defaults","middleware","buffer","assigned","medium","data","item","x","cb","cbs","pendingQueue","executeQueue","cycle","filter","createSidecarMedium","options","__assign"],"mappings":";AACA,SAASA,EAAKC,GAAG;AACb,SAAOA;AACX;AACA,SAASC,EAAkBC,GAAUC,GAAY;AAC7C,EAAIA,MAAe,WAAUA,IAAaJ;AAC1C,MAAIK,IAAS,CAAE,GACXC,IAAW,IACXC,IAAS;AAAA,IACT,MAAM,WAAY;AACd,UAAID;AACA,cAAM,IAAI,MAAM,kGAAkG;AAEtH,aAAID,EAAO,SACAA,EAAOA,EAAO,SAAS,CAAC,IAE5BF;AAAA,IACV;AAAA,IACD,WAAW,SAAUK,GAAM;AACvB,UAAIC,IAAOL,EAAWI,GAAMF,CAAQ;AACpC,aAAAD,EAAO,KAAKI,CAAI,GACT,WAAY;AACf,QAAAJ,IAASA,EAAO,OAAO,SAAUK,GAAG;AAAE,iBAAOA,MAAMD;AAAA,SAAO;AAAA,MAC7D;AAAA,IACJ;AAAA,IACD,kBAAkB,SAAUE,GAAI;AAE5B,WADAL,IAAW,IACJD,EAAO,UAAQ;AAClB,YAAIO,IAAMP;AACV,QAAAA,IAAS,CAAE,GACXO,EAAI,QAAQD,CAAE;AAAA,MAC9B;AACY,MAAAN,IAAS;AAAA,QACL,MAAM,SAAUK,GAAG;AAAE,iBAAOC,EAAGD,CAAC;AAAA,QAAI;AAAA,QACpC,QAAQ,WAAY;AAAE,iBAAOL;AAAA,QAAS;AAAA,MACzC;AAAA,IACJ;AAAA,IACD,cAAc,SAAUM,GAAI;AACxB,MAAAL,IAAW;AACX,UAAIO,IAAe,CAAE;AACrB,UAAIR,EAAO,QAAQ;AACf,YAAIO,IAAMP;AACV,QAAAA,IAAS,CAAE,GACXO,EAAI,QAAQD,CAAE,GACdE,IAAeR;AAAA,MAC/B;AACY,UAAIS,IAAe,WAAY;AAC3B,YAAIF,IAAMC;AACV,QAAAA,IAAe,CAAE,GACjBD,EAAI,QAAQD,CAAE;AAAA,MACjB,GACGI,IAAQ,WAAY;AAAE,eAAO,QAAQ,QAAO,EAAG,KAAKD,CAAY;AAAA,MAAI;AACxE,MAAAC,EAAO,GACPV,IAAS;AAAA,QACL,MAAM,SAAUK,GAAG;AACf,UAAAG,EAAa,KAAKH,CAAC,GACnBK,EAAO;AAAA,QACV;AAAA,QACD,QAAQ,SAAUC,GAAQ;AACtB,iBAAAH,IAAeA,EAAa,OAAOG,CAAM,GAClCX;AAAA,QACV;AAAA,MACJ;AAAA,IACJ;AAAA,EACJ;AACD,SAAOE;AACX;AAMO,SAASU,EAAoBC,GAAS;AACzC,EAAIA,MAAY,WAAUA,IAAU,CAAA;AACpC,MAAIX,IAASL,EAAkB,IAAI;AACnC,SAAAK,EAAO,UAAUY,EAAS,EAAE,OAAO,IAAM,KAAK,GAAO,GAAED,CAAO,GACvDX;AACX;","x_google_ignoreList":[0]}
@@ -1,12 +1,72 @@
1
- import { styleHookSingleton as o } from "./index.es581.js";
2
- var s = function() {
3
- var e = o(), n = function(t) {
4
- var r = t.styles, l = t.dynamic;
5
- return e(r, l), null;
6
- };
7
- return n;
1
+ import * as d from "react";
2
+ import { styleSingleton as f } from "./index.es550.js";
3
+ import { noScrollbarsClassName as p, zeroRightClassName as g, fullWidthClassName as l, removedBarSizeVariable as v } from "./index.es514.js";
4
+ import { getGapWidth as m } from "./index.es584.js";
5
+ var b = f(), e = "data-scroll-locked", h = function(n, a, o, t) {
6
+ var r = n.left, i = n.top, s = n.right, c = n.gap;
7
+ return o === void 0 && (o = "margin"), `
8
+ .`.concat(p, ` {
9
+ overflow: hidden `).concat(t, `;
10
+ padding-right: `).concat(c, "px ").concat(t, `;
11
+ }
12
+ body[`).concat(e, `] {
13
+ overflow: hidden `).concat(t, `;
14
+ overscroll-behavior: contain;
15
+ `).concat([
16
+ a && "position: relative ".concat(t, ";"),
17
+ o === "margin" && `
18
+ padding-left: `.concat(r, `px;
19
+ padding-top: `).concat(i, `px;
20
+ padding-right: `).concat(s, `px;
21
+ margin-left:0;
22
+ margin-top:0;
23
+ margin-right: `).concat(c, "px ").concat(t, `;
24
+ `),
25
+ o === "padding" && "padding-right: ".concat(c, "px ").concat(t, ";")
26
+ ].filter(Boolean).join(""), `
27
+ }
28
+
29
+ .`).concat(g, ` {
30
+ right: `).concat(c, "px ").concat(t, `;
31
+ }
32
+
33
+ .`).concat(l, ` {
34
+ margin-right: `).concat(c, "px ").concat(t, `;
35
+ }
36
+
37
+ .`).concat(g, " .").concat(g, ` {
38
+ right: 0 `).concat(t, `;
39
+ }
40
+
41
+ .`).concat(l, " .").concat(l, ` {
42
+ margin-right: 0 `).concat(t, `;
43
+ }
44
+
45
+ body[`).concat(e, `] {
46
+ `).concat(v, ": ").concat(c, `px;
47
+ }
48
+ `);
49
+ }, u = function() {
50
+ var n = parseInt(document.body.getAttribute(e) || "0", 10);
51
+ return isFinite(n) ? n : 0;
52
+ }, x = function() {
53
+ d.useEffect(function() {
54
+ return document.body.setAttribute(e, (u() + 1).toString()), function() {
55
+ var n = u() - 1;
56
+ n <= 0 ? document.body.removeAttribute(e) : document.body.setAttribute(e, n.toString());
57
+ };
58
+ }, []);
59
+ }, C = function(n) {
60
+ var a = n.noRelative, o = n.noImportant, t = n.gapMode, r = t === void 0 ? "margin" : t;
61
+ x();
62
+ var i = d.useMemo(function() {
63
+ return m(r);
64
+ }, [r]);
65
+ return d.createElement(b, { styles: h(i, !a, r, o ? "" : "!important") });
8
66
  };
9
67
  export {
10
- s as styleSingleton
68
+ C as RemoveScrollBar,
69
+ e as lockAttribute,
70
+ x as useLockAttribute
11
71
  };
12
72
  //# sourceMappingURL=index.es549.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es549.js","sources":["../node_modules/react-style-singleton/dist/es2015/component.js"],"sourcesContent":["import { styleHookSingleton } from './hook';\n/**\n * create a Component to add styles on demand\n * - styles are added when first instance is mounted\n * - styles are removed when the last instance is unmounted\n * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior\n */\nexport var styleSingleton = function () {\n var useStyle = styleHookSingleton();\n var Sheet = function (_a) {\n var styles = _a.styles, dynamic = _a.dynamic;\n useStyle(styles, dynamic);\n return null;\n };\n return Sheet;\n};\n"],"names":["styleSingleton","useStyle","styleHookSingleton","Sheet","_a","styles","dynamic"],"mappings":";AAOU,IAACA,IAAiB,WAAY;AACpC,MAAIC,IAAWC,EAAoB,GAC/BC,IAAQ,SAAUC,GAAI;AACtB,QAAIC,IAASD,EAAG,QAAQE,IAAUF,EAAG;AACrC,WAAAH,EAASI,GAAQC,CAAO,GACjB;AAAA,EACV;AACD,SAAOH;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es549.js","sources":["../node_modules/react-remove-scroll-bar/dist/es2015/component.js"],"sourcesContent":["import * as React from 'react';\nimport { styleSingleton } from 'react-style-singleton';\nimport { fullWidthClassName, zeroRightClassName, noScrollbarsClassName, removedBarSizeVariable } from './constants';\nimport { getGapWidth } from './utils';\nvar Style = styleSingleton();\nexport var lockAttribute = 'data-scroll-locked';\n// important tip - once we measure scrollBar width and remove them\n// we could not repeat this operation\n// thus we are using style-singleton - only the first \"yet correct\" style will be applied.\nvar getStyles = function (_a, allowRelative, gapMode, important) {\n var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;\n if (gapMode === void 0) { gapMode = 'margin'; }\n return \"\\n .\".concat(noScrollbarsClassName, \" {\\n overflow: hidden \").concat(important, \";\\n padding-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n body[\").concat(lockAttribute, \"] {\\n overflow: hidden \").concat(important, \";\\n overscroll-behavior: contain;\\n \").concat([\n allowRelative && \"position: relative \".concat(important, \";\"),\n gapMode === 'margin' &&\n \"\\n padding-left: \".concat(left, \"px;\\n padding-top: \").concat(top, \"px;\\n padding-right: \").concat(right, \"px;\\n margin-left:0;\\n margin-top:0;\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n \"),\n gapMode === 'padding' && \"padding-right: \".concat(gap, \"px \").concat(important, \";\"),\n ]\n .filter(Boolean)\n .join(''), \"\\n }\\n \\n .\").concat(zeroRightClassName, \" {\\n right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" {\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(zeroRightClassName, \" .\").concat(zeroRightClassName, \" {\\n right: 0 \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" .\").concat(fullWidthClassName, \" {\\n margin-right: 0 \").concat(important, \";\\n }\\n \\n body[\").concat(lockAttribute, \"] {\\n \").concat(removedBarSizeVariable, \": \").concat(gap, \"px;\\n }\\n\");\n};\nvar getCurrentUseCounter = function () {\n var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);\n return isFinite(counter) ? counter : 0;\n};\nexport var useLockAttribute = function () {\n React.useEffect(function () {\n document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());\n return function () {\n var newCounter = getCurrentUseCounter() - 1;\n if (newCounter <= 0) {\n document.body.removeAttribute(lockAttribute);\n }\n else {\n document.body.setAttribute(lockAttribute, newCounter.toString());\n }\n };\n }, []);\n};\n/**\n * Removes page scrollbar and blocks page scroll when mounted\n */\nexport var RemoveScrollBar = function (_a) {\n var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;\n useLockAttribute();\n /*\n gap will be measured on every component mount\n however it will be used only by the \"first\" invocation\n due to singleton nature of <Style\n */\n var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);\n return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });\n};\n"],"names":["Style","styleSingleton","lockAttribute","getStyles","_a","allowRelative","gapMode","important","left","top","right","gap","noScrollbarsClassName","zeroRightClassName","fullWidthClassName","removedBarSizeVariable","getCurrentUseCounter","counter","useLockAttribute","React","newCounter","RemoveScrollBar","noRelative","noImportant","_b","getGapWidth"],"mappings":";;;;AAIA,IAAIA,IAAQC,EAAgB,GACjBC,IAAgB,sBAIvBC,IAAY,SAAUC,GAAIC,GAAeC,GAASC,GAAW;AAC7D,MAAIC,IAAOJ,EAAG,MAAMK,IAAML,EAAG,KAAKM,IAAQN,EAAG,OAAOO,IAAMP,EAAG;AAC7D,SAAIE,MAAY,WAAUA,IAAU,WAC7B;AAAA,KAAQ,OAAOM,GAAuB;AAAA,qBAA0B,EAAE,OAAOL,GAAW;AAAA,mBAAuB,EAAE,OAAOI,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA;AAAA,QAAiB,EAAE,OAAOL,GAAe;AAAA,sBAA4B,EAAE,OAAOK,GAAW;AAAA;AAAA,KAA4C,EAAE,OAAO;AAAA,IACnSF,KAAiB,sBAAsB,OAAOE,GAAW,GAAG;AAAA,IAC5DD,MAAY,YACR;AAAA,oBAAuB,OAAOE,GAAM;AAAA,kBAAwB,EAAE,OAAOC,GAAK;AAAA,oBAA0B,EAAE,OAAOC,GAAO;AAAA;AAAA;AAAA,mBAAgE,EAAE,OAAOC,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA,KAAS;AAAA,IACxOD,MAAY,aAAa,kBAAkB,OAAOK,GAAK,KAAK,EAAE,OAAOJ,GAAW,GAAG;AAAA,EAC3F,EACS,OAAO,OAAO,EACd,KAAK,EAAE,GAAG;AAAA;AAAA;AAAA,IAAgB,EAAE,OAAOM,GAAoB;AAAA,YAAiB,EAAE,OAAOF,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA;AAAA;AAAA,IAAiB,EAAE,OAAOO,GAAoB;AAAA,mBAAwB,EAAE,OAAOH,GAAK,KAAK,EAAE,OAAOJ,GAAW;AAAA;AAAA;AAAA,IAAiB,EAAE,OAAOM,GAAoB,IAAI,EAAE,OAAOA,GAAoB;AAAA,cAAmB,EAAE,OAAON,GAAW;AAAA;AAAA;AAAA,IAAiB,EAAE,OAAOO,GAAoB,IAAI,EAAE,OAAOA,GAAoB;AAAA,qBAA0B,EAAE,OAAOP,GAAW;AAAA;AAAA;AAAA,QAAqB,EAAE,OAAOL,GAAe;AAAA,KAAW,EAAE,OAAOa,GAAwB,IAAI,EAAE,OAAOJ,GAAK;AAAA;AAAA,CAAY;AAC/kB,GACIK,IAAuB,WAAY;AACnC,MAAIC,IAAU,SAAS,SAAS,KAAK,aAAaf,CAAa,KAAK,KAAK,EAAE;AAC3E,SAAO,SAASe,CAAO,IAAIA,IAAU;AACzC,GACWC,IAAmB,WAAY;AACtC,EAAAC,EAAM,UAAU,WAAY;AACxB,oBAAS,KAAK,aAAajB,IAAgBc,MAAyB,GAAG,UAAU,GAC1E,WAAY;AACf,UAAII,IAAaJ,EAAoB,IAAK;AAC1C,MAAII,KAAc,IACd,SAAS,KAAK,gBAAgBlB,CAAa,IAG3C,SAAS,KAAK,aAAaA,GAAekB,EAAW,SAAQ,CAAE;AAAA,IAEtE;AAAA,EACJ,GAAE,EAAE;AACT,GAIWC,IAAkB,SAAUjB,GAAI;AACvC,MAAIkB,IAAalB,EAAG,YAAYmB,IAAcnB,EAAG,aAAaoB,IAAKpB,EAAG,SAASE,IAAUkB,MAAO,SAAS,WAAWA;AACpH,EAAAN,EAAkB;AAMlB,MAAIP,IAAMQ,EAAM,QAAQ,WAAY;AAAE,WAAOM,EAAYnB,CAAO;AAAA,EAAE,GAAI,CAACA,CAAO,CAAC;AAC/E,SAAOa,EAAM,cAAcnB,GAAO,EAAE,QAAQG,EAAUQ,GAAK,CAACW,GAAYhB,GAAUiB,IAA6B,KAAf,YAAiB,EAAC,CAAE;AACxH;","x_google_ignoreList":[0]}
@@ -1,17 +1,12 @@
1
- var r = !1;
2
- if (typeof window < "u")
3
- try {
4
- var e = Object.defineProperty({}, "passive", {
5
- get: function() {
6
- return r = !0, !0;
7
- }
8
- });
9
- window.addEventListener("test", e, e), window.removeEventListener("test", e, e);
10
- } catch {
11
- r = !1;
12
- }
13
- var a = r ? { passive: !1 } : !1;
1
+ import { styleHookSingleton as o } from "./index.es585.js";
2
+ var s = function() {
3
+ var e = o(), n = function(t) {
4
+ var r = t.styles, l = t.dynamic;
5
+ return e(r, l), null;
6
+ };
7
+ return n;
8
+ };
14
9
  export {
15
- a as nonPassive
10
+ s as styleSingleton
16
11
  };
17
12
  //# sourceMappingURL=index.es550.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es550.js","sources":["../node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js"],"sourcesContent":["var passiveSupported = false;\nif (typeof window !== 'undefined') {\n try {\n var options = Object.defineProperty({}, 'passive', {\n get: function () {\n passiveSupported = true;\n return true;\n },\n });\n // @ts-ignore\n window.addEventListener('test', options, options);\n // @ts-ignore\n window.removeEventListener('test', options, options);\n }\n catch (err) {\n passiveSupported = false;\n }\n}\nexport var nonPassive = passiveSupported ? { passive: false } : false;\n"],"names":["passiveSupported","options","nonPassive"],"mappings":"AAAA,IAAIA,IAAmB;AACvB,IAAI,OAAO,SAAW;AAClB,MAAI;AACA,QAAIC,IAAU,OAAO,eAAe,CAAA,GAAI,WAAW;AAAA,MAC/C,KAAK,WAAY;AACb,eAAAD,IAAmB,IACZ;AAAA,MACV;AAAA,IACb,CAAS;AAED,WAAO,iBAAiB,QAAQC,GAASA,CAAO,GAEhD,OAAO,oBAAoB,QAAQA,GAASA,CAAO;AAAA,EAC3D,QACgB;AACR,IAAAD,IAAmB;AAAA,EAC3B;AAEU,IAACE,IAAaF,IAAmB,EAAE,SAAS,GAAK,IAAK;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es550.js","sources":["../node_modules/react-style-singleton/dist/es2015/component.js"],"sourcesContent":["import { styleHookSingleton } from './hook';\n/**\n * create a Component to add styles on demand\n * - styles are added when first instance is mounted\n * - styles are removed when the last instance is unmounted\n * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior\n */\nexport var styleSingleton = function () {\n var useStyle = styleHookSingleton();\n var Sheet = function (_a) {\n var styles = _a.styles, dynamic = _a.dynamic;\n useStyle(styles, dynamic);\n return null;\n };\n return Sheet;\n};\n"],"names":["styleSingleton","useStyle","styleHookSingleton","Sheet","_a","styles","dynamic"],"mappings":";AAOU,IAACA,IAAiB,WAAY;AACpC,MAAIC,IAAWC,EAAoB,GAC/BC,IAAQ,SAAUC,GAAI;AACtB,QAAIC,IAASD,EAAG,QAAQE,IAAUF,EAAG;AACrC,WAAAH,EAASI,GAAQC,CAAO,GACjB;AAAA,EACV;AACD,SAAOH;AACX;","x_google_ignoreList":[0]}
@@ -1,65 +1,17 @@
1
- var p = function(e) {
2
- return e.tagName === "TEXTAREA";
3
- }, w = function(e, r) {
4
- if (!(e instanceof Element))
5
- return !1;
6
- var o = window.getComputedStyle(e);
7
- return (
8
- // not-not-scrollable
9
- o[r] !== "hidden" && // contains scroll inside self
10
- !(o.overflowY === o.overflowX && !p(e) && o[r] === "visible")
11
- );
12
- }, y = function(e) {
13
- return w(e, "overflowY");
14
- }, H = function(e) {
15
- return w(e, "overflowX");
16
- }, R = function(e, r) {
17
- var o = r.ownerDocument, t = r;
18
- do {
19
- typeof ShadowRoot < "u" && t instanceof ShadowRoot && (t = t.host);
20
- var v = g(e, t);
21
- if (v) {
22
- var n = b(e, t), a = n[1], l = n[2];
23
- if (a > l)
24
- return !0;
25
- }
26
- t = t.parentNode;
27
- } while (t && t !== o.body);
28
- return !1;
29
- }, B = function(e) {
30
- var r = e.scrollTop, o = e.scrollHeight, t = e.clientHeight;
31
- return [
32
- r,
33
- o,
34
- t
35
- ];
36
- }, V = function(e) {
37
- var r = e.scrollLeft, o = e.scrollWidth, t = e.clientWidth;
38
- return [
39
- r,
40
- o,
41
- t
42
- ];
43
- }, g = function(e, r) {
44
- return e === "v" ? y(r) : H(r);
45
- }, b = function(e, r) {
46
- return e === "v" ? B(r) : V(r);
47
- }, D = function(e, r) {
48
- return e === "h" && r === "rtl" ? -1 : 1;
49
- }, W = function(e, r, o, t, v) {
50
- var n = D(e, window.getComputedStyle(r).direction), a = n * t, l = o.target, f = r.contains(l), i = !1, s = a > 0, d = 0, h = 0;
51
- do {
52
- var c = b(e, l), u = c[0], m = c[1], C = c[2], S = m - C - n * u;
53
- (u || S) && g(e, l) && (d += S, h += u), l instanceof ShadowRoot ? l = l.host : l = l.parentNode;
54
- } while (
55
- // portaled content
56
- !f && l !== document.body || // self content
57
- f && (r.contains(l) || r === l)
58
- );
59
- return (s && Math.abs(d) < 1 || !s && Math.abs(h) < 1) && (i = !0), i;
60
- };
1
+ var r = !1;
2
+ if (typeof window < "u")
3
+ try {
4
+ var e = Object.defineProperty({}, "passive", {
5
+ get: function() {
6
+ return r = !0, !0;
7
+ }
8
+ });
9
+ window.addEventListener("test", e, e), window.removeEventListener("test", e, e);
10
+ } catch {
11
+ r = !1;
12
+ }
13
+ var a = r ? { passive: !1 } : !1;
61
14
  export {
62
- W as handleScroll,
63
- R as locationCouldBeScrolled
15
+ a as nonPassive
64
16
  };
65
17
  //# sourceMappingURL=index.es551.js.map