@okam/stack-ui 1.44.1 → 1.44.3

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 (277) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/index145.js +1 -1
  3. package/index145.mjs +1 -1
  4. package/index149.js +1 -1
  5. package/index149.mjs +3 -3
  6. package/index155.js +1 -1
  7. package/index155.mjs +1 -1
  8. package/index157.js +1 -1
  9. package/index157.mjs +4 -4
  10. package/index158.js +1 -1
  11. package/index158.mjs +2 -2
  12. package/index159.js +1 -1
  13. package/index159.mjs +1 -1
  14. package/index160.js +1 -1
  15. package/index160.mjs +1 -1
  16. package/index161.js +1 -1
  17. package/index161.mjs +2 -2
  18. package/index165.js +1 -1
  19. package/index165.mjs +2 -2
  20. package/index166.js +1 -1
  21. package/index166.mjs +4 -4
  22. package/index167.js +1 -1
  23. package/index167.mjs +3 -3
  24. package/index168.js +1 -1
  25. package/index168.mjs +9 -9
  26. package/index169.js +1 -1
  27. package/index169.mjs +2 -2
  28. package/index174.js +1 -1
  29. package/index174.mjs +2 -2
  30. package/index179.js +1 -1
  31. package/index179.mjs +4 -4
  32. package/index180.js +1 -1
  33. package/index180.mjs +1 -1
  34. package/index181.js +1 -1
  35. package/index181.mjs +2 -2
  36. package/index182.js +1 -1
  37. package/index182.mjs +3 -3
  38. package/index185.js +1 -1
  39. package/index185.mjs +3 -3
  40. package/index186.js +1 -1
  41. package/index186.mjs +23 -23
  42. package/index187.js +1 -1
  43. package/index187.mjs +12 -12
  44. package/index188.js +1 -1
  45. package/index188.mjs +5 -2024
  46. package/index189.js +2 -1
  47. package/index189.mjs +48 -58
  48. package/index190.js +1 -1
  49. package/index190.mjs +2010 -174
  50. package/index191.js +1 -1
  51. package/index191.mjs +56 -200
  52. package/index192.js +1 -1
  53. package/index192.mjs +186 -62
  54. package/index193.js +1 -1
  55. package/index193.mjs +189 -129
  56. package/index194.js +1 -1
  57. package/index194.mjs +55 -115
  58. package/index195.js +1 -1
  59. package/index195.mjs +127 -208
  60. package/index196.js +1 -1
  61. package/index196.mjs +107 -173
  62. package/index197.js +1 -1
  63. package/index197.mjs +215 -60
  64. package/index198.js +1 -1
  65. package/index198.mjs +178 -267
  66. package/index199.js +1 -1
  67. package/index199.mjs +63 -92
  68. package/index200.js +1 -1
  69. package/index200.mjs +254 -163
  70. package/index201.js +1 -1
  71. package/index201.mjs +91 -77
  72. package/index202.js +1 -1
  73. package/index202.mjs +183 -53
  74. package/index203.js +1 -1
  75. package/index203.mjs +72 -114
  76. package/index204.js +1 -1
  77. package/index204.mjs +51 -109
  78. package/index205.js +1 -1
  79. package/index205.mjs +112 -108
  80. package/index206.js +1 -1
  81. package/index206.mjs +109 -65
  82. package/index207.js +1 -1
  83. package/index207.mjs +117 -105
  84. package/index208.js +1 -1
  85. package/index208.mjs +68 -48
  86. package/index209.js +1 -1
  87. package/index209.mjs +108 -91
  88. package/index210.js +1 -1
  89. package/index210.mjs +36 -54
  90. package/index211.js +1 -1
  91. package/index211.mjs +78 -41
  92. package/index212.js +1 -1
  93. package/index212.mjs +52 -81
  94. package/index213.js +1 -5
  95. package/index213.mjs +42 -66
  96. package/index214.js +1 -1
  97. package/index214.mjs +100 -12
  98. package/index215.js +5 -1
  99. package/index215.mjs +80 -5
  100. package/index216.js +1 -2
  101. package/index216.mjs +11 -49
  102. package/index217.js +1 -1
  103. package/index217.mjs +124 -9
  104. package/index218.js +1 -1
  105. package/index218.mjs +132 -56
  106. package/index219.js +1 -1
  107. package/index219.mjs +73 -131
  108. package/index220.js +1 -1
  109. package/index220.mjs +14 -14
  110. package/index221.js +1 -1
  111. package/index221.mjs +85 -33
  112. package/index222.js +1 -1
  113. package/index222.mjs +104 -229
  114. package/index223.js +1 -1
  115. package/index223.mjs +4 -125
  116. package/index224.js +1 -1
  117. package/index224.mjs +3 -72
  118. package/index225.js +1 -7
  119. package/index225.mjs +117 -431
  120. package/index226.js +1 -1
  121. package/index226.mjs +29 -58
  122. package/index227.js +1 -1
  123. package/index227.mjs +51 -54
  124. package/index228.js +1 -1
  125. package/index228.mjs +45 -4
  126. package/index229.js +1 -1
  127. package/index229.mjs +36 -24
  128. package/index230.js +1 -1
  129. package/index230.mjs +106 -40
  130. package/index231.js +1 -1
  131. package/index231.mjs +77 -5
  132. package/index232.js +1 -1
  133. package/index232.mjs +100 -23
  134. package/index233.js +1 -1
  135. package/index233.mjs +98 -13
  136. package/index234.js +1 -1
  137. package/index234.mjs +130 -4
  138. package/index235.js +1 -1
  139. package/index235.mjs +190 -14
  140. package/index236.js +1 -1
  141. package/index236.mjs +4 -43
  142. package/index237.js +1 -1
  143. package/index237.mjs +25 -43
  144. package/index238.js +1 -1
  145. package/index238.mjs +44 -29
  146. package/index239.js +1 -1
  147. package/index239.mjs +4 -30
  148. package/index240.js +1 -1
  149. package/index240.mjs +24 -10
  150. package/index241.js +1 -1
  151. package/index241.mjs +11 -28
  152. package/index242.js +1 -1
  153. package/index242.mjs +4 -15
  154. package/index243.js +1 -1
  155. package/index243.mjs +14 -9
  156. package/index244.js +1 -1
  157. package/index244.mjs +42 -6
  158. package/index245.js +1 -1
  159. package/index245.mjs +58 -5
  160. package/index246.js +1 -1
  161. package/index246.mjs +43 -7
  162. package/index247.js +1 -1
  163. package/index247.mjs +30 -27
  164. package/index248.js +1 -1
  165. package/index248.mjs +29 -15
  166. package/index249.js +1 -1
  167. package/index249.mjs +14 -44
  168. package/index250.js +1 -1
  169. package/index250.mjs +10 -8
  170. package/index251.js +1 -1
  171. package/index251.mjs +27 -14
  172. package/index252.js +1 -1
  173. package/index252.mjs +16 -3
  174. package/index253.js +1 -1
  175. package/index253.mjs +9 -19
  176. package/index254.js +1 -1
  177. package/index254.mjs +6 -34
  178. package/index255.js +1 -1
  179. package/index255.mjs +5 -22
  180. package/index256.js +1 -1
  181. package/index256.mjs +7 -27
  182. package/index257.js +1 -1
  183. package/index257.mjs +27 -128
  184. package/index258.js +1 -1
  185. package/index258.mjs +17 -190
  186. package/index259.js +1 -1
  187. package/index259.mjs +43 -8
  188. package/index260.js +1 -1
  189. package/index260.mjs +8 -3
  190. package/index261.js +1 -1
  191. package/index261.mjs +15 -35
  192. package/index262.js +1 -1
  193. package/index262.mjs +3 -6
  194. package/index263.js +1 -1
  195. package/index263.mjs +19 -29
  196. package/index264.js +1 -1
  197. package/index264.mjs +34 -6
  198. package/index265.js +1 -1
  199. package/index265.mjs +20 -122
  200. package/index266.js +1 -1
  201. package/index266.mjs +8 -133
  202. package/index267.js +1 -1
  203. package/index267.mjs +3 -75
  204. package/index268.js +1 -1
  205. package/index268.mjs +36 -14
  206. package/index269.js +1 -1
  207. package/index269.mjs +5 -95
  208. package/index270.js +1 -1
  209. package/index270.mjs +28 -105
  210. package/index271.js +1 -1
  211. package/index271.mjs +6 -4
  212. package/index272.js +1 -1
  213. package/index272.mjs +9 -3
  214. package/index273.js +1 -1
  215. package/index273.mjs +130 -122
  216. package/index274.js +1 -1
  217. package/index274.mjs +37 -23
  218. package/index275.js +1 -1
  219. package/index275.mjs +231 -51
  220. package/index276.js +1 -1
  221. package/index276.mjs +122 -41
  222. package/index277.js +1 -1
  223. package/index277.mjs +70 -35
  224. package/index278.js +7 -1
  225. package/index278.mjs +429 -103
  226. package/index279.js +1 -1
  227. package/index279.mjs +58 -77
  228. package/index280.js +1 -1
  229. package/index280.mjs +52 -99
  230. package/index281.js +1 -1
  231. package/index281.mjs +27 -97
  232. package/index282.js +1 -1
  233. package/index282.mjs +28 -141
  234. package/index283.js +1 -1
  235. package/index283.mjs +140 -209
  236. package/index284.js +1 -1
  237. package/index284.mjs +213 -22
  238. package/index285.js +1 -1
  239. package/index285.mjs +20 -47
  240. package/index286.js +1 -1
  241. package/index286.mjs +45 -42
  242. package/index287.js +1 -6
  243. package/index287.mjs +41 -108
  244. package/index288.js +6 -1
  245. package/index288.mjs +114 -72
  246. package/index289.js +1 -1
  247. package/index289.mjs +72 -75
  248. package/index290.js +1 -1
  249. package/index290.mjs +74 -7
  250. package/index291.js +1 -1
  251. package/index291.mjs +7 -11
  252. package/index292.js +1 -1
  253. package/index292.mjs +10 -30
  254. package/index293.js +1 -1
  255. package/index293.mjs +4 -3
  256. package/index294.js +1 -1
  257. package/index294.mjs +3 -4
  258. package/index329.js +1 -1
  259. package/index329.mjs +1 -1
  260. package/index331.js +1 -1
  261. package/index331.mjs +4 -4
  262. package/index332.js +1 -1
  263. package/index332.mjs +4 -4
  264. package/index333.js +1 -1
  265. package/index333.mjs +5 -5
  266. package/index335.js +1 -1
  267. package/index335.mjs +2 -2
  268. package/index336.js +1 -1
  269. package/index336.mjs +4 -4
  270. package/index339.js +1 -1
  271. package/index339.mjs +3 -3
  272. package/index342.js +1 -1
  273. package/index342.mjs +1 -1
  274. package/index345.js +1 -1
  275. package/index345.mjs +1 -1
  276. package/logger.d.ts +2 -2
  277. package/package.json +2 -2
