@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,25 @@
1
+ import "react";
2
+ import { cn } from "cn";
3
+ import { RadioGroup as RadioGroup$1 } from "radix-ui";
4
+ import { jsx } from "react/jsx-runtime";
5
+ // src/components/ui/radio-group.tsx
6
+ function RadioGroup({ className, ...props }) {
7
+ return /* @__PURE__ */ jsx(RadioGroup$1.Root, {
8
+ "data-slot": "radio-group",
9
+ className: cn("grid w-full gap-3", className),
10
+ ...props
11
+ });
12
+ }
13
+ function RadioGroupItem({ className, ...props }) {
14
+ return /* @__PURE__ */ jsx(RadioGroup$1.Item, {
15
+ "data-slot": "radio-group-item",
16
+ className: cn("group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-2xl border border-input border-transparent bg-(--field-surface) outline-none group-has-[:focus-visible]/field-label:border-transparent group-has-[:focus-visible]/field-label:ring-0 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/30 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary", className),
17
+ ...props,
18
+ children: /* @__PURE__ */ jsx(RadioGroup$1.Indicator, {
19
+ "data-slot": "radio-group-indicator",
20
+ className: "flex size-4 items-center justify-center",
21
+ children: /* @__PURE__ */ jsx("span", { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground dark:size-2.5" })
22
+ })
23
+ });
24
+ }
25
+ export { RadioGroup, RadioGroupItem };
@@ -0,0 +1,7 @@
1
+ import * as ResizablePrimitive from "react-resizable-panels";
2
+ declare function ResizablePanelGroup({ className, ...props }: ResizablePrimitive.GroupProps): import("react").JSX.Element;
3
+ declare function ResizablePanel({ ...props }: ResizablePrimitive.PanelProps): import("react").JSX.Element;
4
+ declare function ResizableHandle({ withHandle, className, ...props }: ResizablePrimitive.SeparatorProps & {
5
+ withHandle?: boolean;
6
+ }): import("react").JSX.Element;
7
+ export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ import { cn } from "cn";
3
+ import { jsx } from "react/jsx-runtime";
4
+ import * as ResizablePrimitive from "react-resizable-panels";
5
+ // src/components/ui/resizable.tsx
6
+ function ResizablePanelGroup({ className, ...props }) {
7
+ return /* @__PURE__ */ jsx(ResizablePrimitive.Group, {
8
+ "data-slot": "resizable-panel-group",
9
+ className: cn("flex h-full w-full aria-[orientation=vertical]:flex-col", className),
10
+ ...props
11
+ });
12
+ }
13
+ function ResizablePanel({ ...props }) {
14
+ return /* @__PURE__ */ jsx(ResizablePrimitive.Panel, {
15
+ "data-slot": "resizable-panel",
16
+ ...props
17
+ });
18
+ }
19
+ function ResizableHandle({ withHandle, className, ...props }) {
20
+ return /* @__PURE__ */ jsx(ResizablePrimitive.Separator, {
21
+ "data-slot": "resizable-handle",
22
+ className: cn("relative flex w-px items-center justify-center bg-border ring-offset-background after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90", className),
23
+ ...props,
24
+ children: withHandle && /* @__PURE__ */ jsx("div", { className: "z-10 flex h-6 w-1 shrink-0 rounded-lg bg-border" })
25
+ });
26
+ }
27
+ export { ResizableHandle, ResizablePanel, ResizablePanelGroup };
@@ -0,0 +1,5 @@
1
+ import * as React from "react";
2
+ import { ScrollArea as ScrollAreaPrimitive } from "radix-ui";
3
+ declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): React.JSX.Element;
4
+ declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): React.JSX.Element;
5
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,35 @@
1
+ import "react";
2
+ import { cn } from "cn";
3
+ import { ScrollArea as ScrollArea$1 } from "radix-ui";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ // src/components/ui/scroll-area.tsx
6
+ function ScrollArea({ className, children, ...props }) {
7
+ return /* @__PURE__ */ jsxs(ScrollArea$1.Root, {
8
+ "data-slot": "scroll-area",
9
+ className: cn("relative", className),
10
+ ...props,
11
+ children: [
12
+ /* @__PURE__ */ jsx(ScrollArea$1.Viewport, {
13
+ "data-slot": "scroll-area-viewport",
14
+ className: "size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",
15
+ children
16
+ }),
17
+ /* @__PURE__ */ jsx(ScrollBar, {}),
18
+ /* @__PURE__ */ jsx(ScrollArea$1.Corner, {})
19
+ ]
20
+ });
21
+ }
22
+ function ScrollBar({ className, orientation = "vertical", ...props }) {
23
+ return /* @__PURE__ */ jsx(ScrollArea$1.ScrollAreaScrollbar, {
24
+ "data-slot": "scroll-area-scrollbar",
25
+ "data-orientation": orientation,
26
+ orientation,
27
+ className: cn("flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent", className),
28
+ ...props,
29
+ children: /* @__PURE__ */ jsx(ScrollArea$1.ScrollAreaThumb, {
30
+ "data-slot": "scroll-area-thumb",
31
+ className: "relative flex-1 rounded-full bg-border"
32
+ })
33
+ });
34
+ }
35
+ export { ScrollArea, ScrollBar };
@@ -0,0 +1,56 @@
1
+ [data-slot="select-content"][data-position="popper"] {
2
+ --select-available-width: var(--radix-select-content-available-width, 100vw);
3
+ --select-trigger-width: var(--radix-select-trigger-width, 0px);
4
+ /* The list is exactly as wide as its trigger; long labels scroll on hover. */
5
+ inline-size: var(--select-trigger-width);
6
+ min-inline-size: var(--select-trigger-width);
7
+ max-inline-size: var(--select-trigger-width);
8
+ border-radius: var(--radius-control);
9
+ box-shadow: var(--field-shadow);
10
+ }
11
+
12
+ [data-slot="select-item"][data-popper] {
13
+ /* A slim highlight with a 2px gap, so adjacent states never touch. */
14
+ margin-block: 1px;
15
+ border-radius: calc(var(--radius-control) - var(--space-1) - 2px);
16
+ }
17
+
18
+ [data-slot="select-item"][data-popper][data-highlighted] {
19
+ background-color: color-mix(in srgb, var(--accent) 35%, var(--popover));
20
+ }
21
+
22
+ [data-slot="select-item"][data-popper][data-state="checked"] {
23
+ background-color: color-mix(in srgb, var(--accent) 65%, var(--popover));
24
+ color: var(--accent-foreground);
25
+ font-weight: 620;
26
+ }
27
+
28
+ [data-slot="select-item"][data-popper][data-state="checked"][data-highlighted] {
29
+ background-color: color-mix(in srgb, var(--accent) 85%, var(--popover));
30
+ }
31
+
32
+ [data-slot="select-item-text"] {
33
+ grid-area: 1 / 1;
34
+ min-inline-size: 0;
35
+ margin-inline-end: var(--space-2);
36
+ overflow: hidden;
37
+ text-overflow: ellipsis;
38
+ white-space: nowrap;
39
+ }
40
+
41
+ /* Hovering an overflowing option slides its text left to reveal the tail. */
42
+ [data-slot="select-item-text"] {
43
+ display: block;
44
+ transition: text-indent 0.2s var(--ease-feedback);
45
+ }
46
+
47
+ @media (hover: hover) and (prefers-reduced-motion: no-preference) {
48
+ [data-slot="select-item"][data-popper]:hover
49
+ [data-slot="select-item-text"][data-overflowing] {
50
+ text-indent: calc(-1 * var(--select-overflow, 0px));
51
+ text-overflow: clip;
52
+ transition-duration: var(--select-scroll-duration, 0.6s);
53
+ transition-timing-function: linear;
54
+ transition-delay: 0.15s;
55
+ }
56
+ }
@@ -0,0 +1,22 @@
1
+ import * as React from "react";
2
+ import { Select as SelectPrimitive } from "radix-ui";
3
+ declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): React.JSX.Element;
4
+ declare function SelectGroup({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): React.JSX.Element;
5
+ declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): React.JSX.Element;
6
+ declare const triggerSizes: {
7
+ readonly default: "h-(--control-size) rounded-lg";
8
+ readonly dense: "h-(--control-size-dense) rounded-(--radius-workspace-control)";
9
+ readonly sm: "h-(--control-size-compact) rounded-(--radius-workspace-control)";
10
+ };
11
+ declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
12
+ size?: keyof typeof triggerSizes;
13
+ }): React.JSX.Element;
14
+ declare function SelectContent({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): React.JSX.Element;
15
+ declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): React.JSX.Element;
16
+ declare function SelectItem({ className, children, count, title, "aria-describedby": describedBy, onFocus, onBlur, onPointerMove, ...props }: React.ComponentProps<typeof SelectPrimitive.Item> & {
17
+ count?: number;
18
+ }): React.JSX.Element;
19
+ declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): React.JSX.Element;
20
+ declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): React.JSX.Element;
21
+ declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): React.JSX.Element;
22
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
@@ -0,0 +1,226 @@
1
+ "use client";
2
+ import { AppIcon } from "../icons/app-icon.js";
3
+ import { AltArrowDownLinearIcon } from "../icons/solar/alt-arrow-down-linear.js";
4
+ import { AltArrowUpLinearIcon } from "../icons/solar/alt-arrow-up-linear.js";
5
+ import * as React from "react";
6
+ import { cn } from "cn";
7
+ import { Select as Select$1 } from "radix-ui";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ import "./text-field.css";
10
+ import { createPortal } from "react-dom";
11
+ import "./select.css";
12
+ // src/components/ui/select.tsx
13
+ var SelectPopperContext = React.createContext(false);
14
+ function Select({ ...props }) {
15
+ return /* @__PURE__ */ jsx(Select$1.Root, {
16
+ "data-slot": "select",
17
+ ...props
18
+ });
19
+ }
20
+ function SelectGroup({ className, ...props }) {
21
+ return /* @__PURE__ */ jsx(Select$1.Group, {
22
+ "data-slot": "select-group",
23
+ className: cn("scroll-my-1.5 p-1", className),
24
+ ...props
25
+ });
26
+ }
27
+ function SelectValue({ ...props }) {
28
+ return /* @__PURE__ */ jsx(Select$1.Value, {
29
+ "data-slot": "select-value",
30
+ ...props
31
+ });
32
+ }
33
+ var triggerSizes = {
34
+ default: "h-(--control-size) rounded-lg",
35
+ dense: "h-(--control-size-dense) rounded-(--radius-workspace-control)",
36
+ sm: "h-(--control-size-compact) rounded-(--radius-workspace-control)"
37
+ };
38
+ function SelectTrigger({ className, size = "dense", children, ...props }) {
39
+ const dense = size === "dense";
40
+ return /* @__PURE__ */ jsxs(Select$1.Trigger, {
41
+ "data-slot": "select-trigger",
42
+ "data-size": size,
43
+ "data-field-focus": dense ? "quiet" : void 0,
44
+ className: cn("flex w-fit min-w-0 items-center justify-between border px-3 whitespace-nowrap transition-[background-color,border-color,box-shadow] duration-150 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 data-placeholder:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 [&_svg]:pointer-events-none [&_svg]:shrink-0", dense ? "field-surface gap-1 border-transparent py-0 text-xs *:data-[slot=select-value]:font-[630]" : "gap-1.5 border-input bg-(--control) py-2 text-sm hover:border-ring focus-visible:border-ring aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", triggerSizes[size], className),
45
+ ...props,
46
+ children: [children, /* @__PURE__ */ jsx(Select$1.Icon, {
47
+ asChild: true,
48
+ children: /* @__PURE__ */ jsx(AppIcon, {
49
+ icon: AltArrowDownLinearIcon,
50
+ size: dense ? 13 : 16,
51
+ "aria-hidden": "true",
52
+ className: "pointer-events-none text-muted-foreground"
53
+ })
54
+ })]
55
+ });
56
+ }
57
+ function SelectContent({ className, children, position = "item-aligned", align, ...props }) {
58
+ const popper = position === "popper";
59
+ return /* @__PURE__ */ jsx(Select$1.Portal, { children: /* @__PURE__ */ jsxs(Select$1.Content, {
60
+ "data-slot": "select-content",
61
+ "data-position": position,
62
+ "data-align-trigger": position === "item-aligned",
63
+ className: cn("relative z-50 max-h-(--radix-select-content-available-height) origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto bg-popover text-popover-foreground duration-150 ease-(--ease-feedback) data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1 data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:duration-100 data-closed:fade-out-0", popper ? "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1" : "min-w-36 rounded-2xl shadow-lg ring-1 ring-foreground/5 dark:ring-foreground/10 data-open:zoom-in-98 data-closed:zoom-out-98", className),
64
+ position,
65
+ align: align ?? (popper ? "start" : "center"),
66
+ ...props,
67
+ children: [
68
+ /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
69
+ /* @__PURE__ */ jsx(Select$1.Viewport, {
70
+ "data-position": position,
71
+ className: popper ? "w-full min-w-0 p-1" : void 0,
72
+ children: /* @__PURE__ */ jsx(SelectPopperContext, {
73
+ value: popper,
74
+ children
75
+ })
76
+ }),
77
+ /* @__PURE__ */ jsx(SelectScrollDownButton, {})
78
+ ]
79
+ }) });
80
+ }
81
+ function SelectLabel({ className, ...props }) {
82
+ return /* @__PURE__ */ jsx(Select$1.Label, {
83
+ "data-slot": "select-label",
84
+ className: cn("px-2 py-1 text-xs text-muted-foreground", className),
85
+ ...props
86
+ });
87
+ }
88
+ function SelectItemTooltip({ anchor, text }) {
89
+ const tooltip = React.useRef(null);
90
+ React.useLayoutEffect(() => {
91
+ const option = anchor.current?.parentElement;
92
+ const content = tooltip.current;
93
+ if (!option || !content) return;
94
+ const place = () => {
95
+ const { left, right, top, bottom, height } = option.getBoundingClientRect();
96
+ const { offsetWidth, offsetHeight } = content;
97
+ const edge = 8;
98
+ const maxLeft = document.documentElement.clientWidth - offsetWidth - edge;
99
+ let x = right + edge;
100
+ let y = top + (height - offsetHeight) / 2;
101
+ if (x > maxLeft) {
102
+ x = left - offsetWidth - edge;
103
+ if (x < edge) {
104
+ x = Math.min(left, maxLeft);
105
+ y = bottom + edge;
106
+ if (y + offsetHeight + edge > window.innerHeight) y = top - offsetHeight - edge;
107
+ }
108
+ }
109
+ content.style.left = `${Math.max(edge, x)}px`;
110
+ content.style.top = `${Math.max(edge, Math.min(y, window.innerHeight - offsetHeight - edge))}px`;
111
+ };
112
+ place();
113
+ window.addEventListener("resize", place);
114
+ window.addEventListener("scroll", place, true);
115
+ return () => {
116
+ window.removeEventListener("resize", place);
117
+ window.removeEventListener("scroll", place, true);
118
+ };
119
+ }, [anchor, text]);
120
+ return createPortal(/* @__PURE__ */ jsx("span", {
121
+ ref: tooltip,
122
+ role: "tooltip",
123
+ "data-slot": "select-item-tooltip",
124
+ className: "pointer-events-none fixed z-[60] w-max max-w-[min(18rem,calc(100vw-16px))] rounded-xl bg-foreground px-3 py-1.5 text-xs wrap-anywhere text-background",
125
+ children: text
126
+ }), document.body);
127
+ }
128
+ function SelectItem({ className, children, count, title, "aria-describedby": describedBy, onFocus, onBlur, onPointerMove, ...props }) {
129
+ const popper = React.useContext(SelectPopperContext);
130
+ const clip = React.useRef(null);
131
+ const countId = React.useId();
132
+ const [overflowText, setOverflowText] = React.useState("");
133
+ const [keyboardFocus, setKeyboardFocus] = React.useState(false);
134
+ const hasCount = popper && count !== void 0;
135
+ React.useLayoutEffect(() => {
136
+ const viewport = clip.current;
137
+ if (!viewport) return;
138
+ const measure = () => {
139
+ const overflow = viewport.scrollWidth - viewport.clientWidth;
140
+ const overflowing = viewport.clientWidth > 0 && overflow > 0;
141
+ viewport.style.setProperty("--select-overflow", `${overflow}px`);
142
+ viewport.style.setProperty("--select-scroll-duration", `${Math.max(.4, overflow / 45).toFixed(2)}s`);
143
+ setOverflowText(overflowing ? viewport.textContent ?? "" : "");
144
+ };
145
+ measure();
146
+ const observer = new ResizeObserver(measure);
147
+ observer.observe(viewport);
148
+ document.fonts.ready.then(() => {
149
+ if (viewport.isConnected) measure();
150
+ });
151
+ return () => observer.disconnect();
152
+ }, [children, popper]);
153
+ return /* @__PURE__ */ jsxs(Select$1.Item, {
154
+ "data-slot": "select-item",
155
+ "data-popper": popper || void 0,
156
+ className: cn("relative w-full cursor-default items-center py-1.5 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0", popper ? "grid min-h-6 grid-cols-[minmax(0,1fr)_auto] px-2.5 py-0.5 text-[0.8125rem]" : "flex min-h-7 gap-2 rounded-xl pr-2 pl-2 focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", className),
157
+ "aria-describedby": hasCount ? [describedBy, countId].filter(Boolean).join(" ") : describedBy,
158
+ title: title ?? (overflowText || void 0),
159
+ onFocus: (event) => {
160
+ onFocus?.(event);
161
+ if (popper) setKeyboardFocus(event.currentTarget.matches(":focus-visible"));
162
+ },
163
+ onBlur: (event) => {
164
+ onBlur?.(event);
165
+ setKeyboardFocus(false);
166
+ },
167
+ onPointerMove: (event) => {
168
+ onPointerMove?.(event);
169
+ if (event.pointerType === "mouse") setKeyboardFocus(false);
170
+ },
171
+ ...props,
172
+ children: [
173
+ popper ? /* @__PURE__ */ jsx(Select$1.ItemText, {
174
+ ref: clip,
175
+ "data-slot": "select-item-text",
176
+ "data-overflowing": Boolean(overflowText) || void 0,
177
+ children: /* @__PURE__ */ jsx("span", {
178
+ "data-slot": "select-item-label",
179
+ children
180
+ })
181
+ }) : /* @__PURE__ */ jsx(Select$1.ItemText, { children }),
182
+ hasCount && /* @__PURE__ */ jsx("span", {
183
+ id: countId,
184
+ "data-slot": "select-item-count",
185
+ className: "col-start-2 row-start-1 me-2 text-right text-xs text-muted-foreground tabular-nums",
186
+ children: count
187
+ }),
188
+ keyboardFocus && overflowText && /* @__PURE__ */ jsx(SelectItemTooltip, {
189
+ anchor: clip,
190
+ text: overflowText
191
+ })
192
+ ]
193
+ });
194
+ }
195
+ function SelectSeparator({ className, ...props }) {
196
+ return /* @__PURE__ */ jsx(Select$1.Separator, {
197
+ "data-slot": "select-separator",
198
+ className: cn("pointer-events-none -mx-1 my-1 h-px bg-border", className),
199
+ ...props
200
+ });
201
+ }
202
+ function SelectScrollUpButton({ className, ...props }) {
203
+ return /* @__PURE__ */ jsx(Select$1.ScrollUpButton, {
204
+ "data-slot": "select-scroll-up-button",
205
+ className: cn("z-10 flex cursor-default items-center justify-center bg-popover py-1", className),
206
+ ...props,
207
+ children: /* @__PURE__ */ jsx(AppIcon, {
208
+ icon: AltArrowUpLinearIcon,
209
+ size: 16,
210
+ "aria-hidden": "true"
211
+ })
212
+ });
213
+ }
214
+ function SelectScrollDownButton({ className, ...props }) {
215
+ return /* @__PURE__ */ jsx(Select$1.ScrollDownButton, {
216
+ "data-slot": "select-scroll-down-button",
217
+ className: cn("z-10 flex cursor-default items-center justify-center bg-popover py-1", className),
218
+ ...props,
219
+ children: /* @__PURE__ */ jsx(AppIcon, {
220
+ icon: AltArrowDownLinearIcon,
221
+ size: 16,
222
+ "aria-hidden": "true"
223
+ })
224
+ });
225
+ }
226
+ export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue };
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import { Separator as SeparatorPrimitive } from "radix-ui";
3
+ declare function Separator({ className, orientation, decorative, ...props }: React.ComponentProps<typeof SeparatorPrimitive.Root>): React.JSX.Element;
4
+ export { Separator };
@@ -0,0 +1,15 @@
1
+ import "react";
2
+ import { cn } from "cn";
3
+ import { Separator as Separator$1 } from "radix-ui";
4
+ import { jsx } from "react/jsx-runtime";
5
+ // src/components/ui/separator.tsx
6
+ function Separator({ className, orientation = "horizontal", decorative = true, ...props }) {
7
+ return /* @__PURE__ */ jsx(Separator$1.Root, {
8
+ "data-slot": "separator",
9
+ decorative,
10
+ orientation,
11
+ className: cn("shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch", className),
12
+ ...props
13
+ });
14
+ }
15
+ export { Separator };
@@ -0,0 +1,14 @@
1
+ import * as React from "react";
2
+ import { Dialog as SheetPrimitive } from "radix-ui";
3
+ declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): React.JSX.Element;
4
+ declare function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>): React.JSX.Element;
5
+ declare function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>): React.JSX.Element;
6
+ declare function SheetContent({ className, children, side, showCloseButton, ...props }: React.ComponentProps<typeof SheetPrimitive.Content> & {
7
+ side?: "top" | "right" | "bottom" | "left";
8
+ showCloseButton?: boolean;
9
+ }): React.JSX.Element;
10
+ declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
11
+ declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
12
+ declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>): React.JSX.Element;
13
+ declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Description>): React.JSX.Element;
14
+ export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
@@ -0,0 +1,94 @@
1
+ import { Button } from "./button.js";
2
+ import { IconPlaceholder } from "../icons/icon-placeholder.js";
3
+ import "react";
4
+ import { cn } from "cn";
5
+ import { Dialog } from "radix-ui";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ // src/components/ui/sheet.tsx
8
+ function Sheet({ ...props }) {
9
+ return /* @__PURE__ */ jsx(Dialog.Root, {
10
+ "data-slot": "sheet",
11
+ ...props
12
+ });
13
+ }
14
+ function SheetTrigger({ ...props }) {
15
+ return /* @__PURE__ */ jsx(Dialog.Trigger, {
16
+ "data-slot": "sheet-trigger",
17
+ ...props
18
+ });
19
+ }
20
+ function SheetClose({ ...props }) {
21
+ return /* @__PURE__ */ jsx(Dialog.Close, {
22
+ "data-slot": "sheet-close",
23
+ ...props
24
+ });
25
+ }
26
+ function SheetPortal({ ...props }) {
27
+ return /* @__PURE__ */ jsx(Dialog.Portal, {
28
+ "data-slot": "sheet-portal",
29
+ ...props
30
+ });
31
+ }
32
+ function SheetOverlay({ className, ...props }) {
33
+ return /* @__PURE__ */ jsx(Dialog.Overlay, {
34
+ "data-slot": "sheet-overlay",
35
+ className: cn("fixed inset-0 z-50 bg-(--overlay) duration-100 supports-backdrop-filter:backdrop-blur-sm data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0", className),
36
+ ...props
37
+ });
38
+ }
39
+ function SheetContent({ className, children, side = "right", showCloseButton = true, ...props }) {
40
+ return /* @__PURE__ */ jsxs(SheetPortal, { children: [/* @__PURE__ */ jsx(SheetOverlay, {}), /* @__PURE__ */ jsxs(Dialog.Content, {
41
+ "data-slot": "sheet-content",
42
+ "data-side": side,
43
+ className: cn("fixed z-50 flex flex-col bg-popover bg-clip-padding text-sm text-popover-foreground shadow-xl transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10", className),
44
+ ...props,
45
+ children: [children, showCloseButton && /* @__PURE__ */ jsx(Dialog.Close, {
46
+ "data-slot": "sheet-close",
47
+ asChild: true,
48
+ children: /* @__PURE__ */ jsxs(Button, {
49
+ variant: "ghost",
50
+ className: "absolute top-4 right-4 bg-secondary",
51
+ size: "icon-sm",
52
+ children: [/* @__PURE__ */ jsx(IconPlaceholder, {
53
+ lucide: "XIcon",
54
+ tabler: "IconX",
55
+ hugeicons: "Cancel01Icon",
56
+ phosphor: "XIcon",
57
+ remixicon: "RiCloseLine"
58
+ }), /* @__PURE__ */ jsx("span", {
59
+ className: "sr-only",
60
+ children: "Close"
61
+ })]
62
+ })
63
+ })]
64
+ })] });
65
+ }
66
+ function SheetHeader({ className, ...props }) {
67
+ return /* @__PURE__ */ jsx("div", {
68
+ "data-slot": "sheet-header",
69
+ className: cn("flex flex-col gap-1.5 p-6", className),
70
+ ...props
71
+ });
72
+ }
73
+ function SheetFooter({ className, ...props }) {
74
+ return /* @__PURE__ */ jsx("div", {
75
+ "data-slot": "sheet-footer",
76
+ className: cn("mt-auto flex flex-col gap-2 p-6", className),
77
+ ...props
78
+ });
79
+ }
80
+ function SheetTitle({ className, ...props }) {
81
+ return /* @__PURE__ */ jsx(Dialog.Title, {
82
+ "data-slot": "sheet-title",
83
+ className: cn("font-heading text-base font-medium text-foreground", className),
84
+ ...props
85
+ });
86
+ }
87
+ function SheetDescription({ className, ...props }) {
88
+ return /* @__PURE__ */ jsx(Dialog.Description, {
89
+ "data-slot": "sheet-description",
90
+ className: cn("text-sm text-muted-foreground", className),
91
+ ...props
92
+ });
93
+ }
94
+ export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger };
@@ -0,0 +1,69 @@
1
+ import * as React from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ import { Button } from "./button.js";
4
+ import { Input } from "./input.js";
5
+ import { Separator } from "./separator.js";
6
+ import { TooltipContent } from "./tooltip.js";
7
+ type SidebarContextProps = {
8
+ state: "expanded" | "collapsed";
9
+ open: boolean;
10
+ setOpen: (open: boolean) => void;
11
+ openMobile: boolean;
12
+ setOpenMobile: (open: boolean) => void;
13
+ isMobile: boolean;
14
+ toggleSidebar: () => void;
15
+ };
16
+ declare function useSidebar(): SidebarContextProps;
17
+ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<"div"> & {
18
+ defaultOpen?: boolean;
19
+ open?: boolean;
20
+ onOpenChange?: (open: boolean) => void;
21
+ }): React.JSX.Element;
22
+ declare function Sidebar({ side, variant, collapsible, className, children, dir, ...props }: React.ComponentProps<"div"> & {
23
+ side?: "left" | "right";
24
+ variant?: "sidebar" | "floating" | "inset";
25
+ collapsible?: "offcanvas" | "icon" | "none";
26
+ }): React.JSX.Element;
27
+ declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): React.JSX.Element;
28
+ declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">): React.JSX.Element;
29
+ declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">): React.JSX.Element;
30
+ declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): React.JSX.Element;
31
+ declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
32
+ declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
33
+ declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): React.JSX.Element;
34
+ declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
35
+ declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
36
+ declare function SidebarGroupLabel({ className, asChild, ...props }: React.ComponentProps<"div"> & {
37
+ asChild?: boolean;
38
+ }): React.JSX.Element;
39
+ declare function SidebarGroupAction({ className, asChild, ...props }: React.ComponentProps<"button"> & {
40
+ asChild?: boolean;
41
+ }): React.JSX.Element;
42
+ declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
43
+ declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): React.JSX.Element;
44
+ declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
45
+ declare const sidebarMenuButtonVariants: (props?: ({
46
+ variant?: "outline" | "default" | null | undefined;
47
+ size?: "default" | "sm" | "lg" | null | undefined;
48
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
49
+ declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React.ComponentProps<"button"> & {
50
+ asChild?: boolean;
51
+ isActive?: boolean;
52
+ tooltip?: string | React.ComponentProps<typeof TooltipContent>;
53
+ } & VariantProps<typeof sidebarMenuButtonVariants>): React.JSX.Element;
54
+ declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentProps<"button"> & {
55
+ asChild?: boolean;
56
+ showOnHover?: boolean;
57
+ }): React.JSX.Element;
58
+ declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
59
+ declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<"div"> & {
60
+ showIcon?: boolean;
61
+ }): React.JSX.Element;
62
+ declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">): React.JSX.Element;
63
+ declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
64
+ declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React.ComponentProps<"a"> & {
65
+ asChild?: boolean;
66
+ size?: "sm" | "md";
67
+ isActive?: boolean;
68
+ }): React.JSX.Element;
69
+ export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, };