@anoki/fse-ui 1.0.528 → 1.0.529

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 (321) hide show
  1. package/dist/components/ui/EditorialWidget/EditorialWidget.css +1 -1
  2. package/dist/index.cjs102.js +1 -1
  3. package/dist/index.cjs102.js.map +1 -1
  4. package/dist/index.cjs107.js +1 -1
  5. package/dist/index.cjs16.js +1 -1
  6. package/dist/index.cjs162.js +1 -1
  7. package/dist/index.cjs162.js.map +1 -1
  8. package/dist/index.cjs163.js +1 -1
  9. package/dist/index.cjs163.js.map +1 -1
  10. package/dist/index.cjs167.js +1 -1
  11. package/dist/index.cjs167.js.map +1 -1
  12. package/dist/index.cjs176.js +1 -1
  13. package/dist/index.cjs176.js.map +1 -1
  14. package/dist/index.cjs18.js +1 -1
  15. package/dist/index.cjs180.js +1 -1
  16. package/dist/index.cjs180.js.map +1 -1
  17. package/dist/index.cjs209.js +1 -1
  18. package/dist/index.cjs213.js +1 -1
  19. package/dist/index.cjs214.js +1 -1
  20. package/dist/index.cjs220.js +1 -1
  21. package/dist/index.cjs231.js +1 -1
  22. package/dist/index.cjs24.js +1 -1
  23. package/dist/index.cjs25.js +1 -1
  24. package/dist/index.cjs258.js +1 -1
  25. package/dist/index.cjs26.js +1 -1
  26. package/dist/index.cjs260.js +2 -2
  27. package/dist/index.cjs260.js.map +1 -1
  28. package/dist/index.cjs27.js +1 -1
  29. package/dist/index.cjs297.js +1 -1
  30. package/dist/index.cjs30.js +1 -1
  31. package/dist/index.cjs310.js +1 -1
  32. package/dist/index.cjs318.js +2 -2
  33. package/dist/index.cjs319.js +3 -12
  34. package/dist/index.cjs319.js.map +1 -1
  35. package/dist/index.cjs32.js +1 -1
  36. package/dist/index.cjs325.js +2 -0
  37. package/dist/index.cjs325.js.map +1 -0
  38. package/dist/index.cjs327.js +1 -1
  39. package/dist/index.cjs328.js +1 -1
  40. package/dist/index.cjs328.js.map +1 -1
  41. package/dist/index.cjs329.js +1 -1
  42. package/dist/index.cjs329.js.map +1 -1
  43. package/dist/index.cjs330.js +1 -1
  44. package/dist/index.cjs330.js.map +1 -1
  45. package/dist/index.cjs331.js +1 -1
  46. package/dist/index.cjs331.js.map +1 -1
  47. package/dist/index.cjs333.js +1 -1
  48. package/dist/index.cjs333.js.map +1 -1
  49. package/dist/index.cjs334.js +2 -0
  50. package/dist/index.cjs334.js.map +1 -0
  51. package/dist/index.cjs335.js +2 -0
  52. package/dist/index.cjs335.js.map +1 -0
  53. package/dist/index.cjs336.js +2 -0
  54. package/dist/index.cjs336.js.map +1 -0
  55. package/dist/index.cjs337.js +1 -1
  56. package/dist/index.cjs337.js.map +1 -1
  57. package/dist/index.cjs338.js +1 -1
  58. package/dist/index.cjs338.js.map +1 -1
  59. package/dist/index.cjs339.js +1 -1
  60. package/dist/index.cjs340.js +1 -1
  61. package/dist/index.cjs340.js.map +1 -1
  62. package/dist/index.cjs341.js +1 -1
  63. package/dist/index.cjs341.js.map +1 -1
  64. package/dist/index.cjs342.js +1 -1
  65. package/dist/index.cjs342.js.map +1 -1
  66. package/dist/index.cjs343.js +1 -1
  67. package/dist/index.cjs343.js.map +1 -1
  68. package/dist/index.cjs344.js +1 -1
  69. package/dist/index.cjs344.js.map +1 -1
  70. package/dist/index.cjs345.js +2 -0
  71. package/dist/index.cjs345.js.map +1 -0
  72. package/dist/index.cjs346.js +2 -0
  73. package/dist/index.cjs346.js.map +1 -0
  74. package/dist/index.cjs347.js +2 -0
  75. package/dist/index.cjs347.js.map +1 -0
  76. package/dist/index.cjs348.js +1 -1
  77. package/dist/index.cjs348.js.map +1 -1
  78. package/dist/index.cjs349.js +1 -1
  79. package/dist/index.cjs349.js.map +1 -1
  80. package/dist/index.cjs35.js +1 -1
  81. package/dist/index.cjs350.js +1 -1
  82. package/dist/index.cjs350.js.map +1 -1
  83. package/dist/index.cjs351.js +1 -1
  84. package/dist/index.cjs351.js.map +1 -1
  85. package/dist/index.cjs352.js +1 -1
  86. package/dist/index.cjs352.js.map +1 -1
  87. package/dist/index.cjs353.js +1 -1
  88. package/dist/index.cjs353.js.map +1 -1
  89. package/dist/{index.cjs361.js → index.cjs356.js} +1 -1
  90. package/dist/{index.cjs361.js.map → index.cjs356.js.map} +1 -1
  91. package/dist/index.cjs357.js +2 -0
  92. package/dist/{index.cjs362.js.map → index.cjs357.js.map} +1 -1
  93. package/dist/index.cjs358.js +2 -0
  94. package/dist/index.cjs358.js.map +1 -0
  95. package/dist/index.cjs363.js +1 -1
  96. package/dist/index.cjs363.js.map +1 -1
  97. package/dist/index.cjs364.js +1 -1
  98. package/dist/index.cjs364.js.map +1 -1
  99. package/dist/{index.cjs386.js → index.cjs365.js} +2 -2
  100. package/dist/{index.cjs386.js.map → index.cjs365.js.map} +1 -1
  101. package/dist/index.cjs366.js +2 -0
  102. package/dist/index.cjs366.js.map +1 -0
  103. package/dist/index.cjs367.js +1 -1
  104. package/dist/index.cjs367.js.map +1 -1
  105. package/dist/index.cjs368.js +1 -1
  106. package/dist/index.cjs368.js.map +1 -1
  107. package/dist/index.cjs369.js +4 -1
  108. package/dist/index.cjs369.js.map +1 -1
  109. package/dist/index.cjs37.js +1 -1
  110. package/dist/index.cjs370.js +1 -1
  111. package/dist/index.cjs370.js.map +1 -1
  112. package/dist/index.cjs379.js +1 -1
  113. package/dist/index.cjs380.js +3 -3
  114. package/dist/index.cjs381.js +1 -1
  115. package/dist/index.cjs384.js +1 -1
  116. package/dist/index.cjs384.js.map +1 -1
  117. package/dist/index.cjs385.js +1 -1
  118. package/dist/index.cjs385.js.map +1 -1
  119. package/dist/index.cjs389.js +1 -1
  120. package/dist/index.cjs389.js.map +1 -1
  121. package/dist/index.cjs390.js +1 -1
  122. package/dist/index.cjs390.js.map +1 -1
  123. package/dist/index.cjs391.js +1 -1
  124. package/dist/index.cjs391.js.map +1 -1
  125. package/dist/index.cjs392.js +1 -1
  126. package/dist/index.cjs392.js.map +1 -1
  127. package/dist/index.cjs396.js +1 -1
  128. package/dist/index.cjs396.js.map +1 -1
  129. package/dist/index.cjs399.js +1 -1
  130. package/dist/index.cjs399.js.map +1 -1
  131. package/dist/index.cjs401.js +1 -1
  132. package/dist/index.cjs402.js +1 -1
  133. package/dist/index.cjs405.js +1 -1
  134. package/dist/index.cjs405.js.map +1 -1
  135. package/dist/index.cjs407.js +1 -1
  136. package/dist/index.cjs47.js +1 -1
  137. package/dist/index.cjs68.js +1 -1
  138. package/dist/index.cjs69.js +1 -1
  139. package/dist/index.d.ts +1 -1
  140. package/dist/index.es102.js +1 -1
  141. package/dist/index.es102.js.map +1 -1
  142. package/dist/index.es107.js +17 -17
  143. package/dist/index.es16.js +18 -18
  144. package/dist/index.es162.js +76 -71
  145. package/dist/index.es162.js.map +1 -1
  146. package/dist/index.es163.js +11 -1
  147. package/dist/index.es163.js.map +1 -1
  148. package/dist/index.es164.js +2 -2
  149. package/dist/index.es165.js +24 -24
  150. package/dist/index.es167.js +63 -58
  151. package/dist/index.es167.js.map +1 -1
  152. package/dist/index.es172.js +1 -1
  153. package/dist/index.es176.js +29 -26
  154. package/dist/index.es176.js.map +1 -1
  155. package/dist/index.es18.js +22 -22
  156. package/dist/index.es180.js +18 -15
  157. package/dist/index.es180.js.map +1 -1
  158. package/dist/index.es209.js +20 -20
  159. package/dist/index.es213.js +25 -25
  160. package/dist/index.es214.js +10 -10
  161. package/dist/index.es220.js +6 -6
  162. package/dist/index.es231.js +11 -11
  163. package/dist/index.es24.js +4 -4
  164. package/dist/index.es25.js +38 -38
  165. package/dist/index.es258.js +30 -30
  166. package/dist/index.es26.js +21 -21
  167. package/dist/index.es260.js +22 -22
  168. package/dist/index.es260.js.map +1 -1
  169. package/dist/index.es27.js +2 -2
  170. package/dist/index.es297.js +11 -11
  171. package/dist/index.es30.js +6 -6
  172. package/dist/index.es310.js +3 -3
  173. package/dist/index.es318.js +20 -20
  174. package/dist/index.es319.js +137 -298
  175. package/dist/index.es319.js.map +1 -1
  176. package/dist/index.es32.js +4 -4
  177. package/dist/index.es325.js +10 -0
  178. package/dist/index.es325.js.map +1 -0
  179. package/dist/index.es326.js +14 -14
  180. package/dist/index.es327.js +40 -40
  181. package/dist/index.es328.js +29 -6
  182. package/dist/index.es328.js.map +1 -1
  183. package/dist/index.es329.js +32 -29
  184. package/dist/index.es329.js.map +1 -1
  185. package/dist/index.es330.js +621 -5
  186. package/dist/index.es330.js.map +1 -1
  187. package/dist/index.es331.js +10 -24
  188. package/dist/index.es331.js.map +1 -1
  189. package/dist/index.es333.js +10 -32
  190. package/dist/index.es333.js.map +1 -1
  191. package/dist/index.es334.js +56 -0
  192. package/dist/index.es334.js.map +1 -0
  193. package/dist/index.es335.js +49 -0
  194. package/dist/index.es335.js.map +1 -0
  195. package/dist/index.es336.js +11 -0
  196. package/dist/index.es336.js.map +1 -0
  197. package/dist/index.es337.js +124 -10
  198. package/dist/index.es337.js.map +1 -1
  199. package/dist/index.es338.js +12 -122
  200. package/dist/index.es338.js.map +1 -1
  201. package/dist/index.es339.js +2 -2
  202. package/dist/index.es340.js +217 -13
  203. package/dist/index.es340.js.map +1 -1
  204. package/dist/index.es341.js +13 -14
  205. package/dist/index.es341.js.map +1 -1
  206. package/dist/index.es342.js +69 -9
  207. package/dist/index.es342.js.map +1 -1
  208. package/dist/index.es343.js +176 -48
  209. package/dist/index.es343.js.map +1 -1
  210. package/dist/index.es344.js +49 -52
  211. package/dist/index.es344.js.map +1 -1
  212. package/dist/index.es345.js +12 -0
  213. package/dist/index.es345.js.map +1 -0
  214. package/dist/index.es346.js +7 -0
  215. package/dist/index.es346.js.map +1 -0
  216. package/dist/index.es347.js +9 -0
  217. package/dist/index.es347.js.map +1 -0
  218. package/dist/index.es348.js +24 -10
  219. package/dist/index.es348.js.map +1 -1
  220. package/dist/index.es349.js +12 -4
  221. package/dist/index.es349.js.map +1 -1
  222. package/dist/index.es35.js +14 -14
  223. package/dist/index.es350.js +197 -614
  224. package/dist/index.es350.js.map +1 -1
  225. package/dist/index.es351.js +22 -12
  226. package/dist/index.es351.js.map +1 -1
  227. package/dist/index.es352.js +390 -43
  228. package/dist/index.es352.js.map +1 -1
  229. package/dist/index.es353.js +15 -8
  230. package/dist/index.es353.js.map +1 -1
  231. package/dist/{index.es361.js → index.es356.js} +1 -1
  232. package/dist/{index.es361.js.map → index.es356.js.map} +1 -1
  233. package/dist/{index.es362.js → index.es357.js} +14 -14
  234. package/dist/{index.es362.js.map → index.es357.js.map} +1 -1
  235. package/dist/index.es358.js +8 -0
  236. package/dist/index.es358.js.map +1 -0
  237. package/dist/index.es363.js +523 -5
  238. package/dist/index.es363.js.map +1 -1
  239. package/dist/index.es364.js +126 -14
  240. package/dist/index.es364.js.map +1 -1
  241. package/dist/{index.es386.js → index.es365.js} +43 -43
  242. package/dist/{index.es386.js.map → index.es365.js.map} +1 -1
  243. package/dist/index.es366.js +8 -0
  244. package/dist/index.es366.js.map +1 -0
  245. package/dist/index.es367.js +3 -205
  246. package/dist/index.es367.js.map +1 -1
  247. package/dist/index.es368.js +23 -21
  248. package/dist/index.es368.js.map +1 -1
  249. package/dist/index.es369.js +105 -388
  250. package/dist/index.es369.js.map +1 -1
  251. package/dist/index.es37.js +6 -6
  252. package/dist/index.es370.js +16 -5
  253. package/dist/index.es370.js.map +1 -1
  254. package/dist/index.es379.js +1 -1
  255. package/dist/index.es380.js +16 -16
  256. package/dist/index.es381.js +1 -1
  257. package/dist/index.es384.js +3 -522
  258. package/dist/index.es384.js.map +1 -1
  259. package/dist/index.es385.js +22 -126
  260. package/dist/index.es385.js.map +1 -1
  261. package/dist/index.es389.js +21 -11
  262. package/dist/index.es389.js.map +1 -1
  263. package/dist/index.es390.js +11 -26
  264. package/dist/index.es390.js.map +1 -1
  265. package/dist/index.es391.js +27 -4
  266. package/dist/index.es391.js.map +1 -1
  267. package/dist/index.es392.js +4 -22
  268. package/dist/index.es392.js.map +1 -1
  269. package/dist/index.es396.js +2 -2
  270. package/dist/index.es396.js.map +1 -1
  271. package/dist/index.es399.js +34 -34
  272. package/dist/index.es399.js.map +1 -1
  273. package/dist/index.es401.js +2 -2
  274. package/dist/index.es401.js.map +1 -1
  275. package/dist/index.es402.js +6 -6
  276. package/dist/index.es405.js +2 -2
  277. package/dist/index.es405.js.map +1 -1
  278. package/dist/index.es47.js +2 -2
  279. package/dist/index.es5.js +4 -4
  280. package/dist/index.es65.js +44 -44
  281. package/dist/index.es68.js +25 -25
  282. package/dist/index.es69.js +23 -23
  283. package/dist/index.es98.js +12 -12
  284. package/package.json +1 -1
  285. package/dist/index.cjs332.js +0 -2
  286. package/dist/index.cjs332.js.map +0 -1
  287. package/dist/index.cjs354.js +0 -2
  288. package/dist/index.cjs354.js.map +0 -1
  289. package/dist/index.cjs355.js +0 -2
  290. package/dist/index.cjs355.js.map +0 -1
  291. package/dist/index.cjs362.js +0 -2
  292. package/dist/index.cjs371.js +0 -2
  293. package/dist/index.cjs371.js.map +0 -1
  294. package/dist/index.cjs372.js +0 -2
  295. package/dist/index.cjs372.js.map +0 -1
  296. package/dist/index.cjs373.js +0 -5
  297. package/dist/index.cjs373.js.map +0 -1
  298. package/dist/index.cjs374.js +0 -2
  299. package/dist/index.cjs374.js.map +0 -1
  300. package/dist/index.cjs387.js +0 -2
  301. package/dist/index.cjs387.js.map +0 -1
  302. package/dist/index.cjs388.js +0 -2
  303. package/dist/index.cjs388.js.map +0 -1
  304. package/dist/index.es332.js +0 -72
  305. package/dist/index.es332.js.map +0 -1
  306. package/dist/index.es354.js +0 -221
  307. package/dist/index.es354.js.map +0 -1
  308. package/dist/index.es355.js +0 -181
  309. package/dist/index.es355.js.map +0 -1
  310. package/dist/index.es371.js +0 -6
  311. package/dist/index.es371.js.map +0 -1
  312. package/dist/index.es372.js +0 -27
  313. package/dist/index.es372.js.map +0 -1
  314. package/dist/index.es373.js +0 -113
  315. package/dist/index.es373.js.map +0 -1
  316. package/dist/index.es374.js +0 -19
  317. package/dist/index.es374.js.map +0 -1
  318. package/dist/index.es387.js +0 -7
  319. package/dist/index.es387.js.map +0 -1
  320. package/dist/index.es388.js +0 -26
  321. package/dist/index.es388.js.map +0 -1
