magnaui 0.1.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 (512) hide show
  1. package/LICENSE +38 -0
  2. package/LICENSES/Apache-2.0.txt +202 -0
  3. package/LICENSES/Libraries.dev-MIT.txt +21 -0
  4. package/LICENSES/Tiptap-MIT.txt +21 -0
  5. package/LICENSES/metal-fx-NOTICE.txt +22 -0
  6. package/LICENSES/three-MIT.txt +21 -0
  7. package/README.md +73 -0
  8. package/THIRD_PARTY_NOTICES.md +72 -0
  9. package/dist/assets/agent-studio.png +0 -0
  10. package/dist/assets/api-studio.png +0 -0
  11. package/dist/assets/app-store.png +0 -0
  12. package/dist/assets/approvals.png +0 -0
  13. package/dist/assets/assistant.png +0 -0
  14. package/dist/assets/brain.png +0 -0
  15. package/dist/assets/browser.png +0 -0
  16. package/dist/assets/checkbox/check.svg +3 -0
  17. package/dist/assets/checkbox/indeterminate.svg +3 -0
  18. package/dist/assets/code.png +0 -0
  19. package/dist/assets/connect-ai.png +0 -0
  20. package/dist/assets/connections.png +0 -0
  21. package/dist/assets/database.png +0 -0
  22. package/dist/assets/display/06153.svg +5 -0
  23. package/dist/assets/display/106a6.svg +22 -0
  24. package/dist/assets/display/16525.svg +5 -0
  25. package/dist/assets/display/18a45.svg +5 -0
  26. package/dist/assets/display/1c133.svg +5 -0
  27. package/dist/assets/display/1c6fa.svg +5 -0
  28. package/dist/assets/display/1db47.svg +5 -0
  29. package/dist/assets/display/237a6.svg +5 -0
  30. package/dist/assets/display/27ca8.svg +5 -0
  31. package/dist/assets/display/347ef.svg +22 -0
  32. package/dist/assets/display/35edd.svg +5 -0
  33. package/dist/assets/display/38def.svg +5 -0
  34. package/dist/assets/display/3a834.svg +5 -0
  35. package/dist/assets/display/3e51d.svg +5 -0
  36. package/dist/assets/display/3f95e.svg +5 -0
  37. package/dist/assets/display/400d1.svg +5 -0
  38. package/dist/assets/display/4239a.svg +5 -0
  39. package/dist/assets/display/4477e.svg +22 -0
  40. package/dist/assets/display/46574.svg +5 -0
  41. package/dist/assets/display/469e4.svg +5 -0
  42. package/dist/assets/display/48559.svg +22 -0
  43. package/dist/assets/display/4e103.svg +22 -0
  44. package/dist/assets/display/4ef80.svg +5 -0
  45. package/dist/assets/display/51b32.svg +22 -0
  46. package/dist/assets/display/5320a.svg +5 -0
  47. package/dist/assets/display/56a7a.svg +22 -0
  48. package/dist/assets/display/56cab.svg +5 -0
  49. package/dist/assets/display/5fc70.svg +22 -0
  50. package/dist/assets/display/60ab5.svg +22 -0
  51. package/dist/assets/display/60c44.svg +5 -0
  52. package/dist/assets/display/61721.svg +5 -0
  53. package/dist/assets/display/648b1.svg +5 -0
  54. package/dist/assets/display/65aad.svg +5 -0
  55. package/dist/assets/display/665bc.svg +5 -0
  56. package/dist/assets/display/691ac.svg +22 -0
  57. package/dist/assets/display/6a48e.svg +5 -0
  58. package/dist/assets/display/6af80.svg +22 -0
  59. package/dist/assets/display/6c384.svg +5 -0
  60. package/dist/assets/display/6c7fb.svg +5 -0
  61. package/dist/assets/display/6ce08.svg +22 -0
  62. package/dist/assets/display/76be1.svg +5 -0
  63. package/dist/assets/display/79287.svg +5 -0
  64. package/dist/assets/display/7ea85.svg +5 -0
  65. package/dist/assets/display/7eeaf.svg +5 -0
  66. package/dist/assets/display/82602.svg +5 -0
  67. package/dist/assets/display/8a43e.svg +5 -0
  68. package/dist/assets/display/8bdb8.svg +22 -0
  69. package/dist/assets/display/8d235.svg +5 -0
  70. package/dist/assets/display/90498.svg +22 -0
  71. package/dist/assets/display/908e9.svg +5 -0
  72. package/dist/assets/display/90942.svg +5 -0
  73. package/dist/assets/display/943fb.svg +5 -0
  74. package/dist/assets/display/96ddd.svg +22 -0
  75. package/dist/assets/display/9e5a0.svg +22 -0
  76. package/dist/assets/display/9e9ac.svg +5 -0
  77. package/dist/assets/display/a35a7.svg +22 -0
  78. package/dist/assets/display/af15f.svg +5 -0
  79. package/dist/assets/display/b04fe.svg +5 -0
  80. package/dist/assets/display/b0925.svg +5 -0
  81. package/dist/assets/display/b464b.svg +5 -0
  82. package/dist/assets/display/b8efe.svg +5 -0
  83. package/dist/assets/display/bbddb.svg +5 -0
  84. package/dist/assets/display/bd61c.svg +5 -0
  85. package/dist/assets/display/be577.svg +5 -0
  86. package/dist/assets/display/bf02d.svg +5 -0
  87. package/dist/assets/display/bf1dc.svg +5 -0
  88. package/dist/assets/display/c70b6.svg +5 -0
  89. package/dist/assets/display/c8a01.svg +5 -0
  90. package/dist/assets/display/cb00b.svg +22 -0
  91. package/dist/assets/display/cecfd.svg +5 -0
  92. package/dist/assets/display/d2cc2.svg +5 -0
  93. package/dist/assets/display/d428d.svg +22 -0
  94. package/dist/assets/display/d71e2.svg +22 -0
  95. package/dist/assets/display/d8f1d.svg +22 -0
  96. package/dist/assets/display/d92e5.svg +5 -0
  97. package/dist/assets/display/d9698.svg +5 -0
  98. package/dist/assets/display/e542b.svg +5 -0
  99. package/dist/assets/display/e59af.svg +5 -0
  100. package/dist/assets/display/e5a41.svg +5 -0
  101. package/dist/assets/display/e894a.svg +5 -0
  102. package/dist/assets/display/ea9e5.svg +5 -0
  103. package/dist/assets/display/eac01.svg +5 -0
  104. package/dist/assets/display/ec734.svg +5 -0
  105. package/dist/assets/display/edb55.svg +5 -0
  106. package/dist/assets/display/ee164.svg +5 -0
  107. package/dist/assets/display/f01d5.svg +5 -0
  108. package/dist/assets/display/f479a.svg +22 -0
  109. package/dist/assets/display/f8ebb.svg +22 -0
  110. package/dist/assets/display/fb8ab.svg +5 -0
  111. package/dist/assets/display/fbdce.svg +5 -0
  112. package/dist/assets/docs.png +0 -0
  113. package/dist/assets/editor/align-left.svg +5 -0
  114. package/dist/assets/editor/arrow-down.svg +5 -0
  115. package/dist/assets/editor/arrow-up.svg +5 -0
  116. package/dist/assets/editor/at.svg +5 -0
  117. package/dist/assets/editor/bold-active.svg +5 -0
  118. package/dist/assets/editor/bold-strong.svg +5 -0
  119. package/dist/assets/editor/bold.svg +5 -0
  120. package/dist/assets/editor/comment.svg +5 -0
  121. package/dist/assets/editor/divider-more.svg +5 -0
  122. package/dist/assets/editor/divider.svg +5 -0
  123. package/dist/assets/editor/duration-check.svg +3 -0
  124. package/dist/assets/editor/italic.svg +5 -0
  125. package/dist/assets/editor/link.svg +5 -0
  126. package/dist/assets/editor/more.svg +5 -0
  127. package/dist/assets/editor/status-available.svg +5 -0
  128. package/dist/assets/editor/status-busy.svg +5 -0
  129. package/dist/assets/editor/status-disabled.svg +5 -0
  130. package/dist/assets/editor/status-in-meeting.svg +5 -0
  131. package/dist/assets/editor/status-offline.svg +5 -0
  132. package/dist/assets/editor/strike.svg +5 -0
  133. package/dist/assets/editor/time-check.svg +3 -0
  134. package/dist/assets/editor/underline.svg +5 -0
  135. package/dist/assets/expenses.png +0 -0
  136. package/dist/assets/feeds/activity-more.svg +5 -0
  137. package/dist/assets/feeds/activity-user.svg +5 -0
  138. package/dist/assets/feeds/attachment.svg +5 -0
  139. package/dist/assets/feeds/calendar.svg +5 -0
  140. package/dist/assets/feeds/comment.svg +5 -0
  141. package/dist/assets/feeds/download-hover.svg +5 -0
  142. package/dist/assets/feeds/download.svg +5 -0
  143. package/dist/assets/feeds/filter.svg +5 -0
  144. package/dist/assets/feeds/header-calendar.svg +5 -0
  145. package/dist/assets/feeds/notification-attachment.svg +5 -0
  146. package/dist/assets/feeds/notification-company.svg +17 -0
  147. package/dist/assets/feeds/notification-filter.svg +5 -0
  148. package/dist/assets/feeds/notification-more.svg +5 -0
  149. package/dist/assets/feeds/search.svg +5 -0
  150. package/dist/assets/feeds/selected-filter-active.svg +5 -0
  151. package/dist/assets/feeds/selected-filter.svg +5 -0
  152. package/dist/assets/feeds/settings.svg +5 -0
  153. package/dist/assets/feeds/sort.svg +5 -0
  154. package/dist/assets/feeds/status-error.svg +5 -0
  155. package/dist/assets/feeds/status-pending.svg +5 -0
  156. package/dist/assets/feeds/status-success.svg +5 -0
  157. package/dist/assets/feeds/status-warning.svg +5 -0
  158. package/dist/assets/feeds/upload-avatar-empty56.svg +13 -0
  159. package/dist/assets/feeds/upload-avatar-empty64.svg +13 -0
  160. package/dist/assets/feeds/upload-cancel.svg +5 -0
  161. package/dist/assets/feeds/upload-company-empty.svg +42 -0
  162. package/dist/assets/feeds/upload-company.svg +17 -0
  163. package/dist/assets/feeds/upload-delete-error.svg +5 -0
  164. package/dist/assets/feeds/upload-delete.svg +5 -0
  165. package/dist/assets/feeds/upload-error.svg +5 -0
  166. package/dist/assets/feeds/upload-loading.svg +5 -0
  167. package/dist/assets/feeds/upload-success.svg +5 -0
  168. package/dist/assets/feeds/vertical-arrow.svg +5 -0
  169. package/dist/assets/feeds/vertical-calendar-active.svg +5 -0
  170. package/dist/assets/feeds/vertical-calendar-hover.svg +5 -0
  171. package/dist/assets/feeds/vertical-calendar.svg +5 -0
  172. package/dist/assets/file.png +0 -0
  173. package/dist/assets/folder.png +0 -0
  174. package/dist/assets/forms/07b3a.png +0 -0
  175. package/dist/assets/forms/09fe0.svg +5 -0
  176. package/dist/assets/forms/11a76.svg +5 -0
  177. package/dist/assets/forms/185ae.svg +5 -0
  178. package/dist/assets/forms/1f174.svg +5 -0
  179. package/dist/assets/forms/29541.svg +5 -0
  180. package/dist/assets/forms/2b6f8.svg +5 -0
  181. package/dist/assets/forms/36c22.svg +5 -0
  182. package/dist/assets/forms/4cb9a.svg +5 -0
  183. package/dist/assets/forms/4ff30.png +0 -0
  184. package/dist/assets/forms/537d2.svg +5 -0
  185. package/dist/assets/forms/60456.svg +5 -0
  186. package/dist/assets/forms/657e1.svg +5 -0
  187. package/dist/assets/forms/73539.svg +5 -0
  188. package/dist/assets/forms/76214.svg +5 -0
  189. package/dist/assets/forms/7bd9a.svg +5 -0
  190. package/dist/assets/forms/7c034.svg +5 -0
  191. package/dist/assets/forms/86e36.svg +5 -0
  192. package/dist/assets/forms/8d97b.svg +5 -0
  193. package/dist/assets/forms/90a18.svg +5 -0
  194. package/dist/assets/forms/939c2.png +0 -0
  195. package/dist/assets/forms/95ae4.svg +5 -0
  196. package/dist/assets/forms/970af.svg +5 -0
  197. package/dist/assets/forms/a119e.svg +5 -0
  198. package/dist/assets/forms/a521c.svg +5 -0
  199. package/dist/assets/forms/a74b0.svg +5 -0
  200. package/dist/assets/forms/baff4.svg +5 -0
  201. package/dist/assets/forms/c64ff.svg +5 -0
  202. package/dist/assets/forms/ca66f.svg +5 -0
  203. package/dist/assets/forms/e0344.svg +5 -0
  204. package/dist/assets/forms/e5b24.png +0 -0
  205. package/dist/assets/forms/e687f.svg +5 -0
  206. package/dist/assets/forms/eceaf.svg +5 -0
  207. package/dist/assets/forms/eed5c.png +0 -0
  208. package/dist/assets/forms/f26ce.svg +5 -0
  209. package/dist/assets/forms/f79d5.svg +5 -0
  210. package/dist/assets/habits.png +0 -0
  211. package/dist/assets/hackify.png +0 -0
  212. package/dist/assets/icons/add.svg +5 -0
  213. package/dist/assets/icons/apps.svg +5 -0
  214. package/dist/assets/icons/book.svg +5 -0
  215. package/dist/assets/icons/chat.svg +5 -0
  216. package/dist/assets/icons/folder.svg +5 -0
  217. package/dist/assets/icons/mic.svg +5 -0
  218. package/dist/assets/icons/notifications.svg +5 -0
  219. package/dist/assets/icons/shield.svg +5 -0
  220. package/dist/assets/icons/store.svg +5 -0
  221. package/dist/assets/icons/voice.svg +5 -0
  222. package/dist/assets/ledger.png +0 -0
  223. package/dist/assets/logos/glyph-black.svg +3 -0
  224. package/dist/assets/logos/glyph-color.svg +26 -0
  225. package/dist/assets/logos/glyph-white.svg +3 -0
  226. package/dist/assets/logos/horizontal-black.svg +5 -0
  227. package/dist/assets/logos/horizontal-color-black.svg +28 -0
  228. package/dist/assets/logos/horizontal-color-white.svg +28 -0
  229. package/dist/assets/logos/horizontal-white.svg +5 -0
  230. package/dist/assets/logos/stacked-black.svg +5 -0
  231. package/dist/assets/logos/stacked-color-black.svg +28 -0
  232. package/dist/assets/logos/stacked-color-white.svg +28 -0
  233. package/dist/assets/logos/stacked-white.svg +5 -0
  234. package/dist/assets/logos/tagline-horizontal-black.svg +6 -0
  235. package/dist/assets/logos/tagline-horizontal-color-black.svg +29 -0
  236. package/dist/assets/logos/tagline-horizontal-color-white.svg +29 -0
  237. package/dist/assets/logos/tagline-horizontal-white.svg +6 -0
  238. package/dist/assets/logos/tagline-inline-black.svg +7 -0
  239. package/dist/assets/logos/tagline-inline-color-black.svg +30 -0
  240. package/dist/assets/logos/tagline-inline-color-white-alt.svg +30 -0
  241. package/dist/assets/logos/tagline-inline-color-white.svg +30 -0
  242. package/dist/assets/logos/tagline-inline-white.svg +7 -0
  243. package/dist/assets/logos/tagline-stacked-black.svg +6 -0
  244. package/dist/assets/logos/tagline-stacked-color-black.svg +29 -0
  245. package/dist/assets/logos/tagline-stacked-color-white.svg +29 -0
  246. package/dist/assets/logos/tagline-stacked-white.svg +6 -0
  247. package/dist/assets/magna-brief.png +0 -0
  248. package/dist/assets/magna-ide.png +0 -0
  249. package/dist/assets/magna-logo-dark.svg +5 -0
  250. package/dist/assets/magna-logo-stacked.svg +29 -0
  251. package/dist/assets/magna-logo.svg +3 -0
  252. package/dist/assets/magna-music.png +0 -0
  253. package/dist/assets/magna-studio.png +0 -0
  254. package/dist/assets/magna-voice.png +0 -0
  255. package/dist/assets/mail.png +0 -0
  256. package/dist/assets/models.png +0 -0
  257. package/dist/assets/notes.png +0 -0
  258. package/dist/assets/notifications.png +0 -0
  259. package/dist/assets/salis-verify.png +0 -0
  260. package/dist/assets/salis.png +0 -0
  261. package/dist/assets/settings.png +0 -0
  262. package/dist/assets/sheets.png +0 -0
  263. package/dist/assets/sledes.png +0 -0
  264. package/dist/assets/spaces.png +0 -0
  265. package/dist/assets/task-manager.png +0 -0
  266. package/dist/assets/tasks.png +0 -0
  267. package/dist/assets/terminal.png +0 -0
  268. package/dist/assets/today.png +0 -0
  269. package/dist/assets/trajectory.png +0 -0
  270. package/dist/assets/vault.png +0 -0
  271. package/dist/assets/wafir.png +0 -0
  272. package/dist/assets/what-can-i-do.png +0 -0
  273. package/dist/assets/workflow.png +0 -0
  274. package/dist/components/interactions/border-beam.d.ts +5 -0
  275. package/dist/components/interactions/border-beam.js +15 -0
  276. package/dist/components/interactions/bot-avatar.d.ts +5 -0
  277. package/dist/components/interactions/bot-avatar.js +10 -0
  278. package/dist/components/interactions/image-generation.d.ts +58 -0
  279. package/dist/components/interactions/image-generation.js +86 -0
  280. package/dist/components/interactions/index.d.ts +7 -0
  281. package/dist/components/interactions/index.js +7 -0
  282. package/dist/components/interactions/liquid.d.ts +8 -0
  283. package/dist/components/interactions/liquid.js +19 -0
  284. package/dist/components/interactions/metal-fx.d.ts +6 -0
  285. package/dist/components/interactions/metal-fx.js +51 -0
  286. package/dist/components/interactions/preferences.d.ts +5 -0
  287. package/dist/components/interactions/preferences.js +55 -0
  288. package/dist/components/interactions/thinking-orb.d.ts +4 -0
  289. package/dist/components/interactions/thinking-orb.js +9 -0
  290. package/dist/components/interactions/voice-beam.d.ts +5 -0
  291. package/dist/components/interactions/voice-beam.js +33 -0
  292. package/dist/components/magna/app-icon.d.ts +13 -0
  293. package/dist/components/magna/app-icon.js +15 -0
  294. package/dist/components/magna/apps.d.ts +202 -0
  295. package/dist/components/magna/apps.js +243 -0
  296. package/dist/components/magna/chat-activity.d.ts +12 -0
  297. package/dist/components/magna/chat-activity.js +29 -0
  298. package/dist/components/magna/chat-composer.d.ts +31 -0
  299. package/dist/components/magna/chat-composer.js +122 -0
  300. package/dist/components/magna/chat-composer.module.css +36 -0
  301. package/dist/components/magna/desktop-button.d.ts +8 -0
  302. package/dist/components/magna/desktop-button.js +10 -0
  303. package/dist/components/magna/desktop-switch.d.ts +4 -0
  304. package/dist/components/magna/desktop-switch.js +8 -0
  305. package/dist/components/magna/file-tile.d.ts +9 -0
  306. package/dist/components/magna/file-tile.js +11 -0
  307. package/dist/components/magna/index.d.ts +11 -0
  308. package/dist/components/magna/index.js +11 -0
  309. package/dist/components/magna/logo-variants.d.ts +243 -0
  310. package/dist/components/magna/logo-variants.js +268 -0
  311. package/dist/components/magna/logo.d.ts +11 -0
  312. package/dist/components/magna/logo.js +42 -0
  313. package/dist/components/magna/navigation.d.ts +15 -0
  314. package/dist/components/magna/navigation.js +16 -0
  315. package/dist/components/magna/project-context.d.ts +11 -0
  316. package/dist/components/magna/project-context.js +8 -0
  317. package/dist/components/magna/voice-orb.d.ts +7 -0
  318. package/dist/components/magna/voice-orb.js +49 -0
  319. package/dist/components/magna/voice-orb.module.css +146 -0
  320. package/dist/components/theme-switch.d.ts +1 -0
  321. package/dist/components/theme-switch.js +14 -0
  322. package/dist/components/ui/accordion.d.ts +13 -0
  323. package/dist/components/ui/accordion.js +24 -0
  324. package/dist/components/ui/activity-feed.d.ts +64 -0
  325. package/dist/components/ui/activity-feed.js +40 -0
  326. package/dist/components/ui/alert.d.ts +31 -0
  327. package/dist/components/ui/alert.js +73 -0
  328. package/dist/components/ui/avatar-empty-icons.d.ts +3 -0
  329. package/dist/components/ui/avatar-empty-icons.js +14 -0
  330. package/dist/components/ui/avatar-group-compact.d.ts +140 -0
  331. package/dist/components/ui/avatar-group-compact.js +41 -0
  332. package/dist/components/ui/avatar-group.d.ts +237 -0
  333. package/dist/components/ui/avatar-group.js +37 -0
  334. package/dist/components/ui/avatar.d.ts +420 -0
  335. package/dist/components/ui/avatar.js +107 -0
  336. package/dist/components/ui/badge.d.ts +29 -0
  337. package/dist/components/ui/badge.js +67 -0
  338. package/dist/components/ui/banner.d.ts +26 -0
  339. package/dist/components/ui/banner.js +41 -0
  340. package/dist/components/ui/breadcrumb.d.ts +14 -0
  341. package/dist/components/ui/breadcrumb.js +23 -0
  342. package/dist/components/ui/button-group.d.ts +23 -0
  343. package/dist/components/ui/button-group.js +39 -0
  344. package/dist/components/ui/button.d.ts +22 -0
  345. package/dist/components/ui/button.js +62 -0
  346. package/dist/components/ui/chart-legend.d.ts +21 -0
  347. package/dist/components/ui/chart-legend.js +14 -0
  348. package/dist/components/ui/checkbox.d.ts +41 -0
  349. package/dist/components/ui/checkbox.js +42 -0
  350. package/dist/components/ui/color-picker.d.ts +13 -0
  351. package/dist/components/ui/color-picker.js +65 -0
  352. package/dist/components/ui/command-menu.d.ts +55 -0
  353. package/dist/components/ui/command-menu.js +33 -0
  354. package/dist/components/ui/compact-button.d.ts +22 -0
  355. package/dist/components/ui/compact-button.js +39 -0
  356. package/dist/components/ui/content-card.d.ts +22 -0
  357. package/dist/components/ui/content-card.js +11 -0
  358. package/dist/components/ui/content-label.d.ts +22 -0
  359. package/dist/components/ui/content-label.js +9 -0
  360. package/dist/components/ui/counter-input.d.ts +26 -0
  361. package/dist/components/ui/counter-input.js +47 -0
  362. package/dist/components/ui/datepicker.d.ts +9 -0
  363. package/dist/components/ui/datepicker.js +48 -0
  364. package/dist/components/ui/digit-input.d.ts +11 -0
  365. package/dist/components/ui/digit-input.js +98 -0
  366. package/dist/components/ui/display-asset.d.ts +3 -0
  367. package/dist/components/ui/display-asset.js +9 -0
  368. package/dist/components/ui/display-assets.d.ts +193 -0
  369. package/dist/components/ui/display-assets.js +195 -0
  370. package/dist/components/ui/divider.d.ts +13 -0
  371. package/dist/components/ui/divider.js +22 -0
  372. package/dist/components/ui/dot-stepper.d.ts +96 -0
  373. package/dist/components/ui/dot-stepper.js +29 -0
  374. package/dist/components/ui/drawer.d.ts +12 -0
  375. package/dist/components/ui/drawer.js +25 -0
  376. package/dist/components/ui/dropdown.d.ts +29 -0
  377. package/dist/components/ui/dropdown.js +74 -0
  378. package/dist/components/ui/fancy-button.d.ts +21 -0
  379. package/dist/components/ui/fancy-button.js +43 -0
  380. package/dist/components/ui/file-format-icon.d.ts +19 -0
  381. package/dist/components/ui/file-format-icon.js +48 -0
  382. package/dist/components/ui/file-upload-compositions.d.ts +32 -0
  383. package/dist/components/ui/file-upload-compositions.js +88 -0
  384. package/dist/components/ui/file-upload.d.ts +11 -0
  385. package/dist/components/ui/file-upload.js +20 -0
  386. package/dist/components/ui/filter.d.ts +53 -0
  387. package/dist/components/ui/filter.js +90 -0
  388. package/dist/components/ui/form-asset.d.ts +5 -0
  389. package/dist/components/ui/form-asset.js +10 -0
  390. package/dist/components/ui/hint.d.ts +22 -0
  391. package/dist/components/ui/hint.js +33 -0
  392. package/dist/components/ui/horizontal-stepper.d.ts +16 -0
  393. package/dist/components/ui/horizontal-stepper.js +28 -0
  394. package/dist/components/ui/inline-input.d.ts +24 -0
  395. package/dist/components/ui/inline-input.js +60 -0
  396. package/dist/components/ui/input.d.ts +205 -0
  397. package/dist/components/ui/input.js +69 -0
  398. package/dist/components/ui/kbd.d.ts +5 -0
  399. package/dist/components/ui/kbd.js +6 -0
  400. package/dist/components/ui/key-icon.d.ts +14 -0
  401. package/dist/components/ui/key-icon.js +35 -0
  402. package/dist/components/ui/label.d.ts +7 -0
  403. package/dist/components/ui/label.js +15 -0
  404. package/dist/components/ui/link-button.d.ts +22 -0
  405. package/dist/components/ui/link-button.js +38 -0
  406. package/dist/components/ui/magna-recipe.d.ts +83 -0
  407. package/dist/components/ui/magna-recipe.js +99 -0
  408. package/dist/components/ui/modal.d.ts +21 -0
  409. package/dist/components/ui/modal.js +35 -0
  410. package/dist/components/ui/notification-feed.d.ts +63 -0
  411. package/dist/components/ui/notification-feed.js +31 -0
  412. package/dist/components/ui/notification-provider.d.ts +1 -0
  413. package/dist/components/ui/notification-provider.js +13 -0
  414. package/dist/components/ui/notification.d.ts +24 -0
  415. package/dist/components/ui/notification.js +23 -0
  416. package/dist/components/ui/pagination.d.ts +19 -0
  417. package/dist/components/ui/pagination.js +38 -0
  418. package/dist/components/ui/password-strength.d.ts +16 -0
  419. package/dist/components/ui/password-strength.js +27 -0
  420. package/dist/components/ui/payment-icon.d.ts +11 -0
  421. package/dist/components/ui/payment-icon.js +19 -0
  422. package/dist/components/ui/popover.d.ts +36 -0
  423. package/dist/components/ui/popover.js +27 -0
  424. package/dist/components/ui/progress-bar.d.ts +35 -0
  425. package/dist/components/ui/progress-bar.js +32 -0
  426. package/dist/components/ui/progress-circle.d.ts +16 -0
  427. package/dist/components/ui/progress-circle.js +29 -0
  428. package/dist/components/ui/radio.d.ts +37 -0
  429. package/dist/components/ui/radio.js +39 -0
  430. package/dist/components/ui/rating.d.ts +62 -0
  431. package/dist/components/ui/rating.js +65 -0
  432. package/dist/components/ui/rich-editor.d.ts +77 -0
  433. package/dist/components/ui/rich-editor.js +248 -0
  434. package/dist/components/ui/rich-editor.module.css +58 -0
  435. package/dist/components/ui/scroll-area.d.ts +14 -0
  436. package/dist/components/ui/scroll-area.js +34 -0
  437. package/dist/components/ui/segmented-control.d.ts +8 -0
  438. package/dist/components/ui/segmented-control.js +30 -0
  439. package/dist/components/ui/select.d.ts +212 -0
  440. package/dist/components/ui/select.js +129 -0
  441. package/dist/components/ui/slider.d.ts +5 -0
  442. package/dist/components/ui/slider.js +16 -0
  443. package/dist/components/ui/social-button.d.ts +22 -0
  444. package/dist/components/ui/social-button.js +47 -0
  445. package/dist/components/ui/status-badge.d.ts +25 -0
  446. package/dist/components/ui/status-badge.js +51 -0
  447. package/dist/components/ui/status-modal.d.ts +26 -0
  448. package/dist/components/ui/status-modal.js +21 -0
  449. package/dist/components/ui/svg-rating-icons.d.ts +11 -0
  450. package/dist/components/ui/svg-rating-icons.js +33 -0
  451. package/dist/components/ui/switch-compositions.d.ts +46 -0
  452. package/dist/components/ui/switch-compositions.js +51 -0
  453. package/dist/components/ui/switch.d.ts +14 -0
  454. package/dist/components/ui/switch.js +17 -0
  455. package/dist/components/ui/tab-menu-horizontal.d.ts +11 -0
  456. package/dist/components/ui/tab-menu-horizontal.js +49 -0
  457. package/dist/components/ui/tab-menu-vertical.d.ts +9 -0
  458. package/dist/components/ui/tab-menu-vertical.js +23 -0
  459. package/dist/components/ui/table.d.ts +23 -0
  460. package/dist/components/ui/table.js +46 -0
  461. package/dist/components/ui/tag-input.d.ts +18 -0
  462. package/dist/components/ui/tag-input.js +57 -0
  463. package/dist/components/ui/tag.d.ts +28 -0
  464. package/dist/components/ui/tag.js +67 -0
  465. package/dist/components/ui/textarea.d.ts +21 -0
  466. package/dist/components/ui/textarea.js +32 -0
  467. package/dist/components/ui/time-picker.d.ts +35 -0
  468. package/dist/components/ui/time-picker.js +46 -0
  469. package/dist/components/ui/tooltip.d.ts +318 -0
  470. package/dist/components/ui/tooltip.js +56 -0
  471. package/dist/components/ui/vertical-stepper.d.ts +16 -0
  472. package/dist/components/ui/vertical-stepper.js +30 -0
  473. package/dist/design/figma-styles.d.ts +2 -0
  474. package/dist/design/figma-styles.js +2106 -0
  475. package/dist/design/theme.d.ts +18 -0
  476. package/dist/design/theme.js +185 -0
  477. package/dist/fonts/DM-Mono-OFL.txt +93 -0
  478. package/dist/fonts/Inter-OFL.txt +93 -0
  479. package/dist/fonts/README.md +23 -0
  480. package/dist/fonts/SHA256SUMS +11 -0
  481. package/dist/fonts/dm-mono-400-latin-ext.woff2 +0 -0
  482. package/dist/fonts/dm-mono-400-latin.woff2 +0 -0
  483. package/dist/fonts/dm-mono-500-latin-ext.woff2 +0 -0
  484. package/dist/fonts/dm-mono-500-latin.woff2 +0 -0
  485. package/dist/fonts/inter-cyrillic-ext.woff2 +0 -0
  486. package/dist/fonts/inter-cyrillic.woff2 +0 -0
  487. package/dist/fonts/inter-greek-ext.woff2 +0 -0
  488. package/dist/fonts/inter-greek.woff2 +0 -0
  489. package/dist/fonts/inter-latin-ext.woff2 +0 -0
  490. package/dist/fonts/inter-latin.woff2 +0 -0
  491. package/dist/fonts/inter-vietnamese.woff2 +0 -0
  492. package/dist/hooks/use-notification.d.ts +36 -0
  493. package/dist/hooks/use-notification.js +86 -0
  494. package/dist/hooks/use-tab-observer.d.ts +8 -0
  495. package/dist/hooks/use-tab-observer.js +72 -0
  496. package/dist/magna-assets.d.ts +2 -0
  497. package/dist/magna-assets.js +273 -0
  498. package/dist/magnaui.d.ts +77 -0
  499. package/dist/magnaui.js +77 -0
  500. package/dist/styles.css +2665 -0
  501. package/dist/utils/cn.d.ts +18 -0
  502. package/dist/utils/cn.js +14 -0
  503. package/dist/utils/polymorphic.d.ts +10 -0
  504. package/dist/utils/polymorphic.js +1 -0
  505. package/dist/utils/tv.d.ts +18 -0
  506. package/dist/utils/tv.js +5 -0
  507. package/dist/vendor/tailwind-variants/LICENSE +21 -0
  508. package/dist/vendor/tailwind-variants/config.d.ts +38 -0
  509. package/dist/vendor/tailwind-variants/generated.d.ts +3 -0
  510. package/dist/vendor/tailwind-variants/index.d.ts +370 -0
  511. package/docs/implementation-provenance.md +96 -0
  512. package/package.json +108 -0
