@orion-ds/react 4.6.6 → 4.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (442) hide show
  1. package/dist/blocks/index.d 2.ts +9 -0
  2. package/dist/blocks/index.d.ts 2.map +1 -0
  3. package/dist/blocks 2.css +76 -0
  4. package/dist/components/index.d 4.ts +151 -0
  5. package/dist/components/index.d.ts 4.map +1 -0
  6. package/dist/contexts/ThemeContext.d 4.ts +70 -0
  7. package/dist/contexts/ThemeContext.d.ts 4.map +1 -0
  8. package/dist/contexts/index.d 4.ts +8 -0
  9. package/dist/contexts/index.d.ts 4.map +1 -0
  10. package/dist/dnd.d 2.ts +16 -0
  11. package/dist/dnd.d.ts 2.map +1 -0
  12. package/dist/docs/DocComponents.d 3.ts +61 -0
  13. package/dist/docs/DocComponents.d.ts 3.map +1 -0
  14. package/dist/editor.d 2.ts +13 -0
  15. package/dist/editor.d.ts 2.map +1 -0
  16. package/dist/examples/LandingPage.example.d 4.ts +47 -0
  17. package/dist/examples/LandingPage.example.d.ts 4.map +1 -0
  18. package/dist/examples/index.d 4.ts +22 -0
  19. package/dist/examples/index.d.ts 4.map +1 -0
  20. package/dist/hooks/index.d 4.ts +20 -0
  21. package/dist/hooks/index.d.ts 4.map +1 -0
  22. package/dist/hooks/useClickOutside.d 4.ts +19 -0
  23. package/dist/hooks/useClickOutside.d.ts 4.map +1 -0
  24. package/dist/hooks/useCopyToClipboard.d 4.ts +72 -0
  25. package/dist/hooks/useCopyToClipboard.d.ts 4.map +1 -0
  26. package/dist/hooks/useDebounce.d 4.ts +58 -0
  27. package/dist/hooks/useDebounce.d.ts 4.map +1 -0
  28. package/dist/hooks/useDisclosure.d 4.ts +86 -0
  29. package/dist/hooks/useDisclosure.d.ts 4.map +1 -0
  30. package/dist/hooks/useKeyboard.d 4.ts +101 -0
  31. package/dist/hooks/useKeyboard.d.ts 4.map +1 -0
  32. package/dist/hooks/useLocalStorage.d 4.ts +48 -0
  33. package/dist/hooks/useLocalStorage.d.ts 4.map +1 -0
  34. package/dist/hooks/useMediaQuery.d 4.ts +43 -0
  35. package/dist/hooks/useMediaQuery.d.ts 4.map +1 -0
  36. package/dist/hooks/useTheme.d 4.ts +73 -0
  37. package/dist/hooks/useTheme.d.ts 4.map +1 -0
  38. package/dist/index 3.mjs +275 -0
  39. package/dist/index 4.cjs +1 -0
  40. package/dist/index.d 2.ts +171 -0
  41. package/dist/index.d.ts 2.map +1 -0
  42. package/dist/index10 2.mjs +58 -0
  43. package/dist/index10 3.cjs +1 -0
  44. package/dist/index100 3.cjs +1 -0
  45. package/dist/index100 3.mjs +23 -0
  46. package/dist/index101 2.mjs +29 -0
  47. package/dist/index101 3.cjs +1 -0
  48. package/dist/index102 2.mjs +45 -0
  49. package/dist/index102 3.cjs +1 -0
  50. package/dist/index103 3.cjs +1 -0
  51. package/dist/index103 3.mjs +67 -0
  52. package/dist/index104 2.cjs +1 -0
  53. package/dist/index104 2.mjs +65 -0
  54. package/dist/index105 2.cjs +1 -0
  55. package/dist/index105 3.mjs +27 -0
  56. package/dist/index106 2.cjs +1 -0
  57. package/dist/index106 2.mjs +39 -0
  58. package/dist/index107 2.cjs +1 -0
  59. package/dist/index107 3.mjs +21 -0
  60. package/dist/index108 2.mjs +33 -0
  61. package/dist/index108 4.cjs +1 -0
  62. package/dist/index109 2.cjs +1 -0
  63. package/dist/index109 4.mjs +39 -0
  64. package/dist/index11 2.mjs +20 -0
  65. package/dist/index11 4.cjs +1 -0
  66. package/dist/index110 2.cjs +1 -0
  67. package/dist/index110 2.mjs +31 -0
  68. package/dist/index111 2.mjs +49 -0
  69. package/dist/index111 3.cjs +1 -0
  70. package/dist/index112 2.cjs +1 -0
  71. package/dist/index112 2.mjs +36 -0
  72. package/dist/index113 2.cjs +1 -0
  73. package/dist/index113 2.mjs +43 -0
  74. package/dist/index114 2.cjs +1 -0
  75. package/dist/index114 2.mjs +27 -0
  76. package/dist/index115 3.mjs +237 -0
  77. package/dist/index115 4.cjs +1 -0
  78. package/dist/index116 3.cjs +1 -0
  79. package/dist/index116 3.mjs +36 -0
  80. package/dist/index117 2.mjs +46 -0
  81. package/dist/index117 4.cjs +1 -0
  82. package/dist/index118 2.cjs +1 -0
  83. package/dist/index118 2.mjs +173 -0
  84. package/dist/index119 2.cjs +1 -0
  85. package/dist/index119 2.mjs +188 -0
  86. package/dist/index120 2.mjs +31 -0
  87. package/dist/index120 3.cjs +1 -0
  88. package/dist/index121 2.cjs +1 -0
  89. package/dist/index121 2.mjs +93 -0
  90. package/dist/index122 2.mjs +55 -0
  91. package/dist/index122 4.cjs +1 -0
  92. package/dist/index123 2.cjs +1 -0
  93. package/dist/index123 3.mjs +69 -0
  94. package/dist/index124 2.mjs +127 -0
  95. package/dist/index124 4.cjs +1 -0
  96. package/dist/index125 3.mjs +111 -0
  97. package/dist/index125 4.cjs +1 -0
  98. package/dist/index126 4.cjs +1 -0
  99. package/dist/index126 4.mjs +114 -0
  100. package/dist/index127 2.mjs +125 -0
  101. package/dist/index127 4.cjs +1 -0
  102. package/dist/index128 2.cjs +1 -0
  103. package/dist/index128 2.mjs +217 -0
  104. package/dist/index129 2.cjs +1 -0
  105. package/dist/index129 2.mjs +109 -0
  106. package/dist/index13 2.mjs +84 -0
  107. package/dist/index13 4.cjs +1 -0
  108. package/dist/index130 2.cjs +1 -0
  109. package/dist/index130 2.mjs +68 -0
  110. package/dist/index131 2.cjs +1 -0
  111. package/dist/index131 3.mjs +45 -0
  112. package/dist/index132 3.cjs +1 -0
  113. package/dist/index132 4.mjs +31 -0
  114. package/dist/index133 3.mjs +33 -0
  115. package/dist/index133 4.cjs +1 -0
  116. package/dist/index134 2.mjs +49 -0
  117. package/dist/index134 3.cjs +1 -0
  118. package/dist/index135 3.cjs +1 -0
  119. package/dist/index135 4.mjs +15 -0
  120. package/dist/index136 2.mjs +47 -0
  121. package/dist/index136 3.cjs +1 -0
  122. package/dist/index137 2.mjs +58 -0
  123. package/dist/index137 3.cjs +1 -0
  124. package/dist/index138 2.mjs +23 -0
  125. package/dist/index138 4.cjs +1 -0
  126. package/dist/index139 2.mjs +21 -0
  127. package/dist/index139 3.cjs +1 -0
  128. package/dist/index14 2.mjs +71 -0
  129. package/dist/index14 4.cjs +1 -0
  130. package/dist/index140 2.cjs +1 -0
  131. package/dist/index140 4.mjs +27 -0
  132. package/dist/index141 2.cjs +1 -0
  133. package/dist/index141 2.mjs +27 -0
  134. package/dist/index142 3.mjs +56 -0
  135. package/dist/index142 4.cjs +1 -0
  136. package/dist/index143 2.mjs +47 -0
  137. package/dist/index143 3.cjs +1 -0
  138. package/dist/index144 2.mjs +31 -0
  139. package/dist/index144 4.cjs +1 -0
  140. package/dist/index145 2.cjs +1 -0
  141. package/dist/index145 3.mjs +70 -0
  142. package/dist/index146 2.cjs +1 -0
  143. package/dist/index146 3.mjs +36 -0
  144. package/dist/index147 2.mjs +23 -0
  145. package/dist/index147 4.cjs +1 -0
  146. package/dist/index148 2.mjs +25 -0
  147. package/dist/index148 4.cjs +1 -0
  148. package/dist/index149 2.cjs +1 -0
  149. package/dist/index149 3.mjs +55 -0
  150. package/dist/index15 2.cjs +1 -0
  151. package/dist/index15 3.mjs +135 -0
  152. package/dist/index150 2.cjs +1 -0
  153. package/dist/index150 3.mjs +57 -0
  154. package/dist/index151 3.cjs +1 -0
  155. package/dist/index151 3.mjs +49 -0
  156. package/dist/index152 2.cjs +1 -0
  157. package/dist/index152 2.mjs +79 -0
  158. package/dist/index153 2.mjs +17 -0
  159. package/dist/index153 3.cjs +1 -0
  160. package/dist/index154 2.mjs +45 -0
  161. package/dist/index154 3.cjs +1 -0
  162. package/dist/index155 2.cjs +1 -0
  163. package/dist/index155 3.mjs +43 -0
  164. package/dist/index156 2.cjs +1 -0
  165. package/dist/index156 3.mjs +38 -0
  166. package/dist/index157 2.cjs +1 -0
  167. package/dist/index157 3.mjs +31 -0
  168. package/dist/index158 2.cjs +1 -0
  169. package/dist/index158 2.mjs +43 -0
  170. package/dist/index159 2.mjs +23 -0
  171. package/dist/index159 3.cjs +1 -0
  172. package/dist/index16 3.cjs +1 -0
  173. package/dist/index16 3.mjs +106 -0
  174. package/dist/index160 2.cjs +1 -0
  175. package/dist/index160 3.mjs +15 -0
  176. package/dist/index161 2.cjs +1 -0
  177. package/dist/index161 3.mjs +60 -0
  178. package/dist/index162 2.cjs +1 -0
  179. package/dist/index162 3.mjs +35 -0
  180. package/dist/index163 2.cjs +1 -0
  181. package/dist/index163 2.mjs +19 -0
  182. package/dist/index164 2.cjs +1 -0
  183. package/dist/index164 2.mjs +31 -0
  184. package/dist/index165 2.mjs +21 -0
  185. package/dist/index165 3.cjs +1 -0
  186. package/dist/index166 2.cjs +1 -0
  187. package/dist/index166 2.mjs +48 -0
  188. package/dist/index167 3.cjs +1 -0
  189. package/dist/index167 3.mjs +55 -0
  190. package/dist/index168 3.mjs +65 -0
  191. package/dist/index168 4.cjs +1 -0
  192. package/dist/index169 2.cjs +1 -0
  193. package/dist/index169 2.mjs +39 -0
  194. package/dist/index17 2.cjs +1 -0
  195. package/dist/index17 2.mjs +178 -0
  196. package/dist/index170 2.mjs +33 -0
  197. package/dist/index170 3.cjs +1 -0
  198. package/dist/index171 3.cjs +1 -0
  199. package/dist/index171 3.mjs +31 -0
  200. package/dist/index172 2.cjs +1 -0
  201. package/dist/index172 4.mjs +35 -0
  202. package/dist/index173 2.cjs +1 -0
  203. package/dist/index173 2.mjs +31 -0
  204. package/dist/index174 2.cjs +1 -0
  205. package/dist/index174 2.mjs +33 -0
  206. package/dist/index175 2.cjs +1 -0
  207. package/dist/index175 2.mjs +67 -0
  208. package/dist/index176 2.cjs +1 -0
  209. package/dist/index176 2.mjs +30 -0
  210. package/dist/index177 2.mjs +41 -0
  211. package/dist/index177 4.cjs +1 -0
  212. package/dist/index178 2.mjs +33 -0
  213. package/dist/index178 3.cjs +1 -0
  214. package/dist/index179 2.cjs +1 -0
  215. package/dist/index179 2.mjs +33 -0
  216. package/dist/index18 2.mjs +38 -0
  217. package/dist/index18 3.cjs +1 -0
  218. package/dist/index180 2.cjs +1 -0
  219. package/dist/index180 3.mjs +53 -0
  220. package/dist/index181 2.cjs +1 -0
  221. package/dist/index181 2.mjs +59 -0
  222. package/dist/index182 2.mjs +21 -0
  223. package/dist/index182 3.cjs +1 -0
  224. package/dist/index183 2.cjs +1 -0
  225. package/dist/index183 3.mjs +21 -0
  226. package/dist/index184 2.cjs +1 -0
  227. package/dist/index184 2.mjs +12 -0
  228. package/dist/index185 2.cjs +1 -0
  229. package/dist/index185 2.mjs +57 -0
  230. package/dist/index19 2.cjs +1 -0
  231. package/dist/index19 2.mjs +103 -0
  232. package/dist/index20 2.cjs +1 -0
  233. package/dist/index20 2.mjs +56 -0
  234. package/dist/index21 2.cjs +1 -0
  235. package/dist/index21 3.mjs +84 -0
  236. package/dist/index22 2.cjs +1 -0
  237. package/dist/index22 2.mjs +86 -0
  238. package/dist/index23 2.cjs +6 -0
  239. package/dist/index23 4.mjs +255 -0
  240. package/dist/index24 2.mjs +114 -0
  241. package/dist/index24 3.cjs +1 -0
  242. package/dist/index25 2.cjs +1 -0
  243. package/dist/index25 4.mjs +196 -0
  244. package/dist/index26 3.mjs +271 -0
  245. package/dist/index26 4.cjs +1 -0
  246. package/dist/index27 2.cjs +1 -0
  247. package/dist/index27 2.mjs +248 -0
  248. package/dist/index28 2.cjs +1 -0
  249. package/dist/index28 2.mjs +193 -0
  250. package/dist/index29 2.cjs +1 -0
  251. package/dist/index29 2.mjs +26 -0
  252. package/dist/index3 2.cjs +1 -0
  253. package/dist/index3 2.mjs +600 -0
  254. package/dist/index30 2.cjs +1 -0
  255. package/dist/index30 2.mjs +339 -0
  256. package/dist/index31 2.cjs +1 -0
  257. package/dist/index31 4.mjs +104 -0
  258. package/dist/index32 2.mjs +103 -0
  259. package/dist/index32 3.cjs +1 -0
  260. package/dist/index33 2.cjs +1 -0
  261. package/dist/index33 4.mjs +48 -0
  262. package/dist/index34 2.cjs +1 -0
  263. package/dist/index34 3.mjs +132 -0
  264. package/dist/index35 2.cjs +1 -0
  265. package/dist/index35 2.mjs +176 -0
  266. package/dist/index36 2.cjs +1 -0
  267. package/dist/index36 2.mjs +30 -0
  268. package/dist/index37 2.cjs +1 -0
  269. package/dist/index37 2.mjs +43 -0
  270. package/dist/index38 2.cjs +1 -0
  271. package/dist/index38 2.mjs +107 -0
  272. package/dist/index39 2.cjs +1 -0
  273. package/dist/index39 4.mjs +202 -0
  274. package/dist/index4 2.mjs +59 -0
  275. package/dist/index4 3.cjs +3 -0
  276. package/dist/index40 2.mjs +164 -0
  277. package/dist/index40 3.cjs +1 -0
  278. package/dist/index41 3.cjs +1 -0
  279. package/dist/index41 3.mjs +47 -0
  280. package/dist/index42 2.cjs +1 -0
  281. package/dist/index42 2.mjs +84 -0
  282. package/dist/index43 2.cjs +1 -0
  283. package/dist/index43 3.mjs +54 -0
  284. package/dist/index44 2.mjs +205 -0
  285. package/dist/index44 3.cjs +3 -0
  286. package/dist/index45 3.cjs +1 -0
  287. package/dist/index45 3.mjs +104 -0
  288. package/dist/index46 2.cjs +1 -0
  289. package/dist/index46 4.mjs +143 -0
  290. package/dist/index47 2.cjs +1 -0
  291. package/dist/index47 2.mjs +190 -0
  292. package/dist/index48 2.mjs +106 -0
  293. package/dist/index48 3.cjs +1 -0
  294. package/dist/index49 2.cjs +1 -0
  295. package/dist/index49 2.mjs +82 -0
  296. package/dist/index5 2.cjs +1 -0
  297. package/dist/index5 2.mjs +94 -0
  298. package/dist/index50 2.mjs +95 -0
  299. package/dist/index50 3.cjs +1 -0
  300. package/dist/index51 2.cjs +1 -0
  301. package/dist/index51 2.mjs +125 -0
  302. package/dist/index52 2.cjs +1 -0
  303. package/dist/index52 3.mjs +72 -0
  304. package/dist/index53 2.cjs +1 -0
  305. package/dist/index53 3.mjs +273 -0
  306. package/dist/index54 2.cjs +1 -0
  307. package/dist/index54 3.mjs +129 -0
  308. package/dist/index55 2.cjs +1 -0
  309. package/dist/index55 2.mjs +172 -0
  310. package/dist/index56 2.cjs +1 -0
  311. package/dist/index56 3.mjs +105 -0
  312. package/dist/index57 2.cjs +1 -0
  313. package/dist/index57 3.mjs +136 -0
  314. package/dist/index58 2.cjs +1 -0
  315. package/dist/index58 2.mjs +191 -0
  316. package/dist/index59 2.cjs +1 -0
  317. package/dist/index59 3.mjs +54 -0
  318. package/dist/index6 2.cjs +1 -0
  319. package/dist/index6 2.mjs +128 -0
  320. package/dist/index60 2.mjs +148 -0
  321. package/dist/index60 3.cjs +1 -0
  322. package/dist/index61 2.cjs +1 -0
  323. package/dist/index61 2.mjs +76 -0
  324. package/dist/index62 2.cjs +1 -0
  325. package/dist/index62 2.mjs +87 -0
  326. package/dist/index63 2.cjs +1 -0
  327. package/dist/index63 2.mjs +36 -0
  328. package/dist/index64 2.cjs +1 -0
  329. package/dist/index64 3.mjs +78 -0
  330. package/dist/index65 3.mjs +153 -0
  331. package/dist/index65 4.cjs +1 -0
  332. package/dist/index66 2.cjs +1 -0
  333. package/dist/index66 2.mjs +54 -0
  334. package/dist/index67 2.cjs +1 -0
  335. package/dist/index67 2.mjs +109 -0
  336. package/dist/index68 2.cjs +1 -0
  337. package/dist/index68 3.mjs +28 -0
  338. package/dist/index69 2.cjs +1 -0
  339. package/dist/index69 2.mjs +133 -0
  340. package/dist/index7 2.mjs +120 -0
  341. package/dist/index7 3.cjs +1 -0
  342. package/dist/index70 2.cjs +1 -0
  343. package/dist/index70 2.mjs +80 -0
  344. package/dist/index71 2.cjs +1 -0
  345. package/dist/index71 2.mjs +101 -0
  346. package/dist/index72 2.mjs +97 -0
  347. package/dist/index72 3.cjs +1 -0
  348. package/dist/index73 2.cjs +1 -0
  349. package/dist/index73 2.mjs +118 -0
  350. package/dist/index74 2.cjs +1 -0
  351. package/dist/index74 2.mjs +389 -0
  352. package/dist/index75 2.cjs +38 -0
  353. package/dist/index75 2.mjs +98 -0
  354. package/dist/index76 2.mjs +225 -0
  355. package/dist/index76 3.cjs +1 -0
  356. package/dist/index77 2.cjs +1 -0
  357. package/dist/index77 3.mjs +48 -0
  358. package/dist/index78 2.cjs +1 -0
  359. package/dist/index78 2.mjs +101 -0
  360. package/dist/index79 2.cjs +1 -0
  361. package/dist/index79 3.mjs +39 -0
  362. package/dist/index8 2.cjs +1 -0
  363. package/dist/index8 3.mjs +51 -0
  364. package/dist/index80 2.cjs +1 -0
  365. package/dist/index80 2.mjs +161 -0
  366. package/dist/index81 3.cjs +1 -0
  367. package/dist/index81 3.mjs +119 -0
  368. package/dist/index82 2.cjs +1 -0
  369. package/dist/index82 3.mjs +33 -0
  370. package/dist/index83 2.cjs +1 -0
  371. package/dist/index83 3.mjs +249 -0
  372. package/dist/index84 2.mjs +50 -0
  373. package/dist/index84 4.cjs +1 -0
  374. package/dist/index85 2.cjs +1 -0
  375. package/dist/index85 2.mjs +44 -0
  376. package/dist/index86 2.mjs +33 -0
  377. package/dist/index86 3.cjs +1 -0
  378. package/dist/index87 2.cjs +1 -0
  379. package/dist/index87 3.mjs +41 -0
  380. package/dist/index88 2.mjs +39 -0
  381. package/dist/index88 3.cjs +1 -0
  382. package/dist/index89 3.cjs +1 -0
  383. package/dist/index89 3.mjs +26 -0
  384. package/dist/index9 2.cjs +1 -0
  385. package/dist/index9 2.mjs +91 -0
  386. package/dist/index90 2.cjs +1 -0
  387. package/dist/index90 2.mjs +35 -0
  388. package/dist/index91 2.cjs +1 -0
  389. package/dist/index91 2.mjs +99 -0
  390. package/dist/index92 2.mjs +103 -0
  391. package/dist/index92 3.cjs +1 -0
  392. package/dist/index93 2.cjs +1 -0
  393. package/dist/index93 2.mjs +21 -0
  394. package/dist/index94 2.cjs +1 -0
  395. package/dist/index94 2.mjs +55 -0
  396. package/dist/index95 2.cjs +1 -0
  397. package/dist/index95 2.mjs +74 -0
  398. package/dist/index96 2.cjs +97 -0
  399. package/dist/index96 2.mjs +206 -0
  400. package/dist/index97 2.mjs +157 -0
  401. package/dist/index97 3.cjs +1 -0
  402. package/dist/index98 2.cjs +1 -0
  403. package/dist/index98 3.mjs +221 -0
  404. package/dist/index99 2.cjs +1 -0
  405. package/dist/index99 2.mjs +21 -0
  406. package/dist/main.d 2.ts +2 -0
  407. package/dist/main.d.ts 3.map +1 -0
  408. package/dist/rich.d 2.ts +16 -0
  409. package/dist/rich.d.ts 2.map +1 -0
  410. package/dist/sections/index.d 2.ts +29 -0
  411. package/dist/sections/index.d.ts 2.map +1 -0
  412. package/dist/styles/marker 3.css +1 -0
  413. package/dist/styles 2.css +9055 -0
  414. package/dist/templates/index.d 2.ts +1 -0
  415. package/dist/test/a11y.d 3.ts +8 -0
  416. package/dist/test/a11y.d.ts 3.map +1 -0
  417. package/dist/test/performance.bench.d 3.ts +11 -0
  418. package/dist/test/performance.bench.d.ts 3.map +1 -0
  419. package/dist/test/setup.d 3.ts +2 -0
  420. package/dist/test/setup.d.ts 3.map +1 -0
  421. package/dist/theme 2.css +8871 -0
  422. package/dist/tokens/brands.d 3.ts +5 -0
  423. package/dist/tokens/brands.d.ts 3.map +1 -0
  424. package/dist/tokens/index.d 3.ts +11 -0
  425. package/dist/tokens/index.d.ts 3.map +1 -0
  426. package/dist/tokens/primitives.d 3.ts +5 -0
  427. package/dist/tokens/primitives.d.ts 3.map +1 -0
  428. package/dist/tokens/themes.d 3.ts +9 -0
  429. package/dist/tokens/themes.d.ts 3.map +1 -0
  430. package/dist/tokens/types.d 3.ts +365 -0
  431. package/dist/tokens/types.d.ts 3.map +1 -0
  432. package/dist/tokens/utils.d 3.ts +42 -0
  433. package/dist/tokens/utils.d.ts 3.map +1 -0
  434. package/dist/utils/fonts.d 3.ts +46 -0
  435. package/dist/utils/fonts.d.ts 3.map +1 -0
  436. package/dist/utils/icons.d 3.ts +61 -0
  437. package/dist/utils/icons.d.ts 3.map +1 -0
  438. package/dist/utils/index.d 3.ts +9 -0
  439. package/dist/utils/index.d.ts 3.map +1 -0
  440. package/dist/utils/validation.d 3.ts +94 -0
  441. package/dist/utils/validation.d.ts 3.map +1 -0
  442. package/package.json +1 -1
