@alepha/ui 0.25.2 → 0.27.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 (920) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +210 -2
  3. package/dist/components/account/account-connections.d.ts +16 -0
  4. package/dist/components/account/account-connections.d.ts.map +1 -0
  5. package/dist/components/account/account-connections.js +76 -0
  6. package/dist/components/account/account-connections.js.map +1 -0
  7. package/dist/components/account/account-delete-dialog.d.ts +44 -0
  8. package/dist/components/account/account-delete-dialog.d.ts.map +1 -0
  9. package/dist/components/account/account-delete-dialog.js +126 -0
  10. package/dist/components/account/account-delete-dialog.js.map +1 -0
  11. package/dist/components/account/account-header.d.ts +33 -0
  12. package/dist/components/account/account-header.d.ts.map +1 -0
  13. package/dist/components/account/account-header.js +43 -0
  14. package/dist/components/account/account-header.js.map +1 -0
  15. package/dist/components/account/account-keys.d.ts +23 -0
  16. package/dist/components/account/account-keys.d.ts.map +1 -0
  17. package/dist/components/account/account-keys.js +168 -0
  18. package/dist/components/account/account-keys.js.map +1 -0
  19. package/dist/components/account/account-layout.d.ts +32 -0
  20. package/dist/components/account/account-layout.d.ts.map +1 -0
  21. package/dist/components/account/account-layout.js +56 -0
  22. package/dist/components/account/account-layout.js.map +1 -0
  23. package/dist/components/account/account-password-dialog.d.ts +31 -0
  24. package/dist/components/account/account-password-dialog.d.ts.map +1 -0
  25. package/dist/components/account/account-password-dialog.js +120 -0
  26. package/dist/components/account/account-password-dialog.js.map +1 -0
  27. package/dist/components/account/account-profile.d.ts +27 -0
  28. package/dist/components/account/account-profile.d.ts.map +1 -0
  29. package/dist/components/account/account-profile.js +217 -0
  30. package/dist/components/account/account-profile.js.map +1 -0
  31. package/dist/components/account/account-router-options.d.ts +77 -0
  32. package/dist/components/account/account-router-options.d.ts.map +1 -0
  33. package/dist/components/account/account-router-options.js +22 -0
  34. package/dist/components/account/account-router-options.js.map +1 -0
  35. package/dist/components/account/account-router-page.d.ts +49 -0
  36. package/dist/components/account/account-router-page.d.ts.map +1 -0
  37. package/dist/components/account/account-router-page.js +61 -0
  38. package/dist/components/account/account-router-page.js.map +1 -0
  39. package/dist/components/account/account-router.d.ts +215 -0
  40. package/dist/components/account/account-router.d.ts.map +1 -0
  41. package/dist/components/account/account-router.js +217 -0
  42. package/dist/components/account/account-router.js.map +1 -0
  43. package/dist/components/account/account-security.d.ts +22 -0
  44. package/dist/components/account/account-security.d.ts.map +1 -0
  45. package/dist/components/account/account-security.js +107 -0
  46. package/dist/components/account/account-security.js.map +1 -0
  47. package/dist/components/account/account-sessions.d.ts +17 -0
  48. package/dist/components/account/account-sessions.d.ts.map +1 -0
  49. package/dist/components/account/account-sessions.js +121 -0
  50. package/dist/components/account/account-sessions.js.map +1 -0
  51. package/dist/components/action-error-toaster/action-error-toaster.d.ts +39 -0
  52. package/dist/components/action-error-toaster/action-error-toaster.d.ts.map +1 -0
  53. package/dist/components/action-error-toaster/action-error-toaster.js +40 -0
  54. package/dist/components/action-error-toaster/action-error-toaster.js.map +1 -0
  55. package/dist/components/admin/admin-analytics-query-panel.d.ts +16 -0
  56. package/dist/components/admin/admin-analytics-query-panel.d.ts.map +1 -0
  57. package/dist/components/admin/admin-analytics-query-panel.js +117 -0
  58. package/dist/components/admin/admin-analytics-query-panel.js.map +1 -0
  59. package/dist/components/admin/admin-analytics-results.d.ts +15 -0
  60. package/dist/components/admin/admin-analytics-results.d.ts.map +1 -0
  61. package/dist/components/admin/admin-analytics-results.js +56 -0
  62. package/dist/components/admin/admin-analytics-results.js.map +1 -0
  63. package/dist/components/admin/admin-analytics.d.ts +9 -0
  64. package/dist/components/admin/admin-analytics.d.ts.map +1 -0
  65. package/dist/components/admin/admin-analytics.js +66 -0
  66. package/dist/components/admin/admin-analytics.js.map +1 -0
  67. package/dist/components/admin/admin-audits.d.ts +4 -0
  68. package/dist/components/admin/admin-audits.d.ts.map +1 -0
  69. package/dist/components/admin/admin-audits.js +173 -0
  70. package/dist/components/admin/admin-audits.js.map +1 -0
  71. package/dist/components/admin/admin-dashboard-card.d.ts +42 -0
  72. package/dist/components/admin/admin-dashboard-card.d.ts.map +1 -0
  73. package/dist/components/admin/admin-dashboard-card.js +0 -0
  74. package/dist/components/admin/admin-dashboard-count-card.d.ts +34 -0
  75. package/dist/components/admin/admin-dashboard-count-card.d.ts.map +1 -0
  76. package/dist/components/admin/admin-dashboard-count-card.js +42 -0
  77. package/dist/components/admin/admin-dashboard-count-card.js.map +1 -0
  78. package/dist/components/admin/admin-dashboard.d.ts +20 -0
  79. package/dist/components/admin/admin-dashboard.d.ts.map +1 -0
  80. package/dist/components/admin/admin-dashboard.js +32 -0
  81. package/dist/components/admin/admin-dashboard.js.map +1 -0
  82. package/dist/components/admin/admin-files.d.ts +4 -0
  83. package/dist/components/admin/admin-files.d.ts.map +1 -0
  84. package/dist/components/admin/admin-files.js +237 -0
  85. package/dist/components/admin/admin-files.js.map +1 -0
  86. package/dist/components/admin/admin-jobs-executions-panel.d.ts +11 -0
  87. package/dist/components/admin/admin-jobs-executions-panel.d.ts.map +1 -0
  88. package/dist/components/admin/admin-jobs-executions-panel.js +185 -0
  89. package/dist/components/admin/admin-jobs-executions-panel.js.map +1 -0
  90. package/dist/components/admin/admin-jobs-status-badge.d.ts +9 -0
  91. package/dist/components/admin/admin-jobs-status-badge.d.ts.map +1 -0
  92. package/dist/components/admin/admin-jobs-status-badge.js +26 -0
  93. package/dist/components/admin/admin-jobs-status-badge.js.map +1 -0
  94. package/dist/components/admin/admin-jobs.d.ts +4 -0
  95. package/dist/components/admin/admin-jobs.d.ts.map +1 -0
  96. package/dist/components/admin/admin-jobs.js +248 -0
  97. package/dist/components/admin/admin-jobs.js.map +1 -0
  98. package/dist/components/admin/admin-keys-token-dialog.d.ts +15 -0
  99. package/dist/components/admin/admin-keys-token-dialog.d.ts.map +1 -0
  100. package/dist/components/admin/admin-keys-token-dialog.js +66 -0
  101. package/dist/components/admin/admin-keys-token-dialog.js.map +1 -0
  102. package/dist/components/admin/admin-keys.d.ts +4 -0
  103. package/dist/components/admin/admin-keys.d.ts.map +1 -0
  104. package/dist/components/admin/admin-keys.js +161 -0
  105. package/dist/components/admin/admin-keys.js.map +1 -0
  106. package/dist/components/admin/admin-layout.d.ts +33 -0
  107. package/dist/components/admin/admin-layout.d.ts.map +1 -0
  108. package/dist/components/admin/admin-layout.js +99 -0
  109. package/dist/components/admin/admin-layout.js.map +1 -0
  110. package/dist/components/admin/admin-notifications.d.ts +4 -0
  111. package/dist/components/admin/admin-notifications.d.ts.map +1 -0
  112. package/dist/components/admin/admin-notifications.js +99 -0
  113. package/dist/components/admin/admin-notifications.js.map +1 -0
  114. package/dist/components/admin/admin-page.d.ts +16 -0
  115. package/dist/components/admin/admin-page.d.ts.map +1 -0
  116. package/dist/components/admin/admin-page.js +15 -0
  117. package/dist/components/admin/admin-page.js.map +1 -0
  118. package/dist/components/admin/admin-parameters.d.ts +26 -0
  119. package/dist/components/admin/admin-parameters.d.ts.map +1 -0
  120. package/dist/components/admin/admin-parameters.js +560 -0
  121. package/dist/components/admin/admin-parameters.js.map +1 -0
  122. package/dist/components/admin/admin-payments.d.ts +4 -0
  123. package/dist/components/admin/admin-payments.d.ts.map +1 -0
  124. package/dist/components/admin/admin-payments.js +72 -0
  125. package/dist/components/admin/admin-payments.js.map +1 -0
  126. package/dist/components/admin/admin-router-options.d.ts +138 -0
  127. package/dist/components/admin/admin-router-options.d.ts.map +1 -0
  128. package/dist/components/admin/admin-router-options.js +29 -0
  129. package/dist/components/admin/admin-router-options.js.map +1 -0
  130. package/dist/components/admin/admin-router-page.d.ts +56 -0
  131. package/dist/components/admin/admin-router-page.d.ts.map +1 -0
  132. package/dist/components/admin/admin-router-page.js +68 -0
  133. package/dist/components/admin/admin-router-page.js.map +1 -0
  134. package/dist/components/admin/admin-router.d.ts +214 -0
  135. package/dist/components/admin/admin-router.d.ts.map +1 -0
  136. package/dist/components/admin/admin-router.js +409 -0
  137. package/dist/components/admin/admin-router.js.map +1 -0
  138. package/dist/components/admin/admin-sessions.d.ts +4 -0
  139. package/dist/components/admin/admin-sessions.d.ts.map +1 -0
  140. package/dist/components/admin/admin-sessions.js +132 -0
  141. package/dist/components/admin/admin-sessions.js.map +1 -0
  142. package/dist/components/admin/admin-user-cell.d.ts +37 -0
  143. package/dist/components/admin/admin-user-cell.d.ts.map +1 -0
  144. package/dist/components/admin/admin-user-cell.js +35 -0
  145. package/dist/components/admin/admin-user-cell.js.map +1 -0
  146. package/dist/components/admin/admin-user-detail-audits-tab.d.ts +15 -0
  147. package/dist/components/admin/admin-user-detail-audits-tab.d.ts.map +1 -0
  148. package/dist/components/admin/admin-user-detail-audits-tab.js +55 -0
  149. package/dist/components/admin/admin-user-detail-audits-tab.js.map +1 -0
  150. package/dist/components/admin/admin-user-detail-identity-aside.d.ts +15 -0
  151. package/dist/components/admin/admin-user-detail-identity-aside.d.ts.map +1 -0
  152. package/dist/components/admin/admin-user-detail-identity-aside.js +106 -0
  153. package/dist/components/admin/admin-user-detail-identity-aside.js.map +1 -0
  154. package/dist/components/admin/admin-user-detail-overview-tab.d.ts +26 -0
  155. package/dist/components/admin/admin-user-detail-overview-tab.d.ts.map +1 -0
  156. package/dist/components/admin/admin-user-detail-overview-tab.js +60 -0
  157. package/dist/components/admin/admin-user-detail-overview-tab.js.map +1 -0
  158. package/dist/components/admin/admin-user-detail-password-dialog.d.ts +15 -0
  159. package/dist/components/admin/admin-user-detail-password-dialog.d.ts.map +1 -0
  160. package/dist/components/admin/admin-user-detail-password-dialog.js +47 -0
  161. package/dist/components/admin/admin-user-detail-password-dialog.js.map +1 -0
  162. package/dist/components/admin/admin-user-detail-password-schema.d.ts +10 -0
  163. package/dist/components/admin/admin-user-detail-password-schema.d.ts.map +1 -0
  164. package/dist/components/admin/admin-user-detail-password-schema.js +13 -0
  165. package/dist/components/admin/admin-user-detail-password-schema.js.map +1 -0
  166. package/dist/components/admin/admin-user-detail-profile-policy.d.ts +56 -0
  167. package/dist/components/admin/admin-user-detail-profile-policy.d.ts.map +1 -0
  168. package/dist/components/admin/admin-user-detail-profile-policy.js +73 -0
  169. package/dist/components/admin/admin-user-detail-profile-policy.js.map +1 -0
  170. package/dist/components/admin/admin-user-detail-profile-schema.d.ts +18 -0
  171. package/dist/components/admin/admin-user-detail-profile-schema.d.ts.map +1 -0
  172. package/dist/components/admin/admin-user-detail-profile-schema.js +21 -0
  173. package/dist/components/admin/admin-user-detail-profile-schema.js.map +1 -0
  174. package/dist/components/admin/admin-user-detail-security-tab.d.ts +20 -0
  175. package/dist/components/admin/admin-user-detail-security-tab.d.ts.map +1 -0
  176. package/dist/components/admin/admin-user-detail-security-tab.js +70 -0
  177. package/dist/components/admin/admin-user-detail-security-tab.js.map +1 -0
  178. package/dist/components/admin/admin-user-detail-sessions-tab.d.ts +25 -0
  179. package/dist/components/admin/admin-user-detail-sessions-tab.d.ts.map +1 -0
  180. package/dist/components/admin/admin-user-detail-sessions-tab.js +64 -0
  181. package/dist/components/admin/admin-user-detail-sessions-tab.js.map +1 -0
  182. package/dist/components/admin/admin-user-detail.d.ts +39 -0
  183. package/dist/components/admin/admin-user-detail.d.ts.map +1 -0
  184. package/dist/components/admin/admin-user-detail.js +343 -0
  185. package/dist/components/admin/admin-user-detail.js.map +1 -0
  186. package/dist/components/admin/admin-users-roles-picker.d.ts +28 -0
  187. package/dist/components/admin/admin-users-roles-picker.d.ts.map +1 -0
  188. package/dist/components/admin/admin-users-roles-picker.js +80 -0
  189. package/dist/components/admin/admin-users-roles-picker.js.map +1 -0
  190. package/dist/components/admin/admin-users-status-filter.d.ts +13 -0
  191. package/dist/components/admin/admin-users-status-filter.d.ts.map +1 -0
  192. package/dist/components/admin/admin-users-status-filter.js +41 -0
  193. package/dist/components/admin/admin-users-status-filter.js.map +1 -0
  194. package/dist/components/admin/admin-users.d.ts +16 -0
  195. package/dist/components/admin/admin-users.d.ts.map +1 -0
  196. package/dist/components/admin/admin-users.js +322 -0
  197. package/dist/components/admin/admin-users.js.map +1 -0
  198. package/dist/components/admin/admin-workflows-execution-sheet.d.ts +11 -0
  199. package/dist/components/admin/admin-workflows-execution-sheet.d.ts.map +1 -0
  200. package/dist/components/admin/admin-workflows-execution-sheet.js +190 -0
  201. package/dist/components/admin/admin-workflows-execution-sheet.js.map +1 -0
  202. package/dist/components/admin/admin-workflows-executions-panel.d.ts +9 -0
  203. package/dist/components/admin/admin-workflows-executions-panel.d.ts.map +1 -0
  204. package/dist/components/admin/admin-workflows-executions-panel.js +129 -0
  205. package/dist/components/admin/admin-workflows-executions-panel.js.map +1 -0
  206. package/dist/components/admin/admin-workflows-status-badge.d.ts +12 -0
  207. package/dist/components/admin/admin-workflows-status-badge.d.ts.map +1 -0
  208. package/dist/components/admin/admin-workflows-status-badge.js +30 -0
  209. package/dist/components/admin/admin-workflows-status-badge.js.map +1 -0
  210. package/dist/components/admin/admin-workflows.d.ts +4 -0
  211. package/dist/components/admin/admin-workflows.d.ts.map +1 -0
  212. package/dist/components/admin/admin-workflows.js +145 -0
  213. package/dist/components/admin/admin-workflows.js.map +1 -0
  214. package/dist/components/admin/diff-lines.d.ts +13 -0
  215. package/dist/components/admin/diff-lines.d.ts.map +1 -0
  216. package/dist/components/admin/diff-lines.js +57 -0
  217. package/dist/components/admin/diff-lines.js.map +1 -0
  218. package/dist/components/admin/parameter-diff-dialog.d.ts +36 -0
  219. package/dist/components/admin/parameter-diff-dialog.d.ts.map +1 -0
  220. package/dist/components/admin/parameter-diff-dialog.js +58 -0
  221. package/dist/components/admin/parameter-diff-dialog.js.map +1 -0
  222. package/dist/components/admin/parameter-history-item.d.ts +17 -0
  223. package/dist/components/admin/parameter-history-item.d.ts.map +1 -0
  224. package/dist/components/admin/parameter-history-item.js +177 -0
  225. package/dist/components/admin/parameter-history-item.js.map +1 -0
  226. package/dist/components/admin/parameter-json-dialog.d.ts +13 -0
  227. package/dist/components/admin/parameter-json-dialog.d.ts.map +1 -0
  228. package/dist/components/admin/parameter-json-dialog.js +63 -0
  229. package/dist/components/admin/parameter-json-dialog.js.map +1 -0
  230. package/dist/components/admin/parameter-save-dialog.d.ts +26 -0
  231. package/dist/components/admin/parameter-save-dialog.d.ts.map +1 -0
  232. package/dist/components/admin/parameter-save-dialog.js +74 -0
  233. package/dist/components/admin/parameter-save-dialog.js.map +1 -0
  234. package/dist/components/admin/use-confirmed-action.d.ts +53 -0
  235. package/dist/components/admin/use-confirmed-action.d.ts.map +1 -0
  236. package/dist/components/admin/use-confirmed-action.js +50 -0
  237. package/dist/components/admin/use-confirmed-action.js.map +1 -0
  238. package/dist/components/alepha-table/alepha-table.d.ts +313 -0
  239. package/dist/components/alepha-table/alepha-table.d.ts.map +1 -0
  240. package/dist/components/alepha-table/alepha-table.js +667 -0
  241. package/dist/components/alepha-table/alepha-table.js.map +1 -0
  242. package/dist/components/alepha-table/paginate-local.d.ts +43 -0
  243. package/dist/components/alepha-table/paginate-local.d.ts.map +1 -0
  244. package/dist/components/alepha-table/paginate-local.js +84 -0
  245. package/dist/components/alepha-table/paginate-local.js.map +1 -0
  246. package/dist/components/alepha-table/use-table-selection.d.ts +34 -0
  247. package/dist/components/alepha-table/use-table-selection.d.ts.map +1 -0
  248. package/dist/components/alepha-table/use-table-selection.js +45 -0
  249. package/dist/components/alepha-table/use-table-selection.js.map +1 -0
  250. package/dist/components/app-actions/app-actions.d.ts +74 -0
  251. package/dist/components/app-actions/app-actions.d.ts.map +1 -0
  252. package/dist/components/app-actions/app-actions.js +77 -0
  253. package/dist/components/app-actions/app-actions.js.map +1 -0
  254. package/dist/components/app-shell/app-shell.d.ts +144 -0
  255. package/dist/components/app-shell/app-shell.d.ts.map +1 -0
  256. package/dist/components/app-shell/app-shell.js +283 -0
  257. package/dist/components/app-shell/app-shell.js.map +1 -0
  258. package/dist/components/auth/auth-login.d.ts +40 -0
  259. package/dist/components/auth/auth-login.d.ts.map +1 -0
  260. package/dist/components/auth/auth-login.js +226 -0
  261. package/dist/components/auth/auth-login.js.map +1 -0
  262. package/dist/components/auth/auth-register.d.ts +35 -0
  263. package/dist/components/auth/auth-register.d.ts.map +1 -0
  264. package/dist/components/auth/auth-register.js +477 -0
  265. package/dist/components/auth/auth-register.js.map +1 -0
  266. package/dist/components/auth/auth-reset-password.d.ts +21 -0
  267. package/dist/components/auth/auth-reset-password.d.ts.map +1 -0
  268. package/dist/components/auth/auth-reset-password.js +286 -0
  269. package/dist/components/auth/auth-reset-password.js.map +1 -0
  270. package/dist/components/auth/auth-router.d.ts +245 -0
  271. package/dist/components/auth/auth-router.d.ts.map +1 -0
  272. package/dist/components/auth/auth-router.js +117 -0
  273. package/dist/components/auth/auth-router.js.map +1 -0
  274. package/dist/components/auth/auth-verify-email.d.ts +19 -0
  275. package/dist/components/auth/auth-verify-email.d.ts.map +1 -0
  276. package/dist/components/auth/auth-verify-email.js +124 -0
  277. package/dist/components/auth/auth-verify-email.js.map +1 -0
  278. package/dist/components/auth/provider-labels.d.ts +9 -0
  279. package/dist/components/auth/provider-labels.d.ts.map +1 -0
  280. package/dist/components/auth/provider-labels.js +20 -0
  281. package/dist/components/auth/provider-labels.js.map +1 -0
  282. package/dist/components/auth/safe-redirect.d.ts +9 -0
  283. package/dist/components/auth/safe-redirect.d.ts.map +1 -0
  284. package/dist/components/auth/safe-redirect.js +19 -0
  285. package/dist/components/auth/safe-redirect.js.map +1 -0
  286. package/dist/components/auto-form/auto-form.d.ts +219 -0
  287. package/dist/components/auto-form/auto-form.d.ts.map +1 -0
  288. package/dist/components/auto-form/auto-form.js +412 -0
  289. package/dist/components/auto-form/auto-form.js.map +1 -0
  290. package/dist/components/brand-icon/brand-icon.d.ts +18 -0
  291. package/dist/components/brand-icon/brand-icon.d.ts.map +1 -0
  292. package/dist/components/brand-icon/brand-icon.js +84 -0
  293. package/dist/components/brand-icon/brand-icon.js.map +1 -0
  294. package/dist/components/button-dark/button-dark.d.ts +25 -0
  295. package/dist/components/button-dark/button-dark.d.ts.map +1 -0
  296. package/dist/components/button-dark/button-dark.js +44 -0
  297. package/dist/components/button-dark/button-dark.js.map +1 -0
  298. package/dist/components/button-language/button-language.d.ts +24 -0
  299. package/dist/components/button-language/button-language.d.ts.map +1 -0
  300. package/dist/components/button-language/button-language.js +50 -0
  301. package/dist/components/button-language/button-language.js.map +1 -0
  302. package/dist/components/button-theme/button-theme.d.ts +33 -0
  303. package/dist/components/button-theme/button-theme.d.ts.map +1 -0
  304. package/dist/components/button-theme/button-theme.js +90 -0
  305. package/dist/components/button-theme/button-theme.js.map +1 -0
  306. package/dist/components/button-user/button-user.d.ts +129 -0
  307. package/dist/components/button-user/button-user.d.ts.map +1 -0
  308. package/dist/components/button-user/button-user.js +147 -0
  309. package/dist/components/button-user/button-user.js.map +1 -0
  310. package/dist/components/captcha/turnstile-widget.d.ts +59 -0
  311. package/dist/components/captcha/turnstile-widget.d.ts.map +1 -0
  312. package/dist/components/captcha/turnstile-widget.js +98 -0
  313. package/dist/components/captcha/turnstile-widget.js.map +1 -0
  314. package/dist/components/control/control.d.ts +200 -0
  315. package/dist/components/control/control.d.ts.map +1 -0
  316. package/dist/components/control/control.js +297 -0
  317. package/dist/components/control/control.js.map +1 -0
  318. package/dist/components/control-array/control-array.d.ts +77 -0
  319. package/dist/components/control-array/control-array.d.ts.map +1 -0
  320. package/dist/components/control-array/control-array.js +451 -0
  321. package/dist/components/control-array/control-array.js.map +1 -0
  322. package/dist/components/control-base/field-i18n.d.ts +32 -0
  323. package/dist/components/control-base/field-i18n.d.ts.map +1 -0
  324. package/dist/components/control-base/field-i18n.js +29 -0
  325. package/dist/components/control-base/field-i18n.js.map +1 -0
  326. package/dist/components/control-base/form-field.d.ts +128 -0
  327. package/dist/components/control-base/form-field.d.ts.map +1 -0
  328. package/dist/components/control-base/form-field.js +208 -0
  329. package/dist/components/control-base/form-field.js.map +1 -0
  330. package/dist/components/control-base/grid.d.ts +18 -0
  331. package/dist/components/control-base/grid.d.ts.map +1 -0
  332. package/dist/components/control-base/grid.js +46 -0
  333. package/dist/components/control-base/grid.js.map +1 -0
  334. package/dist/components/control-base/icon-hint.d.ts +9 -0
  335. package/dist/components/control-base/icon-hint.d.ts.map +1 -0
  336. package/dist/components/control-base/icon-hint.js +35 -0
  337. package/dist/components/control-base/icon-hint.js.map +1 -0
  338. package/dist/components/control-date/control-date.d.ts +34 -0
  339. package/dist/components/control-date/control-date.d.ts.map +1 -0
  340. package/dist/components/control-date/control-date.js +127 -0
  341. package/dist/components/control-date/control-date.js.map +1 -0
  342. package/dist/components/control-number/control-number.d.ts +38 -0
  343. package/dist/components/control-number/control-number.d.ts.map +1 -0
  344. package/dist/components/control-number/control-number.js +77 -0
  345. package/dist/components/control-number/control-number.js.map +1 -0
  346. package/dist/components/control-object/control-object.d.ts +47 -0
  347. package/dist/components/control-object/control-object.d.ts.map +1 -0
  348. package/dist/components/control-object/control-object.js +110 -0
  349. package/dist/components/control-object/control-object.js.map +1 -0
  350. package/dist/components/control-password/control-password.d.ts +28 -0
  351. package/dist/components/control-password/control-password.d.ts.map +1 -0
  352. package/dist/components/control-password/control-password.js +64 -0
  353. package/dist/components/control-password/control-password.js.map +1 -0
  354. package/dist/components/control-select/control-select.d.ts +128 -0
  355. package/dist/components/control-select/control-select.d.ts.map +1 -0
  356. package/dist/components/control-select/control-select.js +363 -0
  357. package/dist/components/control-select/control-select.js.map +1 -0
  358. package/dist/components/control-upload/control-upload.d.ts +67 -0
  359. package/dist/components/control-upload/control-upload.d.ts.map +1 -0
  360. package/dist/components/control-upload/control-upload.js +294 -0
  361. package/dist/components/control-upload/control-upload.js.map +1 -0
  362. package/dist/components/detail/detail-aside.d.ts +58 -0
  363. package/dist/components/detail/detail-aside.d.ts.map +1 -0
  364. package/dist/components/detail/detail-aside.js +95 -0
  365. package/dist/components/detail/detail-aside.js.map +1 -0
  366. package/dist/components/detail/detail-layout.d.ts +90 -0
  367. package/dist/components/detail/detail-layout.d.ts.map +1 -0
  368. package/dist/components/detail/detail-layout.js +102 -0
  369. package/dist/components/detail/detail-layout.js.map +1 -0
  370. package/dist/components/detail/use-detail-tab.d.ts +15 -0
  371. package/dist/components/detail/use-detail-tab.d.ts.map +1 -0
  372. package/dist/components/detail/use-detail-tab.js +37 -0
  373. package/dist/components/detail/use-detail-tab.js.map +1 -0
  374. package/dist/components/file-image/file-image.d.ts +31 -0
  375. package/dist/components/file-image/file-image.d.ts.map +1 -0
  376. package/dist/components/file-image/file-image.js +27 -0
  377. package/dist/components/file-image/file-image.js.map +1 -0
  378. package/dist/components/language-toggle/language-toggle.d.ts +8 -0
  379. package/dist/components/language-toggle/language-toggle.d.ts.map +1 -0
  380. package/dist/components/language-toggle/language-toggle.js +49 -0
  381. package/dist/components/language-toggle/language-toggle.js.map +1 -0
  382. package/dist/components/markdown-view/diagram/DiagramErrorBoundary.d.ts +28 -0
  383. package/dist/components/markdown-view/diagram/DiagramErrorBoundary.d.ts.map +1 -0
  384. package/dist/components/markdown-view/diagram/DiagramErrorBoundary.js +25 -0
  385. package/dist/components/markdown-view/diagram/DiagramErrorBoundary.js.map +1 -0
  386. package/dist/components/markdown-view/diagram/FlowchartDiagram.d.ts +44 -0
  387. package/dist/components/markdown-view/diagram/FlowchartDiagram.d.ts.map +1 -0
  388. package/dist/components/markdown-view/diagram/FlowchartDiagram.js +98 -0
  389. package/dist/components/markdown-view/diagram/FlowchartDiagram.js.map +1 -0
  390. package/dist/components/markdown-view/diagram/FlowchartDiagramCluster.d.ts +14 -0
  391. package/dist/components/markdown-view/diagram/FlowchartDiagramCluster.d.ts.map +1 -0
  392. package/dist/components/markdown-view/diagram/FlowchartDiagramCluster.js +45 -0
  393. package/dist/components/markdown-view/diagram/FlowchartDiagramCluster.js.map +1 -0
  394. package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.d.ts +19 -0
  395. package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.d.ts.map +1 -0
  396. package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.js +69 -0
  397. package/dist/components/markdown-view/diagram/FlowchartDiagramEdge.js.map +1 -0
  398. package/dist/components/markdown-view/diagram/FlowchartDiagramLabel.d.ts +23 -0
  399. package/dist/components/markdown-view/diagram/FlowchartDiagramLabel.d.ts.map +1 -0
  400. package/dist/components/markdown-view/diagram/FlowchartDiagramLabel.js +34 -0
  401. package/dist/components/markdown-view/diagram/FlowchartDiagramLabel.js.map +1 -0
  402. package/dist/components/markdown-view/diagram/FlowchartDiagramNode.d.ts +17 -0
  403. package/dist/components/markdown-view/diagram/FlowchartDiagramNode.d.ts.map +1 -0
  404. package/dist/components/markdown-view/diagram/FlowchartDiagramNode.js +63 -0
  405. package/dist/components/markdown-view/diagram/FlowchartDiagramNode.js.map +1 -0
  406. package/dist/components/markdown-view/diagram/MermaidFence.d.ts +30 -0
  407. package/dist/components/markdown-view/diagram/MermaidFence.d.ts.map +1 -0
  408. package/dist/components/markdown-view/diagram/MermaidFence.js +30 -0
  409. package/dist/components/markdown-view/diagram/MermaidFence.js.map +1 -0
  410. package/dist/components/markdown-view/diagram/flowchartParser.d.ts +18 -0
  411. package/dist/components/markdown-view/diagram/flowchartParser.d.ts.map +1 -0
  412. package/dist/components/markdown-view/diagram/flowchartParser.js +370 -0
  413. package/dist/components/markdown-view/diagram/flowchartParser.js.map +1 -0
  414. package/dist/components/markdown-view/diagram/graphModel.d.ts +67 -0
  415. package/dist/components/markdown-view/diagram/graphModel.d.ts.map +1 -0
  416. package/dist/components/markdown-view/diagram/graphModel.js +0 -0
  417. package/dist/components/markdown-view/diagram/layoutFlowchart.d.ts +109 -0
  418. package/dist/components/markdown-view/diagram/layoutFlowchart.d.ts.map +1 -0
  419. package/dist/components/markdown-view/diagram/layoutFlowchart.js +185 -0
  420. package/dist/components/markdown-view/diagram/layoutFlowchart.js.map +1 -0
  421. package/dist/components/markdown-view/diagram/textMetrics.d.ts +63 -0
  422. package/dist/components/markdown-view/diagram/textMetrics.d.ts.map +1 -0
  423. package/dist/components/markdown-view/diagram/textMetrics.js +228 -0
  424. package/dist/components/markdown-view/diagram/textMetrics.js.map +1 -0
  425. package/dist/components/markdown-view/markdown-view.css +114 -0
  426. package/dist/components/markdown-view/markdown-view.d.ts +53 -0
  427. package/dist/components/markdown-view/markdown-view.d.ts.map +1 -0
  428. package/dist/components/markdown-view/markdown-view.js +180 -0
  429. package/dist/components/markdown-view/markdown-view.js.map +1 -0
  430. package/dist/components/nav-shell/nav-page.d.ts +24 -0
  431. package/dist/components/nav-shell/nav-page.d.ts.map +1 -0
  432. package/dist/components/nav-shell/nav-page.js +28 -0
  433. package/dist/components/nav-shell/nav-page.js.map +1 -0
  434. package/dist/components/nav-shell/nav-shell.d.ts +26 -0
  435. package/dist/components/nav-shell/nav-shell.d.ts.map +1 -0
  436. package/dist/components/nav-shell/nav-shell.js +53 -0
  437. package/dist/components/nav-shell/nav-shell.js.map +1 -0
  438. package/dist/components/nav-shell/nav-tree-util.d.ts +65 -0
  439. package/dist/components/nav-shell/nav-tree-util.d.ts.map +1 -0
  440. package/dist/components/nav-shell/nav-tree-util.js +87 -0
  441. package/dist/components/nav-shell/nav-tree-util.js.map +1 -0
  442. package/dist/components/nav-shell/spotlight.d.ts +37 -0
  443. package/dist/components/nav-shell/spotlight.d.ts.map +1 -0
  444. package/dist/components/nav-shell/spotlight.js +102 -0
  445. package/dist/components/nav-shell/spotlight.js.map +1 -0
  446. package/dist/components/nav-shell/use-nav-breadcrumbs.d.ts +24 -0
  447. package/dist/components/nav-shell/use-nav-breadcrumbs.d.ts.map +1 -0
  448. package/dist/components/nav-shell/use-nav-breadcrumbs.js +36 -0
  449. package/dist/components/nav-shell/use-nav-breadcrumbs.js.map +1 -0
  450. package/dist/components/nav-shell/use-nav-entries.d.ts +55 -0
  451. package/dist/components/nav-shell/use-nav-entries.d.ts.map +1 -0
  452. package/dist/components/nav-shell/use-nav-entries.js +60 -0
  453. package/dist/components/nav-shell/use-nav-entries.js.map +1 -0
  454. package/dist/components/nav-shell/use-nav-tree.d.ts +21 -0
  455. package/dist/components/nav-shell/use-nav-tree.d.ts.map +1 -0
  456. package/dist/components/nav-shell/use-nav-tree.js +48 -0
  457. package/dist/components/nav-shell/use-nav-tree.js.map +1 -0
  458. package/dist/components/settings/settings-card-edge.d.ts +25 -0
  459. package/dist/components/settings/settings-card-edge.d.ts.map +1 -0
  460. package/dist/components/settings/settings-card-edge.js +29 -0
  461. package/dist/components/settings/settings-card-edge.js.map +1 -0
  462. package/dist/components/settings/settings-danger-section.d.ts +35 -0
  463. package/dist/components/settings/settings-danger-section.d.ts.map +1 -0
  464. package/dist/components/settings/settings-danger-section.js +43 -0
  465. package/dist/components/settings/settings-danger-section.js.map +1 -0
  466. package/dist/components/settings/settings-heading.d.ts +36 -0
  467. package/dist/components/settings/settings-heading.d.ts.map +1 -0
  468. package/dist/components/settings/settings-heading.js +39 -0
  469. package/dist/components/settings/settings-heading.js.map +1 -0
  470. package/dist/components/settings/settings-layout.d.ts +81 -0
  471. package/dist/components/settings/settings-layout.d.ts.map +1 -0
  472. package/dist/components/settings/settings-layout.js +56 -0
  473. package/dist/components/settings/settings-layout.js.map +1 -0
  474. package/dist/components/settings/settings-nav.d.ts +85 -0
  475. package/dist/components/settings/settings-nav.d.ts.map +1 -0
  476. package/dist/components/settings/settings-nav.js +91 -0
  477. package/dist/components/settings/settings-nav.js.map +1 -0
  478. package/dist/components/settings/settings-row.d.ts +45 -0
  479. package/dist/components/settings/settings-row.d.ts.map +1 -0
  480. package/dist/components/settings/settings-row.js +44 -0
  481. package/dist/components/settings/settings-row.js.map +1 -0
  482. package/dist/components/settings/settings-section.d.ts +36 -0
  483. package/dist/components/settings/settings-section.d.ts.map +1 -0
  484. package/dist/components/settings/settings-section.js +37 -0
  485. package/dist/components/settings/settings-section.js.map +1 -0
  486. package/dist/components/ui/accordion.d.ts +7 -0
  487. package/dist/components/ui/accordion.d.ts.map +1 -0
  488. package/dist/components/ui/accordion.js +55 -0
  489. package/dist/components/ui/accordion.js.map +1 -0
  490. package/dist/components/ui/alert-dialog.d.ts +19 -0
  491. package/dist/components/ui/alert-dialog.d.ts.map +1 -0
  492. package/dist/components/ui/alert-dialog.js +96 -0
  493. package/dist/components/ui/alert-dialog.js.map +1 -0
  494. package/dist/components/ui/alert.d.ts +11 -0
  495. package/dist/components/ui/alert.d.ts.map +1 -0
  496. package/dist/components/ui/alert.js +44 -0
  497. package/dist/components/ui/alert.js.map +1 -0
  498. package/dist/components/ui/aspect-ratio.d.ts +5 -0
  499. package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
  500. package/dist/components/ui/aspect-ratio.js +15 -0
  501. package/dist/components/ui/aspect-ratio.js.map +1 -0
  502. package/dist/components/ui/avatar.d.ts +12 -0
  503. package/dist/components/ui/avatar.d.ts.map +1 -0
  504. package/dist/components/ui/avatar.js +52 -0
  505. package/dist/components/ui/avatar.js.map +1 -0
  506. package/dist/components/ui/badge.d.ts +19 -0
  507. package/dist/components/ui/badge.d.ts.map +1 -0
  508. package/dist/components/ui/badge.js +70 -0
  509. package/dist/components/ui/badge.js.map +1 -0
  510. package/dist/components/ui/breadcrumb.d.ts +11 -0
  511. package/dist/components/ui/breadcrumb.d.ts.map +1 -0
  512. package/dist/components/ui/breadcrumb.js +73 -0
  513. package/dist/components/ui/breadcrumb.js.map +1 -0
  514. package/dist/components/ui/button-group.d.ts +11 -0
  515. package/dist/components/ui/button-group.d.ts.map +1 -0
  516. package/dist/components/ui/button-group.js +43 -0
  517. package/dist/components/ui/button-group.js.map +1 -0
  518. package/dist/components/ui/button.d.ts +18 -0
  519. package/dist/components/ui/button.d.ts.map +1 -0
  520. package/dist/components/ui/button.js +60 -0
  521. package/dist/components/ui/button.js.map +1 -0
  522. package/dist/components/ui/calendar.d.ts +11 -0
  523. package/dist/components/ui/calendar.d.ts.map +1 -0
  524. package/dist/components/ui/calendar.js +119 -0
  525. package/dist/components/ui/calendar.js.map +1 -0
  526. package/dist/components/ui/card.d.ts +12 -0
  527. package/dist/components/ui/card.d.ts.map +1 -0
  528. package/dist/components/ui/card.js +57 -0
  529. package/dist/components/ui/card.js.map +1 -0
  530. package/dist/components/ui/carousel.d.ts +29 -0
  531. package/dist/components/ui/carousel.d.ts.map +1 -0
  532. package/dist/components/ui/carousel.js +144 -0
  533. package/dist/components/ui/carousel.js.map +1 -0
  534. package/dist/components/ui/chart.d.ts +45 -0
  535. package/dist/components/ui/chart.d.ts.map +1 -0
  536. package/dist/components/ui/chart.js +152 -0
  537. package/dist/components/ui/chart.js.map +1 -0
  538. package/dist/components/ui/checkbox.d.ts +4 -0
  539. package/dist/components/ui/checkbox.d.ts.map +1 -0
  540. package/dist/components/ui/checkbox.js +22 -0
  541. package/dist/components/ui/checkbox.js.map +1 -0
  542. package/dist/components/ui/collapsible.d.ts +6 -0
  543. package/dist/components/ui/collapsible.d.ts.map +1 -0
  544. package/dist/components/ui/collapsible.js +26 -0
  545. package/dist/components/ui/collapsible.js.map +1 -0
  546. package/dist/components/ui/combobox.d.ts +25 -0
  547. package/dist/components/ui/combobox.d.ts.map +1 -0
  548. package/dist/components/ui/combobox.js +164 -0
  549. package/dist/components/ui/combobox.js.map +1 -0
  550. package/dist/components/ui/command.d.ts +20 -0
  551. package/dist/components/ui/command.d.ts.map +1 -0
  552. package/dist/components/ui/command.js +89 -0
  553. package/dist/components/ui/command.js.map +1 -0
  554. package/dist/components/ui/context-menu.d.ts +30 -0
  555. package/dist/components/ui/context-menu.d.ts.map +1 -0
  556. package/dist/components/ui/context-menu.js +134 -0
  557. package/dist/components/ui/context-menu.js.map +1 -0
  558. package/dist/components/ui/dialog.d.ts +18 -0
  559. package/dist/components/ui/dialog.d.ts.map +1 -0
  560. package/dist/components/ui/dialog.js +93 -0
  561. package/dist/components/ui/dialog.js.map +1 -0
  562. package/dist/components/ui/direction.d.ts +2 -0
  563. package/dist/components/ui/direction.d.ts.map +1 -0
  564. package/dist/components/ui/direction.js +3 -0
  565. package/dist/components/ui/drawer.d.ts +17 -0
  566. package/dist/components/ui/drawer.d.ts.map +1 -0
  567. package/dist/components/ui/drawer.js +125 -0
  568. package/dist/components/ui/drawer.js.map +1 -0
  569. package/dist/components/ui/dropdown-menu.d.ts +30 -0
  570. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  571. package/dist/components/ui/dropdown-menu.js +138 -0
  572. package/dist/components/ui/dropdown-menu.js.map +1 -0
  573. package/dist/components/ui/empty.d.ts +12 -0
  574. package/dist/components/ui/empty.d.ts.map +1 -0
  575. package/dist/components/ui/empty.js +61 -0
  576. package/dist/components/ui/empty.js.map +1 -0
  577. package/dist/components/ui/hover-card.d.ts +6 -0
  578. package/dist/components/ui/hover-card.d.ts.map +1 -0
  579. package/dist/components/ui/hover-card.js +38 -0
  580. package/dist/components/ui/hover-card.js.map +1 -0
  581. package/dist/components/ui/input-group.d.ts +19 -0
  582. package/dist/components/ui/input-group.d.ts.map +1 -0
  583. package/dist/components/ui/input-group.js +80 -0
  584. package/dist/components/ui/input-group.js.map +1 -0
  585. package/dist/components/ui/input-otp.d.ts +12 -0
  586. package/dist/components/ui/input-otp.d.ts.map +1 -0
  587. package/dist/components/ui/input-otp.js +49 -0
  588. package/dist/components/ui/input-otp.js.map +1 -0
  589. package/dist/components/ui/input.d.ts +4 -0
  590. package/dist/components/ui/input.d.ts.map +1 -0
  591. package/dist/components/ui/input.js +16 -0
  592. package/dist/components/ui/input.js.map +1 -0
  593. package/dist/components/ui/item.d.ts +23 -0
  594. package/dist/components/ui/item.d.ts.map +1 -0
  595. package/dist/components/ui/item.js +122 -0
  596. package/dist/components/ui/item.js.map +1 -0
  597. package/dist/components/ui/kbd.d.ts +4 -0
  598. package/dist/components/ui/kbd.d.ts.map +1 -0
  599. package/dist/components/ui/kbd.js +21 -0
  600. package/dist/components/ui/kbd.js.map +1 -0
  601. package/dist/components/ui/label.d.ts +4 -0
  602. package/dist/components/ui/label.d.ts.map +1 -0
  603. package/dist/components/ui/label.js +15 -0
  604. package/dist/components/ui/label.js.map +1 -0
  605. package/dist/components/ui/menubar.d.ts +30 -0
  606. package/dist/components/ui/menubar.d.ts.map +1 -0
  607. package/dist/components/ui/menubar.js +137 -0
  608. package/dist/components/ui/menubar.js.map +1 -0
  609. package/dist/components/ui/navigation-menu.d.ts +12 -0
  610. package/dist/components/ui/navigation-menu.d.ts.map +1 -0
  611. package/dist/components/ui/navigation-menu.js +84 -0
  612. package/dist/components/ui/navigation-menu.js.map +1 -0
  613. package/dist/components/ui/pagination.d.ts +18 -0
  614. package/dist/components/ui/pagination.d.ts.map +1 -0
  615. package/dist/components/ui/pagination.js +87 -0
  616. package/dist/components/ui/pagination.js.map +1 -0
  617. package/dist/components/ui/popover.d.ts +10 -0
  618. package/dist/components/ui/popover.d.ts.map +1 -0
  619. package/dist/components/ui/popover.js +56 -0
  620. package/dist/components/ui/popover.js.map +1 -0
  621. package/dist/components/ui/progress.d.ts +8 -0
  622. package/dist/components/ui/progress.d.ts.map +1 -0
  623. package/dist/components/ui/progress.js +46 -0
  624. package/dist/components/ui/progress.js.map +1 -0
  625. package/dist/components/ui/radio-group.d.ts +6 -0
  626. package/dist/components/ui/radio-group.d.ts.map +1 -0
  627. package/dist/components/ui/radio-group.js +29 -0
  628. package/dist/components/ui/radio-group.js.map +1 -0
  629. package/dist/components/ui/resizable.d.ts +8 -0
  630. package/dist/components/ui/resizable.d.ts.map +1 -0
  631. package/dist/components/ui/resizable.js +30 -0
  632. package/dist/components/ui/resizable.js.map +1 -0
  633. package/dist/components/ui/scroll-area.d.ts +5 -0
  634. package/dist/components/ui/scroll-area.d.ts.map +1 -0
  635. package/dist/components/ui/scroll-area.js +38 -0
  636. package/dist/components/ui/scroll-area.js.map +1 -0
  637. package/dist/components/ui/segmented.d.ts +46 -0
  638. package/dist/components/ui/segmented.d.ts.map +1 -0
  639. package/dist/components/ui/segmented.js +119 -0
  640. package/dist/components/ui/segmented.js.map +1 -0
  641. package/dist/components/ui/select.d.ts +16 -0
  642. package/dist/components/ui/select.d.ts.map +1 -0
  643. package/dist/components/ui/select.js +99 -0
  644. package/dist/components/ui/select.js.map +1 -0
  645. package/dist/components/ui/separator.d.ts +4 -0
  646. package/dist/components/ui/separator.d.ts.map +1 -0
  647. package/dist/components/ui/separator.js +17 -0
  648. package/dist/components/ui/separator.js.map +1 -0
  649. package/dist/components/ui/sheet.d.ts +15 -0
  650. package/dist/components/ui/sheet.d.ts.map +1 -0
  651. package/dist/components/ui/sheet.js +90 -0
  652. package/dist/components/ui/sheet.js.map +1 -0
  653. package/dist/components/ui/sidebar.d.ts +64 -0
  654. package/dist/components/ui/sidebar.d.ts.map +1 -0
  655. package/dist/components/ui/sidebar.js +388 -0
  656. package/dist/components/ui/sidebar.js.map +1 -0
  657. package/dist/components/ui/skeleton.d.ts +3 -0
  658. package/dist/components/ui/skeleton.d.ts.map +1 -0
  659. package/dist/components/ui/skeleton.js +14 -0
  660. package/dist/components/ui/skeleton.js.map +1 -0
  661. package/dist/components/ui/slider.d.ts +4 -0
  662. package/dist/components/ui/slider.d.ts.map +1 -0
  663. package/dist/components/ui/slider.js +35 -0
  664. package/dist/components/ui/slider.js.map +1 -0
  665. package/dist/components/ui/sonner.d.ts +4 -0
  666. package/dist/components/ui/sonner.d.ts.map +1 -0
  667. package/dist/components/ui/sonner.js +33 -0
  668. package/dist/components/ui/sonner.js.map +1 -0
  669. package/dist/components/ui/spinner.d.ts +3 -0
  670. package/dist/components/ui/spinner.d.ts.map +1 -0
  671. package/dist/components/ui/spinner.js +17 -0
  672. package/dist/components/ui/spinner.js.map +1 -0
  673. package/dist/components/ui/switch.d.ts +6 -0
  674. package/dist/components/ui/switch.d.ts.map +1 -0
  675. package/dist/components/ui/switch.js +21 -0
  676. package/dist/components/ui/switch.js.map +1 -0
  677. package/dist/components/ui/table.d.ts +11 -0
  678. package/dist/components/ui/table.d.ts.map +1 -0
  679. package/dist/components/ui/table.js +68 -0
  680. package/dist/components/ui/table.js.map +1 -0
  681. package/dist/components/ui/tabs.d.ts +11 -0
  682. package/dist/components/ui/tabs.d.ts.map +1 -0
  683. package/dist/components/ui/tabs.js +47 -0
  684. package/dist/components/ui/tabs.js.map +1 -0
  685. package/dist/components/ui/textarea.d.ts +4 -0
  686. package/dist/components/ui/textarea.d.ts.map +1 -0
  687. package/dist/components/ui/textarea.js +14 -0
  688. package/dist/components/ui/textarea.js.map +1 -0
  689. package/dist/components/ui/toggle-group.d.ts +12 -0
  690. package/dist/components/ui/toggle-group.d.ts.map +1 -0
  691. package/dist/components/ui/toggle-group.js +60 -0
  692. package/dist/components/ui/toggle-group.js.map +1 -0
  693. package/dist/components/ui/toggle.d.ts +9 -0
  694. package/dist/components/ui/toggle.d.ts.map +1 -0
  695. package/dist/components/ui/toggle.js +38 -0
  696. package/dist/components/ui/toggle.js.map +1 -0
  697. package/dist/components/ui/tooltip.d.ts +17 -0
  698. package/dist/components/ui/tooltip.d.ts.map +1 -0
  699. package/dist/components/ui/tooltip.js +53 -0
  700. package/dist/components/ui/tooltip.js.map +1 -0
  701. package/dist/components/use-dialog/use-dialog.d.ts +61 -0
  702. package/dist/components/use-dialog/use-dialog.d.ts.map +1 -0
  703. package/dist/components/use-dialog/use-dialog.js +143 -0
  704. package/dist/components/use-dialog/use-dialog.js.map +1 -0
  705. package/dist/components/use-toast/use-toast.d.ts +43 -0
  706. package/dist/components/use-toast/use-toast.d.ts.map +1 -0
  707. package/dist/components/use-toast/use-toast.js +33 -0
  708. package/dist/components/use-toast/use-toast.js.map +1 -0
  709. package/dist/hooks/use-mobile.d.ts +12 -0
  710. package/dist/hooks/use-mobile.d.ts.map +1 -0
  711. package/dist/hooks/use-mobile.js +27 -0
  712. package/dist/hooks/use-mobile.js.map +1 -0
  713. package/dist/lib/i18n-fr.d.ts +46 -0
  714. package/dist/lib/i18n-fr.d.ts.map +1 -0
  715. package/dist/lib/i18n-fr.js +510 -0
  716. package/dist/lib/i18n-fr.js.map +1 -0
  717. package/dist/lib/resize-image.d.ts +50 -0
  718. package/dist/lib/resize-image.d.ts.map +1 -0
  719. package/dist/lib/resize-image.js +68 -0
  720. package/dist/lib/resize-image.js.map +1 -0
  721. package/dist/lib/utils.d.ts +3 -0
  722. package/dist/lib/utils.d.ts.map +1 -0
  723. package/dist/lib/utils.js +10 -0
  724. package/dist/lib/utils.js.map +1 -0
  725. package/dist/styles.css +254 -0
  726. package/package.json +65 -33
  727. package/src/components/account/__tests__/account-router.spec.ts +4 -2
  728. package/src/components/account/account-connections.tsx +10 -2
  729. package/src/components/account/account-header.tsx +6 -1
  730. package/src/components/account/account-keys.tsx +2 -2
  731. package/src/components/account/account-layout.tsx +14 -4
  732. package/src/components/account/account-profile.tsx +238 -125
  733. package/src/components/account/account-router-options.tsx +15 -0
  734. package/src/components/account/account-router-page.tsx +1 -0
  735. package/src/components/account/account-router.tsx +24 -3
  736. package/src/components/account/account-security.tsx +2 -1
  737. package/src/components/account/account-sessions.tsx +21 -4
  738. package/src/components/admin/__tests__/admin-keys-token-dialog.browser.spec.tsx +1 -0
  739. package/src/components/admin/__tests__/admin-layout.browser.spec.tsx +2 -1
  740. package/src/components/admin/__tests__/admin-router-page.spec.ts +2 -1
  741. package/src/components/admin/__tests__/admin-router.spec.ts +57 -1
  742. package/src/components/admin/__tests__/admin-user-cell.browser.spec.tsx +1 -0
  743. package/src/components/admin/__tests__/admin-user-detail.spec.ts +1 -0
  744. package/src/components/admin/admin-analytics-query-panel.tsx +4 -3
  745. package/src/components/admin/admin-analytics-results.tsx +2 -2
  746. package/src/components/admin/admin-analytics.tsx +3 -3
  747. package/src/components/admin/admin-audits.tsx +3 -3
  748. package/src/components/admin/admin-dashboard-card.tsx +45 -0
  749. package/src/components/admin/admin-dashboard-count-card.tsx +89 -0
  750. package/src/components/admin/admin-dashboard.tsx +60 -0
  751. package/src/components/admin/admin-files.tsx +2 -2
  752. package/src/components/admin/admin-jobs-executions-panel.tsx +19 -12
  753. package/src/components/admin/admin-jobs-status-badge.tsx +2 -2
  754. package/src/components/admin/admin-jobs.tsx +4 -4
  755. package/src/components/admin/admin-keys-token-dialog.tsx +2 -2
  756. package/src/components/admin/admin-keys.tsx +2 -2
  757. package/src/components/admin/admin-layout.tsx +1 -2
  758. package/src/components/admin/admin-notifications.tsx +2 -2
  759. package/src/components/admin/admin-parameters.tsx +16 -9
  760. package/src/components/admin/admin-payments.tsx +2 -2
  761. package/src/components/admin/admin-router-options.tsx +34 -10
  762. package/src/components/admin/admin-router-page.tsx +8 -5
  763. package/src/components/admin/admin-router.tsx +112 -40
  764. package/src/components/admin/admin-sessions.tsx +13 -2
  765. package/src/components/admin/admin-user-detail-audits-tab.tsx +5 -2
  766. package/src/components/admin/admin-user-detail-identity-aside.tsx +16 -93
  767. package/src/components/admin/admin-user-detail-overview-tab.tsx +1 -0
  768. package/src/components/admin/admin-user-detail-password-dialog.tsx +1 -0
  769. package/src/components/admin/admin-user-detail-profile-policy.spec.ts +1 -0
  770. package/src/components/admin/admin-user-detail-profile-policy.ts +1 -0
  771. package/src/components/admin/admin-user-detail-security-tab.tsx +1 -0
  772. package/src/components/admin/admin-user-detail-sessions-tab.tsx +5 -2
  773. package/src/components/admin/admin-user-detail.tsx +49 -87
  774. package/src/components/admin/admin-users-roles-picker.tsx +22 -15
  775. package/src/components/admin/admin-users.tsx +8 -14
  776. package/src/components/admin/admin-workflows-execution-sheet.tsx +18 -10
  777. package/src/components/admin/admin-workflows-executions-panel.tsx +24 -17
  778. package/src/components/admin/admin-workflows-status-badge.tsx +4 -2
  779. package/src/components/admin/admin-workflows.tsx +6 -4
  780. package/src/components/admin/diff-lines.spec.ts +1 -0
  781. package/src/components/admin/diff-lines.ts +1 -1
  782. package/src/components/admin/parameter-diff-dialog.tsx +3 -2
  783. package/src/components/admin/parameter-history-item.tsx +6 -5
  784. package/src/components/alepha-table/__tests__/alepha-table-static.browser.spec.tsx +190 -0
  785. package/src/components/alepha-table/__tests__/paginate-local.spec.ts +286 -0
  786. package/src/components/alepha-table/__tests__/use-table-selection.browser.spec.tsx +1 -0
  787. package/src/components/alepha-table/alepha-table.tsx +385 -86
  788. package/src/components/alepha-table/paginate-local.ts +174 -0
  789. package/src/components/app-actions/__tests__/app-actions.browser.spec.tsx +1 -0
  790. package/src/components/app-actions/app-actions.tsx +7 -2
  791. package/src/components/app-shell/app-shell.tsx +42 -19
  792. package/src/components/auth/__tests__/auth-router.spec.ts +2 -1
  793. package/src/components/auth/auth-login.tsx +5 -16
  794. package/src/components/auth/auth-register.tsx +81 -42
  795. package/src/components/auth/auth-reset-password.tsx +24 -17
  796. package/src/components/auth/auth-router.tsx +4 -3
  797. package/src/components/auth/auth-verify-email.tsx +7 -7
  798. package/src/components/auth/safe-redirect.ts +14 -0
  799. package/src/components/auto-form/__tests__/auto-form-settings-card.browser.spec.tsx +238 -0
  800. package/src/components/auto-form/auto-form.tsx +173 -66
  801. package/src/components/brand-icon/brand-icon.tsx +2 -2
  802. package/src/components/button-dark/button-dark.tsx +2 -2
  803. package/src/components/button-language/button-language.tsx +2 -2
  804. package/src/components/button-theme/button-theme.tsx +2 -2
  805. package/src/components/button-user/button-user.tsx +80 -21
  806. package/src/components/captcha/turnstile-widget.tsx +6 -5
  807. package/src/components/control/control.tsx +39 -14
  808. package/src/components/control-array/control-array.tsx +28 -15
  809. package/src/components/control-base/__tests__/form-field-a11y.browser.spec.tsx +1 -0
  810. package/src/components/control-base/field-i18n.ts +5 -3
  811. package/src/components/control-base/form-field.tsx +69 -12
  812. package/src/components/control-base/icon-hint.tsx +1 -1
  813. package/src/components/control-date/control-date.tsx +29 -6
  814. package/src/components/control-number/control-number.tsx +3 -3
  815. package/src/components/control-object/control-object.tsx +11 -8
  816. package/src/components/control-password/control-password.tsx +2 -2
  817. package/src/components/control-select/__tests__/control-select-clear-label.browser.spec.tsx +1 -0
  818. package/src/components/control-select/__tests__/control-select-deselect.browser.spec.tsx +1 -0
  819. package/src/components/control-select/__tests__/control-select-searchable.browser.spec.tsx +1 -0
  820. package/src/components/control-select/control-select.tsx +32 -18
  821. package/src/components/control-upload/control-upload.tsx +16 -10
  822. package/src/components/detail/__tests__/detail-aside.browser.spec.tsx +135 -0
  823. package/src/components/detail/__tests__/detail-layout.browser.spec.tsx +151 -0
  824. package/src/components/detail/detail-aside.tsx +198 -0
  825. package/src/components/detail/detail-layout.tsx +181 -0
  826. package/src/components/detail/use-detail-tab.tsx +41 -0
  827. package/src/components/file-image/file-image.tsx +4 -2
  828. package/src/components/language-toggle/language-toggle.tsx +2 -2
  829. package/src/components/markdown-view/__tests__/markdown-view-mermaid.browser.spec.tsx +148 -0
  830. package/src/components/markdown-view/__tests__/markdown-view-raw-html.browser.spec.tsx +49 -0
  831. package/src/components/markdown-view/diagram/DiagramErrorBoundary.tsx +42 -0
  832. package/src/components/markdown-view/diagram/FlowchartDiagram.tsx +136 -0
  833. package/src/components/markdown-view/diagram/FlowchartDiagramCluster.tsx +59 -0
  834. package/src/components/markdown-view/diagram/FlowchartDiagramEdge.tsx +95 -0
  835. package/src/components/markdown-view/diagram/FlowchartDiagramLabel.tsx +58 -0
  836. package/src/components/markdown-view/diagram/FlowchartDiagramNode.tsx +78 -0
  837. package/src/components/markdown-view/diagram/MermaidFence.tsx +46 -0
  838. package/src/components/markdown-view/diagram/__tests__/flowchart-diagram.browser.spec.tsx +210 -0
  839. package/src/components/markdown-view/diagram/flowchartParser.spec.ts +379 -0
  840. package/src/components/markdown-view/diagram/flowchartParser.ts +475 -0
  841. package/src/components/markdown-view/diagram/graphModel.ts +72 -0
  842. package/src/components/markdown-view/diagram/layoutFlowchart.spec.ts +235 -0
  843. package/src/components/markdown-view/diagram/layoutFlowchart.ts +324 -0
  844. package/src/components/markdown-view/diagram/textMetrics.spec.ts +128 -0
  845. package/src/components/markdown-view/diagram/textMetrics.ts +296 -0
  846. package/src/components/markdown-view/markdown-view.tsx +142 -15
  847. package/src/components/nav-shell/__tests__/nav-tree-util.spec.ts +89 -0
  848. package/src/components/nav-shell/nav-shell.tsx +6 -3
  849. package/src/components/nav-shell/nav-tree-util.ts +48 -0
  850. package/src/components/nav-shell/spotlight.tsx +2 -1
  851. package/src/components/nav-shell/use-nav-breadcrumbs.ts +1 -0
  852. package/src/components/nav-shell/use-nav-entries.ts +27 -7
  853. package/src/components/nav-shell/use-nav-tree.ts +1 -0
  854. package/src/components/settings/__tests__/settings-nav.browser.spec.tsx +1 -0
  855. package/src/components/settings/__tests__/settings-section.browser.spec.tsx +1 -0
  856. package/src/components/settings/settings-card-edge.ts +24 -0
  857. package/src/components/settings/settings-danger-section.tsx +7 -1
  858. package/src/components/settings/settings-heading.tsx +55 -0
  859. package/src/components/settings/settings-layout.tsx +81 -7
  860. package/src/components/settings/settings-nav.tsx +58 -5
  861. package/src/components/settings/settings-row.tsx +2 -2
  862. package/src/components/settings/settings-section.tsx +4 -15
  863. package/src/components/ui/accordion.tsx +3 -3
  864. package/src/components/ui/alert-dialog.tsx +5 -5
  865. package/src/components/ui/alert.tsx +2 -2
  866. package/src/components/ui/avatar.tsx +5 -5
  867. package/src/components/ui/badge.tsx +48 -2
  868. package/src/components/ui/breadcrumb.tsx +3 -3
  869. package/src/components/ui/button-group.tsx +2 -2
  870. package/src/components/ui/button.tsx +2 -2
  871. package/src/components/ui/calendar.tsx +8 -8
  872. package/src/components/ui/card.tsx +3 -3
  873. package/src/components/ui/carousel.tsx +30 -13
  874. package/src/components/ui/chart.tsx +18 -6
  875. package/src/components/ui/checkbox.tsx +1 -1
  876. package/src/components/ui/combobox.tsx +8 -9
  877. package/src/components/ui/command.tsx +6 -7
  878. package/src/components/ui/context-menu.tsx +8 -8
  879. package/src/components/ui/dialog.tsx +4 -4
  880. package/src/components/ui/drawer.tsx +4 -4
  881. package/src/components/ui/dropdown-menu.tsx +9 -9
  882. package/src/components/ui/empty.tsx +2 -2
  883. package/src/components/ui/hover-card.tsx +1 -1
  884. package/src/components/ui/input-group.tsx +6 -3
  885. package/src/components/ui/input-otp.tsx +3 -3
  886. package/src/components/ui/input.tsx +1 -1
  887. package/src/components/ui/item.tsx +3 -3
  888. package/src/components/ui/kbd.tsx +1 -1
  889. package/src/components/ui/label.tsx +3 -0
  890. package/src/components/ui/menubar.tsx +9 -9
  891. package/src/components/ui/navigation-menu.tsx +7 -7
  892. package/src/components/ui/pagination.tsx +0 -1
  893. package/src/components/ui/popover.tsx +1 -1
  894. package/src/components/ui/progress.tsx +3 -3
  895. package/src/components/ui/radio-group.tsx +2 -2
  896. package/src/components/ui/resizable.tsx +2 -2
  897. package/src/components/ui/scroll-area.tsx +2 -2
  898. package/src/components/ui/segmented.tsx +27 -5
  899. package/src/components/ui/select.tsx +8 -8
  900. package/src/components/ui/separator.tsx +1 -1
  901. package/src/components/ui/sheet.tsx +3 -3
  902. package/src/components/ui/sidebar.tsx +20 -20
  903. package/src/components/ui/skeleton.tsx +1 -1
  904. package/src/components/ui/slider.tsx +2 -2
  905. package/src/components/ui/switch.tsx +2 -2
  906. package/src/components/ui/table.tsx +10 -5
  907. package/src/components/ui/tabs.tsx +3 -3
  908. package/src/components/ui/textarea.tsx +1 -1
  909. package/src/components/ui/toggle-group.tsx +9 -4
  910. package/src/components/ui/toggle.tsx +2 -2
  911. package/src/components/ui/tooltip.tsx +13 -3
  912. package/src/components/use-dialog/use-dialog.tsx +19 -6
  913. package/src/components/use-toast/__tests__/use-toast.browser.spec.tsx +19 -0
  914. package/src/components/use-toast/use-toast.tsx +38 -26
  915. package/src/hooks/use-mobile.ts +27 -14
  916. package/src/lib/__tests__/i18n-fr.spec.ts +5 -1
  917. package/src/lib/i18n-fr.ts +18 -10
  918. package/src/styles.css +5 -5
  919. package/src/lib/__tests__/rehype-safe-img.spec.ts +0 -121
  920. package/src/lib/rehype-safe-img.ts +0 -150
