@rpcbase/ui 0.251.0 → 0.252.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 (243) hide show
  1. package/dist/index150.js +3 -3
  2. package/dist/index156.js +1 -1
  3. package/dist/index163.js +2 -2
  4. package/dist/index164.js +7 -7
  5. package/dist/index167.js +1 -1
  6. package/dist/index169.js +1 -1
  7. package/dist/index172.js +3 -3
  8. package/dist/index175.js +1 -1
  9. package/dist/index176.js +4 -4
  10. package/dist/index182.js +1 -1
  11. package/dist/index184.js +4 -4
  12. package/dist/index185.js +13 -13
  13. package/dist/index188.js +5 -5
  14. package/dist/index189.js +1 -1
  15. package/dist/index192.js +2 -2
  16. package/dist/index193.js +6 -6
  17. package/dist/index254.js +155 -20
  18. package/dist/index254.js.map +1 -1
  19. package/dist/index255.js +31 -65
  20. package/dist/index255.js.map +1 -1
  21. package/dist/index256.js +11 -6
  22. package/dist/index256.js.map +1 -1
  23. package/dist/index257.js +49 -5
  24. package/dist/index257.js.map +1 -1
  25. package/dist/index258.js +9 -11
  26. package/dist/index258.js.map +1 -1
  27. package/dist/index259.js +11 -3
  28. package/dist/index259.js.map +1 -1
  29. package/dist/index260.js +41 -48
  30. package/dist/index260.js.map +1 -1
  31. package/dist/index261.js +98 -4
  32. package/dist/index261.js.map +1 -1
  33. package/dist/index262.js +84 -27
  34. package/dist/index262.js.map +1 -1
  35. package/dist/index263.js +103 -14
  36. package/dist/index263.js.map +1 -1
  37. package/dist/index264.js +52 -5
  38. package/dist/index264.js.map +1 -1
  39. package/dist/index265.js +11 -21
  40. package/dist/index265.js.map +1 -1
  41. package/dist/index266.js +4 -53
  42. package/dist/index266.js.map +1 -1
  43. package/dist/index267.js +37 -20
  44. package/dist/index267.js.map +1 -1
  45. package/dist/index268.js +8 -41
  46. package/dist/index268.js.map +1 -1
  47. package/dist/index269.js +132 -36
  48. package/dist/index269.js.map +1 -1
  49. package/dist/index270.js +18 -46
  50. package/dist/index270.js.map +1 -1
  51. package/dist/index271.js +14 -19
  52. package/dist/index271.js.map +1 -1
  53. package/dist/index272.js +3 -70
  54. package/dist/index272.js.map +1 -1
  55. package/dist/index273.js +34 -15
  56. package/dist/index273.js.map +1 -1
  57. package/dist/index274.js +20 -3
  58. package/dist/index274.js.map +1 -1
  59. package/dist/index275.js +9 -11
  60. package/dist/index275.js.map +1 -1
  61. package/dist/index276.js +8 -13
  62. package/dist/index276.js.map +1 -1
  63. package/dist/index277.js +20 -19
  64. package/dist/index277.js.map +1 -1
  65. package/dist/index278.js +65 -35
  66. package/dist/index278.js.map +1 -1
  67. package/dist/index279.js +6 -239
  68. package/dist/index279.js.map +1 -1
  69. package/dist/index280.js +5 -252
  70. package/dist/index280.js.map +1 -1
  71. package/dist/index281.js +10 -67
  72. package/dist/index281.js.map +1 -1
  73. package/dist/index282.js +3 -99
  74. package/dist/index282.js.map +1 -1
  75. package/dist/index283.js +47 -80
  76. package/dist/index283.js.map +1 -1
  77. package/dist/index284.js +4 -4
  78. package/dist/index284.js.map +1 -1
  79. package/dist/index285.js +27 -27
  80. package/dist/index285.js.map +1 -1
  81. package/dist/index286.js +16 -16
  82. package/dist/index286.js.map +1 -1
  83. package/dist/index287.js +6 -35
  84. package/dist/index287.js.map +1 -1
  85. package/dist/index288.js +21 -17
  86. package/dist/index288.js.map +1 -1
  87. package/dist/index289.js +53 -3
  88. package/dist/index289.js.map +1 -1
  89. package/dist/index290.js +20 -26
  90. package/dist/index290.js.map +1 -1
  91. package/dist/index291.js +40 -27
  92. package/dist/index291.js.map +1 -1
  93. package/dist/index292.js +40 -4
  94. package/dist/index292.js.map +1 -1
  95. package/dist/index293.js +46 -79
  96. package/dist/index293.js.map +1 -1
  97. package/dist/index294.js +19 -271
  98. package/dist/index294.js.map +1 -1
  99. package/dist/index295.js +70 -11
  100. package/dist/index295.js.map +1 -1
  101. package/dist/index296.js +18 -11
  102. package/dist/index296.js.map +1 -1
  103. package/dist/index297.js +3 -25
  104. package/dist/index297.js.map +1 -1
  105. package/dist/index298.js +11 -16
  106. package/dist/index298.js.map +1 -1
  107. package/dist/index299.js +12 -124
  108. package/dist/index299.js.map +1 -1
  109. package/dist/index300.js +18 -5
  110. package/dist/index300.js.map +1 -1
  111. package/dist/index301.js +35 -64
  112. package/dist/index301.js.map +1 -1
  113. package/dist/index302.js +240 -14
  114. package/dist/index302.js.map +1 -1
  115. package/dist/index303.js +252 -7
  116. package/dist/index303.js.map +1 -1
  117. package/dist/index304.js +68 -5
  118. package/dist/index304.js.map +1 -1
  119. package/dist/index305.js +99 -3
  120. package/dist/index305.js.map +1 -1
  121. package/dist/index306.js +83 -10
  122. package/dist/index306.js.map +1 -1
  123. package/dist/index307.js +3 -7
  124. package/dist/index307.js.map +1 -1
  125. package/dist/index308.js +24 -128
  126. package/dist/index308.js.map +1 -1
  127. package/dist/index309.js +16 -399
  128. package/dist/index309.js.map +1 -1
  129. package/dist/index310.js +35 -5
  130. package/dist/index310.js.map +1 -1
  131. package/dist/index311.js +16 -51
  132. package/dist/index311.js.map +1 -1
  133. package/dist/index312.js +3 -11
  134. package/dist/index312.js.map +1 -1
  135. package/dist/index313.js +22 -23
  136. package/dist/index313.js.map +1 -1
  137. package/dist/index314.js +27 -10
  138. package/dist/index314.js.map +1 -1
  139. package/dist/index315.js +4 -33
  140. package/dist/index315.js.map +1 -1
  141. package/dist/index316.js +78 -11
  142. package/dist/index316.js.map +1 -1
  143. package/dist/index317.js +268 -45
  144. package/dist/index317.js.map +1 -1
  145. package/dist/index318.js +11 -9
  146. package/dist/index318.js.map +1 -1
  147. package/dist/index319.js +10 -11
  148. package/dist/index319.js.map +1 -1
  149. package/dist/index320.js +25 -43
  150. package/dist/index320.js.map +1 -1
  151. package/dist/index321.js +15 -96
  152. package/dist/index321.js.map +1 -1
  153. package/dist/index322.js +122 -83
  154. package/dist/index322.js.map +1 -1
  155. package/dist/index323.js +4 -104
  156. package/dist/index323.js.map +1 -1
  157. package/dist/index324.js +60 -47
  158. package/dist/index324.js.map +1 -1
  159. package/dist/index325.js +13 -11
  160. package/dist/index325.js.map +1 -1
  161. package/dist/index326.js +7 -4
  162. package/dist/index326.js.map +1 -1
  163. package/dist/index327.js +5 -37
  164. package/dist/index327.js.map +1 -1
  165. package/dist/index328.js +3 -8
  166. package/dist/index328.js.map +1 -1
  167. package/dist/index329.js +10 -154
  168. package/dist/index329.js.map +1 -1
  169. package/dist/index330.js +7 -135
  170. package/dist/index330.js.map +1 -1
  171. package/dist/index331.js +133 -17
  172. package/dist/index331.js.map +1 -1
  173. package/dist/index332.js +398 -14
  174. package/dist/index332.js.map +1 -1
  175. package/dist/index333.js +5 -4
  176. package/dist/index333.js.map +1 -1
  177. package/dist/index334.js +50 -34
  178. package/dist/index334.js.map +1 -1
  179. package/dist/index335.js +11 -20
  180. package/dist/index335.js.map +1 -1
  181. package/dist/index336.js +27 -9
  182. package/dist/index336.js.map +1 -1
  183. package/dist/index337.js +11 -8
  184. package/dist/index337.js.map +1 -1
  185. package/dist/index338.js +2 -2
  186. package/dist/index348.js +2 -2
  187. package/dist/index350.js +4 -4
  188. package/dist/index358.js +5 -5
  189. package/dist/index359.js +1 -1
  190. package/dist/index365.js +5 -4
  191. package/dist/index365.js.map +1 -1
  192. package/dist/index366.js +20 -5
  193. package/dist/index366.js.map +1 -1
  194. package/dist/index367.js +4 -3
  195. package/dist/index367.js.map +1 -1
  196. package/dist/index368.js +5 -11
  197. package/dist/index368.js.map +1 -1
  198. package/dist/index369.js +3 -21
  199. package/dist/index369.js.map +1 -1
  200. package/dist/index370.js +11 -44
  201. package/dist/index370.js.map +1 -1
  202. package/dist/index371.js +20 -17
  203. package/dist/index371.js.map +1 -1
  204. package/dist/index372.js +45 -5
  205. package/dist/index372.js.map +1 -1
  206. package/dist/index373.js +15 -198
  207. package/dist/index373.js.map +1 -1
  208. package/dist/index374.js +5 -74
  209. package/dist/index374.js.map +1 -1
  210. package/dist/index375.js +192 -115
  211. package/dist/index375.js.map +1 -1
  212. package/dist/index376.js +73 -4
  213. package/dist/index376.js.map +1 -1
  214. package/dist/index377.js +122 -19
  215. package/dist/index377.js.map +1 -1
  216. package/dist/index379.js +3 -3
  217. package/dist/index380.js +3 -3
  218. package/dist/index382.js +1 -1
  219. package/dist/index384.js +1 -1
  220. package/dist/index385.js +2 -2
  221. package/dist/index388.js +1 -1
  222. package/dist/index389.js +2 -2
  223. package/dist/index413.js +1 -1
  224. package/dist/index423.js +1 -1
  225. package/dist/index424.js +1 -1
  226. package/dist/index427.js +1 -1
  227. package/dist/index428.js +1 -1
  228. package/dist/index434.js +2 -2
  229. package/dist/index436.js +2 -2
  230. package/dist/index49.js +30 -30
  231. package/dist/index50.js +21 -21
  232. package/dist/index51.js +1 -1
  233. package/dist/index52.js +8 -8
  234. package/dist/index53.js +2 -2
  235. package/dist/index55.js +16 -16
  236. package/dist/index56.js +4 -4
  237. package/dist/index57.js +3 -3
  238. package/dist/index58.js +7 -7
  239. package/dist/index59.js +4 -4
  240. package/dist/index60.js +12 -12
  241. package/dist/index61.js +2 -2
  242. package/dist/index62.js +2 -2
  243. package/package.json +1 -1
