@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.
Files changed (271) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/components/Lightbox/interface.d.ts +2 -0
  3. package/index111.js +1 -1
  4. package/index111.mjs +1 -1
  5. package/index113.js +1 -1
  6. package/index113.mjs +1 -1
  7. package/index114.js +1 -1
  8. package/index114.mjs +2 -2
  9. package/index115.js +1 -1
  10. package/index115.mjs +1 -1
  11. package/index122.js +1 -1
  12. package/index122.mjs +3 -3
  13. package/index123.js +1 -1
  14. package/index123.mjs +3 -3
  15. package/index124.js +1 -1
  16. package/index124.mjs +1 -1
  17. package/index125.js +1 -1
  18. package/index125.mjs +1 -1
  19. package/index130.js +1 -1
  20. package/index130.mjs +1 -1
  21. package/index132.js +1 -1
  22. package/index132.mjs +2 -2
  23. package/index133.js +1 -1
  24. package/index133.mjs +5 -5
  25. package/index134.js +1 -1
  26. package/index134.mjs +3 -3
  27. package/index135.js +1 -1
  28. package/index135.mjs +9 -9
  29. package/index141.js +1 -1
  30. package/index141.mjs +1 -1
  31. package/index145.js +1 -1
  32. package/index145.mjs +2 -2
  33. package/index147.js +1 -1
  34. package/index147.mjs +1 -1
  35. package/index148.js +1 -1
  36. package/index148.mjs +2 -2
  37. package/index152.js +1 -1
  38. package/index152.mjs +46 -12
  39. package/index153.js +2 -1
  40. package/index153.mjs +13 -46
  41. package/index154.js +1 -2
  42. package/index154.mjs +29 -12
  43. package/index155.js +1 -1
  44. package/index155.mjs +57 -30
  45. package/index156.js +1 -1
  46. package/index156.mjs +12 -57
  47. package/index159.js +1 -1
  48. package/index159.mjs +1 -1
  49. package/index161.js +1 -1
  50. package/index161.mjs +68 -22
  51. package/index162.js +1 -1
  52. package/index162.mjs +370 -62
  53. package/index163.js +1 -1
  54. package/index163.mjs +44 -379
  55. package/index164.js +1 -1
  56. package/index164.mjs +4 -47
  57. package/index165.js +1 -1
  58. package/index165.mjs +25 -4
  59. package/index166.js +1 -1
  60. package/index166.mjs +46 -23
  61. package/index167.js +1 -1
  62. package/index167.mjs +4 -46
  63. package/index168.js +1 -1
  64. package/index168.mjs +24 -5
  65. package/index169.js +1 -1
  66. package/index169.mjs +11 -23
  67. package/index170.js +1 -1
  68. package/index170.mjs +4 -12
  69. package/index171.js +1 -1
  70. package/index171.mjs +14 -4
  71. package/index172.js +1 -1
  72. package/index172.mjs +21 -14
  73. package/index173.js +1 -1
  74. package/index173.mjs +42 -21
  75. package/index174.js +1 -1
  76. package/index174.mjs +52 -37
  77. package/index175.js +1 -1
  78. package/index175.mjs +39 -55
  79. package/index176.js +1 -1
  80. package/index176.mjs +27 -40
  81. package/index177.js +1 -1
  82. package/index177.mjs +30 -27
  83. package/index178.js +1 -1
  84. package/index178.mjs +13 -30
  85. package/index179.js +1 -1
  86. package/index179.mjs +10 -14
  87. package/index18.js +1 -1
  88. package/index18.mjs +45 -42
  89. package/index180.js +1 -1
  90. package/index180.mjs +28 -10
  91. package/index181.js +1 -1
  92. package/index181.mjs +9 -28
  93. package/index182.js +1 -1
  94. package/index182.mjs +6 -9
  95. package/index183.js +1 -1
  96. package/index183.mjs +5 -6
  97. package/index184.js +1 -1
  98. package/index184.mjs +7 -5
  99. package/index185.js +1 -1
  100. package/index185.mjs +29 -7
  101. package/index186.js +1 -1
  102. package/index186.mjs +16 -27
  103. package/index187.js +1 -1
  104. package/index187.mjs +12 -17
  105. package/index188.js +1 -1
  106. package/index188.mjs +43 -13
  107. package/index189.js +1 -1
  108. package/index189.mjs +7 -42
  109. package/index190.js +1 -1
  110. package/index190.mjs +17 -8
  111. package/index191.js +1 -1
  112. package/index191.mjs +3 -18
  113. package/index192.js +1 -1
  114. package/index192.mjs +5 -3
  115. package/index193.js +1 -1
  116. package/index193.mjs +19 -4
  117. package/index194.js +1 -1
  118. package/index194.mjs +54 -19
  119. package/index195.js +1 -1
  120. package/index195.mjs +23 -50
  121. package/index196.js +1 -1
  122. package/index196.mjs +122 -138
  123. package/index197.js +1 -1
  124. package/index197.mjs +129 -192
  125. package/index198.js +1 -1
  126. package/index198.mjs +44 -22
  127. package/index199.js +1 -1
  128. package/index199.mjs +14 -49
  129. package/index200.js +1 -1
  130. package/index200.mjs +93 -46
  131. package/index201.js +1 -1
  132. package/index201.mjs +98 -89
  133. package/index202.js +1 -1
  134. package/index202.mjs +5 -72
  135. package/index203.js +1 -1
  136. package/index203.mjs +3 -68
  137. package/index204.js +1 -1
  138. package/index204.mjs +125 -7
  139. package/index205.js +1 -1
  140. package/index205.mjs +29 -11
  141. package/index206.js +1 -1
  142. package/index206.mjs +40 -113
  143. package/index207.js +1 -1
  144. package/index207.mjs +41 -131
  145. package/index208.js +1 -1
  146. package/index208.mjs +36 -43
  147. package/index209.js +1 -1
  148. package/index209.mjs +110 -11
  149. package/index210.js +1 -1
  150. package/index210.mjs +59 -77
  151. package/index211.js +1 -1
  152. package/index211.mjs +94 -99
  153. package/index212.js +1 -1
  154. package/index212.mjs +98 -5
  155. package/index213.js +1 -1
  156. package/index213.mjs +140 -3
  157. package/index214.js +1 -1
  158. package/index214.mjs +191 -119
  159. package/index215.js +1 -1
  160. package/index215.mjs +22 -29
  161. package/index216.js +1 -1
  162. package/index216.mjs +49 -51
  163. package/index217.js +1 -1
  164. package/index217.mjs +47 -43
  165. package/index218.js +1 -1
  166. package/index218.mjs +95 -35
  167. package/index219.js +1 -1
  168. package/index219.mjs +72 -114
  169. package/index220.js +1 -1
  170. package/index220.mjs +67 -76
  171. package/index221.js +1 -1
  172. package/index221.mjs +7 -101
  173. package/index222.js +1 -1
  174. package/index222.mjs +12 -98
  175. package/index250.js +1 -1
  176. package/index250.mjs +4 -4
  177. package/index252.js +1 -1
  178. package/index252.mjs +8 -8
  179. package/index253.js +1 -1
  180. package/index253.mjs +1 -1
  181. package/index255.js +1 -1
  182. package/index255.mjs +5 -5
  183. package/index256.js +1 -1
  184. package/index256.mjs +1 -1
  185. package/index257.js +1 -1
  186. package/index257.mjs +4 -4
  187. package/index258.js +1 -1
  188. package/index258.mjs +1 -1
  189. package/index259.js +1 -1
  190. package/index259.mjs +1 -1
  191. package/index260.js +1 -1
  192. package/index260.mjs +4 -4
  193. package/index261.js +1 -1
  194. package/index261.mjs +4 -4
  195. package/index262.js +1 -1
  196. package/index262.mjs +1 -1
  197. package/index263.js +1 -1
  198. package/index263.mjs +4 -4
  199. package/index264.js +1 -1
  200. package/index264.mjs +4 -4
  201. package/index265.js +1 -1
  202. package/index265.mjs +1 -1
  203. package/index266.js +1 -1
  204. package/index266.mjs +4 -4
  205. package/index267.js +1 -1
  206. package/index267.mjs +4 -4
  207. package/index268.js +1 -1
  208. package/index268.mjs +1 -1
  209. package/index269.js +1 -1
  210. package/index269.mjs +1 -1
  211. package/index270.js +1 -1
  212. package/index270.mjs +4 -4
  213. package/index271.js +1 -1
  214. package/index271.mjs +4 -4
  215. package/index272.js +1 -1
  216. package/index272.mjs +1 -1
  217. package/index273.js +1 -1
  218. package/index273.mjs +4 -4
  219. package/index274.js +1 -1
  220. package/index274.mjs +4 -4
  221. package/index275.js +1 -1
  222. package/index275.mjs +4 -4
  223. package/index276.js +1 -1
  224. package/index276.mjs +1 -1
  225. package/index277.js +1 -1
  226. package/index277.mjs +4 -4
  227. package/index278.js +1 -1
  228. package/index278.mjs +4 -4
  229. package/index279.js +1 -1
  230. package/index279.mjs +4 -4
  231. package/index280.js +1 -1
  232. package/index280.mjs +4 -4
  233. package/index281.js +1 -1
  234. package/index281.mjs +4 -4
  235. package/index282.js +1 -1
  236. package/index282.mjs +1 -1
  237. package/index283.js +1 -1
  238. package/index283.mjs +1 -1
  239. package/index284.js +1 -1
  240. package/index284.mjs +1 -1
  241. package/index285.js +1 -1
  242. package/index285.mjs +4 -4
  243. package/index286.js +1 -1
  244. package/index286.mjs +4 -4
  245. package/index287.js +1 -1
  246. package/index287.mjs +4 -4
  247. package/index288.js +1 -1
  248. package/index288.mjs +4 -4
  249. package/index289.js +1 -1
  250. package/index289.mjs +5 -5
  251. package/index298.js +1 -1
  252. package/index298.mjs +3 -3
  253. package/index300.js +1 -1
  254. package/index300.mjs +2 -2
  255. package/index301.js +1 -1
  256. package/index301.mjs +5 -5
  257. package/index304.js +1 -1
  258. package/index304.mjs +3 -3
  259. package/index307.js +1 -1
  260. package/index307.mjs +5 -5
  261. package/index308.js +1 -1
  262. package/index308.mjs +1 -1
  263. package/index309.js +1 -1
  264. package/index309.mjs +4 -4
  265. package/index310.js +1 -1
  266. package/index310.mjs +2 -2
  267. package/index314.js +1 -1
  268. package/index314.mjs +1 -1
  269. package/index9.js +1 -1
  270. package/index9.mjs +28 -26
  271. package/package.json +1 -1
