@anoki/fse-ui 1.0.682 → 1.0.683

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 (463) hide show
  1. package/dist/index.cjs.js +1 -1
  2. package/dist/index.cjs10.js +1 -1
  3. package/dist/index.cjs128.js +1 -1
  4. package/dist/index.cjs129.js +1 -1
  5. package/dist/index.cjs130.js +1 -1
  6. package/dist/index.cjs131.js +1 -1
  7. package/dist/index.cjs132.js +1 -1
  8. package/dist/index.cjs133.js +1 -1
  9. package/dist/index.cjs134.js +1 -1
  10. package/dist/index.cjs135.js +1 -1
  11. package/dist/index.cjs136.js +1 -1
  12. package/dist/index.cjs137.js +1 -1
  13. package/dist/index.cjs138.js +1 -1
  14. package/dist/index.cjs139.js +1 -1
  15. package/dist/index.cjs140.js +1 -1
  16. package/dist/index.cjs141.js +1 -1
  17. package/dist/index.cjs142.js +1 -1
  18. package/dist/index.cjs143.js +1 -1
  19. package/dist/index.cjs144.js +1 -1
  20. package/dist/index.cjs145.js +1 -1
  21. package/dist/index.cjs146.js +1 -1
  22. package/dist/index.cjs147.js +1 -1
  23. package/dist/index.cjs148.js +1 -1
  24. package/dist/index.cjs149.js +1 -1
  25. package/dist/index.cjs153.js +1 -1
  26. package/dist/index.cjs154.js +1 -1
  27. package/dist/index.cjs155.js +1 -1
  28. package/dist/index.cjs157.js +1 -1
  29. package/dist/index.cjs158.js +1 -1
  30. package/dist/index.cjs159.js +1 -1
  31. package/dist/index.cjs160.js +1 -1
  32. package/dist/index.cjs161.js +1 -1
  33. package/dist/index.cjs162.js +1 -1
  34. package/dist/index.cjs163.js +1 -1
  35. package/dist/index.cjs164.js +1 -1
  36. package/dist/index.cjs165.js +1 -1
  37. package/dist/index.cjs167.js +1 -1
  38. package/dist/index.cjs168.js +1 -1
  39. package/dist/index.cjs169.js +1 -1
  40. package/dist/index.cjs170.js +1 -1
  41. package/dist/index.cjs171.js +1 -1
  42. package/dist/index.cjs172.js +1 -1
  43. package/dist/index.cjs173.js +1 -1
  44. package/dist/index.cjs175.js +1 -1
  45. package/dist/index.cjs176.js +1 -1
  46. package/dist/index.cjs177.js +1 -1
  47. package/dist/index.cjs178.js +1 -1
  48. package/dist/index.cjs179.js +1 -1
  49. package/dist/index.cjs180.js +1 -1
  50. package/dist/index.cjs181.js +1 -1
  51. package/dist/index.cjs188.js +1 -1
  52. package/dist/index.cjs212.js +1 -1
  53. package/dist/index.cjs219.js +1 -1
  54. package/dist/index.cjs22.js +1 -1
  55. package/dist/index.cjs223.js +1 -1
  56. package/dist/index.cjs223.js.map +1 -1
  57. package/dist/index.cjs224.js +2 -0
  58. package/dist/index.cjs224.js.map +1 -0
  59. package/dist/index.cjs233.js +1 -1
  60. package/dist/index.cjs239.js +1 -1
  61. package/dist/index.cjs242.js +1 -1
  62. package/dist/index.cjs243.js +1 -1
  63. package/dist/index.cjs25.js +1 -1
  64. package/dist/index.cjs250.js +1 -1
  65. package/dist/index.cjs260.js +1 -1
  66. package/dist/index.cjs264.js +1 -1
  67. package/dist/index.cjs266.js +1 -1
  68. package/dist/index.cjs273.js +1 -1
  69. package/dist/index.cjs278.js +1 -1
  70. package/dist/index.cjs285.js +1 -1
  71. package/dist/index.cjs291.js +1 -1
  72. package/dist/index.cjs292.js +1 -1
  73. package/dist/index.cjs293.js +1 -1
  74. package/dist/index.cjs332.js +1 -1
  75. package/dist/index.cjs35.js +1 -1
  76. package/dist/index.cjs35.js.map +1 -1
  77. package/dist/index.cjs371.js +1 -1
  78. package/dist/index.cjs372.js +1 -1
  79. package/dist/index.cjs373.js +1 -27
  80. package/dist/index.cjs373.js.map +1 -1
  81. package/dist/index.cjs374.js +2 -1
  82. package/dist/index.cjs374.js.map +1 -1
  83. package/dist/index.cjs375.js +27 -1
  84. package/dist/index.cjs375.js.map +1 -1
  85. package/dist/index.cjs376.js +1 -1
  86. package/dist/index.cjs376.js.map +1 -1
  87. package/dist/index.cjs377.js +1 -2
  88. package/dist/index.cjs377.js.map +1 -1
  89. package/dist/index.cjs378.js +1 -1
  90. package/dist/index.cjs378.js.map +1 -1
  91. package/dist/index.cjs379.js +1 -1
  92. package/dist/index.cjs379.js.map +1 -1
  93. package/dist/index.cjs380.js +1 -1
  94. package/dist/index.cjs380.js.map +1 -1
  95. package/dist/index.cjs381.js +1 -1
  96. package/dist/index.cjs381.js.map +1 -1
  97. package/dist/index.cjs382.js +1 -1
  98. package/dist/index.cjs382.js.map +1 -1
  99. package/dist/index.cjs383.js +1 -1
  100. package/dist/index.cjs383.js.map +1 -1
  101. package/dist/index.cjs384.js +1 -1
  102. package/dist/index.cjs384.js.map +1 -1
  103. package/dist/index.cjs385.js +2 -0
  104. package/dist/index.cjs385.js.map +1 -0
  105. package/dist/index.cjs386.js +1 -1
  106. package/dist/index.cjs386.js.map +1 -1
  107. package/dist/index.cjs388.js +2 -0
  108. package/dist/index.cjs388.js.map +1 -0
  109. package/dist/index.cjs389.js +1 -1
  110. package/dist/index.cjs389.js.map +1 -1
  111. package/dist/index.cjs390.js +1 -1
  112. package/dist/index.cjs390.js.map +1 -1
  113. package/dist/index.cjs391.js +1 -1
  114. package/dist/index.cjs391.js.map +1 -1
  115. package/dist/index.cjs392.js +1 -1
  116. package/dist/index.cjs393.js +1 -1
  117. package/dist/index.cjs393.js.map +1 -1
  118. package/dist/index.cjs394.js +1 -1
  119. package/dist/index.cjs394.js.map +1 -1
  120. package/dist/index.cjs395.js +1 -1
  121. package/dist/index.cjs395.js.map +1 -1
  122. package/dist/index.cjs396.js +1 -1
  123. package/dist/index.cjs396.js.map +1 -1
  124. package/dist/index.cjs397.js +1 -1
  125. package/dist/index.cjs397.js.map +1 -1
  126. package/dist/index.cjs398.js +1 -1
  127. package/dist/index.cjs398.js.map +1 -1
  128. package/dist/{index.cjs415.js → index.cjs399.js} +1 -1
  129. package/dist/{index.cjs415.js.map → index.cjs399.js.map} +1 -1
  130. package/dist/index.cjs400.js +2 -0
  131. package/dist/index.cjs400.js.map +1 -0
  132. package/dist/index.cjs401.js +2 -0
  133. package/dist/index.cjs401.js.map +1 -0
  134. package/dist/index.cjs402.js +2 -0
  135. package/dist/index.cjs402.js.map +1 -0
  136. package/dist/index.cjs403.js +2 -0
  137. package/dist/index.cjs403.js.map +1 -0
  138. package/dist/index.cjs404.js +2 -0
  139. package/dist/index.cjs404.js.map +1 -0
  140. package/dist/index.cjs405.js +1 -1
  141. package/dist/index.cjs405.js.map +1 -1
  142. package/dist/index.cjs406.js +1 -1
  143. package/dist/index.cjs406.js.map +1 -1
  144. package/dist/index.cjs407.js +2 -0
  145. package/dist/index.cjs407.js.map +1 -0
  146. package/dist/index.cjs408.js +2 -0
  147. package/dist/index.cjs408.js.map +1 -0
  148. package/dist/index.cjs409.js +1 -1
  149. package/dist/index.cjs409.js.map +1 -1
  150. package/dist/index.cjs410.js +1 -1
  151. package/dist/index.cjs410.js.map +1 -1
  152. package/dist/index.cjs413.js +1 -1
  153. package/dist/index.cjs413.js.map +1 -1
  154. package/dist/{index.cjs430.js → index.cjs416.js} +1 -1
  155. package/dist/{index.cjs430.js.map → index.cjs416.js.map} +1 -1
  156. package/dist/index.cjs417.js +2 -0
  157. package/dist/{index.cjs431.js.map → index.cjs417.js.map} +1 -1
  158. package/dist/{index.cjs432.js → index.cjs418.js} +2 -2
  159. package/dist/{index.cjs432.js.map → index.cjs418.js.map} +1 -1
  160. package/dist/{index.cjs433.js → index.cjs419.js} +2 -2
  161. package/dist/{index.cjs433.js.map → index.cjs419.js.map} +1 -1
  162. package/dist/{index.cjs434.js → index.cjs420.js} +2 -2
  163. package/dist/{index.cjs434.js.map → index.cjs420.js.map} +1 -1
  164. package/dist/{index.cjs435.js → index.cjs421.js} +2 -2
  165. package/dist/{index.cjs435.js.map → index.cjs421.js.map} +1 -1
  166. package/dist/{index.cjs436.js → index.cjs422.js} +1 -1
  167. package/dist/{index.cjs436.js.map → index.cjs422.js.map} +1 -1
  168. package/dist/index.cjs423.js +1 -1
  169. package/dist/index.cjs423.js.map +1 -1
  170. package/dist/index.cjs424.js +1 -1
  171. package/dist/index.cjs424.js.map +1 -1
  172. package/dist/index.cjs425.js +38 -1
  173. package/dist/index.cjs425.js.map +1 -1
  174. package/dist/index.cjs426.js +1 -1
  175. package/dist/index.cjs426.js.map +1 -1
  176. package/dist/index.cjs427.js +1 -1
  177. package/dist/index.cjs427.js.map +1 -1
  178. package/dist/index.cjs428.js +1 -1
  179. package/dist/index.cjs428.js.map +1 -1
  180. package/dist/index.cjs429.js +1 -1
  181. package/dist/index.cjs429.js.map +1 -1
  182. package/dist/index.cjs439.js +1 -1
  183. package/dist/index.cjs439.js.map +1 -1
  184. package/dist/index.cjs440.js +1 -1
  185. package/dist/index.cjs440.js.map +1 -1
  186. package/dist/index.cjs454.js +1 -1
  187. package/dist/index.cjs455.js +1 -1
  188. package/dist/index.cjs458.js +1 -1
  189. package/dist/index.cjs461.js +1 -1
  190. package/dist/index.cjs469.js +1 -1
  191. package/dist/index.cjs469.js.map +1 -1
  192. package/dist/index.cjs470.js +1 -1
  193. package/dist/index.cjs470.js.map +1 -1
  194. package/dist/index.cjs471.js +1 -1
  195. package/dist/index.cjs471.js.map +1 -1
  196. package/dist/index.cjs472.js +1 -1
  197. package/dist/index.cjs472.js.map +1 -1
  198. package/dist/index.cjs473.js +1 -1
  199. package/dist/index.cjs473.js.map +1 -1
  200. package/dist/index.cjs474.js +1 -1
  201. package/dist/index.cjs474.js.map +1 -1
  202. package/dist/index.cjs475.js +1 -1
  203. package/dist/index.cjs475.js.map +1 -1
  204. package/dist/index.cjs476.js +1 -1
  205. package/dist/index.cjs57.js +1 -1
  206. package/dist/index.cjs6.js +1 -1
  207. package/dist/index.cjs7.js +1 -1
  208. package/dist/index.cjs8.js +1 -1
  209. package/dist/index.cjs9.js +1 -1
  210. package/dist/index.d.ts +10 -0
  211. package/dist/index.es.js +327 -326
  212. package/dist/index.es10.js +2 -2
  213. package/dist/index.es128.js +1 -1
  214. package/dist/index.es129.js +1 -1
  215. package/dist/index.es130.js +1 -1
  216. package/dist/index.es131.js +1 -1
  217. package/dist/index.es132.js +1 -1
  218. package/dist/index.es133.js +1 -1
  219. package/dist/index.es134.js +1 -1
  220. package/dist/index.es135.js +1 -1
  221. package/dist/index.es136.js +1 -1
  222. package/dist/index.es137.js +1 -1
  223. package/dist/index.es138.js +1 -1
  224. package/dist/index.es139.js +1 -1
  225. package/dist/index.es140.js +1 -1
  226. package/dist/index.es141.js +1 -1
  227. package/dist/index.es142.js +1 -1
  228. package/dist/index.es143.js +1 -1
  229. package/dist/index.es144.js +1 -1
  230. package/dist/index.es145.js +1 -1
  231. package/dist/index.es146.js +1 -1
  232. package/dist/index.es147.js +1 -1
  233. package/dist/index.es148.js +1 -1
  234. package/dist/index.es149.js +1 -1
  235. package/dist/index.es153.js +1 -1
  236. package/dist/index.es154.js +1 -1
  237. package/dist/index.es155.js +1 -1
  238. package/dist/index.es157.js +1 -1
  239. package/dist/index.es158.js +1 -1
  240. package/dist/index.es159.js +1 -1
  241. package/dist/index.es160.js +1 -1
  242. package/dist/index.es161.js +1 -1
  243. package/dist/index.es162.js +1 -1
  244. package/dist/index.es163.js +1 -1
  245. package/dist/index.es164.js +1 -1
  246. package/dist/index.es165.js +1 -1
  247. package/dist/index.es167.js +1 -1
  248. package/dist/index.es168.js +1 -1
  249. package/dist/index.es169.js +1 -1
  250. package/dist/index.es170.js +1 -1
  251. package/dist/index.es171.js +1 -1
  252. package/dist/index.es172.js +1 -1
  253. package/dist/index.es173.js +1 -1
  254. package/dist/index.es175.js +1 -1
  255. package/dist/index.es176.js +1 -1
  256. package/dist/index.es177.js +1 -1
  257. package/dist/index.es178.js +1 -1
  258. package/dist/index.es179.js +1 -1
  259. package/dist/index.es180.js +1 -1
  260. package/dist/index.es181.js +1 -1
  261. package/dist/index.es188.js +1 -1
  262. package/dist/index.es212.js +1 -1
  263. package/dist/index.es219.js +2 -2
  264. package/dist/index.es22.js +1 -1
  265. package/dist/index.es223.js +2 -27
  266. package/dist/index.es223.js.map +1 -1
  267. package/dist/index.es224.js +30 -0
  268. package/dist/index.es224.js.map +1 -0
  269. package/dist/index.es233.js +1 -1
  270. package/dist/index.es239.js +7 -7
  271. package/dist/index.es242.js +1 -1
  272. package/dist/index.es243.js +1 -1
  273. package/dist/index.es25.js +1 -1
  274. package/dist/index.es250.js +8 -8
  275. package/dist/index.es260.js +1 -1
  276. package/dist/index.es264.js +1 -1
  277. package/dist/index.es266.js +13 -13
  278. package/dist/index.es273.js +1 -1
  279. package/dist/index.es278.js +1 -1
  280. package/dist/index.es285.js +1 -1
  281. package/dist/index.es291.js +1 -1
  282. package/dist/index.es292.js +1 -1
  283. package/dist/index.es293.js +7 -7
  284. package/dist/index.es332.js +4 -4
  285. package/dist/index.es35.js +161 -4
  286. package/dist/index.es35.js.map +1 -1
  287. package/dist/index.es371.js +1 -1
  288. package/dist/index.es372.js +1 -1
  289. package/dist/index.es373.js +5 -3674
  290. package/dist/index.es373.js.map +1 -1
  291. package/dist/index.es374.js +520 -5
  292. package/dist/index.es374.js.map +1 -1
  293. package/dist/index.es375.js +3675 -2
  294. package/dist/index.es375.js.map +1 -1
  295. package/dist/index.es376.js +5 -5
  296. package/dist/index.es376.js.map +1 -1
  297. package/dist/index.es377.js +2 -521
  298. package/dist/index.es377.js.map +1 -1
  299. package/dist/index.es378.js +2 -7
  300. package/dist/index.es378.js.map +1 -1
  301. package/dist/index.es379.js +2 -27
  302. package/dist/index.es379.js.map +1 -1
  303. package/dist/index.es380.js +5 -66
  304. package/dist/index.es380.js.map +1 -1
  305. package/dist/index.es381.js +24 -49
  306. package/dist/index.es381.js.map +1 -1
  307. package/dist/index.es382.js +67 -33
  308. package/dist/index.es382.js.map +1 -1
  309. package/dist/index.es383.js +50 -620
  310. package/dist/index.es383.js.map +1 -1
  311. package/dist/index.es384.js +33 -10
  312. package/dist/index.es384.js.map +1 -1
  313. package/dist/index.es385.js +625 -0
  314. package/dist/index.es385.js.map +1 -0
  315. package/dist/index.es386.js +11 -15
  316. package/dist/index.es386.js.map +1 -1
  317. package/dist/index.es388.js +7 -0
  318. package/dist/index.es388.js.map +1 -0
  319. package/dist/index.es389.js +53 -5
  320. package/dist/index.es389.js.map +1 -1
  321. package/dist/index.es390.js +45 -24
  322. package/dist/index.es390.js.map +1 -1
  323. package/dist/index.es391.js +7 -68
  324. package/dist/index.es391.js.map +1 -1
  325. package/dist/index.es392.js +5 -5
  326. package/dist/index.es393.js +14 -134
  327. package/dist/index.es393.js.map +1 -1
  328. package/dist/index.es394.js +134 -13
  329. package/dist/index.es394.js.map +1 -1
  330. package/dist/index.es395.js +216 -13
  331. package/dist/index.es395.js.map +1 -1
  332. package/dist/index.es396.js +12 -7
  333. package/dist/index.es396.js.map +1 -1
  334. package/dist/index.es397.js +66 -47
  335. package/dist/index.es397.js.map +1 -1
  336. package/dist/index.es398.js +176 -49
  337. package/dist/index.es398.js.map +1 -1
  338. package/dist/{index.es415.js → index.es399.js} +1 -1
  339. package/dist/{index.es415.js.map → index.es399.js.map} +1 -1
  340. package/dist/index.es400.js +53 -0
  341. package/dist/index.es400.js.map +1 -0
  342. package/dist/index.es401.js +12 -0
  343. package/dist/index.es401.js.map +1 -0
  344. package/dist/index.es402.js +15 -0
  345. package/dist/index.es402.js.map +1 -0
  346. package/dist/index.es403.js +208 -0
  347. package/dist/index.es403.js.map +1 -0
  348. package/dist/index.es404.js +25 -0
  349. package/dist/index.es404.js.map +1 -0
  350. package/dist/index.es405.js +25 -2
  351. package/dist/index.es405.js.map +1 -1
  352. package/dist/index.es406.js +397 -2
  353. package/dist/index.es406.js.map +1 -1
  354. package/dist/index.es407.js +28 -0
  355. package/dist/index.es407.js.map +1 -0
  356. package/dist/index.es408.js +32 -0
  357. package/dist/index.es408.js.map +1 -0
  358. package/dist/index.es409.js +5 -15
  359. package/dist/index.es409.js.map +1 -1
  360. package/dist/index.es410.js +14 -3
  361. package/dist/index.es410.js.map +1 -1
  362. package/dist/index.es413.js +5 -217
  363. package/dist/index.es413.js.map +1 -1
  364. package/dist/{index.es430.js → index.es416.js} +1 -1
  365. package/dist/{index.es430.js.map → index.es416.js.map} +1 -1
  366. package/dist/index.es417.js +6 -0
  367. package/dist/{index.es431.js.map → index.es417.js.map} +1 -1
  368. package/dist/{index.es432.js → index.es418.js} +3 -3
  369. package/dist/{index.es432.js.map → index.es418.js.map} +1 -1
  370. package/dist/{index.es433.js → index.es419.js} +6 -6
  371. package/dist/{index.es433.js.map → index.es419.js.map} +1 -1
  372. package/dist/{index.es434.js → index.es420.js} +2 -2
  373. package/dist/{index.es434.js.map → index.es420.js.map} +1 -1
  374. package/dist/{index.es435.js → index.es421.js} +2 -2
  375. package/dist/{index.es435.js.map → index.es421.js.map} +1 -1
  376. package/dist/{index.es436.js → index.es422.js} +1 -1
  377. package/dist/{index.es436.js.map → index.es422.js.map} +1 -1
  378. package/dist/index.es423.js +128 -11
  379. package/dist/index.es423.js.map +1 -1
  380. package/dist/index.es424.js +60 -200
  381. package/dist/index.es424.js.map +1 -1
  382. package/dist/index.es425.js +69 -22
  383. package/dist/index.es425.js.map +1 -1
  384. package/dist/index.es426.js +7 -395
  385. package/dist/index.es426.js.map +1 -1
  386. package/dist/index.es427.js +14 -25
  387. package/dist/index.es427.js.map +1 -1
  388. package/dist/index.es428.js +60 -27
  389. package/dist/index.es428.js.map +1 -1
  390. package/dist/index.es429.js +15 -5
  391. package/dist/index.es429.js.map +1 -1
  392. package/dist/index.es439.js +4 -9
  393. package/dist/index.es439.js.map +1 -1
  394. package/dist/index.es440.js +22 -13
  395. package/dist/index.es440.js.map +1 -1
  396. package/dist/index.es454.js +1 -1
  397. package/dist/index.es455.js +2 -2
  398. package/dist/index.es458.js +3 -3
  399. package/dist/index.es461.js +9 -9
  400. package/dist/index.es469.js +2 -4
  401. package/dist/index.es469.js.map +1 -1
  402. package/dist/index.es470.js +2 -3
  403. package/dist/index.es470.js.map +1 -1
  404. package/dist/index.es471.js +3 -2
  405. package/dist/index.es471.js.map +1 -1
  406. package/dist/index.es472.js +2 -4
  407. package/dist/index.es472.js.map +1 -1
  408. package/dist/index.es473.js +3 -4
  409. package/dist/index.es473.js.map +1 -1
  410. package/dist/index.es474.js +4 -3
  411. package/dist/index.es474.js.map +1 -1
  412. package/dist/index.es475.js +6 -2
  413. package/dist/index.es475.js.map +1 -1
  414. package/dist/index.es476.js +1 -1
  415. package/dist/index.es57.js +1 -1
  416. package/dist/index.es6.js +1 -1
  417. package/dist/index.es7.js +1 -1
  418. package/dist/index.es8.js +1 -1
  419. package/dist/index.es9.js +2 -2
  420. package/package.json +1 -1
  421. package/dist/index.cjs225.js +0 -2
  422. package/dist/index.cjs225.js.map +0 -1
  423. package/dist/index.cjs411.js +0 -2
  424. package/dist/index.cjs411.js.map +0 -1
  425. package/dist/index.cjs412.js +0 -2
  426. package/dist/index.cjs412.js.map +0 -1
  427. package/dist/index.cjs414.js +0 -2
  428. package/dist/index.cjs414.js.map +0 -1
  429. package/dist/index.cjs431.js +0 -2
  430. package/dist/index.cjs437.js +0 -2
  431. package/dist/index.cjs437.js.map +0 -1
  432. package/dist/index.cjs438.js +0 -39
  433. package/dist/index.cjs438.js.map +0 -1
  434. package/dist/index.cjs441.js +0 -2
  435. package/dist/index.cjs441.js.map +0 -1
  436. package/dist/index.cjs442.js +0 -2
  437. package/dist/index.cjs442.js.map +0 -1
  438. package/dist/index.cjs443.js +0 -2
  439. package/dist/index.cjs443.js.map +0 -1
  440. package/dist/index.cjs444.js +0 -2
  441. package/dist/index.cjs444.js.map +0 -1
  442. package/dist/index.es225.js +0 -5
  443. package/dist/index.es225.js.map +0 -1
  444. package/dist/index.es411.js +0 -49
  445. package/dist/index.es411.js.map +0 -1
  446. package/dist/index.es412.js +0 -11
  447. package/dist/index.es412.js.map +0 -1
  448. package/dist/index.es414.js +0 -184
  449. package/dist/index.es414.js.map +0 -1
  450. package/dist/index.es431.js +0 -6
  451. package/dist/index.es437.js +0 -132
  452. package/dist/index.es437.js.map +0 -1
  453. package/dist/index.es438.js +0 -72
  454. package/dist/index.es438.js.map +0 -1
  455. package/dist/index.es441.js +0 -65
  456. package/dist/index.es441.js.map +0 -1
  457. package/dist/index.es442.js +0 -68
  458. package/dist/index.es442.js.map +0 -1
  459. package/dist/index.es443.js +0 -7
  460. package/dist/index.es443.js.map +0 -1
  461. package/dist/index.es444.js +0 -26
  462. package/dist/index.es444.js.map +0 -1
  463. /package/dist/components/ui/{ConsentModal/ConsentModalFooter/ConsentModalFooter.css → DoctorModal/DoctorModalFooter/DoctorModalFooter.css} +0 -0
