@okam/stack-ui 1.44.0 → 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.
- package/CHANGELOG.md +82 -4
- package/components/Popover/interface.d.ts +3 -3
- package/components/TagGroup/interface.d.ts +2 -2
- package/index.d.ts +2 -0
- package/index149.js +1 -1
- package/index149.mjs +4 -4
- package/index155.js +1 -1
- package/index155.mjs +4 -4
- package/index157.js +1 -1
- package/index157.mjs +4 -4
- package/index158.js +1 -1
- package/index158.mjs +2 -2
- package/index159.js +1 -1
- package/index159.mjs +1 -1
- package/index160.js +1 -1
- package/index160.mjs +1 -1
- package/index161.js +1 -2
- package/index161.mjs +39 -12
- package/index162.js +1 -1
- package/index162.mjs +12 -38
- package/index163.js +2 -1
- package/index163.mjs +26 -11
- package/index164.js +2 -1
- package/index164.mjs +38 -13
- package/index165.js +1 -1
- package/index165.mjs +21 -38
- package/index166.js +1 -2
- package/index166.mjs +44 -24
- package/index167.js +1 -1
- package/index167.mjs +25 -22
- package/index168.js +1 -1
- package/index168.mjs +40 -45
- package/index169.js +2 -1
- package/index169.mjs +57 -25
- package/index170.js +1 -1
- package/index170.mjs +39 -41
- package/index171.js +1 -2
- package/index171.mjs +30 -57
- package/index172.js +2 -1
- package/index172.mjs +8 -38
- package/index173.js +2 -1
- package/index173.mjs +9 -30
- package/index174.js +1 -2
- package/index174.mjs +32 -9
- package/index175.js +1 -2
- package/index175.mjs +14 -9
- package/index176.js +1 -1
- package/index176.mjs +16 -31
- package/index177.js +1 -1
- package/index177.mjs +11 -15
- package/index178.js +2 -1
- package/index178.mjs +47 -16
- package/index179.js +1 -2
- package/index179.mjs +36 -46
- package/index180.js +1 -1
- package/index180.mjs +31 -36
- package/index181.js +1 -1
- package/index181.mjs +20 -31
- package/index182.js +1 -1
- package/index182.mjs +32 -18
- package/index183.js +1 -1
- package/index183.mjs +14 -36
- package/index185.js +1 -1
- package/index185.mjs +3 -3
- package/index186.js +1 -1
- package/index186.mjs +23 -23
- package/index188.js +1 -1
- package/index188.mjs +5 -2025
- package/index189.js +2 -1
- package/index189.mjs +48 -58
- package/index190.js +1 -1
- package/index190.mjs +2010 -174
- package/index191.js +1 -1
- package/index191.mjs +59 -5
- package/index192.js +1 -2
- package/index192.mjs +186 -47
- package/index193.js +1 -1
- package/index193.mjs +203 -11
- package/index194.js +1 -1
- package/index194.mjs +51 -190
- package/index195.js +1 -1
- package/index195.mjs +130 -51
- package/index196.js +1 -1
- package/index196.mjs +111 -130
- package/index197.js +1 -1
- package/index197.mjs +205 -105
- package/index198.js +1 -1
- package/index198.mjs +169 -203
- package/index199.js +1 -1
- package/index199.mjs +61 -182
- package/index2.mjs +35 -35
- package/index200.js +1 -1
- package/index200.mjs +270 -60
- package/index201.js +1 -1
- package/index201.mjs +89 -270
- package/index202.js +1 -1
- package/index202.mjs +182 -92
- package/index203.js +1 -1
- package/index203.mjs +78 -182
- package/index204.js +1 -1
- package/index204.mjs +49 -75
- package/index205.js +1 -1
- package/index205.mjs +117 -49
- package/index206.js +1 -1
- package/index206.mjs +108 -118
- package/index207.js +1 -1
- package/index207.mjs +112 -106
- package/index208.js +1 -1
- package/index208.mjs +63 -113
- package/index209.js +1 -1
- package/index209.mjs +108 -70
- package/index210.js +1 -1
- package/index210.mjs +50 -108
- package/index211.js +1 -1
- package/index211.mjs +75 -34
- package/index212.js +1 -1
- package/index212.mjs +48 -71
- package/index213.js +1 -1
- package/index213.mjs +43 -57
- package/index214.js +1 -1
- package/index214.mjs +86 -43
- package/index215.js +5 -1
- package/index215.mjs +62 -81
- package/index216.js +1 -5
- package/index216.mjs +11 -80
- package/index217.js +1 -1
- package/index217.mjs +119 -125
- package/index218.js +1 -1
- package/index218.mjs +129 -185
- package/index219.js +1 -1
- package/index219.mjs +72 -121
- package/index220.js +1 -1
- package/index220.mjs +12 -132
- package/index221.js +1 -1
- package/index221.mjs +89 -69
- package/index222.js +1 -1
- package/index222.mjs +104 -12
- package/index223.js +1 -1
- package/index223.mjs +4 -95
- package/index224.js +1 -1
- package/index224.mjs +3 -106
- package/index225.js +1 -1
- package/index225.mjs +125 -4
- package/index226.js +1 -1
- package/index226.mjs +29 -3
- package/index227.js +1 -1
- package/index227.mjs +39 -113
- package/index228.js +1 -1
- package/index228.mjs +34 -19
- package/index229.js +1 -1
- package/index229.mjs +26 -40
- package/index230.js +1 -1
- package/index230.mjs +98 -29
- package/index231.js +1 -1
- package/index231.mjs +68 -28
- package/index232.js +1 -1
- package/index232.mjs +78 -90
- package/index233.js +1 -1
- package/index233.mjs +98 -78
- package/index234.js +1 -1
- package/index234.mjs +125 -96
- package/index235.js +1 -1
- package/index235.mjs +191 -98
- package/index236.js +1 -1
- package/index236.mjs +4 -126
- package/index237.js +1 -1
- package/index237.mjs +20 -67
- package/index238.js +1 -7
- package/index238.mjs +39 -431
- package/index239.js +1 -1
- package/index239.mjs +4 -57
- package/index240.js +1 -1
- package/index240.mjs +24 -3
- package/index241.js +1 -1
- package/index241.mjs +12 -25
- package/index242.js +1 -1
- package/index242.mjs +4 -47
- package/index243.js +1 -1
- package/index243.mjs +14 -5
- package/index244.js +1 -1
- package/index244.mjs +40 -22
- package/index245.js +1 -1
- package/index245.mjs +57 -11
- package/index246.js +1 -1
- package/index246.mjs +43 -4
- package/index247.js +1 -1
- package/index247.mjs +31 -13
- package/index248.js +1 -1
- package/index248.mjs +31 -42
- package/index249.js +1 -1
- package/index249.mjs +13 -57
- package/index250.js +1 -1
- package/index250.mjs +10 -43
- package/index251.js +1 -1
- package/index251.mjs +28 -31
- package/index252.js +1 -1
- package/index252.mjs +14 -30
- package/index253.js +1 -1
- package/index253.mjs +9 -14
- package/index254.js +1 -1
- package/index254.mjs +6 -10
- package/index255.js +1 -1
- package/index255.mjs +5 -29
- package/index256.js +1 -1
- package/index256.mjs +7 -15
- package/index257.js +1 -1
- package/index257.mjs +29 -9
- package/index258.js +1 -1
- package/index258.mjs +17 -6
- package/index259.js +1 -1
- package/index259.mjs +44 -5
- package/index260.js +1 -1
- package/index260.mjs +8 -7
- package/index261.js +1 -1
- package/index261.mjs +13 -26
- package/index262.js +1 -1
- package/index262.mjs +3 -18
- package/index263.js +1 -1
- package/index263.mjs +18 -43
- package/index264.js +1 -1
- package/index264.mjs +33 -7
- package/index265.js +1 -1
- package/index265.mjs +22 -16
- package/index266.js +1 -1
- package/index266.mjs +10 -3
- package/index267.js +1 -1
- package/index267.mjs +2 -18
- package/index268.js +1 -1
- package/index268.mjs +36 -34
- package/index269.js +1 -1
- package/index269.mjs +5 -22
- package/index270.js +1 -1
- package/index270.mjs +28 -53
- package/index271.js +1 -1
- package/index271.mjs +6 -27
- package/index272.js +1 -1
- package/index272.mjs +9 -144
- package/index273.js +1 -1
- package/index273.mjs +127 -207
- package/index274.js +1 -1
- package/index274.mjs +43 -22
- package/index275.js +1 -1
- package/index275.mjs +226 -44
- package/index276.js +1 -1
- package/index276.mjs +121 -42
- package/index277.js +1 -6
- package/index277.mjs +64 -105
- package/index278.js +7 -1
- package/index278.mjs +440 -72
- package/index279.js +1 -1
- package/index279.mjs +56 -72
- package/index28.js +1 -1
- package/index28.mjs +38 -94
- package/index280.js +1 -1
- package/index280.mjs +54 -7
- package/index281.js +1 -1
- package/index281.mjs +27 -11
- package/index282.js +1 -1
- package/index282.mjs +31 -9
- package/index283.js +1 -1
- package/index283.mjs +136 -125
- package/index284.js +1 -1
- package/index284.mjs +209 -39
- package/index285.js +1 -1
- package/index285.mjs +19 -228
- package/index286.js +1 -1
- package/index286.mjs +46 -28
- package/index287.js +1 -1
- package/index287.mjs +45 -8
- package/index288.js +6 -1
- package/index288.mjs +113 -3
- package/index289.js +1 -1
- package/index289.mjs +72 -37
- package/index29.js +1 -1
- package/index29.mjs +2 -2
- package/index290.js +1 -1
- package/index290.mjs +74 -5
- package/index291.js +1 -1
- package/index291.mjs +7 -29
- package/index292.js +1 -1
- package/index292.mjs +11 -6
- package/index30.js +1 -1
- package/index30.mjs +1 -1
- package/index329.js +1 -1
- package/index329.mjs +17 -59
- package/index33.js +1 -1
- package/index33.mjs +2 -2
- package/index330.js +1 -1
- package/index330.mjs +30 -7
- package/index331.js +1 -1
- package/index331.mjs +63 -27
- package/index332.js +1 -1
- package/index332.mjs +15 -87
- package/index333.js +1 -1
- package/index333.mjs +48 -7
- package/index334.js +1 -1
- package/index334.mjs +7 -26
- package/index335.js +1 -1
- package/index335.mjs +26 -32
- package/index336.js +1 -1
- package/index336.mjs +87 -6
- package/index337.js +1 -1
- package/index337.mjs +9 -6
- package/index338.js +1 -1
- package/index338.mjs +23 -48
- package/index339.js +1 -1
- package/index339.mjs +32 -28
- package/index34.js +1 -1
- package/index34.mjs +3 -3
- package/index340.js +1 -1
- package/index340.mjs +6 -15
- package/index341.js +1 -1
- package/index341.mjs +6 -21
- package/index342.js +1 -1
- package/index342.mjs +28 -28
- package/index345.js +1 -1
- package/index345.mjs +1 -1
- package/index35.js +1 -1
- package/index35.mjs +1 -1
- package/index36.js +1 -1
- package/index36.mjs +2 -2
- package/index38.js +1 -1
- package/index38.mjs +3 -3
- package/index39.js +1 -1
- package/index39.mjs +3 -3
- package/index40.js +1 -1
- package/index40.mjs +3 -3
- package/index42.js +1 -1
- package/index42.mjs +1 -1
- package/index44.js +1 -1
- package/index44.mjs +2 -2
- package/index45.js +1 -1
- package/index45.mjs +1 -1
- package/index48.js +1 -1
- package/index48.mjs +2 -2
- package/index52.js +1 -1
- package/index52.mjs +1 -1
- package/index54.js +1 -1
- package/index54.mjs +3 -3
- package/index56.js +1 -1
- package/index56.mjs +2 -2
- package/index57.js +1 -1
- package/index57.mjs +1 -1
- package/index59.js +1 -1
- package/index59.mjs +2 -2
- package/logger.d.ts +2 -2
- package/package.json +2 -2
package/index289.mjs
CHANGED
|
@@ -1,39 +1,74 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
import r from "./index295.mjs";
|
|
2
|
+
import o from "./index296.mjs";
|
|
3
|
+
import f from "./index297.mjs";
|
|
4
|
+
import t from "./index298.mjs";
|
|
5
|
+
import p from "./index299.mjs";
|
|
6
|
+
import $ from "./index300.mjs";
|
|
7
|
+
import e from "./index301.mjs";
|
|
8
|
+
import m from "./index302.mjs";
|
|
9
|
+
import s from "./index303.mjs";
|
|
10
|
+
import d from "./index304.mjs";
|
|
11
|
+
import c from "./index305.mjs";
|
|
12
|
+
import i from "./index306.mjs";
|
|
13
|
+
import x from "./index307.mjs";
|
|
14
|
+
import a from "./index308.mjs";
|
|
15
|
+
import b from "./index309.mjs";
|
|
16
|
+
import R from "./index310.mjs";
|
|
17
|
+
import l from "./index311.mjs";
|
|
18
|
+
import E from "./index312.mjs";
|
|
19
|
+
import S from "./index313.mjs";
|
|
20
|
+
import h from "./index314.mjs";
|
|
21
|
+
import L from "./index315.mjs";
|
|
22
|
+
import T from "./index316.mjs";
|
|
23
|
+
import u from "./index317.mjs";
|
|
24
|
+
import I from "./index318.mjs";
|
|
25
|
+
import P from "./index319.mjs";
|
|
26
|
+
import U from "./index320.mjs";
|
|
27
|
+
import k from "./index321.mjs";
|
|
28
|
+
import n from "./index322.mjs";
|
|
29
|
+
import v from "./index323.mjs";
|
|
30
|
+
import K from "./index324.mjs";
|
|
31
|
+
import N from "./index325.mjs";
|
|
32
|
+
import z from "./index326.mjs";
|
|
33
|
+
import A from "./index327.mjs";
|
|
34
|
+
import B from "./index328.mjs";
|
|
35
|
+
var C = {};
|
|
36
|
+
C = {
|
|
37
|
+
"ar-AE": r,
|
|
38
|
+
"bg-BG": o,
|
|
39
|
+
"cs-CZ": f,
|
|
40
|
+
"da-DK": t,
|
|
41
|
+
"de-DE": p,
|
|
42
|
+
"el-GR": $,
|
|
43
|
+
"en-US": e,
|
|
44
|
+
"es-ES": m,
|
|
45
|
+
"et-EE": s,
|
|
46
|
+
"fi-FI": d,
|
|
47
|
+
"fr-FR": c,
|
|
48
|
+
"he-IL": i,
|
|
49
|
+
"hr-HR": x,
|
|
50
|
+
"hu-HU": a,
|
|
51
|
+
"it-IT": b,
|
|
52
|
+
"ja-JP": R,
|
|
53
|
+
"ko-KR": l,
|
|
54
|
+
"lt-LT": E,
|
|
55
|
+
"lv-LV": S,
|
|
56
|
+
"nb-NO": h,
|
|
57
|
+
"nl-NL": L,
|
|
58
|
+
"pl-PL": T,
|
|
59
|
+
"pt-BR": u,
|
|
60
|
+
"pt-PT": I,
|
|
61
|
+
"ro-RO": P,
|
|
62
|
+
"ru-RU": U,
|
|
63
|
+
"sk-SK": k,
|
|
64
|
+
"sl-SI": n,
|
|
65
|
+
"sr-SP": v,
|
|
66
|
+
"sv-SE": K,
|
|
67
|
+
"tr-TR": N,
|
|
68
|
+
"uk-UA": z,
|
|
69
|
+
"zh-CN": A,
|
|
70
|
+
"zh-TW": B
|
|
71
|
+
};
|
|
37
72
|
export {
|
|
38
|
-
|
|
73
|
+
C as default
|
|
39
74
|
};
|
package/index29.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime"),p=require("./
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),p=require("./index161.js"),G=require("react-aria"),m=require("./index162.js"),n=require("./index37.js"),i=require("./index3.js"),f=r=>{const{label:s,isError:a=!1,errorMessage:o,isDisabled:t=!1,children:x,themeName:c="checkboxGroup",tokens:h}=r,u=p.useCheckboxGroupState(r),{groupProps:l,labelProps:d,errorMessageProps:k}=G.useCheckboxGroup(r,u),b={...h,isDisabled:t};return e.jsxs(n.default,{...l,"aria-disabled":t,themeName:`${c}.checkboxGroup`,tokens:b,children:[s&&e.jsx(i.default,{...d,tokens:{size:"h6"},children:s}),e.jsx(n.default,{themeName:`${c}.checkboxGroupItemsGroup`,children:e.jsx(m.CheckboxGroupProvider,{state:u,children:x})}),a&&o&&e.jsx(i.default,{...k,tokens:{isError:!0},children:o})]})};module.exports=f;
|
package/index29.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as k, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { useCheckboxGroupState as x } from "./
|
|
3
|
+
import { useCheckboxGroupState as x } from "./index161.mjs";
|
|
4
4
|
import { useCheckboxGroup as f } from "react-aria";
|
|
5
|
-
import { CheckboxGroupProvider as G } from "./
|
|
5
|
+
import { CheckboxGroupProvider as G } from "./index162.mjs";
|
|
6
6
|
import i from "./index37.mjs";
|
|
7
7
|
import m from "./index3.mjs";
|
|
8
8
|
const y = (o) => {
|
package/index290.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./index241.js"),M=typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype;let c=new WeakMap,i=[];function F(l,o){let u=w.getOwnerWindow(l==null?void 0:l[0]),d=o instanceof u.Element?{root:o}:o;var v;let p=(v=d==null?void 0:d.root)!==null&&v!==void 0?v:document.body,E=(d==null?void 0:d.shouldUseInert)&&M,a=new Set(l),s=new Set,g=e=>E&&e instanceof u.HTMLElement?e.inert:e.getAttribute("aria-hidden")==="true",h=(e,t)=>{E&&e instanceof u.HTMLElement?e.inert=t:t?e.setAttribute("aria-hidden","true"):(e.removeAttribute("aria-hidden"),e instanceof u.HTMLElement&&(e.inert=!1))},N=e=>{for(let n of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))a.add(n);let t=n=>{if(s.has(n)||a.has(n)||n.parentElement&&s.has(n.parentElement)&&n.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let $ of a)if(n.contains($))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:t}),L=t(e);if(L===NodeFilter.FILTER_ACCEPT&&T(e),L!==NodeFilter.FILTER_REJECT){let n=r.nextNode();for(;n!=null;)T(n),n=r.nextNode()}},T=e=>{var t;let r=(t=c.get(e))!==null&&t!==void 0?t:0;g(e)&&r===0||(r===0&&h(e,!0),s.add(e),c.set(e,r+1))};i.length&&i[i.length-1].disconnect(),N(p);let f=new MutationObserver(e=>{for(let t of e)if(t.type==="childList"&&![...a,...s].some(r=>r.contains(t.target)))for(let r of t.addedNodes)(r instanceof HTMLElement||r instanceof SVGElement)&&(r.dataset.liveAnnouncer==="true"||r.dataset.reactAriaTopLayer==="true")?a.add(r):r instanceof Element&&N(r)});f.observe(p,{childList:!0,subtree:!0});let b={visibleNodes:a,hiddenNodes:s,observe(){f.observe(p,{childList:!0,subtree:!0})},disconnect(){f.disconnect()}};return i.push(b),()=>{f.disconnect();for(let e of s){let t=c.get(e);t!=null&&(t===1?(h(e,!1),c.delete(e)):c.set(e,t-1))}b===i[i.length-1]?(i.pop(),i.length&&i[i.length-1].observe()):i.splice(i.indexOf(b),1)}}function H(l){let o=i[i.length-1];if(o&&!o.visibleNodes.has(l))return o.visibleNodes.add(l),()=>{o.visibleNodes.delete(l)}}exports.ariaHideOutside=F;exports.keepVisible=H;
|
package/index290.mjs
CHANGED
|
@@ -1,8 +1,77 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { getOwnerWindow as w } from "./index241.mjs";
|
|
2
|
+
const F = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
|
|
3
|
+
let c = /* @__PURE__ */ new WeakMap(), i = [];
|
|
4
|
+
function m(o, l) {
|
|
5
|
+
let f = w(o == null ? void 0 : o[0]), a = l instanceof f.Element ? {
|
|
6
|
+
root: l
|
|
7
|
+
} : l;
|
|
8
|
+
var v;
|
|
9
|
+
let p = (v = a == null ? void 0 : a.root) !== null && v !== void 0 ? v : document.body, E = (a == null ? void 0 : a.shouldUseInert) && F, d = new Set(o), s = /* @__PURE__ */ new Set(), L = (e) => E && e instanceof f.HTMLElement ? e.inert : e.getAttribute("aria-hidden") === "true", h = (e, t) => {
|
|
10
|
+
E && e instanceof f.HTMLElement ? e.inert = t : t ? e.setAttribute("aria-hidden", "true") : (e.removeAttribute("aria-hidden"), e instanceof f.HTMLElement && (e.inert = !1));
|
|
11
|
+
}, N = (e) => {
|
|
12
|
+
for (let n of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) d.add(n);
|
|
13
|
+
let t = (n) => {
|
|
14
|
+
if (s.has(n) || d.has(n) || n.parentElement && s.has(n.parentElement) && n.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
|
|
15
|
+
for (let g of d)
|
|
16
|
+
if (n.contains(g)) return NodeFilter.FILTER_SKIP;
|
|
17
|
+
return NodeFilter.FILTER_ACCEPT;
|
|
18
|
+
}, r = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
19
|
+
acceptNode: t
|
|
20
|
+
}), $ = t(e);
|
|
21
|
+
if ($ === NodeFilter.FILTER_ACCEPT && T(e), $ !== NodeFilter.FILTER_REJECT) {
|
|
22
|
+
let n = r.nextNode();
|
|
23
|
+
for (; n != null; )
|
|
24
|
+
T(n), n = r.nextNode();
|
|
25
|
+
}
|
|
26
|
+
}, T = (e) => {
|
|
27
|
+
var t;
|
|
28
|
+
let r = (t = c.get(e)) !== null && t !== void 0 ? t : 0;
|
|
29
|
+
L(e) && r === 0 || (r === 0 && h(e, !0), s.add(e), c.set(e, r + 1));
|
|
30
|
+
};
|
|
31
|
+
i.length && i[i.length - 1].disconnect(), N(p);
|
|
32
|
+
let u = new MutationObserver((e) => {
|
|
33
|
+
for (let t of e)
|
|
34
|
+
if (t.type === "childList" && ![
|
|
35
|
+
...d,
|
|
36
|
+
...s
|
|
37
|
+
].some((r) => r.contains(t.target)))
|
|
38
|
+
for (let r of t.addedNodes)
|
|
39
|
+
(r instanceof HTMLElement || r instanceof SVGElement) && (r.dataset.liveAnnouncer === "true" || r.dataset.reactAriaTopLayer === "true") ? d.add(r) : r instanceof Element && N(r);
|
|
40
|
+
});
|
|
41
|
+
u.observe(p, {
|
|
42
|
+
childList: !0,
|
|
43
|
+
subtree: !0
|
|
44
|
+
});
|
|
45
|
+
let b = {
|
|
46
|
+
visibleNodes: d,
|
|
47
|
+
hiddenNodes: s,
|
|
48
|
+
observe() {
|
|
49
|
+
u.observe(p, {
|
|
50
|
+
childList: !0,
|
|
51
|
+
subtree: !0
|
|
52
|
+
});
|
|
53
|
+
},
|
|
54
|
+
disconnect() {
|
|
55
|
+
u.disconnect();
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
return i.push(b), () => {
|
|
59
|
+
u.disconnect();
|
|
60
|
+
for (let e of s) {
|
|
61
|
+
let t = c.get(e);
|
|
62
|
+
t != null && (t === 1 ? (h(e, !1), c.delete(e)) : c.set(e, t - 1));
|
|
63
|
+
}
|
|
64
|
+
b === i[i.length - 1] ? (i.pop(), i.length && i[i.length - 1].observe()) : i.splice(i.indexOf(b), 1);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function H(o) {
|
|
68
|
+
let l = i[i.length - 1];
|
|
69
|
+
if (l && !l.visibleNodes.has(o))
|
|
70
|
+
return l.visibleNodes.add(o), () => {
|
|
71
|
+
l.visibleNodes.delete(o);
|
|
72
|
+
};
|
|
5
73
|
}
|
|
6
74
|
export {
|
|
7
|
-
|
|
75
|
+
m as ariaHideOutside,
|
|
76
|
+
H as keepVisible
|
|
8
77
|
};
|
package/index291.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),o=e.createContext({});function r(){var t;return(t=e.useContext(o))!==null&&t!==void 0?t:{}}exports.PortalContext=o;exports.useUNSAFE_PortalContext=r;
|
package/index291.mjs
CHANGED
|
@@ -1,32 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
transformElements: s,
|
|
7
|
-
allSlides: l
|
|
8
|
-
} = a;
|
|
9
|
-
const {
|
|
10
|
-
activeIndex: d
|
|
11
|
-
} = e, c = (n) => n.parentElement ? n.parentElement : e.slides.filter((t) => t.shadowRoot && t.shadowRoot === n.parentNode)[0];
|
|
12
|
-
if (e.params.virtualTranslate && o !== 0) {
|
|
13
|
-
let n = !1, r;
|
|
14
|
-
l ? r = s : r = s.filter((t) => {
|
|
15
|
-
const i = t.classList.contains("swiper-slide-transform") ? c(t) : t;
|
|
16
|
-
return e.getSlideIndex(i) === d;
|
|
17
|
-
}), r.forEach((t) => {
|
|
18
|
-
f(t, () => {
|
|
19
|
-
if (n || !e || e.destroyed) return;
|
|
20
|
-
n = !0, e.animating = !1;
|
|
21
|
-
const i = new window.CustomEvent("transitionend", {
|
|
22
|
-
bubbles: !0,
|
|
23
|
-
cancelable: !0
|
|
24
|
-
});
|
|
25
|
-
e.wrapperEl.dispatchEvent(i);
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
}
|
|
1
|
+
import { useContext as e, createContext as o } from "react";
|
|
2
|
+
const r = /* @__PURE__ */ o({});
|
|
3
|
+
function a() {
|
|
4
|
+
var t;
|
|
5
|
+
return (t = e(r)) !== null && t !== void 0 ? t : {};
|
|
29
6
|
}
|
|
30
7
|
export {
|
|
31
|
-
|
|
8
|
+
r as PortalContext,
|
|
9
|
+
a as useUNSAFE_PortalContext
|
|
32
10
|
};
|
package/index292.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index334.js"),e=require("react");function n({children:r}){let t=e.useMemo(()=>({register:()=>{}}),[]);return e.createElement(o.PressResponderContext.Provider,{value:t},r)}exports.ClearPressResponder=n;
|
package/index292.mjs
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
let
|
|
5
|
-
|
|
1
|
+
import { PressResponderContext as t } from "./index334.mjs";
|
|
2
|
+
import a, { useMemo as o } from "react";
|
|
3
|
+
function n({ children: e }) {
|
|
4
|
+
let r = o(() => ({
|
|
5
|
+
register: () => {
|
|
6
|
+
}
|
|
7
|
+
}), []);
|
|
8
|
+
return /* @__PURE__ */ a.createElement(t.Provider, {
|
|
9
|
+
value: r
|
|
10
|
+
}, e);
|
|
6
11
|
}
|
|
7
12
|
export {
|
|
8
|
-
|
|
13
|
+
n as ClearPressResponder
|
|
9
14
|
};
|
package/index30.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),O=require("radashi"),D=require("react"),F=require("react-aria"),I=require("react-hook-form"),G=require("./
|
|
2
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),O=require("radashi"),D=require("react"),F=require("react-aria"),I=require("react-hook-form"),G=require("./index162.js"),j=require("./index89.js"),H=require("./index97.js"),P=require("./index24.js"),$=require("./index3.js"),_=c=>{const{id:i,ariaLabel:e,icon:l,state:x,themeName:t="checkbox",customTheme:a,tokens:R,isDisabled:k=!1,isError:d=!1,value:h,errorMessage:u,label:f}=c,m=D.useRef(null),{inputProps:M}=F.useCheckboxGroupItem(c,x,m),{isSelected:b}=x,o={...R,selected:b(h),isDisabled:k,isError:d},v=j(`${t}.container`,o,a),s=j(`${t}.checkBox`,o,a),n=j(`${t}.checkMark`,o,a),C=j(`${t}.checkMarkIcon`,o,a);return r.jsxs("div",{children:[r.jsx(F.FocusRing,{focusRingClass:"has-focus-ring",within:!0,children:r.jsxs("label",{className:v,htmlFor:i,"aria-label":e,"aria-disabled":k,children:[r.jsx(F.VisuallyHidden,{children:r.jsx("input",{ref:m,...M})}),r.jsx("div",{className:s,"aria-checked":b(h),role:"checkbox","aria-labelledby":i,children:r.jsx("div",{className:n,children:l&&r.jsx(P,{icon:l,customTheme:C})})}),r.jsx($.default,{themeName:`${t}.label`,tokens:o,children:f})]})}),d&&u&&r.jsx($.default,{themeName:`${t}.errorMessage`,tokens:o,children:u})]})},p=c=>{const i=G.useCheckboxGroupCtx();return i&&r.jsx(_,{state:i,...c})},A=({name:c,label:i,rules:e,tokens:l,ariaLabel:x,defaultValue:t=!1,themeName:a="checkbox",isReadOnly:R=!1,isRequired:k,onChange:d,onBlur:h,value:u,icon:f,...m})=>{const{control:M}=I.useFormContext(),{t:b}=H.useTranslation(),o=()=>{const s=Object.entries(m).filter(([n,C])=>n.startsWith("aria-"));return Object.fromEntries(s)},v={required:k?b("FORM.ERROR.REQUIRED")??"required":!1,...e};return r.jsx(I.Controller,{name:c,control:M,rules:v,disabled:e==null?void 0:e.disabled,defaultValue:t,render:({field:s,fieldState:n})=>{var g;const{ref:C,...E}=s,N=!O.isEmpty(n.error),T={isDisabled:s.disabled??!1,isRequired:(e==null?void 0:e.required)===!0||(e==null?void 0:e.required)==="required",isInvalid:n.invalid,isError:N,isReadOnly:R},y={...l,...T};return r.jsx(p,{...E,...T,...o(),id:c,value:u,icon:f,themeName:a,label:i,tokens:y,ariaLabel:x,isDisabled:s.disabled,isRequired:(e==null?void 0:e.required)===!0||(e==null?void 0:e.required)==="required",errorMessage:(g=n.error)==null?void 0:g.message,onChange:q=>{s.onChange(q),d==null||d(q)},onBlur:q=>{s.onBlur(),h==null||h(q)}})}})};exports.ReactHookFormCheckboxItem=A;exports.default=p;
|
package/index30.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { isEmpty as $ } from "radashi";
|
|
|
4
4
|
import { useRef as D } from "react";
|
|
5
5
|
import { useCheckboxGroupItem as j, FocusRing as G, VisuallyHidden as O } from "react-aria";
|
|
6
6
|
import { useFormContext as B, Controller as H } from "react-hook-form";
|
|
7
|
-
import { useCheckboxGroupCtx as P } from "./
|
|
7
|
+
import { useCheckboxGroupCtx as P } from "./index162.mjs";
|
|
8
8
|
import u from "./index89.mjs";
|
|
9
9
|
import { useTranslation as w } from "./index97.mjs";
|
|
10
10
|
import A from "./index24.mjs";
|
package/index329.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("./index185.js"),i=require("./index246.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/index329.mjs
CHANGED
|
@@ -1,66 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { openLink as p } from "./index249.mjs";
|
|
4
|
-
import { isMac as y } from "./index250.mjs";
|
|
5
|
-
import { isVirtualClick as w } from "./index264.mjs";
|
|
6
|
-
import "react";
|
|
7
|
-
let i = null, g = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Map(), a = !1, c = !1;
|
|
8
|
-
function u(e, n) {
|
|
9
|
-
for (let t of g) t(e, n);
|
|
10
|
-
}
|
|
11
|
-
function k(e) {
|
|
12
|
-
return !(e.metaKey || !y() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
13
|
-
}
|
|
1
|
+
import { useId as l } from "./index185.mjs";
|
|
2
|
+
import { isAppleDevice as a } from "./index246.mjs";
|
|
14
3
|
function d(e) {
|
|
15
|
-
a
|
|
16
|
-
}
|
|
17
|
-
function o(e) {
|
|
18
|
-
i = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (a = !0, u("pointer", e));
|
|
19
|
-
}
|
|
20
|
-
function l(e) {
|
|
21
|
-
!p.isOpening && w(e) && (a = !0, i = "virtual");
|
|
4
|
+
return a() ? e.altKey : e.ctrlKey;
|
|
22
5
|
}
|
|
23
|
-
function
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
b || (a = !1, c = !0);
|
|
28
|
-
}
|
|
29
|
-
function v(e) {
|
|
30
|
-
if (typeof window > "u" || typeof document > "u" || f.get(s(e))) return;
|
|
31
|
-
const n = s(e), t = $(e);
|
|
32
|
-
let r = n.HTMLElement.prototype.focus;
|
|
33
|
-
n.HTMLElement.prototype.focus = function() {
|
|
34
|
-
a = !0, r.apply(this, arguments);
|
|
35
|
-
}, t.addEventListener("keydown", d, !0), t.addEventListener("keyup", d, !0), t.addEventListener("click", l, !0), n.addEventListener("focus", E, !0), n.addEventListener("blur", m, !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", () => {
|
|
36
|
-
L(e);
|
|
37
|
-
}, {
|
|
38
|
-
once: !0
|
|
39
|
-
}), f.set(n, {
|
|
40
|
-
focus: r
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
const L = (e, n) => {
|
|
44
|
-
const t = s(e), r = $(e);
|
|
45
|
-
n && r.removeEventListener("DOMContentLoaded", n), f.has(t) && (t.HTMLElement.prototype.focus = f.get(t).focus, r.removeEventListener("keydown", d, !0), r.removeEventListener("keyup", d, !0), r.removeEventListener("click", l, !0), t.removeEventListener("focus", E, !0), t.removeEventListener("blur", m, !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)), f.delete(t));
|
|
46
|
-
};
|
|
47
|
-
function h(e) {
|
|
48
|
-
const n = $(e);
|
|
49
|
-
let t;
|
|
50
|
-
return n.readyState !== "loading" ? v(e) : (t = () => {
|
|
51
|
-
v(e);
|
|
52
|
-
}, n.addEventListener("DOMContentLoaded", t)), () => L(e, t);
|
|
6
|
+
function u(e, t) {
|
|
7
|
+
var o, f;
|
|
8
|
+
let c = `[data-key="${CSS.escape(String(t))}"]`, r = (o = e.current) === null || o === void 0 ? void 0 : o.dataset.collection;
|
|
9
|
+
return r && (c = `[data-collection="${CSS.escape(r)}"]${c}`), (f = e.current) === null || f === void 0 ? void 0 : f.querySelector(c);
|
|
53
10
|
}
|
|
54
|
-
|
|
55
|
-
function
|
|
56
|
-
|
|
11
|
+
const n = /* @__PURE__ */ new WeakMap();
|
|
12
|
+
function b(e) {
|
|
13
|
+
let t = l();
|
|
14
|
+
return n.set(e, t), t;
|
|
57
15
|
}
|
|
58
|
-
function
|
|
59
|
-
|
|
16
|
+
function s(e) {
|
|
17
|
+
return n.get(e);
|
|
60
18
|
}
|
|
61
19
|
export {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
20
|
+
s as getCollectionId,
|
|
21
|
+
u as getItemElement,
|
|
22
|
+
d as isNonContiguousSelectionModifier,
|
|
23
|
+
b as useCollectionId
|
|
66
24
|
};
|
package/index33.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const e=require("react/jsx-runtime"),L=require("react"),M=require("react-aria"),U=require("react-stately"),i=require("./index37.js"),W=require("./index38.js"),G=require("./
|
|
2
|
+
"use strict";const e=require("react/jsx-runtime"),L=require("react"),M=require("react-aria"),U=require("react-stately"),i=require("./index37.js"),W=require("./index38.js"),G=require("./index163.js"),J=require("./index3.js"),Q=require("./index34.js"),p=require("./index35.js"),V=require("./index164.js");function X(o){const{popoverPlacement:h="bottom start",placement:P="bottom start",tokens:r,customTheme:x,themeName:t="datePicker",icon:k="ArrowDown",description:d,buttonLabel:f,buttonContent:b,label:l,children:j,invalidIndicator:c="❌",isDisabled:q=!1,isReadOnly:v=!1,isRequired:$=!1,containerPadding:g,shouldCloseOnInteractOutside:D,arrowBoundaryOffset:N,isNonModal:I,isKeyboardDismissDisabled:y,arrowSize:O,boundaryElement:R,maxHeight:C,shouldUpdatePosition:w}=o,S=P??h,s=U.useDatePickerState(o),{isInvalid:u,isOpen:T,hasTime:A}=s,a=L.useRef(null),{groupProps:F,fieldProps:m,labelProps:z,descriptionProps:B,buttonProps:E,dialogProps:H,calendarProps:K}=M.useDatePicker(o,s,a),n={isInvalid:u,isOpen:T,hasTime:A,isDisabled:q,isReadOnly:v,isRequired:$,...r};return e.jsxs(i.default,{themeName:`${t}.container`,tokens:n,customTheme:x,children:[l&&e.jsx(J.default,{as:"span",themeName:`${t}.label`,tokens:n,...z,children:l}),d&&e.jsx(i.default,{as:"div",themeName:`${t}.description`,tokens:n,...B,children:d}),e.jsxs(V,{themeName:t,tokens:n,ref:a,groupProps:F,buttonProps:E,buttonLabel:f,buttonContent:b,icon:k,children:[e.jsx(p,{themeName:t,tokens:{...n,position:"outer"},...m}),s.isInvalid&&e.jsx(i.default,{as:"span",themeName:`${t}.invalidIndicator`,tokens:{...n,position:"outer"},children:c})]}),s.isOpen&&e.jsx(Q.CalendarPopover,{themeName:t,tokens:{...r,isInvalid:u},triggerRef:a,state:s,placement:S,containerPadding:g,shouldCloseOnInteractOutside:D,arrowBoundaryOffset:N,isNonModal:I,isKeyboardDismissDisabled:y,arrowSize:O,boundaryElement:R,maxHeight:C,shouldUpdatePosition:w,children:e.jsxs(G.Dialog,{themeName:`${t}.dialog`,tokens:n,...H,children:[j,e.jsxs(i.default,{themeName:`${t}.dateFieldContainer`,tokens:n,children:[e.jsx(p,{themeName:t,tokens:{...n,position:"inner"},...m}),s.isInvalid&&e.jsx(i.default,{as:"span",themeName:`${t}.invalidIndicator`,tokens:{...n,position:"inner"},children:c})]}),e.jsx(W,{...K,tokens:r})]})})]})}module.exports=X;
|
package/index33.mjs
CHANGED
|
@@ -5,11 +5,11 @@ import { useDatePicker as U } from "react-aria";
|
|
|
5
5
|
import { useDatePickerState as W } from "react-stately";
|
|
6
6
|
import n from "./index37.mjs";
|
|
7
7
|
import G from "./index38.mjs";
|
|
8
|
-
import { Dialog as J } from "./
|
|
8
|
+
import { Dialog as J } from "./index163.mjs";
|
|
9
9
|
import Q from "./index3.mjs";
|
|
10
10
|
import { CalendarPopover as V } from "./index34.mjs";
|
|
11
11
|
import f from "./index35.mjs";
|
|
12
|
-
import X from "./
|
|
12
|
+
import X from "./index164.mjs";
|
|
13
13
|
function le(a) {
|
|
14
14
|
const {
|
|
15
15
|
popoverPlacement: u = "bottom start",
|
package/index330.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),s=1e3;function f(r){let{keyboardDelegate:o,selectionManager:c,onTypeSelect:i}=r,e=l.useRef({search:"",timeout:void 0}).current,u=t=>{let a=g(t.key);if(!(!a||t.ctrlKey||t.metaKey||!t.currentTarget.contains(t.target)||e.search.length===0&&a===" ")){if(a===" "&&e.search.trim().length>0&&(t.preventDefault(),"continuePropagation"in t||t.stopPropagation()),e.search+=a,o.getKeyForSearch!=null){let n=o.getKeyForSearch(e.search,c.focusedKey);n==null&&(n=o.getKeyForSearch(e.search)),n!=null&&(c.setFocusedKey(n),i&&i(n))}clearTimeout(e.timeout),e.timeout=setTimeout(()=>{e.search=""},s)}};return{typeSelectProps:{onKeyDownCapture:o.getKeyForSearch?u:void 0}}}function g(r){return r.length===1||!/^[A-Z]/i.test(r)?r:""}exports.useTypeSelect=f;
|
package/index330.mjs
CHANGED
|
@@ -1,9 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { useRef as u } from "react";
|
|
2
|
+
const f = 1e3;
|
|
3
|
+
function y(r) {
|
|
4
|
+
let { keyboardDelegate: o, selectionManager: c, onTypeSelect: i } = r, e = u({
|
|
5
|
+
search: "",
|
|
6
|
+
timeout: void 0
|
|
7
|
+
}).current, l = (t) => {
|
|
8
|
+
let a = s(t.key);
|
|
9
|
+
if (!(!a || t.ctrlKey || t.metaKey || !t.currentTarget.contains(t.target) || e.search.length === 0 && a === " ")) {
|
|
10
|
+
if (a === " " && e.search.trim().length > 0 && (t.preventDefault(), "continuePropagation" in t || t.stopPropagation()), e.search += a, o.getKeyForSearch != null) {
|
|
11
|
+
let n = o.getKeyForSearch(e.search, c.focusedKey);
|
|
12
|
+
n == null && (n = o.getKeyForSearch(e.search)), n != null && (c.setFocusedKey(n), i && i(n));
|
|
13
|
+
}
|
|
14
|
+
clearTimeout(e.timeout), e.timeout = setTimeout(() => {
|
|
15
|
+
e.search = "";
|
|
16
|
+
}, f);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
return {
|
|
20
|
+
typeSelectProps: {
|
|
21
|
+
// Using a capturing listener to catch the keydown event before
|
|
22
|
+
// other hooks in order to handle the Spacebar event.
|
|
23
|
+
onKeyDownCapture: o.getKeyForSearch ? l : void 0
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function s(r) {
|
|
28
|
+
return r.length === 1 || !/^[A-Z]/i.test(r) ? r : "";
|
|
29
|
+
}
|
|
7
30
|
export {
|
|
8
|
-
|
|
31
|
+
y as useTypeSelect
|
|
9
32
|
};
|
package/index331.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index336.js"),u=require("./index241.js"),b=require("./index245.js"),y=require("./index246.js"),w=require("./index260.js");require("react");let s=null,g=new Set,a=new Map,i=!1,c=!1;function d(e,n){for(let t of g)t(e,n)}function k(e){return!(e.metaKey||!y.isMac()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function f(e){i=!0,!b.openLink.isOpening&&k(e)&&(s="keyboard",d("keyboard",e))}function o(e){s="pointer","pointerType"in e&&e.pointerType,(e.type==="mousedown"||e.type==="pointerdown")&&(i=!0,d("pointer",e))}function p(e){!b.openLink.isOpening&&w.isVirtualClick(e)&&(i=!0,s="virtual")}function $(e){e.target===window||e.target===document||l.ignoreFocusEvent||!e.isTrusted||(!i&&!c&&(s="virtual",d("virtual",e)),i=!1,c=!1)}function E(){l.ignoreFocusEvent||(i=!1,c=!0)}function v(e){if(typeof window>"u"||typeof document>"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",f,!0),t.addEventListener("keyup",f,!0),t.addEventListener("click",p,!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",()=>{L(e)},{once:!0}),a.set(n,{focus:r})}const L=(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",f,!0),r.removeEventListener("keyup",f,!0),r.removeEventListener("click",p,!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 m(e){const n=u.getOwnerDocument(e);let t;return n.readyState!=="loading"?v(e):(t=()=>{v(e)},n.addEventListener("DOMContentLoaded",t)),()=>L(e,t)}typeof document<"u"&&m();function O(){return s}function h(e){s=e,d(e,null)}exports.addWindowFocusTracking=m;exports.getInteractionModality=O;exports.hasSetupGlobalListeners=a;exports.setInteractionModality=h;
|
package/index331.mjs
CHANGED
|
@@ -1,30 +1,66 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import { ignoreFocusEvent as b } from "./index336.mjs";
|
|
2
|
+
import { getOwnerDocument as $, getOwnerWindow as s } from "./index241.mjs";
|
|
3
|
+
import { openLink as p } from "./index245.mjs";
|
|
4
|
+
import { isMac as y } from "./index246.mjs";
|
|
5
|
+
import { isVirtualClick as w } from "./index260.mjs";
|
|
6
|
+
import "react";
|
|
7
|
+
let i = null, g = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Map(), a = !1, c = !1;
|
|
8
|
+
function u(e, n) {
|
|
9
|
+
for (let t of g) t(e, n);
|
|
10
|
+
}
|
|
11
|
+
function k(e) {
|
|
12
|
+
return !(e.metaKey || !y() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
13
|
+
}
|
|
14
|
+
function d(e) {
|
|
15
|
+
a = !0, !p.isOpening && k(e) && (i = "keyboard", u("keyboard", e));
|
|
16
|
+
}
|
|
17
|
+
function o(e) {
|
|
18
|
+
i = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (a = !0, u("pointer", e));
|
|
19
|
+
}
|
|
20
|
+
function l(e) {
|
|
21
|
+
!p.isOpening && w(e) && (a = !0, i = "virtual");
|
|
22
|
+
}
|
|
23
|
+
function E(e) {
|
|
24
|
+
e.target === window || e.target === document || b || !e.isTrusted || (!a && !c && (i = "virtual", u("virtual", e)), a = !1, c = !1);
|
|
25
|
+
}
|
|
26
|
+
function m() {
|
|
27
|
+
b || (a = !1, c = !0);
|
|
28
|
+
}
|
|
29
|
+
function v(e) {
|
|
30
|
+
if (typeof window > "u" || typeof document > "u" || f.get(s(e))) return;
|
|
31
|
+
const n = s(e), t = $(e);
|
|
32
|
+
let r = n.HTMLElement.prototype.focus;
|
|
33
|
+
n.HTMLElement.prototype.focus = function() {
|
|
34
|
+
a = !0, r.apply(this, arguments);
|
|
35
|
+
}, t.addEventListener("keydown", d, !0), t.addEventListener("keyup", d, !0), t.addEventListener("click", l, !0), n.addEventListener("focus", E, !0), n.addEventListener("blur", m, !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", () => {
|
|
36
|
+
L(e);
|
|
37
|
+
}, {
|
|
38
|
+
once: !0
|
|
39
|
+
}), f.set(n, {
|
|
40
|
+
focus: r
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
const L = (e, n) => {
|
|
44
|
+
const t = s(e), r = $(e);
|
|
45
|
+
n && r.removeEventListener("DOMContentLoaded", n), f.has(t) && (t.HTMLElement.prototype.focus = f.get(t).focus, r.removeEventListener("keydown", d, !0), r.removeEventListener("keyup", d, !0), r.removeEventListener("click", l, !0), t.removeEventListener("focus", E, !0), t.removeEventListener("blur", m, !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)), f.delete(t));
|
|
46
|
+
};
|
|
47
|
+
function h(e) {
|
|
48
|
+
const n = $(e);
|
|
49
|
+
let t;
|
|
50
|
+
return n.readyState !== "loading" ? v(e) : (t = () => {
|
|
51
|
+
v(e);
|
|
52
|
+
}, n.addEventListener("DOMContentLoaded", t)), () => L(e, t);
|
|
53
|
+
}
|
|
54
|
+
typeof document < "u" && h();
|
|
55
|
+
function F() {
|
|
56
|
+
return i;
|
|
57
|
+
}
|
|
58
|
+
function j(e) {
|
|
59
|
+
i = e, u(e, null);
|
|
27
60
|
}
|
|
28
61
|
export {
|
|
29
|
-
|
|
62
|
+
h as addWindowFocusTracking,
|
|
63
|
+
F as getInteractionModality,
|
|
64
|
+
f as hasSetupGlobalListeners,
|
|
65
|
+
j as setInteractionModality
|
|
30
66
|
};
|