@okam/stack-ui 1.44.1 → 1.44.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/index145.js +1 -1
  3. package/index145.mjs +1 -1
  4. package/index149.js +1 -1
  5. package/index149.mjs +3 -3
  6. package/index155.js +1 -1
  7. package/index155.mjs +1 -1
  8. package/index157.js +1 -1
  9. package/index157.mjs +4 -4
  10. package/index158.js +1 -1
  11. package/index158.mjs +2 -2
  12. package/index159.js +1 -1
  13. package/index159.mjs +1 -1
  14. package/index160.js +1 -1
  15. package/index160.mjs +1 -1
  16. package/index161.js +1 -1
  17. package/index161.mjs +2 -2
  18. package/index165.js +1 -1
  19. package/index165.mjs +2 -2
  20. package/index166.js +1 -1
  21. package/index166.mjs +4 -4
  22. package/index167.js +1 -1
  23. package/index167.mjs +3 -3
  24. package/index168.js +1 -1
  25. package/index168.mjs +9 -9
  26. package/index169.js +1 -1
  27. package/index169.mjs +2 -2
  28. package/index174.js +1 -1
  29. package/index174.mjs +2 -2
  30. package/index179.js +1 -1
  31. package/index179.mjs +4 -4
  32. package/index180.js +1 -1
  33. package/index180.mjs +1 -1
  34. package/index181.js +1 -1
  35. package/index181.mjs +2 -2
  36. package/index182.js +1 -1
  37. package/index182.mjs +3 -3
  38. package/index185.js +1 -1
  39. package/index185.mjs +3 -3
  40. package/index186.js +1 -1
  41. package/index186.mjs +23 -23
  42. package/index187.js +1 -1
  43. package/index187.mjs +12 -12
  44. package/index188.js +1 -1
  45. package/index188.mjs +5 -2024
  46. package/index189.js +2 -1
  47. package/index189.mjs +48 -58
  48. package/index190.js +1 -1
  49. package/index190.mjs +2010 -174
  50. package/index191.js +1 -1
  51. package/index191.mjs +56 -200
  52. package/index192.js +1 -1
  53. package/index192.mjs +186 -62
  54. package/index193.js +1 -1
  55. package/index193.mjs +189 -129
  56. package/index194.js +1 -1
  57. package/index194.mjs +55 -115
  58. package/index195.js +1 -1
  59. package/index195.mjs +127 -208
  60. package/index196.js +1 -1
  61. package/index196.mjs +107 -173
  62. package/index197.js +1 -1
  63. package/index197.mjs +215 -60
  64. package/index198.js +1 -1
  65. package/index198.mjs +178 -267
  66. package/index199.js +1 -1
  67. package/index199.mjs +63 -92
  68. package/index200.js +1 -1
  69. package/index200.mjs +254 -163
  70. package/index201.js +1 -1
  71. package/index201.mjs +91 -77
  72. package/index202.js +1 -1
  73. package/index202.mjs +183 -53
  74. package/index203.js +1 -1
  75. package/index203.mjs +72 -114
  76. package/index204.js +1 -1
  77. package/index204.mjs +51 -109
  78. package/index205.js +1 -1
  79. package/index205.mjs +112 -108
  80. package/index206.js +1 -1
  81. package/index206.mjs +109 -65
  82. package/index207.js +1 -1
  83. package/index207.mjs +117 -105
  84. package/index208.js +1 -1
  85. package/index208.mjs +68 -48
  86. package/index209.js +1 -1
  87. package/index209.mjs +108 -91
  88. package/index210.js +1 -1
  89. package/index210.mjs +36 -54
  90. package/index211.js +1 -1
  91. package/index211.mjs +78 -41
  92. package/index212.js +1 -1
  93. package/index212.mjs +52 -81
  94. package/index213.js +1 -5
  95. package/index213.mjs +42 -66
  96. package/index214.js +1 -1
  97. package/index214.mjs +100 -12
  98. package/index215.js +5 -1
  99. package/index215.mjs +80 -5
  100. package/index216.js +1 -2
  101. package/index216.mjs +11 -49
  102. package/index217.js +1 -1
  103. package/index217.mjs +124 -9
  104. package/index218.js +1 -1
  105. package/index218.mjs +132 -56
  106. package/index219.js +1 -1
  107. package/index219.mjs +73 -131
  108. package/index220.js +1 -1
  109. package/index220.mjs +14 -14
  110. package/index221.js +1 -1
  111. package/index221.mjs +85 -33
  112. package/index222.js +1 -1
  113. package/index222.mjs +104 -229
  114. package/index223.js +1 -1
  115. package/index223.mjs +4 -125
  116. package/index224.js +1 -1
  117. package/index224.mjs +3 -72
  118. package/index225.js +1 -7
  119. package/index225.mjs +117 -431
  120. package/index226.js +1 -1
  121. package/index226.mjs +29 -58
  122. package/index227.js +1 -1
  123. package/index227.mjs +51 -54
  124. package/index228.js +1 -1
  125. package/index228.mjs +45 -4
  126. package/index229.js +1 -1
  127. package/index229.mjs +36 -24
  128. package/index230.js +1 -1
  129. package/index230.mjs +106 -40
  130. package/index231.js +1 -1
  131. package/index231.mjs +77 -5
  132. package/index232.js +1 -1
  133. package/index232.mjs +100 -23
  134. package/index233.js +1 -1
  135. package/index233.mjs +98 -13
  136. package/index234.js +1 -1
  137. package/index234.mjs +130 -4
  138. package/index235.js +1 -1
  139. package/index235.mjs +190 -14
  140. package/index236.js +1 -1
  141. package/index236.mjs +4 -43
  142. package/index237.js +1 -1
  143. package/index237.mjs +25 -43
  144. package/index238.js +1 -1
  145. package/index238.mjs +44 -29
  146. package/index239.js +1 -1
  147. package/index239.mjs +4 -30
  148. package/index240.js +1 -1
  149. package/index240.mjs +24 -10
  150. package/index241.js +1 -1
  151. package/index241.mjs +11 -28
  152. package/index242.js +1 -1
  153. package/index242.mjs +4 -15
  154. package/index243.js +1 -1
  155. package/index243.mjs +14 -9
  156. package/index244.js +1 -1
  157. package/index244.mjs +42 -6
  158. package/index245.js +1 -1
  159. package/index245.mjs +58 -5
  160. package/index246.js +1 -1
  161. package/index246.mjs +43 -7
  162. package/index247.js +1 -1
  163. package/index247.mjs +30 -27
  164. package/index248.js +1 -1
  165. package/index248.mjs +29 -15
  166. package/index249.js +1 -1
  167. package/index249.mjs +14 -44
  168. package/index250.js +1 -1
  169. package/index250.mjs +10 -8
  170. package/index251.js +1 -1
  171. package/index251.mjs +27 -14
  172. package/index252.js +1 -1
  173. package/index252.mjs +16 -3
  174. package/index253.js +1 -1
  175. package/index253.mjs +9 -19
  176. package/index254.js +1 -1
  177. package/index254.mjs +6 -34
  178. package/index255.js +1 -1
  179. package/index255.mjs +5 -22
  180. package/index256.js +1 -1
  181. package/index256.mjs +7 -27
  182. package/index257.js +1 -1
  183. package/index257.mjs +27 -128
  184. package/index258.js +1 -1
  185. package/index258.mjs +17 -190
  186. package/index259.js +1 -1
  187. package/index259.mjs +43 -8
  188. package/index260.js +1 -1
  189. package/index260.mjs +8 -3
  190. package/index261.js +1 -1
  191. package/index261.mjs +15 -35
  192. package/index262.js +1 -1
  193. package/index262.mjs +3 -6
  194. package/index263.js +1 -1
  195. package/index263.mjs +19 -29
  196. package/index264.js +1 -1
  197. package/index264.mjs +34 -6
  198. package/index265.js +1 -1
  199. package/index265.mjs +20 -122
  200. package/index266.js +1 -1
  201. package/index266.mjs +8 -133
  202. package/index267.js +1 -1
  203. package/index267.mjs +3 -75
  204. package/index268.js +1 -1
  205. package/index268.mjs +36 -14
  206. package/index269.js +1 -1
  207. package/index269.mjs +5 -95
  208. package/index270.js +1 -1
  209. package/index270.mjs +28 -105
  210. package/index271.js +1 -1
  211. package/index271.mjs +6 -4
  212. package/index272.js +1 -1
  213. package/index272.mjs +9 -3
  214. package/index273.js +1 -1
  215. package/index273.mjs +130 -122
  216. package/index274.js +1 -1
  217. package/index274.mjs +37 -23
  218. package/index275.js +1 -1
  219. package/index275.mjs +231 -51
  220. package/index276.js +1 -1
  221. package/index276.mjs +122 -41
  222. package/index277.js +1 -1
  223. package/index277.mjs +70 -35
  224. package/index278.js +7 -1
  225. package/index278.mjs +429 -103
  226. package/index279.js +1 -1
  227. package/index279.mjs +58 -77
  228. package/index280.js +1 -1
  229. package/index280.mjs +52 -99
  230. package/index281.js +1 -1
  231. package/index281.mjs +27 -97
  232. package/index282.js +1 -1
  233. package/index282.mjs +28 -141
  234. package/index283.js +1 -1
  235. package/index283.mjs +140 -209
  236. package/index284.js +1 -1
  237. package/index284.mjs +213 -22
  238. package/index285.js +1 -1
  239. package/index285.mjs +20 -47
  240. package/index286.js +1 -1
  241. package/index286.mjs +45 -42
  242. package/index287.js +1 -6
  243. package/index287.mjs +41 -108
  244. package/index288.js +6 -1
  245. package/index288.mjs +114 -72
  246. package/index289.js +1 -1
  247. package/index289.mjs +72 -75
  248. package/index290.js +1 -1
  249. package/index290.mjs +74 -7
  250. package/index291.js +1 -1
  251. package/index291.mjs +7 -11
  252. package/index292.js +1 -1
  253. package/index292.mjs +10 -30
  254. package/index293.js +1 -1
  255. package/index293.mjs +4 -3
  256. package/index294.js +1 -1
  257. package/index294.mjs +3 -4
  258. package/index329.js +1 -1
  259. package/index329.mjs +1 -1
  260. package/index331.js +1 -1
  261. package/index331.mjs +4 -4
  262. package/index332.js +1 -1
  263. package/index332.mjs +4 -4
  264. package/index333.js +1 -1
  265. package/index333.mjs +5 -5
  266. package/index335.js +1 -1
  267. package/index335.mjs +2 -2
  268. package/index336.js +1 -1
  269. package/index336.mjs +4 -4
  270. package/index339.js +1 -1
  271. package/index339.mjs +3 -3
  272. package/index342.js +1 -1
  273. package/index342.mjs +1 -1
  274. package/index345.js +1 -1
  275. package/index345.mjs +1 -1
  276. package/logger.d.ts +2 -2
  277. package/package.json +2 -2
