@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,98 @@
1
+ import { jsxs as y, jsx as g } from "react/jsx-runtime";
2
+ import { useRef as a, useEffect as l, useContext as S, createContext as O } from "react";
3
+ import { useTheme as P } from "./index94.mjs";
4
+ import { getMissingFonts as x, BRAND_FONTS as C, GOOGLE_FONTS_URL as F } from "./index4.mjs";
5
+ import { FontLoader as b } from "./index41.mjs";
6
+ const f = O(void 0);
7
+ function E() {
8
+ return typeof window > "u" ? !0 : getComputedStyle(document.documentElement).getPropertyValue("--orion-react-styles-loaded").trim() === "1";
9
+ }
10
+ function R({
11
+ children: o,
12
+ defaultTheme: n,
13
+ defaultBrand: s,
14
+ options: p,
15
+ disableFontWarnings: i = !1,
16
+ disableAutoFontLoading: h = !1,
17
+ disableCSSWarnings: d = !1
18
+ }) {
19
+ const v = {
20
+ ...p,
21
+ ...n !== void 0 && { defaultTheme: n },
22
+ ...s !== void 0 && { defaultBrand: s }
23
+ }, t = P(v), c = a(/* @__PURE__ */ new Set()), m = a(!1);
24
+ return l(() => {
25
+ if (d || typeof window > "u" || !(process.env.NODE_ENV === "development" || window.location.hostname === "localhost")) return;
26
+ const r = setTimeout(() => {
27
+ !m.current && !E() && (m.current = !0, console.warn(
28
+ `[Orion] Component styles not detected!
29
+
30
+ You must import the component CSS file:
31
+
32
+ import '@orion-ds/react/styles.css'; // Single import includes all styles
33
+
34
+ Add this import in your app entry file. It includes both design tokens and component styles.
35
+
36
+ To disable this warning, set disableCSSWarnings={true} on ThemeProvider.`
37
+ ));
38
+ }, 100);
39
+ return () => clearTimeout(r);
40
+ }, [d]), l(() => {
41
+ if (i || typeof window > "u" || !(process.env.NODE_ENV === "development" || typeof window < "u" && window.location.hostname === "localhost")) return;
42
+ const r = setTimeout(() => {
43
+ const { brand: e } = t, u = x(e);
44
+ if (u.length > 0 && !c.current.has(e)) {
45
+ c.current.add(e);
46
+ const w = C[e].join(", ");
47
+ console.warn(
48
+ `[Orion] Missing fonts for "${e}" brand: ${u.join(", ")}
49
+
50
+ The "${e}" brand requires these fonts: ${w}
51
+
52
+ To fix this, add one of the following to your app:
53
+
54
+ Option 1: Use <FontLoader /> component (recommended)
55
+ import { FontLoader } from '@orion-ds/react';
56
+ <ThemeProvider>
57
+ <FontLoader />
58
+ <App />
59
+ </ThemeProvider>
60
+
61
+ Option 2: Add Google Fonts to your HTML <head>
62
+ <link rel="preconnect" href="https://fonts.googleapis.com">
63
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
64
+ <link href="${F}" rel="stylesheet">
65
+
66
+ To disable this warning, set disableFontWarnings={true} on ThemeProvider.`
67
+ );
68
+ }
69
+ }, 1e3);
70
+ return () => clearTimeout(r);
71
+ }, [t.brand, i, t]), /* @__PURE__ */ y(f.Provider, { value: t, children: [
72
+ !h && /* @__PURE__ */ g(b, {}),
73
+ o
74
+ ] });
75
+ }
76
+ function _() {
77
+ const o = S(f);
78
+ if (o === void 0)
79
+ throw new Error(
80
+ `❌ useTheme() must be used inside <ThemeProvider>
81
+
82
+ Solution:
83
+ Wrap your app with ThemeProvider:
84
+
85
+ export default function App() {
86
+ return (
87
+ <ThemeProvider>
88
+ <YourComponents />
89
+ </ThemeProvider>
90
+ );
91
+ }`
92
+ );
93
+ return o;
94
+ }
95
+ export {
96
+ R as ThemeProvider,
97
+ _ as useThemeContext
98
+ };
@@ -0,0 +1,225 @@
1
+ import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
+ import { useState as g, useCallback as a, useContext as N, createContext as j, useRef as B, useEffect as W } from "react";
3
+ import { createPortal as y } from "react-dom";
4
+ import o from "./index151.mjs";
5
+ let E = 0;
6
+ const P = () => `toast-${++E}`, w = j(null), $ = () => {
7
+ const e = N(w);
8
+ if (!e)
9
+ throw new Error("useToast must be used within a ToastProvider");
10
+ return e;
11
+ }, I = ({ toast: e, onDismiss: u }) => {
12
+ const [d, h] = g(!1), s = B(null), c = a(() => {
13
+ h(!0), setTimeout(() => {
14
+ u(e.id), e.onDismiss?.();
15
+ }, 200);
16
+ }, [e, u]);
17
+ W(() => {
18
+ if (e.duration && e.duration > 0)
19
+ return s.current = setTimeout(c, e.duration), () => {
20
+ s.current && clearTimeout(s.current);
21
+ };
22
+ }, [e.duration, c]);
23
+ const i = () => {
24
+ s.current && clearTimeout(s.current);
25
+ }, m = () => {
26
+ e.duration && e.duration > 0 && (s.current = setTimeout(c, e.duration));
27
+ }, v = [
28
+ o.toast,
29
+ o[e.variant || "info"],
30
+ d && o.exiting
31
+ ].filter(Boolean).join(" "), k = () => {
32
+ switch (e.variant) {
33
+ case "success":
34
+ return /* @__PURE__ */ t("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ t(
35
+ "path",
36
+ {
37
+ d: "M16.667 5L7.5 14.167 3.333 10",
38
+ stroke: "currentColor",
39
+ strokeWidth: "2",
40
+ strokeLinecap: "round",
41
+ strokeLinejoin: "round"
42
+ }
43
+ ) });
44
+ case "error":
45
+ return /* @__PURE__ */ l("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [
46
+ /* @__PURE__ */ t(
47
+ "circle",
48
+ {
49
+ cx: "10",
50
+ cy: "10",
51
+ r: "7.5",
52
+ stroke: "currentColor",
53
+ strokeWidth: "1.5"
54
+ }
55
+ ),
56
+ /* @__PURE__ */ t(
57
+ "path",
58
+ {
59
+ d: "M10 6v5M10 13.5v.5",
60
+ stroke: "currentColor",
61
+ strokeWidth: "1.5",
62
+ strokeLinecap: "round"
63
+ }
64
+ )
65
+ ] });
66
+ case "warning":
67
+ return /* @__PURE__ */ l("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [
68
+ /* @__PURE__ */ t(
69
+ "path",
70
+ {
71
+ d: "M8.57 3.216L1.538 15.143a1.667 1.667 0 001.429 2.524h14.066a1.667 1.667 0 001.429-2.524L11.43 3.216a1.667 1.667 0 00-2.858 0z",
72
+ stroke: "currentColor",
73
+ strokeWidth: "1.5",
74
+ strokeLinecap: "round",
75
+ strokeLinejoin: "round"
76
+ }
77
+ ),
78
+ /* @__PURE__ */ t(
79
+ "path",
80
+ {
81
+ d: "M10 7.5v3.333M10 14.167h.008",
82
+ stroke: "currentColor",
83
+ strokeWidth: "1.5",
84
+ strokeLinecap: "round",
85
+ strokeLinejoin: "round"
86
+ }
87
+ )
88
+ ] });
89
+ default:
90
+ return /* @__PURE__ */ l("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [
91
+ /* @__PURE__ */ t(
92
+ "circle",
93
+ {
94
+ cx: "10",
95
+ cy: "10",
96
+ r: "7.5",
97
+ stroke: "currentColor",
98
+ strokeWidth: "1.5"
99
+ }
100
+ ),
101
+ /* @__PURE__ */ t(
102
+ "path",
103
+ {
104
+ d: "M10 9v4.5M10 6.5v.5",
105
+ stroke: "currentColor",
106
+ strokeWidth: "1.5",
107
+ strokeLinecap: "round"
108
+ }
109
+ )
110
+ ] });
111
+ }
112
+ };
113
+ return /* @__PURE__ */ l(
114
+ "div",
115
+ {
116
+ className: v,
117
+ role: "alert",
118
+ "aria-live": "polite",
119
+ onMouseEnter: i,
120
+ onMouseLeave: m,
121
+ children: [
122
+ /* @__PURE__ */ t("span", { className: o.icon, "aria-hidden": "true", children: k() }),
123
+ /* @__PURE__ */ l("div", { className: o.content, children: [
124
+ e.title && /* @__PURE__ */ t("div", { className: o.title, children: e.title }),
125
+ /* @__PURE__ */ t("div", { className: o.message, children: e.message })
126
+ ] }),
127
+ e.action && /* @__PURE__ */ t(
128
+ "button",
129
+ {
130
+ type: "button",
131
+ className: o.action,
132
+ onClick: () => {
133
+ e.action?.onClick(), c();
134
+ },
135
+ children: e.action.label
136
+ }
137
+ ),
138
+ e.dismissible !== !1 && /* @__PURE__ */ t(
139
+ "button",
140
+ {
141
+ type: "button",
142
+ className: o.closeButton,
143
+ onClick: c,
144
+ "aria-label": "Dismiss",
145
+ children: /* @__PURE__ */ t("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ t(
146
+ "path",
147
+ {
148
+ d: "M12 4L4 12M4 4l8 8",
149
+ stroke: "currentColor",
150
+ strokeWidth: "1.5",
151
+ strokeLinecap: "round",
152
+ strokeLinejoin: "round"
153
+ }
154
+ ) })
155
+ }
156
+ )
157
+ ]
158
+ }
159
+ );
160
+ }, D = ({
161
+ children: e,
162
+ position: u = "bottom-right",
163
+ maxToasts: d = 5,
164
+ defaultDuration: h = 5e3
165
+ }) => {
166
+ const [s, c] = g([]), i = a(
167
+ (r) => {
168
+ const n = P(), f = {
169
+ id: n,
170
+ duration: h,
171
+ dismissible: !0,
172
+ variant: "info",
173
+ ...r
174
+ };
175
+ return c((b) => {
176
+ const p = [...b, f];
177
+ return p.length > d ? p.slice(-d) : p;
178
+ }), n;
179
+ },
180
+ [h, d]
181
+ ), m = a((r) => {
182
+ c((n) => n.filter((f) => f.id !== r));
183
+ }, []), v = a(() => {
184
+ c([]);
185
+ }, []), k = a(
186
+ (r, n) => i({ message: r, variant: "info", ...n }),
187
+ [i]
188
+ ), C = a(
189
+ (r, n) => i({ message: r, variant: "success", ...n }),
190
+ [i]
191
+ ), L = a(
192
+ (r, n) => i({ message: r, variant: "warning", ...n }),
193
+ [i]
194
+ ), x = a(
195
+ (r, n) => i({ message: r, variant: "error", ...n }),
196
+ [i]
197
+ ), M = {
198
+ toast: i,
199
+ info: k,
200
+ success: C,
201
+ warning: L,
202
+ error: x,
203
+ dismiss: m,
204
+ dismissAll: v
205
+ }, T = [o.container, o[u]].filter(Boolean).join(" ");
206
+ return /* @__PURE__ */ l(w.Provider, { value: M, children: [
207
+ e,
208
+ s.length > 0 && y(
209
+ /* @__PURE__ */ t("div", { className: T, "aria-label": "Notifications", children: s.map((r) => /* @__PURE__ */ t(
210
+ I,
211
+ {
212
+ toast: r,
213
+ onDismiss: m
214
+ },
215
+ r.id
216
+ )) }),
217
+ document.body
218
+ )
219
+ ] });
220
+ };
221
+ D.displayName = "ToastProvider";
222
+ export {
223
+ D as ToastProvider,
224
+ $ as useToast
225
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),r=require("react"),L=require("react-dom"),o=require("./index151.cjs");let M=0;const N=()=>`toast-${++M}`,m=r.createContext(null),y=()=>{const e=r.useContext(m);if(!e)throw new Error("useToast must be used within a ToastProvider");return e},B=({toast:e,onDismiss:u})=>{const[l,d]=r.useState(!1),a=r.useRef(null),c=r.useCallback(()=>{d(!0),setTimeout(()=>{u(e.id),e.onDismiss?.()},200)},[e,u]);r.useEffect(()=>{if(e.duration&&e.duration>0)return a.current=setTimeout(c,e.duration),()=>{a.current&&clearTimeout(a.current)}},[e.duration,c]);const i=()=>{a.current&&clearTimeout(a.current)},h=()=>{e.duration&&e.duration>0&&(a.current=setTimeout(c,e.duration))},f=[o.default.toast,o.default[e.variant||"info"],l&&o.default.exiting].filter(Boolean).join(" "),k=()=>{switch(e.variant){case"success":return t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:t.jsx("path",{d:"M16.667 5L7.5 14.167 3.333 10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})});case"error":return t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[t.jsx("circle",{cx:"10",cy:"10",r:"7.5",stroke:"currentColor",strokeWidth:"1.5"}),t.jsx("path",{d:"M10 6v5M10 13.5v.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]});case"warning":return t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[t.jsx("path",{d:"M8.57 3.216L1.538 15.143a1.667 1.667 0 001.429 2.524h14.066a1.667 1.667 0 001.429-2.524L11.43 3.216a1.667 1.667 0 00-2.858 0z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),t.jsx("path",{d:"M10 7.5v3.333M10 14.167h.008",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]});default:return t.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[t.jsx("circle",{cx:"10",cy:"10",r:"7.5",stroke:"currentColor",strokeWidth:"1.5"}),t.jsx("path",{d:"M10 9v4.5M10 6.5v.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}};return t.jsxs("div",{className:f,role:"alert","aria-live":"polite",onMouseEnter:i,onMouseLeave:h,children:[t.jsx("span",{className:o.default.icon,"aria-hidden":"true",children:k()}),t.jsxs("div",{className:o.default.content,children:[e.title&&t.jsx("div",{className:o.default.title,children:e.title}),t.jsx("div",{className:o.default.message,children:e.message})]}),e.action&&t.jsx("button",{type:"button",className:o.default.action,onClick:()=>{e.action?.onClick(),c()},children:e.action.label}),e.dismissible!==!1&&t.jsx("button",{type:"button",className:o.default.closeButton,onClick:c,"aria-label":"Dismiss",children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:t.jsx("path",{d:"M12 4L4 12M4 4l8 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})]})},j=({children:e,position:u="bottom-right",maxToasts:l=5,defaultDuration:d=5e3})=>{const[a,c]=r.useState([]),i=r.useCallback(s=>{const n=N(),v={id:n,duration:d,dismissible:!0,variant:"info",...s};return c(T=>{const x=[...T,v];return x.length>l?x.slice(-l):x}),n},[d,l]),h=r.useCallback(s=>{c(n=>n.filter(v=>v.id!==s))},[]),f=r.useCallback(()=>{c([])},[]),k=r.useCallback((s,n)=>i({message:s,variant:"info",...n}),[i]),g=r.useCallback((s,n)=>i({message:s,variant:"success",...n}),[i]),C=r.useCallback((s,n)=>i({message:s,variant:"warning",...n}),[i]),b=r.useCallback((s,n)=>i({message:s,variant:"error",...n}),[i]),p={toast:i,info:k,success:g,warning:C,error:b,dismiss:h,dismissAll:f},w=[o.default.container,o.default[u]].filter(Boolean).join(" ");return t.jsxs(m.Provider,{value:p,children:[e,a.length>0&&L.createPortal(t.jsx("div",{className:w,"aria-label":"Notifications",children:a.map(s=>t.jsx(B,{toast:s,onDismiss:h},s.id))}),document.body)]})};j.displayName="ToastProvider";exports.ToastProvider=j;exports.useToast=y;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react/jsx-runtime"),l=require("react"),t=require("./index153.cjs"),u=l.forwardRef(({pressed:o,defaultPressed:c=!1,onPressedChange:a,variant:d="default",size:i="md",disabled:f,className:g,children:m,onClick:n,...b},T)=>{const[j,p]=l.useState(c),s=o!==void 0,e=s?o:j,y=l.useCallback(x=>{const r=!e;s||p(r),a?.(r),n?.(x)},[e,s,a,n]),q=[t.default.toggle,t.default[d],t.default[i],e&&t.default.pressed,g].filter(Boolean).join(" ");return N.jsx("button",{ref:T,type:"button",className:q,"aria-pressed":e,disabled:f,onClick:y,...b,children:m})});u.displayName="Toggle";exports.Toggle=u;
@@ -0,0 +1,48 @@
1
+ import { jsx as j } from "react/jsx-runtime";
2
+ import { forwardRef as k, useState as C, useCallback as P } from "react";
3
+ import s from "./index153.mjs";
4
+ const T = k(
5
+ ({
6
+ pressed: o,
7
+ defaultPressed: n = !1,
8
+ onPressedChange: l,
9
+ variant: i = "default",
10
+ size: c = "md",
11
+ disabled: d,
12
+ className: m,
13
+ children: f,
14
+ onClick: r,
15
+ ...p
16
+ }, u) => {
17
+ const [g, b] = C(n), t = o !== void 0, e = t ? o : g, x = P(
18
+ (N) => {
19
+ const a = !e;
20
+ t || b(a), l?.(a), r?.(N);
21
+ },
22
+ [e, t, l, r]
23
+ ), y = [
24
+ s.toggle,
25
+ s[i],
26
+ s[c],
27
+ e && s.pressed,
28
+ m
29
+ ].filter(Boolean).join(" ");
30
+ return /* @__PURE__ */ j(
31
+ "button",
32
+ {
33
+ ref: u,
34
+ type: "button",
35
+ className: y,
36
+ "aria-pressed": e,
37
+ disabled: d,
38
+ onClick: x,
39
+ ...p,
40
+ children: f
41
+ }
42
+ );
43
+ }
44
+ );
45
+ T.displayName = "Toggle";
46
+ export {
47
+ T as Toggle
48
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("react/jsx-runtime"),n=require("react"),a=require("./index163.cjs"),j=n.createContext(null);function q(){const t=n.useContext(j);if(!t)throw new Error("ToggleGroup.Item must be used within a ToggleGroup");return t}const A=n.forwardRef(({value:t,disabled:c,className:y,children:g,...d},f)=>{const{type:I,value:b,onItemToggle:x,variant:h,size:s,disabled:p}=q(),m=b.includes(t),T=c||p,u=[a.default.item,m&&a.default.itemPressed,y].filter(Boolean).join(" ");return G.jsx("button",{ref:f,type:"button",className:u,"aria-pressed":m,disabled:T,onClick:()=>x(t),...d,children:g})});A.displayName="ToggleGroup.Item";const R=n.forwardRef(({type:t,value:c,defaultValue:y,onValueChange:g,variant:d="default",size:f="md",disabled:I=!1,className:b,children:x,...h},s)=>{const p=e=>e===void 0?[]:Array.isArray(e)?e:[e],[m,T]=n.useState(p(y)),u=c!==void 0,i=u?p(c):m,k=n.useRef(null),C=n.useCallback(e=>{let o;i.includes(e)?o=i.filter(r=>r!==e):t==="multiple"?o=[...i,e]:o=[e],u||T(o),g?.(t==="single"?o[0]??"":o)},[i,t,u,g]),v=n.useCallback(e=>{const o=k.current;if(!o)return;const r=Array.from(o.querySelectorAll("button:not(:disabled)")),w=r.indexOf(e.target);if(w===-1)return;let l;e.key==="ArrowRight"||e.key==="ArrowDown"?l=(w+1)%r.length:e.key==="ArrowLeft"||e.key==="ArrowUp"?l=(w-1+r.length)%r.length:e.key==="Home"?l=0:e.key==="End"&&(l=r.length-1),l!==void 0&&(e.preventDefault(),r[l]?.focus())},[]),D=[a.default.group,a.default[d],a.default[f],b].filter(Boolean).join(" "),N={type:t,value:i,onItemToggle:C,variant:d,size:f,disabled:I};return G.jsx(j.Provider,{value:N,children:G.jsx("div",{ref:e=>{k.current=e,typeof s=="function"?s(e):s&&(s.current=e)},role:"group",className:D,onKeyDown:v,...h,children:x})})});R.displayName="ToggleGroup";const P=Object.assign(R,{Item:A});exports.ToggleGroup=P;
@@ -0,0 +1,101 @@
1
+ import { jsx as w } from "react/jsx-runtime";
2
+ import { forwardRef as A, useState as _, useRef as z, useCallback as k, createContext as B, useContext as E } from "react";
3
+ import u from "./index163.mjs";
4
+ const C = B(null);
5
+ function K() {
6
+ const t = E(C);
7
+ if (!t)
8
+ throw new Error("ToggleGroup.Item must be used within a ToggleGroup");
9
+ return t;
10
+ }
11
+ const D = A(
12
+ ({ value: t, disabled: a, className: p, children: c, ...g }, d) => {
13
+ const {
14
+ type: I,
15
+ value: y,
16
+ onItemToggle: x,
17
+ variant: h,
18
+ size: s,
19
+ disabled: f
20
+ } = K(), m = y.includes(t), b = a || f, l = [u.item, m && u.itemPressed, p].filter(Boolean).join(" ");
21
+ return /* @__PURE__ */ w(
22
+ "button",
23
+ {
24
+ ref: d,
25
+ type: "button",
26
+ className: l,
27
+ "aria-pressed": m,
28
+ disabled: b,
29
+ onClick: () => x(t),
30
+ ...g,
31
+ children: c
32
+ }
33
+ );
34
+ }
35
+ );
36
+ D.displayName = "ToggleGroup.Item";
37
+ const N = A(
38
+ ({
39
+ type: t,
40
+ value: a,
41
+ defaultValue: p,
42
+ onValueChange: c,
43
+ variant: g = "default",
44
+ size: d = "md",
45
+ disabled: I = !1,
46
+ className: y,
47
+ children: x,
48
+ ...h
49
+ }, s) => {
50
+ const f = (e) => e === void 0 ? [] : Array.isArray(e) ? e : [e], [m, b] = _(
51
+ f(p)
52
+ ), l = a !== void 0, i = l ? f(a) : m, G = z(null), v = k(
53
+ (e) => {
54
+ let o;
55
+ i.includes(e) ? o = i.filter((r) => r !== e) : t === "multiple" ? o = [...i, e] : o = [e], l || b(o), c?.(t === "single" ? o[0] ?? "" : o);
56
+ },
57
+ [i, t, l, c]
58
+ ), R = k(
59
+ (e) => {
60
+ const o = G.current;
61
+ if (!o) return;
62
+ const r = Array.from(
63
+ o.querySelectorAll(
64
+ "button:not(:disabled)"
65
+ )
66
+ ), T = r.indexOf(e.target);
67
+ if (T === -1) return;
68
+ let n;
69
+ e.key === "ArrowRight" || e.key === "ArrowDown" ? n = (T + 1) % r.length : e.key === "ArrowLeft" || e.key === "ArrowUp" ? n = (T - 1 + r.length) % r.length : e.key === "Home" ? n = 0 : e.key === "End" && (n = r.length - 1), n !== void 0 && (e.preventDefault(), r[n]?.focus());
70
+ },
71
+ []
72
+ ), j = [u.group, u[g], u[d], y].filter(Boolean).join(" "), P = {
73
+ type: t,
74
+ value: i,
75
+ onItemToggle: v,
76
+ variant: g,
77
+ size: d,
78
+ disabled: I
79
+ };
80
+ return /* @__PURE__ */ w(C.Provider, { value: P, children: /* @__PURE__ */ w(
81
+ "div",
82
+ {
83
+ ref: (e) => {
84
+ G.current = e, typeof s == "function" ? s(e) : s && (s.current = e);
85
+ },
86
+ role: "group",
87
+ className: j,
88
+ onKeyDown: R,
89
+ ...h,
90
+ children: x
91
+ }
92
+ ) });
93
+ }
94
+ );
95
+ N.displayName = "ToggleGroup";
96
+ const H = Object.assign(N, {
97
+ Item: D
98
+ });
99
+ export {
100
+ H as ToggleGroup
101
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),t=require("react"),o=require("./index139.cjs"),r=({content:u,placement:a="top",delay:c=200,disabled:s=!1,children:l,className:f})=>{const[d,e]=t.useState(!1),n=t.useRef(void 0),m=()=>{s||(n.current=setTimeout(()=>{e(!0)},c))},p=()=>{n.current&&clearTimeout(n.current),e(!1)},v=()=>{s||e(!0)},T=()=>{e(!1)},j=[o.default.tooltip,o.default[a],f].filter(Boolean).join(" "),h=t.isValidElement(l)?t.cloneElement(l,{onMouseEnter:m,onMouseLeave:p,onFocus:v,onBlur:T}):l;return i.jsxs("div",{className:o.default.container,children:[h,d&&!s&&i.jsxs("div",{className:j,role:"tooltip",children:[u,i.jsx("div",{className:o.default.arrow})]})]})};r.displayName="Tooltip";exports.Tooltip=r;
@@ -0,0 +1,39 @@
1
+ import { jsxs as l, jsx as E } from "react/jsx-runtime";
2
+ import { useState as M, useRef as N, isValidElement as T, cloneElement as j } from "react";
3
+ import o from "./index139.mjs";
4
+ const x = ({
5
+ content: r,
6
+ placement: i = "top",
7
+ delay: a = 200,
8
+ disabled: t = !1,
9
+ children: s,
10
+ className: c
11
+ }) => {
12
+ const [u, e] = M(!1), n = N(void 0), m = () => {
13
+ t || (n.current = setTimeout(() => {
14
+ e(!0);
15
+ }, a));
16
+ }, f = () => {
17
+ n.current && clearTimeout(n.current), e(!1);
18
+ }, p = () => {
19
+ t || e(!0);
20
+ }, d = () => {
21
+ e(!1);
22
+ }, v = [o.tooltip, o[i], c].filter(Boolean).join(" "), h = T(s) ? j(s, {
23
+ onMouseEnter: m,
24
+ onMouseLeave: f,
25
+ onFocus: p,
26
+ onBlur: d
27
+ }) : s;
28
+ return /* @__PURE__ */ l("div", { className: o.container, children: [
29
+ h,
30
+ u && !t && /* @__PURE__ */ l("div", { className: v, role: "tooltip", children: [
31
+ r,
32
+ /* @__PURE__ */ E("div", { className: o.arrow })
33
+ ] })
34
+ ] });
35
+ };
36
+ x.displayName = "Tooltip";
37
+ export {
38
+ x as Tooltip
39
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),l=require("lucide-react"),s=require("./index140.cjs"),b={success:e.jsx(l.CheckCircle,{size:20}),error:e.jsx(l.XCircle,{size:20}),warning:e.jsx(l.AlertTriangle,{size:20}),info:e.jsx(l.Info,{size:20}),inverse:e.jsx(l.Info,{size:20})},u=({variant:t="info",title:a,dismissible:d=!1,onClose:f,icon:i,className:n,children:o,...j})=>{const[m,x]=r.useState(!0),h=()=>{x(!1),f?.()},N=r.useMemo(()=>[s.default.alert,s.default[t],n].filter(Boolean).join(" "),[t,n]),c=r.useMemo(()=>i!==void 0?i:b[t],[i,t]);return m?e.jsxs("div",{className:N,role:"alert",...j,children:[c&&e.jsx("div",{className:s.default.icon,"aria-hidden":"true",children:c}),e.jsxs("div",{className:s.default.content,children:[a&&e.jsx("div",{className:s.default.title,children:a}),o&&e.jsx("div",{className:s.default.message,children:o})]}),d&&e.jsx("button",{type:"button",className:s.default.closeButton,onClick:h,"aria-label":"Close alert",children:e.jsx(l.X,{size:18,"aria-hidden":"true"})})]}):null};u.displayName="Alert";exports.Alert=u;
@@ -0,0 +1,51 @@
1
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
+ import { useState as z, useMemo as c } from "react";
3
+ import { X as b, Info as d, AlertTriangle as v, XCircle as y, CheckCircle as A } from "lucide-react";
4
+ import s from "./index140.mjs";
5
+ const I = {
6
+ success: /* @__PURE__ */ e(A, { size: 20 }),
7
+ error: /* @__PURE__ */ e(y, { size: 20 }),
8
+ warning: /* @__PURE__ */ e(v, { size: 20 }),
9
+ info: /* @__PURE__ */ e(d, { size: 20 }),
10
+ inverse: /* @__PURE__ */ e(d, { size: 20 })
11
+ }, g = ({
12
+ variant: i = "info",
13
+ title: r,
14
+ dismissible: m = !1,
15
+ onClose: u,
16
+ icon: l,
17
+ className: o,
18
+ children: t,
19
+ ...f
20
+ }) => {
21
+ const [h, p] = z(!0), N = () => {
22
+ p(!1), u?.();
23
+ }, C = c(
24
+ () => [s.alert, s[i], o].filter(Boolean).join(" "),
25
+ [i, o]
26
+ ), n = c(
27
+ () => l !== void 0 ? l : I[i],
28
+ [l, i]
29
+ );
30
+ return h ? /* @__PURE__ */ a("div", { className: C, role: "alert", ...f, children: [
31
+ n && /* @__PURE__ */ e("div", { className: s.icon, "aria-hidden": "true", children: n }),
32
+ /* @__PURE__ */ a("div", { className: s.content, children: [
33
+ r && /* @__PURE__ */ e("div", { className: s.title, children: r }),
34
+ t && /* @__PURE__ */ e("div", { className: s.message, children: t })
35
+ ] }),
36
+ m && /* @__PURE__ */ e(
37
+ "button",
38
+ {
39
+ type: "button",
40
+ className: s.closeButton,
41
+ onClick: N,
42
+ "aria-label": "Close alert",
43
+ children: /* @__PURE__ */ e(b, { size: 18, "aria-hidden": "true" })
44
+ }
45
+ )
46
+ ] }) : null;
47
+ };
48
+ g.displayName = "Alert";
49
+ export {
50
+ g as Alert
51
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),c=require("react"),S=require("lucide-react"),e=require("./index175.cjs"),L={online:"var(--text-success)",away:"var(--text-warning)",busy:"var(--text-error)",offline:"var(--text-tertiary)"},x=c.forwardRef(({user:n,sections:f,open:o,onOpenChange:v,trigger:m,align:g="end",placement:N="bottom",showHeader:b=!0,compact:h=!1,fullWidth:C=!1,className:w,...y},I)=>{const[k,E]=c.useState(!1),u=c.useRef(null),i=c.useRef(null),l=o!==void 0?o:k,d=t=>{o===void 0&&E(t),v?.(t)};c.useEffect(()=>{const t=r=>{u.current&&!u.current.contains(r.target)&&i.current&&!i.current.contains(r.target)&&d(!1)};if(l)return document.addEventListener("mousedown",t),()=>document.removeEventListener("mousedown",t)},[l]),c.useEffect(()=>{const t=r=>{r.key==="Escape"&&l&&(d(!1),i.current?.focus())};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[l]);const R=t=>{t.disabled||(t.onClick?.(),d(!1))},p=t=>t.split(" ").map(r=>r[0]).join("").toUpperCase().slice(0,2),M=[e.default.userMenu,C&&e.default.userMenuFullWidth,w].filter(Boolean).join(" "),B=[e.default.trigger,h&&e.default.triggerCompact].filter(Boolean).join(" "),O=[e.default.dropdown,l&&e.default.dropdownOpen,g==="start"&&e.default.dropdownStart,N==="top"&&e.default.dropdownTop].filter(Boolean).join(" ");return a.jsxs("div",{ref:I,className:M,...y,children:[m?a.jsx("div",{onClick:()=>d(!l),children:m}):a.jsxs("button",{ref:i,type:"button",className:B,onClick:()=>d(!l),"aria-expanded":l,"aria-haspopup":"true",children:[a.jsxs("div",{className:e.default.avatar,children:[n.avatar?a.jsx("img",{src:n.avatar,alt:n.name,className:e.default.avatarImage}):a.jsx("span",{className:e.default.avatarInitials,children:n.initials||p(n.name)}),n.status&&a.jsx("span",{className:e.default.statusIndicator,style:{backgroundColor:L[n.status]}})]}),!h&&a.jsxs(a.Fragment,{children:[a.jsxs("div",{className:e.default.triggerInfo,children:[a.jsx("span",{className:e.default.triggerName,children:n.name}),n.role&&a.jsx("span",{className:e.default.triggerRole,children:n.role})]}),a.jsx(S.ChevronDown,{size:16,className:`${e.default.chevron} ${l?e.default.chevronOpen:""}`})]})]}),a.jsxs("div",{ref:u,className:O,role:"menu",children:[b&&a.jsxs("div",{className:e.default.header,children:[a.jsx("div",{className:e.default.headerAvatar,children:n.avatar?a.jsx("img",{src:n.avatar,alt:n.name,className:e.default.avatarImage}):a.jsx("span",{className:e.default.avatarInitials,children:n.initials||p(n.name)})}),a.jsxs("div",{className:e.default.headerInfo,children:[a.jsx("span",{className:e.default.headerName,children:n.name}),n.email&&a.jsx("span",{className:e.default.headerEmail,children:n.email})]})]}),f.map((t,r)=>a.jsxs("div",{className:e.default.section,children:[t.label&&a.jsx("div",{className:e.default.sectionLabel,children:t.label}),t.items.map(s=>{const j=[e.default.item,s.danger&&e.default.itemDanger,s.disabled&&e.default.itemDisabled].filter(Boolean).join(" ");return s.href&&!s.disabled?a.jsxs("a",{href:s.href,className:j,role:"menuitem",onClick:()=>d(!1),children:[s.icon&&a.jsx("span",{className:e.default.itemIcon,children:s.icon}),a.jsx("span",{children:s.label}),s.badge!==void 0&&a.jsx("span",{className:e.default.itemBadge,children:s.badge}),s.shortcut&&a.jsx("span",{className:e.default.itemShortcut,children:s.shortcut})]},s.id):a.jsxs("button",{type:"button",className:j,role:"menuitem",disabled:s.disabled,onClick:()=>R(s),children:[s.icon&&a.jsx("span",{className:e.default.itemIcon,children:s.icon}),a.jsx("span",{children:s.label}),s.badge!==void 0&&a.jsx("span",{className:e.default.itemBadge,children:s.badge}),s.shortcut&&a.jsx("span",{className:e.default.itemShortcut,children:s.shortcut})]},s.id)}),r<f.length-1&&a.jsx("div",{className:e.default.divider})]},t.id))]})]})});x.displayName="UserMenu";exports.UserMenu=x;