package/dist/index.es5.js CHANGED
@@ -1,5 +1,5 @@
1
- import { signedOffset as E, parseFloating as l, parseMillis as F, untruncateYear as w, parseInteger as f, isUndefined as Y } from "./index.es168.js";
2
- import { monthsShort as v, weekdaysLong as z, weekdaysShort as P } from "./index.es315.js";
1
+ import { signedOffset as E, parseMillis as F, parseFloating as l, parseInteger as f, untruncateYear as w, isUndefined as Y } from "./index.es168.js";
2
+ import { weekdaysLong as v, weekdaysShort as z, monthsShort as P } from "./index.es315.js";
3
3
  import y from "./index.es166.js";
4
4
  import q from "./index.es176.js";
5
5
  const W = /[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;
@@ -95,12 +95,12 @@ const te = {
95
95
  function D(e, t, n, r, o, i, d) {
96
96
  const s = {
97
97
  year: t.length === 2 ? w(f(t)) : f(t),
98
- month: v.indexOf(n) + 1,
98
+ month: P.indexOf(n) + 1,
99
99
  day: f(r),
100
100
  hour: f(o),
101
101
  minute: f(i)
102
102
  };
103
- return d && (s.second = f(d)), e && (s.weekday = e.length > 3 ? z.indexOf(e) + 1 : P.indexOf(e) + 1), s;
103
+ return d && (s.second = f(d)), e && (s.weekday = e.length > 3 ? v.indexOf(e) + 1 : z.indexOf(e) + 1), s;
104
104
  }
105
105
  const ne = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;
106
106
  function re(e) {
@@ -13,35 +13,35 @@ const X = _.forwardRef(
13
13
  columns: t,
14
14
  data: s,
15
15
  pagination: i,
16
- initialCurrentPage: j = 1,
16
+ initialCurrentPage: f = 1,
17
17
  resultsPerPage: m = 10,
18
- defaultSortDirection: l = "desc",
18
+ defaultSortDirection: n = "desc",
19
19
  ...p
20
20
  }, g) => {
21
- const [d, h] = _.useState({
21
+ const [d, u] = _.useState({
22
22
  key: t[0].key || t[0].label,
23
- direction: l
24
- }), [k, $] = _.useState(j), N = _.useMemo(() => [...s].sort((o, x) => {
25
- const r = o[d.key], n = x[d.key], b = t.find(
26
- (f) => (f.key || f.label) === d.key
23
+ direction: n
24
+ }), [k, $] = _.useState(f), N = _.useMemo(() => [...s].sort((o, x) => {
25
+ const r = o[d.key], l = x[d.key], b = t.find(
26
+ (j) => (j.key || j.label) === d.key
27
27
  );
28
- if (typeof r == "string" && typeof n == "string") {
28
+ if (typeof r == "string" && typeof l == "string") {
29
29
  if ((b == null ? void 0 : b.type) === "date") {
30
- const f = (M) => {
30
+ const j = (M) => {
31
31
  const [F, H] = M.split(" - "), [V, z, E] = F.split("/").map(Number), [O, U] = H.split(":").map(Number);
32
32
  return new Date(E, z - 1, V, O, U);
33
- }, u = f(r), C = f(n);
34
- return d.direction === "asc" ? u.getTime() - C.getTime() : C.getTime() - u.getTime();
33
+ }, h = j(r), v = j(l);
34
+ return d.direction === "asc" ? h.getTime() - v.getTime() : v.getTime() - h.getTime();
35
35
  }
36
36
  if ((b == null ? void 0 : b.type) === "number") {
37
- const f = parseFloat(r), u = parseFloat(n);
38
- return d.direction === "asc" ? f - u : u - f;
37
+ const j = parseFloat(r), h = parseFloat(l);
38
+ return d.direction === "asc" ? j - h : h - j;
39
39
  }
40
- return d.direction === "asc" ? r.localeCompare(n) : n.localeCompare(r);
40
+ return d.direction === "asc" ? r.localeCompare(l) : l.localeCompare(r);
41
41
  }
42
- return y(r) && y(n) ? d.direction === "asc" ? r.firstLine.localeCompare(n.firstLine) : n.firstLine.localeCompare(r.firstLine) : 0;
42
+ return y(r) && y(l) ? d.direction === "asc" ? r.firstLine.localeCompare(l.firstLine) : l.firstLine.localeCompare(r.firstLine) : 0;
43
43
  }), [s, d, t]), S = (o) => {
44
- h((x) => ({
44
+ u((x) => ({
45
45
  key: o,
46
46
  direction: x.key === o && x.direction === "asc" ? "desc" : "asc"
47
47
  }));
@@ -55,7 +55,7 @@ const X = _.forwardRef(
55
55
  role: "table",
56
56
  ...p,
57
57
  children: [
58
- /* @__PURE__ */ a.jsx(v, { className: "table__header", children: /* @__PURE__ */ a.jsx(w, { children: t.map((o, x) => /* @__PURE__ */ a.jsx(
58
+ /* @__PURE__ */ a.jsx(C, { className: "table__header", children: /* @__PURE__ */ a.jsx(w, { children: t.map((o, x) => /* @__PURE__ */ a.jsx(
59
59
  R,
60
60
  {
61
61
  config: o,
@@ -64,21 +64,21 @@ const X = _.forwardRef(
64
64
  },
65
65
  `${o.label}-${x}`
66
66
  )) }) }),
67
- /* @__PURE__ */ a.jsx(D, { className: "table__body", children: I.map((o, x) => /* @__PURE__ */ a.jsx(w, { className: "table__row", children: Object.entries(o).map(([r, n], b) => n ? r === "actionData" && A(n) ? /* @__PURE__ */ a.jsx(
67
+ /* @__PURE__ */ a.jsx(D, { className: "table__body", children: I.map((o, x) => /* @__PURE__ */ a.jsx(w, { className: "table__row", children: Object.entries(o).map(([r, l], b) => l ? r === "actionData" && A(l) ? /* @__PURE__ */ a.jsx(
68
68
  T,
69
69
  {
70
- content: n,
70
+ content: l,
71
71
  type: "action"
72
72
  },
73
73
  `${r}-${b}`
74
- ) : y(n) ? /* @__PURE__ */ a.jsx(
74
+ ) : y(l) ? /* @__PURE__ */ a.jsx(
75
75
  T,
76
76
  {
77
- content: n,
77
+ content: l,
78
78
  type: "double-line"
79
79
  },
80
80
  `${r}-${b}`
81
- ) : typeof n == "string" ? /* @__PURE__ */ a.jsx(T, { content: n }, `${r}-${b}`) : null : null) }, x)) })
81
+ ) : typeof l == "string" ? /* @__PURE__ */ a.jsx(T, { content: l }, `${r}-${b}`) : null : null) }, x)) })
82
82
  ]
83
83
  }
84
84
  ),
@@ -95,7 +95,7 @@ const X = _.forwardRef(
95
95
  }
96
96
  );
97
97
  X.displayName = "Table";
98
- const v = _.forwardRef(
98
+ const C = _.forwardRef(
99
99
  ({ className: e, children: t, ...s }, i) => /* @__PURE__ */ a.jsx(
100
100
  "thead",
101
101
  {
@@ -106,7 +106,7 @@ const v = _.forwardRef(
106
106
  }
107
107
  )
108
108
  );
109
- v.displayName = "TableHeader";
109
+ C.displayName = "TableHeader";
110
110
  const D = _.forwardRef(
111
111
  ({ className: e, children: t, ...s }, i) => /* @__PURE__ */ a.jsx(
112
112
  "tbody",
@@ -134,15 +134,15 @@ const w = _.forwardRef(
134
134
  )
135
135
  );
136
136
  w.displayName = "TableRow";
137
- const R = _.forwardRef(({ className: e, config: t, sortConfig: s, onSort: i, ...j }, m) => {
138
- const l = s.key === (t.key || t.label), p = l ? s.direction : null, g = () => p === "asc" ? "ascending" : "descending", d = (h) => {
139
- switch (h) {
137
+ const R = _.forwardRef(({ className: e, config: t, sortConfig: s, onSort: i, ...f }, m) => {
138
+ const n = s.key === (t.key || t.label), p = n ? s.direction : null, g = () => p === "asc" ? "ascending" : "descending", d = (u) => {
139
+ switch (u) {
140
140
  case "info":
141
141
  return /* @__PURE__ */ a.jsx(Q, {});
142
142
  case "download":
143
143
  return /* @__PURE__ */ a.jsx(W, {});
144
144
  default:
145
- return h;
145
+ return u;
146
146
  }
147
147
  };
148
148
  return /* @__PURE__ */ a.jsx(
@@ -159,8 +159,8 @@ const R = _.forwardRef(({ className: e, config: t, sortConfig: s, onSort: i, ...
159
159
  ),
160
160
  onClick: t.sortable ? i : t.action,
161
161
  "aria-label": t.ariaLabel,
162
- "aria-sort": l ? g() : void 0,
163
- ...j,
162
+ "aria-sort": n ? g() : void 0,
163
+ ...f,
164
164
  children: /* @__PURE__ */ a.jsxs("div", { className: "table__cell--header--content", children: [
165
165
  /* @__PURE__ */ a.jsx("div", { children: /* @__PURE__ */ a.jsx(
166
166
  q,
@@ -178,18 +178,18 @@ const R = _.forwardRef(({ className: e, config: t, sortConfig: s, onSort: i, ...
178
178
  /* @__PURE__ */ a.jsx(
179
179
  G,
180
180
  {
181
- filled: l && p === "desc",
181
+ filled: n && p === "desc",
182
182
  className: c("sort-indicator__triangle", {
183
- active: l && p === "desc"
183
+ active: n && p === "desc"
184
184
  })
185
185
  }
186
186
  ),
187
187
  /* @__PURE__ */ a.jsx(
188
188
  J,
189
189
  {
190
- filled: l && p === "asc",
190
+ filled: n && p === "asc",
191
191
  className: c("sort-indicator__triangle", {
192
- active: l && p === "asc"
192
+ active: n && p === "asc"
193
193
  })
194
194
  }
195
195
  )
@@ -205,10 +205,10 @@ const Y = ({ data: e }) => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
205
205
  ] }), Z = ({ data: e }) => e.type === "link" && e.link ? /* @__PURE__ */ a.jsx("a", { href: e.link, "aria-label": e.ariaLabel, children: e.label }) : /* @__PURE__ */ a.jsx("button", { onClick: e.action, "aria-label": e.ariaLabel, children: e.label }), y = (e) => typeof e == "object" && e !== null && "firstLine" in e && "secondLine" in e, A = (e) => typeof e == "object" && e !== null && "label" in e && "type" in e, K = ({
206
206
  content: e
207
207
  }) => typeof e == "string" ? /* @__PURE__ */ a.jsx(a.Fragment, { children: e }) : y(e) ? /* @__PURE__ */ a.jsx(Y, { data: e }) : A(e) ? /* @__PURE__ */ a.jsx(Z, { data: e }) : null, T = _.forwardRef(
208
- ({ className: e, content: t, type: s, ...i }, j) => /* @__PURE__ */ a.jsx(
208
+ ({ className: e, content: t, type: s, ...i }, f) => /* @__PURE__ */ a.jsx(
209
209
  "td",
210
210
  {
211
- ref: j,
211
+ ref: f,
212
212
  className: c(
213
213
  "table__cell",
214
214
  {
@@ -228,10 +228,10 @@ const P = ({
228
228
  totalResults: t,
229
229
  resultsPerPage: s,
230
230
  setCurrentPage: i,
231
- className: j
231
+ className: f
232
232
  }) => {
233
233
  const m = Math.ceil(t / s);
234
- return /* @__PURE__ */ a.jsxs("div", { className: c("pagination", j), children: [
234
+ return /* @__PURE__ */ a.jsxs("div", { className: c("pagination", f), children: [
235
235
  /* @__PURE__ */ a.jsxs("div", { className: "pagination__info", children: [
236
236
  "Stai visualizzando",
237
237
  " ",
@@ -255,17 +255,17 @@ const P = ({
255
255
  children: /* @__PURE__ */ a.jsx("svg", { className: "pagination__button-arrow", viewBox: "0 0 24 24", children: /* @__PURE__ */ a.jsx("path", { d: "M15 18l-6-6 6-6" }) })
256
256
  }
257
257
  ),
258
- Array.from({ length: m }, (l, p) => p + 1).map((l) => /* @__PURE__ */ a.jsx(
258
+ Array.from({ length: m }, (n, p) => p + 1).map((n) => /* @__PURE__ */ a.jsx(
259
259
  "button",
260
260
  {
261
261
  className: c(
262
262
  "pagination__button",
263
- e === l && "pagination__button--active"
263
+ e === n && "pagination__button--active"
264
264
  ),
265
- onClick: () => i(l),
266
- children: l
265
+ onClick: () => i(n),
266
+ children: n
267
267
  },
268
- l
268
+ n
269
269
  )),
270
270
  /* @__PURE__ */ a.jsx(
271
271
  "button",
@@ -289,7 +289,7 @@ export {
289
289
  D as TableBody,
290
290
  T as TableCell,
291
291
  R as TableHead,
292
- v as TableHeader,
292
+ C as TableHeader,
293
293
  w as TableRow
294
294
  };
295
295
  //# sourceMappingURL=index.es65.js.map
@@ -1,33 +1,33 @@
1
1
  import { j as i } from "./index.es181.js";
2
- import o from "./index.es162.js";
2
+ import n from "./index.es162.js";
3
3
  import "./index.es3.js";
4
4
  import './components/ui/DatePicker/DatePicker.css';/* empty css */
5
- import { clsx as h } from "./index.es182.js";
6
- import { useRef as v, useEffect as j } from "react";
5
+ import { clsx as D } from "./index.es182.js";
6
+ import { useRef as h, useEffect as j } from "react";
7
7
  const F = ({
8
- label: d,
8
+ label: s,
9
9
  value: m,
10
10
  maxValue: c,
11
11
  minValue: l,
12
- className: p,
13
- disabled: s,
12
+ className: f,
13
+ disabled: d,
14
14
  onClick: a,
15
15
  onChange: y,
16
16
  error: r,
17
- required: u = !1,
17
+ required: p = !1,
18
18
  id: b
19
19
  }) => {
20
- const t = v(null), e = b || `datepicker-${d.toLowerCase().replace(/\s+/g, "-")}`;
20
+ const t = h(null), e = b || `datepicker-${s.toLowerCase().replace(/\s+/g, "-")}`;
21
21
  j(() => {
22
22
  r && t.current ? (t.current.setAttribute("aria-invalid", "true"), t.current.setAttribute("aria-describedby", `${e}-error`)) : t.current && (t.current.setAttribute("aria-invalid", "false"), t.current.removeAttribute("aria-describedby"));
23
23
  }, [r, e]);
24
- const x = (n) => {
25
- n.key === "Enter" && !s && (a == null || a());
26
- }, D = m ? o.fromJSDate(m).toFormat("yyyy-MM-dd") : "";
24
+ const v = (o) => {
25
+ o.key === "Enter" && !d && (a == null || a());
26
+ }, x = m ? n.fromJSDate(m).toFormat("yyyy-MM-dd") : "";
27
27
  return /* @__PURE__ */ i.jsxs(
28
28
  "div",
29
29
  {
30
- className: h("datepicker-container", p),
30
+ className: D("datepicker-container", f),
31
31
  role: "group",
32
32
  "aria-labelledby": `${e}-label`,
33
33
  "aria-describedby": r ? `${e}-error` : void 0,
@@ -39,8 +39,8 @@ const F = ({
39
39
  htmlFor: e,
40
40
  className: "datepicker-label fs-7",
41
41
  children: [
42
- d,
43
- u && /* @__PURE__ */ i.jsx("span", { className: "text-error ml-1", "aria-hidden": "true", children: "*" })
42
+ s,
43
+ p && /* @__PURE__ */ i.jsx("span", { className: "text-error ml-1", "aria-hidden": "true", children: "*" })
44
44
  ]
45
45
  }
46
46
  ),
@@ -51,19 +51,19 @@ const F = ({
51
51
  id: e,
52
52
  type: "date",
53
53
  className: "datepicker-input fs-6",
54
- disabled: s,
55
- value: D,
56
- max: c ? o.fromJSDate(c).toFormat("yyyy-MM-dd") : void 0,
57
- min: l ? o.fromJSDate(l).toFormat("yyyy-MM-dd") : void 0,
54
+ disabled: d,
55
+ value: x,
56
+ max: c ? n.fromJSDate(c).toFormat("yyyy-MM-dd") : void 0,
57
+ min: l ? n.fromJSDate(l).toFormat("yyyy-MM-dd") : void 0,
58
58
  onClick: () => a == null ? void 0 : a(),
59
- onChange: (n) => {
60
- const f = new Date(n.target.value);
61
- isNaN(f.getTime()) || y(f);
59
+ onChange: (o) => {
60
+ const u = new Date(o.target.value);
61
+ isNaN(u.getTime()) || y(u);
62
62
  },
63
- onKeyDown: x,
64
- "aria-required": u,
65
- "aria-disabled": s,
66
- "aria-label": d,
63
+ onKeyDown: v,
64
+ "aria-required": p,
65
+ "aria-disabled": d,
66
+ "aria-label": s,
67
67
  "aria-invalid": !!r,
68
68
  "aria-describedby": r ? `${e}-error` : void 0
69
69
  }
@@ -1,22 +1,22 @@
1
1
  import { j as i } from "./index.es181.js";
2
- import { clsx as v } from "./index.es182.js";
2
+ import { clsx as h } from "./index.es182.js";
3
3
  import { useRef as k, useEffect as N } from "react";
4
- import { DatePicker as f } from "./index.es68.js";
4
+ import { DatePicker as x } from "./index.es68.js";
5
5
  import { Row as $ } from "./index.es9.js";
6
6
  const E = ({
7
7
  label: l,
8
- startDateLabel: x = "Start Date",
9
- endDateLabel: d = "End Date",
8
+ startDateLabel: f = "Start Date",
9
+ endDateLabel: p = "End Date",
10
10
  startDate: t,
11
11
  endDate: c,
12
- className: p,
12
+ className: d,
13
13
  disabled: u = !1,
14
- required: n = !1,
14
+ required: o = !1,
15
15
  error: a,
16
- onStartDateChange: o,
16
+ onStartDateChange: n,
17
17
  onEndDateChange: m,
18
18
  onStartDateClick: b,
19
- onEndDateClick: j
19
+ onEndDateClick: v
20
20
  }) => {
21
21
  const r = k(null), s = l ? `datepicker-range-${l.toLowerCase().replace(/\s+/g, "-")}` : "datepicker-range";
22
22
  N(() => {
@@ -25,48 +25,48 @@ const E = ({
25
25
  `${s}-error`
26
26
  )) : r.current && (r.current.setAttribute("aria-invalid", "false"), r.current.removeAttribute("aria-describedby"));
27
27
  }, [a, s]);
28
- const g = (e) => {
29
- c && e > c ? (o(e), m(e)) : o(e);
30
- }, h = (e) => {
31
- t && e < t && o(e), m(e);
28
+ const j = (e) => {
29
+ c && e > c ? (n(e), m(e)) : n(e);
30
+ }, g = (e) => {
31
+ t && e < t && n(e), m(e);
32
32
  };
33
33
  return /* @__PURE__ */ i.jsxs(
34
34
  "div",
35
35
  {
36
36
  ref: r,
37
- className: v("base-col gap-x8", p),
37
+ className: h("base-col gap-x8", d),
38
38
  role: "group",
39
39
  "aria-labelledby": l ? `${s}-label` : void 0,
40
40
  "aria-describedby": a ? `${s}-error` : void 0,
41
41
  children: [
42
42
  l && /* @__PURE__ */ i.jsxs("label", { id: `${s}-label`, className: "text-sm text-dark", children: [
43
43
  l,
44
- n && /* @__PURE__ */ i.jsx("span", { className: "text-error ml-1", "aria-hidden": "true", children: "*" })
44
+ o && /* @__PURE__ */ i.jsx("span", { className: "text-error ml-1", "aria-hidden": "true", children: "*" })
45
45
  ] }),
46
46
  /* @__PURE__ */ i.jsxs($, { gap: "x16", role: "group", children: [
47
47
  /* @__PURE__ */ i.jsx(
48
- f,
48
+ x,
49
49
  {
50
- label: x,
50
+ label: f,
51
51
  value: t,
52
52
  maxValue: c,
53
53
  disabled: u,
54
- required: n,
55
- onChange: g,
54
+ required: o,
55
+ onChange: j,
56
56
  onClick: b,
57
57
  className: "flex-1"
58
58
  }
59
59
  ),
60
60
  /* @__PURE__ */ i.jsx(
61
- f,
61
+ x,
62
62
  {
63
- label: d,
63
+ label: p,
64
64
  value: c,
65
65
  minValue: t,
66
66
  disabled: u,
67
- required: n,
68
- onChange: h,
69
- onClick: j,
67
+ required: o,
68
+ onChange: g,
69
+ onClick: v,
70
70
  className: "flex-1"
71
71
  }
72
72
  )
@@ -5,19 +5,19 @@ import { Root as u, Indicator as g } from "./index.es220.js";
5
5
  import { Row as t } from "./index.es9.js";
6
6
  import { Col as r } from "./index.es10.js";
7
7
  const y = ({
8
- id: n,
9
- isSelected: a,
8
+ id: a,
9
+ isSelected: i,
10
10
  title: d,
11
11
  subtitle: x,
12
- region: i,
12
+ region: n,
13
13
  relation: l,
14
14
  isMe: s = !1,
15
15
  showRegion: o = !1,
16
16
  setSelectedCard: h = () => {
17
17
  },
18
- className: f
18
+ className: p
19
19
  }) => {
20
- const p = w(null), m = (c) => c.charAt(0).toUpperCase() + c.slice(1), j = () => /* @__PURE__ */ e.jsx(
20
+ const f = w(null), m = (c) => c.charAt(0).toUpperCase() + c.slice(1), j = () => /* @__PURE__ */ e.jsx(
21
21
  "svg",
22
22
  {
23
23
  width: "14",
@@ -46,18 +46,18 @@ const y = ({
46
46
  gap: "x16",
47
47
  bg: "white",
48
48
  text: "slate-20",
49
- ref: p,
50
- className: `${f} ${a ? "ui-is-active" : ""} ui-card-delegate shadow cursor-pointer`,
49
+ ref: f,
50
+ className: `${p} ${i ? "ui-is-active" : ""} ui-card-delegate shadow cursor-pointer`,
51
51
  onClick: () => {
52
- h(n);
52
+ h(a);
53
53
  },
54
54
  style: { width: "100%" },
55
55
  children: [
56
56
  /* @__PURE__ */ e.jsx(
57
57
  u,
58
58
  {
59
- id: n,
60
- checked: a,
59
+ id: a,
60
+ checked: i,
61
61
  className: "ui-checkbox-filter",
62
62
  children: /* @__PURE__ */ e.jsx(g, { children: /* @__PURE__ */ e.jsx(j, {}) })
63
63
  }
@@ -86,9 +86,9 @@ const y = ({
86
86
  /* @__PURE__ */ e.jsx("div", { className: "fw-bold", children: "Relazione con il delegante" }),
87
87
  /* @__PURE__ */ e.jsx("p", { className: "fw-normal", children: l })
88
88
  ] }),
89
- o && i && /* @__PURE__ */ e.jsxs(r, { pr: "x104", gap: "x4", children: [
89
+ o && n && /* @__PURE__ */ e.jsxs(r, { pr: "x104", gap: "x4", children: [
90
90
  /* @__PURE__ */ e.jsx("div", { className: "fw-bold", children: "Regione di assistenza" }),
91
- /* @__PURE__ */ e.jsx("p", { className: "fw-normal", children: m(i) })
91
+ /* @__PURE__ */ e.jsx("p", { className: "fw-normal", children: m(n) })
92
92
  ] })
93
93
  ] })
94
94
  ] }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anoki/fse-ui",
3
- "version": "1.0.528",
3
+ "version": "1.0.529",
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 y=require("react"),P=require("./index.cjs326.js"),g=require("./index.cjs349.js");function E(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const a=E(y);function R(n,e){return a.useReducer((t,r)=>e[t][r]??t,n)}var O=n=>{const{present:e,children:t}=n,r=v(e),i=typeof t=="function"?t({present:r.isPresent}):a.Children.only(t),u=P.useComposedRefs(r.ref,S(i));return typeof t=="function"||r.isPresent?a.cloneElement(i,{ref:u}):null};O.displayName="Presence";function v(n){const[e,t]=a.useState(),r=a.useRef({}),i=a.useRef(n),u=a.useRef("none"),p=n?"mounted":"unmounted",[N,c]=R(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const o=l(r.current);u.current=N==="mounted"?o:"none"},[N]),g.useLayoutEffect(()=>{const o=r.current,d=i.current;if(d!==n){const f=u.current,s=l(o);n?c("MOUNT"):s==="none"||(o==null?void 0:o.display)==="none"?c("UNMOUNT"):c(d&&f!==s?"ANIMATION_OUT":"UNMOUNT"),i.current=n}},[n,c]),g.useLayoutEffect(()=>{if(e){let o;const d=e.ownerDocument.defaultView??window,m=s=>{const M=l(r.current).includes(s.animationName);if(s.target===e&&M&&(c("ANIMATION_END"),!i.current)){const T=e.style.animationFillMode;e.style.animationFillMode="forwards",o=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=T)})}},f=s=>{s.target===e&&(u.current=l(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",m),e.addEventListener("animationend",m),()=>{d.clearTimeout(o),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",m),e.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(N),ref:a.useCallback(o=>{o&&(r.current=getComputedStyle(o)),t(o)},[])}}function l(n){return(n==null?void 0:n.animationName)||"none"}function S(n){var r,i;let e=(r=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:r.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=(i=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:i.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}exports.Presence=O;
2
- //# sourceMappingURL=index.cjs332.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs332.js","sources":["../node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/presence/src/presence.tsx\nimport * as React2 from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// packages/react/presence/src/use-state-machine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// packages/react/presence/src/presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef({});\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n let timeoutId;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(event.animationName);\n if (event.target === node && isCurrentAnimation) {\n send(\"ANIMATION_END\");\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = \"forwards\";\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === \"forwards\") {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n if (node2) stylesRef.current = getComputedStyle(node2);\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Presence;\nexport {\n Presence,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useStateMachine","initialState","machine","React","state","event","Presence","props","present","children","presence","usePresence","child","React2","ref","useComposedRefs","getElementRef","node","setNode","stylesRef","prevPresentRef","prevAnimationNameRef","send","currentAnimationName","getAnimationName","useLayoutEffect","styles","wasPresent","prevAnimationName","timeoutId","ownerWindow","handleAnimationEnd","isCurrentAnimation","currentFillMode","handleAnimationStart","node2","element","getter","_a","mayWarn","_b"],"mappings":"icASA,SAASA,EAAgBC,EAAcC,EAAS,CAC9C,OAAOC,EAAM,WAAW,CAACC,EAAOC,IACZH,EAAQE,CAAK,EAAEC,CAAK,GAClBD,EACnBH,CAAY,CACjB,CAGG,IAACK,EAAYC,GAAU,CACxB,KAAM,CAAE,QAAAC,EAAS,SAAAC,CAAQ,EAAKF,EACxBG,EAAWC,EAAYH,CAAO,EAC9BI,EAAQ,OAAOH,GAAa,WAAaA,EAAS,CAAE,QAASC,EAAS,SAAW,CAAA,EAAIG,EAAO,SAAS,KAAKJ,C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EAAS,KAAK,IAA9C,YAAAI,EAAiD,IAC1DD,EAAUF,GAAU,mBAAoBA,GAAUA,EAAO,eACrDE,EACKH,EAAQ,MAAM,IAEhBA,EAAQ,MAAM,KAAOA,EAAQ,IACtC","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Pe=require("react"),l=require("./index.cjs367.js"),ye=require("./index.cjs368.js"),Z=require("./index.cjs326.js"),Ae=require("./index.cjs327.js"),G=require("./index.cjs333.js"),ve=require("./index.cjs348.js"),L=require("./index.cjs349.js"),Ce=require("./index.cjs331.js"),u=require("./index.cjs181.js"),be=require("./index.cjs369.js");function Re(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const s=Re(Pe);var _="Popper",[J,Oe]=Ae.createContextScope(_),[Se,K]=J(_),$=e=>{const{__scopePopper:o,children:t}=e,[r,a]=s.useState(null);return u.jsxRuntimeExports.jsx(Se,{scope:o,anchor:r,onAnchorChange:a,children:t})};$.displayName=_;var Q="PopperAnchor",N=s.forwardRef((e,o)=>{const{__scopePopper:t,virtualRef:r,...a}=e,n=K(Q,t),i=s.useRef(null),w=Z.useComposedRefs(o,i);return s.useEffect(()=>{n.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:u.jsxRuntimeExports.jsx(G.Primitive.div,{...a,ref:w})});N.displayName=Q;var q="PopperContent",[je,Ee]=J(q),H=s.forwardRef((e,o)=>{var T,X,k,F,z,B;const{__scopePopper:t,side:r="bottom",sideOffset:a=0,align:n="center",alignOffset:i=0,arrowPadding:w=0,avoidCollisions:c=!0,collisionBoundary:p=[],collisionPadding:P=0,sticky:x="partial",hideWhenDetached:A=!1,updatePositionStrategy:v="optimized",onPlaced:f,...d}=e,C=K(q,t),[m,b]=s.useState(null),te=Z.useComposedRefs(o,y=>b(y)),[E,re]=s.useState(null),h=Ce.useSize(E),oe=(h==null?void 0:h.width)??0,M=(h==null?void 0:h.height)??0,ne=r+(n!=="center"?"-"+n:""),ie=typeof P=="number"?P:{top:0,right:0,bottom:0,left:0,...P},W=Array.isArray(p)?p:[p],ae=W.length>0,R={padding:ie,boundary:W.filter($e),altBoundary:ae},{refs:se,floatingStyles:I,placement:ce,isPositioned:O,middlewareData:g}=l.useFloating({strategy:"fixed",placement:ne,whileElementsMounted:(...y)=>be.autoUpdate(...y,{animationFrame:v==="always"}),elements:{reference:C.anchor},middleware:[l.offset({mainAxis:a+M,alignmentAxis:i}),c&&l.shift({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?l.limitShift():void 0,...R}),c&&l.flip({...R}),l.size({...R,apply:({elements:y,rects:U,availableWidth:me,availableHeight:he})=>{const{width:ge,height:we}=U.reference,j=y.floating.style;j.setProperty("--radix-popper-available-width",`${me}px`),j.setProperty("--radix-popper-available-height",`${he}px`),j.setProperty("--radix-popper-anchor-width",`${ge}px`),j.setProperty("--radix-popper-anchor-height",`${we}px`)}}),E&&l.arrow({element:E,padding:w}),Ne({arrowWidth:oe,arrowHeight:M}),A&&l.hide({strategy:"referenceHidden",...R})]}),[Y,pe]=ee(ce),S=ve.useCallbackRef(f);L.useLayoutEffect(()=>{O&&(S==null||S())},[O,S]);const de=(T=g.arrow)==null?void 0:T.x,le=(X=g.arrow)==null?void 0:X.y,fe=((k=g.arrow)==null?void 0:k.centerOffset)!==0,[ue,xe]=s.useState();return L.useLayoutEffect(()=>{m&&xe(window.getComputedStyle(m).zIndex)},[m]),u.jsxRuntimeExports.jsx("div",{ref:se.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:O?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[(F=g.transformOrigin)==null?void 0:F.x,(z=g.transformOrigin)==null?void 0:z.y].join(" "),...((B=g.hide)==null?void 0:B.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsxRuntimeExports.jsx(je,{scope:t,placedSide:Y,onArrowChange:re,arrowX:de,arrowY:le,shouldHideArrow:fe,children:u.jsxRuntimeExports.jsx(G.Primitive.div,{"data-side":Y,"data-align":pe,...d,ref:te,style:{...d.style,animation:O?void 0:"none"}})})})});H.displayName=q;var V="PopperArrow",_e={top:"bottom",right:"left",bottom:"top",left:"right"},D=s.forwardRef(function(o,t){const{__scopePopper:r,...a}=o,n=Ee(V,r),i=_e[n.placedSide];return u.jsxRuntimeExports.jsx("span",{ref:n.onArrowChange,style:{position:"absolute",left:n.arrowX,top:n.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[n.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[n.placedSide],visibility:n.shouldHideArrow?"hidden":void 0},children:u.jsxRuntimeExports.jsx(ye.Root,{...a,ref:t,style:{...a.style,display:"block"}})})});D.displayName=V;function $e(e){return e!==null}var Ne=e=>({name:"transformOrigin",options:e,fn(o){var C,m,b;const{placement:t,rects:r,middlewareData:a}=o,i=((C=a.arrow)==null?void 0:C.centerOffset)!==0,w=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[p,P]=ee(t),x={start:"0%",center:"50%",end:"100%"}[P],A=(((m=a.arrow)==null?void 0:m.x)??0)+w/2,v=(((b=a.arrow)==null?void 0:b.y)??0)+c/2;let f="",d="";return p==="bottom"?(f=i?x:`${A}px`,d=`${-c}px`):p==="top"?(f=i?x:`${A}px`,d=`${r.floating.height+c}px`):p==="right"?(f=`${-c}px`,d=i?x:`${v}px`):p==="left"&&(f=`${r.floating.width+c}px`,d=i?x:`${v}px`),{data:{x:f,y:d}}}});function ee(e){const[o,t="center"]=e.split("-");return[o,t]}var qe=$,He=N,De=H,Me=D;exports.Anchor=He;exports.Arrow=Me;exports.Content=De;exports.Popper=$;exports.PopperAnchor=N;exports.PopperArrow=D;exports.PopperContent=H;exports.Root=qe;exports.createPopperScope=Oe;
2
- //# sourceMappingURL=index.cjs354.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs354.js","sources":["../node_modules/@radix-ui/react-popper/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/popper/src/popper.tsx\nimport * as React from \"react\";\nimport {\n useFloating,\n autoUpdate,\n offset,\n shift,\n limitShift,\n hide,\n arrow as floatingUIarrow,\n flip,\n size\n} from \"@floating-ui/react-dom\";\nimport * as ArrowPrimitive from \"@radix-ui/react-arrow\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { jsx } from \"react/jsx-runtime\";\nvar SIDE_OPTIONS = [\"top\", \"right\", \"bottom\", \"left\"];\nvar ALIGN_OPTIONS = [\"start\", \"center\", \"end\"];\nvar POPPER_NAME = \"Popper\";\nvar [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);\nvar [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);\nvar Popper = (props) => {\n const { __scopePopper, children } = props;\n const [anchor, setAnchor] = React.useState(null);\n return /* @__PURE__ */ jsx(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });\n};\nPopper.displayName = POPPER_NAME;\nvar ANCHOR_NAME = \"PopperAnchor\";\nvar PopperAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopper, virtualRef, ...anchorProps } = props;\n const context = usePopperContext(ANCHOR_NAME, __scopePopper);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n context.onAnchorChange(virtualRef?.current || ref.current);\n });\n return virtualRef ? null : /* @__PURE__ */ jsx(Primitive.div, { ...anchorProps, ref: composedRefs });\n }\n);\nPopperAnchor.displayName = ANCHOR_NAME;\nvar CONTENT_NAME = \"PopperContent\";\nvar [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);\nvar PopperContent = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopePopper,\n side = \"bottom\",\n sideOffset = 0,\n align = \"center\",\n alignOffset = 0,\n arrowPadding = 0,\n avoidCollisions = true,\n collisionBoundary = [],\n collisionPadding: collisionPaddingProp = 0,\n sticky = \"partial\",\n hideWhenDetached = false,\n updatePositionStrategy = \"optimized\",\n onPlaced,\n ...contentProps\n } = props;\n const context = usePopperContext(CONTENT_NAME, __scopePopper);\n const [content, setContent] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));\n const [arrow, setArrow] = React.useState(null);\n const arrowSize = useSize(arrow);\n const arrowWidth = arrowSize?.width ?? 0;\n const arrowHeight = arrowSize?.height ?? 0;\n const desiredPlacement = side + (align !== \"center\" ? \"-\" + align : \"\");\n const collisionPadding = typeof collisionPaddingProp === \"number\" ? collisionPaddingProp : { top: 0, right: 0, bottom: 0, left: 0, ...collisionPaddingProp };\n const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [collisionBoundary];\n const hasExplicitBoundaries = boundary.length > 0;\n const detectOverflowOptions = {\n padding: collisionPadding,\n boundary: boundary.filter(isNotNull),\n // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries\n altBoundary: hasExplicitBoundaries\n };\n const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({\n // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues\n strategy: \"fixed\",\n placement: desiredPlacement,\n whileElementsMounted: (...args) => {\n const cleanup = autoUpdate(...args, {\n animationFrame: updatePositionStrategy === \"always\"\n });\n return cleanup;\n },\n elements: {\n reference: context.anchor\n },\n middleware: [\n offset({ mainAxis: sideOffset + arrowHeight, alignmentAxis: alignOffset }),\n avoidCollisions && shift({\n mainAxis: true,\n crossAxis: false,\n limiter: sticky === \"partial\" ? limitShift() : void 0,\n ...detectOverflowOptions\n }),\n avoidCollisions && flip({ ...detectOverflowOptions }),\n size({\n ...detectOverflowOptions,\n apply: ({ elements, rects, availableWidth, availableHeight }) => {\n const { width: anchorWidth, height: anchorHeight } = rects.reference;\n const contentStyle = elements.floating.style;\n contentStyle.setProperty(\"--radix-popper-available-width\", `${availableWidth}px`);\n contentStyle.setProperty(\"--radix-popper-available-height\", `${availableHeight}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-width\", `${anchorWidth}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-height\", `${anchorHeight}px`);\n }\n }),\n arrow && floatingUIarrow({ element: arrow, padding: arrowPadding }),\n transformOrigin({ arrowWidth, arrowHeight }),\n hideWhenDetached && hide({ strategy: \"referenceHidden\", ...detectOverflowOptions })\n ]\n });\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const handlePlaced = useCallbackRef(onPlaced);\n useLayoutEffect(() => {\n if (isPositioned) {\n handlePlaced?.();\n }\n }, [isPositioned, handlePlaced]);\n const arrowX = middlewareData.arrow?.x;\n const arrowY = middlewareData.arrow?.y;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const [contentZIndex, setContentZIndex] = React.useState();\n useLayoutEffect(() => {\n if (content) setContentZIndex(window.getComputedStyle(content).zIndex);\n }, [content]);\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n ref: refs.setFloating,\n \"data-radix-popper-content-wrapper\": \"\",\n style: {\n ...floatingStyles,\n transform: isPositioned ? floatingStyles.transform : \"translate(0, -200%)\",\n // keep off the page when measuring\n minWidth: \"max-content\",\n zIndex: contentZIndex,\n [\"--radix-popper-transform-origin\"]: [\n middlewareData.transformOrigin?.x,\n middlewareData.transformOrigin?.y\n ].join(\" \"),\n // hide the content if using the hide middleware and should be hidden\n // set visibility to hidden and disable pointer events so the UI behaves\n // as if the PopperContent isn't there at all\n ...middlewareData.hide?.referenceHidden && {\n visibility: \"hidden\",\n pointerEvents: \"none\"\n }\n },\n dir: props.dir,\n children: /* @__PURE__ */ jsx(\n PopperContentProvider,\n {\n scope: __scopePopper,\n placedSide,\n onArrowChange: setArrow,\n arrowX,\n arrowY,\n shouldHideArrow: cannotCenterArrow,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-side\": placedSide,\n \"data-align\": placedAlign,\n ...contentProps,\n ref: composedRefs,\n style: {\n ...contentProps.style,\n // if the PopperContent hasn't been placed yet (not all measurements done)\n // we prevent animations so that users's animation don't kick in too early referring wrong sides\n animation: !isPositioned ? \"none\" : void 0\n }\n }\n )\n }\n )\n }\n );\n }\n);\nPopperContent.displayName = CONTENT_NAME;\nvar ARROW_NAME = \"PopperArrow\";\nvar OPPOSITE_SIDE = {\n top: \"bottom\",\n right: \"left\",\n bottom: \"top\",\n left: \"right\"\n};\nvar PopperArrow = React.forwardRef(function PopperArrow2(props, forwardedRef) {\n const { __scopePopper, ...arrowProps } = props;\n const contentContext = useContentContext(ARROW_NAME, __scopePopper);\n const baseSide = OPPOSITE_SIDE[contentContext.placedSide];\n return (\n // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)\n // doesn't report size as we'd expect on SVG elements.\n // it reports their bounding box which is effectively the largest path inside the SVG.\n /* @__PURE__ */ jsx(\n \"span\",\n {\n ref: contentContext.onArrowChange,\n style: {\n position: \"absolute\",\n left: contentContext.arrowX,\n top: contentContext.arrowY,\n [baseSide]: 0,\n transformOrigin: {\n top: \"\",\n right: \"0 0\",\n bottom: \"center 0\",\n left: \"100% 0\"\n }[contentContext.placedSide],\n transform: {\n top: \"translateY(100%)\",\n right: \"translateY(50%) rotate(90deg) translateX(-50%)\",\n bottom: `rotate(180deg)`,\n left: \"translateY(50%) rotate(-90deg) translateX(50%)\"\n }[contentContext.placedSide],\n visibility: contentContext.shouldHideArrow ? \"hidden\" : void 0\n },\n children: /* @__PURE__ */ jsx(\n ArrowPrimitive.Root,\n {\n ...arrowProps,\n ref: forwardedRef,\n style: {\n ...arrowProps.style,\n // ensures the element can be measured correctly (mostly for if SVG)\n display: \"block\"\n }\n }\n )\n }\n )\n );\n});\nPopperArrow.displayName = ARROW_NAME;\nfunction isNotNull(value) {\n return value !== null;\n}\nvar transformOrigin = (options) => ({\n name: \"transformOrigin\",\n options,\n fn(data) {\n const { placement, rects, middlewareData } = data;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const isArrowHidden = cannotCenterArrow;\n const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const noArrowAlign = { start: \"0%\", center: \"50%\", end: \"100%\" }[placedAlign];\n const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n let x = \"\";\n let y = \"\";\n if (placedSide === \"bottom\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${-arrowHeight}px`;\n } else if (placedSide === \"top\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${rects.floating.height + arrowHeight}px`;\n } else if (placedSide === \"right\") {\n x = `${-arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n } else if (placedSide === \"left\") {\n x = `${rects.floating.width + arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n }\n return { data: { x, y } };\n }\n});\nfunction getSideAndAlignFromPlacement(placement) {\n const [side, align = \"center\"] = placement.split(\"-\");\n return [side, align];\n}\nvar Root2 = Popper;\nvar Anchor = PopperAnchor;\nvar Content = PopperContent;\nvar Arrow = PopperArrow;\nexport {\n ALIGN_OPTIONS,\n Anchor,\n Arrow,\n Content,\n Popper,\n PopperAnchor,\n PopperArrow,\n PopperContent,\n Root2 as Root,\n SIDE_OPTIONS,\n createPopperScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["POPPER_NAME","createPopperContext","createPopperScope","createContextScope","PopperProvider","usePopperContext","Popper","props","__scopePopper","children","anchor","setAnchor","React","jsx","ANCHOR_NAME","PopperAnchor","forwardedRef","virtualRef","anchorProps","context","ref","composedRefs","useComposedRefs","Primitive","CONTENT_NAME","PopperContentProvider","useContentContext","PopperContent","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPaddingProp","sticky","hideWhenDetached","updatePositionStrategy","onPlaced","contentProps","content","setContent","node","arrow","setArrow","arrowSize","useSize","arrowWidth","arrowHeight","desiredPlacement","collisionPadding","boundary","hasExplicitBoundaries","detectOverflowOptions","isNotNull","refs","floatingStyles","placement","isPositioned","middlewareData","useFloating","args","autoUpdate","offset","shift","limitShift","flip","size","elements","rects","availableWidth","availableHeight","anchorWidth","anchorHeight","contentStyle","floatingUIarrow","transformOrigin","hide","placedSide","placedAlign","getSideAndAlignFromPlacement","handlePlaced","useCallbackRef","useLayoutEffect","arrowX","_a","arrowY","_b","cannotCenterArrow","_c","contentZIndex","setContentZIndex","_d","_e","_f","ARROW_NAME","OPPOSITE_SIDE","PopperArrow","arrowProps","contentContext","baseSide","ArrowPrimitive.Root","value","options","data","isArrowHidden","noArrowAlign","arrowXCenter","arrowYCenter","x","y","Root2","Anchor","Content","Arrow"],"mappings":"ksBAyBA,IAAIA,EAAc,SACd,CAACC,EAAqBC,EAAiB,EAAIC,GAAAA,mBAAmBH,CAAW,EACzE,CAACI,GAAgBC,CAAgB,EAAIJ,EAAoBD,CAAW,EACpEM,EAAUC,GAAU,CACtB,KAAM,CAAE,cAAAC,EAAe,SAAAC,CAAQ,EAAKF,EAC9B,CAACG,EAAQC,CAAS,EAAIC,EAAM,SAAS,IAAI,EAC/C,OAAuBC,EAAG,kBAAA,IAACT,GAAgB,CAAE,MAAOI,EAAe,OAAAE,E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"),m=require("./index.cjs328.js"),B=require("./index.cjs352.js"),Y=require("./index.cjs326.js"),z=require("./index.cjs327.js"),V=require("./index.cjs337.js"),D=require("./index.cjs333.js"),J=require("./index.cjs348.js"),Q=require("./index.cjs329.js"),W=require("./index.cjs353.js"),f=require("./index.cjs181.js");function X(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(o,n,t.get?t:{enumerable:!0,get:()=>e[n]})}}return o.default=e,Object.freeze(o)}const c=X(H);var _="rovingFocusGroup.onEntryFocus",Z={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[j,G,ee]=B.createCollection(g),[te,oe]=z.createContextScope(g,[ee]),[ne,re]=te(g),A=c.forwardRef((e,o)=>f.jsxRuntimeExports.jsx(j.Provider,{scope:e.__scopeRovingFocusGroup,children:f.jsxRuntimeExports.jsx(j.Slot,{scope:e.__scopeRovingFocusGroup,children:f.jsxRuntimeExports.jsx(se,{...e,ref:o})})}));A.displayName=g;var se=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:n,orientation:t,loop:R=!1,dir:I,currentTabStopId:x,defaultCurrentTabStopId:F,onCurrentTabStopIdChange:p,onEntryFocus:u,preventScrollOnEntryFocus:E=!1,...S}=e,v=c.useRef(null),b=Y.useComposedRefs(o,v),r=W.useDirection(I),[l=null,w]=Q.useControllableState({prop:x,defaultProp:F,onChange:p}),[i,a]=c.useState(!1),T=J.useCallbackRef(u),M=G(n),C=c.useRef(!1),[K,O]=c.useState(0);return c.useEffect(()=>{const s=v.current;if(s)return s.addEventListener(_,T),()=>s.removeEventListener(_,T)},[T]),f.jsxRuntimeExports.jsx(ne,{scope:n,orientation:t,dir:r,loop:R,currentTabStopId:l,onItemFocus:c.useCallback(s=>w(s),[w]),onItemShiftTab:c.useCallback(()=>a(!0),[]),onFocusableItemAdd:c.useCallback(()=>O(s=>s+1),[]),onFocusableItemRemove:c.useCallback(()=>O(s=>s-1),[]),children:f.jsxRuntimeExports.jsx(D.Primitive.div,{tabIndex:i||K===0?-1:0,"data-orientation":t,...S,ref:b,style:{outline:"none",...e.style},onMouseDown:m.composeEventHandlers(e.onMouseDown,()=>{C.current=!0}),onFocus:m.composeEventHandlers(e.onFocus,s=>{const k=!C.current;if(s.target===s.currentTarget&&k&&!i){const P=new CustomEvent(_,Z);if(s.currentTarget.dispatchEvent(P),!P.defaultPrevented){const y=M().filter(d=>d.focusable),L=y.find(d=>d.active),U=y.find(d=>d.id===l),$=[L,U,...y].filter(Boolean).map(d=>d.ref.current);q($,E)}}C.current=!1}),onBlur:m.composeEventHandlers(e.onBlur,()=>a(!1))})})}),N="RovingFocusGroupItem",h=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:n,focusable:t=!0,active:R=!1,tabStopId:I,...x}=e,F=V.useId(),p=I||F,u=re(N,n),E=u.currentTabStopId===p,S=G(n),{onFocusableItemAdd:v,onFocusableItemRemove:b}=u;return c.useEffect(()=>{if(t)return v(),()=>b()},[t,v,b]),f.jsxRuntimeExports.jsx(j.ItemSlot,{scope:n,id:p,focusable:t,active:R,children:f.jsxRuntimeExports.jsx(D.Primitive.span,{tabIndex:E?0:-1,"data-orientation":u.orientation,...x,ref:o,onMouseDown:m.composeEventHandlers(e.onMouseDown,r=>{t?u.onItemFocus(p):r.preventDefault()}),onFocus:m.composeEventHandlers(e.onFocus,()=>u.onItemFocus(p)),onKeyDown:m.composeEventHandlers(e.onKeyDown,r=>{if(r.key==="Tab"&&r.shiftKey){u.onItemShiftTab();return}if(r.target!==r.currentTarget)return;const l=ie(r,u.orientation,u.dir);if(l!==void 0){if(r.metaKey||r.ctrlKey||r.altKey||r.shiftKey)return;r.preventDefault();let i=S().filter(a=>a.focusable).map(a=>a.ref.current);if(l==="last")i.reverse();else if(l==="prev"||l==="next"){l==="prev"&&i.reverse();const a=i.indexOf(r.currentTarget);i=u.loop?ae(i,a+1):i.slice(a+1)}setTimeout(()=>q(i))}})})})});h.displayName=N;var ce={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ue(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ie(e,o,n){const t=ue(e.key,n);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(t))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(t)))return ce[t]}function q(e,o=!1){const n=document.activeElement;for(const t of e)if(t===n||(t.focus({preventScroll:o}),document.activeElement!==n))return}function ae(e,o){return e.map((n,t)=>e[(o+t)%e.length])}var le=A,de=h;exports.Item=de;exports.Root=le;exports.RovingFocusGroup=A;exports.RovingFocusGroupItem=h;exports.createRovingFocusGroupScope=oe;
2
- //# sourceMappingURL=index.cjs355.js.map