package/index332.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import { getInteractionModality as a } from "./index331.mjs";
2
- import { getActiveElement as f } from "./index232.mjs";
3
- import { getOwnerDocument as i } from "./index233.mjs";
4
- import { focusWithoutScrolling as c } from "./index236.mjs";
5
- import { runAfterTransition as $ } from "./index238.mjs";
2
+ import { getActiveElement as f } from "./index240.mjs";
3
+ import { getOwnerDocument as i } from "./index241.mjs";
4
+ import { focusWithoutScrolling as c } from "./index244.mjs";
5
+ import { runAfterTransition as $ } from "./index247.mjs";
6
6
  function p(e) {
7
7
  const o = i(e);
8
8
  if (a() === "virtual") {
package/index333.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index225.js"),f=require("./index233.js"),m=require("./index158.js"),L=require("./index236.js"),y=require("./index239.js"),D=require("./index247.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("./index278.js"),f=require("./index241.js"),m=require("./index158.js"),L=require("./index244.js"),y=require("./index248.js"),D=require("./index257.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/index333.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { usePress as $ } from "./index225.mjs";
2
- import { getOwnerDocument as b } from "./index233.mjs";
1
+ import { usePress as $ } from "./index278.mjs";
2
+ import { getOwnerDocument as b } from "./index241.mjs";
3
3
  import { mergeProps as g } from "./index158.mjs";
4
- import { focusWithoutScrolling as P } from "./index236.mjs";
5
- import { useGlobalListeners as L } from "./index239.mjs";
6
- import { useDescription as x } from "./index247.mjs";
4
+ import { focusWithoutScrolling as P } from "./index244.mjs";
5
+ import { useGlobalListeners as L } from "./index248.mjs";
6
+ import { useDescription as x } from "./index257.mjs";
7
7
  import { useRef as y } from "react";
8
8
  const D = 500;
9
9
  function R(p) {
package/index335.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./index336.js"),a=require("react"),r=require("./index232.js"),F=require("./index233.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("./index336.js"),a=require("react"),r=require("./index240.js"),F=require("./index241.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/index335.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { useSyntheticBlurEvent as l } from "./index336.mjs";
2
2
  import { useCallback as u } from "react";
3
- import { getActiveElement as a, getEventTarget as p } from "./index232.mjs";
4
- import { getOwnerDocument as m } from "./index233.mjs";
3
+ import { getActiveElement as a, getEventTarget as p } from "./index240.mjs";
4
+ import { getOwnerDocument as m } from "./index241.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/index336.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index233.js"),l=require("./index236.js"),E=require("./index228.js"),m=require("./index254.js"),d=require("react");function v(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function p(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function g(t){let e=d.useRef({isFocused:!1,observer:null});return E.useLayoutEffect(()=>{const n=e.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),d.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){e.current.isFocused=!0;let r=n.target,i=u=>{if(e.current.isFocused=!1,r.disabled){let c=v(u);t==null||t(c)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};r.addEventListener("focusout",i,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&r.disabled){var u;(u=e.current.observer)===null||u===void 0||u.disconnect();let c=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:c})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:c}))}}),e.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[t])}exports.ignoreFocusEvent=!1;function F(t){for(;t&&!m.isFocusable(t);)t=t.parentElement;let e=b.getOwnerWindow(t),n=e.document.activeElement;if(!n||n===t)return;exports.ignoreFocusEvent=!0;let r=!1,i=o=>{(o.target===n||r)&&o.stopImmediatePropagation()},u=o=>{(o.target===n||r)&&(o.stopImmediatePropagation(),!t&&!r&&(r=!0,l.focusWithoutScrolling(n),s()))},c=o=>{(o.target===t||r)&&o.stopImmediatePropagation()},a=o=>{(o.target===t||r)&&(o.stopImmediatePropagation(),r||(r=!0,l.focusWithoutScrolling(n),s()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",u,!0),e.addEventListener("focusin",a,!0),e.addEventListener("focus",c,!0);let s=()=>{cancelAnimationFrame(f),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",u,!0),e.removeEventListener("focusin",a,!0),e.removeEventListener("focus",c,!0),exports.ignoreFocusEvent=!1,r=!1},f=requestAnimationFrame(s);return s}exports.createSyntheticEvent=v;exports.preventFocus=F;exports.setEventTarget=p;exports.useSyntheticBlurEvent=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index241.js"),l=require("./index244.js"),E=require("./index236.js"),m=require("./index264.js"),d=require("react");function v(t){let e=t;return e.nativeEvent=t,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function p(t,e){Object.defineProperty(t,"target",{value:e}),Object.defineProperty(t,"currentTarget",{value:e})}function g(t){let e=d.useRef({isFocused:!1,observer:null});return E.useLayoutEffect(()=>{const n=e.current;return()=>{n.observer&&(n.observer.disconnect(),n.observer=null)}},[]),d.useCallback(n=>{if(n.target instanceof HTMLButtonElement||n.target instanceof HTMLInputElement||n.target instanceof HTMLTextAreaElement||n.target instanceof HTMLSelectElement){e.current.isFocused=!0;let r=n.target,i=u=>{if(e.current.isFocused=!1,r.disabled){let c=v(u);t==null||t(c)}e.current.observer&&(e.current.observer.disconnect(),e.current.observer=null)};r.addEventListener("focusout",i,{once:!0}),e.current.observer=new MutationObserver(()=>{if(e.current.isFocused&&r.disabled){var u;(u=e.current.observer)===null||u===void 0||u.disconnect();let c=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:c})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:c}))}}),e.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[t])}exports.ignoreFocusEvent=!1;function F(t){for(;t&&!m.isFocusable(t);)t=t.parentElement;let e=b.getOwnerWindow(t),n=e.document.activeElement;if(!n||n===t)return;exports.ignoreFocusEvent=!0;let r=!1,i=o=>{(o.target===n||r)&&o.stopImmediatePropagation()},u=o=>{(o.target===n||r)&&(o.stopImmediatePropagation(),!t&&!r&&(r=!0,l.focusWithoutScrolling(n),s()))},c=o=>{(o.target===t||r)&&o.stopImmediatePropagation()},a=o=>{(o.target===t||r)&&(o.stopImmediatePropagation(),r||(r=!0,l.focusWithoutScrolling(n),s()))};e.addEventListener("blur",i,!0),e.addEventListener("focusout",u,!0),e.addEventListener("focusin",a,!0),e.addEventListener("focus",c,!0);let s=()=>{cancelAnimationFrame(f),e.removeEventListener("blur",i,!0),e.removeEventListener("focusout",u,!0),e.removeEventListener("focusin",a,!0),e.removeEventListener("focus",c,!0),exports.ignoreFocusEvent=!1,r=!1},f=requestAnimationFrame(s);return s}exports.createSyntheticEvent=v;exports.preventFocus=F;exports.setEventTarget=p;exports.useSyntheticBlurEvent=g;
package/index336.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { getOwnerWindow as b } from "./index233.mjs";
2
- import { focusWithoutScrolling as d } from "./index236.mjs";
3
- import { useLayoutEffect as v } from "./index228.mjs";
4
- import { isFocusable as m } from "./index254.mjs";
1
+ import { getOwnerWindow as b } from "./index241.mjs";
2
+ import { focusWithoutScrolling as d } from "./index244.mjs";
3
+ import { useLayoutEffect as v } from "./index236.mjs";
4
+ import { isFocusable as m } from "./index264.mjs";
5
5
  import { useRef as p, useCallback as E } from "react";
6
6
  function $(t) {
7
7
  let e = t;
package/index339.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index233.js"),r=require("./index238.js"),c=require("./index237.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("./index241.js"),r=require("./index247.js"),c=require("./index246.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/index339.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { getOwnerDocument as i } from "./index233.mjs";
2
- import { runAfterTransition as f } from "./index238.mjs";
3
- import { isIOS as o } from "./index237.mjs";
1
+ import { getOwnerDocument as i } from "./index241.mjs";
2
+ import { runAfterTransition as f } from "./index247.mjs";
3
+ import { isIOS as o } from "./index246.mjs";
4
4
  let l = "default", s = "", n = /* @__PURE__ */ new WeakMap();
5
5
  function m(e) {
6
6
  if (o()) {
package/index342.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./index332.js"),d=require("./index335.js"),P=require("./index337.js"),n=require("./index158.js"),x=require("./index243.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("./index332.js"),d=require("./index335.js"),P=require("./index337.js"),n=require("./index158.js"),x=require("./index253.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/index342.mjs CHANGED
@@ -2,7 +2,7 @@ import { focusSafely as d } from "./index332.mjs";
2
2
  import { useFocus as n } from "./index335.mjs";
3
3
  import { useKeyboard as $ } from "./index337.mjs";
4
4
  import { mergeProps as c } from "./index158.mjs";
5
- import { useSyncRef as l } from "./index243.mjs";
5
+ import { useSyncRef as l } from "./index253.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/index345.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./index351.js"),F=require("./index256.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("./index351.js"),F=require("./index281.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/index345.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Selection as K } from "./index351.mjs";
2
- import { useControlledState as M } from "./index256.mjs";
2
+ import { useControlledState as M } from "./index281.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/logger.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const logger: import('../../logger/src/index.ts').Logger;
2
- export declare const log: (message: string, severity?: import('../../logger/src/index.ts').LogSeverity, context?: Record<string, unknown>) => void;
1
+ export declare const logger: import('@okam/logger').Logger;
2
+ export declare const log: (message: string, severity?: import('@okam/logger').LogSeverity, context?: Record<string, unknown>) => void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@okam/stack-ui",
3
3
  "main": "./index.js",
4
- "version": "1.44.1",
4
+ "version": "1.44.3",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
7
7
  ".": {
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@internationalized/date": "^3.10.1",
30
- "@okam/core-lib": "1.17.0",
30
+ "@okam/core-lib": "1.17.1",
31
31
  "@okam/logger": "1.1.0",
32
32
  "@react-aria/accordion": "^3.0.0-alpha.36",
33
33
  "@react-aria/checkbox": "^3.16.3",