package/dist/index377.js CHANGED
@@ -1,24 +1,127 @@
1
- import { VALID_DIGITS as n } from "./index159.js";
2
- var v = "+", I = "[\\-\\.\\(\\)]?", R = "([" + n + "]|" + I + ")", i = "^\\" + v + R + "*[" + n + "]" + R + "*$", N = new RegExp(i, "g"), r = n, C = "[" + r + "]+((\\-)*[" + r + "])*", L = "a-zA-Z", f = "[" + L + "]+((\\-)*[" + r + "])*", E = "^(" + C + "\\.)*" + f + "\\.?$", O = new RegExp(E, "g"), l = "tel:", a = ";phone-context=", u = ";isub=";
3
- function D(_) {
4
- var t = _.indexOf(a);
5
- if (t < 0)
6
- return null;
7
- var e = t + a.length;
8
- if (e >= _.length)
9
- return "";
10
- var A = _.indexOf(";", e);
11
- return A >= 0 ? _.substring(e, A) : _.substring(e);
1
+ import { getWindow as d, isOverflowElement as m } from "./index331.js";
2
+ import { addEventListener as T } from "./index323.js";
3
+ import { ownerDocument as a } from "./index307.js";
4
+ import { useIsoLayoutEffect as E } from "./index284.js";
5
+ import { Timeout as k } from "./index308.js";
6
+ import { AnimationFrame as H } from "./index324.js";
7
+ import { NOOP as z } from "./index287.js";
8
+ import { ios as j } from "./index357.js";
9
+ import { webkit as F } from "./index333.js";
10
+ let Y = {}, C = {}, L = "";
11
+ function R(s) {
12
+ if (typeof document > "u")
13
+ return !1;
14
+ const e = a(s);
15
+ return d(e).innerWidth - e.documentElement.clientWidth > 0;
12
16
  }
13
- function S(_) {
14
- return _ === null ? !0 : _.length === 0 ? !1 : N.test(_) || O.test(_);
17
+ function V(s) {
18
+ if (!(typeof CSS < "u" && CSS.supports && CSS.supports("scrollbar-gutter", "stable")) || typeof document > "u")
19
+ return !1;
20
+ const t = a(s), o = t.documentElement, l = t.body, r = m(o) ? o : l, i = r.style.overflowY, c = o.style.scrollbarGutter;
21
+ o.style.scrollbarGutter = "stable", r.style.overflowY = "scroll";
22
+ const u = r.offsetWidth;
23
+ r.style.overflowY = "hidden";
24
+ const f = r.offsetWidth;
25
+ return r.style.overflowY = i, o.style.scrollbarGutter = c, u === f;
26
+ }
27
+ function q(s) {
28
+ const e = a(s), t = e.documentElement, o = e.body, l = m(t) ? t : o, r = {
29
+ overflowY: l.style.overflowY,
30
+ overflowX: l.style.overflowX
31
+ };
32
+ return Object.assign(l.style, {
33
+ overflowY: "hidden",
34
+ overflowX: "hidden"
35
+ }), () => {
36
+ Object.assign(l.style, r);
37
+ };
38
+ }
39
+ function A(s) {
40
+ const e = a(s), t = e.documentElement, o = e.body, l = d(t);
41
+ let r = 0, i = 0, c = !1;
42
+ const u = H.create();
43
+ if (F && (l.visualViewport?.scale ?? 1) !== 1)
44
+ return () => {
45
+ };
46
+ function f() {
47
+ const h = l.getComputedStyle(t), n = l.getComputedStyle(o), v = (h.scrollbarGutter || "").includes("both-edges") ? "stable both-edges" : "stable";
48
+ r = t.scrollTop, i = t.scrollLeft, Y = {
49
+ scrollbarGutter: t.style.scrollbarGutter,
50
+ overflowY: t.style.overflowY,
51
+ overflowX: t.style.overflowX
52
+ }, L = t.style.scrollBehavior, C = {
53
+ position: o.style.position,
54
+ height: o.style.height,
55
+ width: o.style.width,
56
+ boxSizing: o.style.boxSizing,
57
+ overflowY: o.style.overflowY,
58
+ overflowX: o.style.overflowX,
59
+ scrollBehavior: o.style.scrollBehavior
60
+ };
61
+ const G = t.scrollHeight > t.clientHeight, B = t.scrollWidth > t.clientWidth, W = h.overflowY === "scroll" || n.overflowY === "scroll", x = h.overflowX === "scroll" || n.overflowX === "scroll", b = Math.max(0, l.innerWidth - o.clientWidth), w = Math.max(0, l.innerHeight - o.clientHeight), p = parseFloat(n.marginTop) + parseFloat(n.marginBottom), g = parseFloat(n.marginLeft) + parseFloat(n.marginRight), S = m(t) ? t : o;
62
+ if (c = V(s), c) {
63
+ t.style.scrollbarGutter = v, S.style.overflowY = "hidden", S.style.overflowX = "hidden";
64
+ return;
65
+ }
66
+ Object.assign(t.style, {
67
+ scrollbarGutter: v,
68
+ overflowY: "hidden",
69
+ overflowX: "hidden"
70
+ }), (G || W) && (t.style.overflowY = "scroll"), (B || x) && (t.style.overflowX = "scroll"), Object.assign(o.style, {
71
+ position: "relative",
72
+ height: p || w ? `calc(100dvh - ${p + w}px)` : "100dvh",
73
+ width: g || b ? `calc(100vw - ${g + b}px)` : "100vw",
74
+ boxSizing: "border-box",
75
+ overflow: "hidden",
76
+ scrollBehavior: "unset"
77
+ }), o.scrollTop = r, o.scrollLeft = i, t.setAttribute("data-base-ui-scroll-locked", ""), t.style.scrollBehavior = "unset";
78
+ }
79
+ function y() {
80
+ Object.assign(t.style, Y), Object.assign(o.style, C), c || (t.scrollTop = r, t.scrollLeft = i, t.removeAttribute("data-base-ui-scroll-locked"), t.style.scrollBehavior = L);
81
+ }
82
+ function O() {
83
+ y(), u.request(f);
84
+ }
85
+ f();
86
+ const X = T(l, "resize", O);
87
+ return () => {
88
+ u.cancel(), y(), typeof l.removeEventListener == "function" && X();
89
+ };
90
+ }
91
+ class I {
92
+ lockCount = 0;
93
+ restore = null;
94
+ timeoutLock = k.create();
95
+ timeoutUnlock = k.create();
96
+ acquire(e) {
97
+ return this.lockCount += 1, this.lockCount === 1 && this.restore === null && this.timeoutLock.start(0, () => this.lock(e)), this.release;
98
+ }
99
+ release = () => {
100
+ this.lockCount -= 1, this.lockCount === 0 && this.restore && this.timeoutUnlock.start(0, this.unlock);
101
+ };
102
+ unlock = () => {
103
+ this.lockCount === 0 && this.restore && (this.restore?.(), this.restore = null);
104
+ };
105
+ lock(e) {
106
+ if (this.lockCount === 0 || this.restore !== null)
107
+ return;
108
+ const o = a(e).documentElement, l = d(o).getComputedStyle(o).overflowY;
109
+ if (l === "hidden" || l === "clip") {
110
+ this.restore = z;
111
+ return;
112
+ }
113
+ const r = j || !R(e);
114
+ this.restore = r ? q(e) : A(e);
115
+ }
116
+ }
117
+ const M = new I();
118
+ function ot(s = !0, e = null) {
119
+ E(() => {
120
+ if (s)
121
+ return M.acquire(e);
122
+ }, [s, e]);
15
123
  }
16
124
  export {
17
- v as PLUS_SIGN,
18
- u as RFC3966_ISDN_SUBADDRESS_,
19
- a as RFC3966_PHONE_CONTEXT_,
20
- l as RFC3966_PREFIX_,
21
- D as default,
22
- S as isPhoneContextValid
125
+ ot as useScrollLock
23
126
  };
24
127
  //# sourceMappingURL=index377.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index377.js","sources":["../../../node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js"],"sourcesContent":["// When phone numbers are written in `RFC3966` format — `\"tel:+12133734253\"` —\n// they can have their \"calling code\" part written separately in a `phone-context` parameter.\n// Example: `\"tel:12133734253;phone-context=+1\"`.\n// This function parses the full phone number from the local number and the `phone-context`\n// when the `phone-context` contains a `+` sign.\n\nimport { VALID_DIGITS\n// PLUS_CHARS\n} from '../constants.js';\nexport var PLUS_SIGN = '+';\nvar RFC3966_VISUAL_SEPARATOR_ = '[\\\\-\\\\.\\\\(\\\\)]?';\nvar RFC3966_PHONE_DIGIT_ = '(' + '[' + VALID_DIGITS + ']' + '|' + RFC3966_VISUAL_SEPARATOR_ + ')';\nvar RFC3966_GLOBAL_NUMBER_DIGITS_ = '^' + '\\\\' + PLUS_SIGN + RFC3966_PHONE_DIGIT_ + '*' + '[' + VALID_DIGITS + ']' + RFC3966_PHONE_DIGIT_ + '*' + '$';\n\n/**\r\n * Regular expression of valid global-number-digits for the phone-context\r\n * parameter, following the syntax defined in RFC3966.\r\n */\nvar RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_ = new RegExp(RFC3966_GLOBAL_NUMBER_DIGITS_, 'g');\n\n// In this port of Google's library, we don't accept alpha characters in phone numbers.\n// const ALPHANUM_ = VALID_ALPHA_ + VALID_DIGITS\nvar ALPHANUM_ = VALID_DIGITS;\nvar RFC3966_DOMAINLABEL_ = '[' + ALPHANUM_ + ']+((\\\\-)*[' + ALPHANUM_ + '])*';\nvar VALID_ALPHA_ = 'a-zA-Z';\nvar RFC3966_TOPLABEL_ = '[' + VALID_ALPHA_ + ']+((\\\\-)*[' + ALPHANUM_ + '])*';\nvar RFC3966_DOMAINNAME_ = '^(' + RFC3966_DOMAINLABEL_ + '\\\\.)*' + RFC3966_TOPLABEL_ + '\\\\.?$';\n\n/**\r\n * Regular expression of valid domainname for the phone-context parameter,\r\n * following the syntax defined in RFC3966.\r\n */\nvar RFC3966_DOMAINNAME_PATTERN_ = new RegExp(RFC3966_DOMAINNAME_, 'g');\nexport var RFC3966_PREFIX_ = 'tel:';\nexport var RFC3966_PHONE_CONTEXT_ = ';phone-context=';\nexport var RFC3966_ISDN_SUBADDRESS_ = ';isub=';\n\n/**\r\n * Extracts the value of the phone-context parameter of `numberToExtractFrom`,\r\n * following the syntax defined in RFC3966.\r\n *\r\n * @param {string} numberToExtractFrom\r\n * @return {string|null} the extracted string (possibly empty), or `null` if no phone-context parameter is found.\r\n */\nexport default function extractPhoneContext(numberToExtractFrom) {\n var indexOfPhoneContext = numberToExtractFrom.indexOf(RFC3966_PHONE_CONTEXT_);\n // If no phone-context parameter is present\n if (indexOfPhoneContext < 0) {\n return null;\n }\n var phoneContextStart = indexOfPhoneContext + RFC3966_PHONE_CONTEXT_.length;\n // If phone-context parameter is empty\n if (phoneContextStart >= numberToExtractFrom.length) {\n return '';\n }\n var phoneContextEnd = numberToExtractFrom.indexOf(';', phoneContextStart);\n // If phone-context is not the last parameter\n if (phoneContextEnd >= 0) {\n return numberToExtractFrom.substring(phoneContextStart, phoneContextEnd);\n } else {\n return numberToExtractFrom.substring(phoneContextStart);\n }\n}\n\n/**\r\n * Returns whether the value of phoneContext follows the syntax defined in RFC3966.\r\n *\r\n * @param {string|null} phoneContext\r\n * @return {boolean}\r\n */\nexport function isPhoneContextValid(phoneContext) {\n if (phoneContext === null) {\n return true;\n }\n if (phoneContext.length === 0) {\n return false;\n }\n\n // Does phone-context value match pattern of global-number-digits or domainname.\n return RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_.test(phoneContext) || RFC3966_DOMAINNAME_PATTERN_.test(phoneContext);\n}\n//# sourceMappingURL=extractPhoneContext.js.map"],"names":["PLUS_SIGN","RFC3966_VISUAL_SEPARATOR_","RFC3966_PHONE_DIGIT_","VALID_DIGITS","RFC3966_GLOBAL_NUMBER_DIGITS_","RFC3966_GLOBAL_NUMBER_DIGITS_PATTERN_","ALPHANUM_","RFC3966_DOMAINLABEL_","VALID_ALPHA_","RFC3966_TOPLABEL_","RFC3966_DOMAINNAME_","RFC3966_DOMAINNAME_PATTERN_","RFC3966_PREFIX_","RFC3966_PHONE_CONTEXT_","RFC3966_ISDN_SUBADDRESS_","extractPhoneContext","numberToExtractFrom","indexOfPhoneContext","phoneContextStart","phoneContextEnd","isPhoneContextValid","phoneContext"],"mappings":";AASU,IAACA,IAAY,KACnBC,IAA4B,mBAC5BC,IAAuB,OAAYC,IAAe,OAAYF,IAA4B,KAC1FG,IAAgC,QAAaJ,IAAYE,IAAuB,OAAYC,IAAe,MAAMD,IAAuB,MAMxIG,IAAwC,IAAI,OAAOD,GAA+B,GAAG,GAIrFE,IAAYH,GACZI,IAAuB,MAAMD,IAAY,eAAeA,IAAY,OACpEE,IAAe,UACfC,IAAoB,MAAMD,IAAe,eAAeF,IAAY,OACpEI,IAAsB,OAAOH,IAAuB,UAAUE,IAAoB,SAMlFE,IAA8B,IAAI,OAAOD,GAAqB,GAAG,GAC1DE,IAAkB,QAClBC,IAAyB,mBACzBC,IAA2B;AASvB,SAASC,EAAoBC,GAAqB;AAC/D,MAAIC,IAAsBD,EAAoB,QAAQH,CAAsB;AAE5E,MAAII,IAAsB;AACxB,WAAO;AAET,MAAIC,IAAoBD,IAAsBJ,EAAuB;AAErE,MAAIK,KAAqBF,EAAoB;AAC3C,WAAO;AAET,MAAIG,IAAkBH,EAAoB,QAAQ,KAAKE,CAAiB;AAExE,SAAIC,KAAmB,IACdH,EAAoB,UAAUE,GAAmBC,CAAe,IAEhEH,EAAoB,UAAUE,CAAiB;AAE1D;AAQO,SAASE,EAAoBC,GAAc;AAChD,SAAIA,MAAiB,OACZ,KAELA,EAAa,WAAW,IACnB,KAIFhB,EAAsC,KAAKgB,CAAY,KAAKV,EAA4B,KAAKU,CAAY;AAClH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index377.js","sources":["../../../node_modules/@base-ui/utils/useScrollLock.mjs"],"sourcesContent":["'use client';\n\nimport { isOverflowElement } from '@floating-ui/utils/dom';\nimport { addEventListener } from \"./addEventListener.mjs\";\nimport { platform } from \"./platform/index.mjs\";\nimport { ownerDocument, ownerWindow } from \"./owner.mjs\";\nimport { useIsoLayoutEffect } from \"./useIsoLayoutEffect.mjs\";\nimport { Timeout } from \"./useTimeout.mjs\";\nimport { AnimationFrame } from \"./useAnimationFrame.mjs\";\nimport { NOOP } from \"./empty.mjs\";\nlet originalHtmlStyles = {};\nlet originalBodyStyles = {};\nlet originalHtmlScrollBehavior = '';\nfunction hasInsetScrollbars(referenceElement) {\n if (typeof document === 'undefined') {\n return false;\n }\n const doc = ownerDocument(referenceElement);\n const win = ownerWindow(doc);\n return win.innerWidth - doc.documentElement.clientWidth > 0;\n}\nfunction supportsStableScrollbarGutter(referenceElement) {\n const supported = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('scrollbar-gutter', 'stable');\n if (!supported || typeof document === 'undefined') {\n return false;\n }\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const body = doc.body;\n const scrollContainer = isOverflowElement(html) ? html : body;\n const originalScrollContainerOverflowY = scrollContainer.style.overflowY;\n const originalHtmlStyleGutter = html.style.scrollbarGutter;\n html.style.scrollbarGutter = 'stable';\n scrollContainer.style.overflowY = 'scroll';\n const before = scrollContainer.offsetWidth;\n scrollContainer.style.overflowY = 'hidden';\n const after = scrollContainer.offsetWidth;\n scrollContainer.style.overflowY = originalScrollContainerOverflowY;\n html.style.scrollbarGutter = originalHtmlStyleGutter;\n return before === after;\n}\nfunction preventScrollOverlayScrollbars(referenceElement) {\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const body = doc.body;\n\n // If an `overflow` style is present on <html>, we need to lock it, because a lock on <body>\n // won't have any effect.\n // But if <body> has an `overflow` style (like `overflow-x: hidden`), we need to lock it\n // instead, as sticky elements shift otherwise.\n const elementToLock = isOverflowElement(html) ? html : body;\n const originalElementToLockStyles = {\n overflowY: elementToLock.style.overflowY,\n overflowX: elementToLock.style.overflowX\n };\n Object.assign(elementToLock.style, {\n overflowY: 'hidden',\n overflowX: 'hidden'\n });\n return () => {\n Object.assign(elementToLock.style, originalElementToLockStyles);\n };\n}\nfunction preventScrollInsetScrollbars(referenceElement) {\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const body = doc.body;\n const win = ownerWindow(html);\n let scrollTop = 0;\n let scrollLeft = 0;\n let updateGutterOnly = false;\n const resizeFrame = AnimationFrame.create();\n\n // Pinch-zoom in Safari causes a shift. Just don't lock scroll if there's any pinch-zoom.\n if (platform.engine.webkit && (win.visualViewport?.scale ?? 1) !== 1) {\n return () => {};\n }\n function lockScroll() {\n /* DOM reads: */\n\n const htmlStyles = win.getComputedStyle(html);\n const bodyStyles = win.getComputedStyle(body);\n const htmlScrollbarGutterValue = htmlStyles.scrollbarGutter || '';\n const hasBothEdges = htmlScrollbarGutterValue.includes('both-edges');\n const scrollbarGutterValue = hasBothEdges ? 'stable both-edges' : 'stable';\n scrollTop = html.scrollTop;\n scrollLeft = html.scrollLeft;\n originalHtmlStyles = {\n scrollbarGutter: html.style.scrollbarGutter,\n overflowY: html.style.overflowY,\n overflowX: html.style.overflowX\n };\n originalHtmlScrollBehavior = html.style.scrollBehavior;\n originalBodyStyles = {\n position: body.style.position,\n height: body.style.height,\n width: body.style.width,\n boxSizing: body.style.boxSizing,\n overflowY: body.style.overflowY,\n overflowX: body.style.overflowX,\n scrollBehavior: body.style.scrollBehavior\n };\n const isScrollableY = html.scrollHeight > html.clientHeight;\n const isScrollableX = html.scrollWidth > html.clientWidth;\n const hasConstantOverflowY = htmlStyles.overflowY === 'scroll' || bodyStyles.overflowY === 'scroll';\n const hasConstantOverflowX = htmlStyles.overflowX === 'scroll' || bodyStyles.overflowX === 'scroll';\n\n // Values can be negative in Firefox\n const scrollbarWidth = Math.max(0, win.innerWidth - body.clientWidth);\n const scrollbarHeight = Math.max(0, win.innerHeight - body.clientHeight);\n\n // Avoid shift due to the default <body> margin. This does cause elements to be clipped\n // with whitespace. Warn if <body> has margins?\n const marginY = parseFloat(bodyStyles.marginTop) + parseFloat(bodyStyles.marginBottom);\n const marginX = parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight);\n const elementToLock = isOverflowElement(html) ? html : body;\n updateGutterOnly = supportsStableScrollbarGutter(referenceElement);\n\n /*\n * DOM writes:\n * Do not read the DOM past this point!\n */\n\n if (updateGutterOnly) {\n html.style.scrollbarGutter = scrollbarGutterValue;\n elementToLock.style.overflowY = 'hidden';\n elementToLock.style.overflowX = 'hidden';\n return;\n }\n Object.assign(html.style, {\n scrollbarGutter: scrollbarGutterValue,\n overflowY: 'hidden',\n overflowX: 'hidden'\n });\n if (isScrollableY || hasConstantOverflowY) {\n html.style.overflowY = 'scroll';\n }\n if (isScrollableX || hasConstantOverflowX) {\n html.style.overflowX = 'scroll';\n }\n Object.assign(body.style, {\n position: 'relative',\n height: marginY || scrollbarHeight ? `calc(100dvh - ${marginY + scrollbarHeight}px)` : '100dvh',\n width: marginX || scrollbarWidth ? `calc(100vw - ${marginX + scrollbarWidth}px)` : '100vw',\n boxSizing: 'border-box',\n overflow: 'hidden',\n scrollBehavior: 'unset'\n });\n body.scrollTop = scrollTop;\n body.scrollLeft = scrollLeft;\n html.setAttribute('data-base-ui-scroll-locked', '');\n html.style.scrollBehavior = 'unset';\n }\n function cleanup() {\n Object.assign(html.style, originalHtmlStyles);\n Object.assign(body.style, originalBodyStyles);\n if (!updateGutterOnly) {\n html.scrollTop = scrollTop;\n html.scrollLeft = scrollLeft;\n html.removeAttribute('data-base-ui-scroll-locked');\n html.style.scrollBehavior = originalHtmlScrollBehavior;\n }\n }\n function handleResize() {\n cleanup();\n resizeFrame.request(lockScroll);\n }\n lockScroll();\n const unsubscribeResize = addEventListener(win, 'resize', handleResize);\n return () => {\n resizeFrame.cancel();\n cleanup();\n // Sometimes this cleanup can run after test teardown because it is called\n // in a `setTimeout(fn, 0)`. Guard the returned cleanup to avoid calling\n // `removeEventListener` when it is no longer available in tests.\n if (typeof win.removeEventListener === 'function') {\n unsubscribeResize();\n }\n };\n}\nclass ScrollLocker {\n lockCount = 0;\n restore = null;\n timeoutLock = Timeout.create();\n timeoutUnlock = Timeout.create();\n acquire(referenceElement) {\n this.lockCount += 1;\n if (this.lockCount === 1 && this.restore === null) {\n this.timeoutLock.start(0, () => this.lock(referenceElement));\n }\n return this.release;\n }\n release = () => {\n this.lockCount -= 1;\n if (this.lockCount === 0 && this.restore) {\n this.timeoutUnlock.start(0, this.unlock);\n }\n };\n unlock = () => {\n if (this.lockCount === 0 && this.restore) {\n this.restore?.();\n this.restore = null;\n }\n };\n lock(referenceElement) {\n if (this.lockCount === 0 || this.restore !== null) {\n return;\n }\n const doc = ownerDocument(referenceElement);\n const html = doc.documentElement;\n const htmlOverflowY = ownerWindow(html).getComputedStyle(html).overflowY;\n\n // If the site author already hid overflow on <html>, respect it and bail out.\n if (htmlOverflowY === 'hidden' || htmlOverflowY === 'clip') {\n this.restore = NOOP;\n return;\n }\n const hasOverlayScrollbars = platform.os.ios || !hasInsetScrollbars(referenceElement);\n\n // On iOS, scroll locking does not work if the navbar is collapsed. Due to numerous\n // side effects and bugs that arise on iOS, it must be researched extensively before\n // being enabled to ensure it doesn't cause the following issues:\n // - Textboxes must scroll into view when focused, nor cause a glitchy scroll animation.\n // - The navbar must not force itself into view and cause layout shift.\n // - Scroll containers must not flicker upon closing a popup when it has an exit animation.\n this.restore = hasOverlayScrollbars ? preventScrollOverlayScrollbars(referenceElement) : preventScrollInsetScrollbars(referenceElement);\n }\n}\nconst SCROLL_LOCKER = new ScrollLocker();\n\n/**\n * Locks the scroll of the document when enabled.\n *\n * @param enabled - Whether to enable the scroll lock.\n * @param referenceElement - Element to use as a reference for lock calculations.\n */\nexport function useScrollLock(enabled = true, referenceElement = null) {\n useIsoLayoutEffect(() => {\n if (!enabled) {\n return undefined;\n }\n return SCROLL_LOCKER.acquire(referenceElement);\n }, [enabled, referenceElement]);\n}"],"names":["originalHtmlStyles","originalBodyStyles","originalHtmlScrollBehavior","hasInsetScrollbars","referenceElement","doc","ownerDocument","ownerWindow","supportsStableScrollbarGutter","html","body","scrollContainer","isOverflowElement","originalScrollContainerOverflowY","originalHtmlStyleGutter","before","after","preventScrollOverlayScrollbars","elementToLock","originalElementToLockStyles","preventScrollInsetScrollbars","win","scrollTop","scrollLeft","updateGutterOnly","resizeFrame","AnimationFrame","platform.engine.webkit","lockScroll","htmlStyles","bodyStyles","scrollbarGutterValue","isScrollableY","isScrollableX","hasConstantOverflowY","hasConstantOverflowX","scrollbarWidth","scrollbarHeight","marginY","marginX","cleanup","handleResize","unsubscribeResize","addEventListener","ScrollLocker","Timeout","htmlOverflowY","NOOP","hasOverlayScrollbars","platform.os.ios","SCROLL_LOCKER","useScrollLock","enabled","useIsoLayoutEffect"],"mappings":";;;;;;;;;AAUA,IAAIA,IAAqB,CAAA,GACrBC,IAAqB,CAAA,GACrBC,IAA6B;AACjC,SAASC,EAAmBC,GAAkB;AAC5C,MAAI,OAAO,WAAa;AACtB,WAAO;AAET,QAAMC,IAAMC,EAAcF,CAAgB;AAE1C,SADYG,EAAYF,CAAG,EAChB,aAAaA,EAAI,gBAAgB,cAAc;AAC5D;AACA,SAASG,EAA8BJ,GAAkB;AAEvD,MAAI,EADc,OAAO,MAAQ,OAAe,IAAI,YAAY,IAAI,SAAS,oBAAoB,QAAQ,MACvF,OAAO,WAAa;AACpC,WAAO;AAET,QAAMC,IAAMC,EAAcF,CAAgB,GACpCK,IAAOJ,EAAI,iBACXK,IAAOL,EAAI,MACXM,IAAkBC,EAAkBH,CAAI,IAAIA,IAAOC,GACnDG,IAAmCF,EAAgB,MAAM,WACzDG,IAA0BL,EAAK,MAAM;AAC3C,EAAAA,EAAK,MAAM,kBAAkB,UAC7BE,EAAgB,MAAM,YAAY;AAClC,QAAMI,IAASJ,EAAgB;AAC/B,EAAAA,EAAgB,MAAM,YAAY;AAClC,QAAMK,IAAQL,EAAgB;AAC9B,SAAAA,EAAgB,MAAM,YAAYE,GAClCJ,EAAK,MAAM,kBAAkBK,GACtBC,MAAWC;AACpB;AACA,SAASC,EAA+Bb,GAAkB;AACxD,QAAMC,IAAMC,EAAcF,CAAgB,GACpCK,IAAOJ,EAAI,iBACXK,IAAOL,EAAI,MAMXa,IAAgBN,EAAkBH,CAAI,IAAIA,IAAOC,GACjDS,IAA8B;AAAA,IAClC,WAAWD,EAAc,MAAM;AAAA,IAC/B,WAAWA,EAAc,MAAM;AAAA,EACnC;AACE,gBAAO,OAAOA,EAAc,OAAO;AAAA,IACjC,WAAW;A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M;AACvB,QAAKD;AAGL,aAAOF,EAAc,QAAQ9C,CAAgB;AAAA,EAC/C,GAAG,CAACgD,GAAShD,CAAgB,CAAC;AAChC;","x_google_ignoreList":[0]}
package/dist/index379.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as r from "react";
2
- import { useIsoLayoutEffect as i } from "./index261.js";
3
- import { visuallyHidden as u } from "./index254.js";
2
+ import { useIsoLayoutEffect as i } from "./index284.js";
3
+ import { visuallyHidden as u } from "./index277.js";
4
4
  import { j as f } from "./index30.js";
5
5
  import { voiceOver as n } from "./index412.js";
6
- import { webkit as d } from "./index310.js";
6
+ import { webkit as d } from "./index333.js";
7
7
  const m = /* @__PURE__ */ r.forwardRef(function(t, e) {
8
8
  const [o, s] = r.useState();
9
9
  i(() => {
package/dist/index380.js CHANGED
@@ -1,6 +1,6 @@
1
- import { isHTMLElement as s, getNodeName as i, isShadowRoot as T, getComputedStyle as A } from "./index308.js";
2
- import { ownerDocument as c } from "./index284.js";
3
- import { contains as f, activeElement as I } from "./index291.js";
1
+ import { isHTMLElement as s, getNodeName as i, isShadowRoot as T, getComputedStyle as A } from "./index331.js";
2
+ import { ownerDocument as c } from "./index307.js";
3
+ import { contains as f, activeElement as I } from "./index314.js";
4
4
  import { isElementVisible as C } from "./index382.js";
5
5
  const N = 'a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';
6
6
  function R(t) {
package/dist/index382.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getComputedStyle as c } from "./index308.js";
1
+ import { getComputedStyle as c } from "./index331.js";
2
2
  function a(t, i) {
3
3
  return i < 0 || i >= t.length;
4
4
  }
package/dist/index384.js CHANGED
@@ -1,4 +1,4 @@
1
- import { NOOP as i } from "./index264.js";
1
+ import { NOOP as i } from "./index287.js";
2
2
  let e = 0;
3
3
  function s(c, o = {}) {
4
4
  const {
package/dist/index385.js CHANGED
@@ -1,5 +1,5 @@
1
- import { isShadowRoot as C, getNodeName as y } from "./index308.js";
2
- import { ownerDocument as H } from "./index284.js";
1
+ import { isShadowRoot as C, getNodeName as y } from "./index331.js";
2
+ import { ownerDocument as H } from "./index307.js";
3
3
  const d = {
4
4
  inert: /* @__PURE__ */ new WeakMap(),
5
5
  "aria-hidden": /* @__PURE__ */ new WeakMap()
package/dist/index388.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createEventEmitter as a } from "./index411.js";
2
2
  import { ReactStore as m } from "./index358.js";
3
- import { isClickLikeEvent as f } from "./index313.js";
3
+ import { isClickLikeEvent as f } from "./index336.js";
4
4
  import { createSelector as o } from "./index361.js";
5
5
  const l = {
6
6
  open: o((t) => t.open),
package/dist/index389.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as d from "react";
2
- import { useIsoLayoutEffect as E } from "./index261.js";
3
- import { isElement as R } from "./index308.js";
2
+ import { useIsoLayoutEffect as E } from "./index284.js";
3
+ import { isElement as R } from "./index331.js";
4
4
  import { FloatingRootStore as S } from "./index388.js";
5
5
  function h(u) {
6
6
  const {
package/dist/index413.js CHANGED
@@ -1,4 +1,4 @@
1
- import { evaluate as P, getSide as E, getSideAxis as S, getOppositePlacement as J, getExpandedPlacements as K, getOppositeAxisPlacements as Q, getAlignmentSides as Z, getAlignment as j, min as X, max as L, getAlignmentAxis as ee, getPaddingObject as te, rectToClientRect as Y, getAxisLength as ne, sides as ie, clamp as $, getOppositeAxis as U } from "./index299.js";
1
+ import { evaluate as P, getSide as E, getSideAxis as S, getOppositePlacement as J, getExpandedPlacements as K, getOppositeAxisPlacements as Q, getAlignmentSides as Z, getAlignment as j, min as X, max as L, getAlignmentAxis as ee, getPaddingObject as te, rectToClientRect as Y, getAxisLength as ne, sides as ie, clamp as $, getOppositeAxis as U } from "./index322.js";
2
2
  function z(t, e, d) {
3
3
  let {
4
4
  reference: i,
package/dist/index423.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __exports as i } from "./index436.js";
1
+ import { __exports as i } from "./index434.js";
2
2
  import h from "react";
3
3
  var f;
4
4
  function x() {
package/dist/index424.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __exports as s } from "./index437.js";
1
+ import { __exports as s } from "./index435.js";
2
2
  import h from "react";
3
3
  var l;
4
4
  function A() {
package/dist/index427.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __exports as d } from "./index434.js";
1
+ import { __exports as d } from "./index436.js";
2
2
  import q from "react";
3
3
  import { __require as w } from "./index421.js";
4
4
  var V;
package/dist/index428.js CHANGED
@@ -1,4 +1,4 @@
1
- import { __exports as d } from "./index435.js";
1
+ import { __exports as d } from "./index437.js";
2
2
  import M from "react";
3
3
  import { __require as b } from "./index421.js";
4
4
  var s;
package/dist/index434.js CHANGED
@@ -1,5 +1,5 @@
1
- var o = {};
1
+ var r = {};
2
2
  export {
3
- o as __exports
3
+ r as __exports
4
4
  };
5
5
  //# sourceMappingURL=index434.js.map
package/dist/index436.js CHANGED
@@ -1,5 +1,5 @@
1
- var r = {};
1
+ var o = {};
2
2
  export {
3
- r as __exports
3
+ o as __exports
4
4
  };
5
5
  //# sourceMappingURL=index436.js.map
package/dist/index49.js CHANGED
@@ -1,40 +1,40 @@
1
1
  import * as n from "react";
2
- import { visuallyHiddenInput as nt, visuallyHidden as st } from "./index254.js";
3
- import { useMergedRefs as lt } from "./index255.js";
4
- import { useRefWithInit as it } from "./index256.js";
5
- import { useOnFirstRender as at } from "./index257.js";
6
- import { usePreviousValue as ut } from "./index258.js";
7
- import { isElementDisabled as ct } from "./index259.js";
8
- import { useControlled as de } from "./index260.js";
9
- import { useIsoLayoutEffect as P } from "./index261.js";
10
- import { useStableCallback as C } from "./index262.js";
11
- import { useValueAsRef as ft } from "./index263.js";
12
- import { EMPTY_OBJECT as dt, EMPTY_ARRAY as me } from "./index264.js";
13
- import { SelectRootContext as mt, SelectFloatingContext as pt } from "./index265.js";
14
- import { useFieldRootContext as gt } from "./index266.js";
15
- import { useRegisterFieldControl as ht } from "./index267.js";
16
- import { useLabelableId as Rt } from "./index268.js";
17
- import { useTransitionStatus as yt } from "./index269.js";
18
- import { selectors as M } from "./index270.js";
2
+ import { visuallyHiddenInput as nt, visuallyHidden as st } from "./index277.js";
3
+ import { useMergedRefs as lt } from "./index278.js";
4
+ import { useRefWithInit as it } from "./index279.js";
5
+ import { useOnFirstRender as at } from "./index280.js";
6
+ import { usePreviousValue as ut } from "./index281.js";
7
+ import { isElementDisabled as ct } from "./index282.js";
8
+ import { useControlled as de } from "./index283.js";
9
+ import { useIsoLayoutEffect as P } from "./index284.js";
10
+ import { useStableCallback as C } from "./index285.js";
11
+ import { useValueAsRef as ft } from "./index286.js";
12
+ import { EMPTY_OBJECT as dt, EMPTY_ARRAY as me } from "./index287.js";
13
+ import { SelectRootContext as mt, SelectFloatingContext as pt } from "./index288.js";
14
+ import { useFieldRootContext as gt } from "./index289.js";
15
+ import { useRegisterFieldControl as ht } from "./index290.js";
16
+ import { useLabelableId as Rt } from "./index291.js";
17
+ import { useTransitionStatus as yt } from "./index292.js";
18
+ import { selectors as M } from "./index293.js";
19
19
  import { createChangeEventDetails as pe } from "./index175.js";
20
20
  import { useOpenChangeComplete as It } from "./index182.js";
21
- import { useFormContext as xt } from "./index271.js";
22
- import { stringifyAsValue as I, stringifyAsLabel as vt } from "./index272.js";
23
- import { defaultItemEquality as Ct, findItemIndex as ge, compareItemEquality as bt } from "./index273.js";
24
- import { areArraysEqual as Vt } from "./index274.js";
25
- import { useValueChanged as At } from "./index275.js";
21
+ import { useFormContext as xt } from "./index294.js";
22
+ import { stringifyAsValue as I, stringifyAsLabel as vt } from "./index295.js";
23
+ import { defaultItemEquality as Ct, findItemIndex as ge, compareItemEquality as bt } from "./index296.js";
24
+ import { areArraysEqual as Vt } from "./index297.js";
25
+ import { useValueChanged as At } from "./index298.js";
26
26
  import { useOpenInteractionType as St } from "./index192.js";
27
- import { getMaxScrollOffset as Pt, normalizeScrollOffset as Mt } from "./index276.js";
27
+ import { getMaxScrollOffset as Pt, normalizeScrollOffset as Mt } from "./index299.js";
28
28
  import { j as w } from "./index30.js";
29
- import { useStore as E } from "./index277.js";
30
- import { useFloatingRootContext as wt } from "./index278.js";
29
+ import { useStore as E } from "./index300.js";
30
+ import { useFloatingRootContext as wt } from "./index301.js";
31
31
  import { useClick as Et } from "./index193.js";
32
- import { useDismiss as Ot } from "./index279.js";
33
- import { useListNavigation as Tt } from "./index280.js";
34
- import { useTypeahead as Ft } from "./index281.js";
35
- import { mergeProps as he } from "./index282.js";
32
+ import { useDismiss as Ot } from "./index302.js";
33
+ import { useListNavigation as Tt } from "./index303.js";
34
+ import { useTypeahead as Ft } from "./index304.js";
35
+ import { mergeProps as he } from "./index305.js";
36
36
  import { FOCUSABLE_POPUP_PROPS as Lt } from "./index184.js";
37
- import { Store as Ut } from "./index283.js";
37
+ import { Store as Ut } from "./index306.js";
38
38
  import { none as Ht, focusOut as qt, outsidePress as Dt } from "./index177.js";
39
39
  function Cr(Re) {
40
40
  const {
package/dist/index50.js CHANGED
@@ -1,33 +1,33 @@
1
1
  import * as M from "react";
2
- import { rectToClientRect as Jt } from "./index299.js";
3
- import { addEventListener as Qt } from "./index300.js";
4
- import { useStableCallback as te } from "./index262.js";
5
- import { ownerDocument as Tt } from "./index284.js";
6
- import { useIsoLayoutEffect as rt } from "./index261.js";
7
- import { useAnimationFrame as ee } from "./index301.js";
8
- import { useSelectRootContext as oe, useSelectFloatingContext as ne } from "./index265.js";
2
+ import { rectToClientRect as Jt } from "./index322.js";
3
+ import { addEventListener as Qt } from "./index323.js";
4
+ import { useStableCallback as te } from "./index285.js";
5
+ import { ownerDocument as Tt } from "./index307.js";
6
+ import { useIsoLayoutEffect as rt } from "./index284.js";
7
+ import { useAnimationFrame as ee } from "./index324.js";
8
+ import { useSelectRootContext as oe, useSelectFloatingContext as ne } from "./index288.js";
9
9
  import { popupStateMapping as re } from "./index173.js";
10
- import { useSelectPositionerContext as ie } from "./index295.js";
11
- import { styleDisableScrollbar as Rt } from "./index302.js";
10
+ import { useSelectPositionerContext as ie } from "./index318.js";
11
+ import { styleDisableScrollbar as Rt } from "./index325.js";
12
12
  import { transitionStatusMapping as se } from "./index174.js";
13
13
  import { useOpenChangeComplete as le } from "./index182.js";
14
14
  import { useRenderElement as ce } from "./index172.js";
15
- import { selectors as a } from "./index270.js";
16
- import { clearStyles as Ct, LIST_FUNCTIONAL_STYLES as ae } from "./index296.js";
15
+ import { selectors as a } from "./index293.js";
16
+ import { clearStyles as Ct, LIST_FUNCTIONAL_STYLES as ae } from "./index319.js";
17
17
  import { createChangeEventDetails as pe } from "./index175.js";
18
- import { useToolbarRootContext as me } from "./index303.js";
18
+ import { useToolbarRootContext as me } from "./index326.js";
19
19
  import { COMPOSITE_KEYS as ue } from "./index183.js";
20
- import { getDisabledMountTransitionStyles as ge } from "./index304.js";
21
- import { clamp as U } from "./index305.js";
22
- import { SCROLL_EDGE_TOLERANCE_PX as v, getMaxScrollOffset as fe } from "./index276.js";
23
- import { useCSPContext as he } from "./index306.js";
24
- import { useDirection as de } from "./index307.js";
20
+ import { getDisabledMountTransitionStyles as ge } from "./index327.js";
21
+ import { clamp as U } from "./index328.js";
22
+ import { SCROLL_EDGE_TOLERANCE_PX as v, getMaxScrollOffset as fe } from "./index299.js";
23
+ import { useCSPContext as he } from "./index329.js";
24
+ import { useDirection as de } from "./index330.js";
25
25
  import { j as Ht } from "./index30.js";
26
- import { useStore as d } from "./index277.js";
27
- import { getWindow as it } from "./index308.js";
26
+ import { useStore as d } from "./index300.js";
27
+ import { getWindow as it } from "./index331.js";
28
28
  import { FloatingFocusManager as ye } from "./index185.js";
29
- import { platform as xe } from "./index309.js";
30
- import { webkit as Se } from "./index310.js";
29
+ import { platform as xe } from "./index332.js";
30
+ import { webkit as Se } from "./index333.js";
31
31
  import { windowResize as Te } from "./index177.js";
32
32
  const Re = {
33
33
  ...re,
package/dist/index51.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as r from "react";
2
- import { SelectGroupContext as c } from "./index314.js";
2
+ import { SelectGroupContext as c } from "./index337.js";
3
3
  import { useRenderElement as p } from "./index172.js";
4
4
  import { j as m } from "./index30.js";
5
5
  const u = /* @__PURE__ */ r.forwardRef(function(t, s) {
package/dist/index52.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import * as s from "react";
2
- import { useIsoLayoutEffect as U } from "./index261.js";
3
- import { useSelectRootContext as Q } from "./index265.js";
4
- import { useCompositeListItem as X, IndexGuessBehavior as Z } from "./index311.js";
2
+ import { useIsoLayoutEffect as U } from "./index284.js";
3
+ import { useSelectRootContext as Q } from "./index288.js";
4
+ import { useCompositeListItem as X, IndexGuessBehavior as Z } from "./index334.js";
5
5
  import { useRenderElement as $ } from "./index172.js";
6
- import { SelectItemContext as ee } from "./index312.js";
7
- import { selectors as a } from "./index270.js";
6
+ import { SelectItemContext as ee } from "./index335.js";
7
+ import { selectors as a } from "./index293.js";
8
8
  import { createChangeEventDetails as M } from "./index175.js";
9
- import { compareItemEquality as te, removeItem as re } from "./index273.js";
10
- import { isVirtualClick as oe } from "./index313.js";
9
+ import { compareItemEquality as te, removeItem as re } from "./index296.js";
10
+ import { isVirtualClick as oe } from "./index336.js";
11
11
  import { j as ne } from "./index30.js";
12
- import { useStore as f } from "./index277.js";
12
+ import { useStore as f } from "./index300.js";
13
13
  import { useButton as se } from "./index176.js";
14
14
  import { itemPress as g } from "./index177.js";
15
15
  const ie = /* @__PURE__ */ s.memo(/* @__PURE__ */ s.forwardRef(function(k, D) {
package/dist/index53.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as m from "react";
2
- import { useIsoLayoutEffect as n } from "./index261.js";
2
+ import { useIsoLayoutEffect as n } from "./index284.js";
3
3
  import { useBaseUiId as p } from "./index178.js";
4
- import { useSelectGroupContext as c } from "./index314.js";
4
+ import { useSelectGroupContext as c } from "./index337.js";
5
5
  import { useRenderElement as i } from "./index172.js";
6
6
  const a = /* @__PURE__ */ m.forwardRef(function(o, r) {
7
7
  const {
package/dist/index55.js CHANGED
@@ -1,24 +1,24 @@
1
1
  import * as g from "react";
2
- import { ownerDocument as se } from "./index284.js";
3
- import { useTimeout as b } from "./index285.js";
4
- import { useStableCallback as ie } from "./index262.js";
5
- import { useValueAsRef as le } from "./index263.js";
6
- import { useSelectRootContext as ae } from "./index265.js";
7
- import { useFieldRootContext as ue } from "./index266.js";
8
- import { useLabelableContext as ce } from "./index286.js";
2
+ import { ownerDocument as se } from "./index307.js";
3
+ import { useTimeout as b } from "./index308.js";
4
+ import { useStableCallback as ie } from "./index285.js";
5
+ import { useValueAsRef as le } from "./index286.js";
6
+ import { useSelectRootContext as ae } from "./index288.js";
7
+ import { useFieldRootContext as ue } from "./index289.js";
8
+ import { useLabelableContext as ce } from "./index309.js";
9
9
  import { pressableTriggerOpenStateMapping as de } from "./index173.js";
10
- import { fieldValidityMapping as pe } from "./index287.js";
10
+ import { fieldValidityMapping as pe } from "./index310.js";
11
11
  import { useRenderElement as me } from "./index172.js";
12
- import { selectors as t } from "./index270.js";
13
- import { getPseudoElementBounds as fe } from "./index288.js";
12
+ import { selectors as t } from "./index293.js";
13
+ import { getPseudoElementBounds as fe } from "./index311.js";
14
14
  import { createChangeEventDetails as B } from "./index175.js";
15
- import { useLabelableId as ge } from "./index268.js";
16
- import { resolveAriaLabelledBy as be } from "./index289.js";
17
- import { useStore as o } from "./index277.js";
15
+ import { useLabelableId as ge } from "./index291.js";
16
+ import { resolveAriaLabelledBy as be } from "./index312.js";
17
+ import { useStore as o } from "./index300.js";
18
18
  import { useButton as Se } from "./index176.js";
19
- import { mergeProps as Ee } from "./index282.js";
20
- import { getFloatingFocusElement as Te } from "./index290.js";
21
- import { contains as S } from "./index291.js";
19
+ import { mergeProps as Ee } from "./index305.js";
20
+ import { getFloatingFocusElement as Te } from "./index313.js";
21
+ import { contains as S } from "./index314.js";
22
22
  import { none as Re, cancelOpen as Me } from "./index177.js";
23
23
  const d = 2, De = 400, he = {
24
24
  ...de,
package/dist/index56.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as b from "react";
2
2
  import { useRenderElement as v } from "./index172.js";
3
- import { useSelectRootContext as L } from "./index265.js";
4
- import { resolveMultipleLabels as N, resolveSelectedLabel as V } from "./index272.js";
5
- import { selectors as s } from "./index270.js";
6
- import { useStore as r } from "./index277.js";
3
+ import { useSelectRootContext as L } from "./index288.js";
4
+ import { resolveMultipleLabels as N, resolveSelectedLabel as V } from "./index295.js";
5
+ import { selectors as s } from "./index293.js";
6
+ import { useStore as r } from "./index300.js";
7
7
  const y = {
8
8
  value: () => null
9
9
  }, R = /* @__PURE__ */ b.forwardRef(function(c, m) {
package/dist/index57.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as s from "react";
2
2
  import { useRenderElement as p } from "./index172.js";
3
- import { useSelectRootContext as c } from "./index265.js";
3
+ import { useSelectRootContext as c } from "./index288.js";
4
4
  import { triggerOpenStateMapping as i } from "./index173.js";
5
- import { selectors as m } from "./index270.js";
6
- import { useStore as a } from "./index277.js";
5
+ import { selectors as m } from "./index293.js";
6
+ import { useStore as a } from "./index300.js";
7
7
  const l = /* @__PURE__ */ s.forwardRef(function(e, t) {
8
8
  const {
9
9
  render: d,
package/dist/index58.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import * as u from "react";
2
- import { useStableCallback as S } from "./index262.js";
3
- import { useSelectRootContext as N } from "./index265.js";
4
- import { useSelectPositionerContext as L } from "./index295.js";
2
+ import { useStableCallback as S } from "./index285.js";
3
+ import { useSelectRootContext as N } from "./index288.js";
4
+ import { useSelectPositionerContext as L } from "./index318.js";
5
5
  import { useRenderElement as b } from "./index172.js";
6
- import { styleDisableScrollbar as h } from "./index302.js";
7
- import { LIST_FUNCTIONAL_STYLES as E } from "./index296.js";
8
- import { selectors as t } from "./index270.js";
9
- import { useStore as o } from "./index277.js";
6
+ import { styleDisableScrollbar as h } from "./index325.js";
7
+ import { LIST_FUNCTIONAL_STYLES as E } from "./index319.js";
8
+ import { selectors as t } from "./index293.js";
9
+ import { useStore as o } from "./index300.js";
10
10
  const R = /* @__PURE__ */ u.forwardRef(function(s, l) {
11
11
  const {
12
12
  render: g,
package/dist/index59.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as m from "react";
2
- import { SelectPortalContext as i } from "./index292.js";
3
- import { useSelectRootContext as u } from "./index265.js";
4
- import { selectors as t } from "./index270.js";
2
+ import { SelectPortalContext as i } from "./index315.js";
3
+ import { useSelectRootContext as u } from "./index288.js";
4
+ import { selectors as t } from "./index293.js";
5
5
  import { j as r } from "./index30.js";
6
- import { useStore as e } from "./index277.js";
6
+ import { useStore as e } from "./index300.js";
7
7
  import { FloatingPortal as f } from "./index188.js";
8
8
  const a = /* @__PURE__ */ m.forwardRef(function(n, s) {
9
9
  const {