@anoki/fse-ui 1.0.0-beta1.48.44 → 1.0.0-beta1.48.46

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 (317) hide show
  1. package/dist/components/ui/TableOfContents/TableOfContents.css +1 -1
  2. package/dist/index.cjs10.js +1 -1
  3. package/dist/index.cjs110.js +1 -1
  4. package/dist/index.cjs110.js.map +1 -1
  5. package/dist/index.cjs137.js +1 -1
  6. package/dist/index.cjs157.js +1 -1
  7. package/dist/index.cjs158.js +1 -1
  8. package/dist/index.cjs159.js +1 -1
  9. package/dist/index.cjs160.js +1 -1
  10. package/dist/index.cjs161.js +1 -1
  11. package/dist/index.cjs162.js +1 -1
  12. package/dist/index.cjs163.js +1 -1
  13. package/dist/index.cjs164.js +1 -1
  14. package/dist/index.cjs165.js +1 -1
  15. package/dist/index.cjs166.js +1 -1
  16. package/dist/index.cjs167.js +1 -1
  17. package/dist/index.cjs168.js +1 -1
  18. package/dist/index.cjs169.js +1 -1
  19. package/dist/index.cjs170.js +1 -1
  20. package/dist/index.cjs171.js +1 -1
  21. package/dist/index.cjs172.js +1 -1
  22. package/dist/index.cjs173.js +1 -1
  23. package/dist/index.cjs174.js +1 -1
  24. package/dist/index.cjs175.js +1 -1
  25. package/dist/index.cjs176.js +1 -1
  26. package/dist/index.cjs177.js +1 -1
  27. package/dist/index.cjs178.js +1 -1
  28. package/dist/index.cjs179.js +1 -1
  29. package/dist/index.cjs183.js +1 -1
  30. package/dist/index.cjs184.js +1 -1
  31. package/dist/index.cjs185.js +1 -1
  32. package/dist/index.cjs187.js +1 -1
  33. package/dist/index.cjs188.js +1 -1
  34. package/dist/index.cjs189.js +1 -1
  35. package/dist/index.cjs190.js +1 -1
  36. package/dist/index.cjs191.js +1 -1
  37. package/dist/index.cjs192.js +1 -1
  38. package/dist/index.cjs193.js +1 -1
  39. package/dist/index.cjs194.js +1 -1
  40. package/dist/index.cjs195.js +1 -1
  41. package/dist/index.cjs197.js +1 -1
  42. package/dist/index.cjs198.js +1 -1
  43. package/dist/index.cjs199.js +1 -1
  44. package/dist/index.cjs200.js +1 -1
  45. package/dist/index.cjs201.js +1 -1
  46. package/dist/index.cjs202.js +1 -1
  47. package/dist/index.cjs203.js +1 -1
  48. package/dist/index.cjs206.js +1 -1
  49. package/dist/index.cjs207.js +1 -1
  50. package/dist/index.cjs208.js +1 -1
  51. package/dist/index.cjs209.js +1 -1
  52. package/dist/index.cjs210.js +1 -1
  53. package/dist/index.cjs211.js +1 -1
  54. package/dist/index.cjs212.js +1 -1
  55. package/dist/index.cjs213.js +1 -1
  56. package/dist/index.cjs214.js +1 -1
  57. package/dist/index.cjs215.js +1 -1
  58. package/dist/index.cjs221.js +1 -1
  59. package/dist/index.cjs223.js +1 -1
  60. package/dist/index.cjs224.js +1 -1
  61. package/dist/index.cjs24.js +1 -1
  62. package/dist/index.cjs248.js +1 -1
  63. package/dist/index.cjs255.js +1 -1
  64. package/dist/index.cjs274.js +1 -1
  65. package/dist/index.cjs274.js.map +1 -1
  66. package/dist/index.cjs276.js +2 -0
  67. package/dist/index.cjs276.js.map +1 -0
  68. package/dist/index.cjs28.js +1 -1
  69. package/dist/index.cjs295.js +1 -1
  70. package/dist/index.cjs32.js +1 -1
  71. package/dist/index.cjs321.js +1 -1
  72. package/dist/index.cjs323.js +1 -1
  73. package/dist/index.cjs33.js +1 -1
  74. package/dist/index.cjs330.js +1 -1
  75. package/dist/index.cjs331.js +1 -1
  76. package/dist/index.cjs335.js +1 -1
  77. package/dist/index.cjs344.js +1 -1
  78. package/dist/index.cjs346.js +1 -1
  79. package/dist/index.cjs352.js +1 -1
  80. package/dist/index.cjs353.js +1 -1
  81. package/dist/index.cjs395.js +1 -1
  82. package/dist/index.cjs401.js +1 -1
  83. package/dist/index.cjs435.js +1 -1
  84. package/dist/index.cjs443.js +1 -1
  85. package/dist/index.cjs454.js +1 -1
  86. package/dist/index.cjs455.js +1 -1
  87. package/dist/index.cjs456.js +27 -1
  88. package/dist/index.cjs456.js.map +1 -1
  89. package/dist/index.cjs457.js +1 -2
  90. package/dist/index.cjs457.js.map +1 -1
  91. package/dist/index.cjs458.js +1 -27
  92. package/dist/index.cjs458.js.map +1 -1
  93. package/dist/index.cjs459.js +1 -1
  94. package/dist/index.cjs459.js.map +1 -1
  95. package/dist/index.cjs460.js +2 -1
  96. package/dist/index.cjs460.js.map +1 -1
  97. package/dist/index.cjs468.js +1 -1
  98. package/dist/index.cjs469.js +1 -1
  99. package/dist/index.cjs484.js +1 -1
  100. package/dist/index.cjs484.js.map +1 -1
  101. package/dist/index.cjs485.js +1 -1
  102. package/dist/index.cjs485.js.map +1 -1
  103. package/dist/index.cjs486.js +1 -1
  104. package/dist/index.cjs486.js.map +1 -1
  105. package/dist/index.cjs487.js +1 -1
  106. package/dist/index.cjs487.js.map +1 -1
  107. package/dist/index.cjs488.js +2 -0
  108. package/dist/index.cjs488.js.map +1 -0
  109. package/dist/index.cjs489.js +2 -0
  110. package/dist/index.cjs489.js.map +1 -0
  111. package/dist/index.cjs490.js +2 -0
  112. package/dist/index.cjs490.js.map +1 -0
  113. package/dist/{index.cjs508.js → index.cjs504.js} +2 -2
  114. package/dist/{index.cjs508.js.map → index.cjs504.js.map} +1 -1
  115. package/dist/{index.cjs509.js → index.cjs505.js} +1 -1
  116. package/dist/index.cjs505.js.map +1 -0
  117. package/dist/index.cjs514.js +2 -0
  118. package/dist/index.cjs514.js.map +1 -0
  119. package/dist/{index.cjs512.js → index.cjs515.js} +1 -1
  120. package/dist/index.cjs515.js.map +1 -0
  121. package/dist/index.cjs516.js +1 -1
  122. package/dist/index.cjs516.js.map +1 -1
  123. package/dist/index.cjs522.js +1 -1
  124. package/dist/index.cjs531.js +1 -1
  125. package/dist/index.cjs535.js +1 -1
  126. package/dist/index.cjs536.js +1 -1
  127. package/dist/index.cjs537.js +1 -1
  128. package/dist/index.cjs542.js +1 -1
  129. package/dist/index.cjs546.js +1 -1
  130. package/dist/index.cjs547.js +1 -1
  131. package/dist/index.cjs559.js +1 -1
  132. package/dist/index.cjs563.js +1 -1
  133. package/dist/index.cjs580.js +1 -1
  134. package/dist/index.cjs580.js.map +1 -1
  135. package/dist/index.cjs581.js +1 -1
  136. package/dist/index.cjs581.js.map +1 -1
  137. package/dist/index.cjs582.js +1 -1
  138. package/dist/index.cjs582.js.map +1 -1
  139. package/dist/index.cjs583.js +1 -1
  140. package/dist/index.cjs583.js.map +1 -1
  141. package/dist/index.cjs6.js +1 -1
  142. package/dist/index.cjs64.js +1 -1
  143. package/dist/index.cjs7.js +1 -1
  144. package/dist/index.cjs8.js +1 -1
  145. package/dist/index.cjs9.js +1 -1
  146. package/dist/index.es10.js +2 -2
  147. package/dist/index.es110.js +55 -32
  148. package/dist/index.es110.js.map +1 -1
  149. package/dist/index.es137.js +1 -1
  150. package/dist/index.es157.js +1 -1
  151. package/dist/index.es158.js +1 -1
  152. package/dist/index.es159.js +1 -1
  153. package/dist/index.es160.js +1 -1
  154. package/dist/index.es161.js +1 -1
  155. package/dist/index.es162.js +1 -1
  156. package/dist/index.es163.js +1 -1
  157. package/dist/index.es164.js +1 -1
  158. package/dist/index.es165.js +1 -1
  159. package/dist/index.es166.js +1 -1
  160. package/dist/index.es167.js +1 -1
  161. package/dist/index.es168.js +1 -1
  162. package/dist/index.es169.js +1 -1
  163. package/dist/index.es170.js +1 -1
  164. package/dist/index.es171.js +1 -1
  165. package/dist/index.es172.js +1 -1
  166. package/dist/index.es173.js +1 -1
  167. package/dist/index.es174.js +1 -1
  168. package/dist/index.es175.js +1 -1
  169. package/dist/index.es176.js +1 -1
  170. package/dist/index.es177.js +1 -1
  171. package/dist/index.es178.js +1 -1
  172. package/dist/index.es179.js +1 -1
  173. package/dist/index.es183.js +1 -1
  174. package/dist/index.es184.js +1 -1
  175. package/dist/index.es185.js +1 -1
  176. package/dist/index.es187.js +1 -1
  177. package/dist/index.es188.js +1 -1
  178. package/dist/index.es189.js +1 -1
  179. package/dist/index.es190.js +1 -1
  180. package/dist/index.es191.js +1 -1
  181. package/dist/index.es192.js +1 -1
  182. package/dist/index.es193.js +1 -1
  183. package/dist/index.es194.js +1 -1
  184. package/dist/index.es195.js +1 -1
  185. package/dist/index.es197.js +1 -1
  186. package/dist/index.es198.js +1 -1
  187. package/dist/index.es199.js +1 -1
  188. package/dist/index.es200.js +1 -1
  189. package/dist/index.es201.js +1 -1
  190. package/dist/index.es202.js +1 -1
  191. package/dist/index.es203.js +1 -1
  192. package/dist/index.es206.js +1 -1
  193. package/dist/index.es207.js +1 -1
  194. package/dist/index.es208.js +1 -1
  195. package/dist/index.es209.js +1 -1
  196. package/dist/index.es210.js +1 -1
  197. package/dist/index.es211.js +1 -1
  198. package/dist/index.es212.js +1 -1
  199. package/dist/index.es213.js +1 -1
  200. package/dist/index.es214.js +1 -1
  201. package/dist/index.es215.js +1 -1
  202. package/dist/index.es221.js +1 -1
  203. package/dist/index.es223.js +1 -1
  204. package/dist/index.es224.js +1 -1
  205. package/dist/index.es24.js +1 -1
  206. package/dist/index.es248.js +1 -1
  207. package/dist/index.es255.js +2 -2
  208. package/dist/index.es274.js +27 -2
  209. package/dist/index.es274.js.map +1 -1
  210. package/dist/index.es276.js +5 -0
  211. package/dist/index.es276.js.map +1 -0
  212. package/dist/index.es28.js +1 -1
  213. package/dist/index.es295.js +1 -1
  214. package/dist/index.es32.js +1 -1
  215. package/dist/index.es321.js +1 -1
  216. package/dist/index.es323.js +7 -7
  217. package/dist/index.es33.js +1 -1
  218. package/dist/index.es330.js +1 -1
  219. package/dist/index.es331.js +1 -1
  220. package/dist/index.es335.js +1 -1
  221. package/dist/index.es344.js +1 -1
  222. package/dist/index.es346.js +1 -1
  223. package/dist/index.es352.js +1 -1
  224. package/dist/index.es353.js +1 -1
  225. package/dist/index.es395.js +1 -1
  226. package/dist/index.es401.js +1 -1
  227. package/dist/index.es435.js +1 -1
  228. package/dist/index.es443.js +1 -1
  229. package/dist/index.es454.js +1 -1
  230. package/dist/index.es455.js +1 -1
  231. package/dist/index.es456.js +3674 -5
  232. package/dist/index.es456.js.map +1 -1
  233. package/dist/index.es457.js +5 -520
  234. package/dist/index.es457.js.map +1 -1
  235. package/dist/index.es458.js +2 -3675
  236. package/dist/index.es458.js.map +1 -1
  237. package/dist/index.es459.js +5 -5
  238. package/dist/index.es459.js.map +1 -1
  239. package/dist/index.es460.js +521 -2
  240. package/dist/index.es460.js.map +1 -1
  241. package/dist/index.es468.js +1 -1
  242. package/dist/index.es469.js +7 -7
  243. package/dist/index.es484.js +122 -12
  244. package/dist/index.es484.js.map +1 -1
  245. package/dist/index.es485.js +134 -8
  246. package/dist/index.es485.js.map +1 -1
  247. package/dist/index.es486.js +14 -50
  248. package/dist/index.es486.js.map +1 -1
  249. package/dist/index.es487.js +13 -54
  250. package/dist/index.es487.js.map +1 -1
  251. package/dist/index.es488.js +12 -0
  252. package/dist/index.es488.js.map +1 -0
  253. package/dist/index.es489.js +53 -0
  254. package/dist/index.es489.js.map +1 -0
  255. package/dist/index.es490.js +59 -0
  256. package/dist/index.es490.js.map +1 -0
  257. package/dist/{index.es508.js → index.es504.js} +3 -3
  258. package/dist/{index.es508.js.map → index.es504.js.map} +1 -1
  259. package/dist/{index.es509.js → index.es505.js} +1 -1
  260. package/dist/index.es505.js.map +1 -0
  261. package/dist/index.es514.js +8 -0
  262. package/dist/index.es514.js.map +1 -0
  263. package/dist/{index.es512.js → index.es515.js} +1 -1
  264. package/dist/index.es515.js.map +1 -0
  265. package/dist/index.es516.js +2 -5
  266. package/dist/index.es516.js.map +1 -1
  267. package/dist/index.es522.js +1 -1
  268. package/dist/index.es531.js +3 -3
  269. package/dist/index.es535.js +1 -1
  270. package/dist/index.es536.js +1 -1
  271. package/dist/index.es537.js +1 -1
  272. package/dist/index.es542.js +1 -1
  273. package/dist/index.es546.js +1 -1
  274. package/dist/index.es547.js +7 -7
  275. package/dist/index.es559.js +2 -2
  276. package/dist/index.es563.js +1 -1
  277. package/dist/index.es580.js +54 -512
  278. package/dist/index.es580.js.map +1 -1
  279. package/dist/index.es581.js +509 -113
  280. package/dist/index.es581.js.map +1 -1
  281. package/dist/index.es582.js +121 -123
  282. package/dist/index.es582.js.map +1 -1
  283. package/dist/index.es583.js +125 -61
  284. package/dist/index.es583.js.map +1 -1
  285. package/dist/index.es6.js +1 -1
  286. package/dist/index.es64.js +1 -1
  287. package/dist/index.es7.js +1 -1
  288. package/dist/index.es8.js +1 -1
  289. package/dist/index.es9.js +2 -2
  290. package/package.json +1 -1
  291. package/dist/index.cjs275.js +0 -2
  292. package/dist/index.cjs275.js.map +0 -1
  293. package/dist/index.cjs481.js +0 -2
  294. package/dist/index.cjs481.js.map +0 -1
  295. package/dist/index.cjs482.js +0 -2
  296. package/dist/index.cjs482.js.map +0 -1
  297. package/dist/index.cjs483.js +0 -2
  298. package/dist/index.cjs483.js.map +0 -1
  299. package/dist/index.cjs509.js.map +0 -1
  300. package/dist/index.cjs512.js.map +0 -1
  301. package/dist/index.cjs513.js +0 -2
  302. package/dist/index.cjs513.js.map +0 -1
  303. package/dist/index.es275.js +0 -30
  304. package/dist/index.es275.js.map +0 -1
  305. package/dist/index.es481.js +0 -128
  306. package/dist/index.es481.js.map +0 -1
  307. package/dist/index.es482.js +0 -138
  308. package/dist/index.es482.js.map +0 -1
  309. package/dist/index.es483.js +0 -17
  310. package/dist/index.es483.js.map +0 -1
  311. package/dist/index.es509.js.map +0 -1
  312. package/dist/index.es512.js.map +0 -1
  313. package/dist/index.es513.js +0 -5
  314. package/dist/index.es513.js.map +0 -1
  315. /package/dist/components/ui/{CardMapDoctorV2/CardMapDoctorV2.css → CardMapDoctor/CardMapDoctor.css} +0 -0
  316. /package/dist/components/ui/{ConsentModal/ConsentModalContent/ConsentModalContent.css → DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css} +0 -0
  317. /package/dist/components/ui/{ConsentModal/ConsentModalFooter/ConsentModalFooter.css → DoctorModal/DoctorModalFooter/DoctorModalFooter.css} +0 -0