package/index288.mjs CHANGED
@@ -1,7 +1,7 @@
1
- var s = {};
2
- s = {
3
- dismiss: "關閉"
1
+ var d = {};
2
+ d = {
3
+ dismiss: "取消"
4
4
  };
5
5
  export {
6
- s as default
6
+ d as default
7
7
  };
package/index289.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}exports._=i;
1
+ "use strict";exports.default={};exports.default={dismiss:"關閉"};module.exports=exports.default;
package/index289.mjs CHANGED
@@ -1,7 +1,7 @@
1
- function a(e, t) {
2
- if (t.has(e))
3
- throw new TypeError("Cannot initialize the same private elements twice on an object");
4
- }
1
+ var s = {};
2
+ s = {
3
+ dismiss: "關閉"
4
+ };
5
5
  export {
6
- a as _
6
+ s as default
7
7
  };
package/index298.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index301.js"),u=require("./index170.js"),m=require("./index176.js"),L=require("./index190.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;
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 "./index170.mjs";
3
- import { isMac as L } from "./index176.mjs";
4
- import { isVirtualClick as y } from "./index190.mjs";
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("./index169.js"),F=require("./index170.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;
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 "./index169.mjs";
4
- import { getOwnerDocument as m } from "./index170.mjs";
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("./index170.js"),l=require("./index174.js"),E=require("./index165.js"),m=require("./index188.js"),p=require("./index194.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;
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 "./index170.mjs";
2
- import { focusWithoutScrolling as l } from "./index174.mjs";
3
- import { useLayoutEffect as v } from "./index165.mjs";
4
- import { useEffectEvent as m } from "./index188.mjs";
5
- import { isFocusable as p } from "./index194.mjs";
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("./index170.js"),r=require("./index177.js"),c=require("./index176.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;
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 "./index170.mjs";
2
- import { runAfterTransition as f } from "./index177.mjs";
3
- import { isIOS as o } from "./index176.mjs";
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("./index163.js"),f=require("./index170.js"),m=require("./index123.js"),L=require("./index174.js"),y=require("./index178.js"),D=require("./index186.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;
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 "./index163.mjs";
2
- import { getOwnerDocument as b } from "./index170.mjs";
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 "./index174.mjs";
5
- import { useGlobalListeners as L } from "./index178.mjs";
6
- import { useDescription as x } from "./index186.mjs";
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("./index182.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=$;
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 "./index182.mjs";
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("./index169.js"),u=require("./index170.js"),i=require("./index174.js"),s=require("./index177.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;
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 "./index169.mjs";
3
- import { getOwnerDocument as i } from "./index170.mjs";
4
- import { focusWithoutScrolling as f } from "./index174.mjs";
5
- import { runAfterTransition as $ } from "./index177.mjs";
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("./index156.js"),i=require("./index176.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;
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
@@ -1,5 +1,5 @@
1
- import { useId as l } from "./index156.mjs";
2
- import { isAppleDevice as a } from "./index176.mjs";
1
+ import { useId as l } from "./index155.mjs";
2
+ import { isAppleDevice as a } from "./index175.mjs";
3
3
  function d(e) {
4
4
  return a() ? e.altKey : e.ctrlKey;
5
5
  }
package/index314.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index320.js"),F=require("./index161.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;
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 "./index161.mjs";
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"),j=require("@react-aria/focus"),$=require("react-stately"),q=require("./index27.js"),a=require("./index6.js"),b=require("./index14.js"),f=require("./index30.js"),B=require("./index3.js"),N=require("./index113.js"),p=n=>{const{themeName:r,tokens:o,children:i,...t}=n;return e.jsx(a.default,{themeName:r,tokens:o,...t,children:e.jsx(b,{icon:"CloseBtn"})})},C=n=>{const{children:r,thumbnailContent:o,label:i,themeName:t="lightBox",tokens:s,closeButton:c=p,closeButtonAriaLabel:u,transitionComponent:h}=n,l=$.useOverlayTriggerState(n),{openTriggerProps:d,triggerProps:x,overlayProps:m,labelProps:g}=N({...n,type:"dialog"},l);return e.jsxs(e.Fragment,{children:[e.jsx(j.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:e.jsxs(a.default,{themeName:`${t}.wrapper`,tokens:s,...d,children:[i&&e.jsx(B.default,{themeName:`${t}.label`,tokens:{size:"footnotes"},...g,children:i}),o]})}),e.jsxs(f,{themeName:`${t}.modal`,tokens:s,state:l,...m,transitionComponent:h,children:[e.jsx(c,{themeName:`${t}.closeBtn`,tokens:s,"aria-label":u,...x}),e.jsx(q.default,{themeName:`${t}.container`,tokens:s,children:r})]})]})};module.exports=C;
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 B, jsx as o } from "react/jsx-runtime";
3
- import { FocusRing as b } from "@react-aria/focus";
4
- import { useOverlayTriggerState as x } from "react-stately";
5
- import C from "./index27.mjs";
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 N from "./index14.mjs";
8
- import y from "./index30.mjs";
9
- import $ from "./index3.mjs";
10
- import k from "./index113.mjs";
11
- const P = (t) => {
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(N, { icon: "CloseBtn" }) });
14
- }, A = (t) => {
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: c = P,
22
- closeButtonAriaLabel: h,
23
- transitionComponent: p
24
- } = t, a = x(t), { openTriggerProps: g, triggerProps: u, overlayProps: f, labelProps: d } = k(
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(B, { children: [
29
- /* @__PURE__ */ o(b, { focusRingClass: "has-focus-ring", within: !0, children: /* @__PURE__ */ s(l, { themeName: `${e}.wrapper`, tokens: r, ...g, children: [
30
- m && /* @__PURE__ */ o($, { themeName: `${e}.label`, tokens: { size: "footnotes" }, ...d, children: m }),
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
- y,
36
+ w,
35
37
  {
36
38
  themeName: `${e}.modal`,
37
39
  tokens: r,
38
40
  state: a,
39
- ...f,
41
+ ...B,
40
42
  transitionComponent: p,
41
43
  children: [
42
- /* @__PURE__ */ o(
43
- c,
44
+ g && /* @__PURE__ */ o(
45
+ h,
44
46
  {
45
47
  themeName: `${e}.closeBtn`,
46
48
  tokens: r,
47
- "aria-label": h,
48
- ...u
49
+ "aria-label": c,
50
+ ...f
49
51
  }
50
52
  ),
51
- /* @__PURE__ */ o(C, { themeName: `${e}.container`, tokens: r, children: n })
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
- A as default
60
+ I as default
59
61
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@okam/stack-ui",
3
3
  "main": "./index.js",
4
- "version": "1.36.0",
4
+ "version": "1.37.0",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
7
7
  ".": {