@@ -0,0 +1,18 @@
1
+ type TypeSetting = [
2
+ string,
3
+ {
4
+ lineHeight: string;
5
+ letterSpacing: string;
6
+ fontWeight: string;
7
+ }
8
+ ];
9
+ export declare const texts: Record<string, TypeSetting>;
10
+ export declare const shadows: Record<string, string>;
11
+ export declare const borderRadii: {
12
+ '10': string;
13
+ '20': string;
14
+ '28': string;
15
+ full: string;
16
+ };
17
+ export declare const colors: Record<string, string | Record<string, string>>;
18
+ export {};
@@ -0,0 +1,185 @@
1
+ import specification from "./figma-styles.js";
2
+ const sizeNames = {
3
+ 'X Large': 'xl',
4
+ Large: 'lg',
5
+ Medium: 'md',
6
+ Small: 'sm',
7
+ Compact: 'compact',
8
+ 'X Small': 'xs',
9
+ '2X Small': '2xs',
10
+ };
11
+ export const texts = {};
12
+ for (const style of specification.texts) {
13
+ const [family, label] = style.name.split('/');
14
+ let key;
15
+ if (family === 'Title')
16
+ key = `title-${label.split(' ')[0].toLowerCase()}`;
17
+ else if (['Label', 'Paragraph', 'Subheading'].includes(family) &&
18
+ sizeNames[label])
19
+ key = `${family.toLowerCase()}-${sizeNames[label]}`;
20
+ else if (family === 'Docs')
21
+ key = `doc-${label.toLowerCase()}`;
22
+ if (!key)
23
+ continue;
24
+ texts[key] = [
25
+ `${style.size / 16}rem`,
26
+ {
27
+ lineHeight: `${style.height.value / 16}rem`,
28
+ letterSpacing: `${Number((style.tracking.value / 100).toFixed(4))}em`,
29
+ fontWeight: String(style.weight),
30
+ },
31
+ ];
32
+ }
33
+ const shadow = (y, blur, spread, color, inset = false) => `${inset ? 'inset ' : ''}0 ${y}px ${blur}px ${spread}px ${color}`;
34
+ const neutralLayer = (y, blur, spread, opacity, inset = false) => shadow(y, blur, spread, `rgb(51 51 51 / ${opacity})`, inset);
35
+ const focus = (tone) => [
36
+ shadow(0, 0, 2, 'var(--bg-white-0)'),
37
+ shadow(0, 0, 4, `var(--${tone})`),
38
+ ].join(', ');
39
+ const elevations = [1, 3, 6, 12, 24, 48].map((n) => neutralLayer(n, n, n === 1 ? 0.5 : -n / 2, n === 3 ? 0.02 : 0.04));
40
+ const edge = neutralLayer(0, 0, 1, 0.04);
41
+ const insetEdge = neutralLayer(-1, 1, -0.5, 0.06, true);
42
+ // Preserve the shipped render values where current Figma effects differ.
43
+ export const shadows = {
44
+ 'regular-xs': shadow(1, 2, 0, '#0a0d1408'),
45
+ 'regular-sm': shadow(2, 4, 0, '#1b1c1d0a'),
46
+ 'regular-md': shadow(16, 32, -12, '#0e121b1a'),
47
+ 'button-primary-focus': focus('primary-alpha-10'),
48
+ 'button-important-focus': focus('neutral-alpha-16'),
49
+ 'button-error-focus': focus('red-alpha-10'),
50
+ 'fancy-buttons-neutral': [
51
+ shadow(1, 2, 0, '#1b1c1d7a'),
52
+ shadow(0, 0, 1, '#242628'),
53
+ ].join(', '),
54
+ 'fancy-buttons-primary': [
55
+ shadow(1, 2, 0, '#0e121b3d'),
56
+ shadow(0, 0, 1, 'var(--primary-base)'),
57
+ ].join(', '),
58
+ 'fancy-buttons-error': [
59
+ shadow(1, 2, 0, '#0e121b3d'),
60
+ shadow(0, 0, 1, 'var(--error-base)'),
61
+ ].join(', '),
62
+ 'fancy-buttons-stroke': [
63
+ shadow(1, 3, 0, '#0e121b1f'),
64
+ shadow(0, 0, 1, 'var(--stroke-soft-200)'),
65
+ ].join(', '),
66
+ 'toggle-switch': [
67
+ shadow(6, 10, 0, '#0e121b0f'),
68
+ shadow(2, 4, 0, '#0e121b08'),
69
+ ].join(', '),
70
+ 'switch-thumb': [
71
+ shadow(4, 8, 0, '#1b1c1d0f'),
72
+ shadow(2, 4, 0, '#0e121b14'),
73
+ ].join(', '),
74
+ tooltip: [shadow(12, 24, 0, '#0e121b0f'), shadow(1, 2, 0, '#0e121b08')].join(', '),
75
+ 'custom-xs': [
76
+ edge,
77
+ neutralLayer(4, 8, -2, 0.06),
78
+ neutralLayer(2, 4, 0, 0.04),
79
+ neutralLayer(1, 2, 0, 0.04),
80
+ insetEdge,
81
+ ].join(', '),
82
+ 'custom-sm': [
83
+ edge,
84
+ neutralLayer(16, 8, -8, 0.01),
85
+ neutralLayer(12, 6, -6, 0.02),
86
+ neutralLayer(5, 5, -2.5, 0.08),
87
+ neutralLayer(1, 3, -1.5, 0.16),
88
+ neutralLayer(-0.5, 0.5, 0, 0.08, true),
89
+ ].join(', '),
90
+ 'custom-md': [edge, ...elevations, insetEdge].join(', '),
91
+ 'custom-lg': [
92
+ edge,
93
+ ...elevations,
94
+ neutralLayer(96, 96, -32, 0.06),
95
+ insetEdge,
96
+ ].join(', '),
97
+ };
98
+ export const borderRadii = {
99
+ '10': '.625rem',
100
+ '20': 'var(--radius-20)',
101
+ '28': 'var(--radius-28)',
102
+ full: 'var(--radius-full)',
103
+ };
104
+ const colorVariables = (prefix, suffixes) => Object.fromEntries(suffixes.map((suffix) => [suffix, `var(--${prefix}-${suffix})`]));
105
+ export const colors = {
106
+ transparent: 'transparent',
107
+ current: 'currentColor',
108
+ overlay: { DEFAULT: 'var(--overlay)' },
109
+ };
110
+ for (const palette of [
111
+ 'gray',
112
+ 'slate',
113
+ 'neutral',
114
+ 'blue',
115
+ 'orange',
116
+ 'red',
117
+ 'green',
118
+ 'yellow',
119
+ 'purple',
120
+ 'sky',
121
+ 'pink',
122
+ 'teal',
123
+ ]) {
124
+ colors[palette] = colorVariables(palette, [
125
+ ...(['gray', 'slate', 'neutral'].includes(palette) ? [0] : []),
126
+ 50,
127
+ 100,
128
+ 200,
129
+ 300,
130
+ 400,
131
+ 500,
132
+ 600,
133
+ 700,
134
+ 800,
135
+ 900,
136
+ 950,
137
+ 'alpha-10',
138
+ 'alpha-16',
139
+ 'alpha-24',
140
+ ]);
141
+ }
142
+ for (const palette of ['white', 'black'])
143
+ colors[palette] = {
144
+ DEFAULT: palette === 'white' ? '#fff' : '#000',
145
+ ...colorVariables(palette, ['alpha-10', 'alpha-16', 'alpha-24']),
146
+ };
147
+ const semantic = {
148
+ primary: ['dark', 'darker', 'base', 'alpha-10', 'alpha-16', 'alpha-24'],
149
+ static: ['black', 'white'],
150
+ bg: [
151
+ 'strong-950',
152
+ 'surface-800',
153
+ 'sub-300',
154
+ 'soft-200',
155
+ 'weak-50',
156
+ 'white-0',
157
+ ],
158
+ text: ['strong-950', 'sub-600', 'soft-400', 'disabled-300', 'white-0'],
159
+ stroke: ['strong-950', 'sub-300', 'soft-200', 'white-0'],
160
+ social: [
161
+ 'apple',
162
+ 'twitter',
163
+ 'github',
164
+ 'notion',
165
+ 'tidal',
166
+ 'amazon',
167
+ 'zendesk',
168
+ ],
169
+ };
170
+ for (const state of [
171
+ 'faded',
172
+ 'information',
173
+ 'warning',
174
+ 'error',
175
+ 'success',
176
+ 'away',
177
+ 'feature',
178
+ 'verified',
179
+ 'highlighted',
180
+ 'stable',
181
+ ])
182
+ semantic[state] = ['dark', 'base', 'light', 'lighter'];
183
+ for (const [key, suffixes] of Object.entries(semantic))
184
+ colors[key] = colorVariables(key, suffixes);
185
+ colors.primary.dark = 'var(--primary-darkest)';
@@ -0,0 +1,93 @@
1
+ Copyright 2020 The DM Mono Project Authors (https://www.github.com/googlefonts/dm-mono)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,93 @@
1
+ Copyright 2020 The Inter Project Authors (https://github.com/rsms/inter)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,23 @@
1
+ # MagnaUI fonts
2
+
3
+ These WOFF2 files are the unmodified Inter and DM Mono files used by the original
4
+ MagnaUI site through `next/font/google`. They were copied from its existing build
5
+ cache on 2026-09-28, together with the exact font-face ranges and fallback metrics.
6
+ The package build reads these checked-in files, so it never needs the Next.js cache
7
+ or a network request.
8
+
9
+ - Inter: normal, variable weight 100–900 and optical size; Cyrillic, Greek,
10
+ Vietnamese, Latin, and extended subsets.
11
+ - DM Mono: normal, weights 400 and 500; Latin and extended subsets.
12
+ - Only styles used by the original site are bundled. Italic glyphs or other DM
13
+ Mono weights use normal browser synthesis unless the application adds them.
14
+ - Font files remain licensed under SIL OFL 1.1. See `Inter-OFL.txt` and
15
+ `DM-Mono-OFL.txt`. Original projects: https://github.com/rsms/inter and
16
+ https://github.com/googlefonts/dm-mono.
17
+ - License notices were fetched from the official Google Fonts repository:
18
+ https://github.com/google/fonts/blob/main/ofl/inter/OFL.txt and
19
+ https://github.com/google/fonts/blob/main/ofl/dmmono/OFL.txt.
20
+
21
+ `fonts.css` URLs are relative to the generated package `styles.css`. Applications
22
+ can override `--font-sans` and `--font-dm-mono` on `:root` or a component subtree.
23
+ `SHA256SUMS` records the checked-in font binaries.
@@ -0,0 +1,11 @@
1
+ 7f8712cbbd64135f9e74a527475a97cd8c5a49d8e0a1de7a65f8e2c30c5214d9 dm-mono-400-latin-ext.woff2
2
+ fd7521f3531a5ccfc655b25c4f22e9871df3ec141ad79bb27fde20d0df347b6d dm-mono-400-latin.woff2
3
+ e284f2a17fc9cca89cc30f496945bd9a2903010944a9469fb357924da21b6f6c dm-mono-500-latin-ext.woff2
4
+ 0e263db52797086e763679c54f84ded8cc1249879bc27dca2bd5dd446f6d9f36 dm-mono-500-latin.woff2
5
+ 942b71451b22e42c9a0d94e45bf3a5feac43b73e7a1256742ccf1a78974dc706 inter-cyrillic-ext.woff2
6
+ a7f3e73668ccdd99ac9cccdb043e6e1238580a9fd38492c83a0e241bc6882aca inter-cyrillic.woff2
7
+ 009e52d835e45840b76aa92601cf1778c65e224ce7ea3ae887d708c6aa536f4b inter-greek-ext.woff2
8
+ b6a22966401b2b8892ecdd6e670c3c98bf2fd8f97e79b138a896f0942051ee33 inter-greek.woff2
9
+ 8bc9dee39deab5dc6599980e563c5023053387e4c391f5c419543e493e024c39 inter-latin-ext.woff2
10
+ dd8a4575be9806105ac3decd02805cd2782fe7c05abb02c582316bc436ce03ae inter-latin.woff2
11
+ 07df696d36deed379a901c2867fd700fee3453f46e384424a08ee376178a81b1 inter-vietnamese.woff2
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,36 @@
1
+ import type { NotificationProps } from "../components/ui/notification.js";
2
+ type Entry = NotificationProps & {
3
+ id: string;
4
+ };
5
+ type Snapshot = {
6
+ notifications: Entry[];
7
+ };
8
+ type Event = {
9
+ type: 'ADD_NOTIFICATION';
10
+ notification: Entry;
11
+ } | {
12
+ type: 'UPDATE_NOTIFICATION';
13
+ notification: Partial<Entry>;
14
+ } | {
15
+ type: 'DISMISS_NOTIFICATION';
16
+ notificationId?: string;
17
+ } | {
18
+ type: 'REMOVE_NOTIFICATION';
19
+ notificationId?: string;
20
+ };
21
+ /** Pure state transition, also exported for integrations that manage their own store. */
22
+ export declare function reducer(snapshot: Snapshot, event: Event): Snapshot;
23
+ declare function dismiss(id?: string): void;
24
+ export declare function notification(props: NotificationProps & {
25
+ id?: string;
26
+ }): {
27
+ id: string;
28
+ dismiss: () => void;
29
+ update: (next: NotificationProps) => void;
30
+ };
31
+ export declare function useNotification(): {
32
+ notification: typeof notification;
33
+ dismiss: typeof dismiss;
34
+ notifications: Entry[];
35
+ };
36
+ export {};
@@ -0,0 +1,86 @@
1
+ 'use client';
2
+ import * as React from "react";
3
+ /** Pure state transition, also exported for integrations that manage their own store. */
4
+ export function reducer(snapshot, event) {
5
+ const items = snapshot.notifications;
6
+ if (event.type === 'ADD_NOTIFICATION')
7
+ return { notifications: [event.notification] };
8
+ if (event.type === 'UPDATE_NOTIFICATION')
9
+ return {
10
+ notifications: items.map((item) => item.id === event.notification.id
11
+ ? { ...item, ...event.notification }
12
+ : item),
13
+ };
14
+ const matches = (item) => event.notificationId === undefined || item.id === event.notificationId;
15
+ return {
16
+ notifications: event.type === 'REMOVE_NOTIFICATION'
17
+ ? items.filter((item) => !matches(item))
18
+ : items.map((item) => matches(item) ? { ...item, open: false } : item),
19
+ };
20
+ }
21
+ const empty = { notifications: [] };
22
+ let current = empty;
23
+ let sequence = 0;
24
+ const subscribers = new Set();
25
+ const pendingRemoval = new Map();
26
+ const getSnapshot = () => current;
27
+ const getServerSnapshot = () => empty;
28
+ const subscribe = (listener) => {
29
+ subscribers.add(listener);
30
+ return () => {
31
+ subscribers.delete(listener);
32
+ };
33
+ };
34
+ function cancelRemoval(id) {
35
+ const timeout = pendingRemoval.get(id);
36
+ if (timeout !== undefined)
37
+ clearTimeout(timeout);
38
+ pendingRemoval.delete(id);
39
+ }
40
+ function send(event) {
41
+ if (event.type === 'ADD_NOTIFICATION') {
42
+ if (current.notifications.some((item) => item.id === event.notification.id))
43
+ return;
44
+ current.notifications.forEach((item) => cancelRemoval(item.id));
45
+ }
46
+ current = reducer(current, event);
47
+ subscribers.forEach((listener) => listener());
48
+ }
49
+ function dismiss(id) {
50
+ const closing = current.notifications.filter((item) => id === undefined || id === item.id);
51
+ send({ type: 'DISMISS_NOTIFICATION', notificationId: id });
52
+ closing.forEach((item) => {
53
+ if (pendingRemoval.has(item.id))
54
+ return;
55
+ // Preserve the window in which existing handles may update or reopen a toast.
56
+ pendingRemoval.set(item.id, setTimeout(() => {
57
+ pendingRemoval.delete(item.id);
58
+ send({ type: 'REMOVE_NOTIFICATION', notificationId: item.id });
59
+ }, 1000000));
60
+ });
61
+ }
62
+ export function notification(props) {
63
+ const id = props.id || `magna-${++sequence}`;
64
+ const onOpenChange = (open) => {
65
+ props.onOpenChange?.(open);
66
+ if (!open)
67
+ dismiss(id);
68
+ };
69
+ send({
70
+ type: 'ADD_NOTIFICATION',
71
+ notification: { ...props, id, open: true, onOpenChange },
72
+ });
73
+ return {
74
+ id,
75
+ dismiss: () => dismiss(id),
76
+ update: (next) => {
77
+ if (next.open)
78
+ cancelRemoval(id);
79
+ send({ type: 'UPDATE_NOTIFICATION', notification: { ...next, id } });
80
+ },
81
+ };
82
+ }
83
+ export function useNotification() {
84
+ const state = React.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
85
+ return { ...state, notification, dismiss };
86
+ }
@@ -0,0 +1,8 @@
1
+ import * as React from "react";
2
+ /** Observe only the information that can change the selected tab's geometry. */
3
+ export declare function useTabObserver(options?: {
4
+ onActiveTabChange?: (index: number, element: HTMLElement) => void;
5
+ }): {
6
+ listRef: React.RefObject<HTMLDivElement>;
7
+ mounted: boolean;
8
+ };
@@ -0,0 +1,72 @@
1
+ 'use client';
2
+ import * as React from "react";
3
+ /** Observe only the information that can change the selected tab's geometry. */
4
+ export function useTabObserver(options = {}) {
5
+ const listRef = React.useRef(null);
6
+ const callback = React.useRef(options.onActiveTabChange);
7
+ callback.current = options.onActiveTabChange;
8
+ const [mounted, setMounted] = React.useState(false);
9
+ React.useEffect(() => {
10
+ const list = listRef.current;
11
+ if (!list)
12
+ return;
13
+ let frame = 0;
14
+ let last;
15
+ const measure = () => {
16
+ const tabs = Array.from(list.querySelectorAll('[role="tab"]'));
17
+ const index = tabs.findIndex((tab) => tab.dataset.state === 'active');
18
+ const tab = tabs[index];
19
+ if (!tab)
20
+ return;
21
+ const next = {
22
+ tab,
23
+ index,
24
+ width: tab.offsetWidth,
25
+ left: tab.offsetLeft,
26
+ height: tab.offsetHeight,
27
+ };
28
+ if (!last ||
29
+ Object.keys(next).some((key) => next[key] !== last?.[key])) {
30
+ last = next;
31
+ callback.current?.(index, tab);
32
+ }
33
+ };
34
+ const schedule = () => {
35
+ cancelAnimationFrame(frame);
36
+ frame = requestAnimationFrame(measure);
37
+ };
38
+ const sizes = new ResizeObserver(schedule);
39
+ const track = () => {
40
+ sizes.disconnect();
41
+ sizes.observe(list);
42
+ list
43
+ .querySelectorAll('[role="tab"]')
44
+ .forEach((tab) => sizes.observe(tab));
45
+ schedule();
46
+ };
47
+ const changes = new MutationObserver((records) => {
48
+ if (records.some((record) => record.type === 'childList'))
49
+ track();
50
+ else
51
+ schedule();
52
+ });
53
+ changes.observe(list, {
54
+ subtree: true,
55
+ childList: true,
56
+ characterData: true,
57
+ attributes: true,
58
+ attributeFilter: ['data-state', 'class', 'style', 'hidden', 'dir'],
59
+ });
60
+ window.addEventListener('resize', schedule);
61
+ track();
62
+ measure();
63
+ setMounted(true);
64
+ return () => {
65
+ cancelAnimationFrame(frame);
66
+ sizes.disconnect();
67
+ changes.disconnect();
68
+ window.removeEventListener('resize', schedule);
69
+ };
70
+ }, []);
71
+ return { listRef, mounted };
72
+ }
@@ -0,0 +1,2 @@
1
+ /** Resolve bundled Magna artwork; preserve application-supplied URLs. */
2
+ export declare function resolveMagnaAsset(path: string): string;