@okam/stack-ui 1.39.3 → 1.40.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.
- package/CHANGELOG.md +4 -0
- package/index.d.ts +1 -0
- package/index123.js +1 -1
- package/index123.mjs +1 -1
- package/index125.js +1 -1
- package/index125.mjs +2 -2
- package/index126.js +1 -1
- package/index126.mjs +1 -1
- package/index133.js +1 -1
- package/index133.mjs +4 -4
- package/index134.js +1 -1
- package/index134.mjs +2 -2
- package/index135.js +1 -1
- package/index135.mjs +1 -1
- package/index136.js +1 -1
- package/index136.mjs +1 -1
- package/index137.js +1 -1
- package/index137.mjs +3 -3
- package/index141.js +1 -1
- package/index141.mjs +2 -2
- package/index143.js +1 -1
- package/index143.mjs +2 -2
- package/index144.js +1 -1
- package/index144.mjs +5 -5
- package/index145.js +1 -1
- package/index145.mjs +3 -3
- package/index146.js +1 -1
- package/index146.mjs +9 -9
- package/index152.js +1 -1
- package/index152.mjs +2 -2
- package/index156.js +1 -1
- package/index156.mjs +1 -1
- package/index158.js +1 -1
- package/index158.mjs +1 -1
- package/index159.js +1 -1
- package/index159.mjs +1 -1
- package/index161.js +1 -1
- package/index161.mjs +3 -3
- package/index162.js +1 -1
- package/index162.mjs +12 -46
- package/index163.js +1 -2
- package/index163.mjs +46 -13
- package/index164.js +1 -1
- package/index164.mjs +11 -29
- package/index165.js +2 -1
- package/index165.mjs +30 -11
- package/index168.js +1 -1
- package/index168.mjs +1 -1
- package/index169.js +1 -1
- package/index169.mjs +120 -198
- package/index170.js +1 -1
- package/index170.mjs +27 -64
- package/index171.js +1 -1
- package/index171.mjs +70 -140
- package/index172.js +1 -1
- package/index172.mjs +373 -116
- package/index173.js +1 -1
- package/index173.mjs +44 -222
- package/index174.js +1 -1
- package/index174.mjs +4 -191
- package/index175.js +1 -1
- package/index175.mjs +21 -66
- package/index176.js +1 -1
- package/index176.mjs +46 -278
- package/index177.js +1 -1
- package/index177.mjs +4 -97
- package/index178.js +1 -1
- package/index178.mjs +24 -188
- package/index179.js +1 -1
- package/index179.mjs +12 -84
- package/index180.js +1 -1
- package/index180.mjs +4 -58
- package/index181.js +1 -1
- package/index181.mjs +14 -126
- package/index182.js +1 -1
- package/index182.mjs +38 -112
- package/index183.js +1 -1
- package/index183.mjs +55 -120
- package/index184.js +1 -1
- package/index184.mjs +41 -72
- package/index185.js +1 -1
- package/index185.mjs +25 -107
- package/index186.js +1 -1
- package/index186.mjs +31 -52
- package/index187.js +1 -1
- package/index187.mjs +13 -92
- package/index188.js +1 -1
- package/index188.mjs +10 -70
- package/index189.js +1 -1
- package/index189.mjs +27 -55
- package/index190.js +1 -1
- package/index190.mjs +8 -98
- package/index191.js +1 -5
- package/index191.mjs +6 -80
- package/index192.js +1 -1
- package/index192.mjs +5 -2025
- package/index193.js +1 -1
- package/index193.mjs +7 -59
- package/index194.js +1 -1
- package/index194.mjs +27 -186
- package/index195.js +1 -1
- package/index195.mjs +15 -122
- package/index196.js +1 -1
- package/index196.mjs +12 -26
- package/index197.js +1 -1
- package/index197.mjs +40 -70
- package/index198.js +1 -1
- package/index198.mjs +7 -380
- package/index199.js +1 -1
- package/index199.mjs +16 -45
- package/index200.js +1 -1
- package/index200.mjs +3 -4
- package/index201.js +1 -1
- package/index201.mjs +4 -24
- package/index202.js +1 -1
- package/index202.mjs +19 -47
- package/index203.js +1 -1
- package/index203.mjs +53 -4
- package/index204.js +1 -1
- package/index204.mjs +123 -23
- package/index205.js +1 -1
- package/index205.mjs +133 -11
- package/index206.js +1 -1
- package/index206.mjs +44 -4
- package/index207.js +1 -1
- package/index207.mjs +13 -13
- package/index208.js +1 -1
- package/index208.mjs +92 -39
- package/index209.js +1 -1
- package/index209.mjs +102 -53
- package/index210.js +1 -1
- package/index210.mjs +4 -41
- package/index211.js +1 -1
- package/index211.mjs +3 -28
- package/index212.js +1 -1
- package/index212.mjs +125 -31
- package/index213.js +1 -1
- package/index213.mjs +29 -14
- package/index214.js +1 -1
- package/index214.mjs +51 -10
- package/index215.js +1 -1
- package/index215.mjs +44 -28
- package/index216.js +1 -1
- package/index216.mjs +37 -9
- package/index217.js +1 -1
- package/index217.mjs +113 -6
- package/index218.js +1 -1
- package/index218.mjs +77 -5
- package/index219.js +1 -1
- package/index219.mjs +101 -7
- package/index220.js +1 -1
- package/index220.mjs +98 -30
- package/index221.js +1 -1
- package/index221.mjs +137 -15
- package/index222.js +1 -1
- package/index222.mjs +197 -13
- package/index223.js +1 -1
- package/index223.mjs +22 -43
- package/index224.js +1 -1
- package/index224.mjs +49 -8
- package/index225.js +1 -1
- package/index225.mjs +45 -14
- package/index226.js +1 -1
- package/index226.mjs +98 -3
- package/index227.js +1 -1
- package/index227.mjs +72 -5
- package/index228.js +1 -1
- package/index228.mjs +68 -19
- package/index229.js +1 -1
- package/index229.mjs +7 -54
- package/index230.js +1 -1
- package/index230.mjs +10 -123
- package/index231.js +1 -1
- package/index231.mjs +198 -129
- package/index232.js +1 -1
- package/index232.mjs +63 -43
- package/index233.js +1 -1
- package/index233.mjs +143 -14
- package/index234.js +1 -1
- package/index234.mjs +117 -88
- package/index235.js +1 -1
- package/index235.mjs +220 -102
- package/index236.js +1 -1
- package/index236.mjs +190 -4
- package/index237.js +1 -1
- package/index237.mjs +69 -3
- package/index238.js +1 -1
- package/index238.mjs +269 -115
- package/index239.js +1 -1
- package/index239.mjs +93 -24
- package/index240.js +1 -1
- package/index240.mjs +180 -43
- package/index241.js +1 -1
- package/index241.mjs +84 -44
- package/index242.js +1 -1
- package/index242.mjs +57 -36
- package/index243.js +1 -1
- package/index243.mjs +122 -109
- package/index244.js +1 -1
- package/index244.mjs +113 -74
- package/index245.js +1 -1
- package/index245.mjs +122 -101
- package/index246.js +1 -1
- package/index246.mjs +73 -98
- package/index247.js +1 -1
- package/index247.mjs +107 -137
- package/index248.js +1 -1
- package/index248.mjs +52 -197
- package/index249.js +1 -1
- package/index249.mjs +93 -22
- package/index250.js +1 -1
- package/index250.mjs +67 -46
- package/index251.js +1 -1
- package/index251.mjs +55 -47
- package/index252.js +1 -1
- package/index252.mjs +98 -96
- package/index253.js +5 -1
- package/index253.mjs +81 -72
- package/index254.js +1 -1
- package/index254.mjs +2015 -58
- package/index255.js +1 -1
- package/index255.mjs +59 -7
- package/index256.js +1 -1
- package/index256.mjs +187 -10
- package/index258.js +1 -1
- package/index258.mjs +3 -3
- package/index260.js +1 -1
- package/index260.mjs +8 -8
- package/index261.js +1 -1
- package/index261.mjs +1 -1
- package/index262.js +1 -1
- package/index262.mjs +3 -130
- package/index263.js +1 -1
- package/index263.mjs +4 -190
- package/index264.js +1 -1
- package/index264.mjs +5 -10
- package/index265.js +1 -1
- package/index265.mjs +5 -4
- package/index266.js +1 -1
- package/index266.mjs +5 -37
- package/index267.js +1 -1
- package/index267.mjs +5 -6
- package/index268.js +1 -1
- package/index268.mjs +5 -30
- package/index269.js +1 -1
- package/index269.mjs +5 -7
- package/index270.js +1 -1
- package/index270.mjs +5 -4
- package/index271.js +1 -1
- package/index271.mjs +5 -5
- package/index272.js +1 -1
- package/index272.mjs +4 -4
- package/index273.js +1 -1
- package/index273.mjs +4 -4
- package/index274.js +1 -1
- package/index274.mjs +1 -1
- package/index275.js +1 -1
- package/index275.mjs +4 -4
- package/index276.js +1 -1
- package/index276.mjs +4 -4
- package/index277.js +1 -1
- package/index277.mjs +4 -4
- package/index278.js +1 -1
- package/index278.mjs +1 -1
- package/index279.js +1 -1
- package/index279.mjs +4 -4
- package/index280.js +1 -1
- package/index280.mjs +4 -4
- package/index281.js +1 -1
- package/index281.mjs +4 -4
- package/index282.js +1 -1
- package/index282.mjs +1 -1
- package/index283.js +1 -1
- package/index283.mjs +4 -4
- package/index284.js +1 -1
- package/index284.mjs +4 -4
- package/index285.js +1 -1
- package/index285.mjs +4 -4
- package/index286.js +1 -1
- package/index286.mjs +4 -4
- package/index287.js +1 -1
- package/index287.mjs +4 -4
- package/index288.js +1 -1
- package/index288.mjs +4 -4
- package/index289.js +1 -1
- package/index289.mjs +4 -4
- package/index290.js +1 -1
- package/index290.mjs +4 -4
- package/index291.js +1 -1
- package/index291.mjs +1 -1
- package/index292.js +1 -1
- package/index292.mjs +4 -4
- package/index293.js +1 -1
- package/index293.mjs +4 -4
- package/index294.js +1 -1
- package/index294.mjs +1 -1
- package/index295.js +1 -1
- package/index295.mjs +4 -4
- package/index296.js +1 -1
- package/index296.mjs +4 -4
- package/index297.js +1 -1
- package/index297.mjs +4 -4
- package/index298.js +1 -1
- package/index298.mjs +130 -4
- package/index299.js +1 -1
- package/index299.mjs +191 -5
- package/index300.js +1 -1
- package/index300.mjs +10 -5
- package/index301.js +1 -1
- package/index301.mjs +4 -5
- package/index302.js +1 -1
- package/index302.mjs +37 -5
- package/index303.js +1 -1
- package/index303.mjs +6 -5
- package/index304.js +1 -1
- package/index304.mjs +30 -5
- package/index305.js +1 -1
- package/index305.mjs +7 -5
- package/index306.js +1 -1
- package/index306.mjs +3 -3
- package/index308.js +1 -1
- package/index308.mjs +2 -2
- package/index309.js +1 -1
- package/index309.mjs +5 -5
- package/index312.js +1 -1
- package/index312.mjs +3 -3
- package/index315.js +1 -1
- package/index315.mjs +5 -5
- package/index316.js +1 -1
- package/index316.mjs +1 -1
- package/index317.js +1 -1
- package/index317.mjs +4 -4
- package/index318.js +1 -1
- package/index318.mjs +1 -1
- package/index322.js +1 -1
- package/index322.mjs +1 -1
- package/package.json +1 -1
package/index303.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { g as i } from "./index299.mjs";
|
|
2
|
+
function r(a, t) {
|
|
3
|
+
const e = i(t);
|
|
4
|
+
return e !== t && (e.style.backfaceVisibility = "hidden", e.style["-webkit-backface-visibility"] = "hidden"), e;
|
|
5
|
+
}
|
|
5
6
|
export {
|
|
6
|
-
|
|
7
|
+
r as e
|
|
7
8
|
};
|
package/index304.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index299.js");function f(a){let{swiper:e,duration:l,transformElements:s,allSlides:o}=a;const{activeIndex:d}=e,u=n=>n.parentElement?n.parentElement:e.slides.filter(t=>t.shadowRoot&&t.shadowRoot===n.parentNode)[0];if(e.params.virtualTranslate&&l!==0){let n=!1,r;o?r=s:r=s.filter(t=>{const i=t.classList.contains("swiper-slide-transform")?u(t):t;return e.getSlideIndex(i)===d}),r.forEach(t=>{c.k(t,()=>{if(n||!e||e.destroyed)return;n=!0,e.animating=!1;const i=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});e.wrapperEl.dispatchEvent(i)})})}}exports.e=f;
|
package/index304.mjs
CHANGED
|
@@ -1,7 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { k as f } from "./index299.mjs";
|
|
2
|
+
function p(a) {
|
|
3
|
+
let {
|
|
4
|
+
swiper: e,
|
|
5
|
+
duration: o,
|
|
6
|
+
transformElements: s,
|
|
7
|
+
allSlides: l
|
|
8
|
+
} = a;
|
|
9
|
+
const {
|
|
10
|
+
activeIndex: d
|
|
11
|
+
} = e, c = (n) => n.parentElement ? n.parentElement : e.slides.filter((t) => t.shadowRoot && t.shadowRoot === n.parentNode)[0];
|
|
12
|
+
if (e.params.virtualTranslate && o !== 0) {
|
|
13
|
+
let n = !1, r;
|
|
14
|
+
l ? r = s : r = s.filter((t) => {
|
|
15
|
+
const i = t.classList.contains("swiper-slide-transform") ? c(t) : t;
|
|
16
|
+
return e.getSlideIndex(i) === d;
|
|
17
|
+
}), r.forEach((t) => {
|
|
18
|
+
f(t, () => {
|
|
19
|
+
if (n || !e || e.destroyed) return;
|
|
20
|
+
n = !0, e.animating = !1;
|
|
21
|
+
const i = new window.CustomEvent("transitionend", {
|
|
22
|
+
bubbles: !0,
|
|
23
|
+
cancelable: !0
|
|
24
|
+
});
|
|
25
|
+
e.wrapperEl.dispatchEvent(i);
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
5
30
|
export {
|
|
6
|
-
|
|
31
|
+
p as e
|
|
7
32
|
};
|
package/index305.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index299.js");function l(t,a,o){const s=`swiper-slide-shadow${o?`-${o}`:""}${t?` swiper-slide-shadow-${t}`:""}`,i=r.g(a);let e=i.querySelector(`.${s.split(" ").join(".")}`);return e||(e=r.c("div",s.split(" ")),i.append(e)),e}exports.c=l;
|
package/index305.mjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
s
|
|
3
|
-
|
|
4
|
-
};
|
|
1
|
+
import { g as i, c as l } from "./index299.mjs";
|
|
2
|
+
function d(s, r, o) {
|
|
3
|
+
const a = `swiper-slide-shadow${o ? `-${o}` : ""}${s ? ` swiper-slide-shadow-${s}` : ""}`, t = i(r);
|
|
4
|
+
let e = t.querySelector(`.${a.split(" ").join(".")}`);
|
|
5
|
+
return e || (e = l("div", a.split(" ")), t.append(e)), e;
|
|
6
|
+
}
|
|
5
7
|
export {
|
|
6
|
-
|
|
8
|
+
d as c
|
|
7
9
|
};
|
package/index306.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index309.js"),u=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index309.js"),u=require("./index179.js"),m=require("./index184.js"),L=require("./index198.js");require("react");let f=null,y=new Set,a=new Map,i=!1,c=!1;function d(e,n){for(let t of y)t(e,n)}function g(e){return!(e.metaKey||!m.isMac()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function s(e){i=!0,g(e)&&(f="keyboard",d("keyboard",e))}function o(e){f="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(i=!0,d("pointer",e))}function b(e){L.isVirtualClick(e)&&(i=!0,f="virtual")}function $(e){e.target===window||e.target===document||l.ignoreFocusEvent||!e.isTrusted||(!i&&!c&&(f="virtual",d("virtual",e)),i=!1,c=!1)}function E(){l.ignoreFocusEvent||(i=!1,c=!0)}function v(e){if(typeof window>"u"||a.get(u.getOwnerWindow(e)))return;const n=u.getOwnerWindow(e),t=u.getOwnerDocument(e);let r=n.HTMLElement.prototype.focus;n.HTMLElement.prototype.focus=function(){i=!0,r.apply(this,arguments)},t.addEventListener("keydown",s,!0),t.addEventListener("keyup",s,!0),t.addEventListener("click",b,!0),n.addEventListener("focus",$,!0),n.addEventListener("blur",E,!1),typeof PointerEvent<"u"?(t.addEventListener("pointerdown",o,!0),t.addEventListener("pointermove",o,!0),t.addEventListener("pointerup",o,!0)):process.env.NODE_ENV==="test"&&(t.addEventListener("mousedown",o,!0),t.addEventListener("mousemove",o,!0),t.addEventListener("mouseup",o,!0)),n.addEventListener("beforeunload",()=>{p(e)},{once:!0}),a.set(n,{focus:r})}const p=(e,n)=>{const t=u.getOwnerWindow(e),r=u.getOwnerDocument(e);n&&r.removeEventListener("DOMContentLoaded",n),a.has(t)&&(t.HTMLElement.prototype.focus=a.get(t).focus,r.removeEventListener("keydown",s,!0),r.removeEventListener("keyup",s,!0),r.removeEventListener("click",b,!0),t.removeEventListener("focus",$,!0),t.removeEventListener("blur",E,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",o,!0),r.removeEventListener("pointermove",o,!0),r.removeEventListener("pointerup",o,!0)):process.env.NODE_ENV==="test"&&(r.removeEventListener("mousedown",o,!0),r.removeEventListener("mousemove",o,!0),r.removeEventListener("mouseup",o,!0)),a.delete(t))};function w(e){const n=u.getOwnerDocument(e);let t;return n.readyState!=="loading"?v(e):(t=()=>{v(e)},n.addEventListener("DOMContentLoaded",t)),()=>p(e,t)}typeof document<"u"&&w();function O(){return f}function k(e){f=e,d(e,null)}exports.addWindowFocusTracking=w;exports.getInteractionModality=O;exports.hasSetupGlobalListeners=a;exports.setInteractionModality=k;
|
package/index306.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ignoreFocusEvent as b } from "./index309.mjs";
|
|
2
|
-
import { getOwnerDocument as v, getOwnerWindow as s } from "./
|
|
3
|
-
import { isMac as L } from "./
|
|
4
|
-
import { isVirtualClick as y } from "./
|
|
2
|
+
import { getOwnerDocument as v, getOwnerWindow as s } from "./index179.mjs";
|
|
3
|
+
import { isMac as L } from "./index184.mjs";
|
|
4
|
+
import { isVirtualClick as y } from "./index198.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
let f = null, w = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), a = !1, c = !1;
|
|
7
7
|
function u(e, n) {
|
package/index308.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index309.js"),a=require("react"),r=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index309.js"),a=require("react"),r=require("./index178.js"),F=require("./index179.js");function v(l){let{isDisabled:u,onFocus:o,onBlur:n,onFocusChange:t}=l;const c=a.useCallback(e=>{if(e.target===e.currentTarget)return n&&n(e),t&&t(!1),!0},[n,t]),s=g.useSyntheticBlurEvent(c),d=a.useCallback(e=>{const i=F.getOwnerDocument(e.target),f=i?r.getActiveElement(i):r.getActiveElement();e.target===e.currentTarget&&f===r.getEventTarget(e.nativeEvent)&&(o&&o(e),t&&t(!0),s(e))},[t,o,s]);return{focusProps:{onFocus:!u&&(o||t||n)?d:void 0,onBlur:!u&&(n||t)?c:void 0}}}exports.useFocus=v;
|
package/index308.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useSyntheticBlurEvent as l } from "./index309.mjs";
|
|
2
2
|
import { useCallback as u } from "react";
|
|
3
|
-
import { getActiveElement as a, getEventTarget as p } from "./
|
|
4
|
-
import { getOwnerDocument as m } from "./
|
|
3
|
+
import { getActiveElement as a, getEventTarget as p } from "./index178.mjs";
|
|
4
|
+
import { getOwnerDocument as m } from "./index179.mjs";
|
|
5
5
|
function x(d) {
|
|
6
6
|
let { isDisabled: r, onFocus: n, onBlur: o, onFocusChange: t } = d;
|
|
7
7
|
const c = u((e) => {
|
package/index309.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index179.js"),l=require("./index182.js"),E=require("./index174.js"),m=require("./index196.js"),p=require("./index202.js"),d=require("react");function f(r){let e=r;return e.nativeEvent=r,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function g(r,e){Object.defineProperty(r,"target",{value:e}),Object.defineProperty(r,"currentTarget",{value:e})}function F(r){let e=d.useRef({isFocused:!1,observer:null});E.useLayoutEffect(()=>{const t=e.current;return()=>{t.observer&&(t.observer.disconnect(),t.observer=null)}},[]);let u=m.useEffectEvent(t=>{r==null||r(t)});return d.useCallback(t=>{if(t.target instanceof HTMLButtonElement||t.target instanceof HTMLInputElement||t.target instanceof HTMLTextAreaElement||t.target instanceof HTMLSelectElement){e.current.isFocused=!0;let o=t.target,s=c=>{if(e.current.isFocused=!1,o.disabled){let i=f(c);u(i)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};o.addEventListener("focusout",s,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&o.disabled){var c;(c=e.current.observer)===null||c===void 0||c.disconnect();let i=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:i})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:i}))}}),e.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[u])}exports.ignoreFocusEvent=!1;function L(r){for(;r&&!p.isFocusable(r);)r=r.parentElement;let e=b.getOwnerWindow(r),u=e.document.activeElement;if(!u||u===r)return;exports.ignoreFocusEvent=!0;let t=!1,o=n=>{(n.target===u||t)&&n.stopImmediatePropagation()},s=n=>{(n.target===u||t)&&(n.stopImmediatePropagation(),!r&&!t&&(t=!0,l.focusWithoutScrolling(u),a()))},c=n=>{(n.target===r||t)&&n.stopImmediatePropagation()},i=n=>{(n.target===r||t)&&(n.stopImmediatePropagation(),t||(t=!0,l.focusWithoutScrolling(u),a()))};e.addEventListener("blur",o,!0),e.addEventListener("focusout",s,!0),e.addEventListener("focusin",i,!0),e.addEventListener("focus",c,!0);let a=()=>{cancelAnimationFrame(v),e.removeEventListener("blur",o,!0),e.removeEventListener("focusout",s,!0),e.removeEventListener("focusin",i,!0),e.removeEventListener("focus",c,!0),exports.ignoreFocusEvent=!1,t=!1},v=requestAnimationFrame(a);return a}exports.createSyntheticEvent=f;exports.preventFocus=L;exports.setEventTarget=g;exports.useSyntheticBlurEvent=F;
|
package/index309.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getOwnerWindow as b } from "./
|
|
2
|
-
import { focusWithoutScrolling as l } from "./
|
|
3
|
-
import { useLayoutEffect as v } from "./
|
|
4
|
-
import { useEffectEvent as m } from "./
|
|
5
|
-
import { isFocusable as p } from "./
|
|
1
|
+
import { getOwnerWindow as b } from "./index179.mjs";
|
|
2
|
+
import { focusWithoutScrolling as l } from "./index182.mjs";
|
|
3
|
+
import { useLayoutEffect as v } from "./index174.mjs";
|
|
4
|
+
import { useEffectEvent as m } from "./index196.mjs";
|
|
5
|
+
import { isFocusable as p } from "./index202.mjs";
|
|
6
6
|
import { useRef as E, useCallback as $ } from "react";
|
|
7
7
|
function g(r) {
|
|
8
8
|
let e = r;
|
package/index312.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index179.js"),r=require("./index185.js"),c=require("./index184.js");let n="default",s="",l=new WeakMap;function u(e){if(c.isIOS()){if(n==="default"){const t=o.getOwnerDocument(e);s=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}n="disabled"}else if(e instanceof HTMLElement||e instanceof SVGElement){let t="userSelect"in e.style?"userSelect":"webkitUserSelect";l.set(e,e.style[t]),e.style[t]="none"}}function d(e){if(c.isIOS()){if(n!=="disabled")return;n="restoring",setTimeout(()=>{r.runAfterTransition(()=>{if(n==="restoring"){const t=o.getOwnerDocument(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=s||""),s="",n="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&l.has(e)){let t=l.get(e),i="userSelect"in e.style?"userSelect":"webkitUserSelect";e.style[i]==="none"&&(e.style[i]=t),e.getAttribute("style")===""&&e.removeAttribute("style"),l.delete(e)}}exports.disableTextSelection=u;exports.restoreTextSelection=d;
|
package/index312.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getOwnerDocument as i } from "./
|
|
2
|
-
import { runAfterTransition as f } from "./
|
|
3
|
-
import { isIOS as o } from "./
|
|
1
|
+
import { getOwnerDocument as i } from "./index179.mjs";
|
|
2
|
+
import { runAfterTransition as f } from "./index185.mjs";
|
|
3
|
+
import { isIOS as o } from "./index184.mjs";
|
|
4
4
|
let l = "default", s = "", n = /* @__PURE__ */ new WeakMap();
|
|
5
5
|
function m(e) {
|
|
6
6
|
if (o()) {
|
package/index315.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index172.js"),f=require("./index179.js"),m=require("./index134.js"),L=require("./index182.js"),y=require("./index186.js"),D=require("./index194.js"),T=require("react"),h=500;function v(c){let{isDisabled:s,onLongPressStart:n,onLongPressEnd:o,onLongPress:r,threshold:l=h,accessibilityDescription:p}=c;const t=T.useRef(void 0);let{addGlobalListener:i,removeGlobalListener:a}=y.useGlobalListeners(),{pressProps:d}=b.usePress({isDisabled:s,onPressStart(e){if(e.continuePropagation(),(e.pointerType==="mouse"||e.pointerType==="touch")&&(n&&n({...e,type:"longpressstart"}),t.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),f.getOwnerDocument(e.target).activeElement!==e.target&&L.focusWithoutScrolling(e.target),r&&r({...e,type:"longpress"}),t.current=void 0},l),e.pointerType==="touch")){let u=P=>{P.preventDefault()};i(e.target,"contextmenu",u,{once:!0}),i(window,"pointerup",()=>{setTimeout(()=>{a(e.target,"contextmenu",u)},30)},{once:!0})}},onPressEnd(e){t.current&&clearTimeout(t.current),o&&(e.pointerType==="mouse"||e.pointerType==="touch")&&o({...e,type:"longpressend"})}}),g=D.useDescription(r&&!s?p:void 0);return{longPressProps:m.mergeProps(d,g)}}exports.useLongPress=v;
|
package/index315.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { usePress as $ } from "./
|
|
2
|
-
import { getOwnerDocument as b } from "./
|
|
1
|
+
import { usePress as $ } from "./index172.mjs";
|
|
2
|
+
import { getOwnerDocument as b } from "./index179.mjs";
|
|
3
3
|
import { mergeProps as g } from "./index134.mjs";
|
|
4
|
-
import { focusWithoutScrolling as P } from "./
|
|
5
|
-
import { useGlobalListeners as L } from "./
|
|
6
|
-
import { useDescription as x } from "./
|
|
4
|
+
import { focusWithoutScrolling as P } from "./index182.mjs";
|
|
5
|
+
import { useGlobalListeners as L } from "./index186.mjs";
|
|
6
|
+
import { useDescription as x } from "./index194.mjs";
|
|
7
7
|
import { useRef as y } from "react";
|
|
8
8
|
const D = 500;
|
|
9
9
|
function R(p) {
|
package/index316.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index317.js"),d=require("./index308.js"),P=require("./index310.js"),n=require("./index134.js"),x=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index317.js"),d=require("./index308.js"),P=require("./index310.js"),n=require("./index134.js"),x=require("./index190.js"),r=require("react");let a=r.createContext(null);function y(e){let t=r.useContext(a)||{};x.useSyncRef(t,e);let{ref:u,...o}=t;return o}function $(e,t){let{focusProps:u}=d.useFocus(e),{keyboardProps:o}=P.useKeyboard(e),f=n.mergeProps(u,o),l=y(t),i=e.isDisabled?{}:l,s=r.useRef(e.autoFocus);r.useEffect(()=>{s.current&&t.current&&b.focusSafely(t.current),s.current=!1},[t]);let c=e.excludeFromTabOrder?-1:0;return e.isDisabled&&(c=void 0),{focusableProps:n.mergeProps({...f,tabIndex:c},i)}}exports.FocusableContext=a;exports.useFocusable=$;
|
package/index316.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { focusSafely as d } from "./index317.mjs";
|
|
|
2
2
|
import { useFocus as n } from "./index308.mjs";
|
|
3
3
|
import { useKeyboard as $ } from "./index310.mjs";
|
|
4
4
|
import { mergeProps as c } from "./index134.mjs";
|
|
5
|
-
import { useSyncRef as l } from "./
|
|
5
|
+
import { useSyncRef as l } from "./index190.mjs";
|
|
6
6
|
import i, { useRef as x, useEffect as p, useContext as m } from "react";
|
|
7
7
|
let P = /* @__PURE__ */ i.createContext(null);
|
|
8
8
|
function F(e) {
|
package/index317.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index306.js"),o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index306.js"),o=require("./index178.js"),u=require("./index179.js"),i=require("./index182.js"),s=require("./index185.js");function l(e){const t=u.getOwnerDocument(e),n=o.getActiveElement(t);if(r.getInteractionModality()==="virtual"){let c=n;s.runAfterTransition(()=>{o.getActiveElement(t)===c&&e.isConnected&&i.focusWithoutScrolling(e)})}else i.focusWithoutScrolling(e)}exports.focusSafely=l;
|
package/index317.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getInteractionModality as a } from "./index306.mjs";
|
|
2
|
-
import { getActiveElement as o } from "./
|
|
3
|
-
import { getOwnerDocument as i } from "./
|
|
4
|
-
import { focusWithoutScrolling as f } from "./
|
|
5
|
-
import { runAfterTransition as $ } from "./
|
|
2
|
+
import { getActiveElement as o } from "./index178.mjs";
|
|
3
|
+
import { getOwnerDocument as i } from "./index179.mjs";
|
|
4
|
+
import { focusWithoutScrolling as f } from "./index182.mjs";
|
|
5
|
+
import { runAfterTransition as $ } from "./index185.mjs";
|
|
6
6
|
function p(e) {
|
|
7
7
|
const t = i(e), c = o(t);
|
|
8
8
|
if (a() === "virtual") {
|
package/index318.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index161.js"),i=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index161.js"),i=require("./index184.js");function u(e){return i.isAppleDevice()?e.altKey:e.ctrlKey}function a(e,t){var o,f;let r=`[data-key="${CSS.escape(String(t))}"]`,n=(o=e.current)===null||o===void 0?void 0:o.dataset.collection;return n&&(r=`[data-collection="${CSS.escape(n)}"]${r}`),(f=e.current)===null||f===void 0?void 0:f.querySelector(r)}const c=new WeakMap;function d(e){let t=l.useId();return c.set(e,t),t}function $(e){return c.get(e)}exports.getCollectionId=$;exports.getItemElement=a;exports.isNonContiguousSelectionModifier=u;exports.useCollectionId=d;
|
package/index318.mjs
CHANGED
package/index322.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index328.js"),F=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index328.js"),F=require("./index170.js"),t=require("react");function M(e,o){if(e.size!==o.size)return!1;for(let c of e)if(!o.has(c))return!1;return!0}function R(e){let{selectionMode:o="none",disallowEmptySelection:c=!1,allowDuplicateSelectionEvents:K,selectionBehavior:s="toggle",disabledBehavior:b="all"}=e,r=t.useRef(!1),[,v]=t.useState(!1),u=t.useRef(null),a=t.useRef(null),[,h]=t.useState(null),g=t.useMemo(()=>S(e.selectedKeys),[e.selectedKeys]),w=t.useMemo(()=>S(e.defaultSelectedKeys,new y.Selection),[e.defaultSelectedKeys]),[i,B]=F.useControlledState(g,w,e.onSelectionChange),$=t.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[d,n]=t.useState(s);s==="replace"&&d==="toggle"&&typeof i=="object"&&i.size===0&&n("replace");let f=t.useRef(s);return t.useEffect(()=>{s!==f.current&&(n(s),f.current=s)},[s]),{selectionMode:o,disallowEmptySelection:c,selectionBehavior:d,setSelectionBehavior:n,get isFocused(){return r.current},setFocused(l){r.current=l,v(l)},get focusedKey(){return u.current},get childFocusStrategy(){return a.current},setFocusedKey(l,m="first"){u.current=l,a.current=m,h(l)},selectedKeys:i,setSelectedKeys(l){(K||!M(l,i))&&B(l)},disabledKeys:$,disabledBehavior:b}}function S(e,o){return e?e==="all"?"all":new y.Selection(e):o}exports.useMultipleSelectionState=R;
|
package/index322.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Selection as K } from "./index328.mjs";
|
|
2
|
-
import { useControlledState as M } from "./
|
|
2
|
+
import { useControlledState as M } from "./index170.mjs";
|
|
3
3
|
import { useRef as a, useState as r, useMemo as n, useEffect as x } from "react";
|
|
4
4
|
function R(e, s) {
|
|
5
5
|
if (e.size !== s.size) return !1;
|