@@ -1,32 +1,65 @@
1
- import { __rest as k, __assign as r } from "./index.es427.js";
2
- import * as a from "react";
3
- import { zeroRightClassName as E, fullWidthClassName as I } from "./index.es430.js";
4
- import { effectCar as Z } from "./index.es431.js";
5
- import { useMergeRefs as W } from "./index.es432.js";
6
- var o = function() {
7
- }, m = a.forwardRef(function(e, d) {
8
- var l = a.useRef(null), n = a.useState({
9
- onScrollCapture: o,
10
- onWheelCapture: o,
11
- onTouchMoveCapture: o
12
- }), f = n[0], h = n[1], u = e.forwardProps, t = e.children, v = e.className, C = e.removeScrollBar, g = e.enabled, P = e.shards, R = e.sideCar, S = e.noIsolation, b = e.inert, w = e.allowPinchZoom, s = e.as, N = s === void 0 ? "div" : s, M = e.gapMode, _ = k(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), B = R, i = W([l, d]), c = r(r({}, _), f);
13
- return a.createElement(
14
- a.Fragment,
15
- null,
16
- g && a.createElement(B, { sideCar: Z, removeScrollBar: C, shards: P, noIsolation: S, inert: b, setCallbacks: h, allowPinchZoom: !!w, lockRef: l, gapMode: M }),
17
- u ? a.cloneElement(a.Children.only(t), r(r({}, c), { ref: i })) : a.createElement(N, r({}, c, { className: v, ref: i }), t)
1
+ var p = function(e) {
2
+ return e.tagName === "TEXTAREA";
3
+ }, w = function(e, r) {
4
+ if (!(e instanceof Element))
5
+ return !1;
6
+ var o = window.getComputedStyle(e);
7
+ return (
8
+ // not-not-scrollable
9
+ o[r] !== "hidden" && // contains scroll inside self
10
+ !(o.overflowY === o.overflowX && !p(e) && o[r] === "visible")
18
11
  );
19
- });
20
- m.defaultProps = {
21
- enabled: !0,
22
- removeScrollBar: !0,
23
- inert: !1
24
- };
25
- m.classNames = {
26
- fullWidth: I,
27
- zeroRight: E
12
+ }, y = function(e) {
13
+ return w(e, "overflowY");
14
+ }, H = function(e) {
15
+ return w(e, "overflowX");
16
+ }, R = function(e, r) {
17
+ var o = r.ownerDocument, t = r;
18
+ do {
19
+ typeof ShadowRoot < "u" && t instanceof ShadowRoot && (t = t.host);
20
+ var v = g(e, t);
21
+ if (v) {
22
+ var n = b(e, t), a = n[1], l = n[2];
23
+ if (a > l)
24
+ return !0;
25
+ }
26
+ t = t.parentNode;
27
+ } while (t && t !== o.body);
28
+ return !1;
29
+ }, B = function(e) {
30
+ var r = e.scrollTop, o = e.scrollHeight, t = e.clientHeight;
31
+ return [
32
+ r,
33
+ o,
34
+ t
35
+ ];
36
+ }, V = function(e) {
37
+ var r = e.scrollLeft, o = e.scrollWidth, t = e.clientWidth;
38
+ return [
39
+ r,
40
+ o,
41
+ t
42
+ ];
43
+ }, g = function(e, r) {
44
+ return e === "v" ? y(r) : H(r);
45
+ }, b = function(e, r) {
46
+ return e === "v" ? B(r) : V(r);
47
+ }, D = function(e, r) {
48
+ return e === "h" && r === "rtl" ? -1 : 1;
49
+ }, W = function(e, r, o, t, v) {
50
+ var n = D(e, window.getComputedStyle(r).direction), a = n * t, l = o.target, f = r.contains(l), i = !1, s = a > 0, d = 0, h = 0;
51
+ do {
52
+ var c = b(e, l), u = c[0], m = c[1], C = c[2], S = m - C - n * u;
53
+ (u || S) && g(e, l) && (d += S, h += u), l instanceof ShadowRoot ? l = l.host : l = l.parentNode;
54
+ } while (
55
+ // portaled content
56
+ !f && l !== document.body || // self content
57
+ f && (r.contains(l) || r === l)
58
+ );
59
+ return (s && Math.abs(d) < 1 || !s && Math.abs(h) < 1) && (i = !0), i;
28
60
  };
29
61
  export {
30
- m as RemoveScroll
62
+ W as handleScroll,
63
+ R as locationCouldBeScrolled
31
64
  };
32
65
  //# sourceMappingURL=index.es428.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es428.js","sources":["../node_modules/react-remove-scroll/dist/es2015/UI.js"],"sourcesContent":["import { __assign, __rest } from \"tslib\";\nimport * as React from 'react';\nimport { fullWidthClassName, zeroRightClassName } from 'react-remove-scroll-bar/constants';\nimport { useMergeRefs } from 'use-callback-ref';\nimport { effectCar } from './medium';\nvar nothing = function () {\n return;\n};\n/**\n * Removes scrollbar from the page and contain the scroll within the Lock\n */\nvar RemoveScroll = React.forwardRef(function (props, parentRef) {\n var ref = React.useRef(null);\n var _a = React.useState({\n onScrollCapture: nothing,\n onWheelCapture: nothing,\n onTouchMoveCapture: nothing,\n }), callbacks = _a[0], setCallbacks = _a[1];\n var forwardProps = props.forwardProps, children = props.children, className = props.className, removeScrollBar = props.removeScrollBar, enabled = props.enabled, shards = props.shards, sideCar = props.sideCar, noIsolation = props.noIsolation, inert = props.inert, allowPinchZoom = props.allowPinchZoom, _b = props.as, Container = _b === void 0 ? 'div' : _b, gapMode = props.gapMode, rest = __rest(props, [\"forwardProps\", \"children\", \"className\", \"removeScrollBar\", \"enabled\", \"shards\", \"sideCar\", \"noIsolation\", \"inert\", \"allowPinchZoom\", \"as\", \"gapMode\"]);\n var SideCar = sideCar;\n var containerRef = useMergeRefs([ref, parentRef]);\n var containerProps = __assign(__assign({}, rest), callbacks);\n return (React.createElement(React.Fragment, null,\n enabled && (React.createElement(SideCar, { sideCar: effectCar, removeScrollBar: removeScrollBar, shards: shards, noIsolation: noIsolation, inert: inert, setCallbacks: setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode: gapMode })),\n forwardProps ? (React.cloneElement(React.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef }))) : (React.createElement(Container, __assign({}, containerProps, { className: className, ref: containerRef }), children))));\n});\nRemoveScroll.defaultProps = {\n enabled: true,\n removeScrollBar: true,\n inert: false,\n};\nRemoveScroll.classNames = {\n fullWidth: fullWidthClassName,\n zeroRight: zeroRightClassName,\n};\nexport { RemoveScroll };\n"],"names":["nothing","RemoveScroll","React","props","parentRef","ref","_a","callbacks","setCallbacks","forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","_b","Container","gapMode","rest","__rest","SideCar","containerRef","useMergeRefs","containerProps","__assign","effectCar","fullWidthClassName","zeroRightClassName"],"mappings":";;;;;AAKA,IAAIA,IAAU,WAAY;AAE1B,GAIIC,IAAeC,EAAM,WAAW,SAAUC,GAAOC,GAAW;AAC5D,MAAIC,IAAMH,EAAM,OAAO,IAAI,GACvBI,IAAKJ,EAAM,SAAS;AAAA,IACpB,iBAAiBF;AAAA,IACjB,gBAAgBA;AAAA,IAChB,oBAAoBA;AAAA,EAC5B,CAAK,GAAGO,IAAYD,EAAG,CAAC,GAAGE,IAAeF,EAAG,CAAC,GACtCG,IAAeN,EAAM,cAAcO,IAAWP,EAAM,UAAUQ,IAAYR,EAAM,WAAWS,IAAkBT,EAAM,iBAAiBU,IAAUV,EAAM,SAASW,IAASX,EAAM,QAAQY,IAAUZ,EAAM,SAASa,IAAcb,EAAM,aAAac,IAAQd,EAAM,OAAOe,IAAiBf,EAAM,gBAAgBgB,IAAKhB,EAAM,IAAIiB,IAAYD,MAAO,SAAS,QAAQA,GAAIE,IAAUlB,EAAM,SAASmB,IAAOC,EAAOpB,GAAO,CAAC,gBAAgB,YAAY,aAAa,mBAAmB,WAAW,UAAU,WAAW,eAAe,SAAS,kBAAkB,MAAM,SAAS,CAAC,GACtiBqB,IAAUT,GACVU,IAAeC,EAAa,CAACrB,GAAKD,CAAS,CAAC,GAC5CuB,IAAiBC,EAASA,EAAS,CAAA,GAAIN,CAAI,GAAGf,CAAS;AAC3D,SAAQL,EAAM;AAAA,IAAcA,EAAM;AAAA,IAAU;AAAA,IACxCW,KAAYX,EAAM,cAAcsB,GAAS,EAAE,SAASK,GAAW,iBAAiBjB,GAAiB,QAAQE,GAAQ,aAAaE,GAAa,OAAOC,GAAO,cAAcT,GAAc,gBAAgB,CAAC,CAACU,GAAgB,SAASb,GAAK,SAASgB,EAAS,CAAA;AAAA,IACvPZ,IAAgBP,EAAM,aAAaA,EAAM,SAAS,KAAKQ,CAAQ,GAAGkB,EAASA,EAAS,CAAE,GAAED,CAAc,GAAG,EAAE,KAAKF,EAAY,CAAE,CAAC,IAAMvB,EAAM,cAAckB,GAAWQ,EAAS,CAAE,GAAED,GAAgB,EAAE,WAAWhB,GAAW,KAAKc,EAAc,CAAA,GAAGf,CAAQ;AAAA,EAAE;AACjQ,CAAC;AACDT,EAAa,eAAe;AAAA,EACxB,SAAS;AAAA,EACT,iBAAiB;AAAA,EACjB,OAAO;AACX;AACAA,EAAa,aAAa;AAAA,EACtB,WAAW6B;AAAA,EACX,WAAWC;AACf;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es428.js","sources":["../node_modules/react-remove-scroll/dist/es2015/handleScroll.js"],"sourcesContent":["var alwaysContainsScroll = function (node) {\n // textarea will always _contain_ scroll inside self. It only can be hidden\n return node.tagName === 'TEXTAREA';\n};\nvar elementCanBeScrolled = function (node, overflow) {\n if (!(node instanceof Element)) {\n return false;\n }\n var styles = window.getComputedStyle(node);\n return (\n // not-not-scrollable\n styles[overflow] !== 'hidden' &&\n // contains scroll inside self\n !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));\n};\nvar elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };\nvar elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };\nexport var locationCouldBeScrolled = function (axis, node) {\n var ownerDocument = node.ownerDocument;\n var current = node;\n do {\n // Skip over shadow root\n if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {\n current = current.host;\n }\n var isScrollable = elementCouldBeScrolled(axis, current);\n if (isScrollable) {\n var _a = getScrollVariables(axis, current), scrollHeight = _a[1], clientHeight = _a[2];\n if (scrollHeight > clientHeight) {\n return true;\n }\n }\n current = current.parentNode;\n } while (current && current !== ownerDocument.body);\n return false;\n};\nvar getVScrollVariables = function (_a) {\n var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n return [\n scrollTop,\n scrollHeight,\n clientHeight,\n ];\n};\nvar getHScrollVariables = function (_a) {\n var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n return [\n scrollLeft,\n scrollWidth,\n clientWidth,\n ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n /**\n * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n * and then increasingly negative as you scroll towards the end of the content.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n */\n return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nexport var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n var delta = directionFactor * sourceDelta;\n // find scrollable target\n var target = event.target;\n var targetInLock = endTarget.contains(target);\n var shouldCancelScroll = false;\n var isDeltaPositive = delta > 0;\n var availableScroll = 0;\n var availableScrollTop = 0;\n do {\n var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n var elementScroll = scroll_1 - capacity - directionFactor * position;\n if (position || elementScroll) {\n if (elementCouldBeScrolled(axis, target)) {\n availableScroll += elementScroll;\n availableScrollTop += position;\n }\n }\n if (target instanceof ShadowRoot) {\n target = target.host;\n }\n else {\n target = target.parentNode;\n }\n } while (\n // portaled content\n (!targetInLock && target !== document.body) ||\n // self content\n (targetInLock && (endTarget.contains(target) || endTarget === target)));\n // handle epsilon around 0 (non standard zoom levels)\n if (isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScroll) < 1) || (!noOverscroll && delta > availableScroll))) {\n shouldCancelScroll = true;\n }\n else if (!isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScrollTop) < 1) || (!noOverscroll && -delta > availableScrollTop))) {\n shouldCancelScroll = true;\n }\n return shouldCancelScroll;\n};\n"],"names":["alwaysContainsScroll","node","elementCanBeScrolled","overflow","styles","elementCouldBeVScrolled","elementCouldBeHScrolled","locationCouldBeScrolled","axis","ownerDocument","current","isScrollable","elementCouldBeScrolled","_a","getScrollVariables","scrollHeight","clientHeight","getVScrollVariables","scrollTop","getHScrollVariables","scrollLeft","scrollWidth","clientWidth","getDirectionFactor","direction","handleScroll","endTarget","event","sourceDelta","noOverscroll","directionFactor","delta","target","targetInLock","shouldCancelScroll","isDeltaPositive","availableScroll","availableScrollTop","position","scroll_1","capacity","elementScroll"],"mappings":"AAAA,IAAIA,IAAuB,SAAUC,GAAM;AAEvC,SAAOA,EAAK,YAAY;AAC5B,GACIC,IAAuB,SAAUD,GAAME,GAAU;AACjD,MAAI,EAAEF,aAAgB;AAClB,WAAO;AAEX,MAAIG,IAAS,OAAO,iBAAiBH,CAAI;AACzC;AAAA;AAAA,IAEAG,EAAOD,CAAQ,MAAM;AAAA,IAEjB,EAAEC,EAAO,cAAcA,EAAO,aAAa,CAACJ,EAAqBC,CAAI,KAAKG,EAAOD,CAAQ,MAAM;AAAA;AACvG,GACIE,IAA0B,SAAUJ,GAAM;AAAE,SAAOC,EAAqBD,GAAM,WAAW;AAAI,GAC7FK,IAA0B,SAAUL,GAAM;AAAE,SAAOC,EAAqBD,GAAM,WAAW;AAAI,GACtFM,IAA0B,SAAUC,GAAMP,GAAM;AACvD,MAAIQ,IAAgBR,EAAK,eACrBS,IAAUT;AACd,KAAG;AAEC,IAAI,OAAO,aAAe,OAAeS,aAAmB,eACxDA,IAAUA,EAAQ;AAEtB,QAAIC,IAAeC,EAAuBJ,GAAME,CAAO;AACvD,QAAIC,GAAc;AACd,UAAIE,IAAKC,EAAmBN,GAAME,CAAO,GAAGK,IAAeF,EAAG,CAAC,GAAGG,IAAeH,EAAG,CAAC;AACrF,UAAIE,IAAeC;AACf,eAAO;AAAA,IAEvB;AACQ,IAAAN,IAAUA,EAAQ;AAAA,EAC1B,SAAaA,KAAWA,MAAYD,EAAc;AAC9C,SAAO;AACX,GACIQ,IAAsB,SAAUJ,GAAI;AACpC,MAAIK,IAAYL,EAAG,WAAWE,IAAeF,EAAG,cAAcG,IAAeH,EAAG;AAChF,SAAO;AAAA,IACHK;AAAA,IACAH;AAAA,IACAC;AAAA,EACH;AACL,GACIG,IAAsB,SAAUN,GAAI;AACpC,MAAIO,IAAaP,EAAG,YAAYQ,IAAcR,EAAG,aAAaS,IAAcT,EAAG;AAC/E,SAAO;AAAA,IACHO;AAAA,IACAC;AAAA,IACAC;AAAA,EACH;AACL,GACIV,IAAyB,SAAUJ,GAAMP,GAAM;AAC/C,SAAOO,MAAS,MAAMH,EAAwBJ,CAAI,IAAIK,EAAwBL,CAAI;AACtF,GACIa,IAAqB,SAAUN,GAAMP,GAAM;AAC3C,SAAOO,MAAS,MAAMS,EAAoBhB,CAAI,IAAIkB,EAAoBlB,CAAI;AAC9E,GACIsB,IAAqB,SAAUf,GAAMgB,GAAW;AAMhD,SAAOhB,MAAS,OAAOgB,MAAc,QAAQ,KAAK;AACtD,GACWC,IAAe,SAAUjB,GAAMkB,GAAWC,GAAOC,GAAaC,GAAc;AACnF,MAAIC,IAAkBP,EAAmBf,GAAM,OAAO,iBAAiBkB,CAAS,EAAE,SAAS,GACvFK,IAAQD,IAAkBF,GAE1BI,IAASL,EAAM,QACfM,IAAeP,EAAU,SAASM,CAAM,GACxCE,IAAqB,IACrBC,IAAkBJ,IAAQ,GAC1BK,IAAkB,GAClBC,IAAqB;AACzB,KAAG;AACC,QAAIxB,IAAKC,EAAmBN,GAAMwB,CAAM,GAAGM,IAAWzB,EAAG,CAAC,GAAG0B,IAAW1B,EAAG,CAAC,GAAG2B,IAAW3B,EAAG,CAAC,GAC1F4B,IAAgBF,IAAWC,IAAWV,IAAkBQ;AAC5D,KAAIA,KAAYG,MACR7B,EAAuBJ,GAAMwB,CAAM,MACnCI,KAAmBK,GACnBJ,KAAsBC,IAG1BN,aAAkB,aAClBA,IAASA,EAAO,OAGhBA,IAASA,EAAO;AAAA,EAEvB;AAAA;AAAA,IAEA,CAACC,KAAgBD,MAAW,SAAS;AAAA,IAEjCC,MAAiBP,EAAU,SAASM,CAAM,KAAKN,MAAcM;AAAA;AAElE,UAAIG,KACkB,KAAK,IAAIC,CAAe,IAAI,KAGzC,CAACD,KACY,KAAK,IAAIE,CAAkB,IAAI,OACjDH,IAAqB,KAElBA;AACX;","x_google_ignoreList":[0]}
@@ -1,8 +1,18 @@
1
- import { RemoveScrollSideCar as r } from "./index.es433.js";
2
- import { effectCar as o } from "./index.es431.js";
3
- import { exportSidecar as e } from "./index.es434.js";
4
- const f = e(o, r);
1
+ import { useState as n, useCallback as i } from "react";
2
+ import "./index.es469.js";
3
+ function c() {
4
+ const [t, o] = n(null), e = i(async (r) => {
5
+ if (!(navigator != null && navigator.clipboard))
6
+ return console.warn("Clipboard not supported"), !1;
7
+ try {
8
+ return await navigator.clipboard.writeText(r), o(r), !0;
9
+ } catch (a) {
10
+ return console.warn("Copy failed", a), o(null), !1;
11
+ }
12
+ }, []);
13
+ return [t, e];
14
+ }
5
15
  export {
6
- f as default
16
+ c as useCopyToClipboard
7
17
  };
8
18
  //# sourceMappingURL=index.es429.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es429.js","sources":["../node_modules/react-remove-scroll/dist/es2015/sidecar.js"],"sourcesContent":["import { exportSidecar } from 'use-sidecar';\nimport { RemoveScrollSideCar } from './SideEffect';\nimport { effectCar } from './medium';\nexport default exportSidecar(effectCar, RemoveScrollSideCar);\n"],"names":["SideCar","exportSidecar","effectCar","RemoveScrollSideCar"],"mappings":";;;AAGA,MAAAA,IAAeC,EAAcC,GAAWC,CAAmB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es429.js","sources":["../node_modules/usehooks-ts/dist/index.js"],"sourcesContent":["import { useState, useCallback, useLayoutEffect, useEffect, useRef, useMemo } from 'react';\nimport debounce from 'lodash.debounce';\n\n// src/useBoolean/useBoolean.ts\nfunction useBoolean(defaultValue = false) {\n if (typeof defaultValue !== \"boolean\") {\n throw new Error(\"defaultValue must be `true` or `false`\");\n }\n const [value, setValue] = useState(defaultValue);\n const setTrue = useCallback(() => {\n setValue(true);\n }, []);\n const setFalse = useCallback(() => {\n setValue(false);\n }, []);\n const toggle = useCallback(() => {\n setValue((x) => !x);\n }, []);\n return { value, setValue, setTrue, setFalse, toggle };\n}\nvar useIsomorphicLayoutEffect = typeof window !== \"undefined\" ? useLayoutEffect : useEffect;\n\n// src/useEventListener/useEventListener.ts\nfunction useEventListener(eventName, handler, element, options) {\n const savedHandler = useRef(handler);\n useIsomorphicLayoutEffect(() => {\n savedHandler.current = handler;\n }, [handler]);\n useEffect(() => {\n const targetElement = (element == null ? void 0 : element.current) ?? window;\n if (!(targetElement && targetElement.addEventListener))\n return;\n const listener = (event) => {\n savedHandler.current(event);\n };\n targetElement.addEventListener(eventName, listener, options);\n return () => {\n targetElement.removeEventListener(eventName, listener, options);\n };\n }, [eventName, element, options]);\n}\n\n// src/useClickAnyWhere/useClickAnyWhere.ts\nfunction useClickAnyWhere(handler) {\n useEventListener(\"click\", (event) => {\n handler(event);\n });\n}\nfunction useCopyToClipboard() {\n const [copiedText, setCopiedText] = useState(null);\n const copy = useCallback(async (text) => {\n if (!(navigator == null ? void 0 : navigator.clipboard)) {\n console.warn(\"Clipboard not supported\");\n return false;\n }\n try {\n await navigator.clipboard.writeText(text);\n setCopiedText(text);\n return true;\n } catch (error) {\n console.warn(\"Copy failed\", error);\n setCopiedText(null);\n return false;\n }\n }, []);\n return [copiedText, copy];\n}\nfunction useCounter(initialValue) {\n const [count, setCount] = useState(initialValue ?? 0);\n const increment = useCallback(() => {\n setCount((x) => x + 1);\n }, []);\n const decrement = useCallback(() => {\n setCount((x) => x - 1);\n }, []);\n const reset = useCallback(() => {\n setCount(initialValue ?? 0);\n }, [initialValue]);\n return {\n count,\n increment,\n decrement,\n reset,\n setCount\n };\n}\nfunction useInterval(callback, delay) {\n const savedCallback = useRef(callback);\n useIsomorphicLayoutEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n useEffect(() => {\n if (delay === null) {\n return;\n }\n const id = setInterval(() => {\n savedCallback.current();\n }, delay);\n return () => {\n clearInterval(id);\n };\n }, [delay]);\n}\n\n// src/useCountdown/useCountdown.ts\nfunction useCountdown({\n countStart,\n countStop = 0,\n intervalMs = 1e3,\n isIncrement = false\n}) {\n const {\n count,\n increment,\n decrement,\n reset: resetCounter\n } = useCounter(countStart);\n const {\n value: isCountdownRunning,\n setTrue: startCountdown,\n setFalse: stopCountdown\n } = useBoolean(false);\n const resetCountdown = useCallback(() => {\n stopCountdown();\n resetCounter();\n }, [stopCountdown, resetCounter]);\n const countdownCallback = useCallback(() => {\n if (count === countStop) {\n stopCountdown();\n return;\n }\n if (isIncrement) {\n increment();\n } else {\n decrement();\n }\n }, [count, countStop, decrement, increment, isIncrement, stopCountdown]);\n useInterval(countdownCallback, isCountdownRunning ? intervalMs : null);\n return [count, { startCountdown, stopCountdown, resetCountdown }];\n}\nfunction useEventCallback(fn) {\n const ref = useRef(() => {\n throw new Error(\"Cannot call an event handler while rendering.\");\n });\n useIsomorphicLayoutEffect(() => {\n ref.current = fn;\n }, [fn]);\n return useCallback((...args) => {\n var _a;\n return (_a = ref.current) == null ? void 0 : _a.call(ref, ...args);\n }, [ref]);\n}\n\n// src/useLocalStorage/useLocalStorage.ts\nvar IS_SERVER = typeof window === \"undefined\";\nfunction useLocalStorage(key, initialValue, options = {}) {\n const { initializeWithValue = true } = options;\n const serializer = useCallback(\n (value) => {\n if (options.serializer) {\n return options.serializer(value);\n }\n return JSON.stringify(value);\n },\n [options]\n );\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return defaultValue;\n }\n return parsed;\n },\n [options, initialValue]\n );\n const readValue = useCallback(() => {\n const initialValueToUse = initialValue instanceof Function ? initialValue() : initialValue;\n if (IS_SERVER) {\n return initialValueToUse;\n }\n try {\n const raw = window.localStorage.getItem(key);\n return raw ? deserializer(raw) : initialValueToUse;\n } catch (error) {\n console.warn(`Error reading localStorage key \\u201C${key}\\u201D:`, error);\n return initialValueToUse;\n }\n }, [initialValue, key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return initialValue instanceof Function ? initialValue() : initialValue;\n });\n const setValue = useEventCallback((value) => {\n if (IS_SERVER) {\n console.warn(\n `Tried setting localStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n try {\n const newValue = value instanceof Function ? value(readValue()) : value;\n window.localStorage.setItem(key, serializer(newValue));\n setStoredValue(newValue);\n window.dispatchEvent(new StorageEvent(\"local-storage\", { key }));\n } catch (error) {\n console.warn(`Error setting localStorage key \\u201C${key}\\u201D:`, error);\n }\n });\n const removeValue = useEventCallback(() => {\n if (IS_SERVER) {\n console.warn(\n `Tried removing localStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n window.localStorage.removeItem(key);\n setStoredValue(defaultValue);\n window.dispatchEvent(new StorageEvent(\"local-storage\", { key }));\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"local-storage\", handleStorageChange);\n return [storedValue, setValue, removeValue];\n}\nvar IS_SERVER2 = typeof window === \"undefined\";\nfunction useMediaQuery(query, {\n defaultValue = false,\n initializeWithValue = true\n} = {}) {\n const getMatches = (query2) => {\n if (IS_SERVER2) {\n return defaultValue;\n }\n return window.matchMedia(query2).matches;\n };\n const [matches, setMatches] = useState(() => {\n if (initializeWithValue) {\n return getMatches(query);\n }\n return defaultValue;\n });\n function handleChange() {\n setMatches(getMatches(query));\n }\n useIsomorphicLayoutEffect(() => {\n const matchMedia = window.matchMedia(query);\n handleChange();\n if (matchMedia.addListener) {\n matchMedia.addListener(handleChange);\n } else {\n matchMedia.addEventListener(\"change\", handleChange);\n }\n return () => {\n if (matchMedia.removeListener) {\n matchMedia.removeListener(handleChange);\n } else {\n matchMedia.removeEventListener(\"change\", handleChange);\n }\n };\n }, [query]);\n return matches;\n}\n\n// src/useDarkMode/useDarkMode.ts\nvar COLOR_SCHEME_QUERY = \"(prefers-color-scheme: dark)\";\nvar LOCAL_STORAGE_KEY = \"usehooks-ts-dark-mode\";\nfunction useDarkMode(options = {}) {\n const {\n defaultValue,\n localStorageKey = LOCAL_STORAGE_KEY,\n initializeWithValue = true\n } = options;\n const isDarkOS = useMediaQuery(COLOR_SCHEME_QUERY, {\n initializeWithValue,\n defaultValue\n });\n const [isDarkMode, setDarkMode] = useLocalStorage(\n localStorageKey,\n defaultValue ?? isDarkOS ?? false,\n { initializeWithValue }\n );\n useIsomorphicLayoutEffect(() => {\n if (isDarkOS !== isDarkMode) {\n setDarkMode(isDarkOS);\n }\n }, [isDarkOS]);\n return {\n isDarkMode,\n toggle: () => {\n setDarkMode((prev) => !prev);\n },\n enable: () => {\n setDarkMode(true);\n },\n disable: () => {\n setDarkMode(false);\n },\n set: (value) => {\n setDarkMode(value);\n }\n };\n}\nfunction useUnmount(func) {\n const funcRef = useRef(func);\n funcRef.current = func;\n useEffect(\n () => () => {\n funcRef.current();\n },\n []\n );\n}\n\n// src/useDebounceCallback/useDebounceCallback.ts\nfunction useDebounceCallback(func, delay = 500, options) {\n const debouncedFunc = useRef();\n useUnmount(() => {\n if (debouncedFunc.current) {\n debouncedFunc.current.cancel();\n }\n });\n const debounced = useMemo(() => {\n const debouncedFuncInstance = debounce(func, delay, options);\n const wrappedFunc = (...args) => {\n return debouncedFuncInstance(...args);\n };\n wrappedFunc.cancel = () => {\n debouncedFuncInstance.cancel();\n };\n wrappedFunc.isPending = () => {\n return !!debouncedFunc.current;\n };\n wrappedFunc.flush = () => {\n return debouncedFuncInstance.flush();\n };\n return wrappedFunc;\n }, [func, delay, options]);\n useEffect(() => {\n debouncedFunc.current = debounce(func, delay, options);\n }, [func, delay, options]);\n return debounced;\n}\nfunction useDebounceValue(initialValue, delay, options) {\n const eq = (options == null ? void 0 : options.equalityFn) ?? ((left, right) => left === right);\n const unwrappedInitialValue = initialValue instanceof Function ? initialValue() : initialValue;\n const [debouncedValue, setDebouncedValue] = useState(unwrappedInitialValue);\n const previousValueRef = useRef(unwrappedInitialValue);\n const updateDebouncedValue = useDebounceCallback(\n setDebouncedValue,\n delay,\n options\n );\n if (!eq(previousValueRef.current, unwrappedInitialValue)) {\n updateDebouncedValue(unwrappedInitialValue);\n previousValueRef.current = unwrappedInitialValue;\n }\n return [debouncedValue, updateDebouncedValue];\n}\nfunction useDocumentTitle(title, options = {}) {\n const { preserveTitleOnUnmount = true } = options;\n const defaultTitle = useRef(null);\n useIsomorphicLayoutEffect(() => {\n defaultTitle.current = window.document.title;\n }, []);\n useIsomorphicLayoutEffect(() => {\n window.document.title = title;\n }, [title]);\n useUnmount(() => {\n if (!preserveTitleOnUnmount && defaultTitle.current) {\n window.document.title = defaultTitle.current;\n }\n });\n}\nfunction useHover(elementRef) {\n const [value, setValue] = useState(false);\n const handleMouseEnter = () => {\n setValue(true);\n };\n const handleMouseLeave = () => {\n setValue(false);\n };\n useEventListener(\"mouseenter\", handleMouseEnter, elementRef);\n useEventListener(\"mouseleave\", handleMouseLeave, elementRef);\n return value;\n}\nfunction useIntersectionObserver({\n threshold = 0,\n root = null,\n rootMargin = \"0%\",\n freezeOnceVisible = false,\n initialIsIntersecting = false,\n onChange\n} = {}) {\n var _a;\n const [ref, setRef] = useState(null);\n const [state, setState] = useState(() => ({\n isIntersecting: initialIsIntersecting,\n entry: void 0\n }));\n const callbackRef = useRef();\n callbackRef.current = onChange;\n const frozen = ((_a = state.entry) == null ? void 0 : _a.isIntersecting) && freezeOnceVisible;\n useEffect(() => {\n if (!ref)\n return;\n if (!(\"IntersectionObserver\" in window))\n return;\n if (frozen)\n return;\n let unobserve;\n const observer = new IntersectionObserver(\n (entries) => {\n const thresholds = Array.isArray(observer.thresholds) ? observer.thresholds : [observer.thresholds];\n entries.forEach((entry) => {\n const isIntersecting = entry.isIntersecting && thresholds.some((threshold2) => entry.intersectionRatio >= threshold2);\n setState({ isIntersecting, entry });\n if (callbackRef.current) {\n callbackRef.current(isIntersecting, entry);\n }\n if (isIntersecting && freezeOnceVisible && unobserve) {\n unobserve();\n unobserve = void 0;\n }\n });\n },\n { threshold, root, rootMargin }\n );\n observer.observe(ref);\n return () => {\n observer.disconnect();\n };\n }, [\n ref,\n // eslint-disable-next-line react-hooks/exhaustive-deps\n JSON.stringify(threshold),\n root,\n rootMargin,\n frozen,\n freezeOnceVisible\n ]);\n const prevRef = useRef(null);\n useEffect(() => {\n var _a2;\n if (!ref && ((_a2 = state.entry) == null ? void 0 : _a2.target) && !freezeOnceVisible && !frozen && prevRef.current !== state.entry.target) {\n prevRef.current = state.entry.target;\n setState({ isIntersecting: initialIsIntersecting, entry: void 0 });\n }\n }, [ref, state.entry, freezeOnceVisible, frozen, initialIsIntersecting]);\n const result = [\n setRef,\n !!state.isIntersecting,\n state.entry\n ];\n result.ref = result[0];\n result.isIntersecting = result[1];\n result.entry = result[2];\n return result;\n}\nfunction useIsClient() {\n const [isClient, setClient] = useState(false);\n useEffect(() => {\n setClient(true);\n }, []);\n return isClient;\n}\nfunction useIsMounted() {\n const isMounted = useRef(false);\n useEffect(() => {\n isMounted.current = true;\n return () => {\n isMounted.current = false;\n };\n }, []);\n return useCallback(() => isMounted.current, []);\n}\nfunction useMap(initialState = /* @__PURE__ */ new Map()) {\n const [map, setMap] = useState(new Map(initialState));\n const actions = {\n set: useCallback((key, value) => {\n setMap((prev) => {\n const copy = new Map(prev);\n copy.set(key, value);\n return copy;\n });\n }, []),\n setAll: useCallback((entries) => {\n setMap(() => new Map(entries));\n }, []),\n remove: useCallback((key) => {\n setMap((prev) => {\n const copy = new Map(prev);\n copy.delete(key);\n return copy;\n });\n }, []),\n reset: useCallback(() => {\n setMap(() => /* @__PURE__ */ new Map());\n }, [])\n };\n return [map, actions];\n}\n\n// src/useOnClickOutside/useOnClickOutside.ts\nfunction useOnClickOutside(ref, handler, eventType = \"mousedown\", eventListenerOptions = {}) {\n useEventListener(\n eventType,\n (event) => {\n const target = event.target;\n if (!target || !target.isConnected) {\n return;\n }\n const isOutside = Array.isArray(ref) ? ref.filter((r) => Boolean(r.current)).every((r) => r.current && !r.current.contains(target)) : ref.current && !ref.current.contains(target);\n if (isOutside) {\n handler(event);\n }\n },\n void 0,\n eventListenerOptions\n );\n}\nvar IS_SERVER3 = typeof window === \"undefined\";\nfunction useReadLocalStorage(key, options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER3) {\n initializeWithValue = false;\n }\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return null;\n }\n return parsed;\n },\n [options]\n );\n const readValue = useCallback(() => {\n if (IS_SERVER3) {\n return null;\n }\n try {\n const raw = window.localStorage.getItem(key);\n return raw ? deserializer(raw) : null;\n } catch (error) {\n console.warn(`Error reading localStorage key \\u201C${key}\\u201D:`, error);\n return null;\n }\n }, [key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return void 0;\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"local-storage\", handleStorageChange);\n return storedValue;\n}\nvar initialSize = {\n width: void 0,\n height: void 0\n};\nfunction useResizeObserver(options) {\n const { ref, box = \"content-box\" } = options;\n const [{ width, height }, setSize] = useState(initialSize);\n const isMounted = useIsMounted();\n const previousSize = useRef({ ...initialSize });\n const onResize = useRef(void 0);\n onResize.current = options.onResize;\n useEffect(() => {\n if (!ref.current)\n return;\n if (typeof window === \"undefined\" || !(\"ResizeObserver\" in window))\n return;\n const observer = new ResizeObserver(([entry]) => {\n const boxProp = box === \"border-box\" ? \"borderBoxSize\" : box === \"device-pixel-content-box\" ? \"devicePixelContentBoxSize\" : \"contentBoxSize\";\n const newWidth = extractSize(entry, boxProp, \"inlineSize\");\n const newHeight = extractSize(entry, boxProp, \"blockSize\");\n const hasChanged = previousSize.current.width !== newWidth || previousSize.current.height !== newHeight;\n if (hasChanged) {\n const newSize = { width: newWidth, height: newHeight };\n previousSize.current.width = newWidth;\n previousSize.current.height = newHeight;\n if (onResize.current) {\n onResize.current(newSize);\n } else {\n if (isMounted()) {\n setSize(newSize);\n }\n }\n }\n });\n observer.observe(ref.current, { box });\n return () => {\n observer.disconnect();\n };\n }, [box, ref, isMounted]);\n return { width, height };\n}\nfunction extractSize(entry, box, sizeType) {\n if (!entry[box]) {\n if (box === \"contentBoxSize\") {\n return entry.contentRect[sizeType === \"inlineSize\" ? \"width\" : \"height\"];\n }\n return void 0;\n }\n return Array.isArray(entry[box]) ? entry[box][0][sizeType] : (\n // @ts-ignore Support Firefox's non-standard behavior\n entry[box][sizeType]\n );\n}\nvar IS_SERVER4 = typeof window === \"undefined\";\nfunction useScreen(options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER4) {\n initializeWithValue = false;\n }\n const readScreen = () => {\n if (IS_SERVER4) {\n return void 0;\n }\n return window.screen;\n };\n const [screen, setScreen] = useState(() => {\n if (initializeWithValue) {\n return readScreen();\n }\n return void 0;\n });\n const debouncedSetScreen = useDebounceCallback(\n setScreen,\n options.debounceDelay\n );\n function handleSize() {\n const newScreen = readScreen();\n const setSize = options.debounceDelay ? debouncedSetScreen : setScreen;\n if (newScreen) {\n const {\n width,\n height,\n availHeight,\n availWidth,\n colorDepth,\n orientation,\n pixelDepth\n } = newScreen;\n setSize({\n width,\n height,\n availHeight,\n availWidth,\n colorDepth,\n orientation,\n pixelDepth\n });\n }\n }\n useEventListener(\"resize\", handleSize);\n useIsomorphicLayoutEffect(() => {\n handleSize();\n }, []);\n return screen;\n}\nvar cachedScriptStatuses = /* @__PURE__ */ new Map();\nfunction getScriptNode(src) {\n const node = document.querySelector(\n `script[src=\"${src}\"]`\n );\n const status = node == null ? void 0 : node.getAttribute(\"data-status\");\n return {\n node,\n status\n };\n}\nfunction useScript(src, options) {\n const [status, setStatus] = useState(() => {\n if (!src || (options == null ? void 0 : options.shouldPreventLoad)) {\n return \"idle\";\n }\n if (typeof window === \"undefined\") {\n return \"loading\";\n }\n return cachedScriptStatuses.get(src) ?? \"loading\";\n });\n useEffect(() => {\n if (!src || (options == null ? void 0 : options.shouldPreventLoad)) {\n return;\n }\n const cachedScriptStatus = cachedScriptStatuses.get(src);\n if (cachedScriptStatus === \"ready\" || cachedScriptStatus === \"error\") {\n setStatus(cachedScriptStatus);\n return;\n }\n const script = getScriptNode(src);\n let scriptNode = script.node;\n if (!scriptNode) {\n scriptNode = document.createElement(\"script\");\n scriptNode.src = src;\n scriptNode.async = true;\n if (options == null ? void 0 : options.id) {\n scriptNode.id = options.id;\n }\n scriptNode.setAttribute(\"data-status\", \"loading\");\n document.body.appendChild(scriptNode);\n const setAttributeFromEvent = (event) => {\n const scriptStatus = event.type === \"load\" ? \"ready\" : \"error\";\n scriptNode == null ? void 0 : scriptNode.setAttribute(\"data-status\", scriptStatus);\n };\n scriptNode.addEventListener(\"load\", setAttributeFromEvent);\n scriptNode.addEventListener(\"error\", setAttributeFromEvent);\n } else {\n setStatus(script.status ?? cachedScriptStatus ?? \"loading\");\n }\n const setStateFromEvent = (event) => {\n const newStatus = event.type === \"load\" ? \"ready\" : \"error\";\n setStatus(newStatus);\n cachedScriptStatuses.set(src, newStatus);\n };\n scriptNode.addEventListener(\"load\", setStateFromEvent);\n scriptNode.addEventListener(\"error\", setStateFromEvent);\n return () => {\n if (scriptNode) {\n scriptNode.removeEventListener(\"load\", setStateFromEvent);\n scriptNode.removeEventListener(\"error\", setStateFromEvent);\n }\n if (scriptNode && (options == null ? void 0 : options.removeOnUnmount)) {\n scriptNode.remove();\n cachedScriptStatuses.delete(src);\n }\n };\n }, [src, options == null ? void 0 : options.shouldPreventLoad, options == null ? void 0 : options.removeOnUnmount, options == null ? void 0 : options.id]);\n return status;\n}\nvar IS_SERVER5 = typeof window === \"undefined\";\nfunction useScrollLock(options = {}) {\n const { autoLock = true, lockTarget, widthReflow = true } = options;\n const [isLocked, setIsLocked] = useState(false);\n const target = useRef(null);\n const originalStyle = useRef(null);\n const lock = () => {\n if (target.current) {\n const { overflow, paddingRight } = target.current.style;\n originalStyle.current = { overflow, paddingRight };\n if (widthReflow) {\n const offsetWidth = target.current === document.body ? window.innerWidth : target.current.offsetWidth;\n const currentPaddingRight = parseInt(window.getComputedStyle(target.current).paddingRight, 10) || 0;\n const scrollbarWidth = offsetWidth - target.current.scrollWidth;\n target.current.style.paddingRight = `${scrollbarWidth + currentPaddingRight}px`;\n }\n target.current.style.overflow = \"hidden\";\n setIsLocked(true);\n }\n };\n const unlock = () => {\n if (target.current && originalStyle.current) {\n target.current.style.overflow = originalStyle.current.overflow;\n if (widthReflow) {\n target.current.style.paddingRight = originalStyle.current.paddingRight;\n }\n }\n setIsLocked(false);\n };\n useIsomorphicLayoutEffect(() => {\n if (IS_SERVER5)\n return;\n if (lockTarget) {\n target.current = typeof lockTarget === \"string\" ? document.querySelector(lockTarget) : lockTarget;\n }\n if (!target.current) {\n target.current = document.body;\n }\n if (autoLock) {\n lock();\n }\n return () => {\n unlock();\n };\n }, [autoLock, lockTarget, widthReflow]);\n return { isLocked, lock, unlock };\n}\nvar IS_SERVER6 = typeof window === \"undefined\";\nfunction useSessionStorage(key, initialValue, options = {}) {\n const { initializeWithValue = true } = options;\n const serializer = useCallback(\n (value) => {\n if (options.serializer) {\n return options.serializer(value);\n }\n return JSON.stringify(value);\n },\n [options]\n );\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return defaultValue;\n }\n return parsed;\n },\n [options, initialValue]\n );\n const readValue = useCallback(() => {\n const initialValueToUse = initialValue instanceof Function ? initialValue() : initialValue;\n if (IS_SERVER6) {\n return initialValueToUse;\n }\n try {\n const raw = window.sessionStorage.getItem(key);\n return raw ? deserializer(raw) : initialValueToUse;\n } catch (error) {\n console.warn(`Error reading sessionStorage key \\u201C${key}\\u201D:`, error);\n return initialValueToUse;\n }\n }, [initialValue, key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return initialValue instanceof Function ? initialValue() : initialValue;\n });\n const setValue = useEventCallback((value) => {\n if (IS_SERVER6) {\n console.warn(\n `Tried setting sessionStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n try {\n const newValue = value instanceof Function ? value(readValue()) : value;\n window.sessionStorage.setItem(key, serializer(newValue));\n setStoredValue(newValue);\n window.dispatchEvent(new StorageEvent(\"session-storage\", { key }));\n } catch (error) {\n console.warn(`Error setting sessionStorage key \\u201C${key}\\u201D:`, error);\n }\n });\n const removeValue = useEventCallback(() => {\n if (IS_SERVER6) {\n console.warn(\n `Tried removing sessionStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n window.sessionStorage.removeItem(key);\n setStoredValue(defaultValue);\n window.dispatchEvent(new StorageEvent(\"session-storage\", { key }));\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"session-storage\", handleStorageChange);\n return [storedValue, setValue, removeValue];\n}\nfunction useStep(maxStep) {\n const [currentStep, setCurrentStep] = useState(1);\n const canGoToNextStep = currentStep + 1 <= maxStep;\n const canGoToPrevStep = currentStep - 1 > 0;\n const setStep = useCallback(\n (step) => {\n const newStep = step instanceof Function ? step(currentStep) : step;\n if (newStep >= 1 && newStep <= maxStep) {\n setCurrentStep(newStep);\n return;\n }\n throw new Error(\"Step not valid\");\n },\n [maxStep, currentStep]\n );\n const goToNextStep = useCallback(() => {\n if (canGoToNextStep) {\n setCurrentStep((step) => step + 1);\n }\n }, [canGoToNextStep]);\n const goToPrevStep = useCallback(() => {\n if (canGoToPrevStep) {\n setCurrentStep((step) => step - 1);\n }\n }, [canGoToPrevStep]);\n const reset = useCallback(() => {\n setCurrentStep(1);\n }, []);\n return [\n currentStep,\n {\n goToNextStep,\n goToPrevStep,\n canGoToNextStep,\n canGoToPrevStep,\n setStep,\n reset\n }\n ];\n}\n\n// src/useTernaryDarkMode/useTernaryDarkMode.ts\nvar COLOR_SCHEME_QUERY2 = \"(prefers-color-scheme: dark)\";\nvar LOCAL_STORAGE_KEY2 = \"usehooks-ts-ternary-dark-mode\";\nfunction useTernaryDarkMode({\n defaultValue = \"system\",\n localStorageKey = LOCAL_STORAGE_KEY2,\n initializeWithValue = true\n} = {}) {\n const isDarkOS = useMediaQuery(COLOR_SCHEME_QUERY2, { initializeWithValue });\n const [mode, setMode] = useLocalStorage(localStorageKey, defaultValue, {\n initializeWithValue\n });\n const isDarkMode = mode === \"dark\" || mode === \"system\" && isDarkOS;\n const toggleTernaryDarkMode = () => {\n const modes = [\"light\", \"system\", \"dark\"];\n setMode((prevMode) => {\n const nextIndex = (modes.indexOf(prevMode) + 1) % modes.length;\n return modes[nextIndex];\n });\n };\n return {\n isDarkMode,\n ternaryDarkMode: mode,\n setTernaryDarkMode: setMode,\n toggleTernaryDarkMode\n };\n}\nfunction useTimeout(callback, delay) {\n const savedCallback = useRef(callback);\n useIsomorphicLayoutEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n useEffect(() => {\n if (!delay && delay !== 0) {\n return;\n }\n const id = setTimeout(() => {\n savedCallback.current();\n }, delay);\n return () => {\n clearTimeout(id);\n };\n }, [delay]);\n}\nfunction useToggle(defaultValue) {\n const [value, setValue] = useState(!!defaultValue);\n const toggle = useCallback(() => {\n setValue((x) => !x);\n }, []);\n return [value, toggle, setValue];\n}\nvar IS_SERVER7 = typeof window === \"undefined\";\nfunction useWindowSize(options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER7) {\n initializeWithValue = false;\n }\n const [windowSize, setWindowSize] = useState(() => {\n if (initializeWithValue) {\n return {\n width: window.innerWidth,\n height: window.innerHeight\n };\n }\n return {\n width: void 0,\n height: void 0\n };\n });\n const debouncedSetWindowSize = useDebounceCallback(\n setWindowSize,\n options.debounceDelay\n );\n function handleSize() {\n const setSize = options.debounceDelay ? debouncedSetWindowSize : setWindowSize;\n setSize({\n width: window.innerWidth,\n height: window.innerHeight\n });\n }\n useEventListener(\"resize\", handleSize);\n useIsomorphicLayoutEffect(() => {\n handleSize();\n }, []);\n return windowSize;\n}\n\nexport { useBoolean, useClickAnyWhere, useCopyToClipboard, useCountdown, useCounter, useDarkMode, useDebounceCallback, useDebounceValue, useDocumentTitle, useEventCallback, useEventListener, useHover, useIntersectionObserver, useInterval, useIsClient, useIsMounted, useIsomorphicLayoutEffect, useLocalStorage, useMap, useMediaQuery, useOnClickOutside, useReadLocalStorage, useResizeObserver, useScreen, useScript, useScrollLock, useSessionStorage, useStep, useTernaryDarkMode, useTimeout, useToggle, useUnmount, useWindowSize };\n"],"names":["useCopyToClipboard","copiedText","setCopiedText","useState","copy","useCallback","text","error"],"mappings":";;AAgDA,SAASA,IAAqB;AAC5B,QAAM,CAACC,GAAYC,CAAa,IAAIC,EAAS,IAAI,GAC3CC,IAAOC,EAAY,OAAOC,MAAS;AACvC,QAAI,EAAE,aAAa,QAAgB,UAAU;AAC3C,qBAAQ,KAAK,yBAAyB,GAC/B;AAET,QAAI;AACF,mBAAM,UAAU,UAAU,UAAUA,CAAI,GACxCJ,EAAcI,CAAI,GACX;AAAA,IACR,SAAQC,GAAO;AACd,qBAAQ,KAAK,eAAeA,CAAK,GACjCL,EAAc,IAAI,GACX;AAAA,IACb;AAAA,EACG,GAAE,EAAE;AACL,SAAO,CAACD,GAAYG,CAAI;AAC1B;","x_google_ignoreList":[0]}
@@ -1,12 +1,7 @@
1
- import { styleHookSingleton as o } from "./index.es446.js";
2
- var s = function() {
3
- var e = o(), n = function(t) {
4
- var r = t.styles, l = t.dynamic;
5
- return e(r, l), null;
6
- };
7
- return n;
8
- };
1
+ function i(n, t) {
2
+ return typeof n == "function" ? n(t) : n && (n.current = t), n;
3
+ }
9
4
  export {
10
- s as styleSingleton
5
+ i as assignRef
11
6
  };
12
7
  //# sourceMappingURL=index.es439.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es439.js","sources":["../node_modules/react-style-singleton/dist/es2015/component.js"],"sourcesContent":["import { styleHookSingleton } from './hook';\n/**\n * create a Component to add styles on demand\n * - styles are added when first instance is mounted\n * - styles are removed when the last instance is unmounted\n * - changing styles in runtime does nothing unless dynamic is set. But with multiple components that can lead to the undefined behavior\n */\nexport var styleSingleton = function () {\n var useStyle = styleHookSingleton();\n var Sheet = function (_a) {\n var styles = _a.styles, dynamic = _a.dynamic;\n useStyle(styles, dynamic);\n return null;\n };\n return Sheet;\n};\n"],"names":["styleSingleton","useStyle","styleHookSingleton","Sheet","_a","styles","dynamic"],"mappings":";AAOU,IAACA,IAAiB,WAAY;AACpC,MAAIC,IAAWC,EAAoB,GAC/BC,IAAQ,SAAUC,GAAI;AACtB,QAAIC,IAASD,EAAG,QAAQE,IAAUF,EAAG;AACrC,WAAAH,EAASI,GAAQC,CAAO,GACjB;AAAA,EACV;AACD,SAAOH;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es439.js","sources":["../node_modules/use-callback-ref/dist/es2015/assignRef.js"],"sourcesContent":["/**\n * Assigns a value for a given ref, no matter of the ref format\n * @param {RefObject} ref - a callback function or ref object\n * @param value - a new value\n *\n * @see https://github.com/theKashey/use-callback-ref#assignref\n * @example\n * const refObject = useRef();\n * const refFn = (ref) => {....}\n *\n * assignRef(refObject, \"refValue\");\n * assignRef(refFn, \"refValue\");\n */\nexport function assignRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n }\n else if (ref) {\n ref.current = value;\n }\n return ref;\n}\n"],"names":["assignRef","ref","value"],"mappings":"AAaO,SAASA,EAAUC,GAAKC,GAAO;AAClC,SAAI,OAAOD,KAAQ,aACfA,EAAIC,CAAK,IAEJD,MACLA,EAAI,UAAUC,IAEXD;AACX;","x_google_ignoreList":[0]}
@@ -1,17 +1,26 @@
1
- var r = !1;
2
- if (typeof window < "u")
3
- try {
4
- var e = Object.defineProperty({}, "passive", {
5
- get: function() {
6
- return r = !0, !0;
1
+ import { useState as u } from "react";
2
+ function n(c, r) {
3
+ var e = u(function() {
4
+ return {
5
+ // value
6
+ value: c,
7
+ // last callback
8
+ callback: r,
9
+ // "memoized" public interface
10
+ facade: {
11
+ get current() {
12
+ return e.value;
13
+ },
14
+ set current(a) {
15
+ var t = e.value;
16
+ t !== a && (e.value = a, e.callback(a, t));
17
+ }
7
18
  }
8
- });
9
- window.addEventListener("test", e, e), window.removeEventListener("test", e, e);
10
- } catch {
11
- r = !1;
12
- }
13
- var a = r ? { passive: !1 } : !1;
19
+ };
20
+ })[0];
21
+ return e.callback = r, e.facade;
22
+ }
14
23
  export {
15
- a as nonPassive
24
+ n as useCallbackRef
16
25
  };
17
26
  //# sourceMappingURL=index.es440.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es440.js","sources":["../node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js"],"sourcesContent":["var passiveSupported = false;\nif (typeof window !== 'undefined') {\n try {\n var options = Object.defineProperty({}, 'passive', {\n get: function () {\n passiveSupported = true;\n return true;\n },\n });\n // @ts-ignore\n window.addEventListener('test', options, options);\n // @ts-ignore\n window.removeEventListener('test', options, options);\n }\n catch (err) {\n passiveSupported = false;\n }\n}\nexport var nonPassive = passiveSupported ? { passive: false } : false;\n"],"names":["passiveSupported","options","nonPassive"],"mappings":"AAAA,IAAIA,IAAmB;AACvB,IAAI,OAAO,SAAW;AAClB,MAAI;AACA,QAAIC,IAAU,OAAO,eAAe,CAAA,GAAI,WAAW;AAAA,MAC/C,KAAK,WAAY;AACb,eAAAD,IAAmB,IACZ;AAAA,MACV;AAAA,IACb,CAAS;AAED,WAAO,iBAAiB,QAAQC,GAASA,CAAO,GAEhD,OAAO,oBAAoB,QAAQA,GAASA,CAAO;AAAA,EAC3D,QACgB;AACR,IAAAD,IAAmB;AAAA,EAC3B;AAEU,IAACE,IAAaF,IAAmB,EAAE,SAAS,GAAK,IAAK;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es440.js","sources":["../node_modules/use-callback-ref/dist/es2015/useRef.js"],"sourcesContent":["import { useState } from 'react';\n/**\n * creates a MutableRef with ref change callback\n * @param initialValue - initial ref value\n * @param {Function} callback - a callback to run when value changes\n *\n * @example\n * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);\n * ref.current = 1;\n * // prints 0 -> 1\n *\n * @see https://reactjs.org/docs/hooks-reference.html#useref\n * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref\n * @returns {MutableRefObject}\n */\nexport function useCallbackRef(initialValue, callback) {\n var ref = useState(function () { return ({\n // value\n value: initialValue,\n // last callback\n callback: callback,\n // \"memoized\" public interface\n facade: {\n get current() {\n return ref.value;\n },\n set current(value) {\n var last = ref.value;\n if (last !== value) {\n ref.value = value;\n ref.callback(value, last);\n }\n },\n },\n }); })[0];\n // update callback\n ref.callback = callback;\n return ref.facade;\n}\n"],"names":["useCallbackRef","initialValue","callback","ref","useState","value","last"],"mappings":";AAeO,SAASA,EAAeC,GAAcC,GAAU;AACnD,MAAIC,IAAMC,EAAS,WAAY;AAAE,WAAQ;AAAA;AAAA,MAErC,OAAOH;AAAA;AAAA,MAEP,UAAUC;AAAA;AAAA,MAEV,QAAQ;AAAA,QACJ,IAAI,UAAU;AACV,iBAAOC,EAAI;AAAA,QACd;AAAA,QACD,IAAI,QAAQE,GAAO;AACf,cAAIC,IAAOH,EAAI;AACf,UAAIG,MAASD,MACTF,EAAI,QAAQE,GACZF,EAAI,SAASE,GAAOC,CAAI;AAAA,QAE/B;AAAA,MACJ;AAAA,IACT;AAAA,EAAO,CAAE,EAAE,CAAC;AAER,SAAAH,EAAI,WAAWD,GACRC,EAAI;AACf;","x_google_ignoreList":[0]}
@@ -1,4 +1,4 @@
1
- import { getDefaultExportFromCjs as r } from "./index.es374.js";
1
+ import { getDefaultExportFromCjs as r } from "./index.es376.js";
2
2
  import { __require as s } from "./index.es466.js";
3
3
  var e = s();
4
4
  const t = /* @__PURE__ */ r(e);
@@ -1,5 +1,5 @@
1
- import { asChildPropDef as r } from "./index.es469.js";
2
- import { radiusPropDef as o } from "./index.es470.js";
1
+ import { asChildPropDef as r } from "./index.es470.js";
2
+ import { radiusPropDef as o } from "./index.es471.js";
3
3
  const s = ["1", "2", "3"], l = { ...r, size: { values: s, default: "1" }, ...o, scrollbars: { default: "both" } };
4
4
  export {
5
5
  l as scrollAreaPropDefs
@@ -1,6 +1,6 @@
1
- import { breakpoints as l } from "./index.es471.js";
2
- import { hasOwnProperty as p } from "./index.es472.js";
3
- import { isResponsiveObject as m } from "./index.es473.js";
1
+ import { breakpoints as l } from "./index.es472.js";
2
+ import { hasOwnProperty as p } from "./index.es473.js";
3
+ import { isResponsiveObject as m } from "./index.es474.js";
4
4
  function V({ className: n, customProperties: i, ...t }) {
5
5
  const u = v({ allowArbitraryValues: !0, className: n, ...t }), s = d({ customProperties: i, ...t });
6
6
  return [u, s];
@@ -1,13 +1,13 @@
1
1
  import * as c from "react";
2
- import { Primitive as L } from "./index.es382.js";
3
- import { Presence as O } from "./index.es391.js";
4
- import { createContextScope as le } from "./index.es380.js";
5
- import { useComposedRefs as T } from "./index.es379.js";
6
- import { useCallbackRef as x } from "./index.es415.js";
7
- import { useDirection as ce } from "./index.es412.js";
8
- import { useLayoutEffect as se } from "./index.es410.js";
9
- import { clamp as ie } from "./index.es474.js";
10
- import { composeEventHandlers as C } from "./index.es378.js";
2
+ import { Primitive as L } from "./index.es384.js";
3
+ import { Presence as O } from "./index.es397.js";
4
+ import { createContextScope as le } from "./index.es382.js";
5
+ import { useComposedRefs as T } from "./index.es381.js";
6
+ import { useCallbackRef as x } from "./index.es399.js";
7
+ import { useDirection as ce } from "./index.es391.js";
8
+ import { useLayoutEffect as se } from "./index.es388.js";
9
+ import { clamp as ie } from "./index.es475.js";
10
+ import { composeEventHandlers as C } from "./index.es380.js";
11
11
  import { j as b } from "./index.es208.js";
12
12
  function ae(e, t) {
13
13
  return c.useReducer((r, l) => t[r][l] ?? r, e);
@@ -1,5 +1,3 @@
1
- const o = { asChild: { type: "boolean" } };
2
- export {
3
- o as asChildPropDef
4
- };
1
+ import { __require as e } from "./index.es476.js";
2
+ e();
5
3
  //# sourceMappingURL=index.es469.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es469.js","sources":["../node_modules/@radix-ui/themes/dist/esm/props/as-child.prop.js"],"sourcesContent":["const o={asChild:{type:\"boolean\"}};export{o as asChildPropDef};\n//# sourceMappingURL=as-child.prop.js.map\n"],"names":[],"mappings":"AAAK,MAAC,IAAE,EAAC,SAAQ,EAAC,MAAK,UAAS,EAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es469.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -1,6 +1,5 @@
1
- const e = ["none", "small", "medium", "large", "full"], a = { radius: { type: "enum", values: e, default: void 0 } };
1
+ const o = { asChild: { type: "boolean" } };
2
2
  export {
3
- e as radii,
4
- a as radiusPropDef
3
+ o as asChildPropDef
5
4
  };
6
5
  //# sourceMappingURL=index.es470.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es470.js","sources":["../node_modules/@radix-ui/themes/dist/esm/props/radius.prop.js"],"sourcesContent":["const e=[\"none\",\"small\",\"medium\",\"large\",\"full\"],r={radius:{type:\"enum\",values:e,default:void 0}};export{e as radii,r as radiusPropDef};\n//# sourceMappingURL=radius.prop.js.map\n"],"names":["r"],"mappings":"AAAK,MAAC,IAAE,CAAC,QAAO,SAAQ,UAAS,SAAQ,MAAM,GAAEA,IAAE,EAAC,QAAO,EAAC,MAAK,QAAO,QAAO,GAAE,SAAQ,OAAM,EAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es470.js","sources":["../node_modules/@radix-ui/themes/dist/esm/props/as-child.prop.js"],"sourcesContent":["const o={asChild:{type:\"boolean\"}};export{o as asChildPropDef};\n//# sourceMappingURL=as-child.prop.js.map\n"],"names":[],"mappings":"AAAK,MAAC,IAAE,EAAC,SAAQ,EAAC,MAAK,UAAS,EAAC;","x_google_ignoreList":[0]}
@@ -1,5 +1,6 @@
1
- const s = ["initial", "xs", "sm", "md", "lg", "xl"];
1
+ const e = ["none", "small", "medium", "large", "full"], a = { radius: { type: "enum", values: e, default: void 0 } };
2
2
  export {
3
- s as breakpoints
3
+ e as radii,
4
+ a as radiusPropDef
4
5
  };
5
6
  //# sourceMappingURL=index.es471.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es471.js","sources":["../node_modules/@radix-ui/themes/dist/esm/props/prop-def.js"],"sourcesContent":["const e=[\"initial\",\"xs\",\"sm\",\"md\",\"lg\",\"xl\"];export{e as breakpoints};\n//# sourceMappingURL=prop-def.js.map\n"],"names":["e"],"mappings":"AAAK,MAACA,IAAE,CAAC,WAAU,MAAK,MAAK,MAAK,MAAK,IAAI;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es471.js","sources":["../node_modules/@radix-ui/themes/dist/esm/props/radius.prop.js"],"sourcesContent":["const e=[\"none\",\"small\",\"medium\",\"large\",\"full\"],r={radius:{type:\"enum\",values:e,default:void 0}};export{e as radii,r as radiusPropDef};\n//# sourceMappingURL=radius.prop.js.map\n"],"names":["r"],"mappings":"AAAK,MAAC,IAAE,CAAC,QAAO,SAAQ,UAAS,SAAQ,MAAM,GAAEA,IAAE,EAAC,QAAO,EAAC,MAAK,QAAO,QAAO,GAAE,SAAQ,OAAM,EAAC;","x_google_ignoreList":[0]}
@@ -1,7 +1,5 @@
1
- function e(r, t) {
2
- return Object.prototype.hasOwnProperty.call(r, t);
3
- }
1
+ const s = ["initial", "xs", "sm", "md", "lg", "xl"];
4
2
  export {
5
- e as hasOwnProperty
3
+ s as breakpoints
6
4
  };
7
5
  //# sourceMappingURL=index.es472.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es472.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.js"],"sourcesContent":["function e(n,r){return Object.prototype.hasOwnProperty.call(n,r)}export{e as hasOwnProperty};\n//# sourceMappingURL=has-own-property.js.map\n"],"names":["n","r"],"mappings":"AAAA,SAAS,EAAEA,GAAEC,GAAE;AAAC,SAAO,OAAO,UAAU,eAAe,KAAKD,GAAEC,CAAC;AAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es472.js","sources":["../node_modules/@radix-ui/themes/dist/esm/props/prop-def.js"],"sourcesContent":["const e=[\"initial\",\"xs\",\"sm\",\"md\",\"lg\",\"xl\"];export{e as breakpoints};\n//# sourceMappingURL=prop-def.js.map\n"],"names":["e"],"mappings":"AAAK,MAACA,IAAE,CAAC,WAAU,MAAK,MAAK,MAAK,MAAK,IAAI;","x_google_ignoreList":[0]}
@@ -1,8 +1,7 @@
1
- import { breakpoints as s } from "./index.es471.js";
2
- function i(e) {
3
- return typeof e == "object" && Object.keys(e).some((o) => s.includes(o));
1
+ function e(r, t) {
2
+ return Object.prototype.hasOwnProperty.call(r, t);
4
3
  }
5
4
  export {
6
- i as isResponsiveObject
5
+ e as hasOwnProperty
7
6
  };
8
7
  //# sourceMappingURL=index.es473.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es473.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/is-responsive-object.js"],"sourcesContent":["import{breakpoints as o}from\"../props/prop-def.js\";function i(e){return typeof e==\"object\"&&Object.keys(e).some(s=>o.includes(s))}export{i as isResponsiveObject};\n//# sourceMappingURL=is-responsive-object.js.map\n"],"names":["e","s","o"],"mappings":";AAAmD,SAAS,EAAEA,GAAE;AAAC,SAAO,OAAOA,KAAG,YAAU,OAAO,KAAKA,CAAC,EAAE,KAAK,CAAAC,MAAGC,EAAE,SAASD,CAAC,CAAC;AAAC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es473.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/has-own-property.js"],"sourcesContent":["function e(n,r){return Object.prototype.hasOwnProperty.call(n,r)}export{e as hasOwnProperty};\n//# sourceMappingURL=has-own-property.js.map\n"],"names":["n","r"],"mappings":"AAAA,SAAS,EAAEA,GAAEC,GAAE;AAAC,SAAO,OAAO,UAAU,eAAe,KAAKD,GAAEC,CAAC;AAAC;","x_google_ignoreList":[0]}
@@ -1,7 +1,8 @@
1
- function m(t, [a, n]) {
2
- return Math.min(n, Math.max(a, t));
1
+ import { breakpoints as s } from "./index.es472.js";
2
+ function i(e) {
3
+ return typeof e == "object" && Object.keys(e).some((o) => s.includes(o));
3
4
  }
4
5
  export {
5
- m as clamp
6
+ i as isResponsiveObject
6
7
  };
7
8
  //# sourceMappingURL=index.es474.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es474.js","sources":["../node_modules/@radix-ui/number/dist/index.mjs"],"sourcesContent":["// packages/core/number/src/number.ts\nfunction clamp(value, [min, max]) {\n return Math.min(max, Math.max(min, value));\n}\nexport {\n clamp\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["clamp","value","min","max"],"mappings":"AACA,SAASA,EAAMC,GAAO,CAACC,GAAKC,CAAG,GAAG;AAChC,SAAO,KAAK,IAAIA,GAAK,KAAK,IAAID,GAAKD,CAAK,CAAC;AAC3C;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.es474.js","sources":["../node_modules/@radix-ui/themes/dist/esm/helpers/is-responsive-object.js"],"sourcesContent":["import{breakpoints as o}from\"../props/prop-def.js\";function i(e){return typeof e==\"object\"&&Object.keys(e).some(s=>o.includes(s))}export{i as isResponsiveObject};\n//# sourceMappingURL=is-responsive-object.js.map\n"],"names":["e","s","o"],"mappings":";AAAmD,SAAS,EAAEA,GAAE;AAAC,SAAO,OAAOA,KAAG,YAAU,OAAO,KAAKA,CAAC,EAAE,KAAK,CAAAC,MAAGC,EAAE,SAASD,CAAC,CAAC;AAAC;","x_google_ignoreList":[0]}
@@ -1,3 +1,7 @@
1
- import { __require as e } from "./index.es476.js";
2
- e();
1
+ function m(t, [a, n]) {
2
+ return Math.min(n, Math.max(a, t));
3
+ }
4
+ export {
5
+ m as clamp
6
+ };
3
7
  //# sourceMappingURL=index.es475.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es475.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
1
+ {"version":3,"file":"index.es475.js","sources":["../node_modules/@radix-ui/number/dist/index.mjs"],"sourcesContent":["// packages/core/number/src/number.ts\nfunction clamp(value, [min, max]) {\n return Math.min(max, Math.max(min, value));\n}\nexport {\n clamp\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["clamp","value","min","max"],"mappings":"AACA,SAASA,EAAMC,GAAO,CAACC,GAAKC,CAAG,GAAG;AAChC,SAAO,KAAK,IAAIA,GAAK,KAAK,IAAID,GAAKD,CAAK,CAAC;AAC3C;","x_google_ignoreList":[0]}
@@ -1,4 +1,4 @@
1
- import { commonjsGlobal as g } from "./index.es374.js";
1
+ import { commonjsGlobal as g } from "./index.es376.js";
2
2
  var h, L;
3
3
  function Y() {
4
4
  if (L) return h;
@@ -1,5 +1,5 @@
1
1
  import { j as s } from "./index.es208.js";
2
- import { createColorClasses as l } from "./index.es225.js";
2
+ import { createColorClasses as l } from "./index.es223.js";
3
3
  import { clsx as x } from "./index.es210.js";
4
4
  const p = ({
5
5
  initials: e,
package/dist/index.es6.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { j as p } from "./index.es208.js";
2
2
  import { clsx as l } from "./index.es210.js";
3
3
  import { useMemo as u } from "react";
4
- import { createSpacingClasses as x } from "./index.es223.js";
4
+ import { createSpacingClasses as x } from "./index.es224.js";
5
5
  import './components/ui/Container/Container.css';/* empty css */
6
6
  const v = ({
7
7
  as: o,
package/dist/index.es7.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { j as a } from "./index.es208.js";
2
2
  import { useMemo as i } from "react";
3
3
  import { clsx as m } from "./index.es210.js";
4
- import { createSpacingClasses as c } from "./index.es223.js";
4
+ import { createSpacingClasses as c } from "./index.es224.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.es208.js";
2
2
  import { useMemo as s } from "react";
3
3
  import { clsx as x } from "./index.es210.js";
4
- import { createSpacingClasses as f } from "./index.es223.js";
4
+ import { createSpacingClasses as f } from "./index.es224.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.es208.js";
2
2
  import { useMemo as y } from "react";
3
3
  import { clsx as g } from "./index.es210.js";
4
- import { createSpacingClasses as j } from "./index.es223.js";
5
- import { createColorClasses as u } from "./index.es225.js";
4
+ import { createSpacingClasses as j } from "./index.es224.js";
5
+ import { createColorClasses as u } from "./index.es223.js";
6
6
  import { createTypographyClasses as h } from "./index.es226.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.682",
3
+ "version": "1.0.683",
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=["bg","text","color","border"],o=e=>t.map(r=>e[r]?r==="color"?`text-${e[r]}`:`${r}-${e[r]}`:"").filter(Boolean);exports.createColorClasses=o;
2
- //# sourceMappingURL=index.cjs225.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs225.js","sources":["../src/theme/colors.ts"],"sourcesContent":["export type ColorKeys =\n | \"primary\"\n | \"white\"\n | \"status-success\"\n | \"warning\"\n | \"error\"\n | \"muted\"\n | \"emphasis\"\n | \"slate-20\"\n | \"slate-14\"\n | \"slate-28\"\n | \"border-divider\"\n | \"transparent\"\n | \"blue-30\"\n | \"disabled\"\n | \"lightblue-a01\"\n | \"lightblue-a02\"\n | \"lightblue-a03\"\n | \"secondary\"\n | \"blue-48\";\n\nexport type ColorProps = {\n bg?: ColorKeys;\n text?: ColorKeys;\n color?: ColorKeys;\n border?: ColorKeys;\n};\n\nexport type ColorPropsKeys = keyof ColorProps;\nconst colorPropsKeys: ColorPropsKeys[] = [\"bg\", \"text\", \"color\", \"border\"];\n\nexport const createColorClasses = <TProps extends ColorProps>(\n props: TProps,\n) => {\n return colorPropsKeys\n .map((key) => {\n if (!props[key]) return \"\";\n\n if (key === \"color\") return `text-${props[key]}`;\n return `${key}-${props[key]}`;\n })\n .filter(Boolean);\n};\n"],"names":["colorPropsKeys","createColorClasses","props","key"],"mappings":"gFA6BA,MAAMA,EAAmC,CAAC,KAAM,OAAQ,QAAS,QAAQ,EAE5DC,EACXC,GAEOF,EACJ,IAAKG,GACCD,EAAMC,CAAG,EAEVA,IAAQ,QAAgB,QAAQD,EAAMC,CAAG,CAAC,GACvC,GAAGA,CAAG,IAAID,EAAMC,CAAG,CAAC,GAHH,EAIzB,EACA,OAAO,OAAO"}