@okam/stack-ui 1.36.0 → 1.37.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 +14 -0
- package/components/Lightbox/interface.d.ts +2 -0
- package/index111.js +1 -1
- package/index111.mjs +1 -1
- package/index113.js +1 -1
- package/index113.mjs +1 -1
- package/index114.js +1 -1
- package/index114.mjs +2 -2
- package/index115.js +1 -1
- package/index115.mjs +1 -1
- package/index122.js +1 -1
- package/index122.mjs +3 -3
- package/index123.js +1 -1
- package/index123.mjs +3 -3
- package/index124.js +1 -1
- package/index124.mjs +1 -1
- package/index125.js +1 -1
- package/index125.mjs +1 -1
- package/index130.js +1 -1
- package/index130.mjs +1 -1
- package/index132.js +1 -1
- package/index132.mjs +2 -2
- package/index133.js +1 -1
- package/index133.mjs +5 -5
- package/index134.js +1 -1
- package/index134.mjs +3 -3
- package/index135.js +1 -1
- package/index135.mjs +9 -9
- package/index141.js +1 -1
- package/index141.mjs +1 -1
- package/index145.js +1 -1
- package/index145.mjs +2 -2
- package/index147.js +1 -1
- package/index147.mjs +1 -1
- package/index148.js +1 -1
- package/index148.mjs +2 -2
- package/index152.js +1 -1
- package/index152.mjs +46 -12
- package/index153.js +2 -1
- package/index153.mjs +13 -46
- package/index154.js +1 -2
- package/index154.mjs +29 -12
- package/index155.js +1 -1
- package/index155.mjs +57 -30
- package/index156.js +1 -1
- package/index156.mjs +12 -57
- package/index159.js +1 -1
- package/index159.mjs +1 -1
- package/index161.js +1 -1
- package/index161.mjs +68 -22
- package/index162.js +1 -1
- package/index162.mjs +370 -62
- package/index163.js +1 -1
- package/index163.mjs +44 -379
- package/index164.js +1 -1
- package/index164.mjs +4 -47
- package/index165.js +1 -1
- package/index165.mjs +25 -4
- package/index166.js +1 -1
- package/index166.mjs +46 -23
- package/index167.js +1 -1
- package/index167.mjs +4 -46
- package/index168.js +1 -1
- package/index168.mjs +24 -5
- package/index169.js +1 -1
- package/index169.mjs +11 -23
- package/index170.js +1 -1
- package/index170.mjs +4 -12
- package/index171.js +1 -1
- package/index171.mjs +14 -4
- package/index172.js +1 -1
- package/index172.mjs +21 -14
- package/index173.js +1 -1
- package/index173.mjs +42 -21
- package/index174.js +1 -1
- package/index174.mjs +52 -37
- package/index175.js +1 -1
- package/index175.mjs +39 -55
- package/index176.js +1 -1
- package/index176.mjs +27 -40
- package/index177.js +1 -1
- package/index177.mjs +30 -27
- package/index178.js +1 -1
- package/index178.mjs +13 -30
- package/index179.js +1 -1
- package/index179.mjs +10 -14
- package/index18.js +1 -1
- package/index18.mjs +45 -42
- package/index180.js +1 -1
- package/index180.mjs +28 -10
- package/index181.js +1 -1
- package/index181.mjs +9 -28
- package/index182.js +1 -1
- package/index182.mjs +6 -9
- package/index183.js +1 -1
- package/index183.mjs +5 -6
- package/index184.js +1 -1
- package/index184.mjs +7 -5
- package/index185.js +1 -1
- package/index185.mjs +29 -7
- package/index186.js +1 -1
- package/index186.mjs +16 -27
- package/index187.js +1 -1
- package/index187.mjs +12 -17
- package/index188.js +1 -1
- package/index188.mjs +43 -13
- package/index189.js +1 -1
- package/index189.mjs +7 -42
- package/index190.js +1 -1
- package/index190.mjs +17 -8
- package/index191.js +1 -1
- package/index191.mjs +3 -18
- package/index192.js +1 -1
- package/index192.mjs +5 -3
- package/index193.js +1 -1
- package/index193.mjs +19 -4
- package/index194.js +1 -1
- package/index194.mjs +54 -19
- package/index195.js +1 -1
- package/index195.mjs +23 -50
- package/index196.js +1 -1
- package/index196.mjs +122 -138
- package/index197.js +1 -1
- package/index197.mjs +129 -192
- package/index198.js +1 -1
- package/index198.mjs +44 -22
- package/index199.js +1 -1
- package/index199.mjs +14 -49
- package/index200.js +1 -1
- package/index200.mjs +93 -46
- package/index201.js +1 -1
- package/index201.mjs +98 -89
- package/index202.js +1 -1
- package/index202.mjs +5 -72
- package/index203.js +1 -1
- package/index203.mjs +3 -68
- package/index204.js +1 -1
- package/index204.mjs +125 -7
- package/index205.js +1 -1
- package/index205.mjs +29 -11
- package/index206.js +1 -1
- package/index206.mjs +40 -113
- package/index207.js +1 -1
- package/index207.mjs +41 -131
- package/index208.js +1 -1
- package/index208.mjs +36 -43
- package/index209.js +1 -1
- package/index209.mjs +110 -11
- package/index210.js +1 -1
- package/index210.mjs +59 -77
- package/index211.js +1 -1
- package/index211.mjs +94 -99
- package/index212.js +1 -1
- package/index212.mjs +98 -5
- package/index213.js +1 -1
- package/index213.mjs +140 -3
- package/index214.js +1 -1
- package/index214.mjs +191 -119
- package/index215.js +1 -1
- package/index215.mjs +22 -29
- package/index216.js +1 -1
- package/index216.mjs +49 -51
- package/index217.js +1 -1
- package/index217.mjs +47 -43
- package/index218.js +1 -1
- package/index218.mjs +95 -35
- package/index219.js +1 -1
- package/index219.mjs +72 -114
- package/index220.js +1 -1
- package/index220.mjs +67 -76
- package/index221.js +1 -1
- package/index221.mjs +7 -101
- package/index222.js +1 -1
- package/index222.mjs +12 -98
- package/index250.js +1 -1
- package/index250.mjs +4 -4
- package/index252.js +1 -1
- package/index252.mjs +8 -8
- package/index253.js +1 -1
- package/index253.mjs +1 -1
- package/index255.js +1 -1
- package/index255.mjs +5 -5
- package/index256.js +1 -1
- package/index256.mjs +1 -1
- package/index257.js +1 -1
- package/index257.mjs +4 -4
- package/index258.js +1 -1
- package/index258.mjs +1 -1
- package/index259.js +1 -1
- package/index259.mjs +1 -1
- package/index260.js +1 -1
- package/index260.mjs +4 -4
- package/index261.js +1 -1
- package/index261.mjs +4 -4
- package/index262.js +1 -1
- package/index262.mjs +1 -1
- package/index263.js +1 -1
- package/index263.mjs +4 -4
- package/index264.js +1 -1
- package/index264.mjs +4 -4
- package/index265.js +1 -1
- package/index265.mjs +1 -1
- package/index266.js +1 -1
- package/index266.mjs +4 -4
- package/index267.js +1 -1
- package/index267.mjs +4 -4
- package/index268.js +1 -1
- package/index268.mjs +1 -1
- package/index269.js +1 -1
- package/index269.mjs +1 -1
- package/index270.js +1 -1
- package/index270.mjs +4 -4
- package/index271.js +1 -1
- package/index271.mjs +4 -4
- package/index272.js +1 -1
- package/index272.mjs +1 -1
- package/index273.js +1 -1
- package/index273.mjs +4 -4
- package/index274.js +1 -1
- package/index274.mjs +4 -4
- package/index275.js +1 -1
- package/index275.mjs +4 -4
- package/index276.js +1 -1
- package/index276.mjs +1 -1
- package/index277.js +1 -1
- package/index277.mjs +4 -4
- package/index278.js +1 -1
- package/index278.mjs +4 -4
- 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 +1 -1
- package/index284.js +1 -1
- package/index284.mjs +1 -1
- 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 +5 -5
- package/index298.js +1 -1
- package/index298.mjs +3 -3
- package/index300.js +1 -1
- package/index300.mjs +2 -2
- package/index301.js +1 -1
- package/index301.mjs +5 -5
- package/index304.js +1 -1
- package/index304.mjs +3 -3
- package/index307.js +1 -1
- package/index307.mjs +5 -5
- package/index308.js +1 -1
- package/index308.mjs +1 -1
- package/index309.js +1 -1
- package/index309.mjs +4 -4
- package/index310.js +1 -1
- package/index310.mjs +2 -2
- package/index314.js +1 -1
- package/index314.mjs +1 -1
- package/index9.js +1 -1
- package/index9.mjs +28 -26
- package/package.json +1 -1
package/index288.mjs
CHANGED
package/index289.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";exports.default={};exports.default={dismiss:"關閉"};module.exports=exports.default;
|
package/index289.mjs
CHANGED
package/index298.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index301.js"),u=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index301.js"),u=require("./index169.js"),m=require("./index175.js"),L=require("./index189.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/index298.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ignoreFocusEvent as b } from "./index301.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 "./index169.mjs";
|
|
3
|
+
import { isMac as L } from "./index175.mjs";
|
|
4
|
+
import { isVirtualClick as y } from "./index189.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/index300.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index301.js"),a=require("react"),r=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index301.js"),a=require("react"),r=require("./index168.js"),F=require("./index169.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/index300.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useSyntheticBlurEvent as l } from "./index301.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 "./index168.mjs";
|
|
4
|
+
import { getOwnerDocument as m } from "./index169.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/index301.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("./index169.js"),l=require("./index173.js"),E=require("./index164.js"),m=require("./index187.js"),p=require("./index193.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/index301.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 "./index169.mjs";
|
|
2
|
+
import { focusWithoutScrolling as l } from "./index173.mjs";
|
|
3
|
+
import { useLayoutEffect as v } from "./index164.mjs";
|
|
4
|
+
import { useEffectEvent as m } from "./index187.mjs";
|
|
5
|
+
import { isFocusable as p } from "./index193.mjs";
|
|
6
6
|
import { useRef as E, useCallback as $ } from "react";
|
|
7
7
|
function g(r) {
|
|
8
8
|
let e = r;
|
package/index304.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("./index169.js"),r=require("./index176.js"),c=require("./index175.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/index304.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 "./index169.mjs";
|
|
2
|
+
import { runAfterTransition as f } from "./index176.mjs";
|
|
3
|
+
import { isIOS as o } from "./index175.mjs";
|
|
4
4
|
let l = "default", s = "", n = /* @__PURE__ */ new WeakMap();
|
|
5
5
|
function m(e) {
|
|
6
6
|
if (o()) {
|
package/index307.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("./index162.js"),f=require("./index169.js"),m=require("./index123.js"),L=require("./index173.js"),y=require("./index177.js"),D=require("./index185.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/index307.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { usePress as $ } from "./
|
|
2
|
-
import { getOwnerDocument as b } from "./
|
|
1
|
+
import { usePress as $ } from "./index162.mjs";
|
|
2
|
+
import { getOwnerDocument as b } from "./index169.mjs";
|
|
3
3
|
import { mergeProps as g } from "./index123.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 "./index173.mjs";
|
|
5
|
+
import { useGlobalListeners as L } from "./index177.mjs";
|
|
6
|
+
import { useDescription as x } from "./index185.mjs";
|
|
7
7
|
import { useRef as y } from "react";
|
|
8
8
|
const D = 500;
|
|
9
9
|
function R(p) {
|
package/index308.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index309.js"),d=require("./index300.js"),P=require("./index302.js"),n=require("./index123.js"),x=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index309.js"),d=require("./index300.js"),P=require("./index302.js"),n=require("./index123.js"),x=require("./index181.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/index308.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { focusSafely as d } from "./index309.mjs";
|
|
|
2
2
|
import { useFocus as n } from "./index300.mjs";
|
|
3
3
|
import { useKeyboard as $ } from "./index302.mjs";
|
|
4
4
|
import { mergeProps as c } from "./index123.mjs";
|
|
5
|
-
import { useSyncRef as l } from "./
|
|
5
|
+
import { useSyncRef as l } from "./index181.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/index309.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index298.js"),o=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index298.js"),o=require("./index168.js"),u=require("./index169.js"),i=require("./index173.js"),s=require("./index176.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/index309.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getInteractionModality as a } from "./index298.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 "./index168.mjs";
|
|
3
|
+
import { getOwnerDocument as i } from "./index169.mjs";
|
|
4
|
+
import { focusWithoutScrolling as f } from "./index173.mjs";
|
|
5
|
+
import { runAfterTransition as $ } from "./index176.mjs";
|
|
6
6
|
function p(e) {
|
|
7
7
|
const t = i(e), c = o(t);
|
|
8
8
|
if (a() === "virtual") {
|
package/index310.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index155.js"),i=require("./index175.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/index310.mjs
CHANGED
package/index314.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index320.js"),F=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index320.js"),F=require("./index195.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/index314.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Selection as K } from "./index320.mjs";
|
|
2
|
-
import { useControlledState as M } from "./
|
|
2
|
+
import { useControlledState as M } from "./index195.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;
|
package/index9.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime"),
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),q=require("@react-aria/focus"),B=require("react-stately"),b=require("./index27.js"),a=require("./index6.js"),f=require("./index14.js"),C=require("./index30.js"),N=require("./index3.js"),p=require("./index113.js"),w=n=>{const{themeName:s,tokens:o,children:i,...t}=n;return e.jsx(a.default,{themeName:s,tokens:o,...t,children:e.jsx(f,{icon:"CloseBtn"})})},y=n=>{const{children:s,thumbnailContent:o,label:i,themeName:t="lightBox",tokens:r,closeButton:c=w,closeButtonAriaLabel:u,transitionComponent:h,showTriggerButton:d=!0,showCloseButton:x=!0}=n,l=B.useOverlayTriggerState(n),{openTriggerProps:m,triggerProps:g,overlayProps:j,labelProps:$}=p({...n,type:"dialog"},l);return e.jsxs(e.Fragment,{children:[d&&e.jsx(q.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:e.jsxs(a.default,{themeName:`${t}.wrapper`,tokens:r,...m,children:[i&&e.jsx(N.default,{themeName:`${t}.label`,tokens:r,...$,children:i}),o]})}),e.jsxs(C,{themeName:`${t}.modal`,tokens:r,state:l,...j,transitionComponent:h,children:[x&&e.jsx(c,{themeName:`${t}.closeBtn`,tokens:r,"aria-label":u,...g}),e.jsx(b.default,{themeName:`${t}.container`,tokens:r,children:s})]})]})};module.exports=y;
|
package/index9.mjs
CHANGED
|
@@ -1,59 +1,61 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as s, Fragment as
|
|
3
|
-
import { FocusRing as
|
|
4
|
-
import { useOverlayTriggerState as
|
|
5
|
-
import
|
|
2
|
+
import { jsxs as s, Fragment as C, jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { FocusRing as x } from "@react-aria/focus";
|
|
4
|
+
import { useOverlayTriggerState as N } from "react-stately";
|
|
5
|
+
import y from "./index27.mjs";
|
|
6
6
|
import l from "./index6.mjs";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const
|
|
7
|
+
import $ from "./index14.mjs";
|
|
8
|
+
import w from "./index30.mjs";
|
|
9
|
+
import P from "./index3.mjs";
|
|
10
|
+
import T from "./index113.mjs";
|
|
11
|
+
const k = (t) => {
|
|
12
12
|
const { themeName: n, tokens: i, children: m, ...e } = t;
|
|
13
|
-
return /* @__PURE__ */ o(l, { themeName: n, tokens: i, ...e, children: /* @__PURE__ */ o(
|
|
14
|
-
},
|
|
13
|
+
return /* @__PURE__ */ o(l, { themeName: n, tokens: i, ...e, children: /* @__PURE__ */ o($, { icon: "CloseBtn" }) });
|
|
14
|
+
}, I = (t) => {
|
|
15
15
|
const {
|
|
16
16
|
children: n,
|
|
17
17
|
thumbnailContent: i,
|
|
18
18
|
label: m,
|
|
19
19
|
themeName: e = "lightBox",
|
|
20
20
|
tokens: r,
|
|
21
|
-
closeButton:
|
|
22
|
-
closeButtonAriaLabel:
|
|
23
|
-
transitionComponent: p
|
|
24
|
-
|
|
21
|
+
closeButton: h = k,
|
|
22
|
+
closeButtonAriaLabel: c,
|
|
23
|
+
transitionComponent: p,
|
|
24
|
+
showTriggerButton: u = !0,
|
|
25
|
+
showCloseButton: g = !0
|
|
26
|
+
} = t, a = N(t), { openTriggerProps: d, triggerProps: f, overlayProps: B, labelProps: b } = T(
|
|
25
27
|
{ ...t, type: "dialog" },
|
|
26
28
|
a
|
|
27
29
|
);
|
|
28
|
-
return /* @__PURE__ */ s(
|
|
29
|
-
/* @__PURE__ */ o(
|
|
30
|
-
m && /* @__PURE__ */ o(
|
|
30
|
+
return /* @__PURE__ */ s(C, { children: [
|
|
31
|
+
u && /* @__PURE__ */ o(x, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ s(l, { themeName: `${e}.wrapper`, tokens: r, ...d, children: [
|
|
32
|
+
m && /* @__PURE__ */ o(P, { themeName: `${e}.label`, tokens: r, ...b, children: m }),
|
|
31
33
|
i
|
|
32
34
|
] }) }),
|
|
33
35
|
/* @__PURE__ */ s(
|
|
34
|
-
|
|
36
|
+
w,
|
|
35
37
|
{
|
|
36
38
|
themeName: `${e}.modal`,
|
|
37
39
|
tokens: r,
|
|
38
40
|
state: a,
|
|
39
|
-
...
|
|
41
|
+
...B,
|
|
40
42
|
transitionComponent: p,
|
|
41
43
|
children: [
|
|
42
|
-
/* @__PURE__ */ o(
|
|
43
|
-
|
|
44
|
+
g && /* @__PURE__ */ o(
|
|
45
|
+
h,
|
|
44
46
|
{
|
|
45
47
|
themeName: `${e}.closeBtn`,
|
|
46
48
|
tokens: r,
|
|
47
|
-
"aria-label":
|
|
48
|
-
...
|
|
49
|
+
"aria-label": c,
|
|
50
|
+
...f
|
|
49
51
|
}
|
|
50
52
|
),
|
|
51
|
-
/* @__PURE__ */ o(
|
|
53
|
+
/* @__PURE__ */ o(y, { themeName: `${e}.container`, tokens: r, children: n })
|
|
52
54
|
]
|
|
53
55
|
}
|
|
54
56
|
)
|
|
55
57
|
] });
|
|
56
58
|
};
|
|
57
59
|
export {
|
|
58
|
-
|
|
60
|
+
I as default
|
|
59
61
|
};
|