@@ -1,68 +1,132 @@
1
- import { __assign as d } from "./index.es532.js";
2
- function l(r) {
3
- return r;
4
- }
5
- function h(r, t) {
6
- t === void 0 && (t = l);
7
- var e = [], o = !1, c = {
8
- read: function() {
9
- if (o)
10
- throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
11
- return e.length ? e[e.length - 1] : r;
12
- },
13
- useMedium: function(u) {
14
- var n = t(u, o);
15
- return e.push(n), function() {
16
- e = e.filter(function(i) {
17
- return i !== n;
18
- });
19
- };
20
- },
21
- assignSyncMedium: function(u) {
22
- for (o = !0; e.length; ) {
23
- var n = e;
24
- e = [], n.forEach(u);
25
- }
26
- e = {
27
- push: function(i) {
28
- return u(i);
29
- },
30
- filter: function() {
31
- return e;
32
- }
33
- };
34
- },
35
- assignMedium: function(u) {
36
- o = !0;
37
- var n = [];
38
- if (e.length) {
39
- var i = e;
40
- e = [], i.forEach(u), n = e;
41
- }
42
- var s = function() {
43
- var f = n;
44
- n = [], f.forEach(u);
45
- }, a = function() {
46
- return Promise.resolve().then(s);
47
- };
48
- a(), e = {
49
- push: function(f) {
50
- n.push(f), a();
51
- },
52
- filter: function(f) {
53
- return n = n.filter(f), e;
54
- }
55
- };
1
+ function c() {
2
+ return typeof window < "u";
3
+ }
4
+ function s(n) {
5
+ return p(n) ? (n.nodeName || "").toLowerCase() : "#document";
6
+ }
7
+ function i(n) {
8
+ var t;
9
+ return (n == null || (t = n.ownerDocument) == null ? void 0 : t.defaultView) || window;
10
+ }
11
+ function E(n) {
12
+ var t;
13
+ return (t = (p(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : t.documentElement;
14
+ }
15
+ function p(n) {
16
+ return c() ? n instanceof Node || n instanceof i(n).Node : !1;
17
+ }
18
+ function m(n) {
19
+ return c() ? n instanceof Element || n instanceof i(n).Element : !1;
20
+ }
21
+ function w(n) {
22
+ return c() ? n instanceof HTMLElement || n instanceof i(n).HTMLElement : !1;
23
+ }
24
+ function a(n) {
25
+ return !c() || typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof i(n).ShadowRoot;
26
+ }
27
+ function y(n) {
28
+ const {
29
+ overflow: t,
30
+ overflowX: e,
31
+ overflowY: o,
32
+ display: r
33
+ } = b(n);
34
+ return /auto|scroll|overlay|hidden|clip/.test(t + o + e) && !["inline", "contents"].includes(r);
35
+ }
36
+ function D(n) {
37
+ return ["table", "td", "th"].includes(s(n));
38
+ }
39
+ function N(n) {
40
+ return [":popover-open", ":modal"].some((t) => {
41
+ try {
42
+ return n.matches(t);
43
+ } catch {
44
+ return !1;
56
45
  }
46
+ });
47
+ }
48
+ function T(n) {
49
+ const t = L(), e = m(n) ? b(n) : n;
50
+ return ["transform", "translate", "scale", "rotate", "perspective"].some((o) => e[o] ? e[o] !== "none" : !1) || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((o) => (e.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (e.contain || "").includes(o));
51
+ }
52
+ function k(n) {
53
+ let t = u(n);
54
+ for (; w(t) && !g(t); ) {
55
+ if (T(t))
56
+ return t;
57
+ if (N(t))
58
+ return null;
59
+ t = u(t);
60
+ }
61
+ return null;
62
+ }
63
+ function L() {
64
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
65
+ }
66
+ function g(n) {
67
+ return ["html", "body", "#document"].includes(s(n));
68
+ }
69
+ function b(n) {
70
+ return i(n).getComputedStyle(n);
71
+ }
72
+ function C(n) {
73
+ return m(n) ? {
74
+ scrollLeft: n.scrollLeft,
75
+ scrollTop: n.scrollTop
76
+ } : {
77
+ scrollLeft: n.scrollX,
78
+ scrollTop: n.scrollY
57
79
  };
58
- return c;
59
80
  }
60
- function v(r) {
61
- r === void 0 && (r = {});
62
- var t = h(null);
63
- return t.options = d({ async: !0, ssr: !1 }, r), t;
81
+ function u(n) {
82
+ if (s(n) === "html")
83
+ return n;
84
+ const t = (
85
+ // Step into the shadow DOM of the parent of a slotted node.
86
+ n.assignedSlot || // DOM Element detected.
87
+ n.parentNode || // ShadowRoot detected.
88
+ a(n) && n.host || // Fallback.
89
+ E(n)
90
+ );
91
+ return a(t) ? t.host : t;
92
+ }
93
+ function h(n) {
94
+ const t = u(n);
95
+ return g(t) ? n.ownerDocument ? n.ownerDocument.body : n.body : w(t) && y(t) ? t : h(t);
96
+ }
97
+ function d(n, t, e) {
98
+ var o;
99
+ t === void 0 && (t = []), e === void 0 && (e = !0);
100
+ const r = h(n), S = r === ((o = n.ownerDocument) == null ? void 0 : o.body), l = i(r);
101
+ if (S) {
102
+ const f = v(l);
103
+ return t.concat(l, l.visualViewport || [], y(r) ? r : [], f && e ? d(f) : []);
104
+ }
105
+ return t.concat(r, d(r, [], e));
106
+ }
107
+ function v(n) {
108
+ return n.parent && Object.getPrototypeOf(n.parent) ? n.frameElement : null;
64
109
  }
65
110
  export {
66
- v as createSidecarMedium
111
+ b as getComputedStyle,
112
+ k as getContainingBlock,
113
+ E as getDocumentElement,
114
+ v as getFrameElement,
115
+ h as getNearestOverflowAncestor,
116
+ s as getNodeName,
117
+ C as getNodeScroll,
118
+ d as getOverflowAncestors,
119
+ u as getParentNode,
120
+ i as getWindow,
121
+ T as isContainingBlock,
122
+ m as isElement,
123
+ w as isHTMLElement,
124
+ g as isLastTraversableNode,
125
+ p as isNode,
126
+ y as isOverflowElement,
127
+ a as isShadowRoot,
128
+ D as isTableElement,
129
+ N as isTopLayer,
130
+ L as isWebKit
67
131
  };
68
132
  //# sourceMappingURL=index.es583.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es583.js","sources":["../node_modules/use-sidecar/dist/es2015/medium.js"],"sourcesContent":["import { __assign } from \"tslib\";\nfunction ItoI(a) {\n return a;\n}\nfunction innerCreateMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n var buffer = [];\n var assigned = false;\n var medium = {\n read: function () {\n if (assigned) {\n throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');\n }\n if (buffer.length) {\n return buffer[buffer.length - 1];\n }\n return defaults;\n },\n useMedium: function (data) {\n var item = middleware(data, assigned);\n buffer.push(item);\n return function () {\n buffer = buffer.filter(function (x) { return x !== item; });\n };\n },\n assignSyncMedium: function (cb) {\n assigned = true;\n while (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n }\n buffer = {\n push: function (x) { return cb(x); },\n filter: function () { return buffer; },\n };\n },\n assignMedium: function (cb) {\n assigned = true;\n var pendingQueue = [];\n if (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n pendingQueue = buffer;\n }\n var executeQueue = function () {\n var cbs = pendingQueue;\n pendingQueue = [];\n cbs.forEach(cb);\n };\n var cycle = function () { return Promise.resolve().then(executeQueue); };\n cycle();\n buffer = {\n push: function (x) {\n pendingQueue.push(x);\n cycle();\n },\n filter: function (filter) {\n pendingQueue = pendingQueue.filter(filter);\n return buffer;\n },\n };\n },\n };\n return medium;\n}\nexport function createMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n return innerCreateMedium(defaults, middleware);\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function createSidecarMedium(options) {\n if (options === void 0) { options = {}; }\n var medium = innerCreateMedium(null);\n medium.options = __assign({ async: true, ssr: false }, options);\n return medium;\n}\n"],"names":["ItoI","a","innerCreateMedium","defaults","middleware","buffer","assigned","medium","data","item","x","cb","cbs","pendingQueue","executeQueue","cycle","filter","createSidecarMedium","options","__assign"],"mappings":";AACA,SAASA,EAAKC,GAAG;AACb,SAAOA;AACX;AACA,SAASC,EAAkBC,GAAUC,GAAY;AAC7C,EAAIA,MAAe,WAAUA,IAAaJ;AAC1C,MAAIK,IAAS,CAAE,GACXC,IAAW,IACXC,IAAS;AAAA,IACT,MAAM,WAAY;AACd,U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AA,MACJ;AAAA,IACJ;AAAA,EACJ;AACD,SAAOE;AACX;AAMO,SAASU,EAAoBC,GAAS;AACzC,EAAIA,MAAY,WAAUA,IAAU,CAAA;AACpC,MAAIX,IAASL,EAAkB,IAAI;AACnC,SAAAK,EAAO,UAAUY,EAAS,EAAE,OAAO,IAAM,KAAK,GAAO,GAAED,CAAO,GACvDX;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es583.js","sources":["../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs"],"sourcesContent":["function hasWindow() {\n return typeof window !== 'undefined';\n}\nfunction getNodeName(node) {\n if (isNode(node)) {\n return (node.nodeName || '').toLowerCase();\n }\n // Mocked nodes in testing environments may not be instances of Node. By\n // returning `#document` an infinite loop won't occur.\n // https://github.com/floating-ui/floating-ui/issues/2317\n return '#document';\n}\nfunction getWindow(node) {\n var _node$ownerDocument;\n return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;\n}\nfunction getDocumentElement(node) {\n var _ref;\n return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;\n}\nfunction isNode(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Node || value instanceof getWindow(value).Node;\n}\nfunction isElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof Element || value instanceof getWindow(value).Element;\n}\nfunction isHTMLElement(value) {\n if (!hasWindow()) {\n return false;\n }\n return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;\n}\nfunction isShadowRoot(value) {\n if (!hasWindow() || typeof ShadowRoot === 'undefined') {\n return false;\n }\n return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;\n}\nfunction isOverflowElement(element) {\n const {\n overflow,\n overflowX,\n overflowY,\n display\n } = getComputedStyle(element);\n return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);\n}\nfunction isTableElement(element) {\n return ['table', 'td', 'th'].includes(getNodeName(element));\n}\nfunction isTopLayer(element) {\n return [':popover-open', ':modal'].some(selector => {\n try {\n return element.matches(selector);\n } catch (e) {\n return false;\n }\n });\n}\nfunction isContainingBlock(elementOrCss) {\n const webkit = isWebKit();\n const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;\n\n // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block\n // https://drafts.csswg.org/css-transforms-2/#individual-transforms\n return ['transform', 'translate', 'scale', 'rotate', 'perspective'].some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));\n}\nfunction getContainingBlock(element) {\n let currentNode = getParentNode(element);\n while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {\n if (isContainingBlock(currentNode)) {\n return currentNode;\n } else if (isTopLayer(currentNode)) {\n return null;\n }\n currentNode = getParentNode(currentNode);\n }\n return null;\n}\nfunction isWebKit() {\n if (typeof CSS === 'undefined' || !CSS.supports) return false;\n return CSS.supports('-webkit-backdrop-filter', 'none');\n}\nfunction isLastTraversableNode(node) {\n return ['html', 'body', '#document'].includes(getNodeName(node));\n}\nfunction getComputedStyle(element) {\n return getWindow(element).getComputedStyle(element);\n}\nfunction getNodeScroll(element) {\n if (isElement(element)) {\n return {\n scrollLeft: element.scrollLeft,\n scrollTop: element.scrollTop\n };\n }\n return {\n scrollLeft: element.scrollX,\n scrollTop: element.scrollY\n };\n}\nfunction getParentNode(node) {\n if (getNodeName(node) === 'html') {\n return node;\n }\n const result =\n // Step into the shadow DOM of the parent of a slotted node.\n node.assignedSlot ||\n // DOM Element detected.\n node.parentNode ||\n // ShadowRoot detected.\n isShadowRoot(node) && node.host ||\n // Fallback.\n getDocumentElement(node);\n return isShadowRoot(result) ? result.host : result;\n}\nfunction getNearestOverflowAncestor(node) {\n const parentNode = getParentNode(node);\n if (isLastTraversableNode(parentNode)) {\n return node.ownerDocument ? node.ownerDocument.body : node.body;\n }\n if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {\n return parentNode;\n }\n return getNearestOverflowAncestor(parentNode);\n}\nfunction getOverflowAncestors(node, list, traverseIframes) {\n var _node$ownerDocument2;\n if (list === void 0) {\n list = [];\n }\n if (traverseIframes === void 0) {\n traverseIframes = true;\n }\n const scrollableAncestor = getNearestOverflowAncestor(node);\n const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);\n const win = getWindow(scrollableAncestor);\n if (isBody) {\n const frameElement = getFrameElement(win);\n return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);\n }\n return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));\n}\nfunction getFrameElement(win) {\n return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;\n}\n\nexport { getComputedStyle, getContainingBlock, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isTopLayer, isWebKit };\n"],"names":["hasWindow","getNodeName","node","isNode","getWindow","_node$ownerDocument","getDocumentElement","_ref","value","isElement","isHTMLElement","isShadowRoot","isOverflowElement","element","overflow","overflowX","overflowY","display","getComputedStyle","isTableElement","isTopLayer","selector","isContainingBlock","elementOrCss","webkit","isWebKit","css","getContainingBlock","currentNode","getParentNode","isLastTraversableNode","getNodeScroll","result","getNearestOverflowAncestor","parentNode","getOverflowAncestors","list","traverseIframes","_node$ownerDocument2","scroll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AAqB,CAAE,GAAEG,KAAgBL,IAAkBF,EAAqBO,CAAY,IAAI,EAAE;AAAA,EAChM;AACE,SAAON,EAAK,OAAOG,GAAoBJ,EAAqBI,GAAoB,CAAA,GAAIF,CAAe,CAAC;AACtG;AACA,SAASM,EAAgBF,GAAK;AAC5B,SAAOA,EAAI,UAAU,OAAO,eAAeA,EAAI,MAAM,IAAIA,EAAI,eAAe;AAC9E;","x_google_ignoreList":[0]}
package/dist/index.es6.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { j as l } from "./index.es244.js";
2
2
  import { clsx as u } from "./index.es246.js";
3
3
  import { useMemo as x } from "react";
4
- import { createSpacingClasses as C } from "./index.es275.js";
4
+ import { createSpacingClasses as C } from "./index.es274.js";
5
5
  import './components/ui/Container/Container.css';/* empty css */
6
6
  const y = ({
7
7
  as: o,
@@ -1,5 +1,5 @@
1
1
  import { j as s } from "./index.es244.js";
2
- import { createColorClasses as l } from "./index.es274.js";
2
+ import { createColorClasses as l } from "./index.es276.js";
3
3
  import { clsx as x } from "./index.es246.js";
4
4
  const p = ({
5
5
  initials: e,
package/dist/index.es7.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { j as a } from "./index.es244.js";
2
2
  import { useMemo as i } from "react";
3
3
  import { clsx as m } from "./index.es246.js";
4
- import { createSpacingClasses as c } from "./index.es275.js";
4
+ import { createSpacingClasses as c } from "./index.es274.js";
5
5
  const g = ({
6
6
  as: o,
7
7
  className: r,
package/dist/index.es8.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { j as g } from "./index.es244.js";
2
2
  import { useMemo as s } from "react";
3
3
  import { clsx as x } from "./index.es246.js";
4
- import { createSpacingClasses as f } from "./index.es275.js";
4
+ import { createSpacingClasses as f } from "./index.es274.js";
5
5
  const v = ({
6
6
  as: e,
7
7
  className: i,
package/dist/index.es9.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { j as x } from "./index.es244.js";
2
2
  import { useMemo as y } from "react";
3
3
  import { clsx as g } from "./index.es246.js";
4
- import { createSpacingClasses as j } from "./index.es275.js";
5
- import { createColorClasses as u } from "./index.es274.js";
4
+ import { createSpacingClasses as j } from "./index.es274.js";
5
+ import { createColorClasses as u } from "./index.es276.js";
6
6
  import { createTypographyClasses as h } from "./index.es277.js";
7
7
  const E = ({
8
8
  as: o,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anoki/fse-ui",
3
- "version": "1.0.0-beta1.48.44",
3
+ "version": "1.0.0-beta1.48.46",
4
4
  "description": "FSE UI components library",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs.js",
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=["gap","m","mx","my","mt","mr","mb","ml","p","px","py","pt","pr","pb","pl","br","br-t","br-r","br-b","br-l","min-h","min-w","max-h","max-w"],a=e=>t.map(r=>e[r]?`${r}-${e[r]}`:"").filter(Boolean);exports.createSpacingClasses=a;
2
- //# sourceMappingURL=index.cjs275.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs275.js","sources":["../src/theme/spacing.ts"],"sourcesContent":["export type SpacingKey =\r\n | \"x4\"\r\n | \"x8\"\r\n | \"x12\"\r\n | \"x16\"\r\n | \"x20\"\r\n | \"x24\"\r\n | \"x28\"\r\n | \"x32\"\r\n | \"x36\"\r\n | \"x40\"\r\n | \"x44\"\r\n | \"x48\"\r\n | \"x52\"\r\n | \"x56\"\r\n | \"x60\"\r\n | \"x64\"\r\n | \"x68\"\r\n | \"x72\"\r\n | \"x76\"\r\n | \"x80\"\r\n | \"x84\"\r\n | \"x88\"\r\n | \"x92\"\r\n | \"x96\"\r\n | \"x100\"\r\n | \"x104\";\r\n\r\nexport type SpacingProps = {\r\n gap?: SpacingKey;\r\n m?: SpacingKey; // margin\r\n mx?: SpacingKey; // margin x\r\n my?: SpacingKey; // margin y\r\n mt?: SpacingKey; // margin top\r\n mr?: SpacingKey; // margin bottom\r\n mb?: SpacingKey; // margin right\r\n ml?: SpacingKey; // margin left\r\n p?: SpacingKey; // padding\r\n px?: SpacingKey; // padding x\r\n py?: SpacingKey; // padding y\r\n pt?: SpacingKey; // padding top\r\n pr?: SpacingKey; // padding bottom\r\n pb?: SpacingKey; // padding right\r\n pl?: SpacingKey; // padding left\r\n br?: SpacingKey; // border-radius\r\n \"br-t\"?: SpacingKey; // border-radius top\r\n \"br-r\"?: SpacingKey; // border-radius right\r\n \"br-b\"?: SpacingKey; // border-radius bottom\r\n \"br-l\"?: SpacingKey; // border-radius left\r\n \"min-h\"?: SpacingKey; // min-height\r\n \"min-w\"?: SpacingKey; // min-width\r\n \"max-h\"?: SpacingKey; // max-height\r\n \"max-w\"?: SpacingKey; // max-width\r\n};\r\n\r\nexport type SpacingPropsKeys = keyof SpacingProps;\r\nconst spacingPropsKeys: SpacingPropsKeys[] = [\r\n \"gap\",\r\n \"m\",\r\n \"mx\",\r\n \"my\",\r\n \"mt\",\r\n \"mr\",\r\n \"mb\",\r\n \"ml\",\r\n \"p\",\r\n \"px\",\r\n \"py\",\r\n \"pt\",\r\n \"pr\",\r\n \"pb\",\r\n \"pl\",\r\n \"br\",\r\n \"br-t\",\r\n \"br-r\",\r\n \"br-b\",\r\n \"br-l\",\r\n \"min-h\",\r\n \"min-w\",\r\n \"max-h\",\r\n \"max-w\",\r\n];\r\n\r\nexport const createSpacingClasses = <TProps extends SpacingProps>(\r\n props: TProps,\r\n) => {\r\n return spacingPropsKeys\r\n .map((key) => (props[key] ? `${key}-${props[key]}` : \"\"))\r\n .filter(Boolean);\r\n};\r\n"],"names":["spacingPropsKeys","createSpacingClasses","props","key"],"mappings":"gFAwDA,MAAMA,EAAuC,CAC3C,MACA,IACA,KACA,KACA,KACA,KACA,KACA,KACA,IACA,KACA,KACA,KACA,KACA,KACA,KACA,KACA,OACA,OACA,OACA,OACA,QACA,QACA,QACA,OACF,EAEaC,EACXC,GAEOF,EACJ,IAAKG,GAASD,EAAMC,CAAG,EAAI,GAAGA,CAAG,IAAID,EAAMC,CAAG,CAAC,GAAK,EAAG,EACvD,OAAO,OAAO"}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react"),y=require("./index.cjs464.js"),p=require("./index.cjs468.js"),R=require("./index.cjs465.js"),x=require("./index.cjs521.js"),H=require("./index.cjs528.js"),w=require("./index.cjs244.js");function U(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=U(q);var z="DismissableLayer",h="dismissableLayer.update",M="dismissableLayer.pointerDownOutside",$="dismissableLayer.focusOutside",L,T=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),S=o.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:a,onInteractOutside:l,onDismiss:d,...v}=e,c=o.useContext(T),[u,F]=o.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,N]=o.useState({}),W=R.useComposedRefs(t,i=>F(i)),m=Array.from(c.layers),[_]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),A=m.indexOf(_),P=u?m.indexOf(u):-1,k=c.layersWithOutsidePointerEventsDisabled.size>0,D=P>=A,I=Y(i=>{const E=i.target,C=[...c.branches].some(b=>b.contains(E));!D||C||(r==null||r(i),l==null||l(i),i.defaultPrevented||d==null||d())},f),O=G(i=>{const E=i.target;[...c.branches].some(b=>b.contains(E))||(a==null||a(i),l==null||l(i),i.defaultPrevented||d==null||d())},f);return H.useEscapeKeydown(i=>{P===c.layers.size-1&&(s==null||s(i),!i.defaultPrevented&&d&&(i.preventDefault(),d()))},f),o.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(L=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),g(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=L)}},[u,f,n,c]),o.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),g())},[u,c]),o.useEffect(()=>{const i=()=>N({});return document.addEventListener(h,i),()=>document.removeEventListener(h,i)},[]),w.jsxRuntimeExports.jsx(p.Primitive.div,{...v,ref:W,style:{pointerEvents:k?D?"auto":"none":void 0,...e.style},onFocusCapture:y.composeEventHandlers(e.onFocusCapture,O.onFocusCapture),onBlurCapture:y.composeEventHandlers(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:y.composeEventHandlers(e.onPointerDownCapture,I.onPointerDownCapture)})});S.displayName=z;var X="DismissableLayerBranch",B=o.forwardRef((e,t)=>{const n=o.useContext(T),s=o.useRef(null),r=R.useComposedRefs(t,s);return o.useEffect(()=>{const a=s.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),w.jsxRuntimeExports.jsx(p.Primitive.div,{...e,ref:r})});B.displayName=X;function Y(e,t=globalThis==null?void 0:globalThis.document){const n=x.useCallbackRef(e),s=o.useRef(!1),r=o.useRef(()=>{});return o.useEffect(()=>{const a=d=>{if(d.target&&!s.current){let v=function(){j(M,n,c,{discrete:!0})};const c={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",r.current),r.current=v,t.addEventListener("click",r.current,{once:!0})):v()}else t.removeEventListener("click",r.current);s.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",a),t.removeEventListener("click",r.current)}},[t,n]),{onPointerDownCapture:()=>s.current=!0}}function G(e,t=globalThis==null?void 0:globalThis.document){const n=x.useCallbackRef(e),s=o.useRef(!1);return o.useEffect(()=>{const r=a=>{a.target&&!s.current&&j($,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function g(){const e=new CustomEvent(h);document.dispatchEvent(e)}function j(e,t,n,{discrete:s}){const r=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),s?p.dispatchDiscreteCustomEvent(r,a):r.dispatchEvent(a)}exports.DismissableLayer=S;exports.DismissableLayerBranch=B;
2
- //# sourceMappingURL=index.cjs481.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs481.js","sources":["../node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/dismissable-layer/src/dismissable-layer.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useEscapeKeydown } from \"@radix-ui/react-use-escape-keydown\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DISMISSABLE_LAYER_NAME = \"DismissableLayer\";\nvar CONTEXT_UPDATE = \"dismissableLayer.update\";\nvar POINTER_DOWN_OUTSIDE = \"dismissableLayer.pointerDownOutside\";\nvar FOCUS_OUTSIDE = \"dismissableLayer.focusOutside\";\nvar originalBodyPointerEvents;\nvar DismissableLayerContext = React.createContext({\n layers: /* @__PURE__ */ new Set(),\n layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),\n branches: /* @__PURE__ */ new Set()\n});\nvar DismissableLayer = React.forwardRef(\n (props, forwardedRef) => {\n const {\n disableOutsidePointerEvents = false,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n ...layerProps\n } = props;\n const context = React.useContext(DismissableLayerContext);\n const [node, setNode] = React.useState(null);\n const ownerDocument = node?.ownerDocument ?? globalThis?.document;\n const [, force] = React.useState({});\n const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));\n const layers = Array.from(context.layers);\n const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);\n const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);\n const index = node ? layers.indexOf(node) : -1;\n const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;\n const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;\n const pointerDownOutside = usePointerDownOutside((event) => {\n const target = event.target;\n const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));\n if (!isPointerEventsEnabled || isPointerDownOnBranch) return;\n onPointerDownOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n const focusOutside = useFocusOutside((event) => {\n const target = event.target;\n const isFocusInBranch = [...context.branches].some((branch) => branch.contains(target));\n if (isFocusInBranch) return;\n onFocusOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n useEscapeKeydown((event) => {\n const isHighestLayer = index === context.layers.size - 1;\n if (!isHighestLayer) return;\n onEscapeKeyDown?.(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n }, ownerDocument);\n React.useEffect(() => {\n if (!node) return;\n if (disableOutsidePointerEvents) {\n if (context.layersWithOutsidePointerEventsDisabled.size === 0) {\n originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;\n ownerDocument.body.style.pointerEvents = \"none\";\n }\n context.layersWithOutsidePointerEventsDisabled.add(node);\n }\n context.layers.add(node);\n dispatchUpdate();\n return () => {\n if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) {\n ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;\n }\n };\n }, [node, ownerDocument, disableOutsidePointerEvents, context]);\n React.useEffect(() => {\n return () => {\n if (!node) return;\n context.layers.delete(node);\n context.layersWithOutsidePointerEventsDisabled.delete(node);\n dispatchUpdate();\n };\n }, [node, context]);\n React.useEffect(() => {\n const handleUpdate = () => force({});\n document.addEventListener(CONTEXT_UPDATE, handleUpdate);\n return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);\n }, []);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...layerProps,\n ref: composedRefs,\n style: {\n pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? \"auto\" : \"none\" : void 0,\n ...props.style\n },\n onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),\n onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),\n onPointerDownCapture: composeEventHandlers(\n props.onPointerDownCapture,\n pointerDownOutside.onPointerDownCapture\n )\n }\n );\n }\n);\nDismissableLayer.displayName = DISMISSABLE_LAYER_NAME;\nvar BRANCH_NAME = \"DismissableLayerBranch\";\nvar DismissableLayerBranch = React.forwardRef((props, forwardedRef) => {\n const context = React.useContext(DismissableLayerContext);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n context.branches.add(node);\n return () => {\n context.branches.delete(node);\n };\n }\n }, [context.branches]);\n return /* @__PURE__ */ jsx(Primitive.div, { ...props, ref: composedRefs });\n});\nDismissableLayerBranch.displayName = BRANCH_NAME;\nfunction usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {\n const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);\n const isPointerInsideReactTreeRef = React.useRef(false);\n const handleClickRef = React.useRef(() => {\n });\n React.useEffect(() => {\n const handlePointerDown = (event) => {\n if (event.target && !isPointerInsideReactTreeRef.current) {\n let handleAndDispatchPointerDownOutsideEvent2 = function() {\n handleAndDispatchCustomEvent(\n POINTER_DOWN_OUTSIDE,\n handlePointerDownOutside,\n eventDetail,\n { discrete: true }\n );\n };\n var handleAndDispatchPointerDownOutsideEvent = handleAndDispatchPointerDownOutsideEvent2;\n const eventDetail = { originalEvent: event };\n if (event.pointerType === \"touch\") {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;\n ownerDocument.addEventListener(\"click\", handleClickRef.current, { once: true });\n } else {\n handleAndDispatchPointerDownOutsideEvent2();\n }\n } else {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n }\n isPointerInsideReactTreeRef.current = false;\n };\n const timerId = window.setTimeout(() => {\n ownerDocument.addEventListener(\"pointerdown\", handlePointerDown);\n }, 0);\n return () => {\n window.clearTimeout(timerId);\n ownerDocument.removeEventListener(\"pointerdown\", handlePointerDown);\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n };\n }, [ownerDocument, handlePointerDownOutside]);\n return {\n // ensures we check React component tree (not just DOM tree)\n onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true\n };\n}\nfunction useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {\n const handleFocusOutside = useCallbackRef(onFocusOutside);\n const isFocusInsideReactTreeRef = React.useRef(false);\n React.useEffect(() => {\n const handleFocus = (event) => {\n if (event.target && !isFocusInsideReactTreeRef.current) {\n const eventDetail = { originalEvent: event };\n handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {\n discrete: false\n });\n }\n };\n ownerDocument.addEventListener(\"focusin\", handleFocus);\n return () => ownerDocument.removeEventListener(\"focusin\", handleFocus);\n }, [ownerDocument, handleFocusOutside]);\n return {\n onFocusCapture: () => isFocusInsideReactTreeRef.current = true,\n onBlurCapture: () => isFocusInsideReactTreeRef.current = false\n };\n}\nfunction dispatchUpdate() {\n const event = new CustomEvent(CONTEXT_UPDATE);\n document.dispatchEvent(event);\n}\nfunction handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {\n const target = detail.originalEvent.target;\n const event = new CustomEvent(name, { bubbles: false, cancelable: true, detail });\n if (handler) target.addEventListener(name, handler, { once: true });\n if (discrete) {\n dispatchDiscreteCustomEvent(target, event);\n } else {\n target.dispatchEvent(event);\n }\n}\nvar Root = DismissableLayer;\nvar Branch = DismissableLayerBranch;\nexport {\n Branch,\n DismissableLayer,\n DismissableLayerBranch,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DISMISSABLE_LAYER_NAME","CONTEXT_UPDATE","POINTER_DOWN_OUTSIDE","FOCUS_OUTSIDE","originalBodyPointerEvents","DismissableLayerContext","React","DismissableLayer","props","forwardedRef","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","layerProps","context","node","setNode","ownerDocument","force","composedRefs","useComposedRefs","node2","layers","highestLayerWithOutsidePointerEventsDisabled","highestLayerWithOutsidePointerEventsDisabledIndex","index","isBodyPointerEventsDisabled","isPointerEventsEnabled","pointerDownOutside","usePointerDownOutside","event","target","isPointerDownOnBranch","branch","focusOutside","useFocusOutside","useEscapeKeydown","dispatchUpdate","handleUpdate","jsx","Primitive","composeEventHandlers","BRANCH_NAME","DismissableLayerBranch","ref","handlePointerDownOutside","useCallbackRef","isPointerInsideReactTreeRef","handleClickRef","handlePointerDown","handleAndDispatchPointerDownOutsideEvent2","handleAndDispatchCustomEvent","eventDetail","timerId","handleFocusOutside","isFocusInsideReactTreeRef","handleFocus","name","handler","detail","discrete","dispatchDiscreteCustomEvent"],"mappings":"6jBAUA,IAAIA,EAAyB,mBACzBC,EAAiB,0BACjBC,EAAuB,sCACvBC,EAAgB,gCAChBC,EACAC,EAA0BC,EAAM,cAAc,CAChD,OAAwB,IAAI,IAC5B,uCAAwD,IAAI,IAC5D,SAA0B,IAAI,GAChC,CAAC,EACGC,EAAmBD,EAAM,WAC3B,CAACE,EAAOC,IAAiB,CACvB,KAAM,CACJ,4BAAAC,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x=require("./index.cjs465.js"),A=require("./index.cjs468.js"),O=require("./index.cjs521.js"),k=require("./index.cjs244.js");function w(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const f=w(U);var F="focusScope.autoFocusOnMount",y="focusScope.autoFocusOnUnmount",S={bubbles:!1,cancelable:!0},K="FocusScope",C=f.forwardRef((e,n)=>{const{loop:t=!1,trapped:o=!1,onMountAutoFocus:p,onUnmountAutoFocus:I,...L}=e,[s,P]=f.useState(null),E=O.useCallbackRef(p),v=O.useCallbackRef(I),b=f.useRef(null),_=x.useComposedRefs(n,u=>P(u)),a=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(o){let u=function(i){if(a.paused||!s)return;const c=i.target;s.contains(c)?b.current=c:d(b.current,{select:!0})},l=function(i){if(a.paused||!s)return;const c=i.relatedTarget;c!==null&&(s.contains(c)||d(b.current,{select:!0}))},r=function(i){if(document.activeElement===document.body)for(const T of i)T.removedNodes.length>0&&d(s)};document.addEventListener("focusin",u),document.addEventListener("focusout",l);const m=new MutationObserver(r);return s&&m.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",u),document.removeEventListener("focusout",l),m.disconnect()}}},[o,s,a.paused]),f.useEffect(()=>{if(s){N.add(a);const u=document.activeElement;if(!s.contains(u)){const r=new CustomEvent(F,S);s.addEventListener(F,E),s.dispatchEvent(r),r.defaultPrevented||(j(W(R(s)),{select:!0}),document.activeElement===u&&d(s))}return()=>{s.removeEventListener(F,E),setTimeout(()=>{const r=new CustomEvent(y,S);s.addEventListener(y,v),s.dispatchEvent(r),r.defaultPrevented||d(u??document.body,{select:!0}),s.removeEventListener(y,v),N.remove(a)},0)}}},[s,E,v,a]);const M=f.useCallback(u=>{if(!t&&!o||a.paused)return;const l=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,r=document.activeElement;if(l&&r){const m=u.currentTarget,[i,c]=D(m);i&&c?!u.shiftKey&&r===c?(u.preventDefault(),t&&d(i,{select:!0})):u.shiftKey&&r===i&&(u.preventDefault(),t&&d(c,{select:!0})):r===m&&u.preventDefault()}},[t,o,a.paused]);return k.jsxRuntimeExports.jsx(A.Primitive.div,{tabIndex:-1,...L,ref:_,onKeyDown:M})});C.displayName=K;function j(e,{select:n=!1}={}){const t=document.activeElement;for(const o of e)if(d(o,{select:n}),document.activeElement!==t)return}function D(e){const n=R(e),t=h(n,e),o=h(n.reverse(),e);return[t,o]}function R(e){const n=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const p=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||p?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)n.push(t.currentNode);return n}function h(e,n){for(const t of e)if(!q(t,{upTo:n}))return t}function q(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function H(e){return e instanceof HTMLInputElement&&"select"in e}function d(e,{select:n=!1}={}){if(e&&e.focus){const t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&H(e)&&n&&e.select()}}var N=V();function V(){let e=[];return{add(n){const t=e[0];n!==t&&(t==null||t.pause()),e=g(e,n),e.unshift(n)},remove(n){var t;e=g(e,n),(t=e[0])==null||t.resume()}}}function g(e,n){const t=[...e],o=t.indexOf(n);return o!==-1&&t.splice(o,1),t}function W(e){return e.filter(n=>n.tagName!=="A")}exports.FocusScope=C;
2
- //# sourceMappingURL=index.cjs482.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs482.js","sources":["../node_modules/@radix-ui/react-focus-scope/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/focus-scope/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"],"names":["AUTOFOCUS_ON_MOUNT","AUTOFOCUS_ON_UNMOUNT","EVENT_OPTIONS","FOCUS_SCOPE_NAME","FocusScope","React","props","forwardedRef","loop","trapped","onMountAutoFocusProp","onUnmountAutoFocusProp","scopeProps","container","setContainer","onMountAutoFocus","useCallbackRef","onUnmountAutoFocus","lastFocusedElementRef","composedRefs","useComposedRefs","node","focusScope","handleFocusIn2","event","target","focus","handleFocusOut2","relatedTarget","handleMutations2","mutations","mutation","mutationObserver","focusScopesStack","previouslyFocusedElement","mountEvent","focusFirst","removeLinks","getTabbableCandidates","unmountEvent","handleKeyDown","isTabKey","focusedElement","container2","first","last","getTabbableEdges","jsx","Primitive","candidates","select","candidate","findVisible","nodes","walker","isHiddenInput","elements","element","isHidden","upTo","isSelectableInput","createFocusScopesStack","stack","activeFocusScope","arrayRemove","_a","array","item","updatedArray","index","items"],"mappings":"+fAQA,IAAIA,EAAqB,8BACrBC,EAAuB,gCACvBC,EAAgB,CAAE,QAAS,GAAO,WAAY,EAAM,EACpDC,EAAmB,aACnBC,EAAaC,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACzD,KAAM,CACJ,KAAAC,EAAO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a,OAAOC,EAAO,CAAC,EAEvBD,CACT,CACA,SAAS/B,EAAYiC,EAAO,CAC1B,OAAOA,EAAM,OAAQH,GAASA,EAAK,UAAY,GAAG,CACpD","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),d=require("react-dom"),f=require("./index.cjs468.js"),p=require("./index.cjs526.js"),m=require("./index.cjs244.js");function P(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const c=P(l);var b="Portal",i=c.forwardRef((e,r)=>{var a;const{container:t,...o}=e,[u,s]=c.useState(!1);p.useLayoutEffect(()=>s(!0),[]);const n=t||u&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return n?d.createPortal(m.jsxRuntimeExports.jsx(f.Primitive.div,{...o,ref:r}),n):null});i.displayName=b;exports.Portal=i;
2
- //# sourceMappingURL=index.cjs483.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs483.js","sources":["../node_modules/@radix-ui/react-portal/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/portal/src/portal.tsx\nimport * as React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { jsx } from \"react/jsx-runtime\";\nvar PORTAL_NAME = \"Portal\";\nvar Portal = React.forwardRef((props, forwardedRef) => {\n const { container: containerProp, ...portalProps } = props;\n const [mounted, setMounted] = React.useState(false);\n useLayoutEffect(() => setMounted(true), []);\n const container = containerProp || mounted && globalThis?.document?.body;\n return container ? ReactDOM.createPortal(/* @__PURE__ */ jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;\n});\nPortal.displayName = PORTAL_NAME;\nvar Root = Portal;\nexport {\n Portal,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["PORTAL_NAME","Portal","React","props","forwardedRef","containerProp","portalProps","mounted","setMounted","useLayoutEffect","container","_a","ReactDOM","jsx","Primitive"],"mappings":"ufAQA,IAAIA,EAAc,SACdC,EAASC,EAAM,WAAW,CAACC,EAAOC,IAAiB,OACrD,KAAM,CAAE,UAAWC,EAAe,GAAGC,CAAa,EAAGH,EAC/C,CAACI,EAASC,CAAU,EAAIN,EAAM,SAAS,EAAK,EAClDO,EAAAA,gBAAgB,IAAMD,EAAW,EAAI,EAAG,CAAA,CAAE,EAC1C,MAAME,EAAYL,GAAiBE,KAAWI,EAAA,mCAAY,WAAZ,YAAAA,EAAsB,MACpE,OAAOD,EAAYE,EAAS,aAA6BC,EAAG,kBAAA,IAACC,EAAS,UAAC,IAAK,CAAE,GAAGR,EAAa,IAAKF,CAAc,CAAA,EAAGM,CAAS,EAAI,IACnI,CAAC,EACDT,EAAO,YAAcD","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs509.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs512.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
2
- //# sourceMappingURL=index.cjs513.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs513.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,30 +0,0 @@
1
- const p = [
2
- "gap",
3
- "m",
4
- "mx",
5
- "my",
6
- "mt",
7
- "mr",
8
- "mb",
9
- "ml",
10
- "p",
11
- "px",
12
- "py",
13
- "pt",
14
- "pr",
15
- "pb",
16
- "pl",
17
- "br",
18
- "br-t",
19
- "br-r",
20
- "br-b",
21
- "br-l",
22
- "min-h",
23
- "min-w",
24
- "max-h",
25
- "max-w"
26
- ], a = (m) => p.map((r) => m[r] ? `${r}-${m[r]}` : "").filter(Boolean);
27
- export {
28
- a as createSpacingClasses
29
- };
30
- //# sourceMappingURL=index.es275.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es275.js","sources":["../src/theme/spacing.ts"],"sourcesContent":["export type SpacingKey =\r\n | \"x4\"\r\n | \"x8\"\r\n | \"x12\"\r\n | \"x16\"\r\n | \"x20\"\r\n | \"x24\"\r\n | \"x28\"\r\n | \"x32\"\r\n | \"x36\"\r\n | \"x40\"\r\n | \"x44\"\r\n | \"x48\"\r\n | \"x52\"\r\n | \"x56\"\r\n | \"x60\"\r\n | \"x64\"\r\n | \"x68\"\r\n | \"x72\"\r\n | \"x76\"\r\n | \"x80\"\r\n | \"x84\"\r\n | \"x88\"\r\n | \"x92\"\r\n | \"x96\"\r\n | \"x100\"\r\n | \"x104\";\r\n\r\nexport type SpacingProps = {\r\n gap?: SpacingKey;\r\n m?: SpacingKey; // margin\r\n mx?: SpacingKey; // margin x\r\n my?: SpacingKey; // margin y\r\n mt?: SpacingKey; // margin top\r\n mr?: SpacingKey; // margin bottom\r\n mb?: SpacingKey; // margin right\r\n ml?: SpacingKey; // margin left\r\n p?: SpacingKey; // padding\r\n px?: SpacingKey; // padding x\r\n py?: SpacingKey; // padding y\r\n pt?: SpacingKey; // padding top\r\n pr?: SpacingKey; // padding bottom\r\n pb?: SpacingKey; // padding right\r\n pl?: SpacingKey; // padding left\r\n br?: SpacingKey; // border-radius\r\n \"br-t\"?: SpacingKey; // border-radius top\r\n \"br-r\"?: SpacingKey; // border-radius right\r\n \"br-b\"?: SpacingKey; // border-radius bottom\r\n \"br-l\"?: SpacingKey; // border-radius left\r\n \"min-h\"?: SpacingKey; // min-height\r\n \"min-w\"?: SpacingKey; // min-width\r\n \"max-h\"?: SpacingKey; // max-height\r\n \"max-w\"?: SpacingKey; // max-width\r\n};\r\n\r\nexport type SpacingPropsKeys = keyof SpacingProps;\r\nconst spacingPropsKeys: SpacingPropsKeys[] = [\r\n \"gap\",\r\n \"m\",\r\n \"mx\",\r\n \"my\",\r\n \"mt\",\r\n \"mr\",\r\n \"mb\",\r\n \"ml\",\r\n \"p\",\r\n \"px\",\r\n \"py\",\r\n \"pt\",\r\n \"pr\",\r\n \"pb\",\r\n \"pl\",\r\n \"br\",\r\n \"br-t\",\r\n \"br-r\",\r\n \"br-b\",\r\n \"br-l\",\r\n \"min-h\",\r\n \"min-w\",\r\n \"max-h\",\r\n \"max-w\",\r\n];\r\n\r\nexport const createSpacingClasses = <TProps extends SpacingProps>(\r\n props: TProps,\r\n) => {\r\n return spacingPropsKeys\r\n .map((key) => (props[key] ? `${key}-${props[key]}` : \"\"))\r\n .filter(Boolean);\r\n};\r\n"],"names":["spacingPropsKeys","createSpacingClasses","props","key"],"mappings":"AAwDA,MAAMA,IAAuC;AAAA,EAC3C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAEaC,IAAuB,CAClCC,MAEOF,EACJ,IAAI,CAACG,MAASD,EAAMC,CAAG,IAAI,GAAGA,CAAG,IAAID,EAAMC,CAAG,CAAC,KAAK,EAAG,EACvD,OAAO,OAAO;"}
@@ -1,128 +0,0 @@
1
- import * as n from "react";
2
- import { composeEventHandlers as m } from "./index.es464.js";
3
- import { Primitive as R, dispatchDiscreteCustomEvent as k } from "./index.es468.js";
4
- import { useComposedRefs as g } from "./index.es465.js";
5
- import { useCallbackRef as w } from "./index.es521.js";
6
- import { useEscapeKeydown as U } from "./index.es528.js";
7
- import { j as x } from "./index.es244.js";
8
- var j = "DismissableLayer", p = "dismissableLayer.update", z = "dismissableLayer.pointerDownOutside", H = "dismissableLayer.focusOutside", L, T = n.createContext({
9
- layers: /* @__PURE__ */ new Set(),
10
- layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
11
- branches: /* @__PURE__ */ new Set()
12
- }), M = n.forwardRef(
13
- (r, e) => {
14
- const {
15
- disableOutsidePointerEvents: i = !1,
16
- onEscapeKeyDown: o,
17
- onPointerDownOutside: t,
18
- onFocusOutside: a,
19
- onInteractOutside: l,
20
- onDismiss: d,
21
- ...v
22
- } = r, c = n.useContext(T), [u, S] = n.useState(null), f = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, F] = n.useState({}), W = g(e, (s) => S(s)), y = Array.from(c.layers), [A] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), N = y.indexOf(A), b = u ? y.indexOf(u) : -1, I = c.layersWithOutsidePointerEventsDisabled.size > 0, P = b >= N, _ = q((s) => {
23
- const E = s.target, C = [...c.branches].some((h) => h.contains(E));
24
- !P || C || (t == null || t(s), l == null || l(s), s.defaultPrevented || d == null || d());
25
- }, f), D = G((s) => {
26
- const E = s.target;
27
- [...c.branches].some((h) => h.contains(E)) || (a == null || a(s), l == null || l(s), s.defaultPrevented || d == null || d());
28
- }, f);
29
- return U((s) => {
30
- b === c.layers.size - 1 && (o == null || o(s), !s.defaultPrevented && d && (s.preventDefault(), d()));
31
- }, f), n.useEffect(() => {
32
- if (u)
33
- return i && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (L = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(u)), c.layers.add(u), O(), () => {
34
- i && c.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = L);
35
- };
36
- }, [u, f, i, c]), n.useEffect(() => () => {
37
- u && (c.layers.delete(u), c.layersWithOutsidePointerEventsDisabled.delete(u), O());
38
- }, [u, c]), n.useEffect(() => {
39
- const s = () => F({});
40
- return document.addEventListener(p, s), () => document.removeEventListener(p, s);
41
- }, []), /* @__PURE__ */ x.jsx(
42
- R.div,
43
- {
44
- ...v,
45
- ref: W,
46
- style: {
47
- pointerEvents: I ? P ? "auto" : "none" : void 0,
48
- ...r.style
49
- },
50
- onFocusCapture: m(r.onFocusCapture, D.onFocusCapture),
51
- onBlurCapture: m(r.onBlurCapture, D.onBlurCapture),
52
- onPointerDownCapture: m(
53
- r.onPointerDownCapture,
54
- _.onPointerDownCapture
55
- )
56
- }
57
- );
58
- }
59
- );
60
- M.displayName = j;
61
- var X = "DismissableLayerBranch", Y = n.forwardRef((r, e) => {
62
- const i = n.useContext(T), o = n.useRef(null), t = g(e, o);
63
- return n.useEffect(() => {
64
- const a = o.current;
65
- if (a)
66
- return i.branches.add(a), () => {
67
- i.branches.delete(a);
68
- };
69
- }, [i.branches]), /* @__PURE__ */ x.jsx(R.div, { ...r, ref: t });
70
- });
71
- Y.displayName = X;
72
- function q(r, e = globalThis == null ? void 0 : globalThis.document) {
73
- const i = w(r), o = n.useRef(!1), t = n.useRef(() => {
74
- });
75
- return n.useEffect(() => {
76
- const a = (d) => {
77
- if (d.target && !o.current) {
78
- let v = function() {
79
- B(
80
- z,
81
- i,
82
- c,
83
- { discrete: !0 }
84
- );
85
- };
86
- const c = { originalEvent: d };
87
- d.pointerType === "touch" ? (e.removeEventListener("click", t.current), t.current = v, e.addEventListener("click", t.current, { once: !0 })) : v();
88
- } else
89
- e.removeEventListener("click", t.current);
90
- o.current = !1;
91
- }, l = window.setTimeout(() => {
92
- e.addEventListener("pointerdown", a);
93
- }, 0);
94
- return () => {
95
- window.clearTimeout(l), e.removeEventListener("pointerdown", a), e.removeEventListener("click", t.current);
96
- };
97
- }, [e, i]), {
98
- // ensures we check React component tree (not just DOM tree)
99
- onPointerDownCapture: () => o.current = !0
100
- };
101
- }
102
- function G(r, e = globalThis == null ? void 0 : globalThis.document) {
103
- const i = w(r), o = n.useRef(!1);
104
- return n.useEffect(() => {
105
- const t = (a) => {
106
- a.target && !o.current && B(H, i, { originalEvent: a }, {
107
- discrete: !1
108
- });
109
- };
110
- return e.addEventListener("focusin", t), () => e.removeEventListener("focusin", t);
111
- }, [e, i]), {
112
- onFocusCapture: () => o.current = !0,
113
- onBlurCapture: () => o.current = !1
114
- };
115
- }
116
- function O() {
117
- const r = new CustomEvent(p);
118
- document.dispatchEvent(r);
119
- }
120
- function B(r, e, i, { discrete: o }) {
121
- const t = i.originalEvent.target, a = new CustomEvent(r, { bubbles: !1, cancelable: !0, detail: i });
122
- e && t.addEventListener(r, e, { once: !0 }), o ? k(t, a) : t.dispatchEvent(a);
123
- }
124
- export {
125
- M as DismissableLayer,
126
- Y as DismissableLayerBranch
127
- };
128
- //# sourceMappingURL=index.es481.js.map