@@ -0,0 +1,39 @@
1
+ import { cn } from "../../lib/utils.js";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ //#region src/components/settings/settings-heading.tsx
4
+ /**
5
+ * The title + description pair that sits above a settings block.
6
+ *
7
+ * It exists so there is exactly one of it. {@link SettingsSection} renders this
8
+ * for the common case (a heading over a card of {@link SettingsRow}s), and a
9
+ * page whose content is not a card of rows — a table, a list of invitations —
10
+ * uses it directly instead of hand-rolling the markup.
11
+ *
12
+ * That hand-rolling is the failure this prevents, and it had already happened:
13
+ * `apps/lore`'s account pages grew an `<h2 className="text-base font-semibold">`
14
+ * on one page and a bare `<span className="text-xs">` with no title at all on
15
+ * another, so the `/account` rail led to three different type scales depending
16
+ * on which entry you clicked. Nothing was broken and nothing could have failed
17
+ * — it just read as three pages from three different applications.
18
+ *
19
+ * ⚠️ **No em dash in these strings.** House rule across every user-facing
20
+ * string, in this component and everywhere else: use a comma, a semicolon, a
21
+ * full stop, or split the sentence in two.
22
+ */
23
+ const SettingsHeading = (props) => {
24
+ if (props.title == null && props.description == null) return null;
25
+ return /* @__PURE__ */ jsxs("div", {
26
+ className: cn("flex flex-col gap-0.5", props.className),
27
+ children: [props.title != null ? /* @__PURE__ */ jsx("span", {
28
+ className: "text-sm",
29
+ children: props.title
30
+ }) : null, props.description != null ? /* @__PURE__ */ jsx("span", {
31
+ className: "text-muted-foreground text-xs",
32
+ children: props.description
33
+ }) : null]
34
+ });
35
+ };
36
+ //#endregion
37
+ export { SettingsHeading };
38
+
39
+ //# sourceMappingURL=settings-heading.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-heading.js","names":[],"sources":["../../../src/components/settings/settings-heading.tsx"],"sourcesContent":["import { cn } from \"@alepha/ui/lib/utils\";\nimport type { ReactNode } from \"react\";\n\nexport interface SettingsHeadingProps {\n /**\n * What this block of the page is. A noun phrase naming the thing, not a verb\n * phrase describing the action: \"Active sessions\", not \"Manage sessions\".\n */\n title?: ReactNode;\n\n /**\n * One line under the title. The place to put what the reader needs to know\n * before touching anything below it — a consequence, a constraint, a limit.\n * Skip it rather than restate the title in more words.\n */\n description?: ReactNode;\n\n className?: string;\n}\n\n/**\n * The title + description pair that sits above a settings block.\n *\n * It exists so there is exactly one of it. {@link SettingsSection} renders this\n * for the common case (a heading over a card of {@link SettingsRow}s), and a\n * page whose content is not a card of rows — a table, a list of invitations —\n * uses it directly instead of hand-rolling the markup.\n *\n * That hand-rolling is the failure this prevents, and it had already happened:\n * `apps/lore`'s account pages grew an `<h2 className=\"text-base font-semibold\">`\n * on one page and a bare `<span className=\"text-xs\">` with no title at all on\n * another, so the `/account` rail led to three different type scales depending\n * on which entry you clicked. Nothing was broken and nothing could have failed\n * — it just read as three pages from three different applications.\n *\n * ⚠️ **No em dash in these strings.** House rule across every user-facing\n * string, in this component and everywhere else: use a comma, a semicolon, a\n * full stop, or split the sentence in two.\n */\nexport const SettingsHeading = (props: SettingsHeadingProps) => {\n if (props.title == null && props.description == null) return null;\n\n return (\n <div className={cn(\"flex flex-col gap-0.5\", props.className)}>\n {props.title != null ? (\n <span className=\"text-sm\">{props.title}</span>\n ) : null}\n {props.description != null ? (\n <span className=\"text-muted-foreground text-xs\">\n {props.description}\n </span>\n ) : null}\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuCA,MAAa,mBAAmB,UAAgC;CAC9D,IAAI,MAAM,SAAS,QAAQ,MAAM,eAAe,MAAM,OAAO;CAE7D,OACE,qBAAC,OAAD;EAAK,WAAW,GAAG,yBAAyB,MAAM,SAAS;EAA3D,UAAA,CACG,MAAM,SAAS,OACd,oBAAC,QAAD;GAAM,WAAU;GAAW,UAAA,MAAM;EAAY,CAAA,IAC3C,MACH,MAAM,eAAe,OACpB,oBAAC,QAAD;GAAM,WAAU;GACb,UAAA,MAAM;EACH,CAAA,IACJ,IACD;;AAET"}
@@ -0,0 +1,81 @@
1
+ import type { ReactNode } from "react";
2
+ export interface SettingsLayoutProps {
3
+ /**
4
+ * The left rail — normally a {@link SettingsNav}. Omit for a settings page
5
+ * with a single screen and nothing to navigate between.
6
+ */
7
+ nav?: ReactNode;
8
+ /**
9
+ * Full-width block above both columns: an identity card, a page title, a
10
+ * back link. Rendered inside the centred container, so it lines up with the
11
+ * content rather than the viewport.
12
+ */
13
+ header?: ReactNode;
14
+ /**
15
+ * The routed content — normally a `NestedView`.
16
+ */
17
+ children: ReactNode;
18
+ /**
19
+ * Bound the shell to its parent's height and give the content column its
20
+ * own scrollbar, instead of letting the document scroll.
21
+ *
22
+ * Turn it on when this layout is mounted inside a host that has already
23
+ * taken the viewport height and hidden its own overflow — an application
24
+ * shell built as `h-svh … overflow-hidden`, which is the usual shape for an
25
+ * app with a fixed header. In that host the default (below) has no scrollbar
26
+ * to give: the document cannot scroll, so anything past the fold is simply
27
+ * unreachable.
28
+ *
29
+ * The mode is deliberately not auto-detected. Reading the ancestor chain for
30
+ * a clipping parent is a layout-effect away from a flash of the wrong shape
31
+ * on every mount, and the host already knows the answer at boot.
32
+ *
33
+ * It serves both kinds of page at once, which is why there is one flag
34
+ * rather than two:
35
+ *
36
+ * - A natural-height page (a stack of {@link SettingsSection} cards) exceeds
37
+ * the column and scrolls it — the same reading experience as the default,
38
+ * just against a nearer scroll root.
39
+ * - A page that opts into `flex-1 min-h-0` is bounded by the column instead,
40
+ * so it can hand the scroll to a child. That is what lets a table keep its
41
+ * filters and pagination bar pinned while only its rows move.
42
+ */
43
+ fill?: boolean;
44
+ className?: string;
45
+ }
46
+ /**
47
+ * Centred two-column shell for a settings area: sticky rail on the left,
48
+ * content on the right, stacked on small screens.
49
+ *
50
+ * `min-w-0` on the content column is load-bearing. A grid/flex child defaults
51
+ * to `min-width: auto`, which is the *content's* intrinsic width — so one
52
+ * unbreakable string (an API key, a long email, a `<pre>` block) makes the
53
+ * column refuse to shrink and pushes the whole page into horizontal scroll,
54
+ * rail included. `min-w-0` lets it shrink and lets the child's own
55
+ * `overflow` handle it.
56
+ *
57
+ * By default there is no scroll container here and the page scrolls, because
58
+ * a nested `overflow-auto` would strand the sticky rail against the wrong
59
+ * scroll root. Pass {@link SettingsLayoutProps.fill} when the host has already
60
+ * claimed the viewport height and clipped its own overflow, so there is no
61
+ * page scroll left to inherit.
62
+ *
63
+ * `md:items-start` becomes `md:items-stretch` under `fill` so the content
64
+ * column is as tall as the row rather than as tall as its content — a column
65
+ * sized by its content can never be the thing that scrolls. The rail is
66
+ * unaffected either way: it carries its own `md:self-start`, which outranks
67
+ * whatever the row aligns to.
68
+ *
69
+ * ⚠️ **`fill` engages at `md` and up only, and the root keeps a scrollbar at
70
+ * every width.** Below `md` the rail is not a rail: it stacks above the
71
+ * content as a full list of links, which on a phone is most of the viewport.
72
+ * Splitting what little is left into a second bounded pane gives a page a few
73
+ * hundred pixels it cannot grow out of — a table lands in a box too short to
74
+ * show a row, and because that table owns its own scroll, nothing above it can
75
+ * scroll to make room. So the mobile shape stays the default one: the root
76
+ * scrolls, rail and content together. At `md` and up the row is bounded, so
77
+ * the root's scrollbar never has anything to show and the content column is
78
+ * the scroll root instead.
79
+ */
80
+ export declare const SettingsLayout: (props: SettingsLayoutProps) => import("react").JSX.Element;
81
+ //# sourceMappingURL=settings-layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-layout.d.ts","sourceRoot":"","sources":["../../../src/components/settings/settings-layout.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,mBAAmB;IAClC;;;OAGG;IACH,GAAG,CAAC,EAAE,SAAS,CAAC;IAEhB;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,eAAO,MAAM,cAAc,UAAW,mBAAmB,gCA2CxD,CAAC"}
@@ -0,0 +1,56 @@
1
+ import { cn } from "../../lib/utils.js";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ //#region src/components/settings/settings-layout.tsx
4
+ /**
5
+ * Centred two-column shell for a settings area: sticky rail on the left,
6
+ * content on the right, stacked on small screens.
7
+ *
8
+ * `min-w-0` on the content column is load-bearing. A grid/flex child defaults
9
+ * to `min-width: auto`, which is the *content's* intrinsic width — so one
10
+ * unbreakable string (an API key, a long email, a `<pre>` block) makes the
11
+ * column refuse to shrink and pushes the whole page into horizontal scroll,
12
+ * rail included. `min-w-0` lets it shrink and lets the child's own
13
+ * `overflow` handle it.
14
+ *
15
+ * By default there is no scroll container here and the page scrolls, because
16
+ * a nested `overflow-auto` would strand the sticky rail against the wrong
17
+ * scroll root. Pass {@link SettingsLayoutProps.fill} when the host has already
18
+ * claimed the viewport height and clipped its own overflow, so there is no
19
+ * page scroll left to inherit.
20
+ *
21
+ * `md:items-start` becomes `md:items-stretch` under `fill` so the content
22
+ * column is as tall as the row rather than as tall as its content — a column
23
+ * sized by its content can never be the thing that scrolls. The rail is
24
+ * unaffected either way: it carries its own `md:self-start`, which outranks
25
+ * whatever the row aligns to.
26
+ *
27
+ * ⚠️ **`fill` engages at `md` and up only, and the root keeps a scrollbar at
28
+ * every width.** Below `md` the rail is not a rail: it stacks above the
29
+ * content as a full list of links, which on a phone is most of the viewport.
30
+ * Splitting what little is left into a second bounded pane gives a page a few
31
+ * hundred pixels it cannot grow out of — a table lands in a box too short to
32
+ * show a row, and because that table owns its own scroll, nothing above it can
33
+ * scroll to make room. So the mobile shape stays the default one: the root
34
+ * scrolls, rail and content together. At `md` and up the row is bounded, so
35
+ * the root's scrollbar never has anything to show and the content column is
36
+ * the scroll root instead.
37
+ */
38
+ const SettingsLayout = (props) => {
39
+ return /* @__PURE__ */ jsxs("div", {
40
+ className: cn("mx-auto w-full max-w-5xl p-4 md:pt-10", props.fill && "flex h-full min-h-0 flex-col overflow-y-auto", props.className),
41
+ children: [props.header ? /* @__PURE__ */ jsx("div", {
42
+ className: "mb-6",
43
+ children: props.header
44
+ }) : null, /* @__PURE__ */ jsxs("div", {
45
+ className: cn("flex flex-col gap-6 md:flex-row md:items-start", props.fill && "md:min-h-0 md:flex-1 md:items-stretch"),
46
+ children: [props.nav, /* @__PURE__ */ jsx("div", {
47
+ className: cn("flex min-w-0 flex-1 flex-col gap-8", props.fill && "md:-mx-2 md:min-h-0 md:overflow-y-auto md:px-2"),
48
+ children: props.children
49
+ })]
50
+ })]
51
+ });
52
+ };
53
+ //#endregion
54
+ export { SettingsLayout };
55
+
56
+ //# sourceMappingURL=settings-layout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-layout.js","names":[],"sources":["../../../src/components/settings/settings-layout.tsx"],"sourcesContent":["import { cn } from \"@alepha/ui/lib/utils\";\nimport type { ReactNode } from \"react\";\n\nexport interface SettingsLayoutProps {\n /**\n * The left rail — normally a {@link SettingsNav}. Omit for a settings page\n * with a single screen and nothing to navigate between.\n */\n nav?: ReactNode;\n\n /**\n * Full-width block above both columns: an identity card, a page title, a\n * back link. Rendered inside the centred container, so it lines up with the\n * content rather than the viewport.\n */\n header?: ReactNode;\n\n /**\n * The routed content — normally a `NestedView`.\n */\n children: ReactNode;\n\n /**\n * Bound the shell to its parent's height and give the content column its\n * own scrollbar, instead of letting the document scroll.\n *\n * Turn it on when this layout is mounted inside a host that has already\n * taken the viewport height and hidden its own overflow — an application\n * shell built as `h-svh … overflow-hidden`, which is the usual shape for an\n * app with a fixed header. In that host the default (below) has no scrollbar\n * to give: the document cannot scroll, so anything past the fold is simply\n * unreachable.\n *\n * The mode is deliberately not auto-detected. Reading the ancestor chain for\n * a clipping parent is a layout-effect away from a flash of the wrong shape\n * on every mount, and the host already knows the answer at boot.\n *\n * It serves both kinds of page at once, which is why there is one flag\n * rather than two:\n *\n * - A natural-height page (a stack of {@link SettingsSection} cards) exceeds\n * the column and scrolls it — the same reading experience as the default,\n * just against a nearer scroll root.\n * - A page that opts into `flex-1 min-h-0` is bounded by the column instead,\n * so it can hand the scroll to a child. That is what lets a table keep its\n * filters and pagination bar pinned while only its rows move.\n */\n fill?: boolean;\n\n className?: string;\n}\n\n/**\n * Centred two-column shell for a settings area: sticky rail on the left,\n * content on the right, stacked on small screens.\n *\n * `min-w-0` on the content column is load-bearing. A grid/flex child defaults\n * to `min-width: auto`, which is the *content's* intrinsic width — so one\n * unbreakable string (an API key, a long email, a `<pre>` block) makes the\n * column refuse to shrink and pushes the whole page into horizontal scroll,\n * rail included. `min-w-0` lets it shrink and lets the child's own\n * `overflow` handle it.\n *\n * By default there is no scroll container here and the page scrolls, because\n * a nested `overflow-auto` would strand the sticky rail against the wrong\n * scroll root. Pass {@link SettingsLayoutProps.fill} when the host has already\n * claimed the viewport height and clipped its own overflow, so there is no\n * page scroll left to inherit.\n *\n * `md:items-start` becomes `md:items-stretch` under `fill` so the content\n * column is as tall as the row rather than as tall as its content — a column\n * sized by its content can never be the thing that scrolls. The rail is\n * unaffected either way: it carries its own `md:self-start`, which outranks\n * whatever the row aligns to.\n *\n * ⚠️ **`fill` engages at `md` and up only, and the root keeps a scrollbar at\n * every width.** Below `md` the rail is not a rail: it stacks above the\n * content as a full list of links, which on a phone is most of the viewport.\n * Splitting what little is left into a second bounded pane gives a page a few\n * hundred pixels it cannot grow out of — a table lands in a box too short to\n * show a row, and because that table owns its own scroll, nothing above it can\n * scroll to make room. So the mobile shape stays the default one: the root\n * scrolls, rail and content together. At `md` and up the row is bounded, so\n * the root's scrollbar never has anything to show and the content column is\n * the scroll root instead.\n */\nexport const SettingsLayout = (props: SettingsLayoutProps) => {\n return (\n <div\n className={cn(\n \"mx-auto w-full max-w-5xl p-4 md:pt-10\",\n props.fill && \"flex h-full min-h-0 flex-col overflow-y-auto\",\n props.className,\n )}\n >\n {props.header ? <div className=\"mb-6\">{props.header}</div> : null}\n <div\n className={cn(\n \"flex flex-col gap-6 md:flex-row md:items-start\",\n props.fill && \"md:min-h-0 md:flex-1 md:items-stretch\",\n )}\n >\n {props.nav}\n <div\n className={cn(\n \"flex min-w-0 flex-1 flex-col gap-8\",\n // `md:px-2 md:-mx-2` is not spacing, it is clip headroom, and it\n // only exists because of the `overflow-y-auto` on the same line.\n //\n // An element with `overflow-y: auto` cannot keep `overflow-x:\n // visible`, CSS computes the visible axis to `auto`, so this\n // column becomes a horizontal clipping box too. The cards inside\n // are exactly as wide as it is, which puts their edges on the clip\n // boundary; a border survives that (it is inside the border box)\n // but a ring or a `shadow-sm` does not, and the cards came out\n // looking shaved down both sides.\n //\n // The padding moves the boundary out from under the cards and the\n // equal negative margin takes the width straight back, so nothing\n // moves and nothing narrows. Plain padding would have fixed the\n // clipping by making every card 16px narrower instead.\n props.fill && \"md:-mx-2 md:min-h-0 md:overflow-y-auto md:px-2\",\n )}\n >\n {props.children}\n </div>\n </div>\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsFA,MAAa,kBAAkB,UAA+B;CAC5D,OACE,qBAAC,OAAD;EACE,WAAW,GACT,yCACA,MAAM,QAAQ,gDACd,MAAM,SACR;EALF,UAAA,CAOG,MAAM,SAAS,oBAAC,OAAD;GAAK,WAAU;GAAQ,UAAA,MAAM;EAAY,CAAA,IAAI,MAC7D,qBAAC,OAAD;GACE,WAAW,GACT,kDACA,MAAM,QAAQ,uCAChB;GAJF,UAAA,CAMG,MAAM,KACP,oBAAC,OAAD;IACE,WAAW,GACT,sCAgBA,MAAM,QAAQ,gDAChB;IAEC,UAAA,MAAM;GACJ,CAAA,CACF;EACF,CAAA,CAAA;;AAET"}
@@ -0,0 +1,85 @@
1
+ import { type ReactNode } from "react";
2
+ export interface SettingsNavItem {
3
+ /**
4
+ * Stable key. The route name when these come from `useNavEntries`.
5
+ */
6
+ name: string;
7
+ /**
8
+ * Fully resolved href — every `:param` already substituted. See
9
+ * {@link SettingsNav} for why this component refuses to resolve them itself.
10
+ */
11
+ href: string;
12
+ label: ReactNode;
13
+ icon?: ReactNode;
14
+ /**
15
+ * Heading this entry sits under. Entries with no group render first, in a
16
+ * block of their own, without a heading.
17
+ */
18
+ group?: string;
19
+ /**
20
+ * The current route is on or under this entry.
21
+ */
22
+ active: boolean;
23
+ /**
24
+ * Visible but not reachable — rendered muted and inert rather than hidden,
25
+ * so the entry can explain a capability the viewer does not currently have.
26
+ */
27
+ disabled?: boolean;
28
+ }
29
+ export interface SettingsNavProps {
30
+ /**
31
+ * Entries in final display order. Grouping preserves first appearance, so
32
+ * sort before passing — `useNavEntries` already returns them sorted by
33
+ * group order then item order.
34
+ */
35
+ items: SettingsNavItem[];
36
+ /**
37
+ * Entry height, matching `SidebarMenuButton`'s own sizes: `sm` is `h-7` with
38
+ * `text-xs`, `default` is `h-8` with `text-sm`.
39
+ *
40
+ * @default "sm"
41
+ */
42
+ size?: "sm" | "default";
43
+ className?: string;
44
+ }
45
+ /**
46
+ * The left-hand rail of a settings page: a sticky, grouped list of links.
47
+ *
48
+ * ⚠️ **It takes resolved `items`, not a `root` route name, and that is the
49
+ * whole design.** Deriving entries internally from `useNavEntries({ root })`
50
+ * would be a smaller API and works fine for a static subtree such as
51
+ * `/account/*` — but `NavEntry.href` is `page.match`, the raw route
52
+ * *pattern*. Point it at a parameterised subtree like
53
+ * `/:projectSlug/settings/...` and every href in the rail comes out
54
+ * containing a literal `:projectSlug`, which is a dead link that renders
55
+ * perfectly.
56
+ *
57
+ * So resolution is the caller's job and presentation is this component's. A
58
+ * static subtree passes `useNavEntries({ root: "account" })` straight through
59
+ * ({@link SettingsNavItem} is structurally a subset of `NavEntry`, so no
60
+ * mapping is needed); a parameterised one passes its own
61
+ * `router.path(name, { params })` list.
62
+ *
63
+ * ### Why this is not built out of `SidebarMenuButton`
64
+ *
65
+ * It reads like the obvious reuse — this rail is a small sidebar, and the
66
+ * sizes and metrics below are deliberately `SidebarMenuButton`'s, so the two
67
+ * look like one family. But the component itself cannot be mounted here:
68
+ *
69
+ * - `SidebarMenuButton` calls `useSidebar()`, which **throws** outside a
70
+ * `SidebarProvider`. Nothing about a static rail needs that provider — it
71
+ * exists to hold collapse state — and mounting one to get a button also
72
+ * registers a global ⌘B handler and starts writing the sidebar cookie. On a
73
+ * page that already sits inside `AppShell` that is a *second* provider, so
74
+ * ⌘B would toggle the wrong sidebar.
75
+ * - Making `useSidebar` tolerate a missing provider, or exporting the button's
76
+ * `cva` to share it, both mean editing `components/ui/sidebar.tsx` — which
77
+ * `yarn w @alepha/ui sync` overwrites wholesale from the upstream registry.
78
+ * The patch would vanish on the next refresh, silently.
79
+ *
80
+ * So the metrics are shared by being written the same, and the coupling is
81
+ * not. If the sizes below ever drift from `sidebarMenuButtonVariants`, that is
82
+ * the thing to re-align.
83
+ */
84
+ export declare const SettingsNav: (props: SettingsNavProps) => import("react").JSX.Element;
85
+ //# sourceMappingURL=settings-nav.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-nav.d.ts","sourceRoot":"","sources":["../../../src/components/settings/settings-nav.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAEhD,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,KAAK,EAAE,eAAe,EAAE,CAAC;IAEzB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAExB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,WAAW,UAAW,gBAAgB,gCAwFlD,CAAC"}
@@ -0,0 +1,91 @@
1
+ import { cn } from "../../lib/utils.js";
2
+ import { useMemo } from "react";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { Link } from "alepha/react/router";
5
+ //#region src/components/settings/settings-nav.tsx
6
+ /**
7
+ * The left-hand rail of a settings page: a sticky, grouped list of links.
8
+ *
9
+ * ⚠️ **It takes resolved `items`, not a `root` route name, and that is the
10
+ * whole design.** Deriving entries internally from `useNavEntries({ root })`
11
+ * would be a smaller API and works fine for a static subtree such as
12
+ * `/account/*` — but `NavEntry.href` is `page.match`, the raw route
13
+ * *pattern*. Point it at a parameterised subtree like
14
+ * `/:projectSlug/settings/...` and every href in the rail comes out
15
+ * containing a literal `:projectSlug`, which is a dead link that renders
16
+ * perfectly.
17
+ *
18
+ * So resolution is the caller's job and presentation is this component's. A
19
+ * static subtree passes `useNavEntries({ root: "account" })` straight through
20
+ * ({@link SettingsNavItem} is structurally a subset of `NavEntry`, so no
21
+ * mapping is needed); a parameterised one passes its own
22
+ * `router.path(name, { params })` list.
23
+ *
24
+ * ### Why this is not built out of `SidebarMenuButton`
25
+ *
26
+ * It reads like the obvious reuse — this rail is a small sidebar, and the
27
+ * sizes and metrics below are deliberately `SidebarMenuButton`'s, so the two
28
+ * look like one family. But the component itself cannot be mounted here:
29
+ *
30
+ * - `SidebarMenuButton` calls `useSidebar()`, which **throws** outside a
31
+ * `SidebarProvider`. Nothing about a static rail needs that provider — it
32
+ * exists to hold collapse state — and mounting one to get a button also
33
+ * registers a global ⌘B handler and starts writing the sidebar cookie. On a
34
+ * page that already sits inside `AppShell` that is a *second* provider, so
35
+ * ⌘B would toggle the wrong sidebar.
36
+ * - Making `useSidebar` tolerate a missing provider, or exporting the button's
37
+ * `cva` to share it, both mean editing `components/ui/sidebar.tsx` — which
38
+ * `yarn w @alepha/ui sync` overwrites wholesale from the upstream registry.
39
+ * The patch would vanish on the next refresh, silently.
40
+ *
41
+ * So the metrics are shared by being written the same, and the coupling is
42
+ * not. If the sizes below ever drift from `sidebarMenuButtonVariants`, that is
43
+ * the thing to re-align.
44
+ */
45
+ const SettingsNav = (props) => {
46
+ const entry = cn("flex items-center gap-2 rounded-md px-2 text-left whitespace-nowrap [&_svg]:size-4 [&_svg]:shrink-0", (props.size ?? "sm") === "sm" ? "h-7 text-xs" : "h-8 text-sm");
47
+ const groups = useMemo(() => {
48
+ const ordered = [];
49
+ const byKey = /* @__PURE__ */ new Map();
50
+ for (const item of props.items) {
51
+ const key = item.group ?? "";
52
+ let bucket = byKey.get(key);
53
+ if (!bucket) {
54
+ bucket = [];
55
+ byKey.set(key, bucket);
56
+ ordered.push({
57
+ key,
58
+ label: item.group
59
+ });
60
+ }
61
+ bucket.push(item);
62
+ }
63
+ return ordered.map((g) => ({
64
+ ...g,
65
+ items: byKey.get(g.key) ?? []
66
+ }));
67
+ }, [props.items]);
68
+ return /* @__PURE__ */ jsx("nav", {
69
+ className: cn("flex shrink-0 flex-col gap-4 md:sticky md:top-0 md:w-48 md:self-start", props.className),
70
+ children: groups.map((group) => /* @__PURE__ */ jsxs("div", {
71
+ className: "flex flex-col gap-0.5",
72
+ children: [group.label ? /* @__PURE__ */ jsx("span", {
73
+ className: "text-muted-foreground px-2 text-[11px] font-semibold tracking-wider uppercase",
74
+ children: group.label
75
+ }) : null, group.items.map((item) => item.disabled ? /* @__PURE__ */ jsxs("span", {
76
+ "aria-disabled": "true",
77
+ className: cn(entry, "text-muted-foreground/50"),
78
+ children: [item.icon, item.label]
79
+ }, item.name) : /* @__PURE__ */ jsxs(Link, {
80
+ href: item.href,
81
+ "aria-current": item.active ? "page" : void 0,
82
+ className: cn(entry, "transition-colors", item.active ? "bg-sidebar-accent text-sidebar-accent-foreground after:bg-sidebar-primary relative font-medium after:absolute after:top-1 after:bottom-1 after:left-0 after:w-[3px] after:rounded-full" : "text-muted-foreground hover:bg-muted/60"),
83
+ children: [item.icon, item.label]
84
+ }, item.name))]
85
+ }, group.key))
86
+ });
87
+ };
88
+ //#endregion
89
+ export { SettingsNav };
90
+
91
+ //# sourceMappingURL=settings-nav.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-nav.js","names":[],"sources":["../../../src/components/settings/settings-nav.tsx"],"sourcesContent":["import { cn } from \"@alepha/ui/lib/utils\";\nimport { Link } from \"alepha/react/router\";\nimport { type ReactNode, useMemo } from \"react\";\n\nexport interface SettingsNavItem {\n /**\n * Stable key. The route name when these come from `useNavEntries`.\n */\n name: string;\n\n /**\n * Fully resolved href — every `:param` already substituted. See\n * {@link SettingsNav} for why this component refuses to resolve them itself.\n */\n href: string;\n\n label: ReactNode;\n icon?: ReactNode;\n\n /**\n * Heading this entry sits under. Entries with no group render first, in a\n * block of their own, without a heading.\n */\n group?: string;\n\n /**\n * The current route is on or under this entry.\n */\n active: boolean;\n\n /**\n * Visible but not reachable — rendered muted and inert rather than hidden,\n * so the entry can explain a capability the viewer does not currently have.\n */\n disabled?: boolean;\n}\n\nexport interface SettingsNavProps {\n /**\n * Entries in final display order. Grouping preserves first appearance, so\n * sort before passing — `useNavEntries` already returns them sorted by\n * group order then item order.\n */\n items: SettingsNavItem[];\n\n /**\n * Entry height, matching `SidebarMenuButton`'s own sizes: `sm` is `h-7` with\n * `text-xs`, `default` is `h-8` with `text-sm`.\n *\n * @default \"sm\"\n */\n size?: \"sm\" | \"default\";\n\n className?: string;\n}\n\n/**\n * The left-hand rail of a settings page: a sticky, grouped list of links.\n *\n * ⚠️ **It takes resolved `items`, not a `root` route name, and that is the\n * whole design.** Deriving entries internally from `useNavEntries({ root })`\n * would be a smaller API and works fine for a static subtree such as\n * `/account/*` — but `NavEntry.href` is `page.match`, the raw route\n * *pattern*. Point it at a parameterised subtree like\n * `/:projectSlug/settings/...` and every href in the rail comes out\n * containing a literal `:projectSlug`, which is a dead link that renders\n * perfectly.\n *\n * So resolution is the caller's job and presentation is this component's. A\n * static subtree passes `useNavEntries({ root: \"account\" })` straight through\n * ({@link SettingsNavItem} is structurally a subset of `NavEntry`, so no\n * mapping is needed); a parameterised one passes its own\n * `router.path(name, { params })` list.\n *\n * ### Why this is not built out of `SidebarMenuButton`\n *\n * It reads like the obvious reuse — this rail is a small sidebar, and the\n * sizes and metrics below are deliberately `SidebarMenuButton`'s, so the two\n * look like one family. But the component itself cannot be mounted here:\n *\n * - `SidebarMenuButton` calls `useSidebar()`, which **throws** outside a\n * `SidebarProvider`. Nothing about a static rail needs that provider — it\n * exists to hold collapse state — and mounting one to get a button also\n * registers a global ⌘B handler and starts writing the sidebar cookie. On a\n * page that already sits inside `AppShell` that is a *second* provider, so\n * ⌘B would toggle the wrong sidebar.\n * - Making `useSidebar` tolerate a missing provider, or exporting the button's\n * `cva` to share it, both mean editing `components/ui/sidebar.tsx` — which\n * `yarn w @alepha/ui sync` overwrites wholesale from the upstream registry.\n * The patch would vanish on the next refresh, silently.\n *\n * So the metrics are shared by being written the same, and the coupling is\n * not. If the sizes below ever drift from `sidebarMenuButtonVariants`, that is\n * the thing to re-align.\n */\nexport const SettingsNav = (props: SettingsNavProps) => {\n const size = props.size ?? \"sm\";\n\n /*\n `[&_svg]:size-4` is load-bearing, not cosmetic: `useNavEntries` hands over\n `createElement(Icon)` with no className, and a bare lucide icon defaults to\n 24px — half again the height of the text it sits next to.\n */\n const entry = cn(\n \"flex items-center gap-2 rounded-md px-2 text-left whitespace-nowrap [&_svg]:size-4 [&_svg]:shrink-0\",\n size === \"sm\" ? \"h-7 text-xs\" : \"h-8 text-sm\",\n );\n\n const groups = useMemo(() => {\n const ordered: Array<{ key: string; label?: string }> = [];\n const byKey = new Map<string, SettingsNavItem[]>();\n\n for (const item of props.items) {\n const key = item.group ?? \"\";\n let bucket = byKey.get(key);\n if (!bucket) {\n bucket = [];\n byKey.set(key, bucket);\n ordered.push({ key, label: item.group });\n }\n bucket.push(item);\n }\n\n return ordered.map((g) => ({ ...g, items: byKey.get(g.key) ?? [] }));\n }, [props.items]);\n\n return (\n <nav\n className={cn(\n \"flex shrink-0 flex-col gap-4 md:sticky md:top-0 md:w-48 md:self-start\",\n props.className,\n )}\n >\n {groups.map((group) => (\n <div key={group.key} className=\"flex flex-col gap-0.5\">\n {group.label ? (\n // `px-2` matches the entries below, so the heading and the labels\n // it heads share a left edge.\n <span className=\"text-muted-foreground px-2 text-[11px] font-semibold tracking-wider uppercase\">\n {group.label}\n </span>\n ) : null}\n {group.items.map((item) =>\n item.disabled ? (\n <span\n key={item.name}\n aria-disabled=\"true\"\n className={cn(entry, \"text-muted-foreground/50\")}\n >\n {item.icon}\n {item.label}\n </span>\n ) : (\n <Link\n key={item.name}\n href={item.href}\n aria-current={item.active ? \"page\" : undefined}\n className={cn(\n entry,\n \"transition-colors\",\n item.active\n ? // Same active treatment as `SidebarMenuButton`: the\n // interaction-token fill plus a left bar, not a heavier\n // fill on its own. See the \"Sidebar active item\" block in\n // `styles.css` for why the bar is the part that carries\n // the state: `--sidebar-accent` is spent on hover too, so\n // fill alone renders the current page and the hovered row\n // as one merged shape. Written as utilities here because\n // that CSS keys off `[data-slot=\"sidebar-menu-button\"]`,\n // which this rail deliberately is not (see above).\n \"bg-sidebar-accent text-sidebar-accent-foreground after:bg-sidebar-primary relative font-medium after:absolute after:top-1 after:bottom-1 after:left-0 after:w-[3px] after:rounded-full\"\n : \"text-muted-foreground hover:bg-muted/60\",\n )}\n >\n {item.icon}\n {item.label}\n </Link>\n ),\n )}\n </div>\n ))}\n </nav>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+FA,MAAa,eAAe,UAA4B;CAQtD,MAAM,QAAQ,GACZ,wGARW,MAAM,QAAQ,UAShB,OAAO,gBAAgB,aAClC;CAEA,MAAM,SAAS,cAAc;EAC3B,MAAM,UAAkD,CAAC;EACzD,MAAM,wBAAQ,IAAI,IAA+B;EAEjD,KAAK,MAAM,QAAQ,MAAM,OAAO;GAC9B,MAAM,MAAM,KAAK,SAAS;GAC1B,IAAI,SAAS,MAAM,IAAI,GAAG;GAC1B,IAAI,CAAC,QAAQ;IACX,SAAS,CAAC;IACV,MAAM,IAAI,KAAK,MAAM;IACrB,QAAQ,KAAK;KAAE;KAAK,OAAO,KAAK;IAAM,CAAC;GACzC;GACA,OAAO,KAAK,IAAI;EAClB;EAEA,OAAO,QAAQ,KAAK,OAAO;GAAE,GAAG;GAAG,OAAO,MAAM,IAAI,EAAE,GAAG,KAAK,CAAC;EAAE,EAAE;CACrE,GAAG,CAAC,MAAM,KAAK,CAAC;CAEhB,OACE,oBAAC,OAAD;EACE,WAAW,GACT,yEACA,MAAM,SACR;EAEC,UAAA,OAAO,KAAK,UACX,qBAAC,OAAD;GAAqB,WAAU;GAA/B,UAAA,CACG,MAAM,QAGL,oBAAC,QAAD;IAAM,WAAU;IACb,UAAA,MAAM;GACH,CAAA,IACJ,MACH,MAAM,MAAM,KAAK,SAChB,KAAK,WACH,qBAAC,QAAD;IAEE,iBAAc;IACd,WAAW,GAAG,OAAO,0BAA0B;IAHjD,UAAA,CAKG,KAAK,MACL,KAAK,KACF;GANC,GAAA,KAAK,IAMN,IAEN,qBAAC,MAAD;IAEE,MAAM,KAAK;IACX,gBAAc,KAAK,SAAS,SAAS,KAAA;IACrC,WAAW,GACT,OACA,qBACA,KAAK,SAUD,2LACA,yCACN;IAnBF,UAAA,CAqBG,KAAK,MACL,KAAK,KACF;GAtBC,GAAA,KAAK,IAsBN,CAEV,CACG;EA7CK,GAAA,MAAM,GA6CX,CACN;CACE,CAAA;AAET"}
@@ -0,0 +1,45 @@
1
+ import type { ReactNode } from "react";
2
+ export interface SettingsRowProps {
3
+ /**
4
+ * What the row is about. Rendered as the emphasised left-hand text.
5
+ */
6
+ label: ReactNode;
7
+ /**
8
+ * One line of explanation under the label. Omit when the label says it all
9
+ * — an empty helper line is worse than none.
10
+ */
11
+ description?: ReactNode;
12
+ /**
13
+ * `id` of the form control this row labels. Set it whenever `children` is an
14
+ * input: the label then renders as a real `<label htmlFor>` rather than a
15
+ * `<span>`, which is what gives the control an accessible name and makes
16
+ * clicking the label focus it.
17
+ *
18
+ * Without it the row is a `<span>` — correct for a row whose control is a
19
+ * button or a read-only value, where the button carries its own name and a
20
+ * `<label>` pointing at nothing would be worse than none.
21
+ */
22
+ htmlFor?: string;
23
+ /**
24
+ * The control this row exists for: a button, a switch, a badge, a value.
25
+ * Sits right of the label on `sm` and up, and underneath it below that.
26
+ */
27
+ children?: ReactNode;
28
+ className?: string;
29
+ }
30
+ /**
31
+ * One line of a settings card: label and optional help on the left, a single
32
+ * control on the right.
33
+ *
34
+ * The grid is `minmax(0,1fr) auto`, not `justify-between`. The difference
35
+ * matters when the label is long: `minmax(0,…)` lets the text column shrink
36
+ * and wrap, where a flex row would let it push the control off the card. It
37
+ * collapses to a stacked `flex-col` below `sm`, because a button crushed into
38
+ * a 90px column is worse than a button on its own line.
39
+ *
40
+ * Rows carry all the vertical padding (`py-3`) and {@link SettingsSection}'s
41
+ * card carries none (`py-0`) — see that component for why the two must not
42
+ * both have it.
43
+ */
44
+ export declare const SettingsRow: (props: SettingsRowProps) => import("react").JSX.Element;
45
+ //# sourceMappingURL=settings-row.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-row.d.ts","sourceRoot":"","sources":["../../../src/components/settings/settings-row.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IAEjB;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,WAAW,UAAW,gBAAgB,gCA6BlD,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { cn } from "../../lib/utils.js";
2
+ import { CardContent } from "../ui/card.js";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ //#region src/components/settings/settings-row.tsx
5
+ /**
6
+ * One line of a settings card: label and optional help on the left, a single
7
+ * control on the right.
8
+ *
9
+ * The grid is `minmax(0,1fr) auto`, not `justify-between`. The difference
10
+ * matters when the label is long: `minmax(0,…)` lets the text column shrink
11
+ * and wrap, where a flex row would let it push the control off the card. It
12
+ * collapses to a stacked `flex-col` below `sm`, because a button crushed into
13
+ * a 90px column is worse than a button on its own line.
14
+ *
15
+ * Rows carry all the vertical padding (`py-3`) and {@link SettingsSection}'s
16
+ * card carries none (`py-0`) — see that component for why the two must not
17
+ * both have it.
18
+ */
19
+ const SettingsRow = (props) => {
20
+ return /* @__PURE__ */ jsxs(CardContent, {
21
+ className: cn("flex flex-col gap-3 px-4 py-3 sm:grid sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center sm:gap-6", props.className),
22
+ children: [/* @__PURE__ */ jsxs("div", {
23
+ className: "flex flex-col gap-0.5",
24
+ children: [props.htmlFor ? /* @__PURE__ */ jsx("label", {
25
+ htmlFor: props.htmlFor,
26
+ className: "text-sm font-medium",
27
+ children: props.label
28
+ }) : /* @__PURE__ */ jsx("span", {
29
+ className: "text-sm font-medium",
30
+ children: props.label
31
+ }), props.description ? /* @__PURE__ */ jsx("span", {
32
+ className: "text-muted-foreground text-xs",
33
+ children: props.description
34
+ }) : null]
35
+ }), props.children ? /* @__PURE__ */ jsx("div", {
36
+ className: "flex justify-start sm:justify-end",
37
+ children: props.children
38
+ }) : null]
39
+ });
40
+ };
41
+ //#endregion
42
+ export { SettingsRow };
43
+
44
+ //# sourceMappingURL=settings-row.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-row.js","names":[],"sources":["../../../src/components/settings/settings-row.tsx"],"sourcesContent":["import { CardContent } from \"@alepha/ui/components/ui/card\";\nimport { cn } from \"@alepha/ui/lib/utils\";\nimport type { ReactNode } from \"react\";\n\nexport interface SettingsRowProps {\n /**\n * What the row is about. Rendered as the emphasised left-hand text.\n */\n label: ReactNode;\n\n /**\n * One line of explanation under the label. Omit when the label says it all\n * — an empty helper line is worse than none.\n */\n description?: ReactNode;\n\n /**\n * `id` of the form control this row labels. Set it whenever `children` is an\n * input: the label then renders as a real `<label htmlFor>` rather than a\n * `<span>`, which is what gives the control an accessible name and makes\n * clicking the label focus it.\n *\n * Without it the row is a `<span>` — correct for a row whose control is a\n * button or a read-only value, where the button carries its own name and a\n * `<label>` pointing at nothing would be worse than none.\n */\n htmlFor?: string;\n\n /**\n * The control this row exists for: a button, a switch, a badge, a value.\n * Sits right of the label on `sm` and up, and underneath it below that.\n */\n children?: ReactNode;\n\n className?: string;\n}\n\n/**\n * One line of a settings card: label and optional help on the left, a single\n * control on the right.\n *\n * The grid is `minmax(0,1fr) auto`, not `justify-between`. The difference\n * matters when the label is long: `minmax(0,…)` lets the text column shrink\n * and wrap, where a flex row would let it push the control off the card. It\n * collapses to a stacked `flex-col` below `sm`, because a button crushed into\n * a 90px column is worse than a button on its own line.\n *\n * Rows carry all the vertical padding (`py-3`) and {@link SettingsSection}'s\n * card carries none (`py-0`) — see that component for why the two must not\n * both have it.\n */\nexport const SettingsRow = (props: SettingsRowProps) => {\n return (\n <CardContent\n className={cn(\n \"flex flex-col gap-3 px-4 py-3 sm:grid sm:grid-cols-[minmax(0,1fr)_auto] sm:items-center sm:gap-6\",\n props.className,\n )}\n >\n <div className=\"flex flex-col gap-0.5\">\n {props.htmlFor ? (\n <label htmlFor={props.htmlFor} className=\"text-sm font-medium\">\n {props.label}\n </label>\n ) : (\n <span className=\"text-sm font-medium\">{props.label}</span>\n )}\n {props.description ? (\n <span className=\"text-muted-foreground text-xs\">\n {props.description}\n </span>\n ) : null}\n </div>\n {props.children ? (\n <div className=\"flex justify-start sm:justify-end\">\n {props.children}\n </div>\n ) : null}\n </CardContent>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAmDA,MAAa,eAAe,UAA4B;CACtD,OACE,qBAAC,aAAD;EACE,WAAW,GACT,oGACA,MAAM,SACR;EAJF,UAAA,CAME,qBAAC,OAAD;GAAK,WAAU;GAAf,UAAA,CACG,MAAM,UACL,oBAAC,SAAD;IAAO,SAAS,MAAM;IAAS,WAAU;IACtC,UAAA,MAAM;GACF,CAAA,IAEP,oBAAC,QAAD;IAAM,WAAU;IAAuB,UAAA,MAAM;GAAY,CAAA,GAE1D,MAAM,cACL,oBAAC,QAAD;IAAM,WAAU;IACb,UAAA,MAAM;GACH,CAAA,IACJ,IACD;EACJ,CAAA,GAAA,MAAM,WACL,oBAAC,OAAD;GAAK,WAAU;GACZ,UAAA,MAAM;EACJ,CAAA,IACH,IACO;;AAEjB"}
@@ -0,0 +1,36 @@
1
+ import type { ReactNode } from "react";
2
+ export interface SettingsSectionProps {
3
+ /**
4
+ * Heading above the card. Optional — a page whose first section needs no
5
+ * heading (because the page title already says it) omits it.
6
+ */
7
+ title?: ReactNode;
8
+ /**
9
+ * One line under the title, for context the rows themselves should not
10
+ * each repeat.
11
+ */
12
+ description?: ReactNode;
13
+ /**
14
+ * {@link SettingsRow}s. Anything else works too, but the divider and the
15
+ * padding contract below assume rows.
16
+ */
17
+ children: ReactNode;
18
+ className?: string;
19
+ }
20
+ /**
21
+ * A titled group of settings rows in one bordered card — the GitHub-settings
22
+ * shape.
23
+ *
24
+ * ⚠️ **The card is `py-0` and that is deliberate.** `Card` ships its own
25
+ * vertical padding (`py-(--card-spacing)`), and every {@link SettingsRow}
26
+ * brings `py-3`. Leave both on and the two stack into a visibly thick blank
27
+ * band at the top and bottom of the card. `py-0` opts the card out so each
28
+ * row's own padding is the only vertical space, which is also what makes
29
+ * `divide-y` land flush between rows.
30
+ *
31
+ * The rule is one or the other, never both — so do **not** "fix" this to a
32
+ * numeric `py-4` / `py-3`. Several pages in `apps/lore`'s project settings did
33
+ * exactly that and they are the ones that look wrong next to these.
34
+ */
35
+ export declare const SettingsSection: (props: SettingsSectionProps) => import("react").JSX.Element;
36
+ //# sourceMappingURL=settings-section.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-section.d.ts","sourceRoot":"","sources":["../../../src/components/settings/settings-section.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,UAAW,oBAAoB,gCAS1D,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { cn } from "../../lib/utils.js";
2
+ import { Card } from "../ui/card.js";
3
+ import { settingsCardEdge } from "./settings-card-edge.js";
4
+ import { SettingsHeading } from "./settings-heading.js";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ //#region src/components/settings/settings-section.tsx
7
+ /**
8
+ * A titled group of settings rows in one bordered card — the GitHub-settings
9
+ * shape.
10
+ *
11
+ * ⚠️ **The card is `py-0` and that is deliberate.** `Card` ships its own
12
+ * vertical padding (`py-(--card-spacing)`), and every {@link SettingsRow}
13
+ * brings `py-3`. Leave both on and the two stack into a visibly thick blank
14
+ * band at the top and bottom of the card. `py-0` opts the card out so each
15
+ * row's own padding is the only vertical space, which is also what makes
16
+ * `divide-y` land flush between rows.
17
+ *
18
+ * The rule is one or the other, never both — so do **not** "fix" this to a
19
+ * numeric `py-4` / `py-3`. Several pages in `apps/lore`'s project settings did
20
+ * exactly that and they are the ones that look wrong next to these.
21
+ */
22
+ const SettingsSection = (props) => {
23
+ return /* @__PURE__ */ jsxs("div", {
24
+ className: cn("flex flex-col gap-2", props.className),
25
+ children: [/* @__PURE__ */ jsx(SettingsHeading, {
26
+ title: props.title,
27
+ description: props.description
28
+ }), /* @__PURE__ */ jsx(Card, {
29
+ className: cn(settingsCardEdge, "gap-0 divide-y py-0"),
30
+ children: props.children
31
+ })]
32
+ });
33
+ };
34
+ //#endregion
35
+ export { SettingsSection };
36
+
37
+ //# sourceMappingURL=settings-section.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings-section.js","names":[],"sources":["../../../src/components/settings/settings-section.tsx"],"sourcesContent":["import { settingsCardEdge } from \"@alepha/ui/components/settings/settings-card-edge.ts\";\nimport { SettingsHeading } from \"@alepha/ui/components/settings/settings-heading\";\nimport { Card } from \"@alepha/ui/components/ui/card\";\nimport { cn } from \"@alepha/ui/lib/utils\";\nimport type { ReactNode } from \"react\";\n\nexport interface SettingsSectionProps {\n /**\n * Heading above the card. Optional — a page whose first section needs no\n * heading (because the page title already says it) omits it.\n */\n title?: ReactNode;\n\n /**\n * One line under the title, for context the rows themselves should not\n * each repeat.\n */\n description?: ReactNode;\n\n /**\n * {@link SettingsRow}s. Anything else works too, but the divider and the\n * padding contract below assume rows.\n */\n children: ReactNode;\n\n className?: string;\n}\n\n/**\n * A titled group of settings rows in one bordered card — the GitHub-settings\n * shape.\n *\n * ⚠️ **The card is `py-0` and that is deliberate.** `Card` ships its own\n * vertical padding (`py-(--card-spacing)`), and every {@link SettingsRow}\n * brings `py-3`. Leave both on and the two stack into a visibly thick blank\n * band at the top and bottom of the card. `py-0` opts the card out so each\n * row's own padding is the only vertical space, which is also what makes\n * `divide-y` land flush between rows.\n *\n * The rule is one or the other, never both — so do **not** \"fix\" this to a\n * numeric `py-4` / `py-3`. Several pages in `apps/lore`'s project settings did\n * exactly that and they are the ones that look wrong next to these.\n */\nexport const SettingsSection = (props: SettingsSectionProps) => {\n return (\n <div className={cn(\"flex flex-col gap-2\", props.className)}>\n <SettingsHeading title={props.title} description={props.description} />\n <Card className={cn(settingsCardEdge, \"gap-0 divide-y py-0\")}>\n {props.children}\n </Card>\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA2CA,MAAa,mBAAmB,UAAgC;CAC9D,OACE,qBAAC,OAAD;EAAK,WAAW,GAAG,uBAAuB,MAAM,SAAS;EAAzD,UAAA,CACE,oBAAC,iBAAD;GAAiB,OAAO,MAAM;GAAO,aAAa,MAAM;EAAc,CAAA,GACtE,oBAAC,MAAD;GAAM,WAAW,GAAG,kBAAkB,qBAAqB;GACxD,UAAA,MAAM;EACH,CAAA,CACH;;AAET"}
@@ -0,0 +1,7 @@
1
+ import { Accordion as AccordionPrimitive } from "@base-ui/react/accordion";
2
+ declare function Accordion({ className, ...props }: AccordionPrimitive.Root.Props): import("react").JSX.Element;
3
+ declare function AccordionItem({ className, ...props }: AccordionPrimitive.Item.Props): import("react").JSX.Element;
4
+ declare function AccordionTrigger({ className, children, ...props }: AccordionPrimitive.Trigger.Props): import("react").JSX.Element;
5
+ declare function AccordionContent({ className, children, ...props }: AccordionPrimitive.Panel.Props): import("react").JSX.Element;
6
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
7
+ //# sourceMappingURL=accordion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/components/ui/accordion.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAG3E,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,CAAC,IAAI,CAAC,KAAK,+BAQxE;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,CAAC,IAAI,CAAC,KAAK,+BAQ5E;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,CAAC,OAAO,CAAC,KAAK,+BAuBlC;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,CAAC,KAAK,CAAC,KAAK,+BAiBhC;AAED,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,aAAa,EAAE,gBAAgB,EAAE,CAAC"}