@marismoon/ui 0.0.0-stage → 0.1.0-next.1

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 (453) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +26 -2
  3. package/THIRD_PARTY_NOTICES.md +50 -0
  4. package/dist/components/icons/app-icon.d.ts +14 -0
  5. package/dist/components/icons/app-icon.js +30 -0
  6. package/dist/components/icons/icon-placeholder.d.ts +134 -0
  7. package/dist/components/icons/icon-placeholder.js +240 -0
  8. package/dist/components/icons/icon-variants.d.ts +2 -0
  9. package/dist/components/icons/icon-variants.js +68 -0
  10. package/dist/components/icons/index.d.ts +117 -0
  11. package/dist/components/icons/index.js +118 -0
  12. package/dist/components/icons/solar/add-circle-linear.d.ts +2 -0
  13. package/dist/components/icons/solar/add-circle-linear.js +27 -0
  14. package/dist/components/icons/solar/add-folder-linear.d.ts +2 -0
  15. package/dist/components/icons/solar/add-folder-linear.js +21 -0
  16. package/dist/components/icons/solar/alt-arrow-down-linear.d.ts +2 -0
  17. package/dist/components/icons/solar/alt-arrow-down-linear.js +22 -0
  18. package/dist/components/icons/solar/alt-arrow-left-linear.d.ts +2 -0
  19. package/dist/components/icons/solar/alt-arrow-left-linear.js +22 -0
  20. package/dist/components/icons/solar/alt-arrow-right-linear.d.ts +2 -0
  21. package/dist/components/icons/solar/alt-arrow-right-linear.js +22 -0
  22. package/dist/components/icons/solar/alt-arrow-up-linear.d.ts +2 -0
  23. package/dist/components/icons/solar/alt-arrow-up-linear.js +22 -0
  24. package/dist/components/icons/solar/archive-linear.d.ts +2 -0
  25. package/dist/components/icons/solar/archive-linear.js +25 -0
  26. package/dist/components/icons/solar/arrow-down-linear.d.ts +2 -0
  27. package/dist/components/icons/solar/arrow-down-linear.js +22 -0
  28. package/dist/components/icons/solar/arrow-left-linear.d.ts +2 -0
  29. package/dist/components/icons/solar/arrow-left-linear.js +22 -0
  30. package/dist/components/icons/solar/arrow-right-linear.d.ts +2 -0
  31. package/dist/components/icons/solar/arrow-right-linear.js +22 -0
  32. package/dist/components/icons/solar/arrow-right-up-linear.d.ts +2 -0
  33. package/dist/components/icons/solar/arrow-right-up-linear.js +22 -0
  34. package/dist/components/icons/solar/arrow-up-linear.d.ts +2 -0
  35. package/dist/components/icons/solar/arrow-up-linear.js +22 -0
  36. package/dist/components/icons/solar/bell-bold.d.ts +2 -0
  37. package/dist/components/icons/solar/bell-bold.js +20 -0
  38. package/dist/components/icons/solar/bell-linear.d.ts +2 -0
  39. package/dist/components/icons/solar/bell-linear.js +23 -0
  40. package/dist/components/icons/solar/bill-list-bold.d.ts +2 -0
  41. package/dist/components/icons/solar/bill-list-bold.js +19 -0
  42. package/dist/components/icons/solar/bill-list-linear.d.ts +2 -0
  43. package/dist/components/icons/solar/bill-list-linear.js +23 -0
  44. package/dist/components/icons/solar/bluetooth-linear.d.ts +2 -0
  45. package/dist/components/icons/solar/bluetooth-linear.js +26 -0
  46. package/dist/components/icons/solar/book-linear.d.ts +2 -0
  47. package/dist/components/icons/solar/book-linear.js +26 -0
  48. package/dist/components/icons/solar/bookmark-linear.d.ts +2 -0
  49. package/dist/components/icons/solar/bookmark-linear.js +21 -0
  50. package/dist/components/icons/solar/brain-linear.d.ts +2 -0
  51. package/dist/components/icons/solar/brain-linear.js +25 -0
  52. package/dist/components/icons/solar/branching-paths-up-linear.d.ts +2 -0
  53. package/dist/components/icons/solar/branching-paths-up-linear.js +33 -0
  54. package/dist/components/icons/solar/buildings-2-linear.d.ts +2 -0
  55. package/dist/components/icons/solar/buildings-2-linear.js +31 -0
  56. package/dist/components/icons/solar/calculator-linear.d.ts +2 -0
  57. package/dist/components/icons/solar/calculator-linear.js +32 -0
  58. package/dist/components/icons/solar/calendar-linear.d.ts +2 -0
  59. package/dist/components/icons/solar/calendar-linear.js +50 -0
  60. package/dist/components/icons/solar/card-bold.d.ts +2 -0
  61. package/dist/components/icons/solar/card-bold.js +22 -0
  62. package/dist/components/icons/solar/card-linear.d.ts +2 -0
  63. package/dist/components/icons/solar/card-linear.js +23 -0
  64. package/dist/components/icons/solar/chart-2-bold.d.ts +2 -0
  65. package/dist/components/icons/solar/chart-2-bold.js +31 -0
  66. package/dist/components/icons/solar/chart-2-linear.d.ts +2 -0
  67. package/dist/components/icons/solar/chart-2-linear.js +24 -0
  68. package/dist/components/icons/solar/chart-square-bold.d.ts +2 -0
  69. package/dist/components/icons/solar/chart-square-bold.js +19 -0
  70. package/dist/components/icons/solar/chart-square-linear.d.ts +2 -0
  71. package/dist/components/icons/solar/chart-square-linear.js +23 -0
  72. package/dist/components/icons/solar/chat-square-linear.d.ts +2 -0
  73. package/dist/components/icons/solar/chat-square-linear.js +21 -0
  74. package/dist/components/icons/solar/check-circle-linear.d.ts +2 -0
  75. package/dist/components/icons/solar/check-circle-linear.js +28 -0
  76. package/dist/components/icons/solar/check-mark-linear.d.ts +2 -0
  77. package/dist/components/icons/solar/check-mark-linear.js +22 -0
  78. package/dist/components/icons/solar/clipboard-linear.d.ts +2 -0
  79. package/dist/components/icons/solar/clipboard-linear.js +27 -0
  80. package/dist/components/icons/solar/clock-circle-bold.d.ts +2 -0
  81. package/dist/components/icons/solar/clock-circle-bold.js +19 -0
  82. package/dist/components/icons/solar/clock-circle-linear.d.ts +2 -0
  83. package/dist/components/icons/solar/clock-circle-linear.js +28 -0
  84. package/dist/components/icons/solar/close-circle-linear.d.ts +2 -0
  85. package/dist/components/icons/solar/close-circle-linear.js +27 -0
  86. package/dist/components/icons/solar/close-linear.d.ts +2 -0
  87. package/dist/components/icons/solar/close-linear.js +21 -0
  88. package/dist/components/icons/solar/cloud-bold.d.ts +2 -0
  89. package/dist/components/icons/solar/cloud-bold.js +17 -0
  90. package/dist/components/icons/solar/cloud-linear.d.ts +2 -0
  91. package/dist/components/icons/solar/cloud-linear.js +21 -0
  92. package/dist/components/icons/solar/code-linear.d.ts +2 -0
  93. package/dist/components/icons/solar/code-linear.js +25 -0
  94. package/dist/components/icons/solar/code-square-linear.d.ts +2 -0
  95. package/dist/components/icons/solar/code-square-linear.js +26 -0
  96. package/dist/components/icons/solar/copy-linear.d.ts +2 -0
  97. package/dist/components/icons/solar/copy-linear.js +20 -0
  98. package/dist/components/icons/solar/danger-circle-linear.d.ts +2 -0
  99. package/dist/components/icons/solar/danger-circle-linear.js +30 -0
  100. package/dist/components/icons/solar/danger-triangle-linear.d.ts +2 -0
  101. package/dist/components/icons/solar/danger-triangle-linear.js +36 -0
  102. package/dist/components/icons/solar/diskette-linear.d.ts +2 -0
  103. package/dist/components/icons/solar/diskette-linear.js +25 -0
  104. package/dist/components/icons/solar/dislike-linear.d.ts +2 -0
  105. package/dist/components/icons/solar/dislike-linear.js +28 -0
  106. package/dist/components/icons/solar/document-text-bold.d.ts +2 -0
  107. package/dist/components/icons/solar/document-text-bold.js +19 -0
  108. package/dist/components/icons/solar/document-text-linear.d.ts +2 -0
  109. package/dist/components/icons/solar/document-text-linear.js +23 -0
  110. package/dist/components/icons/solar/download-linear.d.ts +2 -0
  111. package/dist/components/icons/solar/download-linear.js +24 -0
  112. package/dist/components/icons/solar/eye-bold.d.ts +2 -0
  113. package/dist/components/icons/solar/eye-bold.js +19 -0
  114. package/dist/components/icons/solar/eye-closed-linear.d.ts +2 -0
  115. package/dist/components/icons/solar/eye-closed-linear.js +21 -0
  116. package/dist/components/icons/solar/eye-linear.d.ts +2 -0
  117. package/dist/components/icons/solar/eye-linear.js +20 -0
  118. package/dist/components/icons/solar/file-code-linear.d.ts +2 -0
  119. package/dist/components/icons/solar/file-code-linear.js +31 -0
  120. package/dist/components/icons/solar/file-linear.d.ts +2 -0
  121. package/dist/components/icons/solar/file-linear.js +24 -0
  122. package/dist/components/icons/solar/file-text-linear.d.ts +2 -0
  123. package/dist/components/icons/solar/file-text-linear.js +34 -0
  124. package/dist/components/icons/solar/folder-bold.d.ts +2 -0
  125. package/dist/components/icons/solar/folder-bold.js +19 -0
  126. package/dist/components/icons/solar/folder-linear.d.ts +2 -0
  127. package/dist/components/icons/solar/folder-linear.js +23 -0
  128. package/dist/components/icons/solar/gallery-linear.d.ts +2 -0
  129. package/dist/components/icons/solar/gallery-linear.js +29 -0
  130. package/dist/components/icons/solar/global-linear.d.ts +2 -0
  131. package/dist/components/icons/solar/global-linear.js +25 -0
  132. package/dist/components/icons/solar/graph-linear.d.ts +2 -0
  133. package/dist/components/icons/solar/graph-linear.js +21 -0
  134. package/dist/components/icons/solar/graph-up-linear.d.ts +2 -0
  135. package/dist/components/icons/solar/graph-up-linear.js +24 -0
  136. package/dist/components/icons/solar/heart-linear.d.ts +2 -0
  137. package/dist/components/icons/solar/heart-linear.js +22 -0
  138. package/dist/components/icons/solar/home-2-linear.d.ts +2 -0
  139. package/dist/components/icons/solar/home-2-linear.js +21 -0
  140. package/dist/components/icons/solar/home-smile-angle-bold.d.ts +2 -0
  141. package/dist/components/icons/solar/home-smile-angle-bold.js +19 -0
  142. package/dist/components/icons/solar/home-smile-angle-linear.d.ts +2 -0
  143. package/dist/components/icons/solar/home-smile-angle-linear.js +21 -0
  144. package/dist/components/icons/solar/inbox-linear.d.ts +2 -0
  145. package/dist/components/icons/solar/inbox-linear.js +23 -0
  146. package/dist/components/icons/solar/info-circle-linear.d.ts +2 -0
  147. package/dist/components/icons/solar/info-circle-linear.js +30 -0
  148. package/dist/components/icons/solar/letter-bold.d.ts +2 -0
  149. package/dist/components/icons/solar/letter-bold.js +19 -0
  150. package/dist/components/icons/solar/letter-linear.d.ts +2 -0
  151. package/dist/components/icons/solar/letter-linear.js +23 -0
  152. package/dist/components/icons/solar/like-linear.d.ts +2 -0
  153. package/dist/components/icons/solar/like-linear.js +28 -0
  154. package/dist/components/icons/solar/link-linear.d.ts +2 -0
  155. package/dist/components/icons/solar/link-linear.js +21 -0
  156. package/dist/components/icons/solar/list-linear.d.ts +2 -0
  157. package/dist/components/icons/solar/list-linear.js +25 -0
  158. package/dist/components/icons/solar/logout-2-linear.d.ts +2 -0
  159. package/dist/components/icons/solar/logout-2-linear.js +24 -0
  160. package/dist/components/icons/solar/magnifer-linear.d.ts +2 -0
  161. package/dist/components/icons/solar/magnifer-linear.js +27 -0
  162. package/dist/components/icons/solar/magnifier-zoom-in-linear.d.ts +2 -0
  163. package/dist/components/icons/solar/magnifier-zoom-in-linear.js +29 -0
  164. package/dist/components/icons/solar/magnifier-zoom-out-linear.d.ts +2 -0
  165. package/dist/components/icons/solar/magnifier-zoom-out-linear.js +29 -0
  166. package/dist/components/icons/solar/maximize-square-minimalistic-linear.d.ts +2 -0
  167. package/dist/components/icons/solar/maximize-square-minimalistic-linear.js +24 -0
  168. package/dist/components/icons/solar/menu-dots-linear.d.ts +2 -0
  169. package/dist/components/icons/solar/menu-dots-linear.js +34 -0
  170. package/dist/components/icons/solar/microphone-linear.d.ts +2 -0
  171. package/dist/components/icons/solar/microphone-linear.js +27 -0
  172. package/dist/components/icons/solar/minimize-square-minimalistic-linear.d.ts +2 -0
  173. package/dist/components/icons/solar/minimize-square-minimalistic-linear.js +24 -0
  174. package/dist/components/icons/solar/minus-circle-linear.d.ts +2 -0
  175. package/dist/components/icons/solar/minus-circle-linear.js +26 -0
  176. package/dist/components/icons/solar/monitor-linear.d.ts +2 -0
  177. package/dist/components/icons/solar/monitor-linear.js +23 -0
  178. package/dist/components/icons/solar/moon-linear.d.ts +2 -0
  179. package/dist/components/icons/solar/moon-linear.js +16 -0
  180. package/dist/components/icons/solar/notebook-bold.d.ts +2 -0
  181. package/dist/components/icons/solar/notebook-bold.js +19 -0
  182. package/dist/components/icons/solar/notebook-linear.d.ts +2 -0
  183. package/dist/components/icons/solar/notebook-linear.js +23 -0
  184. package/dist/components/icons/solar/pallete-2-bold.d.ts +2 -0
  185. package/dist/components/icons/solar/pallete-2-bold.js +19 -0
  186. package/dist/components/icons/solar/pallete-2-linear.d.ts +2 -0
  187. package/dist/components/icons/solar/pallete-2-linear.js +62 -0
  188. package/dist/components/icons/solar/panel-left-close-linear.d.ts +2 -0
  189. package/dist/components/icons/solar/panel-left-close-linear.js +26 -0
  190. package/dist/components/icons/solar/panel-left-open-linear.d.ts +2 -0
  191. package/dist/components/icons/solar/panel-left-open-linear.js +26 -0
  192. package/dist/components/icons/solar/pen-linear.d.ts +2 -0
  193. package/dist/components/icons/solar/pen-linear.js +21 -0
  194. package/dist/components/icons/solar/pie-chart-2-linear.d.ts +2 -0
  195. package/dist/components/icons/solar/pie-chart-2-linear.js +21 -0
  196. package/dist/components/icons/solar/presentation-graph-linear.d.ts +2 -0
  197. package/dist/components/icons/solar/presentation-graph-linear.js +28 -0
  198. package/dist/components/icons/solar/pulse-linear.d.ts +2 -0
  199. package/dist/components/icons/solar/pulse-linear.js +21 -0
  200. package/dist/components/icons/solar/question-circle-linear.d.ts +2 -0
  201. package/dist/components/icons/solar/question-circle-linear.js +32 -0
  202. package/dist/components/icons/solar/radio-minimalistic-linear.d.ts +2 -0
  203. package/dist/components/icons/solar/radio-minimalistic-linear.js +32 -0
  204. package/dist/components/icons/solar/refresh-bold.d.ts +2 -0
  205. package/dist/components/icons/solar/refresh-bold.js +20 -0
  206. package/dist/components/icons/solar/refresh-circle-linear.d.ts +2 -0
  207. package/dist/components/icons/solar/refresh-circle-linear.js +35 -0
  208. package/dist/components/icons/solar/refresh-linear.d.ts +2 -0
  209. package/dist/components/icons/solar/refresh-linear.js +16 -0
  210. package/dist/components/icons/solar/restart-linear.d.ts +2 -0
  211. package/dist/components/icons/solar/restart-linear.js +22 -0
  212. package/dist/components/icons/solar/sale-linear.d.ts +2 -0
  213. package/dist/components/icons/solar/sale-linear.js +34 -0
  214. package/dist/components/icons/solar/scissors-linear.d.ts +2 -0
  215. package/dist/components/icons/solar/scissors-linear.js +21 -0
  216. package/dist/components/icons/solar/settings-bold.d.ts +2 -0
  217. package/dist/components/icons/solar/settings-bold.js +19 -0
  218. package/dist/components/icons/solar/settings-linear.d.ts +2 -0
  219. package/dist/components/icons/solar/settings-linear.js +24 -0
  220. package/dist/components/icons/solar/share-linear.d.ts +2 -0
  221. package/dist/components/icons/solar/share-linear.js +27 -0
  222. package/dist/components/icons/solar/shield-warning-bold.d.ts +2 -0
  223. package/dist/components/icons/solar/shield-warning-bold.js +19 -0
  224. package/dist/components/icons/solar/shield-warning-linear.d.ts +2 -0
  225. package/dist/components/icons/solar/shield-warning-linear.js +36 -0
  226. package/dist/components/icons/solar/smile-circle-linear.d.ts +2 -0
  227. package/dist/components/icons/solar/smile-circle-linear.js +38 -0
  228. package/dist/components/icons/solar/sort-horizontal-linear.d.ts +2 -0
  229. package/dist/components/icons/solar/sort-horizontal-linear.js +22 -0
  230. package/dist/components/icons/solar/sort-vertical-linear.d.ts +2 -0
  231. package/dist/components/icons/solar/sort-vertical-linear.js +22 -0
  232. package/dist/components/icons/solar/soundwave-linear.d.ts +2 -0
  233. package/dist/components/icons/solar/soundwave-linear.js +27 -0
  234. package/dist/components/icons/solar/star-linear.d.ts +2 -0
  235. package/dist/components/icons/solar/star-linear.js +21 -0
  236. package/dist/components/icons/solar/stars-linear.d.ts +2 -0
  237. package/dist/components/icons/solar/stars-linear.js +20 -0
  238. package/dist/components/icons/solar/subtitles-linear.d.ts +2 -0
  239. package/dist/components/icons/solar/subtitles-linear.js +29 -0
  240. package/dist/components/icons/solar/sun-linear.d.ts +2 -0
  241. package/dist/components/icons/solar/sun-linear.js +27 -0
  242. package/dist/components/icons/solar/text-bold-linear.d.ts +2 -0
  243. package/dist/components/icons/solar/text-bold-linear.js +21 -0
  244. package/dist/components/icons/solar/text-format-linear.d.ts +2 -0
  245. package/dist/components/icons/solar/text-format-linear.js +22 -0
  246. package/dist/components/icons/solar/text-italic-linear.d.ts +2 -0
  247. package/dist/components/icons/solar/text-italic-linear.js +22 -0
  248. package/dist/components/icons/solar/text-underline-linear.d.ts +2 -0
  249. package/dist/components/icons/solar/text-underline-linear.js +22 -0
  250. package/dist/components/icons/solar/transfer-horizontal-linear.d.ts +2 -0
  251. package/dist/components/icons/solar/transfer-horizontal-linear.js +22 -0
  252. package/dist/components/icons/solar/transfer-vertical-linear.d.ts +2 -0
  253. package/dist/components/icons/solar/transfer-vertical-linear.js +22 -0
  254. package/dist/components/icons/solar/trash-bin-trash-linear.d.ts +2 -0
  255. package/dist/components/icons/solar/trash-bin-trash-linear.js +27 -0
  256. package/dist/components/icons/solar/user-circle-linear.d.ts +2 -0
  257. package/dist/components/icons/solar/user-circle-linear.js +33 -0
  258. package/dist/components/icons/solar/user-cross-linear.d.ts +2 -0
  259. package/dist/components/icons/solar/user-cross-linear.js +33 -0
  260. package/dist/components/icons/solar/user-linear.d.ts +2 -0
  261. package/dist/components/icons/solar/user-linear.js +25 -0
  262. package/dist/components/icons/solar/users-group-rounded-linear.d.ts +2 -0
  263. package/dist/components/icons/solar/users-group-rounded-linear.js +35 -0
  264. package/dist/components/icons/solar/verified-check-linear.d.ts +2 -0
  265. package/dist/components/icons/solar/verified-check-linear.js +24 -0
  266. package/dist/components/icons/solar/volume-cross-linear.d.ts +2 -0
  267. package/dist/components/icons/solar/volume-cross-linear.js +30 -0
  268. package/dist/components/icons/solar/wallet-linear.d.ts +2 -0
  269. package/dist/components/icons/solar/wallet-linear.js +32 -0
  270. package/dist/components/icons/solar/widget-2-bold.d.ts +2 -0
  271. package/dist/components/icons/solar/widget-2-bold.js +35 -0
  272. package/dist/components/icons/solar/widget-2-linear.d.ts +2 -0
  273. package/dist/components/icons/solar/widget-2-linear.js +20 -0
  274. package/dist/components/icons/solar/widget-4-linear.d.ts +2 -0
  275. package/dist/components/icons/solar/widget-4-linear.js +25 -0
  276. package/dist/components/icons/solar/window-frame-linear.d.ts +2 -0
  277. package/dist/components/icons/solar/window-frame-linear.js +37 -0
  278. package/dist/components/motion/MotionSurface.d.ts +4 -0
  279. package/dist/components/motion/MotionSurface.js +15 -0
  280. package/dist/components/motion/motion-tokens.d.ts +38 -0
  281. package/dist/components/motion/motion-tokens.js +38 -0
  282. package/dist/components/shared/BrandPaletteControl.d.ts +1 -0
  283. package/dist/components/shared/BrandPaletteControl.js +48 -0
  284. package/dist/components/shared/DarkStyleControl.d.ts +3 -0
  285. package/dist/components/shared/DarkStyleControl.js +48 -0
  286. package/dist/components/shared/DataTable.d.ts +29 -0
  287. package/dist/components/shared/DataTable.js +180 -0
  288. package/dist/components/shared/EmptyState.d.ts +11 -0
  289. package/dist/components/shared/EmptyState.js +32 -0
  290. package/dist/components/shared/FrostCard.d.ts +2 -0
  291. package/dist/components/shared/FrostCard.js +11 -0
  292. package/dist/components/shared/MetricCard.d.ts +14 -0
  293. package/dist/components/shared/MetricCard.js +36 -0
  294. package/dist/components/shared/StatusBadge.d.ts +32 -0
  295. package/dist/components/shared/StatusBadge.js +41 -0
  296. package/dist/components/shared/ThemeSwitcher.d.ts +3 -0
  297. package/dist/components/shared/ThemeSwitcher.js +93 -0
  298. package/dist/components/shared/data-table.css +375 -0
  299. package/dist/components/shared/use-data-table.d.ts +22 -0
  300. package/dist/components/shared/use-data-table.js +21 -0
  301. package/dist/components/ui/accordion.d.ts +7 -0
  302. package/dist/components/ui/accordion.js +63 -0
  303. package/dist/components/ui/alert-dialog.d.ts +18 -0
  304. package/dist/components/ui/alert-dialog.js +99 -0
  305. package/dist/components/ui/alert.d.ts +10 -0
  306. package/dist/components/ui/alert.js +42 -0
  307. package/dist/components/ui/aspect-ratio.d.ts +3 -0
  308. package/dist/components/ui/aspect-ratio.js +11 -0
  309. package/dist/components/ui/attachment.d.ts +24 -0
  310. package/dist/components/ui/attachment.js +100 -0
  311. package/dist/components/ui/avatar.d.ts +11 -0
  312. package/dist/components/ui/avatar.js +50 -0
  313. package/dist/components/ui/badge.d.ts +25 -0
  314. package/dist/components/ui/badge.js +52 -0
  315. package/dist/components/ui/breadcrumb.d.ts +11 -0
  316. package/dist/components/ui/breadcrumb.js +82 -0
  317. package/dist/components/ui/bubble.d.ts +17 -0
  318. package/dist/components/ui/bubble.js +71 -0
  319. package/dist/components/ui/button-group.d.ts +11 -0
  320. package/dist/components/ui/button-group.js +39 -0
  321. package/dist/components/ui/button.d.ts +11 -0
  322. package/dist/components/ui/button.js +55 -0
  323. package/dist/components/ui/calendar.d.ts +10 -0
  324. package/dist/components/ui/calendar.js +123 -0
  325. package/dist/components/ui/card.d.ts +11 -0
  326. package/dist/components/ui/card.js +55 -0
  327. package/dist/components/ui/carousel.d.ts +28 -0
  328. package/dist/components/ui/carousel.js +142 -0
  329. package/dist/components/ui/chart.d.ts +44 -0
  330. package/dist/components/ui/chart.js +148 -0
  331. package/dist/components/ui/checkbox.d.ts +4 -0
  332. package/dist/components/ui/checkbox.js +24 -0
  333. package/dist/components/ui/code-block.d.ts +26 -0
  334. package/dist/components/ui/code-block.js +133 -0
  335. package/dist/components/ui/collapsible.d.ts +5 -0
  336. package/dist/components/ui/collapsible.js +23 -0
  337. package/dist/components/ui/combobox.d.ts +24 -0
  338. package/dist/components/ui/combobox.js +188 -0
  339. package/dist/components/ui/command.d.ts +18 -0
  340. package/dist/components/ui/command.js +101 -0
  341. package/dist/components/ui/context-menu.d.ts +31 -0
  342. package/dist/components/ui/context-menu.js +142 -0
  343. package/dist/components/ui/date-picker.d.ts +19 -0
  344. package/dist/components/ui/date-picker.js +107 -0
  345. package/dist/components/ui/dialog.d.ts +20 -0
  346. package/dist/components/ui/dialog.js +121 -0
  347. package/dist/components/ui/direction.d.ts +7 -0
  348. package/dist/components/ui/direction.js +13 -0
  349. package/dist/components/ui/drawer.d.ts +13 -0
  350. package/dist/components/ui/drawer.js +76 -0
  351. package/dist/components/ui/dropdown-menu.d.ts +29 -0
  352. package/dist/components/ui/dropdown-menu.js +141 -0
  353. package/dist/components/ui/empty.d.ts +11 -0
  354. package/dist/components/ui/empty.js +58 -0
  355. package/dist/components/ui/field.d.ts +24 -0
  356. package/dist/components/ui/field.js +109 -0
  357. package/dist/components/ui/hover-card.d.ts +6 -0
  358. package/dist/components/ui/hover-card.js +30 -0
  359. package/dist/components/ui/input-group.d.ts +16 -0
  360. package/dist/components/ui/input-group.js +79 -0
  361. package/dist/components/ui/input-otp.d.ts +11 -0
  362. package/dist/components/ui/input-otp.js +52 -0
  363. package/dist/components/ui/input.d.ts +11 -0
  364. package/dist/components/ui/input.js +20 -0
  365. package/dist/components/ui/item.d.ts +23 -0
  366. package/dist/components/ui/item.js +117 -0
  367. package/dist/components/ui/kbd.d.ts +3 -0
  368. package/dist/components/ui/kbd.js +18 -0
  369. package/dist/components/ui/label.d.ts +4 -0
  370. package/dist/components/ui/label.js +13 -0
  371. package/dist/components/ui/marker.d.ts +11 -0
  372. package/dist/components/ui/marker.js +39 -0
  373. package/dist/components/ui/menubar.d.ts +30 -0
  374. package/dist/components/ui/menubar.js +153 -0
  375. package/dist/components/ui/message-scroller.d.ts +10 -0
  376. package/dist/components/ui/message-scroller.js +65 -0
  377. package/dist/components/ui/message.d.ts +10 -0
  378. package/dist/components/ui/message.js +48 -0
  379. package/dist/components/ui/native-select.d.ts +8 -0
  380. package/dist/components/ui/native-select.js +45 -0
  381. package/dist/components/ui/navigation-menu.d.ts +14 -0
  382. package/dist/components/ui/navigation-menu.js +84 -0
  383. package/dist/components/ui/pagination.d.ts +20 -0
  384. package/dist/components/ui/pagination.js +135 -0
  385. package/dist/components/ui/popover.d.ts +10 -0
  386. package/dist/components/ui/popover.js +54 -0
  387. package/dist/components/ui/popup.css +109 -0
  388. package/dist/components/ui/progress.d.ts +4 -0
  389. package/dist/components/ui/progress.js +20 -0
  390. package/dist/components/ui/questionnaire.d.ts +19 -0
  391. package/dist/components/ui/questionnaire.js +174 -0
  392. package/dist/components/ui/radio-group.d.ts +5 -0
  393. package/dist/components/ui/radio-group.js +25 -0
  394. package/dist/components/ui/resizable.d.ts +7 -0
  395. package/dist/components/ui/resizable.js +27 -0
  396. package/dist/components/ui/scroll-area.d.ts +5 -0
  397. package/dist/components/ui/scroll-area.js +35 -0
  398. package/dist/components/ui/select.css +56 -0
  399. package/dist/components/ui/select.d.ts +22 -0
  400. package/dist/components/ui/select.js +226 -0
  401. package/dist/components/ui/separator.d.ts +4 -0
  402. package/dist/components/ui/separator.js +15 -0
  403. package/dist/components/ui/sheet.d.ts +14 -0
  404. package/dist/components/ui/sheet.js +94 -0
  405. package/dist/components/ui/sidebar.d.ts +69 -0
  406. package/dist/components/ui/sidebar.js +383 -0
  407. package/dist/components/ui/skeleton.d.ts +2 -0
  408. package/dist/components/ui/skeleton.js +11 -0
  409. package/dist/components/ui/slider.d.ts +4 -0
  410. package/dist/components/ui/slider.js +39 -0
  411. package/dist/components/ui/sonner.d.ts +3 -0
  412. package/dist/components/ui/sonner.js +74 -0
  413. package/dist/components/ui/spinner.d.ts +2 -0
  414. package/dist/components/ui/spinner.js +19 -0
  415. package/dist/components/ui/switch.d.ts +6 -0
  416. package/dist/components/ui/switch.js +19 -0
  417. package/dist/components/ui/table.d.ts +12 -0
  418. package/dist/components/ui/table.js +66 -0
  419. package/dist/components/ui/tabs.d.ts +11 -0
  420. package/dist/components/ui/tabs.js +45 -0
  421. package/dist/components/ui/text-field.css +96 -0
  422. package/dist/components/ui/textarea.d.ts +5 -0
  423. package/dist/components/ui/textarea.js +13 -0
  424. package/dist/components/ui/toggle-group.d.ts +10 -0
  425. package/dist/components/ui/toggle-group.js +51 -0
  426. package/dist/components/ui/toggle.d.ts +9 -0
  427. package/dist/components/ui/toggle.js +35 -0
  428. package/dist/components/ui/tooltip.d.ts +7 -0
  429. package/dist/components/ui/tooltip.js +34 -0
  430. package/dist/components/ui/trace.d.ts +18 -0
  431. package/dist/components/ui/trace.js +80 -0
  432. package/dist/hooks/use-mobile.d.ts +1 -0
  433. package/dist/hooks/use-mobile.js +17 -0
  434. package/dist/lib/format.d.ts +3 -0
  435. package/dist/lib/format.js +24 -0
  436. package/dist/lib/storage.d.ts +22 -0
  437. package/dist/lib/storage.js +54 -0
  438. package/dist/lib/ui-labels.d.ts +37 -0
  439. package/dist/lib/ui-labels.js +37 -0
  440. package/dist/lib/utils.d.ts +1 -0
  441. package/dist/lib/utils.js +1 -0
  442. package/dist/styles/dark-base.css +145 -0
  443. package/dist/styles/dark-clean.css +62 -0
  444. package/dist/styles/fonts.css +6 -0
  445. package/dist/styles/globals.css +134 -0
  446. package/dist/styles/icon-states.css +48 -0
  447. package/dist/styles/materials.css +188 -0
  448. package/dist/styles/motion.css +132 -0
  449. package/dist/styles/shadcn.css +642 -0
  450. package/dist/styles/soft-edge.css +60 -0
  451. package/dist/styles/spectrum.css +212 -0
  452. package/dist/styles/tokens.css +1048 -0
  453. package/package.json +116 -3
