@marismoon/ui 0.0.0-stage → 0.1.0-next.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 (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,101 @@
1
+ "use client";
2
+ import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } from "./dialog.js";
3
+ import { InputGroup, InputGroupAddon } from "./input-group.js";
4
+ import { IconPlaceholder } from "../icons/icon-placeholder.js";
5
+ import "react";
6
+ import { cn } from "cn";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ import { Command as Command$1 } from "cmdk";
9
+ // src/components/ui/command.tsx
10
+ function Command({ className, ...props }) {
11
+ return /* @__PURE__ */ jsx(Command$1, {
12
+ "data-slot": "command",
13
+ className: cn("flex size-full flex-col overflow-hidden rounded-3xl bg-popover p-1 text-popover-foreground", className),
14
+ ...props
15
+ });
16
+ }
17
+ function CommandDialog({ title = "Command Palette", description = "Search for a command to run...", children, className, showCloseButton = false, ...props }) {
18
+ return /* @__PURE__ */ jsxs(Dialog, {
19
+ ...props,
20
+ children: [/* @__PURE__ */ jsxs(DialogHeader, {
21
+ className: "sr-only",
22
+ children: [/* @__PURE__ */ jsx(DialogTitle, { children: title }), /* @__PURE__ */ jsx(DialogDescription, { children: description })]
23
+ }), /* @__PURE__ */ jsx(DialogContent, {
24
+ className: cn("top-1/3 translate-y-0 overflow-hidden rounded-3xl! p-0", className),
25
+ showCloseButton,
26
+ children
27
+ })]
28
+ });
29
+ }
30
+ function CommandInput({ className, ...props }) {
31
+ return /* @__PURE__ */ jsx("div", {
32
+ "data-slot": "command-input-wrapper",
33
+ className: "p-1 pb-0",
34
+ children: /* @__PURE__ */ jsxs(InputGroup, {
35
+ className: "h-8! bg-(--field-surface) shadow-(--field-shadow)",
36
+ children: [/* @__PURE__ */ jsx(Command$1.Input, {
37
+ "data-slot": "command-input",
38
+ className: cn("w-full text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", className),
39
+ ...props
40
+ }), /* @__PURE__ */ jsx(InputGroupAddon, { children: /* @__PURE__ */ jsx(IconPlaceholder, {
41
+ lucide: "SearchIcon",
42
+ tabler: "IconSearch",
43
+ hugeicons: "SearchIcon",
44
+ phosphor: "MagnifyingGlassIcon",
45
+ remixicon: "RiSearchLine",
46
+ className: "size-4 shrink-0 opacity-50"
47
+ }) })]
48
+ })
49
+ });
50
+ }
51
+ function CommandList({ className, ...props }) {
52
+ return /* @__PURE__ */ jsx(Command$1.List, {
53
+ "data-slot": "command-list",
54
+ className: cn("no-scrollbar max-h-72 scroll-py-1 overflow-x-hidden overflow-y-auto outline-none", className),
55
+ ...props
56
+ });
57
+ }
58
+ function CommandEmpty({ className, ...props }) {
59
+ return /* @__PURE__ */ jsx(Command$1.Empty, {
60
+ "data-slot": "command-empty",
61
+ className: cn("py-6 text-center text-sm", className),
62
+ ...props
63
+ });
64
+ }
65
+ function CommandGroup({ className, ...props }) {
66
+ return /* @__PURE__ */ jsx(Command$1.Group, {
67
+ "data-slot": "command-group",
68
+ className: cn("overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground", className),
69
+ ...props
70
+ });
71
+ }
72
+ function CommandSeparator({ className, ...props }) {
73
+ return /* @__PURE__ */ jsx(Command$1.Separator, {
74
+ "data-slot": "command-separator",
75
+ className: cn("my-1 h-px bg-border/50", className),
76
+ ...props
77
+ });
78
+ }
79
+ function CommandItem({ className, children, ...props }) {
80
+ return /* @__PURE__ */ jsxs(Command$1.Item, {
81
+ "data-slot": "command-item",
82
+ className: cn("group/command-item relative flex min-h-7 cursor-default items-center gap-2 rounded-xl px-2 py-1.5 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-2xl data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 data-selected:bg-muted data-selected:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-selected:*:[svg]:text-foreground", className),
83
+ ...props,
84
+ children: [children, /* @__PURE__ */ jsx(IconPlaceholder, {
85
+ lucide: "CheckIcon",
86
+ tabler: "IconCheck",
87
+ hugeicons: "Tick02Icon",
88
+ phosphor: "CheckIcon",
89
+ remixicon: "RiCheckLine",
90
+ className: "ml-auto opacity-0 group-has-data-[slot=command-shortcut]/command-item:hidden group-data-[checked=true]/command-item:opacity-100"
91
+ })]
92
+ });
93
+ }
94
+ function CommandShortcut({ className, ...props }) {
95
+ return /* @__PURE__ */ jsx("span", {
96
+ "data-slot": "command-shortcut",
97
+ className: cn("ml-auto text-xs tracking-widest text-muted-foreground group-data-selected/command-item:text-foreground", className),
98
+ ...props
99
+ });
100
+ }
101
+ export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
@@ -0,0 +1,31 @@
1
+ import * as React from "react";
2
+ import { ContextMenu as ContextMenuPrimitive } from "radix-ui";
3
+ declare function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>): React.JSX.Element;
4
+ declare function ContextMenuTrigger({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>): React.JSX.Element;
5
+ declare function ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Group>): React.JSX.Element;
6
+ declare function ContextMenuPortal({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Portal>): React.JSX.Element;
7
+ declare function ContextMenuSub({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Sub>): React.JSX.Element;
8
+ declare function ContextMenuRadioGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>): React.JSX.Element;
9
+ declare function ContextMenuContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Content> & {
10
+ side?: "top" | "right" | "bottom" | "left";
11
+ }): React.JSX.Element;
12
+ declare function ContextMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Item> & {
13
+ inset?: boolean;
14
+ variant?: "default" | "destructive";
15
+ }): React.JSX.Element;
16
+ declare function ContextMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
17
+ inset?: boolean;
18
+ }): React.JSX.Element;
19
+ declare function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>): React.JSX.Element;
20
+ declare function ContextMenuCheckboxItem({ className, children, checked, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem> & {
21
+ inset?: boolean;
22
+ }): React.JSX.Element;
23
+ declare function ContextMenuRadioItem({ className, children, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem> & {
24
+ inset?: boolean;
25
+ }): React.JSX.Element;
26
+ declare function ContextMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Label> & {
27
+ inset?: boolean;
28
+ }): React.JSX.Element;
29
+ declare function ContextMenuSeparator({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Separator>): React.JSX.Element;
30
+ declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
31
+ export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuPortal, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup, };
@@ -0,0 +1,142 @@
1
+ import { IconPlaceholder } from "../icons/icon-placeholder.js";
2
+ import "react";
3
+ import { cn } from "cn";
4
+ import { ContextMenu as ContextMenu$1 } from "radix-ui";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ // src/components/ui/context-menu.tsx
7
+ function ContextMenu({ ...props }) {
8
+ return /* @__PURE__ */ jsx(ContextMenu$1.Root, {
9
+ "data-slot": "context-menu",
10
+ ...props
11
+ });
12
+ }
13
+ function ContextMenuTrigger({ className, ...props }) {
14
+ return /* @__PURE__ */ jsx(ContextMenu$1.Trigger, {
15
+ "data-slot": "context-menu-trigger",
16
+ className: cn("select-none", className),
17
+ ...props
18
+ });
19
+ }
20
+ function ContextMenuGroup({ ...props }) {
21
+ return /* @__PURE__ */ jsx(ContextMenu$1.Group, {
22
+ "data-slot": "context-menu-group",
23
+ ...props
24
+ });
25
+ }
26
+ function ContextMenuPortal({ ...props }) {
27
+ return /* @__PURE__ */ jsx(ContextMenu$1.Portal, {
28
+ "data-slot": "context-menu-portal",
29
+ ...props
30
+ });
31
+ }
32
+ function ContextMenuSub({ ...props }) {
33
+ return /* @__PURE__ */ jsx(ContextMenu$1.Sub, {
34
+ "data-slot": "context-menu-sub",
35
+ ...props
36
+ });
37
+ }
38
+ function ContextMenuRadioGroup({ ...props }) {
39
+ return /* @__PURE__ */ jsx(ContextMenu$1.RadioGroup, {
40
+ "data-slot": "context-menu-radio-group",
41
+ ...props
42
+ });
43
+ }
44
+ function ContextMenuContent({ className, ...props }) {
45
+ return /* @__PURE__ */ jsx(ContextMenu$1.Portal, { children: /* @__PURE__ */ jsx(ContextMenu$1.Content, {
46
+ "data-slot": "context-menu-content",
47
+ className: cn("z-50 max-h-(--radix-context-menu-content-available-height) min-w-36 origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-2xl bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/5 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
48
+ ...props
49
+ }) });
50
+ }
51
+ function ContextMenuItem({ className, inset, variant = "default", ...props }) {
52
+ return /* @__PURE__ */ jsx(ContextMenu$1.Item, {
53
+ "data-slot": "context-menu-item",
54
+ "data-inset": inset,
55
+ "data-variant": variant,
56
+ className: cn("group/context-menu-item relative flex min-h-7 cursor-default items-center gap-2 rounded-xl px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 focus:*:[svg]:text-accent-foreground data-[variant=destructive]:*:[svg]:text-destructive", className),
57
+ ...props
58
+ });
59
+ }
60
+ function ContextMenuSubTrigger({ className, inset, children, ...props }) {
61
+ return /* @__PURE__ */ jsxs(ContextMenu$1.SubTrigger, {
62
+ "data-slot": "context-menu-sub-trigger",
63
+ "data-inset": inset,
64
+ className: cn("flex min-h-7 cursor-default items-center rounded-xl px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
65
+ ...props,
66
+ children: [children, /* @__PURE__ */ jsx(IconPlaceholder, {
67
+ lucide: "ChevronRightIcon",
68
+ tabler: "IconChevronRight",
69
+ hugeicons: "ArrowRight01Icon",
70
+ phosphor: "CaretRightIcon",
71
+ remixicon: "RiArrowRightSLine",
72
+ className: "ml-auto"
73
+ })]
74
+ });
75
+ }
76
+ function ContextMenuSubContent({ className, ...props }) {
77
+ return /* @__PURE__ */ jsx(ContextMenu$1.SubContent, {
78
+ "data-slot": "context-menu-sub-content",
79
+ className: cn("z-50 min-w-32 origin-(--radix-context-menu-content-transform-origin) overflow-hidden rounded-2xl bg-popover p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/5 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
80
+ ...props
81
+ });
82
+ }
83
+ function ContextMenuCheckboxItem({ className, children, checked, inset, ...props }) {
84
+ return /* @__PURE__ */ jsxs(ContextMenu$1.CheckboxItem, {
85
+ "data-slot": "context-menu-checkbox-item",
86
+ "data-inset": inset,
87
+ className: cn("relative flex min-h-7 cursor-default items-center gap-2 rounded-xl py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
88
+ checked,
89
+ ...props,
90
+ children: [/* @__PURE__ */ jsx("span", {
91
+ className: "pointer-events-none absolute right-2",
92
+ children: /* @__PURE__ */ jsx(ContextMenu$1.ItemIndicator, { children: /* @__PURE__ */ jsx(IconPlaceholder, {
93
+ lucide: "CheckIcon",
94
+ tabler: "IconCheck",
95
+ hugeicons: "Tick02Icon",
96
+ phosphor: "CheckIcon",
97
+ remixicon: "RiCheckLine"
98
+ }) })
99
+ }), children]
100
+ });
101
+ }
102
+ function ContextMenuRadioItem({ className, children, inset, ...props }) {
103
+ return /* @__PURE__ */ jsxs(ContextMenu$1.RadioItem, {
104
+ "data-slot": "context-menu-radio-item",
105
+ "data-inset": inset,
106
+ className: cn("relative flex min-h-7 cursor-default items-center gap-2 rounded-xl py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-7 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
107
+ ...props,
108
+ children: [/* @__PURE__ */ jsx("span", {
109
+ className: "pointer-events-none absolute right-2",
110
+ children: /* @__PURE__ */ jsx(ContextMenu$1.ItemIndicator, { children: /* @__PURE__ */ jsx(IconPlaceholder, {
111
+ lucide: "CheckIcon",
112
+ tabler: "IconCheck",
113
+ hugeicons: "Tick02Icon",
114
+ phosphor: "CheckIcon",
115
+ remixicon: "RiCheckLine"
116
+ }) })
117
+ }), children]
118
+ });
119
+ }
120
+ function ContextMenuLabel({ className, inset, ...props }) {
121
+ return /* @__PURE__ */ jsx(ContextMenu$1.Label, {
122
+ "data-slot": "context-menu-label",
123
+ "data-inset": inset,
124
+ className: cn("px-2 py-1 text-xs text-muted-foreground data-inset:pl-7", className),
125
+ ...props
126
+ });
127
+ }
128
+ function ContextMenuSeparator({ className, ...props }) {
129
+ return /* @__PURE__ */ jsx(ContextMenu$1.Separator, {
130
+ "data-slot": "context-menu-separator",
131
+ className: cn("-mx-1 my-1 h-px bg-border/50", className),
132
+ ...props
133
+ });
134
+ }
135
+ function ContextMenuShortcut({ className, ...props }) {
136
+ return /* @__PURE__ */ jsx("span", {
137
+ "data-slot": "context-menu-shortcut",
138
+ className: cn("ml-auto text-xs tracking-widest text-muted-foreground group-focus/context-menu-item:text-accent-foreground", className),
139
+ ...props
140
+ });
141
+ }
142
+ export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger };
@@ -0,0 +1,19 @@
1
+ import * as React from "react";
2
+ /**
3
+ * Themed replacements for the browser's native date and time pickers (whose
4
+ * popups cannot be styled): a field-style trigger that opens Aries's own
5
+ * Calendar or time list inside a glass popover.
6
+ */
7
+ declare function DatePicker({ id, defaultValue, placeholder, className, }: {
8
+ id?: string;
9
+ defaultValue?: Date;
10
+ placeholder?: string;
11
+ className?: string;
12
+ }): React.JSX.Element;
13
+ declare function TimePicker({ id, defaultValue, className, }: {
14
+ id?: string;
15
+ /** "HH:mm" */
16
+ defaultValue?: string;
17
+ className?: string;
18
+ }): React.JSX.Element;
19
+ export { DatePicker, TimePicker };
@@ -0,0 +1,107 @@
1
+ "use client";
2
+ import { AppIcon } from "../icons/app-icon.js";
3
+ import { CalendarLinearIcon } from "../icons/solar/calendar-linear.js";
4
+ import { ClockCircleLinearIcon } from "../icons/solar/clock-circle-linear.js";
5
+ import { Button } from "./button.js";
6
+ import { Calendar } from "./calendar.js";
7
+ import { Popover, PopoverContent, PopoverTrigger } from "./popover.js";
8
+ import { useUiLabels } from "../../lib/ui-labels.js";
9
+ import * as React from "react";
10
+ import { cn } from "cn";
11
+ import { jsx, jsxs } from "react/jsx-runtime";
12
+ import { format } from "date-fns";
13
+ // src/components/ui/date-picker.tsx
14
+ /**
15
+ * Themed replacements for the browser's native date and time pickers (whose
16
+ * popups cannot be styled): a field-style trigger that opens Aries's own
17
+ * Calendar or time list inside a glass popover.
18
+ */
19
+ function DatePicker({ id, defaultValue, placeholder = "yyyy/mm/dd", className }) {
20
+ const [date, setDate] = React.useState(defaultValue);
21
+ const [open, setOpen] = React.useState(false);
22
+ return /* @__PURE__ */ jsxs(Popover, {
23
+ open,
24
+ onOpenChange: setOpen,
25
+ children: [/* @__PURE__ */ jsx(PopoverTrigger, {
26
+ asChild: true,
27
+ children: /* @__PURE__ */ jsxs(Button, {
28
+ id,
29
+ type: "button",
30
+ variant: "outline",
31
+ className: cn("w-full justify-start font-normal data-[empty=true]:text-muted-foreground", className),
32
+ "data-empty": !date,
33
+ children: [/* @__PURE__ */ jsx(AppIcon, {
34
+ icon: CalendarLinearIcon,
35
+ "data-icon": "inline-start"
36
+ }), date ? format(date, "yyyy/MM/dd") : placeholder]
37
+ })
38
+ }), /* @__PURE__ */ jsx(PopoverContent, {
39
+ className: "w-auto p-1",
40
+ align: "start",
41
+ children: /* @__PURE__ */ jsx(Calendar, {
42
+ mode: "single",
43
+ selected: date,
44
+ defaultMonth: date,
45
+ onSelect: (next) => {
46
+ setDate(next);
47
+ setOpen(false);
48
+ }
49
+ })
50
+ })]
51
+ });
52
+ }
53
+ var hours = Array.from({ length: 24 }, (_, i) => String(i).padStart(2, "0"));
54
+ var minutes = Array.from({ length: 60 }, (_, i) => String(i).padStart(2, "0"));
55
+ function TimeColumn({ label, values, value, onSelect }) {
56
+ return /* @__PURE__ */ jsx("div", {
57
+ role: "listbox",
58
+ "aria-label": label,
59
+ className: "grid max-h-48 w-14 content-start gap-0.5 overflow-y-auto p-0.5",
60
+ children: values.map((item) => /* @__PURE__ */ jsx("button", {
61
+ type: "button",
62
+ role: "option",
63
+ "aria-selected": item === value,
64
+ onClick: () => onSelect(item),
65
+ className: cn("h-7 rounded-full text-[0.8125rem] font-medium tabular-nums transition-colors hover:bg-(--sidebar-item-hover)", item === value && "bg-primary text-primary-foreground shadow-(--field-shadow) hover:bg-primary"),
66
+ children: item
67
+ }, item))
68
+ });
69
+ }
70
+ function TimePicker({ id, defaultValue = "10:30", className }) {
71
+ const [value, setValue] = React.useState(defaultValue);
72
+ const [hour = "00", minute = "00"] = value.split(":");
73
+ const labels = useUiLabels();
74
+ return /* @__PURE__ */ jsxs(Popover, { children: [/* @__PURE__ */ jsx(PopoverTrigger, {
75
+ asChild: true,
76
+ children: /* @__PURE__ */ jsxs(Button, {
77
+ id,
78
+ type: "button",
79
+ variant: "outline",
80
+ className: cn("w-full justify-start font-normal tabular-nums", className),
81
+ children: [
82
+ /* @__PURE__ */ jsx(AppIcon, {
83
+ icon: ClockCircleLinearIcon,
84
+ "data-icon": "inline-start"
85
+ }),
86
+ hour,
87
+ ":",
88
+ minute
89
+ ]
90
+ })
91
+ }), /* @__PURE__ */ jsxs(PopoverContent, {
92
+ className: "flex w-auto gap-1 p-1",
93
+ align: "start",
94
+ children: [/* @__PURE__ */ jsx(TimeColumn, {
95
+ label: labels.hour,
96
+ values: hours,
97
+ value: hour,
98
+ onSelect: (h) => setValue(`${h}:${minute}`)
99
+ }), /* @__PURE__ */ jsx(TimeColumn, {
100
+ label: labels.minute,
101
+ values: minutes,
102
+ value: minute,
103
+ onSelect: (m) => setValue(`${hour}:${m}`)
104
+ })]
105
+ })] });
106
+ }
107
+ export { DatePicker, TimePicker };
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+ import { Dialog as DialogPrimitive } from "radix-ui";
3
+ declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): React.JSX.Element;
4
+ declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): React.JSX.Element;
5
+ declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): React.JSX.Element;
6
+ declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): React.JSX.Element;
7
+ declare function DialogOverlay({ className, children, instant, ...props }: Omit<React.ComponentProps<typeof DialogPrimitive.Overlay>, "asChild"> & {
8
+ instant?: boolean;
9
+ }): React.JSX.Element;
10
+ declare function DialogContent({ className, children, showCloseButton, instant, ...props }: Omit<React.ComponentProps<typeof DialogPrimitive.Content>, "asChild"> & {
11
+ showCloseButton?: boolean;
12
+ instant?: boolean;
13
+ }): React.JSX.Element;
14
+ declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
15
+ declare function DialogFooter({ className, showCloseButton, children, ...props }: React.ComponentProps<"div"> & {
16
+ showCloseButton?: boolean;
17
+ }): React.JSX.Element;
18
+ declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): React.JSX.Element;
19
+ declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): React.JSX.Element;
20
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
@@ -0,0 +1,121 @@
1
+ "use client";
2
+ import { AppIcon } from "../icons/app-icon.js";
3
+ import { CloseCircleLinearIcon } from "../icons/solar/close-circle-linear.js";
4
+ import { dialogEntry, overlayEntry } from "../motion/motion-tokens.js";
5
+ import { Button } from "./button.js";
6
+ import { useUiLabels } from "../../lib/ui-labels.js";
7
+ import "react";
8
+ import { cn } from "cn";
9
+ import { Dialog as Dialog$1 } from "radix-ui";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
+ import { useReducedMotion } from "motion/react";
12
+ import { div } from "motion/react-m";
13
+ // src/components/ui/dialog.tsx
14
+ function Dialog({ ...props }) {
15
+ return /* @__PURE__ */ jsx(Dialog$1.Root, {
16
+ "data-slot": "dialog",
17
+ ...props
18
+ });
19
+ }
20
+ function DialogTrigger({ ...props }) {
21
+ return /* @__PURE__ */ jsx(Dialog$1.Trigger, {
22
+ "data-slot": "dialog-trigger",
23
+ ...props
24
+ });
25
+ }
26
+ function DialogPortal({ ...props }) {
27
+ return /* @__PURE__ */ jsx(Dialog$1.Portal, {
28
+ "data-slot": "dialog-portal",
29
+ ...props
30
+ });
31
+ }
32
+ function DialogClose({ ...props }) {
33
+ return /* @__PURE__ */ jsx(Dialog$1.Close, {
34
+ "data-slot": "dialog-close",
35
+ ...props
36
+ });
37
+ }
38
+ function DialogOverlay({ className, children, instant = false, ...props }) {
39
+ const reduceMotion = useReducedMotion();
40
+ return /* @__PURE__ */ jsx(Dialog$1.Overlay, {
41
+ "data-slot": "dialog-overlay",
42
+ "data-motion": instant ? "instant" : void 0,
43
+ className: cn("fixed inset-0 isolate z-50 bg-(--overlay) supports-backdrop-filter:backdrop-blur-sm", className),
44
+ ...props,
45
+ asChild: true,
46
+ children: /* @__PURE__ */ jsx(div, {
47
+ ...overlayEntry,
48
+ initial: reduceMotion || instant ? false : overlayEntry.initial,
49
+ children
50
+ })
51
+ });
52
+ }
53
+ function DialogContent({ className, children, showCloseButton = true, instant = false, ...props }) {
54
+ const reduceMotion = useReducedMotion();
55
+ const labels = useUiLabels();
56
+ return /* @__PURE__ */ jsxs(DialogPortal, { children: [/* @__PURE__ */ jsx(DialogOverlay, { instant }), /* @__PURE__ */ jsx(Dialog$1.Content, {
57
+ "data-slot": "dialog-content",
58
+ "data-motion": instant ? "instant" : void 0,
59
+ className: cn("fixed top-1/2 left-1/2 z-50 grid max-h-[calc(100dvh-2rem)] w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-5 overflow-y-auto overscroll-contain rounded-2xl border border-border bg-popover p-6 text-sm text-popover-foreground shadow-xl ring-1 ring-foreground/5 outline-none sm:max-w-md dark:ring-foreground/10", className),
60
+ ...props,
61
+ asChild: true,
62
+ children: /* @__PURE__ */ jsxs(div, {
63
+ ...dialogEntry,
64
+ initial: reduceMotion || instant ? false : dialogEntry.initial,
65
+ children: [children, showCloseButton && /* @__PURE__ */ jsx(Dialog$1.Close, {
66
+ "data-slot": "dialog-close",
67
+ asChild: true,
68
+ children: /* @__PURE__ */ jsxs(Button, {
69
+ variant: "ghost",
70
+ className: "absolute top-4 right-4 size-11 bg-secondary sm:size-9",
71
+ size: "icon-sm",
72
+ children: [/* @__PURE__ */ jsx(AppIcon, {
73
+ icon: CloseCircleLinearIcon,
74
+ size: 16,
75
+ "aria-hidden": "true"
76
+ }), /* @__PURE__ */ jsx("span", {
77
+ className: "sr-only",
78
+ children: labels.close
79
+ })]
80
+ })
81
+ })]
82
+ })
83
+ })] });
84
+ }
85
+ function DialogHeader({ className, ...props }) {
86
+ return /* @__PURE__ */ jsx("div", {
87
+ "data-slot": "dialog-header",
88
+ className: cn("flex flex-col gap-1.5", className),
89
+ ...props
90
+ });
91
+ }
92
+ function DialogFooter({ className, showCloseButton = false, children, ...props }) {
93
+ const labels = useUiLabels();
94
+ return /* @__PURE__ */ jsxs("div", {
95
+ "data-slot": "dialog-footer",
96
+ className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
97
+ ...props,
98
+ children: [children, showCloseButton && /* @__PURE__ */ jsx(Dialog$1.Close, {
99
+ asChild: true,
100
+ children: /* @__PURE__ */ jsx(Button, {
101
+ variant: "outline",
102
+ children: labels.close
103
+ })
104
+ })]
105
+ });
106
+ }
107
+ function DialogTitle({ className, ...props }) {
108
+ return /* @__PURE__ */ jsx(Dialog$1.Title, {
109
+ "data-slot": "dialog-title",
110
+ className: cn("font-heading text-base leading-none font-medium", className),
111
+ ...props
112
+ });
113
+ }
114
+ function DialogDescription({ className, ...props }) {
115
+ return /* @__PURE__ */ jsx(Dialog$1.Description, {
116
+ "data-slot": "dialog-description",
117
+ className: cn("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", className),
118
+ ...props
119
+ });
120
+ }
121
+ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import { Direction } from "radix-ui";
3
+ declare function DirectionProvider({ dir, direction, children, }: React.ComponentProps<typeof Direction.DirectionProvider> & {
4
+ direction?: React.ComponentProps<typeof Direction.DirectionProvider>["dir"];
5
+ }): React.JSX.Element;
6
+ declare const useDirection: typeof Direction.useDirection;
7
+ export { DirectionProvider, useDirection };
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ import "react";
3
+ import { Direction } from "radix-ui";
4
+ import { jsx } from "react/jsx-runtime";
5
+ // src/components/ui/direction.tsx
6
+ function DirectionProvider({ dir, direction, children }) {
7
+ return /* @__PURE__ */ jsx(Direction.DirectionProvider, {
8
+ dir: direction ?? dir,
9
+ children
10
+ });
11
+ }
12
+ var useDirection = Direction.useDirection;
13
+ export { DirectionProvider, useDirection };
@@ -0,0 +1,13 @@
1
+ import * as React from "react";
2
+ import { Drawer as DrawerPrimitive } from "vaul";
3
+ declare function Drawer({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): React.JSX.Element;
4
+ declare function DrawerTrigger({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Trigger>): React.JSX.Element;
5
+ declare function DrawerPortal({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Portal>): React.JSX.Element;
6
+ declare function DrawerClose({ ...props }: React.ComponentProps<typeof DrawerPrimitive.Close>): React.JSX.Element;
7
+ declare function DrawerOverlay({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Overlay>): React.JSX.Element;
8
+ declare function DrawerContent({ className, children, ...props }: React.ComponentProps<typeof DrawerPrimitive.Content>): React.JSX.Element;
9
+ declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
10
+ declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
11
+ declare function DrawerTitle({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Title>): React.JSX.Element;
12
+ declare function DrawerDescription({ className, ...props }: React.ComponentProps<typeof DrawerPrimitive.Description>): React.JSX.Element;
13
+ export { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, };
@@ -0,0 +1,76 @@
1
+ import "react";
2
+ import { cn } from "cn";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { Drawer as Drawer$1 } from "vaul";
5
+ // src/components/ui/drawer.tsx
6
+ function Drawer({ ...props }) {
7
+ return /* @__PURE__ */ jsx(Drawer$1.Root, {
8
+ "data-slot": "drawer",
9
+ ...props
10
+ });
11
+ }
12
+ function DrawerTrigger({ ...props }) {
13
+ return /* @__PURE__ */ jsx(Drawer$1.Trigger, {
14
+ "data-slot": "drawer-trigger",
15
+ ...props
16
+ });
17
+ }
18
+ function DrawerPortal({ ...props }) {
19
+ return /* @__PURE__ */ jsx(Drawer$1.Portal, {
20
+ "data-slot": "drawer-portal",
21
+ ...props
22
+ });
23
+ }
24
+ function DrawerClose({ ...props }) {
25
+ return /* @__PURE__ */ jsx(Drawer$1.Close, {
26
+ "data-slot": "drawer-close",
27
+ ...props
28
+ });
29
+ }
30
+ function DrawerOverlay({ className, ...props }) {
31
+ return /* @__PURE__ */ jsx(Drawer$1.Overlay, {
32
+ "data-slot": "drawer-overlay",
33
+ className: cn("fixed inset-0 z-50 bg-(--overlay) supports-backdrop-filter:backdrop-blur-sm", className),
34
+ ...props
35
+ });
36
+ }
37
+ function DrawerContent({ className, children, ...props }) {
38
+ return /* @__PURE__ */ jsxs(DrawerPortal, {
39
+ "data-slot": "drawer-portal",
40
+ children: [/* @__PURE__ */ jsx(DrawerOverlay, {}), /* @__PURE__ */ jsxs(Drawer$1.Content, {
41
+ "data-slot": "drawer-content",
42
+ className: cn("group/drawer-content fixed z-50 flex h-auto flex-col bg-transparent p-4 text-sm before:absolute before:inset-2 before:-z-10 before:rounded-[min(var(--radius-4xl),24px)] before:border before:border-border before:bg-popover before:shadow-xl data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=left]:sm:max-w-sm data-[vaul-drawer-direction=right]:sm:max-w-sm", className),
43
+ ...props,
44
+ children: [/* @__PURE__ */ jsx("div", { className: "mx-auto mt-4 hidden h-1.5 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), children]
45
+ })]
46
+ });
47
+ }
48
+ function DrawerHeader({ className, ...props }) {
49
+ return /* @__PURE__ */ jsx("div", {
50
+ "data-slot": "drawer-header",
51
+ className: cn("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left", className),
52
+ ...props
53
+ });
54
+ }
55
+ function DrawerFooter({ className, ...props }) {
56
+ return /* @__PURE__ */ jsx("div", {
57
+ "data-slot": "drawer-footer",
58
+ className: cn("mt-auto flex flex-col gap-2 p-4", className),
59
+ ...props
60
+ });
61
+ }
62
+ function DrawerTitle({ className, ...props }) {
63
+ return /* @__PURE__ */ jsx(Drawer$1.Title, {
64
+ "data-slot": "drawer-title",
65
+ className: cn("font-heading text-base font-medium text-foreground", className),
66
+ ...props
67
+ });
68
+ }
69
+ function DrawerDescription({ className, ...props }) {
70
+ return /* @__PURE__ */ jsx(Drawer$1.Description, {
71
+ "data-slot": "drawer-description",
72
+ className: cn("text-sm text-muted-foreground", className),
73
+ ...props
74
+ });
75
+ }
76
+ export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };