@rpcbase/ui 0.207.0 → 0.208.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 (232) hide show
  1. package/dist/index.js +7 -7
  2. package/dist/index19.js +1 -1
  3. package/dist/index19.js.map +1 -1
  4. package/dist/index200.js +56 -55
  5. package/dist/index200.js.map +1 -1
  6. package/dist/index201.js +60 -8
  7. package/dist/index201.js.map +1 -1
  8. package/dist/index202.js +7 -15
  9. package/dist/index202.js.map +1 -1
  10. package/dist/index203.js +15 -143
  11. package/dist/index203.js.map +1 -1
  12. package/dist/index204.js +145 -4
  13. package/dist/index204.js.map +1 -1
  14. package/dist/index205.js +4 -11
  15. package/dist/index205.js.map +1 -1
  16. package/dist/index206.js +10 -104
  17. package/dist/index206.js.map +1 -1
  18. package/dist/index207.js +94 -347
  19. package/dist/index207.js.map +1 -1
  20. package/dist/index208.js +349 -87
  21. package/dist/index208.js.map +1 -1
  22. package/dist/index209.js +73 -304
  23. package/dist/index209.js.map +1 -1
  24. package/dist/index210.js +309 -193
  25. package/dist/index210.js.map +1 -1
  26. package/dist/index211.js +211 -19
  27. package/dist/index211.js.map +1 -1
  28. package/dist/index212.js +18 -27
  29. package/dist/index212.js.map +1 -1
  30. package/dist/index213.js +27 -187
  31. package/dist/index213.js.map +1 -1
  32. package/dist/index214.js +186 -16
  33. package/dist/index214.js.map +1 -1
  34. package/dist/index215.js +18 -44
  35. package/dist/index215.js.map +1 -1
  36. package/dist/index216.js +60 -8
  37. package/dist/index216.js.map +1 -1
  38. package/dist/index217.js +42 -23
  39. package/dist/index217.js.map +1 -1
  40. package/dist/index218.js +9 -44
  41. package/dist/index218.js.map +1 -1
  42. package/dist/index219.js +25 -18
  43. package/dist/index219.js.map +1 -1
  44. package/dist/index220.js +45 -3
  45. package/dist/index220.js.map +1 -1
  46. package/dist/index221.js +17 -4
  47. package/dist/index221.js.map +1 -1
  48. package/dist/index222.js +3 -21
  49. package/dist/index222.js.map +1 -1
  50. package/dist/index223.js +4 -24
  51. package/dist/index223.js.map +1 -1
  52. package/dist/index224.js +17 -64
  53. package/dist/index224.js.map +1 -1
  54. package/dist/index225.js +23 -13
  55. package/dist/index225.js.map +1 -1
  56. package/dist/index226.js +68 -4
  57. package/dist/index226.js.map +1 -1
  58. package/dist/index227.js +14 -50
  59. package/dist/index227.js.map +1 -1
  60. package/dist/index228.js +4 -6
  61. package/dist/index228.js.map +1 -1
  62. package/dist/index229.js +50 -26
  63. package/dist/index229.js.map +1 -1
  64. package/dist/index230.js +5 -13
  65. package/dist/index230.js.map +1 -1
  66. package/dist/index231.js +25 -8
  67. package/dist/index231.js.map +1 -1
  68. package/dist/index232.js +17 -3
  69. package/dist/index232.js.map +1 -0
  70. package/dist/index233.js +8 -24
  71. package/dist/index233.js.map +1 -1
  72. package/dist/index234.js +2 -71
  73. package/dist/index235.js +29 -3
  74. package/dist/index235.js.map +1 -0
  75. package/dist/index236.js +69 -12
  76. package/dist/index236.js.map +1 -1
  77. package/dist/index237.js +3 -54
  78. package/dist/index238.js +11 -114
  79. package/dist/index238.js.map +1 -1
  80. package/dist/index239.js +51 -6
  81. package/dist/index239.js.map +1 -1
  82. package/dist/index240.js +115 -13
  83. package/dist/index240.js.map +1 -1
  84. package/dist/index241.js +6 -687
  85. package/dist/index241.js.map +1 -1
  86. package/dist/index242.js +13 -253
  87. package/dist/index242.js.map +1 -1
  88. package/dist/index243.js +662 -676
  89. package/dist/index243.js.map +1 -1
  90. package/dist/index244.js +252 -7430
  91. package/dist/index244.js.map +1 -1
  92. package/dist/index245.js +700 -6
  93. package/dist/index245.js.map +1 -1
  94. package/dist/index246.js +7429 -11
  95. package/dist/index246.js.map +1 -1
  96. package/dist/index247.js +5 -4
  97. package/dist/index247.js.map +1 -1
  98. package/dist/index248.js +11 -458
  99. package/dist/index248.js.map +1 -1
  100. package/dist/index249.js +5 -37
  101. package/dist/index249.js.map +1 -1
  102. package/dist/index250.js +458 -18
  103. package/dist/index250.js.map +1 -1
  104. package/dist/index251.js +34 -24
  105. package/dist/index251.js.map +1 -1
  106. package/dist/index252.js +19 -4
  107. package/dist/index252.js.map +1 -1
  108. package/dist/index253.js +23 -54
  109. package/dist/index253.js.map +1 -1
  110. package/dist/index254.js +4 -7
  111. package/dist/index254.js.map +1 -1
  112. package/dist/index255.js +57 -11
  113. package/dist/index255.js.map +1 -1
  114. package/dist/index256.js +8 -3
  115. package/dist/index256.js.map +1 -1
  116. package/dist/index257.js +12 -16
  117. package/dist/index257.js.map +1 -1
  118. package/dist/index258.js +3 -26
  119. package/dist/index258.js.map +1 -1
  120. package/dist/index259.js +15 -42
  121. package/dist/index259.js.map +1 -1
  122. package/dist/index260.js +25 -13
  123. package/dist/index260.js.map +1 -1
  124. package/dist/index261.js +40 -22
  125. package/dist/index261.js.map +1 -1
  126. package/dist/index262.js +13 -17
  127. package/dist/index262.js.map +1 -1
  128. package/dist/index263.js +24 -34
  129. package/dist/index263.js.map +1 -1
  130. package/dist/index264.js +17 -5
  131. package/dist/index264.js.map +1 -1
  132. package/dist/index265.js +35 -9
  133. package/dist/index265.js.map +1 -1
  134. package/dist/index266.js +5 -8
  135. package/dist/index266.js.map +1 -1
  136. package/dist/index267.js +9 -9
  137. package/dist/index267.js.map +1 -1
  138. package/dist/index268.js +8 -10
  139. package/dist/index268.js.map +1 -1
  140. package/dist/index269.js +9 -7
  141. package/dist/index269.js.map +1 -1
  142. package/dist/index270.js +9 -72
  143. package/dist/index270.js.map +1 -1
  144. package/dist/index271.js +7 -171
  145. package/dist/index271.js.map +1 -1
  146. package/dist/index272.js +63 -104
  147. package/dist/index272.js.map +1 -1
  148. package/dist/index273.js +169 -12
  149. package/dist/index273.js.map +1 -1
  150. package/dist/index274.js +109 -75
  151. package/dist/index274.js.map +1 -1
  152. package/dist/index275.js +12 -44
  153. package/dist/index275.js.map +1 -1
  154. package/dist/index276.js +79 -12
  155. package/dist/index276.js.map +1 -1
  156. package/dist/index277.js +45 -15
  157. package/dist/index277.js.map +1 -1
  158. package/dist/index278.js +12 -98
  159. package/dist/index278.js.map +1 -1
  160. package/dist/index279.js +15 -55
  161. package/dist/index279.js.map +1 -1
  162. package/dist/index280.js +89 -98
  163. package/dist/index280.js.map +1 -1
  164. package/dist/index281.js +27 -42
  165. package/dist/index281.js.map +1 -1
  166. package/dist/index282.js +92 -97
  167. package/dist/index282.js.map +1 -1
  168. package/dist/index283.js +62 -46
  169. package/dist/index283.js.map +1 -1
  170. package/dist/index284.js +108 -38
  171. package/dist/index284.js.map +1 -1
  172. package/dist/index285.js +48 -135
  173. package/dist/index285.js.map +1 -1
  174. package/dist/index286.js +43 -139
  175. package/dist/index286.js.map +1 -1
  176. package/dist/index287.js +105 -217
  177. package/dist/index287.js.map +1 -1
  178. package/dist/index288.js +109 -210
  179. package/dist/index288.js.map +1 -1
  180. package/dist/index289.js +168 -212
  181. package/dist/index289.js.map +1 -1
  182. package/dist/index290.js +240 -5
  183. package/dist/index290.js.map +1 -1
  184. package/dist/index291.js +298 -6
  185. package/dist/index291.js.map +1 -1
  186. package/dist/index292.js +5 -7
  187. package/dist/index292.js.map +1 -1
  188. package/dist/index293.js +4 -4
  189. package/dist/index293.js.map +1 -1
  190. package/dist/index294.js +7 -6
  191. package/dist/index294.js.map +1 -1
  192. package/dist/index295.js +6 -21
  193. package/dist/index295.js.map +1 -1
  194. package/dist/index296.js +6 -10
  195. package/dist/index296.js.map +1 -1
  196. package/dist/index297.js +18 -123
  197. package/dist/index297.js.map +1 -1
  198. package/dist/index298.js +10 -164
  199. package/dist/index298.js.map +1 -1
  200. package/dist/index299.js +116 -58
  201. package/dist/index299.js.map +1 -1
  202. package/dist/index300.js +161 -106
  203. package/dist/index300.js.map +1 -1
  204. package/dist/index301.js +66 -489
  205. package/dist/index301.js.map +1 -1
  206. package/dist/index302.js +106 -59
  207. package/dist/index302.js.map +1 -1
  208. package/dist/index303.js +492 -4
  209. package/dist/index303.js.map +1 -1
  210. package/dist/index304.js +62 -27
  211. package/dist/index304.js.map +1 -1
  212. package/dist/index305.js +4 -66
  213. package/dist/index305.js.map +1 -1
  214. package/dist/index306.js +27 -152
  215. package/dist/index306.js.map +1 -1
  216. package/dist/index307.js +59 -555
  217. package/dist/index307.js.map +1 -1
  218. package/dist/index308.js +143 -201
  219. package/dist/index308.js.map +1 -1
  220. package/dist/index309.js +56 -326
  221. package/dist/index309.js.map +1 -1
  222. package/dist/index310.js +553 -260
  223. package/dist/index310.js.map +1 -1
  224. package/dist/index311.js +214 -0
  225. package/dist/index311.js.map +1 -0
  226. package/dist/index312.js +335 -0
  227. package/dist/index312.js.map +1 -0
  228. package/dist/index313.js +272 -0
  229. package/dist/index313.js.map +1 -0
  230. package/package.json +2 -2
  231. package/dist/index234.js.map +0 -1
  232. package/dist/index237.js.map +0 -1
package/dist/index204.js CHANGED
@@ -1,7 +1,148 @@
1
- import * as e from "react";
2
- //#region ../../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
3
- var t = globalThis?.document ? e.useLayoutEffect : () => {};
1
+ "use client";
2
+ import { useComposedRefs as e } from "./index18.js";
3
+ import { Primitive as t } from "./index20.js";
4
+ import { useCallbackRef as n } from "./index21.js";
5
+ import * as r from "react";
6
+ import { jsx as i } from "react/jsx-runtime";
7
+ //#region ../../node_modules/@radix-ui/react-focus-scope/dist/index.mjs
8
+ var a = "focusScope.autoFocusOnMount", o = "focusScope.autoFocusOnUnmount", s = {
9
+ bubbles: !1,
10
+ cancelable: !0
11
+ }, c = "FocusScope", l = r.forwardRef((c, l) => {
12
+ let { loop: p = !1, trapped: m = !1, onMountAutoFocus: h, onUnmountAutoFocus: v, ...y } = c, [x, S] = r.useState(null), C = n(h), w = n(v), T = r.useRef(null), E = e(l, (e) => S(e)), D = r.useRef({
13
+ paused: !1,
14
+ pause() {
15
+ this.paused = !0;
16
+ },
17
+ resume() {
18
+ this.paused = !1;
19
+ }
20
+ }).current;
21
+ r.useEffect(() => {
22
+ if (m) {
23
+ let e = function(e) {
24
+ if (D.paused || !x) return;
25
+ let t = e.target;
26
+ x.contains(t) ? T.current = t : g(T.current, { select: !0 });
27
+ }, t = function(e) {
28
+ if (D.paused || !x) return;
29
+ let t = e.relatedTarget;
30
+ t !== null && (x.contains(t) || g(T.current, { select: !0 }));
31
+ }, n = function(e) {
32
+ if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && g(x);
33
+ };
34
+ document.addEventListener("focusin", e), document.addEventListener("focusout", t);
35
+ let r = new MutationObserver(n);
36
+ return x && r.observe(x, {
37
+ childList: !0,
38
+ subtree: !0
39
+ }), () => {
40
+ document.removeEventListener("focusin", e), document.removeEventListener("focusout", t), r.disconnect();
41
+ };
42
+ }
43
+ }, [
44
+ m,
45
+ x,
46
+ D.paused
47
+ ]), r.useEffect(() => {
48
+ if (x) {
49
+ _.add(D);
50
+ let e = document.activeElement;
51
+ if (!x.contains(e)) {
52
+ let t = new CustomEvent(a, s);
53
+ x.addEventListener(a, C), x.dispatchEvent(t), t.defaultPrevented || (u(b(f(x)), { select: !0 }), document.activeElement === e && g(x));
54
+ }
55
+ return () => {
56
+ x.removeEventListener(a, C), setTimeout(() => {
57
+ let t = new CustomEvent(o, s);
58
+ x.addEventListener(o, w), x.dispatchEvent(t), t.defaultPrevented || g(e ?? document.body, { select: !0 }), x.removeEventListener(o, w), _.remove(D);
59
+ }, 0);
60
+ };
61
+ }
62
+ }, [
63
+ x,
64
+ C,
65
+ w,
66
+ D
67
+ ]);
68
+ let O = r.useCallback((e) => {
69
+ if (!p && !m || D.paused) return;
70
+ let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, n = document.activeElement;
71
+ if (t && n) {
72
+ let t = e.currentTarget, [r, i] = d(t);
73
+ r && i ? !e.shiftKey && n === i ? (e.preventDefault(), p && g(r, { select: !0 })) : e.shiftKey && n === r && (e.preventDefault(), p && g(i, { select: !0 })) : n === t && e.preventDefault();
74
+ }
75
+ }, [
76
+ p,
77
+ m,
78
+ D.paused
79
+ ]);
80
+ return /* @__PURE__ */ i(t.div, {
81
+ tabIndex: -1,
82
+ ...y,
83
+ ref: E,
84
+ onKeyDown: O
85
+ });
86
+ });
87
+ l.displayName = c;
88
+ function u(e, { select: t = !1 } = {}) {
89
+ let n = document.activeElement;
90
+ for (let r of e) if (g(r, { select: t }), document.activeElement !== n) return;
91
+ }
92
+ function d(e) {
93
+ let t = f(e);
94
+ return [p(t, e), p(t.reverse(), e)];
95
+ }
96
+ function f(e) {
97
+ let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
98
+ let t = e.tagName === "INPUT" && e.type === "hidden";
99
+ return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
100
+ } });
101
+ for (; n.nextNode();) t.push(n.currentNode);
102
+ return t;
103
+ }
104
+ function p(e, t) {
105
+ for (let n of e) if (!m(n, { upTo: t })) return n;
106
+ }
107
+ function m(e, { upTo: t }) {
108
+ if (getComputedStyle(e).visibility === "hidden") return !0;
109
+ for (; e;) {
110
+ if (t !== void 0 && e === t) return !1;
111
+ if (getComputedStyle(e).display === "none") return !0;
112
+ e = e.parentElement;
113
+ }
114
+ return !1;
115
+ }
116
+ function h(e) {
117
+ return e instanceof HTMLInputElement && "select" in e;
118
+ }
119
+ function g(e, { select: t = !1 } = {}) {
120
+ if (e && e.focus) {
121
+ let n = document.activeElement;
122
+ e.focus({ preventScroll: !0 }), e !== n && h(e) && t && e.select();
123
+ }
124
+ }
125
+ var _ = v();
126
+ function v() {
127
+ let e = [];
128
+ return {
129
+ add(t) {
130
+ let n = e[0];
131
+ t !== n && n?.pause(), e = y(e, t), e.unshift(t);
132
+ },
133
+ remove(t) {
134
+ e = y(e, t), e[0]?.resume();
135
+ }
136
+ };
137
+ }
138
+ function y(e, t) {
139
+ let n = [...e], r = n.indexOf(t);
140
+ return r !== -1 && n.splice(r, 1), n;
141
+ }
142
+ function b(e) {
143
+ return e.filter((e) => e.tagName !== "A");
144
+ }
4
145
  //#endregion
5
- export { t as useLayoutEffect2 };
146
+ export { l as FocusScope };
6
147
 
7
148
  //# sourceMappingURL=index204.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index204.js","names":["React"],"sources":["../../../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"],"sourcesContent":["// packages/react/use-layout-effect/src/use-layout-effect.tsx\nimport * as React from \"react\";\nvar useLayoutEffect2 = globalThis?.document ? React.useLayoutEffect : () => {\n};\nexport {\n useLayoutEffect2 as useLayoutEffect\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,IAAI,IAAmB,YAAY,WAAWA,EAAM,wBAAwB"}
1
+ {"version":3,"file":"index204.js","names":["React"],"sources":["../../../node_modules/@radix-ui/react-focus-scope/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/focus-scope.tsx\nimport * as React from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { jsx } from \"react/jsx-runtime\";\nvar AUTOFOCUS_ON_MOUNT = \"focusScope.autoFocusOnMount\";\nvar AUTOFOCUS_ON_UNMOUNT = \"focusScope.autoFocusOnUnmount\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar FOCUS_SCOPE_NAME = \"FocusScope\";\nvar FocusScope = React.forwardRef((props, forwardedRef) => {\n const {\n loop = false,\n trapped = false,\n onMountAutoFocus: onMountAutoFocusProp,\n onUnmountAutoFocus: onUnmountAutoFocusProp,\n ...scopeProps\n } = props;\n const [container, setContainer] = React.useState(null);\n const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);\n const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);\n const lastFocusedElementRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContainer(node));\n const focusScope = React.useRef({\n paused: false,\n pause() {\n this.paused = true;\n },\n resume() {\n this.paused = false;\n }\n }).current;\n React.useEffect(() => {\n if (trapped) {\n let handleFocusIn2 = function(event) {\n if (focusScope.paused || !container) return;\n const target = event.target;\n if (container.contains(target)) {\n lastFocusedElementRef.current = target;\n } else {\n focus(lastFocusedElementRef.current, { select: true });\n }\n }, handleFocusOut2 = function(event) {\n if (focusScope.paused || !container) return;\n const relatedTarget = event.relatedTarget;\n if (relatedTarget === null) return;\n if (!container.contains(relatedTarget)) {\n focus(lastFocusedElementRef.current, { select: true });\n }\n }, handleMutations2 = function(mutations) {\n const focusedElement = document.activeElement;\n if (focusedElement !== document.body) return;\n for (const mutation of mutations) {\n if (mutation.removedNodes.length > 0) focus(container);\n }\n };\n var handleFocusIn = handleFocusIn2, handleFocusOut = handleFocusOut2, handleMutations = handleMutations2;\n document.addEventListener(\"focusin\", handleFocusIn2);\n document.addEventListener(\"focusout\", handleFocusOut2);\n const mutationObserver = new MutationObserver(handleMutations2);\n if (container) mutationObserver.observe(container, { childList: true, subtree: true });\n return () => {\n document.removeEventListener(\"focusin\", handleFocusIn2);\n document.removeEventListener(\"focusout\", handleFocusOut2);\n mutationObserver.disconnect();\n };\n }\n }, [trapped, container, focusScope.paused]);\n React.useEffect(() => {\n if (container) {\n focusScopesStack.add(focusScope);\n const previouslyFocusedElement = document.activeElement;\n const hasFocusedCandidate = container.contains(previouslyFocusedElement);\n if (!hasFocusedCandidate) {\n const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS);\n container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);\n container.dispatchEvent(mountEvent);\n if (!mountEvent.defaultPrevented) {\n focusFirst(removeLinks(getTabbableCandidates(container)), { select: true });\n if (document.activeElement === previouslyFocusedElement) {\n focus(container);\n }\n }\n }\n return () => {\n container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);\n setTimeout(() => {\n const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);\n container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);\n container.dispatchEvent(unmountEvent);\n if (!unmountEvent.defaultPrevented) {\n focus(previouslyFocusedElement ?? document.body, { select: true });\n }\n container.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);\n focusScopesStack.remove(focusScope);\n }, 0);\n };\n }\n }, [container, onMountAutoFocus, onUnmountAutoFocus, focusScope]);\n const handleKeyDown = React.useCallback(\n (event) => {\n if (!loop && !trapped) return;\n if (focusScope.paused) return;\n const isTabKey = event.key === \"Tab\" && !event.altKey && !event.ctrlKey && !event.metaKey;\n const focusedElement = document.activeElement;\n if (isTabKey && focusedElement) {\n const container2 = event.currentTarget;\n const [first, last] = getTabbableEdges(container2);\n const hasTabbableElementsInside = first && last;\n if (!hasTabbableElementsInside) {\n if (focusedElement === container2) event.preventDefault();\n } else {\n if (!event.shiftKey && focusedElement === last) {\n event.preventDefault();\n if (loop) focus(first, { select: true });\n } else if (event.shiftKey && focusedElement === first) {\n event.preventDefault();\n if (loop) focus(last, { select: true });\n }\n }\n }\n },\n [loop, trapped, focusScope.paused]\n );\n return /* @__PURE__ */ jsx(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });\n});\nFocusScope.displayName = FOCUS_SCOPE_NAME;\nfunction focusFirst(candidates, { select = false } = {}) {\n const previouslyFocusedElement = document.activeElement;\n for (const candidate of candidates) {\n focus(candidate, { select });\n if (document.activeElement !== previouslyFocusedElement) return;\n }\n}\nfunction getTabbableEdges(container) {\n const candidates = getTabbableCandidates(container);\n const first = findVisible(candidates, container);\n const last = findVisible(candidates.reverse(), container);\n return [first, last];\n}\nfunction getTabbableCandidates(container) {\n const nodes = [];\n const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {\n acceptNode: (node) => {\n const isHiddenInput = node.tagName === \"INPUT\" && node.type === \"hidden\";\n if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;\n return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n }\n });\n while (walker.nextNode()) nodes.push(walker.currentNode);\n return nodes;\n}\nfunction findVisible(elements, container) {\n for (const element of elements) {\n if (!isHidden(element, { upTo: container })) return element;\n }\n}\nfunction isHidden(node, { upTo }) {\n if (getComputedStyle(node).visibility === \"hidden\") return true;\n while (node) {\n if (upTo !== void 0 && node === upTo) return false;\n if (getComputedStyle(node).display === \"none\") return true;\n node = node.parentElement;\n }\n return false;\n}\nfunction isSelectableInput(element) {\n return element instanceof HTMLInputElement && \"select\" in element;\n}\nfunction focus(element, { select = false } = {}) {\n if (element && element.focus) {\n const previouslyFocusedElement = document.activeElement;\n element.focus({ preventScroll: true });\n if (element !== previouslyFocusedElement && isSelectableInput(element) && select)\n element.select();\n }\n}\nvar focusScopesStack = createFocusScopesStack();\nfunction createFocusScopesStack() {\n let stack = [];\n return {\n add(focusScope) {\n const activeFocusScope = stack[0];\n if (focusScope !== activeFocusScope) {\n activeFocusScope?.pause();\n }\n stack = arrayRemove(stack, focusScope);\n stack.unshift(focusScope);\n },\n remove(focusScope) {\n stack = arrayRemove(stack, focusScope);\n stack[0]?.resume();\n }\n };\n}\nfunction arrayRemove(array, item) {\n const updatedArray = [...array];\n const index = updatedArray.indexOf(item);\n if (index !== -1) {\n updatedArray.splice(index, 1);\n }\n return updatedArray;\n}\nfunction removeLinks(items) {\n return items.filter((item) => item.tagName !== \"A\");\n}\nvar Root = FocusScope;\nexport {\n FocusScope,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;AAQA,IAAI,IAAqB,+BACrB,IAAuB,iCACvB,IAAgB;CAAE,SAAS;CAAO,YAAY;CAAM,EACpD,IAAmB,cACnB,IAAaA,EAAM,YAAY,GAAO,MAAiB;CACzD,IAAM,EACJ,UAAO,IACP,aAAU,IACV,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oB,YAAY;;AAE5D,SAAS,EAAM,GAAS,EAAE,YAAS,OAAU,EAAE,EAAE;AAC/C,KAAI,KAAW,EAAQ,OAAO;EAC5B,IAAM,IAA2B,SAAS;AAE1C,EADA,EAAQ,MAAM,EAAE,eAAe,IAAM,CAAC,EAClC,MAAY,KAA4B,EAAkB,EAAQ,IAAI,KACxE,EAAQ,QAAQ;;;AAGtB,IAAI,IAAmB,GAAwB;AAC/C,SAAS,IAAyB;CAChC,IAAI,IAAQ,EAAE;AACd,QAAO;EACL,IAAI,GAAY;GACd,IAAM,IAAmB,EAAM;AAK/B,GAJI,MAAe,KACjB,GAAkB,OAAO,EAE3B,IAAQ,EAAY,GAAO,EAAW,EACtC,EAAM,QAAQ,EAAW;;EAE3B,OAAO,GAAY;AAEjB,GADA,IAAQ,EAAY,GAAO,EAAW,EACtC,EAAM,IAAI,QAAQ;;EAErB;;AAEH,SAAS,EAAY,GAAO,GAAM;CAChC,IAAM,IAAe,CAAC,GAAG,EAAM,EACzB,IAAQ,EAAa,QAAQ,EAAK;AAIxC,QAHI,MAAU,MACZ,EAAa,OAAO,GAAO,EAAE,EAExB;;AAET,SAAS,EAAY,GAAO;AAC1B,QAAO,EAAM,QAAQ,MAAS,EAAK,YAAY,IAAI"}
package/dist/index205.js CHANGED
@@ -1,14 +1,7 @@
1
- import { useLayoutEffect2 as e } from "./index204.js";
2
- import * as t from "react";
3
- //#region ../../node_modules/@radix-ui/react-id/dist/index.mjs
4
- var n = t.useId || (() => void 0), r = 0;
5
- function i(i) {
6
- let [a, o] = t.useState(n());
7
- return e(() => {
8
- i || o((e) => e ?? String(r++));
9
- }, [i]), i || (a ? `radix-${a}` : "");
10
- }
1
+ import * as e from "react";
2
+ //#region ../../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
3
+ var t = globalThis?.document ? e.useLayoutEffect : () => {};
11
4
  //#endregion
12
- export { i as useId };
5
+ export { t as useLayoutEffect2 };
13
6
 
14
7
  //# sourceMappingURL=index205.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index205.js","names":["React"],"sources":["../../../node_modules/@radix-ui/react-id/dist/index.mjs"],"sourcesContent":["// packages/react/id/src/id.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useReactId = React[\" useId \".trim().toString()] || (() => void 0);\nvar count = 0;\nfunction useId(deterministicId) {\n const [id, setId] = React.useState(useReactId());\n useLayoutEffect(() => {\n if (!deterministicId) setId((reactId) => reactId ?? String(count++));\n }, [deterministicId]);\n return deterministicId || (id ? `radix-${id}` : \"\");\n}\nexport {\n useId\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;AAGA,IAAI,IAAaA,EAAM,gBAAuC,KAAK,IAC/D,IAAQ;AACZ,SAAS,EAAM,GAAiB;CAC9B,IAAM,CAAC,GAAI,KAASA,EAAM,SAAS,GAAY,CAAC;AAIhD,QAHA,QAAsB;AACpB,EAAK,KAAiB,GAAO,MAAY,KAAW,OAAO,IAAQ,CAAC;IACnE,CAAC,EAAgB,CAAC,EACd,MAAoB,IAAK,SAAS,MAAO"}
1
+ {"version":3,"file":"index205.js","names":["React"],"sources":["../../../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"],"sourcesContent":["// packages/react/use-layout-effect/src/use-layout-effect.tsx\nimport * as React from \"react\";\nvar useLayoutEffect2 = globalThis?.document ? React.useLayoutEffect : () => {\n};\nexport {\n useLayoutEffect2 as useLayoutEffect\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;AAEA,IAAI,IAAmB,YAAY,WAAWA,EAAM,wBAAwB"}
package/dist/index206.js CHANGED
@@ -1,108 +1,14 @@
1
- //#region ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
2
- var e = [
3
- "top",
4
- "right",
5
- "bottom",
6
- "left"
7
- ], t = Math.min, n = Math.max, r = Math.round, i = Math.floor, a = (e) => ({
8
- x: e,
9
- y: e
10
- }), o = {
11
- left: "right",
12
- right: "left",
13
- bottom: "top",
14
- top: "bottom"
15
- };
16
- function s(e, r, i) {
17
- return n(e, t(r, i));
18
- }
19
- function c(e, t) {
20
- return typeof e == "function" ? e(t) : e;
21
- }
22
- function l(e) {
23
- return e.split("-")[0];
24
- }
25
- function u(e) {
26
- return e.split("-")[1];
27
- }
28
- function d(e) {
29
- return e === "x" ? "y" : "x";
30
- }
31
- function f(e) {
32
- return e === "y" ? "height" : "width";
33
- }
34
- function p(e) {
35
- let t = e[0];
36
- return t === "t" || t === "b" ? "y" : "x";
37
- }
38
- function m(e) {
39
- return d(p(e));
40
- }
41
- function h(e, t, n) {
42
- n === void 0 && (n = !1);
43
- let r = u(e), i = m(e), a = f(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
44
- return t.reference[a] > t.floating[a] && (o = w(o)), [o, w(o)];
45
- }
46
- function g(e) {
47
- let t = w(e);
48
- return [
49
- _(e),
50
- t,
51
- _(t)
52
- ];
53
- }
54
- function _(e) {
55
- return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
56
- }
57
- var v = ["left", "right"], y = ["right", "left"], b = ["top", "bottom"], x = ["bottom", "top"];
58
- function S(e, t, n) {
59
- switch (e) {
60
- case "top":
61
- case "bottom": return n ? t ? y : v : t ? v : y;
62
- case "left":
63
- case "right": return t ? b : x;
64
- default: return [];
65
- }
66
- }
67
- function C(e, t, n, r) {
68
- let i = u(e), a = S(l(e), n === "start", r);
69
- return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(_)))), a;
70
- }
71
- function w(e) {
72
- let t = l(e);
73
- return o[t] + e.slice(t.length);
74
- }
75
- function T(e) {
76
- return {
77
- top: 0,
78
- right: 0,
79
- bottom: 0,
80
- left: 0,
81
- ...e
82
- };
83
- }
84
- function E(e) {
85
- return typeof e == "number" ? {
86
- top: e,
87
- right: e,
88
- bottom: e,
89
- left: e
90
- } : T(e);
91
- }
92
- function D(e) {
93
- let { x: t, y: n, width: r, height: i } = e;
94
- return {
95
- width: r,
96
- height: i,
97
- top: n,
98
- left: t,
99
- right: t + r,
100
- bottom: n + i,
101
- x: t,
102
- y: n
103
- };
1
+ import { useLayoutEffect2 as e } from "./index205.js";
2
+ import * as t from "react";
3
+ //#region ../../node_modules/@radix-ui/react-id/dist/index.mjs
4
+ var n = t.useId || (() => void 0), r = 0;
5
+ function i(i) {
6
+ let [a, o] = t.useState(n());
7
+ return e(() => {
8
+ i || o((e) => e ?? String(r++));
9
+ }, [i]), i || (a ? `radix-${a}` : "");
104
10
  }
105
11
  //#endregion
106
- export { s as clamp, a as createCoords, c as evaluate, i as floor, u as getAlignment, m as getAlignmentAxis, h as getAlignmentSides, f as getAxisLength, g as getExpandedPlacements, d as getOppositeAxis, C as getOppositeAxisPlacements, w as getOppositePlacement, E as getPaddingObject, l as getSide, p as getSideAxis, n as max, t as min, D as rectToClientRect, r as round, e as sides };
12
+ export { i as useId };
107
13
 
108
14
  //# sourceMappingURL=index206.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index206.js","names":[],"sources":["../../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"],"sourcesContent":["/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nfunction getSideAxis(placement) {\n const firstChar = placement[0];\n return firstChar === 't' || firstChar === 'b' ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.includes('start') ? placement.replace('start', 'end') : placement.replace('end', 'start');\n}\nconst lrPlacement = ['left', 'right'];\nconst rlPlacement = ['right', 'left'];\nconst tbPlacement = ['top', 'bottom'];\nconst btPlacement = ['bottom', 'top'];\nfunction getSideList(side, isStart, rtl) {\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rlPlacement : lrPlacement;\n return isStart ? lrPlacement : rlPlacement;\n case 'left':\n case 'right':\n return isStart ? tbPlacement : btPlacement;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n const side = getSide(placement);\n return oppositeSideMap[side] + placement.slice(side.length);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n const {\n x,\n y,\n width,\n height\n } = rect;\n return {\n width,\n height,\n top: y,\n left: x,\n right: x + width,\n bottom: y + height,\n x,\n y\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n"],"x_google_ignoreList":[0],"mappings":";AAKA,IAAM,IAAQ;CAAC;CAAO;CAAS;CAAU;CAAO,EAG1C,IAAM,KAAK,KACX,IAAM,KAAK,KACX,IAAQ,KAAK,OACb,IAAQ,KAAK,OACb,KAAe,OAAM;CACzB,GAAG;CACH,GAAG;CACJ,GACK,IAAkB;CACtB,MAAM;CACN,OAAO;CACP,QAAQ;CACR,KAAK;CACN;AACD,SAAS,EAAM,GAAO,GAAO,GAAK;AAChC,QAAO,EAAI,GAAO,EAAI,GAAO,EAAI,CAAC;;AAEpC,SAAS,EAAS,GAAO,GAAO;AAC9B,QAAO,OAAO,KAAU,aAAa,EAAM,EAAM,GAAG;;AAEtD,SAAS,EAAQ,GAAW;AAC1B,QAAO,EAAU,MAAM,IAAI,CAAC;;AAE9B,SAAS,EAAa,GAAW;AAC/B,QAAO,EAAU,MAAM,IAAI,CAAC;;AAE9B,SAAS,EAAgB,GAAM;AAC7B,QAAO,MAAS,MAAM,MAAM;;AAE9B,SAAS,EAAc,GAAM;AAC3B,QAAO,MAAS,MAAM,W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MACF,IAAO,EAAK,KAAI,MAAQ,IAAO,MAAM,EAAU,EAC3C,MACF,IAAO,EAAK,OAAO,EAAK,IAAI,EAA8B,CAAC,IAGxD;;AAET,SAAS,EAAqB,GAAW;CACvC,IAAM,IAAO,EAAQ,EAAU;AAC/B,QAAO,EAAgB,KAAQ,EAAU,MAAM,EAAK,OAAO;;AAE7D,SAAS,EAAoB,GAAS;AACpC,QAAO;EACL,KAAK;EACL,OAAO;EACP,QAAQ;EACR,MAAM;EACN,GAAG;EACJ;;AAEH,SAAS,EAAiB,GAAS;AACjC,QAAO,OAAO,KAAY,WAA0C;EAClE,KAAK;EACL,OAAO;EACP,QAAQ;EACR,MAAM;EACP,GALoC,EAAoB,EAAQ;;AAOnE,SAAS,EAAiB,GAAM;CAC9B,IAAM,EACJ,MACA,MACA,UACA,cACE;AACJ,QAAO;EACL;EACA;EACA,KAAK;EACL,MAAM;EACN,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ;EACA;EACD"}
1
+ {"version":3,"file":"index206.js","names":["React"],"sources":["../../../node_modules/@radix-ui/react-id/dist/index.mjs"],"sourcesContent":["// packages/react/id/src/id.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useReactId = React[\" useId \".trim().toString()] || (() => void 0);\nvar count = 0;\nfunction useId(deterministicId) {\n const [id, setId] = React.useState(useReactId());\n useLayoutEffect(() => {\n if (!deterministicId) setId((reactId) => reactId ?? String(count++));\n }, [deterministicId]);\n return deterministicId || (id ? `radix-${id}` : \"\");\n}\nexport {\n useId\n};\n//# sourceMappingURL=index.mjs.map\n"],"x_google_ignoreList":[0],"mappings":";;;AAGA,IAAI,IAAaA,EAAM,gBAAuC,KAAK,IAC/D,IAAQ;AACZ,SAAS,EAAM,GAAiB;CAC9B,IAAM,CAAC,GAAI,KAASA,EAAM,SAAS,GAAY,CAAC;AAIhD,QAHA,QAAsB;AACpB,EAAK,KAAiB,GAAO,MAAY,KAAW,OAAO,IAAQ,CAAC;IACnE,CAAC,EAAgB,CAAC,EACd,MAAoB,IAAK,SAAS,MAAO"}