@@ -0,0 +1,38 @@
1
+ export declare const routeEntry: {
2
+ initial: {
3
+ opacity: number;
4
+ };
5
+ animate: {
6
+ opacity: number;
7
+ };
8
+ transition: {
9
+ duration: number;
10
+ ease: readonly [0.23, 1, 0.32, 1];
11
+ };
12
+ };
13
+ export declare const dialogEntry: {
14
+ initial: {
15
+ opacity: number;
16
+ y: number;
17
+ };
18
+ animate: {
19
+ opacity: number;
20
+ y: number;
21
+ };
22
+ transition: {
23
+ duration: number;
24
+ ease: readonly [0.23, 1, 0.32, 1];
25
+ };
26
+ };
27
+ export declare const overlayEntry: {
28
+ initial: {
29
+ opacity: number;
30
+ };
31
+ animate: {
32
+ opacity: number;
33
+ };
34
+ transition: {
35
+ duration: number;
36
+ ease: readonly [0.23, 1, 0.32, 1];
37
+ };
38
+ };
@@ -0,0 +1,38 @@
1
+ // src/components/motion/motion-tokens.ts
2
+ var easeOut = [
3
+ .23,
4
+ 1,
5
+ .32,
6
+ 1
7
+ ];
8
+ var routeEntry = {
9
+ initial: { opacity: .65 },
10
+ animate: { opacity: 1 },
11
+ transition: {
12
+ duration: .21,
13
+ ease: easeOut
14
+ }
15
+ };
16
+ var dialogEntry = {
17
+ initial: {
18
+ opacity: 0,
19
+ y: 6
20
+ },
21
+ animate: {
22
+ opacity: 1,
23
+ y: 0
24
+ },
25
+ transition: {
26
+ duration: .18,
27
+ ease: easeOut
28
+ }
29
+ };
30
+ var overlayEntry = {
31
+ initial: { opacity: 0 },
32
+ animate: { opacity: 1 },
33
+ transition: {
34
+ duration: .16,
35
+ ease: easeOut
36
+ }
37
+ };
38
+ export { dialogEntry, overlayEntry, routeEntry };
@@ -0,0 +1 @@
1
+ export declare function BrandPaletteControl(): import("react").JSX.Element;
@@ -0,0 +1,48 @@
1
+ import { AppIcon } from "../icons/app-icon.js";
2
+ import { Pallete2LinearIcon } from "../icons/solar/pallete-2-linear.js";
3
+ import { Button } from "../ui/button.js";
4
+ import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip.js";
5
+ import { getActivePalette, isPalette, paletteLabels, setStoredPalette } from "../../lib/storage.js";
6
+ import { useUiLabels } from "../../lib/ui-labels.js";
7
+ import { useState } from "react";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ import { useTheme } from "next-themes";
10
+ // src/components/shared/BrandPaletteControl.tsx
11
+ var paletteOrder = Object.keys(paletteLabels).filter(isPalette);
12
+ var lightOnlyPalettes = /* @__PURE__ */ new Set(["aries-light"]);
13
+ function getNextPalette(palette, dark) {
14
+ const order = dark ? paletteOrder.filter((item) => !lightOnlyPalettes.has(item)) : paletteOrder;
15
+ return order[(order.indexOf(palette) + 1) % order.length] ?? palette;
16
+ }
17
+ function BrandPaletteControl() {
18
+ const labels = useUiLabels();
19
+ const [palette, setPalette] = useState(getActivePalette);
20
+ const dark = useTheme().resolvedTheme === "dark";
21
+ const nextPalette = getNextPalette(palette, dark);
22
+ function cyclePalette() {
23
+ const next = getNextPalette(getActivePalette(), dark);
24
+ setStoredPalette(next);
25
+ setPalette(next);
26
+ }
27
+ return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
28
+ asChild: true,
29
+ children: /* @__PURE__ */ jsx(Button, {
30
+ type: "button",
31
+ variant: "ghost",
32
+ size: "icon",
33
+ className: "workspace-mode-control",
34
+ "aria-label": labels.brandPalette,
35
+ onClick: cyclePalette,
36
+ children: /* @__PURE__ */ jsx(AppIcon, {
37
+ icon: Pallete2LinearIcon,
38
+ size: 20,
39
+ "aria-hidden": "true"
40
+ })
41
+ })
42
+ }), /* @__PURE__ */ jsx(TooltipContent, {
43
+ side: "bottom",
44
+ sideOffset: 8,
45
+ children: labels.brandTooltip(labels.paletteName(palette, paletteLabels[palette]), labels.paletteName(nextPalette, paletteLabels[nextPalette]))
46
+ })] });
47
+ }
48
+ export { BrandPaletteControl };
@@ -0,0 +1,3 @@
1
+ /** Header switch between the two dark looks, for comparing them. Dark mode
2
+ * only: light mode shows exactly the controls it always did. */
3
+ export declare function DarkStyleControl(): import("react").JSX.Element | null;
@@ -0,0 +1,48 @@
1
+ import { AppIcon } from "../icons/app-icon.js";
2
+ import { WindowFrameLinearIcon } from "../icons/solar/window-frame-linear.js";
3
+ import { Button } from "../ui/button.js";
4
+ import { Tooltip, TooltipContent, TooltipTrigger } from "../ui/tooltip.js";
5
+ import { getActiveDarkStyle, setStoredDarkStyle } from "../../lib/storage.js";
6
+ import { useUiLabels } from "../../lib/ui-labels.js";
7
+ import { useState } from "react";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ import { useTheme } from "next-themes";
10
+ // src/components/shared/DarkStyleControl.tsx
11
+ /** Header switch between the two dark looks, for comparing them. Dark mode
12
+ * only: light mode shows exactly the controls it always did. */
13
+ function DarkStyleControl() {
14
+ const { resolvedTheme } = useTheme();
15
+ const ui = useUiLabels();
16
+ const labels = {
17
+ glass: ui.darkGlass,
18
+ clean: ui.darkClean
19
+ };
20
+ const [style, setStyle] = useState(getActiveDarkStyle);
21
+ if (resolvedTheme !== "dark") return null;
22
+ const next = style === "glass" ? "clean" : "glass";
23
+ return /* @__PURE__ */ jsxs(Tooltip, { children: [/* @__PURE__ */ jsx(TooltipTrigger, {
24
+ asChild: true,
25
+ children: /* @__PURE__ */ jsx(Button, {
26
+ type: "button",
27
+ variant: "ghost",
28
+ size: "icon",
29
+ className: "workspace-mode-control",
30
+ "aria-label": ui.darkStyle,
31
+ "aria-pressed": style === "clean",
32
+ onClick: () => {
33
+ setStoredDarkStyle(next);
34
+ setStyle(next);
35
+ },
36
+ children: /* @__PURE__ */ jsx(AppIcon, {
37
+ icon: WindowFrameLinearIcon,
38
+ size: 20,
39
+ "aria-hidden": "true"
40
+ })
41
+ })
42
+ }), /* @__PURE__ */ jsx(TooltipContent, {
43
+ side: "bottom",
44
+ sideOffset: 8,
45
+ children: ui.darkTooltip(labels[style], labels[next])
46
+ })] });
47
+ }
48
+ export { DarkStyleControl };
@@ -0,0 +1,29 @@
1
+ import type { ReactNode } from "react";
2
+ import type { RowData } from "@tanstack/react-table";
3
+ import type { DataTableInstance } from "./use-data-table.js";
4
+ type Align = "start" | "end" | "center";
5
+ export interface DataTableProps<TData extends RowData> {
6
+ table: DataTableInstance<TData>;
7
+ /** Screen-reader caption and the label of the scroll region. */
8
+ caption: string;
9
+ /** Alignment per column id: shared by the header and every cell below it. */
10
+ columnAlign?: Readonly<Record<string, Align>>;
11
+ /** Column rendered as the row header (`th scope="row"`). */
12
+ rowHeaderColumn: string;
13
+ selectAllLabel: string;
14
+ selectRowLabel: (row: TData) => string;
15
+ paginationLabel: string;
16
+ pageSizes?: readonly number[];
17
+ /** Shown instead of the rows when nothing matches. */
18
+ empty: ReactNode;
19
+ scrollHint?: string;
20
+ /** Shows shimmering skeleton rows (same row height) instead of the data. */
21
+ loading?: boolean;
22
+ }
23
+ /**
24
+ * The Aries table template: shadcn Table + TanStack Table, a quiet sticky
25
+ * header, per-column alignment, row selection and a footer with the row range
26
+ * and round pagination. Features pass columns and cell content only.
27
+ */
28
+ export declare function DataTable<TData extends RowData>({ table, caption, columnAlign, rowHeaderColumn, selectAllLabel, selectRowLabel, paginationLabel, pageSizes, empty, scrollHint, loading, }: DataTableProps<TData>): import("react").JSX.Element;
29
+ export {};
@@ -0,0 +1,180 @@
1
+ import { useUiLabels } from "../../lib/ui-labels.js";
2
+ import { AppIcon } from "../icons/app-icon.js";
3
+ import { SortHorizontalLinearIcon } from "../icons/solar/sort-horizontal-linear.js";
4
+ import { Button } from "../ui/button.js";
5
+ import { Checkbox } from "../ui/checkbox.js";
6
+ import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, getPaginationRange } from "../ui/pagination.js";
7
+ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../ui/select.js";
8
+ import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow } from "../ui/table.js";
9
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
+ import "./data-table.css";
11
+ // src/components/shared/DataTable.tsx
12
+ /**
13
+ * The Aries table template: shadcn Table + TanStack Table, a quiet sticky
14
+ * header, per-column alignment, row selection and a footer with the row range
15
+ * and round pagination. Features pass columns and cell content only.
16
+ */
17
+ function DataTable({ table, caption, columnAlign = {}, rowHeaderColumn, selectAllLabel, selectRowLabel, paginationLabel, pageSizes = [
18
+ 10,
19
+ 20,
20
+ 50
21
+ ], empty, scrollHint, loading = false }) {
22
+ const labels = useUiLabels();
23
+ const count = table.getFilteredRowModel().rows.length;
24
+ const selectedCount = table.getSelectedRowIds().length;
25
+ const visibleRows = table.getRowModel().rows;
26
+ const { pageIndex, pageSize } = table.state.pagination;
27
+ const first = pageIndex * pageSize + 1;
28
+ const last = first + visibleRows.length - 1;
29
+ const pageItems = getPaginationRange(pageIndex + 1, table.getPageCount());
30
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
31
+ scrollHint && /* @__PURE__ */ jsxs("p", {
32
+ className: "data-table-hint",
33
+ "data-empty": !count || void 0,
34
+ children: [/* @__PURE__ */ jsx(AppIcon, {
35
+ icon: SortHorizontalLinearIcon,
36
+ size: 15
37
+ }), scrollHint]
38
+ }),
39
+ loading ? /* @__PURE__ */ jsx("div", {
40
+ className: "data-table-empty data-table-skeleton",
41
+ role: "status",
42
+ "aria-label": labels.loading,
43
+ children: Array.from({ length: 6 }, (_, row) => /* @__PURE__ */ jsxs("div", {
44
+ className: "data-table-skeleton-row",
45
+ children: [
46
+ /* @__PURE__ */ jsx("span", { className: "shimmer-block" }),
47
+ /* @__PURE__ */ jsx("span", { className: "shimmer-block" }),
48
+ /* @__PURE__ */ jsx("span", { className: "shimmer-block" })
49
+ ]
50
+ }, row))
51
+ }) : count === 0 ? /* @__PURE__ */ jsx("div", {
52
+ className: "data-table-empty",
53
+ children: empty
54
+ }) : /* @__PURE__ */ jsxs(Table, {
55
+ className: "data-table",
56
+ containerProps: {
57
+ className: "data-table-scroll",
58
+ role: "region",
59
+ "aria-label": caption,
60
+ tabIndex: 0
61
+ },
62
+ children: [
63
+ /* @__PURE__ */ jsx(TableCaption, {
64
+ className: "sr-only",
65
+ children: caption
66
+ }),
67
+ /* @__PURE__ */ jsx(TableHeader, { children: table.getHeaderGroups().map((group) => /* @__PURE__ */ jsx(TableRow, { children: group.headers.map((header) => {
68
+ const id = header.column.id;
69
+ return /* @__PURE__ */ jsx(TableHead, {
70
+ "data-column": id,
71
+ "data-align": columnAlign[id],
72
+ scope: "col",
73
+ children: id === "selection" ? /* @__PURE__ */ jsx(Checkbox, {
74
+ "aria-label": selectAllLabel,
75
+ checked: table.getIsAllPageRowsSelected() || table.getIsSomePageRowsSelected() && "indeterminate",
76
+ onCheckedChange: (value) => table.toggleAllPageRowsSelected(value === true)
77
+ }) : /* @__PURE__ */ jsx(table.FlexRender, { header })
78
+ }, header.id);
79
+ }) }, group.id)) }),
80
+ /* @__PURE__ */ jsx(TableBody, { children: visibleRows.map((row, index) => /* @__PURE__ */ jsx(TableRow, {
81
+ "data-state": row.getIsSelected() ? "selected" : void 0,
82
+ style: { "--row-index": index },
83
+ children: row.getAllCells().map((cell) => {
84
+ const id = cell.column.id;
85
+ return /* @__PURE__ */ jsx(id === rowHeaderColumn ? TableHead : TableCell, {
86
+ className: id === rowHeaderColumn ? void 0 : "py-0",
87
+ scope: id === rowHeaderColumn ? "row" : void 0,
88
+ "data-column": id,
89
+ "data-align": columnAlign[id],
90
+ children: id === "selection" ? /* @__PURE__ */ jsx(Checkbox, {
91
+ "aria-label": selectRowLabel(row.original),
92
+ checked: row.getIsSelected(),
93
+ onCheckedChange: (value) => row.toggleSelected(value === true)
94
+ }) : /* @__PURE__ */ jsx(table.FlexRender, { cell })
95
+ }, cell.id);
96
+ })
97
+ }, row.id)) })
98
+ ]
99
+ }),
100
+ /* @__PURE__ */ jsxs("div", {
101
+ className: "data-table-footer",
102
+ children: [/* @__PURE__ */ jsxs("div", {
103
+ className: "data-table-summary",
104
+ children: [
105
+ /* @__PURE__ */ jsx("p", {
106
+ "aria-live": "polite",
107
+ children: count ? labels.tableRange(first, last, count) : labels.tableEmpty
108
+ }),
109
+ /* @__PURE__ */ jsx("span", {
110
+ role: "status",
111
+ className: selectedCount === 0 ? "sr-only" : void 0,
112
+ children: labels.selectedCount(selectedCount)
113
+ }),
114
+ selectedCount > 0 && /* @__PURE__ */ jsx(Button, {
115
+ type: "button",
116
+ variant: "link",
117
+ size: "xs",
118
+ className: "px-0",
119
+ onClick: () => table.resetRowSelection(),
120
+ children: labels.clearSelection
121
+ })
122
+ ]
123
+ }), /* @__PURE__ */ jsxs("div", {
124
+ className: "data-table-pagination",
125
+ children: [/* @__PURE__ */ jsxs(Select, {
126
+ value: String(pageSize),
127
+ onValueChange: (value) => table.setPagination({
128
+ pageIndex: 0,
129
+ pageSize: Number(value)
130
+ }),
131
+ children: [/* @__PURE__ */ jsx(SelectTrigger, {
132
+ className: "h-(--pagination-control-size)",
133
+ "aria-label": labels.pageSize,
134
+ size: "dense",
135
+ children: /* @__PURE__ */ jsx(SelectValue, {})
136
+ }), /* @__PURE__ */ jsx(SelectContent, {
137
+ position: "popper",
138
+ align: "start",
139
+ children: pageSizes.map((size) => /* @__PURE__ */ jsx(SelectItem, {
140
+ value: String(size),
141
+ children: size
142
+ }, size))
143
+ })]
144
+ }), /* @__PURE__ */ jsx(Pagination, {
145
+ className: "mx-0 w-auto",
146
+ "aria-label": paginationLabel,
147
+ children: /* @__PURE__ */ jsxs(PaginationContent, { children: [
148
+ /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationPrevious, {
149
+ className: "h-7 rounded-full px-2.5 text-xs pointer-coarse:h-10",
150
+ disabled: !count || !table.getCanPreviousPage(),
151
+ onClick: () => table.previousPage(),
152
+ "aria-label": labels.previousPage,
153
+ title: labels.previousPage,
154
+ children: labels.previousPage
155
+ }) }),
156
+ pageItems.map((item, index) => /* @__PURE__ */ jsx(PaginationItem, {
157
+ className: "max-sm:hidden",
158
+ children: item === "ellipsis" ? /* @__PURE__ */ jsx(PaginationEllipsis, { className: "size-7 pointer-coarse:size-10" }) : /* @__PURE__ */ jsx(PaginationLink, {
159
+ className: "size-7 rounded-full text-xs pointer-coarse:size-10",
160
+ isActive: item === pageIndex + 1,
161
+ "aria-label": labels.pageN(item),
162
+ onClick: () => table.setPageIndex(item - 1),
163
+ children: item
164
+ })
165
+ }, item === "ellipsis" ? `ellipsis-${index}` : item)),
166
+ /* @__PURE__ */ jsx(PaginationItem, { children: /* @__PURE__ */ jsx(PaginationNext, {
167
+ className: "h-7 rounded-full px-2.5 text-xs pointer-coarse:h-10",
168
+ disabled: !count || !table.getCanNextPage(),
169
+ onClick: () => table.nextPage(),
170
+ "aria-label": labels.nextPage,
171
+ title: labels.nextPage,
172
+ children: labels.nextPage
173
+ }) })
174
+ ] })
175
+ })]
176
+ })]
177
+ })
178
+ ] });
179
+ }
180
+ export { DataTable };
@@ -0,0 +1,11 @@
1
+ import type { ReactNode } from "react";
2
+ import { type AppIconComponent } from "../icons/index.js";
3
+ type EmptyStateProps = {
4
+ title: string;
5
+ description?: string;
6
+ icon?: AppIconComponent;
7
+ action?: ReactNode;
8
+ className?: string;
9
+ };
10
+ export declare function EmptyState({ title, description, icon, action, className, }: EmptyStateProps): import("react").JSX.Element;
11
+ export {};
@@ -0,0 +1,32 @@
1
+ import { AppIcon } from "../icons/app-icon.js";
2
+ import { InboxLinearIcon } from "../icons/solar/inbox-linear.js";
3
+ import { cn } from "../../lib/utils.js";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ // src/components/shared/EmptyState.tsx
6
+ function EmptyState({ title, description, icon = InboxLinearIcon, action, className }) {
7
+ return /* @__PURE__ */ jsxs("div", {
8
+ className: cn("grid justify-items-center gap-2 px-5 py-10 text-center", className),
9
+ children: [
10
+ /* @__PURE__ */ jsx("div", {
11
+ className: "mb-1 grid size-12 place-items-center rounded-2xl bg-accent text-accent-foreground",
12
+ children: /* @__PURE__ */ jsx(AppIcon, {
13
+ icon,
14
+ "aria-hidden": "true"
15
+ })
16
+ }),
17
+ /* @__PURE__ */ jsx("h3", {
18
+ className: "text-sm font-semibold text-foreground",
19
+ children: title
20
+ }),
21
+ description && /* @__PURE__ */ jsx("p", {
22
+ className: "max-w-sm text-sm leading-relaxed text-muted-foreground",
23
+ children: description
24
+ }),
25
+ action && /* @__PURE__ */ jsx("div", {
26
+ className: "mt-2",
27
+ children: action
28
+ })
29
+ ]
30
+ });
31
+ }
32
+ export { EmptyState };
@@ -0,0 +1,2 @@
1
+ import type { ComponentProps } from "react";
2
+ export declare function FrostCard({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { Card } from "../ui/card.js";
2
+ import { cn } from "../../lib/utils.js";
3
+ import { jsx } from "react/jsx-runtime";
4
+ // src/components/shared/FrostCard.tsx
5
+ function FrostCard({ className, ...props }) {
6
+ return /* @__PURE__ */ jsx(Card, {
7
+ className: cn("surface gap-0 overflow-visible bg-transparent p-0 shadow-none ring-0", className),
8
+ ...props
9
+ });
10
+ }
11
+ export { FrostCard };
@@ -0,0 +1,14 @@
1
+ import type { ReactNode } from "react";
2
+ import { type AppIconComponent } from "../icons/index.js";
3
+ type MetricCardProps = {
4
+ label: string;
5
+ value: ReactNode;
6
+ icon?: AppIconComponent;
7
+ description?: ReactNode;
8
+ children?: ReactNode;
9
+ className?: string;
10
+ featured?: boolean;
11
+ density?: "default" | "compact";
12
+ };
13
+ export declare function MetricCard({ label, value, icon, description, children, className, featured, density, }: MetricCardProps): import("react").JSX.Element;
14
+ export {};
@@ -0,0 +1,36 @@
1
+ import { AppIcon } from "../icons/app-icon.js";
2
+ import { FrostCard } from "./FrostCard.js";
3
+ import { cn } from "../../lib/utils.js";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ // src/components/shared/MetricCard.tsx
6
+ function MetricCard({ label, value, icon, description, children, className, featured = false, density = "default" }) {
7
+ const compact = density === "compact";
8
+ return /* @__PURE__ */ jsxs(FrostCard, {
9
+ className: cn("min-w-0", compact ? "p-(--card-inset)" : "gap-3 p-(--card-inset)", className),
10
+ children: [/* @__PURE__ */ jsxs("dl", {
11
+ className: "min-w-0",
12
+ children: [
13
+ /* @__PURE__ */ jsxs("dt", {
14
+ className: cn("flex items-center justify-between gap-2", compact ? "text-(length:--metric-label-size) leading-(--metric-label-leading) font-(number:--metric-label-weight)" : "min-h-8 text-sm font-medium text-muted-foreground"),
15
+ children: [label, icon && /* @__PURE__ */ jsx("span", {
16
+ className: "grid size-8 shrink-0 place-items-center rounded-xl bg-accent text-accent-foreground",
17
+ children: /* @__PURE__ */ jsx(AppIcon, {
18
+ icon,
19
+ size: 16,
20
+ "aria-hidden": "true"
21
+ })
22
+ })]
23
+ }),
24
+ /* @__PURE__ */ jsx("dd", {
25
+ className: cn("break-words tabular-nums", compact ? "mt-1 text-(length:--metric-value-size) leading-(--metric-value-leading) font-(number:--metric-value-weight) tracking-(--metric-value-tracking)" : "mt-2 leading-tight font-semibold tracking-tight", !compact && (featured ? "text-3xl sm:text-4xl" : "text-[clamp(1.35rem,2.1vw,1.85rem)]")),
26
+ children: value
27
+ }),
28
+ description && /* @__PURE__ */ jsx("dd", {
29
+ className: cn(compact ? "mt-1 text-(length:--metric-note-size) leading-(--metric-note-leading)" : "mt-1.5 text-xs", compact && featured ? "text-(--hero-muted)" : "text-muted-foreground"),
30
+ children: description
31
+ })
32
+ ]
33
+ }), children]
34
+ });
35
+ }
36
+ export { MetricCard };
@@ -0,0 +1,32 @@
1
+ import type { ReactNode } from "react";
2
+ declare const tones: {
3
+ readonly neutral: {
4
+ readonly color: "--muted-foreground";
5
+ readonly background: "--muted";
6
+ };
7
+ readonly success: {
8
+ readonly color: "--success";
9
+ readonly background: "--success-bg";
10
+ };
11
+ readonly warning: {
12
+ readonly color: "--warning";
13
+ readonly background: "--warning-bg";
14
+ };
15
+ readonly danger: {
16
+ readonly color: "--danger";
17
+ readonly background: "--danger-bg";
18
+ };
19
+ readonly info: {
20
+ readonly color: "--info";
21
+ readonly background: "--info-bg";
22
+ };
23
+ };
24
+ type StatusBadgeProps = {
25
+ tone?: keyof typeof tones;
26
+ children: ReactNode;
27
+ className?: string;
28
+ /** Slow breathing dot for work that is still in progress. */
29
+ pulse?: boolean;
30
+ };
31
+ export declare function StatusBadge({ tone, children, className, pulse, }: StatusBadgeProps): import("react").JSX.Element;
32
+ export {};
@@ -0,0 +1,41 @@
1
+ import { Badge } from "../ui/badge.js";
2
+ import { cn } from "../../lib/utils.js";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ // src/components/shared/StatusBadge.tsx
5
+ var tones = {
6
+ neutral: {
7
+ color: "--muted-foreground",
8
+ background: "--muted"
9
+ },
10
+ success: {
11
+ color: "--success",
12
+ background: "--success-bg"
13
+ },
14
+ warning: {
15
+ color: "--warning",
16
+ background: "--warning-bg"
17
+ },
18
+ danger: {
19
+ color: "--danger",
20
+ background: "--danger-bg"
21
+ },
22
+ info: {
23
+ color: "--info",
24
+ background: "--info-bg"
25
+ }
26
+ };
27
+ function StatusBadge({ tone = "neutral", children, className, pulse = false }) {
28
+ const { color, background } = tones[tone];
29
+ return /* @__PURE__ */ jsxs(Badge, {
30
+ className: cn("h-6 gap-1.5 rounded-full border-[color:var(--status-badge-edge,transparent)] px-2 text-xs font-medium", className),
31
+ style: {
32
+ color: `var(${color})`,
33
+ backgroundColor: `var(${background})`
34
+ },
35
+ children: [/* @__PURE__ */ jsx("span", {
36
+ "aria-hidden": "true",
37
+ className: cn("size-1.5 rounded-full bg-current", pulse && "status-pulse")
38
+ }), children]
39
+ });
40
+ }
41
+ export { StatusBadge };
@@ -0,0 +1,3 @@
1
+ export declare function ThemeSwitcher({ className }: {
2
+ className?: string;
3
+ }): import("react").JSX.Element;