@@ -0,0 +1,33 @@
1
+ import { useEffect as c } from "react";
2
+ function m(e, n, o = !0) {
3
+ c(() => {
4
+ if (!o)
5
+ return;
6
+ const t = (r) => {
7
+ const u = r.target;
8
+ !e.current || e.current.contains(u) || n(r);
9
+ };
10
+ return document.addEventListener("mousedown", t), document.addEventListener("touchstart", t), () => {
11
+ document.removeEventListener("mousedown", t), document.removeEventListener("touchstart", t);
12
+ };
13
+ }, [e, n, o]);
14
+ }
15
+ function a(e, n, o = !0) {
16
+ c(() => {
17
+ if (!o)
18
+ return;
19
+ const t = (r) => {
20
+ const u = r.target;
21
+ e.some(
22
+ (s) => s.current && s.current.contains(u)
23
+ ) || n(r);
24
+ };
25
+ return document.addEventListener("mousedown", t), document.addEventListener("touchstart", t), () => {
26
+ document.removeEventListener("mousedown", t), document.removeEventListener("touchstart", t);
27
+ };
28
+ }, [e, n, o]);
29
+ }
30
+ export {
31
+ m as useClickOutside,
32
+ a as useClickOutsideMultiple
33
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react");function c(e,n,u=!0){i.useEffect(()=>{if(!u)return;const t=s=>{const r=s.target;!e.current||e.current.contains(r)||n(s)};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e,n,u])}function d(e,n,u=!0){i.useEffect(()=>{if(!u)return;const t=s=>{const r=s.target;e.some(o=>o.current&&o.current.contains(r))||n(s)};return document.addEventListener("mousedown",t),document.addEventListener("touchstart",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("touchstart",t)}},[e,n,u])}exports.useClickOutside=c;exports.useClickOutsideMultiple=d;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react");function f(n={}){const{copiedDuration:a=2e3,onSuccess:l,onError:u}=n,[d,c]=r.useState(!1),[y,i]=r.useState(null),[C,o]=r.useState(null),e=r.useRef(null);r.useEffect(()=>()=>{e.current&&clearTimeout(e.current)},[]);const b=r.useCallback(()=>{c(!1),i(null),o(null),e.current&&clearTimeout(e.current)},[]);return{copy:r.useCallback(async s=>{if(e.current&&clearTimeout(e.current),o(null),!navigator?.clipboard){const t=new Error("Clipboard API not available");return o(t),u?.(t),!1}try{return await navigator.clipboard.writeText(s),c(!0),i(s),l?.(s),e.current=setTimeout(()=>{c(!1)},a),!0}catch(t){const p=t instanceof Error?t:new Error("Failed to copy");return o(p),u?.(p),!1}},[a,l,u]),copied:d,copiedText:y,error:C,reset:b}}function T(){const{copy:n}=f();return n}exports.useCopy=T;exports.useCopyToClipboard=f;
@@ -0,0 +1,41 @@
1
+ import { useState as s, useRef as C, useEffect as b, useCallback as p } from "react";
2
+ function E(o = {}) {
3
+ const { copiedDuration: a = 2e3, onSuccess: i, onError: n } = o, [d, c] = s(!1), [y, l] = s(null), [T, t] = s(null), r = C(null);
4
+ b(() => () => {
5
+ r.current && clearTimeout(r.current);
6
+ }, []);
7
+ const m = p(() => {
8
+ c(!1), l(null), t(null), r.current && clearTimeout(r.current);
9
+ }, []);
10
+ return {
11
+ copy: p(
12
+ async (u) => {
13
+ if (r.current && clearTimeout(r.current), t(null), !navigator?.clipboard) {
14
+ const e = new Error("Clipboard API not available");
15
+ return t(e), n?.(e), !1;
16
+ }
17
+ try {
18
+ return await navigator.clipboard.writeText(u), c(!0), l(u), i?.(u), r.current = setTimeout(() => {
19
+ c(!1);
20
+ }, a), !0;
21
+ } catch (e) {
22
+ const f = e instanceof Error ? e : new Error("Failed to copy");
23
+ return t(f), n?.(f), !1;
24
+ }
25
+ },
26
+ [a, i, n]
27
+ ),
28
+ copied: d,
29
+ copiedText: y,
30
+ error: T,
31
+ reset: m
32
+ };
33
+ }
34
+ function g() {
35
+ const { copy: o } = E();
36
+ return o;
37
+ }
38
+ export {
39
+ g as useCopy,
40
+ E as useCopyToClipboard
41
+ };
@@ -0,0 +1,39 @@
1
+ import { useState as p, useEffect as R, useRef as o, useCallback as f } from "react";
2
+ function w(e, u) {
3
+ const [m, i] = p(e);
4
+ return R(() => {
5
+ const c = setTimeout(() => {
6
+ i(e);
7
+ }, u);
8
+ return () => {
9
+ clearTimeout(c);
10
+ };
11
+ }, [e, u]), m;
12
+ }
13
+ function V(e, u, m = {}) {
14
+ const { leading: i = !1, trailing: c = !0, maxWait: a } = m, t = o(null), l = o(null), r = o(null), T = o(null), s = o(!1), n = f(() => {
15
+ t.current && (clearTimeout(t.current), t.current = null), l.current && (clearTimeout(l.current), l.current = null), s.current = !1, r.current = null, T.current = null;
16
+ }, []), b = f(() => {
17
+ s.current && r.current !== null && (e(...r.current), n());
18
+ }, [e, n]), g = f(() => s.current, []), C = f(
19
+ (...d) => {
20
+ const D = Date.now();
21
+ r.current = d, T.current = D, s.current = !0, i && !t.current && e(...d), t.current && clearTimeout(t.current), c && (t.current = setTimeout(() => {
22
+ c && r.current !== null && e(...r.current), n();
23
+ }, u)), a && !l.current && (l.current = setTimeout(() => {
24
+ r.current !== null && e(...r.current), n();
25
+ }, a));
26
+ },
27
+ [e, u, i, c, a, n]
28
+ );
29
+ return R(() => n, [n]), {
30
+ callback: C,
31
+ cancel: n,
32
+ flush: b,
33
+ isPending: g
34
+ };
35
+ }
36
+ export {
37
+ w as useDebounce,
38
+ V as useDebouncedCallback
39
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");function g(u,c){const[f,o]=e.useState(u);return e.useEffect(()=>{const l=setTimeout(()=>{o(u)},c);return()=>{clearTimeout(l)}},[u,c]),f}function D(u,c,f={}){const{leading:o=!1,trailing:l=!0,maxWait:a}=f,r=e.useRef(null),s=e.useRef(null),n=e.useRef(null),m=e.useRef(null),i=e.useRef(!1),t=e.useCallback(()=>{r.current&&(clearTimeout(r.current),r.current=null),s.current&&(clearTimeout(s.current),s.current=null),i.current=!1,n.current=null,m.current=null},[]),R=e.useCallback(()=>{i.current&&n.current!==null&&(u(...n.current),t())},[u,t]),d=e.useCallback(()=>i.current,[]),T=e.useCallback((...b)=>{const C=Date.now();n.current=b,m.current=C,i.current=!0,o&&!r.current&&u(...b),r.current&&clearTimeout(r.current),l&&(r.current=setTimeout(()=>{l&&n.current!==null&&u(...n.current),t()},c)),a&&!s.current&&(s.current=setTimeout(()=>{n.current!==null&&u(...n.current),t()},a))},[u,c,o,l,a,t]);return e.useEffect(()=>t,[t]),{callback:T,cancel:t,flush:R,isPending:d}}exports.useDebounce=g;exports.useDebouncedCallback=D;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react");function O(a={}){const{defaultOpen:u=!1,onOpen:n,onClose:t,onChange:e}=a,[c,o]=l.useState(u),r=l.useCallback(()=>{o(!0),n?.(),e?.(!0)},[n,e]),i=l.useCallback(()=>{o(!1),t?.(),e?.(!1)},[t,e]),f=l.useCallback(()=>{const s=!c;o(s),s?n?.():t?.(),e?.(s)},[c,n,t,e]),p=l.useCallback(s=>{o(s),s?n?.():t?.(),e?.(s)},[n,t,e]);return{isOpen:c,open:r,close:i,toggle:f,setIsOpen:p}}exports.useDisclosure=O;
@@ -0,0 +1,26 @@
1
+ import { useState as O, useCallback as l } from "react";
2
+ function C(p = {}) {
3
+ const { defaultOpen: a = !1, onOpen: n, onClose: t, onChange: e } = p, [c, o] = O(a), f = l(() => {
4
+ o(!0), n?.(), e?.(!0);
5
+ }, [n, e]), r = l(() => {
6
+ o(!1), t?.(), e?.(!1);
7
+ }, [t, e]), u = l(() => {
8
+ const s = !c;
9
+ o(s), s ? n?.() : t?.(), e?.(s);
10
+ }, [c, n, t, e]), i = l(
11
+ (s) => {
12
+ o(s), s ? n?.() : t?.(), e?.(s);
13
+ },
14
+ [n, t, e]
15
+ );
16
+ return {
17
+ isOpen: c,
18
+ open: f,
19
+ close: r,
20
+ toggle: u,
21
+ setIsOpen: i
22
+ };
23
+ }
24
+ export {
25
+ C as useDisclosure
26
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),n=require("react"),I=require("react-dom"),d=require("lucide-react"),o=require("./index100.cjs"),g=n.createContext(null);function m(){return n.useContext(g)}const b={info:l.jsx(d.Info,{size:24}),warning:l.jsx(d.AlertTriangle,{size:24}),danger:l.jsx(d.AlertCircle,{size:24})},r=({open:e,onClose:t,closeOnBackdrop:i=!1,closeOnEscape:a=!1,children:c,className:x})=>{const u=n.useId(),f=n.useId();if(n.useEffect(()=>{if(!e||!a)return;const s=p=>{p.key==="Escape"&&t()};return document.addEventListener("keydown",s),()=>document.removeEventListener("keydown",s)},[e,a,t]),n.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]),!e)return null;const N=[o.default.dialog,x].filter(Boolean).join(" "),v=s=>{i&&s.target===s.currentTarget&&t()};return I.createPortal(l.jsx(g.Provider,{value:{titleId:u,descriptionId:f},children:l.jsx("div",{className:o.default.backdrop,onClick:v,role:"alertdialog","aria-modal":"true","aria-labelledby":u,"aria-describedby":f,children:l.jsx("div",{className:N,children:c})})}),document.body)},A=({variant:e="info",icon:t,className:i})=>{const a={info:o.default.iconInfo,warning:o.default.iconWarning,danger:o.default.iconDanger}[e],c=[o.default.icon,a,i].filter(Boolean).join(" ");return l.jsx("div",{className:c,"aria-hidden":"true",children:t||b[e]})},D=({className:e,children:t})=>{const i=m(),a=[o.default.title,e].filter(Boolean).join(" ");return l.jsx("h2",{id:i?.titleId,className:a,children:t})},y=({className:e,children:t})=>{const i=m(),a=[o.default.description,e].filter(Boolean).join(" ");return l.jsx("p",{id:i?.descriptionId,className:a,children:t})},j=({className:e,children:t})=>{const i=[o.default.actions,e].filter(Boolean).join(" ");return l.jsx("div",{className:i,children:t})};r.Icon=A;r.Title=D;r.Description=y;r.Actions=j;r.displayName="AlertDialog";A.displayName="AlertDialog.Icon";D.displayName="AlertDialog.Title";y.displayName="AlertDialog.Description";j.displayName="AlertDialog.Actions";exports.AlertDialog=r;
@@ -0,0 +1,91 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { useId as m, useEffect as f, createContext as h, useContext as x } from "react";
3
+ import { createPortal as C } from "react-dom";
4
+ import { AlertCircle as k, AlertTriangle as w, Info as j } from "lucide-react";
5
+ import n from "./index100.mjs";
6
+ const u = h(null);
7
+ function g() {
8
+ return x(u);
9
+ }
10
+ const B = {
11
+ info: /* @__PURE__ */ o(j, { size: 24 }),
12
+ warning: /* @__PURE__ */ o(w, { size: 24 }),
13
+ danger: /* @__PURE__ */ o(k, { size: 24 })
14
+ }, a = ({
15
+ open: e,
16
+ onClose: t,
17
+ closeOnBackdrop: i = !1,
18
+ closeOnEscape: r = !1,
19
+ children: s,
20
+ className: N
21
+ }) => {
22
+ const c = m(), d = m();
23
+ if (f(() => {
24
+ if (!e || !r) return;
25
+ const l = (b) => {
26
+ b.key === "Escape" && t();
27
+ };
28
+ return document.addEventListener("keydown", l), () => document.removeEventListener("keydown", l);
29
+ }, [e, r, t]), f(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
30
+ document.body.style.overflow = "";
31
+ }), [e]), !e) return null;
32
+ const v = [n.dialog, N].filter(Boolean).join(" "), I = (l) => {
33
+ i && l.target === l.currentTarget && t();
34
+ };
35
+ return C(
36
+ /* @__PURE__ */ o(u.Provider, { value: { titleId: c, descriptionId: d }, children: /* @__PURE__ */ o(
37
+ "div",
38
+ {
39
+ className: n.backdrop,
40
+ onClick: I,
41
+ role: "alertdialog",
42
+ "aria-modal": "true",
43
+ "aria-labelledby": c,
44
+ "aria-describedby": d,
45
+ children: /* @__PURE__ */ o("div", { className: v, children: s })
46
+ }
47
+ ) }),
48
+ document.body
49
+ );
50
+ }, y = ({
51
+ variant: e = "info",
52
+ icon: t,
53
+ className: i
54
+ }) => {
55
+ const r = {
56
+ info: n.iconInfo,
57
+ warning: n.iconWarning,
58
+ danger: n.iconDanger
59
+ }[e], s = [n.icon, r, i].filter(Boolean).join(" ");
60
+ return /* @__PURE__ */ o("div", { className: s, "aria-hidden": "true", children: t || B[e] });
61
+ }, A = ({
62
+ className: e,
63
+ children: t
64
+ }) => {
65
+ const i = g(), r = [n.title, e].filter(Boolean).join(" ");
66
+ return /* @__PURE__ */ o("h2", { id: i?.titleId, className: r, children: t });
67
+ }, p = ({
68
+ className: e,
69
+ children: t
70
+ }) => {
71
+ const i = g(), r = [n.description, e].filter(Boolean).join(" ");
72
+ return /* @__PURE__ */ o("p", { id: i?.descriptionId, className: r, children: t });
73
+ }, D = ({
74
+ className: e,
75
+ children: t
76
+ }) => {
77
+ const i = [n.actions, e].filter(Boolean).join(" ");
78
+ return /* @__PURE__ */ o("div", { className: i, children: t });
79
+ };
80
+ a.Icon = y;
81
+ a.Title = A;
82
+ a.Description = p;
83
+ a.Actions = D;
84
+ a.displayName = "AlertDialog";
85
+ y.displayName = "AlertDialog.Icon";
86
+ A.displayName = "AlertDialog.Title";
87
+ p.displayName = "AlertDialog.Description";
88
+ D.displayName = "AlertDialog.Actions";
89
+ export {
90
+ a as AlertDialog
91
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react");function t(r){const[i,s]=u.useState(()=>typeof window>"u"?!1:window.matchMedia(r).matches);return u.useEffect(()=>{if(typeof window>"u")return;const e=window.matchMedia(r),n=d=>{s(d.matches)};return s(e.matches),e.addEventListener?(e.addEventListener("change",n),()=>e.removeEventListener("change",n)):(e.addListener(n),()=>e.removeListener(n))},[r]),i}function o(){return t("(max-width: 639px)")}function a(){return t("(min-width: 640px) and (max-width: 1023px)")}function c(){return t("(min-width: 1024px)")}function f(){return t("(prefers-color-scheme: dark)")}function h(){return t("(prefers-reduced-motion: reduce)")}exports.useIsDesktop=c;exports.useIsMobile=o;exports.useIsTablet=a;exports.useMediaQuery=t;exports.usePrefersDarkMode=f;exports.usePrefersReducedMotion=h;
@@ -0,0 +1,35 @@
1
+ import { useState as u, useEffect as o } from "react";
2
+ function t(r) {
3
+ const [s, i] = u(() => typeof window > "u" ? !1 : window.matchMedia(r).matches);
4
+ return o(() => {
5
+ if (typeof window > "u")
6
+ return;
7
+ const e = window.matchMedia(r), n = (d) => {
8
+ i(d.matches);
9
+ };
10
+ return i(e.matches), e.addEventListener ? (e.addEventListener("change", n), () => e.removeEventListener("change", n)) : (e.addListener(n), () => e.removeListener(n));
11
+ }, [r]), s;
12
+ }
13
+ function c() {
14
+ return t("(max-width: 639px)");
15
+ }
16
+ function f() {
17
+ return t("(min-width: 640px) and (max-width: 1023px)");
18
+ }
19
+ function m() {
20
+ return t("(min-width: 1024px)");
21
+ }
22
+ function h() {
23
+ return t("(prefers-color-scheme: dark)");
24
+ }
25
+ function w() {
26
+ return t("(prefers-reduced-motion: reduce)");
27
+ }
28
+ export {
29
+ m as useIsDesktop,
30
+ c as useIsMobile,
31
+ f as useIsTablet,
32
+ t as useMediaQuery,
33
+ h as usePrefersDarkMode,
34
+ w as usePrefersReducedMotion
35
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react");function h(n,a,f={}){const{ctrl:t=!1,alt:o=!1,shift:c=!1,meta:u=!1,enabled:i=!0,event:e="keydown",preventDefault:m=!0,stopPropagation:l=!1,target:s,targetOnly:p=!1}=f,b=y.useRef(a);b.current=a,y.useEffect(()=>{if(!i)return;const d=r=>{if(!(r.key.toLowerCase()===n.toLowerCase()||r.code===n)||t!==r.ctrlKey||o!==r.altKey||c!==r.shiftKey||u!==r.metaKey||p&&s&&r.target!==s)return;const g=document.activeElement;(g instanceof HTMLInputElement||g instanceof HTMLTextAreaElement||g?.getAttribute("contenteditable")==="true")&&n.toLowerCase()!=="escape"||(m&&r.preventDefault(),l&&r.stopPropagation(),b.current(r))},v=s||document;return v.addEventListener(e,d),()=>{v.removeEventListener(e,d)}},[n,t,o,c,u,i,e,m,l,s,p])}function E(n){const a=n.split("+"),f=a[a.length-1]||n,t={};for(let o=0;o<a.length-1;o++){const c=a[o];if(c)switch(c.toLowerCase()){case"ctrl":case"control":t.ctrl=!0;break;case"alt":case"option":t.alt=!0;break;case"shift":t.shift=!0;break;case"meta":case"cmd":case"command":t.meta=!0;break}}return{key:f,modifiers:t}}function L(n,a={}){const{enabled:f=!0,event:t="keydown",preventDefault:o=!0,stopPropagation:c=!1}=a,u=y.useCallback(()=>Object.entries(n).map(([i,e])=>({...E(i),handler:e})),[n]);y.useEffect(()=>{if(!f)return;const i=e=>{const m=u();for(const{key:l,modifiers:s,handler:p}of m){if(!(e.key.toLowerCase()===l.toLowerCase()||e.code===l)||(s.ctrl??!1)!==e.ctrlKey||(s.alt??!1)!==e.altKey||(s.shift??!1)!==e.shiftKey||(s.meta??!1)!==e.metaKey)continue;const d=document.activeElement;if(!((d instanceof HTMLInputElement||d instanceof HTMLTextAreaElement||d?.getAttribute("contenteditable")==="true")&&l.toLowerCase()!=="escape")){o&&e.preventDefault(),c&&e.stopPropagation(),p();break}}};return document.addEventListener(t,i),()=>{document.removeEventListener(t,i)}},[f,t,o,c,u])}exports.useKeyboard=h;exports.useKeyboardShortcuts=L;
@@ -0,0 +1,99 @@
1
+ import { useRef as E, useEffect as g, useCallback as b } from "react";
2
+ function T(n, a, f = {}) {
3
+ const {
4
+ ctrl: t = !1,
5
+ alt: o = !1,
6
+ shift: i = !1,
7
+ meta: u = !1,
8
+ enabled: c = !0,
9
+ event: e = "keydown",
10
+ preventDefault: d = !0,
11
+ stopPropagation: l = !1,
12
+ target: s,
13
+ targetOnly: p = !1
14
+ } = f, y = E(a);
15
+ y.current = a, g(() => {
16
+ if (!c)
17
+ return;
18
+ const m = (r) => {
19
+ if (!(r.key.toLowerCase() === n.toLowerCase() || r.code === n) || t !== r.ctrlKey || o !== r.altKey || i !== r.shiftKey || u !== r.metaKey || p && s && r.target !== s)
20
+ return;
21
+ const h = document.activeElement;
22
+ (h instanceof HTMLInputElement || h instanceof HTMLTextAreaElement || h?.getAttribute("contenteditable") === "true") && n.toLowerCase() !== "escape" || (d && r.preventDefault(), l && r.stopPropagation(), y.current(r));
23
+ }, v = s || document;
24
+ return v.addEventListener(e, m), () => {
25
+ v.removeEventListener(e, m);
26
+ };
27
+ }, [
28
+ n,
29
+ t,
30
+ o,
31
+ i,
32
+ u,
33
+ c,
34
+ e,
35
+ d,
36
+ l,
37
+ s,
38
+ p
39
+ ]);
40
+ }
41
+ function L(n) {
42
+ const a = n.split("+"), f = a[a.length - 1] || n, t = {};
43
+ for (let o = 0; o < a.length - 1; o++) {
44
+ const i = a[o];
45
+ if (i)
46
+ switch (i.toLowerCase()) {
47
+ case "ctrl":
48
+ case "control":
49
+ t.ctrl = !0;
50
+ break;
51
+ case "alt":
52
+ case "option":
53
+ t.alt = !0;
54
+ break;
55
+ case "shift":
56
+ t.shift = !0;
57
+ break;
58
+ case "meta":
59
+ case "cmd":
60
+ case "command":
61
+ t.meta = !0;
62
+ break;
63
+ }
64
+ }
65
+ return { key: f, modifiers: t };
66
+ }
67
+ function C(n, a = {}) {
68
+ const {
69
+ enabled: f = !0,
70
+ event: t = "keydown",
71
+ preventDefault: o = !0,
72
+ stopPropagation: i = !1
73
+ } = a, u = b(() => Object.entries(n).map(([c, e]) => ({
74
+ ...L(c),
75
+ handler: e
76
+ })), [n]);
77
+ g(() => {
78
+ if (!f)
79
+ return;
80
+ const c = (e) => {
81
+ const d = u();
82
+ for (const { key: l, modifiers: s, handler: p } of d) {
83
+ if (!(e.key.toLowerCase() === l.toLowerCase() || e.code === l) || (s.ctrl ?? !1) !== e.ctrlKey || (s.alt ?? !1) !== e.altKey || (s.shift ?? !1) !== e.shiftKey || (s.meta ?? !1) !== e.metaKey) continue;
84
+ const m = document.activeElement;
85
+ if (!((m instanceof HTMLInputElement || m instanceof HTMLTextAreaElement || m?.getAttribute("contenteditable") === "true") && l.toLowerCase() !== "escape")) {
86
+ o && e.preventDefault(), i && e.stopPropagation(), p();
87
+ break;
88
+ }
89
+ }
90
+ };
91
+ return document.addEventListener(t, c), () => {
92
+ document.removeEventListener(t, c);
93
+ };
94
+ }, [f, t, o, i, u]);
95
+ }
96
+ export {
97
+ T as useKeyboard,
98
+ C as useKeyboardShortcuts
99
+ };
@@ -0,0 +1,103 @@
1
+ import { useCallback as i, useState as m, useEffect as l } from "react";
2
+ function p(e, o, u = {}) {
3
+ const {
4
+ serializer: c = JSON.stringify,
5
+ deserializer: s = JSON.parse,
6
+ syncAcrossTabs: g = !0
7
+ } = u, w = i(() => {
8
+ if (typeof window > "u")
9
+ return o;
10
+ try {
11
+ const r = window.localStorage.getItem(e);
12
+ return r ? s(r) : o;
13
+ } catch (r) {
14
+ return console.warn(`Error reading localStorage key "${e}":`, r), o;
15
+ }
16
+ }, [e, o, s]), [a, d] = m(w), f = i(
17
+ (r) => {
18
+ if (typeof window > "u") {
19
+ console.warn("localStorage is not available");
20
+ return;
21
+ }
22
+ try {
23
+ const t = r instanceof Function ? r(a) : r;
24
+ d(t), window.localStorage.setItem(e, c(t)), window.dispatchEvent(
25
+ new StorageEvent("storage", {
26
+ key: e,
27
+ newValue: c(t)
28
+ })
29
+ );
30
+ } catch (t) {
31
+ console.warn(`Error setting localStorage key "${e}":`, t);
32
+ }
33
+ },
34
+ [e, c, a]
35
+ ), n = i(() => {
36
+ if (!(typeof window > "u"))
37
+ try {
38
+ window.localStorage.removeItem(e), d(o), window.dispatchEvent(
39
+ new StorageEvent("storage", {
40
+ key: e,
41
+ newValue: null
42
+ })
43
+ );
44
+ } catch (r) {
45
+ console.warn(`Error removing localStorage key "${e}":`, r);
46
+ }
47
+ }, [e, o]);
48
+ return l(() => {
49
+ if (!g || typeof window > "u")
50
+ return;
51
+ const r = (t) => {
52
+ if (t.key === e)
53
+ try {
54
+ const S = t.newValue ? s(t.newValue) : o;
55
+ d(S);
56
+ } catch (S) {
57
+ console.warn(`Error syncing localStorage key "${e}":`, S);
58
+ }
59
+ };
60
+ return window.addEventListener("storage", r), () => {
61
+ window.removeEventListener("storage", r);
62
+ };
63
+ }, [e, o, s, g]), l(() => {
64
+ d(w());
65
+ }, []), [a, f, n];
66
+ }
67
+ function h(e, o, u = {}) {
68
+ const { serializer: c = JSON.stringify, deserializer: s = JSON.parse } = u, g = i(() => {
69
+ if (typeof window > "u")
70
+ return o;
71
+ try {
72
+ const n = window.sessionStorage.getItem(e);
73
+ return n ? s(n) : o;
74
+ } catch (n) {
75
+ return console.warn(`Error reading sessionStorage key "${e}":`, n), o;
76
+ }
77
+ }, [e, o, s]), [w, a] = m(g), d = i(
78
+ (n) => {
79
+ if (!(typeof window > "u"))
80
+ try {
81
+ const r = n instanceof Function ? n(w) : n;
82
+ a(r), window.sessionStorage.setItem(e, c(r));
83
+ } catch (r) {
84
+ console.warn(`Error setting sessionStorage key "${e}":`, r);
85
+ }
86
+ },
87
+ [e, c, w]
88
+ ), f = i(() => {
89
+ if (!(typeof window > "u"))
90
+ try {
91
+ window.sessionStorage.removeItem(e), a(o);
92
+ } catch (n) {
93
+ console.warn(`Error removing sessionStorage key "${e}":`, n);
94
+ }
95
+ }, [e, o]);
96
+ return l(() => {
97
+ a(g());
98
+ }, []), [w, d, f];
99
+ }
100
+ export {
101
+ p as useLocalStorage,
102
+ h as useSessionStorage
103
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react");function S(e,o,g={}){const{serializer:w=JSON.stringify,deserializer:a=JSON.parse,syncAcrossTabs:i=!0}=g,d=n.useCallback(()=>{if(typeof window>"u")return o;try{const r=window.localStorage.getItem(e);return r?a(r):o}catch(r){return console.warn(`Error reading localStorage key "${e}":`,r),o}},[e,o,a]),[c,u]=n.useState(d),l=n.useCallback(r=>{if(typeof window>"u"){console.warn("localStorage is not available");return}try{const s=r instanceof Function?r(c):r;u(s),window.localStorage.setItem(e,w(s)),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:w(s)}))}catch(s){console.warn(`Error setting localStorage key "${e}":`,s)}},[e,w,c]),t=n.useCallback(()=>{if(!(typeof window>"u"))try{window.localStorage.removeItem(e),u(o),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:null}))}catch(r){console.warn(`Error removing localStorage key "${e}":`,r)}},[e,o]);return n.useEffect(()=>{if(!i||typeof window>"u")return;const r=s=>{if(s.key===e)try{const f=s.newValue?a(s.newValue):o;u(f)}catch(f){console.warn(`Error syncing localStorage key "${e}":`,f)}};return window.addEventListener("storage",r),()=>{window.removeEventListener("storage",r)}},[e,o,a,i]),n.useEffect(()=>{u(d())},[]),[c,l,t]}function m(e,o,g={}){const{serializer:w=JSON.stringify,deserializer:a=JSON.parse}=g,i=n.useCallback(()=>{if(typeof window>"u")return o;try{const t=window.sessionStorage.getItem(e);return t?a(t):o}catch(t){return console.warn(`Error reading sessionStorage key "${e}":`,t),o}},[e,o,a]),[d,c]=n.useState(i),u=n.useCallback(t=>{if(!(typeof window>"u"))try{const r=t instanceof Function?t(d):t;c(r),window.sessionStorage.setItem(e,w(r))}catch(r){console.warn(`Error setting sessionStorage key "${e}":`,r)}},[e,w,d]),l=n.useCallback(()=>{if(!(typeof window>"u"))try{window.sessionStorage.removeItem(e),c(o)}catch(t){console.warn(`Error removing sessionStorage key "${e}":`,t)}},[e,o]);return n.useEffect(()=>{c(i())},[]),[d,u,l]}exports.useLocalStorage=S;exports.useSessionStorage=m;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react");function h(c,a={}){const{wordsPerTick:u=2,intervalMs:o=60,enabled:t=!0}=a,e=n.useRef([]),[r,s]=n.useState(0);n.useEffect(()=>{e.current=c.split(/(\s+)/),s(t?0:e.current.length)},[c,t]),n.useEffect(()=>{if(!t||r>=e.current.length)return;const i=setInterval(()=>{s(g=>{const l=g+u;return l>=e.current.length?(clearInterval(i),e.current.length):l})},o);return()=>clearInterval(i)},[t,r,u,o]);const d=e.current.slice(0,r).join(""),f=r>=e.current.length;return{displayText:d,isComplete:f}}exports.useStreamingText=h;
@@ -0,0 +1,21 @@
1
+ import { useRef as h, useState as m, useEffect as i } from "react";
2
+ function x(s, a = {}) {
3
+ const { wordsPerTick: c = 2, intervalMs: o = 60, enabled: t = !0 } = a, e = h([]), [r, n] = m(0);
4
+ i(() => {
5
+ e.current = s.split(/(\s+)/), n(t ? 0 : e.current.length);
6
+ }, [s, t]), i(() => {
7
+ if (!t || r >= e.current.length) return;
8
+ const u = setInterval(() => {
9
+ n((g) => {
10
+ const l = g + c;
11
+ return l >= e.current.length ? (clearInterval(u), e.current.length) : l;
12
+ });
13
+ }, o);
14
+ return () => clearInterval(u);
15
+ }, [t, r, c, o]);
16
+ const d = e.current.slice(0, r).join(""), f = r >= e.current.length;
17
+ return { displayText: d, isComplete: f };
18
+ }
19
+ export {
20
+ x as useStreamingText
21
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),E=a=>a==="light"||a==="dark",S=a=>["orion","red","deepblue","orange","ember","lemon"].includes(a);function k(a={}){const{defaultTheme:l="light",defaultBrand:f="orion",storageEnabled:r=!0,storageKey:d="orion-theme",brandStorageKey:i="orion-brand"}=a,[o,c]=n.useState(l),[u,m]=n.useState(f),s=n.useCallback(e=>{c(e),typeof window<"u"&&(document.documentElement.setAttribute("data-theme",e),r&&localStorage.setItem(d,e))},[r,d]),g=n.useCallback(e=>{m(e),typeof window<"u"&&(document.documentElement.setAttribute("data-brand",e),r&&localStorage.setItem(i,e))},[r,i]),h=n.useCallback(()=>{s(o==="light"?"dark":"light")},[o,s]);return n.useEffect(()=>{typeof window<"u"&&(document.documentElement.setAttribute("data-theme",o),document.documentElement.setAttribute("data-brand",u))},[o,u]),n.useEffect(()=>{if(!r)return;const e=localStorage.getItem(d);e&&E(e)&&(c(e),document.documentElement.setAttribute("data-theme",e));const t=localStorage.getItem(i);t&&S(t)&&(m(t),document.documentElement.setAttribute("data-brand",t))},[]),n.useEffect(()=>{if(typeof window>"u"||!r)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),t=b=>{localStorage.getItem(d)||s(b.matches?"dark":"light")};if(e.addEventListener)return e.addEventListener("change",t),()=>e.removeEventListener("change",t);if(e.addListener)return e.addListener(t),()=>e.removeListener(t)},[r,d,s]),{theme:o,brand:u,setTheme:s,setBrand:g,toggleTheme:h,isDark:o==="dark",isLight:o==="light"}}exports.useTheme=k;
@@ -0,0 +1,55 @@
1
+ import { useState as f, useCallback as m, useEffect as c } from "react";
2
+ const p = (r) => r === "light" || r === "dark", k = (r) => ["orion", "red", "deepblue", "orange", "ember", "lemon"].includes(
3
+ r
4
+ );
5
+ function w(r = {}) {
6
+ const {
7
+ defaultTheme: g = "light",
8
+ defaultBrand: h = "orion",
9
+ storageEnabled: n = !0,
10
+ storageKey: d = "orion-theme",
11
+ brandStorageKey: i = "orion-brand"
12
+ } = r, [o, u] = f(g), [s, l] = f(h), a = m(
13
+ (e) => {
14
+ u(e), typeof window < "u" && (document.documentElement.setAttribute("data-theme", e), n && localStorage.setItem(d, e));
15
+ },
16
+ [n, d]
17
+ ), b = m(
18
+ (e) => {
19
+ l(e), typeof window < "u" && (document.documentElement.setAttribute("data-brand", e), n && localStorage.setItem(i, e));
20
+ },
21
+ [n, i]
22
+ ), E = m(() => {
23
+ a(o === "light" ? "dark" : "light");
24
+ }, [o, a]);
25
+ return c(() => {
26
+ typeof window < "u" && (document.documentElement.setAttribute("data-theme", o), document.documentElement.setAttribute("data-brand", s));
27
+ }, [o, s]), c(() => {
28
+ if (!n) return;
29
+ const e = localStorage.getItem(d);
30
+ e && p(e) && (u(e), document.documentElement.setAttribute("data-theme", e));
31
+ const t = localStorage.getItem(i);
32
+ t && k(t) && (l(t), document.documentElement.setAttribute("data-brand", t));
33
+ }, []), c(() => {
34
+ if (typeof window > "u" || !n)
35
+ return;
36
+ const e = window.matchMedia("(prefers-color-scheme: dark)"), t = (S) => {
37
+ localStorage.getItem(d) || a(S.matches ? "dark" : "light");
38
+ };
39
+ if (e.addEventListener)
40
+ return e.addEventListener("change", t), () => e.removeEventListener("change", t);
41
+ if (e.addListener)
42
+ return e.addListener(t), () => e.removeListener(t);
43
+ }, [n, d, a]), {
44
+ theme: o,
45
+ brand: s,
46
+ setTheme: a,
47
+ setBrand: b,
48
+ toggleTheme: E,
49
+ isDark: o === "dark",
50
+ isLight: o === "light"
51
+ };
52
+ }
53
+ export {
54
+ w as useTheme
55
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react");function B(S={}){const{maxDuration:v=300,mimeType:f="audio/webm",onRecordingComplete:y,onError:i}=S,[p,R]=e.useState(!1),[T,m]=e.useState(0),[h,b]=e.useState(),[C,s]=e.useState(),u=e.useRef(null),d=e.useRef(null),l=e.useRef([]),n=e.useRef(null),M=e.useRef(0),g=typeof window<"u"&&"MediaRecorder"in window,o=e.useCallback(()=>{n.current&&(clearInterval(n.current),n.current=null),d.current&&(d.current.getTracks().forEach(t=>t.stop()),d.current=null),u.current=null,l.current=[]},[]),D=e.useCallback(async()=>{if(!g){const t="Voice recording is not supported in this browser";s(t),i?.(t);return}try{s(void 0),b(void 0),m(0),l.current=[];const t=await navigator.mediaDevices.getUserMedia({audio:!0});d.current=t;let c=f;MediaRecorder.isTypeSupported(f)||(c=["audio/webm","audio/mp4","audio/ogg"].find(I=>MediaRecorder.isTypeSupported(I))||"");const a=new MediaRecorder(t,{mimeType:c||void 0});u.current=a,a.ondataavailable=r=>{r.data.size>0&&l.current.push(r.data)},a.onstop=()=>{const r=new Blob(l.current,{type:c||"audio/webm"});b(r),y?.(r),o()},a.onerror=()=>{const r="Recording failed";s(r),i?.(r),o()},a.start(100),R(!0),M.current=Date.now(),n.current=window.setInterval(()=>{const r=Math.floor((Date.now()-M.current)/1e3);m(r),r>=v&&k()},100)}catch(t){const c=t instanceof Error?t.message:"Failed to access microphone";s(c),i?.(c),o()}},[g,f,v,y,i,o]),k=e.useCallback(()=>{u.current&&p&&(u.current.stop(),R(!1),n.current&&(clearInterval(n.current),n.current=null))},[p]),w=e.useCallback(()=>{o(),R(!1),m(0),b(void 0)},[o]),E=e.useCallback(()=>{w(),s(void 0)},[w]);return e.useEffect(()=>()=>{o()},[o]),{isRecording:p,duration:T,audioBlob:h,error:C,startRecording:D,stopRecording:k,cancelRecording:w,reset:E,isSupported:g}}exports.useVoiceRecorder=B;