package/index249.mjs CHANGED
@@ -1,47 +1,17 @@
1
- import { getScrollParents as I } from "./index246.mjs";
2
- function W(o, e) {
3
- let l = L(o, e, "left"), d = L(o, e, "top"), t = e.offsetWidth, s = e.offsetHeight, f = o.scrollLeft, r = o.scrollTop, { borderTopWidth: i, borderLeftWidth: c, scrollPaddingTop: n, scrollPaddingRight: a, scrollPaddingBottom: T, scrollPaddingLeft: g } = getComputedStyle(o), x = f + parseInt(c, 10), u = r + parseInt(i, 10), p = x + o.clientWidth, b = u + o.clientHeight, P = parseInt(n, 10) || 0, v = parseInt(T, 10) || 0, h = parseInt(a, 10) || 0, $ = parseInt(g, 10) || 0;
4
- l <= f + $ ? f = l - parseInt(c, 10) - $ : l + t > p - h && (f += l + t - p + h), d <= u + P ? r = d - parseInt(i, 10) - P : d + s > b - v && (r += d + s - b + v), o.scrollLeft = f, o.scrollTop = r;
5
- }
6
- function L(o, e, l) {
7
- const d = l === "left" ? "offsetLeft" : "offsetTop";
8
- let t = 0;
9
- for (; e.offsetParent && (t += e[d], e.offsetParent !== o); ) {
10
- if (e.offsetParent.contains(o)) {
11
- t -= o[d];
12
- break;
13
- }
14
- e = e.offsetParent;
15
- }
16
- return t;
17
- }
18
- function B(o, e) {
19
- if (o && document.contains(o)) {
20
- let f = document.scrollingElement || document.documentElement, r = window.getComputedStyle(f).overflow === "hidden";
21
- if (r) {
22
- let i = I(o);
23
- r || i.push(f);
24
- for (let c of i) W(c, o);
25
- } else {
26
- var l;
27
- let { left: i, top: c } = o.getBoundingClientRect();
28
- o == null || (l = o.scrollIntoView) === null || l === void 0 || l.call(o, {
29
- block: "nearest"
30
- });
31
- let { left: n, top: a } = o.getBoundingClientRect();
32
- if (Math.abs(i - n) > 1 || Math.abs(c - a) > 1) {
33
- var d, t, s;
34
- e == null || (t = e.containingElement) === null || t === void 0 || (d = t.scrollIntoView) === null || d === void 0 || d.call(t, {
35
- block: "center",
36
- inline: "center"
37
- }), (s = o.scrollIntoView) === null || s === void 0 || s.call(o, {
38
- block: "nearest"
39
- });
40
- }
41
- }
42
- }
1
+ import { useId as b } from "./index185.mjs";
2
+ function t(r, a) {
3
+ let { id: i, "aria-label": l, "aria-labelledby": e } = r;
4
+ return i = b(i), e && l ? e = [
5
+ .../* @__PURE__ */ new Set([
6
+ i,
7
+ ...e.trim().split(/\s+/)
8
+ ])
9
+ ].join(" ") : e && (e = e.trim().split(/\s+/).join(" ")), !l && !e && a && (l = a), {
10
+ id: i,
11
+ "aria-label": l,
12
+ "aria-labelledby": e
13
+ };
43
14
  }
44
15
  export {
45
- W as scrollIntoView,
46
- B as scrollIntoViewport
16
+ t as useLabels
47
17
  };
package/index250.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index237.js");function t(i){return i.pointerType===""&&i.isTrusted?!0:r.isAndroid()&&i.pointerType?i.type==="click"&&i.buttons===1:i.detail===0&&!i.pointerType}function o(i){return!r.isAndroid()&&i.width===0&&i.height===0||i.width===1&&i.height===1&&i.pressure===0&&i.detail===0&&i.pointerType==="mouse"}exports.isVirtualClick=t;exports.isVirtualPointerEvent=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index236.js"),f=require("react");function a(c,t){const e=f.useRef(!0),u=f.useRef(null);r.useLayoutEffect(()=>(e.current=!0,()=>{e.current=!1}),[]),r.useLayoutEffect(()=>{e.current?e.current=!1:(!u.current||t.some((s,o)=>!Object.is(s,u[o])))&&c(),u.current=t},t)}exports.useUpdateLayoutEffect=a;
package/index250.mjs CHANGED
@@ -1,11 +1,13 @@
1
- import { isAndroid as i } from "./index237.mjs";
2
- function o(r) {
3
- return r.pointerType === "" && r.isTrusted ? !0 : i() && r.pointerType ? r.type === "click" && r.buttons === 1 : r.detail === 0 && !r.pointerType;
4
- }
5
- function p(r) {
6
- return !i() && r.width === 0 && r.height === 0 || r.width === 1 && r.height === 1 && r.pressure === 0 && r.detail === 0 && r.pointerType === "mouse";
1
+ import { useLayoutEffect as f } from "./index236.mjs";
2
+ import { useRef as u } from "react";
3
+ function i(c, r) {
4
+ const t = u(!0), e = u(null);
5
+ f(() => (t.current = !0, () => {
6
+ t.current = !1;
7
+ }), []), f(() => {
8
+ t.current ? t.current = !1 : (!e.current || r.some((a, o) => !Object.is(a, e[o]))) && c(), e.current = r;
9
+ }, r);
7
10
  }
8
11
  export {
9
- o as isVirtualClick,
10
- p as isVirtualPointerEvent
12
+ i as useUpdateLayoutEffect
11
13
  };
package/index251.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index242.js"),u=require("react");function v(t,d,n){let o=i.useEffectEvent(()=>{n&&n(d)});u.useEffect(()=>{var r;let e=t==null||(r=t.current)===null||r===void 0?void 0:r.form;return e==null||e.addEventListener("reset",o),()=>{e==null||e.removeEventListener("reset",o)}},[t])}exports.useFormReset=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index252.js"),d=require("react");function v(){return typeof window.ResizeObserver<"u"}function b(i){const{ref:e,box:t,onResize:o}=i;let n=u.useEffectEvent(o);d.useEffect(()=>{let r=e==null?void 0:e.current;if(r)if(v()){const s=new window.ResizeObserver(f=>{f.length&&n()});return s.observe(r,{box:t}),()=>{r&&s.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[e,t])}exports.useResizeObserver=b;
package/index251.mjs CHANGED
@@ -1,19 +1,32 @@
1
- import { useEffectEvent as n } from "./index242.mjs";
2
- import { useEffect as v } from "react";
3
- function l(t, i, o) {
4
- let d = n(() => {
5
- o && o(i);
6
- });
7
- v(() => {
8
- var r;
9
- let e = t == null || (r = t.current) === null || r === void 0 ? void 0 : r.form;
10
- return e == null || e.addEventListener("reset", d), () => {
11
- e == null || e.removeEventListener("reset", d);
12
- };
1
+ import { useEffectEvent as a } from "./index252.mjs";
2
+ import { useEffect as d } from "react";
3
+ function v() {
4
+ return typeof window.ResizeObserver < "u";
5
+ }
6
+ function c(i) {
7
+ const { ref: e, box: s, onResize: o } = i;
8
+ let n = a(o);
9
+ d(() => {
10
+ let r = e == null ? void 0 : e.current;
11
+ if (r)
12
+ if (v()) {
13
+ const t = new window.ResizeObserver((f) => {
14
+ f.length && n();
15
+ });
16
+ return t.observe(r, {
17
+ box: s
18
+ }), () => {
19
+ r && t.unobserve(r);
20
+ };
21
+ } else
22
+ return window.addEventListener("resize", n, !1), () => {
23
+ window.removeEventListener("resize", n, !1);
24
+ };
13
25
  }, [
14
- t
26
+ e,
27
+ s
15
28
  ]);
16
29
  }
17
30
  export {
18
- l as useFormReset
31
+ c as useResizeObserver
19
32
  };
package/index252.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c="react-aria-clear-focus",e="react-aria-focus";exports.CLEAR_FOCUS_EVENT=c;exports.FOCUS_EVENT=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index236.js"),c=require("react");var t;const f=(t=c.useInsertionEffect)!==null&&t!==void 0?t:n.useLayoutEffect;function o(r){const u=c.useRef(null);return f(()=>{u.current=r},[r]),c.useCallback((...a)=>{const e=u.current;return e==null?void 0:e(...a)},[])}exports.useEffectEvent=o;
package/index252.mjs CHANGED
@@ -1,5 +1,18 @@
1
- const a = "react-aria-clear-focus", c = "react-aria-focus";
1
+ import { useLayoutEffect as f } from "./index236.mjs";
2
+ import o, { useRef as u, useCallback as n } from "react";
3
+ var a;
4
+ const s = (a = o.useInsertionEffect) !== null && a !== void 0 ? a : f;
5
+ function d(c) {
6
+ const t = u(null);
7
+ return s(() => {
8
+ t.current = c;
9
+ }, [
10
+ c
11
+ ]), n((...r) => {
12
+ const e = t.current;
13
+ return e == null ? void 0 : e(...r);
14
+ }, []);
15
+ }
2
16
  export {
3
- a as CLEAR_FOCUS_EVENT,
4
- c as FOCUS_EVENT
17
+ d as useEffectEvent
5
18
  };
package/index253.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index237.js");function t(e){return n.isMac()?e.metaKey:e.ctrlKey}const a=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function o(e){return e instanceof HTMLInputElement&&!a.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}exports.isCtrlKeyPressed=t;exports.willOpenKeyboard=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index236.js");function f(e,r){u.useLayoutEffect(()=>{if(e&&e.ref&&r)return e.ref.current=r.current,()=>{e.ref&&(e.ref.current=null)}})}exports.useSyncRef=f;
package/index253.mjs CHANGED
@@ -1,22 +1,12 @@
1
- import { isMac as n } from "./index237.mjs";
2
- function o(e) {
3
- return n() ? e.metaKey : e.ctrlKey;
4
- }
5
- const a = /* @__PURE__ */ new Set([
6
- "checkbox",
7
- "radio",
8
- "range",
9
- "color",
10
- "file",
11
- "image",
12
- "button",
13
- "submit",
14
- "reset"
15
- ]);
16
- function r(e) {
17
- return e instanceof HTMLInputElement && !a.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
1
+ import { useLayoutEffect as f } from "./index236.mjs";
2
+ function u(r, e) {
3
+ f(() => {
4
+ if (r && r.ref && e)
5
+ return r.ref.current = e.current, () => {
6
+ r.ref && (r.ref.current = null);
7
+ };
8
+ });
18
9
  }
19
10
  export {
20
- o as isCtrlKeyPressed,
21
- r as willOpenKeyboard
11
+ u as useSyncRef
22
12
  };
package/index254.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index255.js"),t=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"],o=t.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";t.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const a=t.join(':not([hidden]):not([tabindex="-1"]),');function d(e){return e.matches(o)&&n.isElementVisible(e)&&!i(e)}function s(e){return e.matches(a)&&n.isElementVisible(e)&&!i(e)}function i(e){let b=e;for(;b!=null;){if(b instanceof b.ownerDocument.defaultView.HTMLElement&&b.inert)return!0;b=b.parentElement}return!1}exports.isFocusable=d;exports.isTabbable=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index255.js");function r(n,l){let e=n;for(t.isScrollable(e,l)&&(e=e.parentElement);e&&!t.isScrollable(e,l);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}exports.getScrollParent=r;
package/index254.mjs CHANGED
@@ -1,37 +1,9 @@
1
- import { isElementVisible as n } from "./index255.mjs";
2
- const t = [
3
- "input:not([disabled]):not([type=hidden])",
4
- "select:not([disabled])",
5
- "textarea:not([disabled])",
6
- "button:not([disabled])",
7
- "a[href]",
8
- "area[href]",
9
- "summary",
10
- "iframe",
11
- "object",
12
- "embed",
13
- "audio[controls]",
14
- "video[controls]",
15
- '[contenteditable]:not([contenteditable^="false"])',
16
- "permission"
17
- ], o = t.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
18
- t.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
19
- const i = t.join(':not([hidden]):not([tabindex="-1"]),');
20
- function r(b) {
21
- return b.matches(o) && n(b) && !a(b);
22
- }
23
- function s(b) {
24
- return b.matches(i) && n(b) && !a(b);
25
- }
26
- function a(b) {
27
- let e = b;
28
- for (; e != null; ) {
29
- if (e instanceof e.ownerDocument.defaultView.HTMLElement && e.inert) return !0;
30
- e = e.parentElement;
31
- }
32
- return !1;
1
+ import { isScrollable as l } from "./index255.mjs";
2
+ function r(n, t) {
3
+ let e = n;
4
+ for (l(e, t) && (e = e.parentElement); e && !l(e, t); ) e = e.parentElement;
5
+ return e || document.scrollingElement || document.documentElement;
33
6
  }
34
7
  export {
35
- r as isFocusable,
36
- s as isTabbable
8
+ r as getScrollParent
37
9
  };
package/index255.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index233.js"),u=typeof Element<"u"&&"checkVisibility"in Element.prototype;function l(i){const t=c.getOwnerWindow(i);if(!(i instanceof t.HTMLElement)&&!(i instanceof t.SVGElement))return!1;let{display:o,visibility:a}=i.style,e=o!=="none"&&a!=="hidden"&&a!=="collapse";if(e){const{getComputedStyle:n}=i.ownerDocument.defaultView;let{display:d,visibility:s}=n(i);e=d!=="none"&&s!=="hidden"&&s!=="collapse"}return e}function p(i,t){return!i.hasAttribute("hidden")&&!i.hasAttribute("data-react-aria-prevent-focus")&&(i.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?i.hasAttribute("open"):!0)}function r(i,t){return u?i.checkVisibility({visibilityProperty:!0})&&!i.closest("[data-react-aria-prevent-focus]"):i.nodeName!=="#comment"&&l(i)&&p(i,t)&&(!i.parentElement||r(i.parentElement,i))}exports.isElementVisible=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(e,r){if(!e)return!1;let l=window.getComputedStyle(e),t=/(auto|scroll)/.test(l.overflow+l.overflowX+l.overflowY);return t&&r&&(t=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),t}exports.isScrollable=i;
package/index255.mjs CHANGED
@@ -1,25 +1,8 @@
1
- import { getOwnerWindow as d } from "./index233.mjs";
2
- const c = typeof Element < "u" && "checkVisibility" in Element.prototype;
3
- function p(i) {
4
- const t = d(i);
5
- if (!(i instanceof t.HTMLElement) && !(i instanceof t.SVGElement)) return !1;
6
- let { display: o, visibility: e } = i.style, a = o !== "none" && e !== "hidden" && e !== "collapse";
7
- if (a) {
8
- const { getComputedStyle: r } = i.ownerDocument.defaultView;
9
- let { display: n, visibility: s } = r(i);
10
- a = n !== "none" && s !== "hidden" && s !== "collapse";
11
- }
12
- return a;
13
- }
14
- function u(i, t) {
15
- return !i.hasAttribute("hidden") && // Ignore HiddenSelect when tree walking.
16
- !i.hasAttribute("data-react-aria-prevent-focus") && (i.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? i.hasAttribute("open") : !0);
17
- }
18
- function f(i, t) {
19
- return c ? i.checkVisibility({
20
- visibilityProperty: !0
21
- }) && !i.closest("[data-react-aria-prevent-focus]") : i.nodeName !== "#comment" && p(i) && u(i, t) && (!i.parentElement || f(i.parentElement, i));
1
+ function c(l, r) {
2
+ if (!l) return !1;
3
+ let t = window.getComputedStyle(l), e = /(auto|scroll)/.test(t.overflow + t.overflowX + t.overflowY);
4
+ return e && r && (e = l.scrollHeight !== l.clientHeight || l.scrollWidth !== l.clientWidth), e;
22
5
  }
23
6
  export {
24
- f as isElementVisible
7
+ c as isScrollable
25
8
  };
package/index256.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");var u;const E=typeof document<"u"?(u=e.useInsertionEffect)!==null&&u!==void 0?u:e.useLayoutEffect:()=>{};function R(c,d,n){let[f,i]=e.useState(c||d),o=e.useRef(f),s=e.useRef(c!==void 0),r=c!==void 0;e.useEffect(()=>{let t=s.current;t!==r&&process.env.NODE_ENV!=="production"&&console.warn(`WARN: A component changed from ${t?"controlled":"uncontrolled"} to ${r?"controlled":"uncontrolled"}.`),s.current=r},[r]);let a=r?c:f;E(()=>{o.current=a});let[,$]=e.useReducer(()=>({}),{}),b=e.useCallback((t,...p)=>{let l=typeof t=="function"?t(o.current):t;Object.is(o.current,l)||(o.current=l,i(l),$(),n==null||n(l,...p))},[n]);return[a,b]}exports.useControlledState=R;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index255.js");function r(e,c){const t=[];for(;e&&e!==document.documentElement;)l.isScrollable(e,c)&&t.push(e),e=e.parentElement;return t}exports.getScrollParents=r;
package/index256.mjs CHANGED
@@ -1,30 +1,10 @@
1
- import s, { useState as R, useRef as d, useEffect as V, useReducer as m, useCallback as _ } from "react";
2
- var l;
3
- const y = typeof document < "u" ? (l = s.useInsertionEffect) !== null && l !== void 0 ? l : s.useLayoutEffect : () => {
4
- };
5
- function w(r, i, o) {
6
- let [u, $] = R(r || i), c = d(u), f = d(r !== void 0), t = r !== void 0;
7
- V(() => {
8
- let e = f.current;
9
- e !== t && process.env.NODE_ENV !== "production" && console.warn(`WARN: A component changed from ${e ? "controlled" : "uncontrolled"} to ${t ? "controlled" : "uncontrolled"}.`), f.current = t;
10
- }, [
11
- t
12
- ]);
13
- let a = t ? r : u;
14
- y(() => {
15
- c.current = a;
16
- });
17
- let [, p] = m(() => ({}), {}), E = _((e, ...b) => {
18
- let n = typeof e == "function" ? e(c.current) : e;
19
- Object.is(c.current, n) || (c.current = n, $(n), p(), o == null || o(n, ...b));
20
- }, [
21
- o
22
- ]);
23
- return [
24
- a,
25
- E
26
- ];
1
+ import { isScrollable as r } from "./index255.mjs";
2
+ function s(e, t) {
3
+ const c = [];
4
+ for (; e && e !== document.documentElement; )
5
+ r(e, t) && c.push(e), e = e.parentElement;
6
+ return c;
27
7
  }
28
8
  export {
29
- w as useControlledState
9
+ s as getScrollParents
30
10
  };
package/index257.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function o(e,n){e===void 0&&(e={}),n===void 0&&(n={}),Object.keys(n).forEach(t=>{typeof e[t]>"u"?e[t]=n[t]:r(n[t])&&r(e[t])&&Object.keys(n[t]).length>0&&o(e[t],n[t])})}const u={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function i(){const e=typeof document<"u"?document:{};return o(e,u),e}const c={document:u,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function s(){const e=typeof window<"u"?window:{};return o(e,c),e}exports.a=s;exports.g=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index236.js"),f=require("react");let l=0;const r=new Map;function i(t){let[u,a]=f.useState();return o.useLayoutEffect(()=>{if(!t)return;let e=r.get(t);if(e)a(e.element.id);else{let d=`react-aria-description-${l++}`;a(d);let n=document.createElement("div");n.id=d,n.style.display="none",n.textContent=t,document.body.appendChild(n),e={refCount:0,element:n},r.set(t,e)}return e.refCount++,()=>{e&&--e.refCount===0&&(e.element.remove(),r.delete(t))}},[t]),{"aria-describedby":t?u:void 0}}exports.useDescription=i;
package/index257.mjs CHANGED
@@ -1,133 +1,32 @@
1
- function r(e) {
2
- return e !== null && typeof e == "object" && "constructor" in e && e.constructor === Object;
3
- }
4
- function o(e, n) {
5
- e === void 0 && (e = {}), n === void 0 && (n = {}), Object.keys(n).forEach((t) => {
6
- typeof e[t] > "u" ? e[t] = n[t] : r(n[t]) && r(e[t]) && Object.keys(n[t]).length > 0 && o(e[t], n[t]);
7
- });
8
- }
9
- const u = {
10
- body: {},
11
- addEventListener() {
12
- },
13
- removeEventListener() {
14
- },
15
- activeElement: {
16
- blur() {
17
- },
18
- nodeName: ""
19
- },
20
- querySelector() {
21
- return null;
22
- },
23
- querySelectorAll() {
24
- return [];
25
- },
26
- getElementById() {
27
- return null;
28
- },
29
- createEvent() {
30
- return {
31
- initEvent() {
32
- }
33
- };
34
- },
35
- createElement() {
36
- return {
37
- children: [],
38
- childNodes: [],
39
- style: {},
40
- setAttribute() {
41
- },
42
- getElementsByTagName() {
43
- return [];
44
- }
45
- };
46
- },
47
- createElementNS() {
48
- return {};
49
- },
50
- importNode() {
51
- return null;
52
- },
53
- location: {
54
- hash: "",
55
- host: "",
56
- hostname: "",
57
- href: "",
58
- origin: "",
59
- pathname: "",
60
- protocol: "",
61
- search: ""
62
- }
63
- };
64
- function c() {
65
- const e = typeof document < "u" ? document : {};
66
- return o(e, u), e;
67
- }
68
- const i = {
69
- document: u,
70
- navigator: {
71
- userAgent: ""
72
- },
73
- location: {
74
- hash: "",
75
- host: "",
76
- hostname: "",
77
- href: "",
78
- origin: "",
79
- pathname: "",
80
- protocol: "",
81
- search: ""
82
- },
83
- history: {
84
- replaceState() {
85
- },
86
- pushState() {
87
- },
88
- go() {
89
- },
90
- back() {
1
+ import { useLayoutEffect as o } from "./index236.mjs";
2
+ import { useState as l } from "react";
3
+ let u = 0;
4
+ const d = /* @__PURE__ */ new Map();
5
+ function s(t) {
6
+ let [f, n] = l();
7
+ return o(() => {
8
+ if (!t) return;
9
+ let e = d.get(t);
10
+ if (e)
11
+ n(e.element.id);
12
+ else {
13
+ let r = `react-aria-description-${u++}`;
14
+ n(r);
15
+ let a = document.createElement("div");
16
+ a.id = r, a.style.display = "none", a.textContent = t, document.body.appendChild(a), e = {
17
+ refCount: 0,
18
+ element: a
19
+ }, d.set(t, e);
91
20
  }
92
- },
93
- CustomEvent: function() {
94
- return this;
95
- },
96
- addEventListener() {
97
- },
98
- removeEventListener() {
99
- },
100
- getComputedStyle() {
101
- return {
102
- getPropertyValue() {
103
- return "";
104
- }
21
+ return e.refCount++, () => {
22
+ e && --e.refCount === 0 && (e.element.remove(), d.delete(t));
105
23
  };
106
- },
107
- Image() {
108
- },
109
- Date() {
110
- },
111
- screen: {},
112
- setTimeout() {
113
- },
114
- clearTimeout() {
115
- },
116
- matchMedia() {
117
- return {};
118
- },
119
- requestAnimationFrame(e) {
120
- return typeof setTimeout > "u" ? (e(), null) : setTimeout(e, 0);
121
- },
122
- cancelAnimationFrame(e) {
123
- typeof setTimeout > "u" || clearTimeout(e);
124
- }
125
- };
126
- function s() {
127
- const e = typeof window < "u" ? window : {};
128
- return o(e, i), e;
24
+ }, [
25
+ t
26
+ ]), {
27
+ "aria-describedby": t ? f : void 0
28
+ };
129
29
  }
130
30
  export {
131
- s as a,
132
- c as g
31
+ s as useDescription
133
32
  };
package/index258.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index257.js");function y(e){return e===void 0&&(e=""),e.trim().split(" ").filter(t=>!!t.trim())}function S(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function T(e,t){return t===void 0&&(t=0),setTimeout(e,t)}function b(){return Date.now()}function x(e){const t=c.a();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function E(e,t){t===void 0&&(t="x");const n=c.a();let r,i,s;const l=x(e);return n.WebKitCSSMatrix?(i=l.transform||l.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(o=>o.replace(",",".")).join(", ")),s=new n.WebKitCSSMatrix(i==="none"?"":i)):(s=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?i=s.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?i=s.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function f(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function M(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function p(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let n=1;n<arguments.length;n+=1){const r=n<0||arguments.length<=n?void 0:arguments[n];if(r!=null&&!M(r)){const i=Object.keys(Object(r)).filter(s=>t.indexOf(s)<0);for(let s=0,l=i.length;s<l;s+=1){const o=i[s],a=Object.getOwnPropertyDescriptor(r,o);a!==void 0&&a.enumerable&&(f(e[o])&&f(r[o])?r[o].__swiper__?e[o]=r[o]:p(e[o],r[o]):!f(e[o])&&f(r[o])?(e[o]={},r[o].__swiper__?e[o]=r[o]:p(e[o],r[o])):e[o]=r[o])}}}return e}function v(e,t,n){e.style.setProperty(t,n)}function C(e){let{swiper:t,targetPosition:n,side:r}=e;const i=c.a(),s=-t.translate;let l=null,o;const a=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const g=n>s?"next":"prev",h=(m,d)=>g==="next"&&m>=d||g==="prev"&&m<=d,w=()=>{o=new Date().getTime(),l===null&&(l=o);const m=Math.max(Math.min((o-l)/a,1),0),d=.5-Math.cos(m*Math.PI)/2;let u=s+d*(n-s);if(h(u,n)&&(u=n),t.wrapperEl.scrollTo({[r]:u}),h(u,n)){t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[r]:u})}),i.cancelAnimationFrame(t.cssModeFrameID);return}t.cssModeFrameID=i.requestAnimationFrame(w)};w()}function O(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function P(e,t){t===void 0&&(t="");const n=[...e.children];return e instanceof HTMLSlotElement&&n.push(...e.assignedElements()),t?n.filter(r=>r.matches(t)):n}function F(e,t){const n=t.contains(e);return!n&&t instanceof HTMLSlotElement?[...t.assignedElements()].includes(e):n}function j(e){try{console.warn(e);return}catch{}}function _(e,t){t===void 0&&(t=[]);const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:y(t)),n}function L(e){const t=c.a(),n=c.g(),r=e.getBoundingClientRect(),i=n.body,s=e.clientTop||i.clientTop||0,l=e.clientLeft||i.clientLeft||0,o=e===t?t.scrollY:e.scrollTop,a=e===t?t.scrollX:e.scrollLeft;return{top:r.top+o-s,left:r.left+a-l}}function A(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function k(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function I(e,t){return c.a().getComputedStyle(e,null).getPropertyValue(t)}function W(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function D(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function q(e,t){function n(r){r.target===e&&(t.call(e,r),e.removeEventListener("transitionend",n))}t&&e.addEventListener("transitionend",n)}function H(e,t,n){const r=c.a();return e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom"))}function K(e){return(Array.isArray(e)?e:[e]).filter(t=>!!t)}function R(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90===0?t+.001:t}exports.a=D;exports.b=L;exports.c=_;exports.d=b;exports.e=P;exports.f=H;exports.g=O;exports.h=W;exports.i=y;exports.j=E;exports.k=q;exports.l=f;exports.m=K;exports.n=T;exports.o=R;exports.p=I;exports.q=k;exports.r=A;exports.s=v;exports.t=C;exports.u=j;exports.v=F;exports.w=p;exports.x=S;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index252.js"),s=require("react");function i(e,t,n,r){let u=l.useEffectEvent(n),c=n==null;s.useEffect(()=>{if(c||!e.current)return;let f=e.current;return f.addEventListener(t,u,r),()=>{f.removeEventListener(t,u,r)}},[e,t,r,c])}exports.useEvent=i;