@thalavaisankar/atoms 0.0.0-stage → 0.2.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 (769) hide show
  1. package/LICENSE +24 -0
  2. package/README.md +196 -2
  3. package/THIRD_PARTY_NOTICES.md +275 -0
  4. package/dist/blocks/index.d.mts +2 -0
  5. package/dist/blocks/index.mjs +1 -0
  6. package/dist/blocks/index.mjs.map +1 -0
  7. package/dist/components/ui/accordion/accordion.mjs +194 -0
  8. package/dist/components/ui/accordion/accordion.mjs.map +1 -0
  9. package/dist/components/ui/accordion/index.mjs +15 -0
  10. package/dist/components/ui/accordion/index.mjs.map +1 -0
  11. package/dist/components/ui/activity-feed/activity-feed.mjs +287 -0
  12. package/dist/components/ui/activity-feed/activity-feed.mjs.map +1 -0
  13. package/dist/components/ui/activity-feed/index.mjs +39 -0
  14. package/dist/components/ui/activity-feed/index.mjs.map +1 -0
  15. package/dist/components/ui/alert/alert.mjs +128 -0
  16. package/dist/components/ui/alert/alert.mjs.map +1 -0
  17. package/dist/components/ui/alert/index.mjs +17 -0
  18. package/dist/components/ui/alert/index.mjs.map +1 -0
  19. package/dist/components/ui/animated-label/animated-label.mjs +89 -0
  20. package/dist/components/ui/animated-label/animated-label.mjs.map +1 -0
  21. package/dist/components/ui/animated-label/index.mjs +9 -0
  22. package/dist/components/ui/animated-label/index.mjs.map +1 -0
  23. package/dist/components/ui/animated-number/animated-number.mjs +101 -0
  24. package/dist/components/ui/animated-number/animated-number.mjs.map +1 -0
  25. package/dist/components/ui/animated-number/index.mjs +5 -0
  26. package/dist/components/ui/animated-number/index.mjs.map +1 -0
  27. package/dist/components/ui/avatar/avatar.mjs +130 -0
  28. package/dist/components/ui/avatar/avatar.mjs.map +1 -0
  29. package/dist/components/ui/avatar/index.mjs +17 -0
  30. package/dist/components/ui/avatar/index.mjs.map +1 -0
  31. package/dist/components/ui/avatar-group/avatar-group.mjs +49 -0
  32. package/dist/components/ui/avatar-group/avatar-group.mjs.map +1 -0
  33. package/dist/components/ui/avatar-group/index.mjs +5 -0
  34. package/dist/components/ui/avatar-group/index.mjs.map +1 -0
  35. package/dist/components/ui/badge/badge-motion.mjs +108 -0
  36. package/dist/components/ui/badge/badge-motion.mjs.map +1 -0
  37. package/dist/components/ui/badge/badge.mjs +314 -0
  38. package/dist/components/ui/badge/badge.mjs.map +1 -0
  39. package/dist/components/ui/badge/index.mjs +27 -0
  40. package/dist/components/ui/badge/index.mjs.map +1 -0
  41. package/dist/components/ui/badge/readable-ink.mjs +36 -0
  42. package/dist/components/ui/badge/readable-ink.mjs.map +1 -0
  43. package/dist/components/ui/badge-group/badge-group.mjs +132 -0
  44. package/dist/components/ui/badge-group/badge-group.mjs.map +1 -0
  45. package/dist/components/ui/badge-group/index.mjs +5 -0
  46. package/dist/components/ui/badge-group/index.mjs.map +1 -0
  47. package/dist/components/ui/breadcrumb/breadcrumb.mjs +108 -0
  48. package/dist/components/ui/breadcrumb/breadcrumb.mjs.map +1 -0
  49. package/dist/components/ui/breadcrumb/index.mjs +19 -0
  50. package/dist/components/ui/breadcrumb/index.mjs.map +1 -0
  51. package/dist/components/ui/button/button-variants.mjs +80 -0
  52. package/dist/components/ui/button/button-variants.mjs.map +1 -0
  53. package/dist/components/ui/button/button.mjs +74 -0
  54. package/dist/components/ui/button/button.mjs.map +1 -0
  55. package/dist/components/ui/button/index.mjs +17 -0
  56. package/dist/components/ui/button/index.mjs.map +1 -0
  57. package/dist/components/ui/button/social-button.mjs +45 -0
  58. package/dist/components/ui/button/social-button.mjs.map +1 -0
  59. package/dist/components/ui/button/social-logos.mjs +179 -0
  60. package/dist/components/ui/button/social-logos.mjs.map +1 -0
  61. package/dist/components/ui/button/split-button.mjs +72 -0
  62. package/dist/components/ui/button/split-button.mjs.map +1 -0
  63. package/dist/components/ui/button-group/button-group.mjs +58 -0
  64. package/dist/components/ui/button-group/button-group.mjs.map +1 -0
  65. package/dist/components/ui/button-group/index.mjs +11 -0
  66. package/dist/components/ui/button-group/index.mjs.map +1 -0
  67. package/dist/components/ui/card/card.mjs +131 -0
  68. package/dist/components/ui/card/card.mjs.map +1 -0
  69. package/dist/components/ui/card/index.mjs +23 -0
  70. package/dist/components/ui/card/index.mjs.map +1 -0
  71. package/dist/components/ui/chart/bar-list.mjs +87 -0
  72. package/dist/components/ui/chart/bar-list.mjs.map +1 -0
  73. package/dist/components/ui/chart/chart-colors.mjs +68 -0
  74. package/dist/components/ui/chart/chart-colors.mjs.map +1 -0
  75. package/dist/components/ui/chart/chart-geometry.mjs +152 -0
  76. package/dist/components/ui/chart/chart-geometry.mjs.map +1 -0
  77. package/dist/components/ui/chart/chart-specialized.mjs +194 -0
  78. package/dist/components/ui/chart/chart-specialized.mjs.map +1 -0
  79. package/dist/components/ui/chart/chart.mjs +648 -0
  80. package/dist/components/ui/chart/chart.mjs.map +1 -0
  81. package/dist/components/ui/chart/index.mjs +88 -0
  82. package/dist/components/ui/chart/index.mjs.map +1 -0
  83. package/dist/components/ui/chart/radial-meter.mjs +142 -0
  84. package/dist/components/ui/chart/radial-meter.mjs.map +1 -0
  85. package/dist/components/ui/chart/types.mjs +1 -0
  86. package/dist/components/ui/chart/types.mjs.map +1 -0
  87. package/dist/components/ui/checkbox/checkbox.mjs +183 -0
  88. package/dist/components/ui/checkbox/checkbox.mjs.map +1 -0
  89. package/dist/components/ui/checkbox/index.mjs +11 -0
  90. package/dist/components/ui/checkbox/index.mjs.map +1 -0
  91. package/dist/components/ui/checklist/checklist.mjs +353 -0
  92. package/dist/components/ui/checklist/checklist.mjs.map +1 -0
  93. package/dist/components/ui/checklist/index.mjs +33 -0
  94. package/dist/components/ui/checklist/index.mjs.map +1 -0
  95. package/dist/components/ui/chip/chip.mjs +202 -0
  96. package/dist/components/ui/chip/chip.mjs.map +1 -0
  97. package/dist/components/ui/chip/index.mjs +13 -0
  98. package/dist/components/ui/chip/index.mjs.map +1 -0
  99. package/dist/components/ui/chip-group/chip-group.mjs +204 -0
  100. package/dist/components/ui/chip-group/chip-group.mjs.map +1 -0
  101. package/dist/components/ui/chip-group/index.mjs +11 -0
  102. package/dist/components/ui/chip-group/index.mjs.map +1 -0
  103. package/dist/components/ui/code-snippet/code-highlighter.mjs +16 -0
  104. package/dist/components/ui/code-snippet/code-highlighter.mjs.map +1 -0
  105. package/dist/components/ui/code-snippet/code-snippet.mjs +437 -0
  106. package/dist/components/ui/code-snippet/code-snippet.mjs.map +1 -0
  107. package/dist/components/ui/code-snippet/index.mjs +17 -0
  108. package/dist/components/ui/code-snippet/index.mjs.map +1 -0
  109. package/dist/components/ui/code-snippet/labels.mjs +16 -0
  110. package/dist/components/ui/code-snippet/labels.mjs.map +1 -0
  111. package/dist/components/ui/code-snippet/tokenize.mjs +715 -0
  112. package/dist/components/ui/code-snippet/tokenize.mjs.map +1 -0
  113. package/dist/components/ui/code-snippet/types.mjs +1 -0
  114. package/dist/components/ui/code-snippet/types.mjs.map +1 -0
  115. package/dist/components/ui/collapsible/collapsible.mjs +85 -0
  116. package/dist/components/ui/collapsible/collapsible.mjs.map +1 -0
  117. package/dist/components/ui/collapsible/index.mjs +15 -0
  118. package/dist/components/ui/collapsible/index.mjs.map +1 -0
  119. package/dist/components/ui/color-picker/color-picker.mjs +852 -0
  120. package/dist/components/ui/color-picker/color-picker.mjs.map +1 -0
  121. package/dist/components/ui/color-picker/index.mjs +47 -0
  122. package/dist/components/ui/color-picker/index.mjs.map +1 -0
  123. package/dist/components/ui/combobox/combobox.mjs +745 -0
  124. package/dist/components/ui/combobox/combobox.mjs.map +1 -0
  125. package/dist/components/ui/combobox/index.mjs +27 -0
  126. package/dist/components/ui/combobox/index.mjs.map +1 -0
  127. package/dist/components/ui/command/command.mjs +439 -0
  128. package/dist/components/ui/command/command.mjs.map +1 -0
  129. package/dist/components/ui/command/index.mjs +31 -0
  130. package/dist/components/ui/command/index.mjs.map +1 -0
  131. package/dist/components/ui/compare-slider/compare-slider.mjs +335 -0
  132. package/dist/components/ui/compare-slider/compare-slider.mjs.map +1 -0
  133. package/dist/components/ui/compare-slider/index.mjs +17 -0
  134. package/dist/components/ui/compare-slider/index.mjs.map +1 -0
  135. package/dist/components/ui/context-menu/context-menu.mjs +184 -0
  136. package/dist/components/ui/context-menu/context-menu.mjs.map +1 -0
  137. package/dist/components/ui/context-menu/index.mjs +37 -0
  138. package/dist/components/ui/context-menu/index.mjs.map +1 -0
  139. package/dist/components/ui/data-table/active-filters.mjs +69 -0
  140. package/dist/components/ui/data-table/active-filters.mjs.map +1 -0
  141. package/dist/components/ui/data-table/body-row.mjs +118 -0
  142. package/dist/components/ui/data-table/body-row.mjs.map +1 -0
  143. package/dist/components/ui/data-table/cards.mjs +76 -0
  144. package/dist/components/ui/data-table/cards.mjs.map +1 -0
  145. package/dist/components/ui/data-table/data-table.mjs +680 -0
  146. package/dist/components/ui/data-table/data-table.mjs.map +1 -0
  147. package/dist/components/ui/data-table/empty.mjs +26 -0
  148. package/dist/components/ui/data-table/empty.mjs.map +1 -0
  149. package/dist/components/ui/data-table/expand.mjs +70 -0
  150. package/dist/components/ui/data-table/expand.mjs.map +1 -0
  151. package/dist/components/ui/data-table/faceted-filter.mjs +112 -0
  152. package/dist/components/ui/data-table/faceted-filter.mjs.map +1 -0
  153. package/dist/components/ui/data-table/features.mjs +96 -0
  154. package/dist/components/ui/data-table/features.mjs.map +1 -0
  155. package/dist/components/ui/data-table/grip.mjs +37 -0
  156. package/dist/components/ui/data-table/grip.mjs.map +1 -0
  157. package/dist/components/ui/data-table/header-cell.mjs +85 -0
  158. package/dist/components/ui/data-table/header-cell.mjs.map +1 -0
  159. package/dist/components/ui/data-table/index.mjs +55 -0
  160. package/dist/components/ui/data-table/index.mjs.map +1 -0
  161. package/dist/components/ui/data-table/labels.mjs +55 -0
  162. package/dist/components/ui/data-table/labels.mjs.map +1 -0
  163. package/dist/components/ui/data-table/load-more.mjs +56 -0
  164. package/dist/components/ui/data-table/load-more.mjs.map +1 -0
  165. package/dist/components/ui/data-table/move-item.mjs +11 -0
  166. package/dist/components/ui/data-table/move-item.mjs.map +1 -0
  167. package/dist/components/ui/data-table/persist.mjs +65 -0
  168. package/dist/components/ui/data-table/persist.mjs.map +1 -0
  169. package/dist/components/ui/data-table/selection-bar.mjs +51 -0
  170. package/dist/components/ui/data-table/selection-bar.mjs.map +1 -0
  171. package/dist/components/ui/data-table/tabs.mjs +48 -0
  172. package/dist/components/ui/data-table/tabs.mjs.map +1 -0
  173. package/dist/components/ui/data-table/toolbar.mjs +92 -0
  174. package/dist/components/ui/data-table/toolbar.mjs.map +1 -0
  175. package/dist/components/ui/data-table/use-reorder.mjs +239 -0
  176. package/dist/components/ui/data-table/use-reorder.mjs.map +1 -0
  177. package/dist/components/ui/data-table/use-reveal.mjs +24 -0
  178. package/dist/components/ui/data-table/use-reveal.mjs.map +1 -0
  179. package/dist/components/ui/data-table/use-table-state.mjs +38 -0
  180. package/dist/components/ui/data-table/use-table-state.mjs.map +1 -0
  181. package/dist/components/ui/data-table/view-options.mjs +66 -0
  182. package/dist/components/ui/data-table/view-options.mjs.map +1 -0
  183. package/dist/components/ui/date-picker/calendar.mjs +466 -0
  184. package/dist/components/ui/date-picker/calendar.mjs.map +1 -0
  185. package/dist/components/ui/date-picker/date-picker.mjs +366 -0
  186. package/dist/components/ui/date-picker/date-picker.mjs.map +1 -0
  187. package/dist/components/ui/date-picker/index.mjs +17 -0
  188. package/dist/components/ui/date-picker/index.mjs.map +1 -0
  189. package/dist/components/ui/date-picker/presets.mjs +49 -0
  190. package/dist/components/ui/date-picker/presets.mjs.map +1 -0
  191. package/dist/components/ui/description-list/description-list.mjs +40 -0
  192. package/dist/components/ui/description-list/description-list.mjs.map +1 -0
  193. package/dist/components/ui/description-list/index.mjs +15 -0
  194. package/dist/components/ui/description-list/index.mjs.map +1 -0
  195. package/dist/components/ui/dialog/dialog-stepper.mjs +23 -0
  196. package/dist/components/ui/dialog/dialog-stepper.mjs.map +1 -0
  197. package/dist/components/ui/dialog/dialog.mjs +343 -0
  198. package/dist/components/ui/dialog/dialog.mjs.map +1 -0
  199. package/dist/components/ui/dialog/focus-return.mjs +21 -0
  200. package/dist/components/ui/dialog/focus-return.mjs.map +1 -0
  201. package/dist/components/ui/dialog/index.mjs +33 -0
  202. package/dist/components/ui/dialog/index.mjs.map +1 -0
  203. package/dist/components/ui/divider/divider.mjs +130 -0
  204. package/dist/components/ui/divider/divider.mjs.map +1 -0
  205. package/dist/components/ui/divider/index.mjs +6 -0
  206. package/dist/components/ui/divider/index.mjs.map +1 -0
  207. package/dist/components/ui/dock/dock.mjs +444 -0
  208. package/dist/components/ui/dock/dock.mjs.map +1 -0
  209. package/dist/components/ui/dock/index.mjs +19 -0
  210. package/dist/components/ui/dock/index.mjs.map +1 -0
  211. package/dist/components/ui/document-editor/block-actions.mjs +118 -0
  212. package/dist/components/ui/document-editor/block-actions.mjs.map +1 -0
  213. package/dist/components/ui/document-editor/block-commands.mjs +182 -0
  214. package/dist/components/ui/document-editor/block-commands.mjs.map +1 -0
  215. package/dist/components/ui/document-editor/block-handle.mjs +387 -0
  216. package/dist/components/ui/document-editor/block-handle.mjs.map +1 -0
  217. package/dist/components/ui/document-editor/block-morph.mjs +95 -0
  218. package/dist/components/ui/document-editor/block-morph.mjs.map +1 -0
  219. package/dist/components/ui/document-editor/block-selection.mjs +81 -0
  220. package/dist/components/ui/document-editor/block-selection.mjs.map +1 -0
  221. package/dist/components/ui/document-editor/blocks.mjs +30 -0
  222. package/dist/components/ui/document-editor/blocks.mjs.map +1 -0
  223. package/dist/components/ui/document-editor/bubble-menu.mjs +120 -0
  224. package/dist/components/ui/document-editor/bubble-menu.mjs.map +1 -0
  225. package/dist/components/ui/document-editor/code-block.mjs +89 -0
  226. package/dist/components/ui/document-editor/code-block.mjs.map +1 -0
  227. package/dist/components/ui/document-editor/collaboration-types.mjs +9 -0
  228. package/dist/components/ui/document-editor/collaboration-types.mjs.map +1 -0
  229. package/dist/components/ui/document-editor/collaboration.mjs +198 -0
  230. package/dist/components/ui/document-editor/collaboration.mjs.map +1 -0
  231. package/dist/components/ui/document-editor/columns.mjs +52 -0
  232. package/dist/components/ui/document-editor/columns.mjs.map +1 -0
  233. package/dist/components/ui/document-editor/contents.mjs +60 -0
  234. package/dist/components/ui/document-editor/contents.mjs.map +1 -0
  235. package/dist/components/ui/document-editor/date-chip.mjs +115 -0
  236. package/dist/components/ui/document-editor/date-chip.mjs.map +1 -0
  237. package/dist/components/ui/document-editor/date-words.mjs +101 -0
  238. package/dist/components/ui/document-editor/date-words.mjs.map +1 -0
  239. package/dist/components/ui/document-editor/doc-labels.mjs +19 -0
  240. package/dist/components/ui/document-editor/doc-labels.mjs.map +1 -0
  241. package/dist/components/ui/document-editor/document-editor.mjs +496 -0
  242. package/dist/components/ui/document-editor/document-editor.mjs.map +1 -0
  243. package/dist/components/ui/document-editor/emoji-suggest.mjs +81 -0
  244. package/dist/components/ui/document-editor/emoji-suggest.mjs.map +1 -0
  245. package/dist/components/ui/document-editor/focus-mode.mjs +32 -0
  246. package/dist/components/ui/document-editor/focus-mode.mjs.map +1 -0
  247. package/dist/components/ui/document-editor/geometry.mjs +35 -0
  248. package/dist/components/ui/document-editor/geometry.mjs.map +1 -0
  249. package/dist/components/ui/document-editor/ghost-text.mjs +154 -0
  250. package/dist/components/ui/document-editor/ghost-text.mjs.map +1 -0
  251. package/dist/components/ui/document-editor/gliding-caret.mjs +118 -0
  252. package/dist/components/ui/document-editor/gliding-caret.mjs.map +1 -0
  253. package/dist/components/ui/document-editor/headings.mjs +64 -0
  254. package/dist/components/ui/document-editor/headings.mjs.map +1 -0
  255. package/dist/components/ui/document-editor/image.mjs +318 -0
  256. package/dist/components/ui/document-editor/image.mjs.map +1 -0
  257. package/dist/components/ui/document-editor/index.mjs +131 -0
  258. package/dist/components/ui/document-editor/index.mjs.map +1 -0
  259. package/dist/components/ui/document-editor/labels.mjs +96 -0
  260. package/dist/components/ui/document-editor/labels.mjs.map +1 -0
  261. package/dist/components/ui/document-editor/link-card.mjs +138 -0
  262. package/dist/components/ui/document-editor/link-card.mjs.map +1 -0
  263. package/dist/components/ui/document-editor/mentions.mjs +105 -0
  264. package/dist/components/ui/document-editor/mentions.mjs.map +1 -0
  265. package/dist/components/ui/document-editor/outline.mjs +138 -0
  266. package/dist/components/ui/document-editor/outline.mjs.map +1 -0
  267. package/dist/components/ui/document-editor/section-fold.mjs +124 -0
  268. package/dist/components/ui/document-editor/section-fold.mjs.map +1 -0
  269. package/dist/components/ui/document-editor/slash-command.mjs +210 -0
  270. package/dist/components/ui/document-editor/slash-command.mjs.map +1 -0
  271. package/dist/components/ui/document-editor/suggest-list.mjs +187 -0
  272. package/dist/components/ui/document-editor/suggest-list.mjs.map +1 -0
  273. package/dist/components/ui/document-editor/table.mjs +242 -0
  274. package/dist/components/ui/document-editor/table.mjs.map +1 -0
  275. package/dist/components/ui/document-editor/templates.mjs +66 -0
  276. package/dist/components/ui/document-editor/templates.mjs.map +1 -0
  277. package/dist/components/ui/document-editor/toggle.mjs +176 -0
  278. package/dist/components/ui/document-editor/toggle.mjs.map +1 -0
  279. package/dist/components/ui/document-editor/typography-rules.mjs +8 -0
  280. package/dist/components/ui/document-editor/typography-rules.mjs.map +1 -0
  281. package/dist/components/ui/document-editor/use-editor-value.mjs +34 -0
  282. package/dist/components/ui/document-editor/use-editor-value.mjs.map +1 -0
  283. package/dist/components/ui/drawer/drawer-nav.mjs +153 -0
  284. package/dist/components/ui/drawer/drawer-nav.mjs.map +1 -0
  285. package/dist/components/ui/drawer/drawer.mjs +334 -0
  286. package/dist/components/ui/drawer/drawer.mjs.map +1 -0
  287. package/dist/components/ui/drawer/index.mjs +37 -0
  288. package/dist/components/ui/drawer/index.mjs.map +1 -0
  289. package/dist/components/ui/drawer/use-swipe-to-close.mjs +77 -0
  290. package/dist/components/ui/drawer/use-swipe-to-close.mjs.map +1 -0
  291. package/dist/components/ui/dropdown-menu/dropdown-menu.mjs +567 -0
  292. package/dist/components/ui/dropdown-menu/dropdown-menu.mjs.map +1 -0
  293. package/dist/components/ui/dropdown-menu/index.mjs +43 -0
  294. package/dist/components/ui/dropdown-menu/index.mjs.map +1 -0
  295. package/dist/components/ui/editable-text/editable-text.mjs +148 -0
  296. package/dist/components/ui/editable-text/editable-text.mjs.map +1 -0
  297. package/dist/components/ui/editable-text/index.mjs +6 -0
  298. package/dist/components/ui/editable-text/index.mjs.map +1 -0
  299. package/dist/components/ui/emoji-picker/emoji-data.mjs +469 -0
  300. package/dist/components/ui/emoji-picker/emoji-data.mjs.map +1 -0
  301. package/dist/components/ui/emoji-picker/emoji-picker.mjs +464 -0
  302. package/dist/components/ui/emoji-picker/emoji-picker.mjs.map +1 -0
  303. package/dist/components/ui/emoji-picker/index.mjs +19 -0
  304. package/dist/components/ui/emoji-picker/index.mjs.map +1 -0
  305. package/dist/components/ui/empty-state/empty-state.mjs +110 -0
  306. package/dist/components/ui/empty-state/empty-state.mjs.map +1 -0
  307. package/dist/components/ui/empty-state/index.mjs +17 -0
  308. package/dist/components/ui/empty-state/index.mjs.map +1 -0
  309. package/dist/components/ui/event-calendar/calendar-math.mjs +256 -0
  310. package/dist/components/ui/event-calendar/calendar-math.mjs.map +1 -0
  311. package/dist/components/ui/event-calendar/context.mjs +51 -0
  312. package/dist/components/ui/event-calendar/context.mjs.map +1 -0
  313. package/dist/components/ui/event-calendar/editor.mjs +292 -0
  314. package/dist/components/ui/event-calendar/editor.mjs.map +1 -0
  315. package/dist/components/ui/event-calendar/event-block.mjs +55 -0
  316. package/dist/components/ui/event-calendar/event-block.mjs.map +1 -0
  317. package/dist/components/ui/event-calendar/event-calendar.mjs +438 -0
  318. package/dist/components/ui/event-calendar/event-calendar.mjs.map +1 -0
  319. package/dist/components/ui/event-calendar/event-keys.mjs +41 -0
  320. package/dist/components/ui/event-calendar/event-keys.mjs.map +1 -0
  321. package/dist/components/ui/event-calendar/index.mjs +37 -0
  322. package/dist/components/ui/event-calendar/index.mjs.map +1 -0
  323. package/dist/components/ui/event-calendar/month-grid.mjs +207 -0
  324. package/dist/components/ui/event-calendar/month-grid.mjs.map +1 -0
  325. package/dist/components/ui/event-calendar/narrow.mjs +193 -0
  326. package/dist/components/ui/event-calendar/narrow.mjs.map +1 -0
  327. package/dist/components/ui/event-calendar/time-grid.mjs +534 -0
  328. package/dist/components/ui/event-calendar/time-grid.mjs.map +1 -0
  329. package/dist/components/ui/expandable-search/expandable-search.mjs +174 -0
  330. package/dist/components/ui/expandable-search/expandable-search.mjs.map +1 -0
  331. package/dist/components/ui/expandable-search/index.mjs +6 -0
  332. package/dist/components/ui/expandable-search/index.mjs.map +1 -0
  333. package/dist/components/ui/field/field.mjs +444 -0
  334. package/dist/components/ui/field/field.mjs.map +1 -0
  335. package/dist/components/ui/field/index.mjs +21 -0
  336. package/dist/components/ui/field/index.mjs.map +1 -0
  337. package/dist/components/ui/file-card/file-card.mjs +198 -0
  338. package/dist/components/ui/file-card/file-card.mjs.map +1 -0
  339. package/dist/components/ui/file-card/file-icon.mjs +66 -0
  340. package/dist/components/ui/file-card/file-icon.mjs.map +1 -0
  341. package/dist/components/ui/file-card/file-types.mjs +70 -0
  342. package/dist/components/ui/file-card/file-types.mjs.map +1 -0
  343. package/dist/components/ui/file-card/index.mjs +32 -0
  344. package/dist/components/ui/file-card/index.mjs.map +1 -0
  345. package/dist/components/ui/file-preview/context.mjs +77 -0
  346. package/dist/components/ui/file-preview/context.mjs.map +1 -0
  347. package/dist/components/ui/file-preview/file-preview.mjs +865 -0
  348. package/dist/components/ui/file-preview/file-preview.mjs.map +1 -0
  349. package/dist/components/ui/file-preview/index.mjs +56 -0
  350. package/dist/components/ui/file-preview/index.mjs.map +1 -0
  351. package/dist/components/ui/file-preview/pdf.mjs +250 -0
  352. package/dist/components/ui/file-preview/pdf.mjs.map +1 -0
  353. package/dist/components/ui/file-preview/renderers.mjs +257 -0
  354. package/dist/components/ui/file-preview/renderers.mjs.map +1 -0
  355. package/dist/components/ui/file-upload/file-upload.mjs +633 -0
  356. package/dist/components/ui/file-upload/file-upload.mjs.map +1 -0
  357. package/dist/components/ui/file-upload/index.mjs +42 -0
  358. package/dist/components/ui/file-upload/index.mjs.map +1 -0
  359. package/dist/components/ui/file-upload/validate.mjs +111 -0
  360. package/dist/components/ui/file-upload/validate.mjs.map +1 -0
  361. package/dist/components/ui/flag/flag.mjs +39 -0
  362. package/dist/components/ui/flag/flag.mjs.map +1 -0
  363. package/dist/components/ui/flag/index.mjs +7 -0
  364. package/dist/components/ui/flag/index.mjs.map +1 -0
  365. package/dist/components/ui/floating-window/floating-window.mjs +255 -0
  366. package/dist/components/ui/floating-window/floating-window.mjs.map +1 -0
  367. package/dist/components/ui/floating-window/index.mjs +11 -0
  368. package/dist/components/ui/floating-window/index.mjs.map +1 -0
  369. package/dist/components/ui/form/form-section.mjs +87 -0
  370. package/dist/components/ui/form/form-section.mjs.map +1 -0
  371. package/dist/components/ui/form/form.mjs +205 -0
  372. package/dist/components/ui/form/form.mjs.map +1 -0
  373. package/dist/components/ui/form/index.mjs +29 -0
  374. package/dist/components/ui/form/index.mjs.map +1 -0
  375. package/dist/components/ui/globe/globe-data.mjs +9 -0
  376. package/dist/components/ui/globe/globe-data.mjs.map +1 -0
  377. package/dist/components/ui/globe/globe-math.mjs +269 -0
  378. package/dist/components/ui/globe/globe-math.mjs.map +1 -0
  379. package/dist/components/ui/globe/globe.mjs +719 -0
  380. package/dist/components/ui/globe/globe.mjs.map +1 -0
  381. package/dist/components/ui/globe/index.mjs +13 -0
  382. package/dist/components/ui/globe/index.mjs.map +1 -0
  383. package/dist/components/ui/highlight-match/highlight-children.mjs +13 -0
  384. package/dist/components/ui/highlight-match/highlight-children.mjs.map +1 -0
  385. package/dist/components/ui/highlight-match/highlight-match-variants.mjs +17 -0
  386. package/dist/components/ui/highlight-match/highlight-match-variants.mjs.map +1 -0
  387. package/dist/components/ui/highlight-match/highlight-match.mjs +37 -0
  388. package/dist/components/ui/highlight-match/highlight-match.mjs.map +1 -0
  389. package/dist/components/ui/highlight-match/index.mjs +15 -0
  390. package/dist/components/ui/highlight-match/index.mjs.map +1 -0
  391. package/dist/components/ui/highlight-match/match-ranges.mjs +50 -0
  392. package/dist/components/ui/highlight-match/match-ranges.mjs.map +1 -0
  393. package/dist/components/ui/histogram-slider/histogram-slider.mjs +83 -0
  394. package/dist/components/ui/histogram-slider/histogram-slider.mjs.map +1 -0
  395. package/dist/components/ui/histogram-slider/index.mjs +6 -0
  396. package/dist/components/ui/histogram-slider/index.mjs.map +1 -0
  397. package/dist/components/ui/hold-button/hold-button.mjs +258 -0
  398. package/dist/components/ui/hold-button/hold-button.mjs.map +1 -0
  399. package/dist/components/ui/hold-button/index.mjs +6 -0
  400. package/dist/components/ui/hold-button/index.mjs.map +1 -0
  401. package/dist/components/ui/hover-card/hover-card.mjs +111 -0
  402. package/dist/components/ui/hover-card/hover-card.mjs.map +1 -0
  403. package/dist/components/ui/hover-card/index.mjs +21 -0
  404. package/dist/components/ui/hover-card/index.mjs.map +1 -0
  405. package/dist/components/ui/ink-tray/index.mjs +29 -0
  406. package/dist/components/ui/ink-tray/index.mjs.map +1 -0
  407. package/dist/components/ui/ink-tray/ink-tray-art.mjs +68 -0
  408. package/dist/components/ui/ink-tray/ink-tray-art.mjs.map +1 -0
  409. package/dist/components/ui/ink-tray/ink-tray.mjs +350 -0
  410. package/dist/components/ui/ink-tray/ink-tray.mjs.map +1 -0
  411. package/dist/components/ui/input/index.mjs +41 -0
  412. package/dist/components/ui/input/index.mjs.map +1 -0
  413. package/dist/components/ui/input/input.mjs +268 -0
  414. package/dist/components/ui/input/input.mjs.map +1 -0
  415. package/dist/components/ui/input/number-input.mjs +272 -0
  416. package/dist/components/ui/input/number-input.mjs.map +1 -0
  417. package/dist/components/ui/input/password-input.mjs +49 -0
  418. package/dist/components/ui/input/password-input.mjs.map +1 -0
  419. package/dist/components/ui/input/phone-input-countries.mjs +216 -0
  420. package/dist/components/ui/input/phone-input-countries.mjs.map +1 -0
  421. package/dist/components/ui/input/phone-input.mjs +326 -0
  422. package/dist/components/ui/input/phone-input.mjs.map +1 -0
  423. package/dist/components/ui/input/use-controllable-state.mjs +24 -0
  424. package/dist/components/ui/input/use-controllable-state.mjs.map +1 -0
  425. package/dist/components/ui/input/use-hold-repeat.mjs +35 -0
  426. package/dist/components/ui/input/use-hold-repeat.mjs.map +1 -0
  427. package/dist/components/ui/input-group/index.mjs +11 -0
  428. package/dist/components/ui/input-group/index.mjs.map +1 -0
  429. package/dist/components/ui/input-group/input-group.mjs +78 -0
  430. package/dist/components/ui/input-group/input-group.mjs.map +1 -0
  431. package/dist/components/ui/island/index.mjs +23 -0
  432. package/dist/components/ui/island/index.mjs.map +1 -0
  433. package/dist/components/ui/island/island.mjs +328 -0
  434. package/dist/components/ui/island/island.mjs.map +1 -0
  435. package/dist/components/ui/kbd/index.mjs +6 -0
  436. package/dist/components/ui/kbd/index.mjs.map +1 -0
  437. package/dist/components/ui/kbd/kbd.mjs +73 -0
  438. package/dist/components/ui/kbd/kbd.mjs.map +1 -0
  439. package/dist/components/ui/keypad/index.mjs +23 -0
  440. package/dist/components/ui/keypad/index.mjs.map +1 -0
  441. package/dist/components/ui/keypad/keypad.mjs +345 -0
  442. package/dist/components/ui/keypad/keypad.mjs.map +1 -0
  443. package/dist/components/ui/label/index.mjs +7 -0
  444. package/dist/components/ui/label/index.mjs.map +1 -0
  445. package/dist/components/ui/label/label.mjs +117 -0
  446. package/dist/components/ui/label/label.mjs.map +1 -0
  447. package/dist/components/ui/lightbox/index.mjs +47 -0
  448. package/dist/components/ui/lightbox/index.mjs.map +1 -0
  449. package/dist/components/ui/lightbox/labels.mjs +23 -0
  450. package/dist/components/ui/lightbox/labels.mjs.map +1 -0
  451. package/dist/components/ui/lightbox/lightbox.mjs +1359 -0
  452. package/dist/components/ui/lightbox/lightbox.mjs.map +1 -0
  453. package/dist/components/ui/link/index.mjs +6 -0
  454. package/dist/components/ui/link/index.mjs.map +1 -0
  455. package/dist/components/ui/link/link.mjs +64 -0
  456. package/dist/components/ui/link/link.mjs.map +1 -0
  457. package/dist/components/ui/list/index.mjs +35 -0
  458. package/dist/components/ui/list/index.mjs.map +1 -0
  459. package/dist/components/ui/list/list.mjs +505 -0
  460. package/dist/components/ui/list/list.mjs.map +1 -0
  461. package/dist/components/ui/load-more/index.mjs +23 -0
  462. package/dist/components/ui/load-more/index.mjs.map +1 -0
  463. package/dist/components/ui/load-more/load-more.mjs +409 -0
  464. package/dist/components/ui/load-more/load-more.mjs.map +1 -0
  465. package/dist/components/ui/map/index.mjs +27 -0
  466. package/dist/components/ui/map/index.mjs.map +1 -0
  467. package/dist/components/ui/map/map-style.mjs +169 -0
  468. package/dist/components/ui/map/map-style.mjs.map +1 -0
  469. package/dist/components/ui/map/map.mjs +624 -0
  470. package/dist/components/ui/map/map.mjs.map +1 -0
  471. package/dist/components/ui/map-pin/index.mjs +6 -0
  472. package/dist/components/ui/map-pin/index.mjs.map +1 -0
  473. package/dist/components/ui/map-pin/map-pin.mjs +55 -0
  474. package/dist/components/ui/map-pin/map-pin.mjs.map +1 -0
  475. package/dist/components/ui/mention/index.mjs +29 -0
  476. package/dist/components/ui/mention/index.mjs.map +1 -0
  477. package/dist/components/ui/mention/mention.mjs +262 -0
  478. package/dist/components/ui/mention/mention.mjs.map +1 -0
  479. package/dist/components/ui/mention/split-mentions.mjs +24 -0
  480. package/dist/components/ui/mention/split-mentions.mjs.map +1 -0
  481. package/dist/components/ui/menubar/index.mjs +39 -0
  482. package/dist/components/ui/menubar/index.mjs.map +1 -0
  483. package/dist/components/ui/menubar/menubar.mjs +222 -0
  484. package/dist/components/ui/menubar/menubar.mjs.map +1 -0
  485. package/dist/components/ui/meter/index.mjs +21 -0
  486. package/dist/components/ui/meter/index.mjs.map +1 -0
  487. package/dist/components/ui/meter/meter.mjs +167 -0
  488. package/dist/components/ui/meter/meter.mjs.map +1 -0
  489. package/dist/components/ui/multi-select/index.mjs +25 -0
  490. package/dist/components/ui/multi-select/index.mjs.map +1 -0
  491. package/dist/components/ui/multi-select/multi-select.mjs +285 -0
  492. package/dist/components/ui/multi-select/multi-select.mjs.map +1 -0
  493. package/dist/components/ui/navigation-menu/index.mjs +41 -0
  494. package/dist/components/ui/navigation-menu/index.mjs.map +1 -0
  495. package/dist/components/ui/navigation-menu/navigation-menu.mjs +396 -0
  496. package/dist/components/ui/navigation-menu/navigation-menu.mjs.map +1 -0
  497. package/dist/components/ui/notebook-page/index.mjs +15 -0
  498. package/dist/components/ui/notebook-page/index.mjs.map +1 -0
  499. package/dist/components/ui/notebook-page/notebook-page.mjs +162 -0
  500. package/dist/components/ui/notebook-page/notebook-page.mjs.map +1 -0
  501. package/dist/components/ui/notification-inbox/index.mjs +47 -0
  502. package/dist/components/ui/notification-inbox/index.mjs.map +1 -0
  503. package/dist/components/ui/notification-inbox/notification-inbox.mjs +422 -0
  504. package/dist/components/ui/notification-inbox/notification-inbox.mjs.map +1 -0
  505. package/dist/components/ui/number-field/index.mjs +24 -0
  506. package/dist/components/ui/number-field/index.mjs.map +1 -0
  507. package/dist/components/ui/number-field/number-field.mjs +460 -0
  508. package/dist/components/ui/number-field/number-field.mjs.map +1 -0
  509. package/dist/components/ui/number-field/number-format.mjs +48 -0
  510. package/dist/components/ui/number-field/number-format.mjs.map +1 -0
  511. package/dist/components/ui/otp-input/index.mjs +9 -0
  512. package/dist/components/ui/otp-input/index.mjs.map +1 -0
  513. package/dist/components/ui/otp-input/otp-input.mjs +285 -0
  514. package/dist/components/ui/otp-input/otp-input.mjs.map +1 -0
  515. package/dist/components/ui/pager/index.mjs +7 -0
  516. package/dist/components/ui/pager/index.mjs.map +1 -0
  517. package/dist/components/ui/pager/pager.mjs +86 -0
  518. package/dist/components/ui/pager/pager.mjs.map +1 -0
  519. package/dist/components/ui/pagination/index.mjs +23 -0
  520. package/dist/components/ui/pagination/index.mjs.map +1 -0
  521. package/dist/components/ui/pagination/pagination.mjs +210 -0
  522. package/dist/components/ui/pagination/pagination.mjs.map +1 -0
  523. package/dist/components/ui/password-strength/index.mjs +21 -0
  524. package/dist/components/ui/password-strength/index.mjs.map +1 -0
  525. package/dist/components/ui/password-strength/password-rules.mjs +25 -0
  526. package/dist/components/ui/password-strength/password-rules.mjs.map +1 -0
  527. package/dist/components/ui/password-strength/password-strength.mjs +125 -0
  528. package/dist/components/ui/password-strength/password-strength.mjs.map +1 -0
  529. package/dist/components/ui/popover/index.mjs +31 -0
  530. package/dist/components/ui/popover/index.mjs.map +1 -0
  531. package/dist/components/ui/popover/popover.mjs +574 -0
  532. package/dist/components/ui/popover/popover.mjs.map +1 -0
  533. package/dist/components/ui/progress/index.mjs +15 -0
  534. package/dist/components/ui/progress/index.mjs.map +1 -0
  535. package/dist/components/ui/progress/progress.mjs +224 -0
  536. package/dist/components/ui/progress/progress.mjs.map +1 -0
  537. package/dist/components/ui/prose/index.mjs +6 -0
  538. package/dist/components/ui/prose/index.mjs.map +1 -0
  539. package/dist/components/ui/prose/prose.mjs +89 -0
  540. package/dist/components/ui/prose/prose.mjs.map +1 -0
  541. package/dist/components/ui/radio-group/index.mjs +15 -0
  542. package/dist/components/ui/radio-group/index.mjs.map +1 -0
  543. package/dist/components/ui/radio-group/radio-group.mjs +88 -0
  544. package/dist/components/ui/radio-group/radio-group.mjs.map +1 -0
  545. package/dist/components/ui/rating/index.mjs +6 -0
  546. package/dist/components/ui/rating/index.mjs.map +1 -0
  547. package/dist/components/ui/rating/rating.mjs +119 -0
  548. package/dist/components/ui/rating/rating.mjs.map +1 -0
  549. package/dist/components/ui/rich-text-editor/bubble-menu.mjs +120 -0
  550. package/dist/components/ui/rich-text-editor/bubble-menu.mjs.map +1 -0
  551. package/dist/components/ui/rich-text-editor/image-links.mjs +63 -0
  552. package/dist/components/ui/rich-text-editor/image-links.mjs.map +1 -0
  553. package/dist/components/ui/rich-text-editor/index.mjs +37 -0
  554. package/dist/components/ui/rich-text-editor/index.mjs.map +1 -0
  555. package/dist/components/ui/rich-text-editor/labels.mjs +27 -0
  556. package/dist/components/ui/rich-text-editor/labels.mjs.map +1 -0
  557. package/dist/components/ui/rich-text-editor/rich-text-editor.mjs +149 -0
  558. package/dist/components/ui/rich-text-editor/rich-text-editor.mjs.map +1 -0
  559. package/dist/components/ui/rich-text-editor/toolbar.mjs +325 -0
  560. package/dist/components/ui/rich-text-editor/toolbar.mjs.map +1 -0
  561. package/dist/components/ui/save-bar/index.mjs +13 -0
  562. package/dist/components/ui/save-bar/index.mjs.map +1 -0
  563. package/dist/components/ui/save-bar/save-bar.mjs +59 -0
  564. package/dist/components/ui/save-bar/save-bar.mjs.map +1 -0
  565. package/dist/components/ui/scroll-area/index.mjs +6 -0
  566. package/dist/components/ui/scroll-area/index.mjs.map +1 -0
  567. package/dist/components/ui/scroll-area/scroll-area.mjs +148 -0
  568. package/dist/components/ui/scroll-area/scroll-area.mjs.map +1 -0
  569. package/dist/components/ui/scroll-area/use-drag-scroll.mjs +134 -0
  570. package/dist/components/ui/scroll-area/use-drag-scroll.mjs.map +1 -0
  571. package/dist/components/ui/select/index.mjs +23 -0
  572. package/dist/components/ui/select/index.mjs.map +1 -0
  573. package/dist/components/ui/select/select.mjs +216 -0
  574. package/dist/components/ui/select/select.mjs.map +1 -0
  575. package/dist/components/ui/sheet/index.mjs +23 -0
  576. package/dist/components/ui/sheet/index.mjs.map +1 -0
  577. package/dist/components/ui/sheet/sheet.mjs +292 -0
  578. package/dist/components/ui/sheet/sheet.mjs.map +1 -0
  579. package/dist/components/ui/sidebar/index.mjs +122 -0
  580. package/dist/components/ui/sidebar/index.mjs.map +1 -0
  581. package/dist/components/ui/sidebar/sidebar-group.mjs +75 -0
  582. package/dist/components/ui/sidebar/sidebar-group.mjs.map +1 -0
  583. package/dist/components/ui/sidebar/sidebar-item.mjs +199 -0
  584. package/dist/components/ui/sidebar/sidebar-item.mjs.map +1 -0
  585. package/dist/components/ui/sidebar/sidebar-panels.mjs +182 -0
  586. package/dist/components/ui/sidebar/sidebar-panels.mjs.map +1 -0
  587. package/dist/components/ui/sidebar/sidebar-peek.mjs +324 -0
  588. package/dist/components/ui/sidebar/sidebar-peek.mjs.map +1 -0
  589. package/dist/components/ui/sidebar/sidebar-rich.mjs +65 -0
  590. package/dist/components/ui/sidebar/sidebar-rich.mjs.map +1 -0
  591. package/dist/components/ui/sidebar/sidebar-tree.mjs +224 -0
  592. package/dist/components/ui/sidebar/sidebar-tree.mjs.map +1 -0
  593. package/dist/components/ui/sidebar/sidebar.mjs +205 -0
  594. package/dist/components/ui/sidebar/sidebar.mjs.map +1 -0
  595. package/dist/components/ui/sidebar/variants.mjs +396 -0
  596. package/dist/components/ui/sidebar/variants.mjs.map +1 -0
  597. package/dist/components/ui/signature/index.mjs +6 -0
  598. package/dist/components/ui/signature/index.mjs.map +1 -0
  599. package/dist/components/ui/signature/signature.mjs +145 -0
  600. package/dist/components/ui/signature/signature.mjs.map +1 -0
  601. package/dist/components/ui/signature-pad/index.mjs +19 -0
  602. package/dist/components/ui/signature-pad/index.mjs.map +1 -0
  603. package/dist/components/ui/signature-pad/signature-pad.mjs +210 -0
  604. package/dist/components/ui/signature-pad/signature-pad.mjs.map +1 -0
  605. package/dist/components/ui/signature-pad/strokes.mjs +68 -0
  606. package/dist/components/ui/signature-pad/strokes.mjs.map +1 -0
  607. package/dist/components/ui/skeleton/index.mjs +9 -0
  608. package/dist/components/ui/skeleton/index.mjs.map +1 -0
  609. package/dist/components/ui/skeleton/skeleton.mjs +58 -0
  610. package/dist/components/ui/skeleton/skeleton.mjs.map +1 -0
  611. package/dist/components/ui/slide/index.mjs +25 -0
  612. package/dist/components/ui/slide/index.mjs.map +1 -0
  613. package/dist/components/ui/slide/slide.mjs +159 -0
  614. package/dist/components/ui/slide/slide.mjs.map +1 -0
  615. package/dist/components/ui/slider/index.mjs +21 -0
  616. package/dist/components/ui/slider/index.mjs.map +1 -0
  617. package/dist/components/ui/slider/slider-input.mjs +449 -0
  618. package/dist/components/ui/slider/slider-input.mjs.map +1 -0
  619. package/dist/components/ui/slider/slider.mjs +235 -0
  620. package/dist/components/ui/slider/slider.mjs.map +1 -0
  621. package/dist/components/ui/slides/index.mjs +31 -0
  622. package/dist/components/ui/slides/index.mjs.map +1 -0
  623. package/dist/components/ui/slides/slides.mjs +890 -0
  624. package/dist/components/ui/slides/slides.mjs.map +1 -0
  625. package/dist/components/ui/smooth-anchors/index.mjs +17 -0
  626. package/dist/components/ui/smooth-anchors/index.mjs.map +1 -0
  627. package/dist/components/ui/smooth-anchors/smooth-anchors.mjs +75 -0
  628. package/dist/components/ui/smooth-anchors/smooth-anchors.mjs.map +1 -0
  629. package/dist/components/ui/smooth-anchors/smooth-scroll.mjs +87 -0
  630. package/dist/components/ui/smooth-anchors/smooth-scroll.mjs.map +1 -0
  631. package/dist/components/ui/spinner/index.mjs +6 -0
  632. package/dist/components/ui/spinner/index.mjs.map +1 -0
  633. package/dist/components/ui/spinner/spinner.mjs +49 -0
  634. package/dist/components/ui/spinner/spinner.mjs.map +1 -0
  635. package/dist/components/ui/stat/index.mjs +29 -0
  636. package/dist/components/ui/stat/index.mjs.map +1 -0
  637. package/dist/components/ui/stat/stat.mjs +226 -0
  638. package/dist/components/ui/stat/stat.mjs.map +1 -0
  639. package/dist/components/ui/status-bar/index.mjs +17 -0
  640. package/dist/components/ui/status-bar/index.mjs.map +1 -0
  641. package/dist/components/ui/status-bar/status-bar.mjs +96 -0
  642. package/dist/components/ui/status-bar/status-bar.mjs.map +1 -0
  643. package/dist/components/ui/stepper/index.mjs +25 -0
  644. package/dist/components/ui/stepper/index.mjs.map +1 -0
  645. package/dist/components/ui/stepper/stepper.mjs +235 -0
  646. package/dist/components/ui/stepper/stepper.mjs.map +1 -0
  647. package/dist/components/ui/steps/index.mjs +9 -0
  648. package/dist/components/ui/steps/index.mjs.map +1 -0
  649. package/dist/components/ui/steps/steps.mjs +70 -0
  650. package/dist/components/ui/steps/steps.mjs.map +1 -0
  651. package/dist/components/ui/swatch-grid/index.mjs +7 -0
  652. package/dist/components/ui/swatch-grid/index.mjs.map +1 -0
  653. package/dist/components/ui/swatch-grid/swatch-grid.mjs +110 -0
  654. package/dist/components/ui/swatch-grid/swatch-grid.mjs.map +1 -0
  655. package/dist/components/ui/switch/index.mjs +7 -0
  656. package/dist/components/ui/switch/index.mjs.map +1 -0
  657. package/dist/components/ui/switch/switch.mjs +79 -0
  658. package/dist/components/ui/switch/switch.mjs.map +1 -0
  659. package/dist/components/ui/tab-strip/index.mjs +13 -0
  660. package/dist/components/ui/tab-strip/index.mjs.map +1 -0
  661. package/dist/components/ui/tab-strip/tab-strip.mjs +244 -0
  662. package/dist/components/ui/tab-strip/tab-strip.mjs.map +1 -0
  663. package/dist/components/ui/table/index.mjs +27 -0
  664. package/dist/components/ui/table/index.mjs.map +1 -0
  665. package/dist/components/ui/table/table.mjs +290 -0
  666. package/dist/components/ui/table/table.mjs.map +1 -0
  667. package/dist/components/ui/table-of-contents/index.mjs +20 -0
  668. package/dist/components/ui/table-of-contents/index.mjs.map +1 -0
  669. package/dist/components/ui/table-of-contents/scroll-spy.mjs +60 -0
  670. package/dist/components/ui/table-of-contents/scroll-spy.mjs.map +1 -0
  671. package/dist/components/ui/table-of-contents/table-of-contents.mjs +371 -0
  672. package/dist/components/ui/table-of-contents/table-of-contents.mjs.map +1 -0
  673. package/dist/components/ui/table-of-contents/use-headings.mjs +40 -0
  674. package/dist/components/ui/table-of-contents/use-headings.mjs.map +1 -0
  675. package/dist/components/ui/tablet-frame/index.mjs +7 -0
  676. package/dist/components/ui/tablet-frame/index.mjs.map +1 -0
  677. package/dist/components/ui/tablet-frame/tablet-frame.mjs +48 -0
  678. package/dist/components/ui/tablet-frame/tablet-frame.mjs.map +1 -0
  679. package/dist/components/ui/tabs/index.mjs +25 -0
  680. package/dist/components/ui/tabs/index.mjs.map +1 -0
  681. package/dist/components/ui/tabs/tabs.mjs +382 -0
  682. package/dist/components/ui/tabs/tabs.mjs.map +1 -0
  683. package/dist/components/ui/tabs/use-tabs-indicator.mjs +90 -0
  684. package/dist/components/ui/tabs/use-tabs-indicator.mjs.map +1 -0
  685. package/dist/components/ui/tags-input/index.mjs +9 -0
  686. package/dist/components/ui/tags-input/index.mjs.map +1 -0
  687. package/dist/components/ui/tags-input/split.mjs +38 -0
  688. package/dist/components/ui/tags-input/split.mjs.map +1 -0
  689. package/dist/components/ui/tags-input/tags-input.mjs +328 -0
  690. package/dist/components/ui/tags-input/tags-input.mjs.map +1 -0
  691. package/dist/components/ui/terminal/index.mjs +41 -0
  692. package/dist/components/ui/terminal/index.mjs.map +1 -0
  693. package/dist/components/ui/terminal/terminal.mjs +287 -0
  694. package/dist/components/ui/terminal/terminal.mjs.map +1 -0
  695. package/dist/components/ui/textarea/index.mjs +21 -0
  696. package/dist/components/ui/textarea/index.mjs.map +1 -0
  697. package/dist/components/ui/textarea/textarea.mjs +244 -0
  698. package/dist/components/ui/textarea/textarea.mjs.map +1 -0
  699. package/dist/components/ui/theme-provider/index.mjs +6 -0
  700. package/dist/components/ui/theme-provider/index.mjs.map +1 -0
  701. package/dist/components/ui/theme-provider/theme-provider.mjs +70 -0
  702. package/dist/components/ui/theme-provider/theme-provider.mjs.map +1 -0
  703. package/dist/components/ui/toast/index.mjs +19 -0
  704. package/dist/components/ui/toast/index.mjs.map +1 -0
  705. package/dist/components/ui/toast/store.mjs +96 -0
  706. package/dist/components/ui/toast/store.mjs.map +1 -0
  707. package/dist/components/ui/toast/toast.mjs +395 -0
  708. package/dist/components/ui/toast/toast.mjs.map +1 -0
  709. package/dist/components/ui/toggle/index.mjs +13 -0
  710. package/dist/components/ui/toggle/index.mjs.map +1 -0
  711. package/dist/components/ui/toggle/toggle.mjs +123 -0
  712. package/dist/components/ui/toggle/toggle.mjs.map +1 -0
  713. package/dist/components/ui/toggle-group/index.mjs +11 -0
  714. package/dist/components/ui/toggle-group/index.mjs.map +1 -0
  715. package/dist/components/ui/toggle-group/toggle-group.mjs +243 -0
  716. package/dist/components/ui/toggle-group/toggle-group.mjs.map +1 -0
  717. package/dist/components/ui/toggletip/index.mjs +6 -0
  718. package/dist/components/ui/toggletip/index.mjs.map +1 -0
  719. package/dist/components/ui/toggletip/toggletip.mjs +95 -0
  720. package/dist/components/ui/toggletip/toggletip.mjs.map +1 -0
  721. package/dist/components/ui/toolbar/index.mjs +21 -0
  722. package/dist/components/ui/toolbar/index.mjs.map +1 -0
  723. package/dist/components/ui/toolbar/toolbar.mjs +130 -0
  724. package/dist/components/ui/toolbar/toolbar.mjs.map +1 -0
  725. package/dist/components/ui/tooltip/index.mjs +29 -0
  726. package/dist/components/ui/tooltip/index.mjs.map +1 -0
  727. package/dist/components/ui/tooltip/tooltip.mjs +640 -0
  728. package/dist/components/ui/tooltip/tooltip.mjs.map +1 -0
  729. package/dist/components/ui/tree/index.mjs +11 -0
  730. package/dist/components/ui/tree/index.mjs.map +1 -0
  731. package/dist/components/ui/tree/tree.mjs +450 -0
  732. package/dist/components/ui/tree/tree.mjs.map +1 -0
  733. package/dist/index.d.mts +19397 -0
  734. package/dist/index.mjs +157 -0
  735. package/dist/index.mjs.map +1 -0
  736. package/dist/lib/color.mjs +78 -0
  737. package/dist/lib/color.mjs.map +1 -0
  738. package/dist/lib/create-context.mjs +31 -0
  739. package/dist/lib/create-context.mjs.map +1 -0
  740. package/dist/lib/date.mjs +116 -0
  741. package/dist/lib/date.mjs.map +1 -0
  742. package/dist/lib/density.mjs +79 -0
  743. package/dist/lib/density.mjs.map +1 -0
  744. package/dist/lib/field-context.mjs +13 -0
  745. package/dist/lib/field-context.mjs.map +1 -0
  746. package/dist/lib/filter.mjs +28 -0
  747. package/dist/lib/filter.mjs.map +1 -0
  748. package/dist/lib/gesture.mjs +38 -0
  749. package/dist/lib/gesture.mjs.map +1 -0
  750. package/dist/lib/hit-area.mjs +14 -0
  751. package/dist/lib/hit-area.mjs.map +1 -0
  752. package/dist/lib/labels.mjs +27 -0
  753. package/dist/lib/labels.mjs.map +1 -0
  754. package/dist/lib/morph-box.mjs +56 -0
  755. package/dist/lib/morph-box.mjs.map +1 -0
  756. package/dist/lib/motion.mjs +70 -0
  757. package/dist/lib/motion.mjs.map +1 -0
  758. package/dist/lib/pulse.mjs +69 -0
  759. package/dist/lib/pulse.mjs.map +1 -0
  760. package/dist/lib/roving-focus.mjs +74 -0
  761. package/dist/lib/roving-focus.mjs.map +1 -0
  762. package/dist/lib/theme.mjs +67 -0
  763. package/dist/lib/theme.mjs.map +1 -0
  764. package/dist/lib/tv.mjs +11 -0
  765. package/dist/lib/tv.mjs.map +1 -0
  766. package/dist/lib/utils.mjs +82 -0
  767. package/dist/lib/utils.mjs.map +1 -0
  768. package/dist/styles.css +2 -0
  769. package/package.json +133 -4
@@ -0,0 +1,194 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import { Accordion as AccordionPrimitive } from "radix-ui";
4
+ import { CaretDown, Plus } from "atoms-icons";
5
+ import { createContext } from "../../../lib/create-context.mjs";
6
+ import { useDensity } from "../../../lib/density.mjs";
7
+ import { tv } from "../../../lib/tv.mjs";
8
+ const accordionVariants = tv({
9
+ slots: {
10
+ root: "w-full",
11
+ item: "",
12
+ header: "flex",
13
+ trigger: [
14
+ "group/trigger flex flex-1 items-center justify-between gap-4 text-left font-medium text-foreground cursor-pointer",
15
+ "outline-none transition-colors duration-fast ease-out hover:text-foreground/80",
16
+ "focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 focus-visible:ring-offset-background",
17
+ "disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none"
18
+ ],
19
+ icon: "size-4 shrink-0 text-muted-foreground",
20
+ content: [
21
+ "group/content flow-root text-sm text-body",
22
+ "data-[state=open]:animate-disclosure-open data-[state=closed]:animate-disclosure-close"
23
+ ],
24
+ // The answer fades and drops in while the wrapper tweens its height.
25
+ inner: [
26
+ "duration-base ease-out",
27
+ "group-data-[state=open]/content:animate-in group-data-[state=open]/content:fade-in-0 group-data-[state=open]/content:slide-in-from-top-1",
28
+ "group-data-[state=closed]/content:animate-out group-data-[state=closed]/content:fade-out-0"
29
+ ]
30
+ },
31
+ variants: {
32
+ variant: {
33
+ minimal: {
34
+ item: "border-b border-border last:border-b-0"
35
+ },
36
+ card: {
37
+ root: "rounded-xl text-card-foreground shadow-xs ring-1 ring-edge",
38
+ item: "border-b border-border last:border-b-0"
39
+ },
40
+ separated: {
41
+ root: "flex flex-col gap-3",
42
+ item: "rounded-xl text-card-foreground shadow-xs ring-1 ring-edge"
43
+ },
44
+ pill: {
45
+ root: "flex flex-col items-start gap-2",
46
+ // A closed row is a chip that hugs its question; the open one floods to full width.
47
+ // `interpolate-size` lets it tween back from full width to fit-content on close; opening
48
+ // is instant (no width in the open transition list), so Radix measures the answer at its
49
+ // final width.
50
+ item: [
51
+ "interpolate-size w-fit max-w-full rounded-2xl bg-foreground/6",
52
+ "transition-[width,background-color,transform] duration-base ease-out motion-reduce-fade hover:bg-foreground/10",
53
+ "has-[[data-slot=accordion-content]:not([hidden])]:w-full",
54
+ "has-[[data-slot=accordion-content]:not([hidden])]:transition-[background-color,transform]",
55
+ "has-[[data-slot=accordion-content]:not([hidden])]:hover:bg-foreground/6",
56
+ "has-[[data-slot=accordion-content]:not([hidden])]:active:scale-100"
57
+ ],
58
+ header: "rounded-[inherit]",
59
+ trigger: "rounded-[inherit] text-foreground hover:text-foreground transition-[color] duration-fast ease-out",
60
+ icon: "size-6 rounded-full bg-foreground/10 p-1",
61
+ // Zero intrinsic width: the answer never props the chip open while it is measured.
62
+ content: "w-0 min-w-full",
63
+ inner: "px-4 pb-3"
64
+ },
65
+ board: {
66
+ root: "grid grid-cols-1 gap-3 sm:grid-cols-2",
67
+ // The open tile spans every column, so its answer gets a full measure.
68
+ item: [
69
+ "flex flex-col rounded-xl text-card-foreground shadow-xs ring-1 ring-edge",
70
+ "transition-shadow duration-fast ease-out hover:shadow-sm",
71
+ "has-[[data-slot=accordion-content]:not([hidden])]:col-span-full"
72
+ ],
73
+ header: "flex-1",
74
+ // Tiles read top-aligned, so a two-line question keeps its mark on the first line.
75
+ trigger: "items-start",
76
+ icon: "mt-1",
77
+ inner: "max-w-3xl"
78
+ }
79
+ },
80
+ density: {
81
+ compact: {},
82
+ comfortable: {}
83
+ },
84
+ size: {
85
+ md: {},
86
+ lg: {}
87
+ },
88
+ marker: {
89
+ caret: { icon: "caret-turn group-data-[state=open]/trigger:rotate-180" },
90
+ plus: { icon: "caret-turn group-data-[state=open]/trigger:rotate-45" }
91
+ },
92
+ iconPosition: {
93
+ trailing: {},
94
+ leading: {}
95
+ }
96
+ },
97
+ compoundVariants: [
98
+ // Density × size: row height and type.
99
+ { density: "compact", size: "md", class: { trigger: "py-3 text-sm", inner: "pb-3" } },
100
+ { density: "comfortable", size: "md", class: { trigger: "py-4 text-base", inner: "pb-4" } },
101
+ {
102
+ density: "compact",
103
+ size: "lg",
104
+ class: { trigger: "py-5 text-lg font-semibold", inner: "pb-5 text-base", icon: "size-5" }
105
+ },
106
+ {
107
+ density: "comfortable",
108
+ size: "lg",
109
+ class: { trigger: "py-6 text-lg font-semibold", inner: "pb-6 text-base", icon: "size-5" }
110
+ },
111
+ // A leading mark sits right before the question.
112
+ { iconPosition: "leading", class: { trigger: "justify-start gap-3" } },
113
+ // Contained rows are padded; comfortable opens the inset up.
114
+ {
115
+ variant: ["card", "separated", "board"],
116
+ density: "compact",
117
+ class: { trigger: "px-4", inner: "px-4" }
118
+ },
119
+ {
120
+ variant: ["card", "separated", "board"],
121
+ density: "comfortable",
122
+ class: { trigger: "px-5", inner: "px-5" }
123
+ },
124
+ // The pill keeps its chip spacing at every density.
125
+ { variant: "pill", class: { trigger: "gap-2.5 px-4 py-2.5" } }
126
+ ],
127
+ defaultVariants: {
128
+ variant: "minimal",
129
+ density: "compact",
130
+ size: "md",
131
+ marker: "caret",
132
+ iconPosition: "trailing"
133
+ }
134
+ });
135
+ const [AccordionProvider, useAccordionContext] = createContext("Accordion");
136
+ function Accordion({
137
+ className,
138
+ variant = "minimal",
139
+ density,
140
+ size = "md",
141
+ marker = "caret",
142
+ iconPosition = "trailing",
143
+ ...props
144
+ }) {
145
+ const slots = accordionVariants({
146
+ variant,
147
+ density: useDensity(density),
148
+ size,
149
+ marker,
150
+ iconPosition
151
+ });
152
+ return /* @__PURE__ */ jsx(AccordionProvider, { slots, marker, iconPosition, children: /* @__PURE__ */ jsx(AccordionPrimitive.Root, { "data-slot": "accordion", className: slots.root({ className }), ...props }) });
153
+ }
154
+ function AccordionItem({ className, ...props }) {
155
+ const { slots } = useAccordionContext("AccordionItem");
156
+ return /* @__PURE__ */ jsx(
157
+ AccordionPrimitive.Item,
158
+ {
159
+ "data-slot": "accordion-item",
160
+ className: slots.item({ className }),
161
+ ...props
162
+ }
163
+ );
164
+ }
165
+ function AccordionTrigger({ className, children, ...props }) {
166
+ const { slots, marker, iconPosition } = useAccordionContext("AccordionTrigger");
167
+ const Mark = marker === "plus" ? Plus : CaretDown;
168
+ const mark = /* @__PURE__ */ jsx(Mark, { "aria-hidden": true, "data-slot": "accordion-icon", className: slots.icon() });
169
+ return /* @__PURE__ */ jsx(AccordionPrimitive.Header, { "data-slot": "accordion-header", className: slots.header(), children: /* @__PURE__ */ jsxs(
170
+ AccordionPrimitive.Trigger,
171
+ {
172
+ "data-slot": "accordion-trigger",
173
+ className: slots.trigger({ className }),
174
+ ...props,
175
+ children: [
176
+ iconPosition === "leading" && mark,
177
+ children,
178
+ iconPosition === "trailing" && mark
179
+ ]
180
+ }
181
+ ) });
182
+ }
183
+ function AccordionContent({ className, children, ...props }) {
184
+ const { slots } = useAccordionContext("AccordionContent");
185
+ return /* @__PURE__ */ jsx(AccordionPrimitive.Content, { "data-slot": "accordion-content", className: slots.content(), ...props, children: /* @__PURE__ */ jsx("div", { className: slots.inner({ className }), children }) });
186
+ }
187
+ export {
188
+ Accordion,
189
+ AccordionContent,
190
+ AccordionItem,
191
+ AccordionTrigger,
192
+ accordionVariants
193
+ };
194
+ //# sourceMappingURL=accordion.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/ui/accordion/accordion.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport { Accordion as AccordionPrimitive } from \"radix-ui\"\nimport { CaretDown, Plus } from \"atoms-icons\"\n\nimport { createContext } from \"../../../lib/create-context.mjs\"\nimport { useDensity, type Density } from \"../../../lib/density.mjs\"\nimport { tv } from \"../../../lib/tv.mjs\"\n\n/*\n * Slots compose in this order: base → variant → density × size → contained padding / position.\n * tailwind-merge drops an earlier class when a later one conflicts, so a variant or density can\n * replace a base class (pill's own row spacing, lg's semibold) without restating the rest.\n * \"Contained\" variants (card, separated, board) pad their rows; minimal sits flush, and pill\n * carries its own chip padding.\n */\nexport const accordionVariants = tv({\n slots: {\n root: \"w-full\",\n item: \"\",\n header: \"flex\",\n trigger: [\n \"group/trigger flex flex-1 items-center justify-between gap-4 text-left font-medium text-foreground cursor-pointer\",\n \"outline-none transition-colors duration-fast ease-out hover:text-foreground/80\",\n \"focus-visible:ring-2 focus-visible:ring-focus focus-visible:ring-offset-2 focus-visible:ring-offset-background\",\n \"disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none\",\n ],\n icon: \"size-4 shrink-0 text-muted-foreground\",\n content: [\n \"group/content flow-root text-sm text-body\",\n \"data-[state=open]:animate-disclosure-open data-[state=closed]:animate-disclosure-close\",\n ],\n // The answer fades and drops in while the wrapper tweens its height.\n inner: [\n \"duration-base ease-out\",\n \"group-data-[state=open]/content:animate-in group-data-[state=open]/content:fade-in-0 group-data-[state=open]/content:slide-in-from-top-1\",\n \"group-data-[state=closed]/content:animate-out group-data-[state=closed]/content:fade-out-0\",\n ],\n },\n variants: {\n variant: {\n minimal: {\n item: \"border-b border-border last:border-b-0\",\n },\n card: {\n root: \"rounded-xl text-card-foreground shadow-xs ring-1 ring-edge\",\n item: \"border-b border-border last:border-b-0\",\n },\n separated: {\n root: \"flex flex-col gap-3\",\n item: \"rounded-xl text-card-foreground shadow-xs ring-1 ring-edge\",\n },\n pill: {\n root: \"flex flex-col items-start gap-2\",\n // A closed row is a chip that hugs its question; the open one floods to full width.\n // `interpolate-size` lets it tween back from full width to fit-content on close; opening\n // is instant (no width in the open transition list), so Radix measures the answer at its\n // final width.\n item: [\n \"interpolate-size w-fit max-w-full rounded-2xl bg-foreground/6\",\n \"transition-[width,background-color,transform] duration-base ease-out motion-reduce-fade hover:bg-foreground/10\",\n \"has-[[data-slot=accordion-content]:not([hidden])]:w-full\",\n \"has-[[data-slot=accordion-content]:not([hidden])]:transition-[background-color,transform]\",\n \"has-[[data-slot=accordion-content]:not([hidden])]:hover:bg-foreground/6\",\n \"has-[[data-slot=accordion-content]:not([hidden])]:active:scale-100\",\n ],\n header: \"rounded-[inherit]\",\n trigger: \"rounded-[inherit] text-foreground hover:text-foreground transition-[color] duration-fast ease-out\",\n icon: \"size-6 rounded-full bg-foreground/10 p-1\",\n // Zero intrinsic width: the answer never props the chip open while it is measured.\n content: \"w-0 min-w-full\",\n inner: \"px-4 pb-3\",\n },\n board: {\n root: \"grid grid-cols-1 gap-3 sm:grid-cols-2\",\n // The open tile spans every column, so its answer gets a full measure.\n item: [\n \"flex flex-col rounded-xl text-card-foreground shadow-xs ring-1 ring-edge\",\n \"transition-shadow duration-fast ease-out hover:shadow-sm\",\n \"has-[[data-slot=accordion-content]:not([hidden])]:col-span-full\",\n ],\n header: \"flex-1\",\n // Tiles read top-aligned, so a two-line question keeps its mark on the first line.\n trigger: \"items-start\",\n icon: \"mt-1\",\n inner: \"max-w-3xl\",\n },\n },\n density: {\n compact: {},\n comfortable: {},\n },\n size: {\n md: {},\n lg: {},\n },\n marker: {\n caret: { icon: \"caret-turn group-data-[state=open]/trigger:rotate-180\" },\n plus: { icon: \"caret-turn group-data-[state=open]/trigger:rotate-45\" },\n },\n iconPosition: {\n trailing: {},\n leading: {},\n },\n },\n compoundVariants: [\n // Density × size: row height and type.\n { density: \"compact\", size: \"md\", class: { trigger: \"py-3 text-sm\", inner: \"pb-3\" } },\n { density: \"comfortable\", size: \"md\", class: { trigger: \"py-4 text-base\", inner: \"pb-4\" } },\n {\n density: \"compact\",\n size: \"lg\",\n class: { trigger: \"py-5 text-lg font-semibold\", inner: \"pb-5 text-base\", icon: \"size-5\" },\n },\n {\n density: \"comfortable\",\n size: \"lg\",\n class: { trigger: \"py-6 text-lg font-semibold\", inner: \"pb-6 text-base\", icon: \"size-5\" },\n },\n // A leading mark sits right before the question.\n { iconPosition: \"leading\", class: { trigger: \"justify-start gap-3\" } },\n // Contained rows are padded; comfortable opens the inset up.\n {\n variant: [\"card\", \"separated\", \"board\"],\n density: \"compact\",\n class: { trigger: \"px-4\", inner: \"px-4\" },\n },\n {\n variant: [\"card\", \"separated\", \"board\"],\n density: \"comfortable\",\n class: { trigger: \"px-5\", inner: \"px-5\" },\n },\n // The pill keeps its chip spacing at every density.\n { variant: \"pill\", class: { trigger: \"gap-2.5 px-4 py-2.5\" } },\n ],\n defaultVariants: {\n variant: \"minimal\",\n density: \"compact\",\n size: \"md\",\n marker: \"caret\",\n iconPosition: \"trailing\",\n },\n})\n\nexport type AccordionVariant = \"minimal\" | \"card\" | \"separated\" | \"pill\" | \"board\"\n\ntype AccordionSlots = ReturnType<typeof accordionVariants>\n\nconst [AccordionProvider, useAccordionContext] = createContext<{\n slots: AccordionSlots\n marker: \"caret\" | \"plus\"\n iconPosition: \"trailing\" | \"leading\"\n}>(\"Accordion\")\n\ninterface AccordionStyleProps {\n variant?: AccordionVariant\n density?: Density\n size?: \"md\" | \"lg\"\n marker?: \"caret\" | \"plus\"\n iconPosition?: \"trailing\" | \"leading\"\n}\n\nexport type AccordionProps = React.ComponentProps<typeof AccordionPrimitive.Root> &\n AccordionStyleProps\n\nexport function Accordion({\n className,\n variant = \"minimal\",\n density,\n size = \"md\",\n marker = \"caret\",\n iconPosition = \"trailing\",\n ...props\n}: AccordionProps) {\n const slots = accordionVariants({\n variant,\n density: useDensity(density),\n size,\n marker,\n iconPosition,\n })\n return (\n <AccordionProvider slots={slots} marker={marker} iconPosition={iconPosition}>\n <AccordionPrimitive.Root data-slot=\"accordion\" className={slots.root({ className })} {...props} />\n </AccordionProvider>\n )\n}\n\nexport type AccordionItemProps = React.ComponentProps<typeof AccordionPrimitive.Item>\n\nexport function AccordionItem({ className, ...props }: AccordionItemProps) {\n const { slots } = useAccordionContext(\"AccordionItem\")\n return (\n <AccordionPrimitive.Item\n data-slot=\"accordion-item\"\n className={slots.item({ className })}\n {...props}\n />\n )\n}\n\nexport type AccordionTriggerProps = React.ComponentProps<typeof AccordionPrimitive.Trigger>\n\n/** The question: a `<button>` inside an `<h3>`, followed (or led) by the disclosure mark. */\nexport function AccordionTrigger({ className, children, ...props }: AccordionTriggerProps) {\n const { slots, marker, iconPosition } = useAccordionContext(\"AccordionTrigger\")\n const Mark = marker === \"plus\" ? Plus : CaretDown\n const mark = <Mark aria-hidden data-slot=\"accordion-icon\" className={slots.icon()} />\n return (\n <AccordionPrimitive.Header data-slot=\"accordion-header\" className={slots.header()}>\n <AccordionPrimitive.Trigger\n data-slot=\"accordion-trigger\"\n className={slots.trigger({ className })}\n {...props}\n >\n {iconPosition === \"leading\" && mark}\n {children}\n {iconPosition === \"trailing\" && mark}\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n )\n}\n\nexport type AccordionContentProps = React.ComponentProps<typeof AccordionPrimitive.Content>\n\n/** `className` lands on the padded inner `<div>`, so the animated wrapper's height tween stays smooth. */\nexport function AccordionContent({ className, children, ...props }: AccordionContentProps) {\n const { slots } = useAccordionContext(\"AccordionContent\")\n return (\n <AccordionPrimitive.Content data-slot=\"accordion-content\" className={slots.content()} {...props}>\n <div className={slots.inner({ className })}>{children}</div>\n </AccordionPrimitive.Content>\n )\n}\n"],"mappings":";AAwLM,cA2BA,YA3BA;AArLN,SAAS,aAAa,0BAA0B;AAChD,SAAS,WAAW,YAAY;AAEhC,SAAS,qBAAqB;AAC9B,SAAS,kBAAgC;AACzC,SAAS,UAAU;AASZ,MAAM,oBAAoB,GAAG;AAAA,EAClC,OAAO;AAAA,IACL,MAAM;AAAA,IACN,MAAM;AAAA,IAC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,MAAM,EAAE,UAAU,CAAC,GAAI,UAAS,GACxD;AAEJ;","names":[]}
@@ -0,0 +1,15 @@
1
+ import {
2
+ Accordion,
3
+ AccordionItem,
4
+ AccordionTrigger,
5
+ AccordionContent,
6
+ accordionVariants
7
+ } from "./accordion.mjs";
8
+ export {
9
+ Accordion,
10
+ AccordionContent,
11
+ AccordionItem,
12
+ AccordionTrigger,
13
+ accordionVariants
14
+ };
15
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/ui/accordion/index.ts"],"sourcesContent":["export {\n Accordion,\n AccordionItem,\n AccordionTrigger,\n AccordionContent,\n accordionVariants,\n type AccordionProps,\n type AccordionItemProps,\n type AccordionTriggerProps,\n type AccordionContentProps,\n type AccordionVariant,\n} from \"./accordion.mjs\"\n"],"mappings":"AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAMK;","names":[]}
@@ -0,0 +1,287 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { Slot } from "radix-ui";
5
+ import { createContext } from "../../../lib/create-context.mjs";
6
+ import { useDensity } from "../../../lib/density.mjs";
7
+ import { tv } from "../../../lib/tv.mjs";
8
+ import { cn } from "../../../lib/utils.mjs";
9
+ const activityFeedVariants = tv({
10
+ slots: {
11
+ list: "flex flex-col gap-1 transition-[row-gap] duration-base ease-out motion-reduce-fade",
12
+ item: "relative",
13
+ row: "flex transition-[padding,column-gap] duration-base ease-out motion-reduce-fade",
14
+ connector: [
15
+ "mt-1 w-px flex-1 bg-border transition-[margin] duration-base ease-out motion-reduce-fade",
16
+ // Closes the line on the last event of the feed, and of the last group.
17
+ "[[data-slot=activity-feed]>[data-slot=activity-item]:last-child_&]:hidden",
18
+ "[[data-slot=activity-group]:last-child>ol>[data-slot=activity-item]:last-child_&]:hidden"
19
+ ],
20
+ groupLabel: "flex text-xs font-medium text-muted-foreground transition-[padding,column-gap] duration-base ease-out motion-reduce-fade"
21
+ },
22
+ variants: {
23
+ density: {
24
+ compact: { row: "gap-2.5 py-1.5", connector: "-mb-4", groupLabel: "gap-2.5 pt-2.5" },
25
+ comfortable: { row: "gap-3 py-2", connector: "-mb-5", groupLabel: "gap-3 pt-3" }
26
+ },
27
+ divided: {
28
+ true: {
29
+ list: "gap-0",
30
+ item: "after:absolute after:inset-x-0 after:bottom-0 after:h-px after:bg-border after:content-[''] last:after:hidden"
31
+ },
32
+ false: {}
33
+ }
34
+ },
35
+ compoundVariants: [
36
+ // A rule sits evenly between neighbours, so a divided event takes more padding.
37
+ { divided: true, density: "compact", class: { row: "py-3.5" } },
38
+ { divided: true, density: "comfortable", class: { row: "py-4" } }
39
+ ],
40
+ defaultVariants: { density: "compact", divided: false }
41
+ });
42
+ const interactiveRow = [
43
+ "-mx-2 w-[calc(100%+1rem)] cursor-pointer rounded-lg px-2 text-left",
44
+ "transition-colors duration-fast ease-out hover:bg-muted/60 active:bg-muted",
45
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus"
46
+ ];
47
+ const unreadHeader = "[&_[data-slot=activity-header]]:font-medium [&_[data-slot=activity-header]]:text-foreground";
48
+ const [FeedProvider, useFeedContext] = createContext("ActivityFeed");
49
+ function ActivityFeed({ className, density, divided = false, connector = true, ...props }) {
50
+ const slots = activityFeedVariants({ density: useDensity(density), divided });
51
+ return /* @__PURE__ */ jsx(FeedProvider, { slots, rail: connector && !divided, children: /* @__PURE__ */ jsx("ol", { "data-slot": "activity-feed", className: slots.list({ className }), ...props }) });
52
+ }
53
+ const GroupLabelIdContext = React.createContext(void 0);
54
+ const LinkRowContext = React.createContext(false);
55
+ function ActivityGroup({ className, children, ...props }) {
56
+ const { slots } = useFeedContext("ActivityGroup");
57
+ const labelId = React.useId();
58
+ return /* @__PURE__ */ jsx("li", { "data-slot": "activity-group", className, ...props, children: /* @__PURE__ */ jsx(GroupLabelIdContext.Provider, { value: labelId, children: /* @__PURE__ */ jsx("ol", { "data-slot": "activity-group-list", "aria-labelledby": labelId, className: slots.list(), children }) }) });
59
+ }
60
+ function ActivityGroupLabel({ className, children, ...props }) {
61
+ const { slots, rail } = useFeedContext("ActivityGroupLabel");
62
+ const id = React.useContext(GroupLabelIdContext);
63
+ return /* @__PURE__ */ jsxs("li", { "data-slot": "activity-group-label", id, "aria-hidden": "true", className: slots.groupLabel({ className }), ...props, children: [
64
+ /* @__PURE__ */ jsx(
65
+ "span",
66
+ {
67
+ "data-slot": "activity-group-marker",
68
+ className: "flex w-8 shrink-0 flex-col items-center self-stretch [[data-slot=activity-group]:not(:has([data-slot=activity-marker]))_&]:hidden",
69
+ children: rail ? /* @__PURE__ */ jsx(
70
+ "span",
71
+ {
72
+ "data-slot": "activity-group-rail",
73
+ className: "w-px flex-1 bg-border transition-[margin] duration-base ease-out motion-reduce-fade [[data-slot=activity-group]:first-child>ol>[data-slot=activity-group-label]_&]:hidden -mt-1 -mb-2.5"
74
+ }
75
+ ) : null
76
+ }
77
+ ),
78
+ /* @__PURE__ */ jsx("span", { className: "min-w-0 flex-1", children })
79
+ ] });
80
+ }
81
+ function ActivityItem({
82
+ className,
83
+ asChild = false,
84
+ interactive,
85
+ unread = false,
86
+ children,
87
+ ...props
88
+ }) {
89
+ const { slots } = useFeedContext("ActivityItem");
90
+ const isInteractive = interactive ?? asChild;
91
+ const dot = unread ? /* @__PURE__ */ jsx(ActivityUnread, {}) : null;
92
+ if (!isInteractive) {
93
+ return /* @__PURE__ */ jsxs(
94
+ "li",
95
+ {
96
+ "data-slot": "activity-item",
97
+ className: cn(slots.item(), slots.row(), unread && unreadHeader, className),
98
+ ...props,
99
+ children: [
100
+ children,
101
+ dot
102
+ ]
103
+ }
104
+ );
105
+ }
106
+ const rowClass = cn(slots.row(), unread && unreadHeader, interactiveRow, className);
107
+ if (asChild) {
108
+ return /* @__PURE__ */ jsx("li", { "data-slot": "activity-item", className: slots.item(), ...props, children: /* @__PURE__ */ jsx(LinkRowContext.Provider, { value: true, children: /* @__PURE__ */ jsxs(Slot.Root, { className: rowClass, children: [
109
+ /* @__PURE__ */ jsx(Slot.Slottable, { children }),
110
+ dot
111
+ ] }) }) });
112
+ }
113
+ const { onClick, onKeyDown, ...liProps } = props;
114
+ return /* @__PURE__ */ jsx("li", { "data-slot": "activity-item", className: slots.item(), ...liProps, children: /* @__PURE__ */ jsxs(
115
+ "div",
116
+ {
117
+ role: "button",
118
+ tabIndex: 0,
119
+ className: rowClass,
120
+ onClick,
121
+ onKeyDown: (event) => {
122
+ onKeyDown?.(event);
123
+ if (event.defaultPrevented) return;
124
+ if (event.key === "Enter" || event.key === " ") {
125
+ event.preventDefault();
126
+ event.currentTarget.click();
127
+ }
128
+ },
129
+ children: [
130
+ children,
131
+ dot
132
+ ]
133
+ }
134
+ ) });
135
+ }
136
+ function ActivityMarker({ className, children, ...props }) {
137
+ const { slots, rail } = useFeedContext("ActivityMarker");
138
+ return /* @__PURE__ */ jsxs(
139
+ "div",
140
+ {
141
+ "data-slot": "activity-marker",
142
+ className: cn("relative flex w-8 shrink-0 flex-col items-center self-stretch", className),
143
+ ...props,
144
+ children: [
145
+ /* @__PURE__ */ jsx("div", { "data-slot": "activity-marker-head", className: "flex h-8 items-center justify-center", children }),
146
+ rail ? /* @__PURE__ */ jsx("span", { "data-slot": "activity-connector", "aria-hidden": "true", className: slots.connector() }) : null
147
+ ]
148
+ }
149
+ );
150
+ }
151
+ const iconTones = {
152
+ default: "border-border bg-transparent text-muted-foreground",
153
+ brand: "border-brand/20 bg-brand/10 text-brand",
154
+ success: "border-success/20 bg-success/10 text-success",
155
+ warning: "border-warning/20 bg-warning/10 text-warning",
156
+ info: "border-info/20 bg-info/10 text-info",
157
+ destructive: "border-destructive/20 bg-destructive/10 text-destructive",
158
+ purple: "border-purple/20 bg-purple/10 text-purple",
159
+ pink: "border-pink/20 bg-pink/10 text-pink",
160
+ teal: "border-teal/20 bg-teal/10 text-teal",
161
+ orange: "border-orange/20 bg-orange/10 text-orange"
162
+ };
163
+ const dotTones = {
164
+ default: "bg-border",
165
+ brand: "bg-brand",
166
+ success: "bg-success",
167
+ warning: "bg-warning",
168
+ info: "bg-info",
169
+ destructive: "bg-destructive",
170
+ purple: "bg-purple",
171
+ pink: "bg-pink",
172
+ teal: "bg-teal",
173
+ orange: "bg-orange"
174
+ };
175
+ function ActivityIcon({ className, tone = "default", ...props }) {
176
+ return /* @__PURE__ */ jsx(
177
+ "div",
178
+ {
179
+ "data-slot": "activity-icon",
180
+ "aria-hidden": "true",
181
+ className: cn("grid shrink-0 place-items-center rounded-full border [&>svg]:size-3.5 size-7", iconTones[tone], className),
182
+ ...props
183
+ }
184
+ );
185
+ }
186
+ function ActivityDot({ className, tone = "default", ...props }) {
187
+ return /* @__PURE__ */ jsx("div", { "data-slot": "activity-dot", "aria-hidden": "true", className: cn("grid shrink-0 place-items-center size-7", className), ...props, children: /* @__PURE__ */ jsx("span", { className: cn("size-2 rounded-full ring-4 ring-background", dotTones[tone]) }) });
188
+ }
189
+ function ActivityContent({ className, ...props }) {
190
+ return /* @__PURE__ */ jsx("div", { "data-slot": "activity-content", className: cn("flex min-w-0 flex-1 flex-col", className), ...props });
191
+ }
192
+ function ActivityHeader({ className, ...props }) {
193
+ return /* @__PURE__ */ jsx(
194
+ "div",
195
+ {
196
+ "data-slot": "activity-header",
197
+ className: cn("flex min-h-8 flex-wrap items-center gap-x-1.5 gap-y-0.5 text-sm leading-snug text-muted-foreground", className),
198
+ ...props
199
+ }
200
+ );
201
+ }
202
+ function ActivityActor({ className, asChild = false, ...props }) {
203
+ const Comp = asChild ? Slot.Root : "span";
204
+ return /* @__PURE__ */ jsx(Comp, { "data-slot": "activity-actor", className: cn("font-medium text-foreground", className), ...props });
205
+ }
206
+ function ActivityTime({ className, ...props }) {
207
+ return /* @__PURE__ */ jsx("time", { "data-slot": "activity-time", className: cn("text-xs tabular-nums text-muted-foreground", className), ...props });
208
+ }
209
+ function ActivityBody({ className, ...props }) {
210
+ return /* @__PURE__ */ jsx(
211
+ "div",
212
+ {
213
+ "data-slot": "activity-body",
214
+ className: cn("mt-1 text-pretty text-sm text-muted-foreground first:mt-0 first:pt-1.5", className),
215
+ ...props
216
+ }
217
+ );
218
+ }
219
+ function ActivityCard({ className, ...props }) {
220
+ return /* @__PURE__ */ jsx(
221
+ "div",
222
+ {
223
+ "data-slot": "activity-card",
224
+ className: cn("mt-2 rounded-lg bg-muted/40 px-3 py-2.5 text-sm text-foreground ring-1 ring-border first:mt-0", className),
225
+ ...props
226
+ }
227
+ );
228
+ }
229
+ function ActivityAttachments({ className, ...props }) {
230
+ return /* @__PURE__ */ jsx(
231
+ "div",
232
+ {
233
+ "data-slot": "activity-attachments",
234
+ className: cn("mt-1.5 flex flex-col gap-2 first:mt-0 first:pt-1.5", className),
235
+ ...props
236
+ }
237
+ );
238
+ }
239
+ function ActivityImage({ className, alt, ...props }) {
240
+ return /* @__PURE__ */ jsx(
241
+ "div",
242
+ {
243
+ "data-slot": "activity-image",
244
+ className: cn(
245
+ "relative size-14 shrink-0 overflow-hidden rounded-lg bg-muted [&>img]:size-full [&>img]:object-cover",
246
+ "after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:ring-1 after:ring-inset after:ring-media-edge",
247
+ className
248
+ ),
249
+ children: /* @__PURE__ */ jsx("img", { alt, ...props })
250
+ }
251
+ );
252
+ }
253
+ function ActivityActions({ className, ...props }) {
254
+ const insideLink = React.useContext(LinkRowContext);
255
+ React.useEffect(() => {
256
+ if (insideLink) {
257
+ console.warn("Atoms ActivityActions: don't use it in an ActivityItem with asChild; it nests a control inside a link.");
258
+ }
259
+ }, [insideLink]);
260
+ return /* @__PURE__ */ jsx("div", { "data-slot": "activity-actions", className: cn("flex min-h-8 shrink-0 items-center gap-1 self-start", className), ...props });
261
+ }
262
+ function ActivityUnread() {
263
+ return /* @__PURE__ */ jsxs("span", { "data-slot": "activity-unread", className: "flex min-h-8 shrink-0 items-center self-start", children: [
264
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "size-2 rounded-full bg-primary" }),
265
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Unread" })
266
+ ] });
267
+ }
268
+ export {
269
+ ActivityActions,
270
+ ActivityActor,
271
+ ActivityAttachments,
272
+ ActivityBody,
273
+ ActivityCard,
274
+ ActivityContent,
275
+ ActivityDot,
276
+ ActivityFeed,
277
+ ActivityGroup,
278
+ ActivityGroupLabel,
279
+ ActivityHeader,
280
+ ActivityIcon,
281
+ ActivityImage,
282
+ ActivityItem,
283
+ ActivityMarker,
284
+ ActivityTime,
285
+ activityFeedVariants
286
+ };
287
+ //# sourceMappingURL=activity-feed.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/ui/activity-feed/activity-feed.tsx"],"sourcesContent":["\"use client\"\n\nimport * as React from \"react\"\nimport { Slot } from \"radix-ui\"\n\nimport { createContext } from \"../../../lib/create-context.mjs\"\nimport { useDensity, type Density } from \"../../../lib/density.mjs\"\nimport { tv } from \"../../../lib/tv.mjs\"\nimport { cn } from \"../../../lib/utils.mjs\"\n\n/*\n * A timeline of events. The root is an <ol>; each event is an <li> with two columns: a 32px\n * marker column (an icon tile, an avatar or a dot, with the rail hanging under it) and the\n * content column. Everything that lines up depends on one number, 32px: the marker head, the\n * header's minimum height and the unread/actions slots all use it, so the first line of any\n * event sits on the marker's axis.\n *\n * The rail is drawn by each marker. It reaches into the next event with a negative bottom margin\n * equal to the space between two markers (the item's bottom padding + the list gap + the next\n * item's top padding), so the segments meet. CSS hides it on the last event, so the line closes\n * on its own. `divided` swaps the rail for a hairline under each event.\n */\n\nexport type ActivityTone =\n | \"default\"\n | \"brand\"\n | \"success\"\n | \"warning\"\n | \"info\"\n | \"destructive\"\n | \"purple\"\n | \"pink\"\n | \"teal\"\n | \"orange\"\n\nexport const activityFeedVariants = tv({\n slots: {\n list: \"flex flex-col gap-1 transition-[row-gap] duration-base ease-out motion-reduce-fade\",\n item: \"relative\",\n row: \"flex transition-[padding,column-gap] duration-base ease-out motion-reduce-fade\",\n connector: [\n \"mt-1 w-px flex-1 bg-border transition-[margin] duration-base ease-out motion-reduce-fade\",\n // Closes the line on the last event of the feed, and of the last group.\n \"[[data-slot=activity-feed]>[data-slot=activity-item]:last-child_&]:hidden\",\n \"[[data-slot=activity-group]:last-child>ol>[data-slot=activity-item]:last-child_&]:hidden\",\n ],\n groupLabel:\n \"flex text-xs font-medium text-muted-foreground transition-[padding,column-gap] duration-base ease-out motion-reduce-fade\",\n },\n variants: {\n density: {\n compact: { row: \"gap-2.5 py-1.5\", connector: \"-mb-4\", groupLabel: \"gap-2.5 pt-2.5\" },\n comfortable: { row: \"gap-3 py-2\", connector: \"-mb-5\", groupLabel: \"gap-3 pt-3\" },\n },\n divided: {\n true: {\n list: \"gap-0\",\n item: \"after:absolute after:inset-x-0 after:bottom-0 after:h-px after:bg-border after:content-[''] last:after:hidden\",\n },\n false: {},\n },\n },\n compoundVariants: [\n // A rule sits evenly between neighbours, so a divided event takes more padding.\n { divided: true, density: \"compact\", class: { row: \"py-3.5\" } },\n { divided: true, density: \"comfortable\", class: { row: \"py-4\" } },\n ],\n defaultVariants: { density: \"compact\", divided: false },\n})\n\n/** A row you can click: the hover fill bleeds 8px past the column on each side, text stays put. */\nconst interactiveRow = [\n \"-mx-2 w-[calc(100%+1rem)] cursor-pointer rounded-lg px-2 text-left\",\n \"transition-colors duration-fast ease-out hover:bg-muted/60 active:bg-muted\",\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus\",\n]\n\nconst unreadHeader = \"[&_[data-slot=activity-header]]:font-medium [&_[data-slot=activity-header]]:text-foreground\"\n\nconst [FeedProvider, useFeedContext] = createContext<{\n slots: ReturnType<typeof activityFeedVariants>\n rail: boolean\n}>(\"ActivityFeed\")\n\n/* ─── Feed and groups ─────────────────────────────────────────────────────── */\n\nexport type ActivityFeedProps = React.ComponentProps<\"ol\"> & {\n density?: Density\n /** A hairline rule between events instead of the rail. */\n divided?: boolean\n /** Draws the rail between markers. Ignored when `divided` is set. */\n connector?: boolean\n}\n\nexport function ActivityFeed({ className, density, divided = false, connector = true, ...props }: ActivityFeedProps) {\n const slots = activityFeedVariants({ density: useDensity(density), divided })\n return (\n <FeedProvider slots={slots} rail={connector && !divided}>\n <ol data-slot=\"activity-feed\" className={slots.list({ className })} {...props} />\n </FeedProvider>\n )\n}\n\nconst GroupLabelIdContext = React.createContext<string | undefined>(undefined)\n\n/** True inside an `asChild` event, whose row is a link: actions there would nest a control in it. */\nconst LinkRowContext = React.createContext(false)\n\n/** A run of events under one heading (a day). Its list is named by the ActivityGroupLabel. */\nexport function ActivityGroup({ className, children, ...props }: React.ComponentProps<\"li\">) {\n const { slots } = useFeedContext(\"ActivityGroup\")\n const labelId = React.useId()\n // Always points at the label's id. Without a label the id matches nothing, and browsers\n // ignore a reference to a missing element, so the list is simply unnamed.\n return (\n <li data-slot=\"activity-group\" className={className} {...props}>\n <GroupLabelIdContext.Provider value={labelId}>\n <ol data-slot=\"activity-group-list\" aria-labelledby={labelId} className={slots.list()}>\n {children}\n </ol>\n </GroupLabelIdContext.Provider>\n </li>\n )\n}\n\n/**\n * The group's heading (\"Today\"), first in the group. The rail runs through it so the timeline\n * stays one line; it's hidden from the list's items (it names the list instead).\n */\nexport function ActivityGroupLabel({ className, children, ...props }: React.ComponentProps<\"li\">) {\n const { slots, rail } = useFeedContext(\"ActivityGroupLabel\")\n const id = React.useContext(GroupLabelIdContext)\n return (\n <li data-slot=\"activity-group-label\" id={id} aria-hidden=\"true\" className={slots.groupLabel({ className })} {...props}>\n <span\n data-slot=\"activity-group-marker\"\n className=\"flex w-8 shrink-0 flex-col items-center self-stretch [[data-slot=activity-group]:not(:has([data-slot=activity-marker]))_&]:hidden\"\n >\n {rail ? (\n <span\n data-slot=\"activity-group-rail\"\n className=\"w-px flex-1 bg-border transition-[margin] duration-base ease-out motion-reduce-fade [[data-slot=activity-group]:first-child>ol>[data-slot=activity-group-label]_&]:hidden -mt-1 -mb-2.5\"\n />\n ) : null}\n </span>\n <span className=\"min-w-0 flex-1\">{children}</span>\n </li>\n )\n}\n\n/* ─── One event ───────────────────────────────────────────────────────────── */\n\nexport type ActivityItemProps = React.ComponentProps<\"li\"> & {\n /**\n * Renders the row as its only child (an `<a>` or a `<button>`) inside the `<li>`. Implies\n * `interactive`. Don't pair it with ActivityActions: that would nest a control in a link.\n */\n asChild?: boolean\n /** The hover fill, press and focus ring. On by default with `asChild`. */\n interactive?: boolean\n /** New to this reader: full-strength header text and a dot at the end of the row. */\n unread?: boolean\n}\n\nexport function ActivityItem({\n className,\n asChild = false,\n interactive,\n unread = false,\n children,\n ...props\n}: ActivityItemProps) {\n const { slots } = useFeedContext(\"ActivityItem\")\n const isInteractive = interactive ?? asChild\n\n const dot = unread ? <ActivityUnread /> : null\n\n // Plain event: the <li> is the row.\n if (!isInteractive) {\n return (\n <li\n data-slot=\"activity-item\"\n className={cn(slots.item(), slots.row(), unread && unreadHeader, className)}\n {...props}\n >\n {children}\n {dot}\n </li>\n )\n }\n\n // Interactive event: the <li> stays the list item, an inner element is the hover-lit row.\n const rowClass = cn(slots.row(), unread && unreadHeader, interactiveRow, className)\n if (asChild) {\n // Slottable merges the unread dot into the child's own children, after its content.\n return (\n <li data-slot=\"activity-item\" className={slots.item()} {...props}>\n <LinkRowContext.Provider value>\n <Slot.Root className={rowClass}>\n <Slot.Slottable>{children}</Slot.Slottable>\n {dot}\n </Slot.Root>\n </LinkRowContext.Provider>\n </li>\n )\n }\n // `interactive` alone: a row that takes an onClick. The handlers go on the row, which acts as\n // a button (Enter and Space press it, like a native one).\n const { onClick, onKeyDown, ...liProps } = props as React.ComponentProps<\"li\">\n return (\n <li data-slot=\"activity-item\" className={slots.item()} {...liProps}>\n <div\n role=\"button\"\n tabIndex={0}\n className={rowClass}\n onClick={onClick as React.MouseEventHandler<HTMLDivElement> | undefined}\n onKeyDown={(event) => {\n onKeyDown?.(event as unknown as React.KeyboardEvent<HTMLLIElement>)\n if (event.defaultPrevented) return\n if (event.key === \"Enter\" || event.key === \" \") {\n event.preventDefault()\n event.currentTarget.click()\n }\n }}\n >\n {children}\n {dot}\n </div>\n </li>\n )\n}\n\n/** The rail column: holds an ActivityIcon, ActivityDot or Avatar, with the rail under it. */\nexport function ActivityMarker({ className, children, ...props }: React.ComponentProps<\"div\">) {\n const { slots, rail } = useFeedContext(\"ActivityMarker\")\n return (\n <div\n data-slot=\"activity-marker\"\n className={cn(\"relative flex w-8 shrink-0 flex-col items-center self-stretch\", className)}\n {...props}\n >\n <div data-slot=\"activity-marker-head\" className=\"flex h-8 items-center justify-center\">\n {children}\n </div>\n {rail ? <span data-slot=\"activity-connector\" aria-hidden=\"true\" className={slots.connector()} /> : null}\n </div>\n )\n}\n\n/* ─── Markers ─────────────────────────────────────────────────────────────── */\n\n// Written out in full so Tailwind sees every class.\nconst iconTones: Record<ActivityTone, string> = {\n default: \"border-border bg-transparent text-muted-foreground\",\n brand: \"border-brand/20 bg-brand/10 text-brand\",\n success: \"border-success/20 bg-success/10 text-success\",\n warning: \"border-warning/20 bg-warning/10 text-warning\",\n info: \"border-info/20 bg-info/10 text-info\",\n destructive: \"border-destructive/20 bg-destructive/10 text-destructive\",\n purple: \"border-purple/20 bg-purple/10 text-purple\",\n pink: \"border-pink/20 bg-pink/10 text-pink\",\n teal: \"border-teal/20 bg-teal/10 text-teal\",\n orange: \"border-orange/20 bg-orange/10 text-orange\",\n}\n\nconst dotTones: Record<ActivityTone, string> = {\n default: \"bg-border\",\n brand: \"bg-brand\",\n success: \"bg-success\",\n warning: \"bg-warning\",\n info: \"bg-info\",\n destructive: \"bg-destructive\",\n purple: \"bg-purple\",\n pink: \"bg-pink\",\n teal: \"bg-teal\",\n orange: \"bg-orange\",\n}\n\nexport type ActivityIconProps = React.ComponentProps<\"div\"> & { tone?: ActivityTone }\n\n/** A 28px tinted tile holding an icon: the kind of event at a glance. */\nexport function ActivityIcon({ className, tone = \"default\", ...props }: ActivityIconProps) {\n return (\n <div\n data-slot=\"activity-icon\"\n aria-hidden=\"true\"\n className={cn(\"grid shrink-0 place-items-center rounded-full border [&>svg]:size-3.5 size-7\", iconTones[tone], className)}\n {...props}\n />\n )\n}\n\nexport type ActivityDotProps = React.ComponentProps<\"div\"> & { tone?: ActivityTone }\n\n/** A quiet dot for minor events, in the same footprint as ActivityIcon. */\nexport function ActivityDot({ className, tone = \"default\", ...props }: ActivityDotProps) {\n return (\n <div data-slot=\"activity-dot\" aria-hidden=\"true\" className={cn(\"grid shrink-0 place-items-center size-7\", className)} {...props}>\n <span className={cn(\"size-2 rounded-full ring-4 ring-background\", dotTones[tone])} />\n </div>\n )\n}\n\n/* ─── Content ─────────────────────────────────────────────────────────────── */\n\nexport function ActivityContent({ className, ...props }: React.ComponentProps<\"div\">) {\n return <div data-slot=\"activity-content\" className={cn(\"flex min-w-0 flex-1 flex-col\", className)} {...props} />\n}\n\n/** The first line: actor, verb, target and time. It wraps; its 32px minimum matches the marker. */\nexport function ActivityHeader({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"activity-header\"\n className={cn(\"flex min-h-8 flex-wrap items-center gap-x-1.5 gap-y-0.5 text-sm leading-snug text-muted-foreground\", className)}\n {...props}\n />\n )\n}\n\nexport type ActivityActorProps = React.ComponentProps<\"span\"> & { asChild?: boolean }\n\n/** Who or what acted. With `asChild`, a profile link. */\nexport function ActivityActor({ className, asChild = false, ...props }: ActivityActorProps) {\n const Comp = asChild ? Slot.Root : \"span\"\n return <Comp data-slot=\"activity-actor\" className={cn(\"font-medium text-foreground\", className)} {...props} />\n}\n\n/** The timestamp: a real `<time>`. Pass an ISO `dateTime` and a relative label as children. */\nexport function ActivityTime({ className, ...props }: React.ComponentProps<\"time\">) {\n return <time data-slot=\"activity-time\" className={cn(\"text-xs tabular-nums text-muted-foreground\", className)} {...props} />\n}\n\n/** A muted line under the header. When it leads the event, it lines up with the marker. */\nexport function ActivityBody({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"activity-body\"\n className={cn(\"mt-1 text-pretty text-sm text-muted-foreground first:mt-0 first:pt-1.5\", className)}\n {...props}\n />\n )\n}\n\n/** A nested surface for quoted content: a comment, a review, a changelog note. */\nexport function ActivityCard({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"activity-card\"\n className={cn(\"mt-2 rounded-lg bg-muted/40 px-3 py-2.5 text-sm text-foreground ring-1 ring-border first:mt-0\", className)}\n {...props}\n />\n )\n}\n\n/** A stack for the event's payload: FileCard rows and rows of ActivityImage. */\nexport function ActivityAttachments({ className, ...props }: React.ComponentProps<\"div\">) {\n return (\n <div\n data-slot=\"activity-attachments\"\n className={cn(\"mt-1.5 flex flex-col gap-2 first:mt-0 first:pt-1.5\", className)}\n {...props}\n />\n )\n}\n\nexport type ActivityImageProps = React.ComponentProps<\"img\"> & { alt: string }\n\n/** A 56px thumbnail with an inset outline. `className` sizes the frame; the rest goes to the `<img>`. */\nexport function ActivityImage({ className, alt, ...props }: ActivityImageProps) {\n return (\n <div\n data-slot=\"activity-image\"\n className={cn(\n \"relative size-14 shrink-0 overflow-hidden rounded-lg bg-muted [&>img]:size-full [&>img]:object-cover\",\n \"after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:ring-1 after:ring-inset after:ring-media-edge\",\n className,\n )}\n >\n {/* eslint-disable-next-line @next/next/no-img-element */}\n <img alt={alt} {...props} />\n </div>\n )\n}\n\n/** Trailing controls for one event. A sibling of ActivityContent, riding the first line. */\nexport function ActivityActions({ className, ...props }: React.ComponentProps<\"div\">) {\n const insideLink = React.useContext(LinkRowContext)\n React.useEffect(() => {\n if (process.env.NODE_ENV !== \"production\" && insideLink) {\n console.warn(\"Atoms ActivityActions: don't use it in an ActivityItem with asChild; it nests a control inside a link.\")\n }\n }, [insideLink])\n return <div data-slot=\"activity-actions\" className={cn(\"flex min-h-8 shrink-0 items-center gap-1 self-start\", className)} {...props} />\n}\n\n/** The unread mark at the end of a row: an ink dot, and \"Unread\" for screen readers. */\nfunction ActivityUnread() {\n return (\n <span data-slot=\"activity-unread\" className=\"flex min-h-8 shrink-0 items-center self-start\">\n <span aria-hidden=\"true\" className=\"size-2 rounded-full bg-primary\" />\n <span className=\"sr-only\">Unread</span>\n </span>\n )\n}\n"],"mappings":";AAkGM,cAmCF,YAnCE;AAhGN,YAAY,WAAW;AACvB,SAAS,YAAY;AAErB,SAAS,qBAAqB;AAC9B,SAAS,kBAAgC;AACzC,SAAS,UAAU;AACnB,SAAS,UAAU;AA2BZ,MAAM,uBAAuB,GAAG;AAAA,EACrC,OAAO;AAAA,IACL,MAAM;AAAA,IACN,MAAM;AAAA,IACN,KAAK;AAAA,IACL,WAAW;AAAA,MACT;AAAA;AAAA,MAEA;AAAA,MACA;AAAA,IACF;AAAA,IACA,YACE;AAAA,EACJ;AAAA,EACA,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS,EAAE,KAAK,kBAAkB,WAAW,SAAS,YAAY,iBAAiB;AAAA,MACnF,aAAa,EAAE,KAAK,cAAc,WAAW,SAAS,YAAY,aAAa;AAAA,IACjF;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,QACJ,MAAM;AAAA,QACN,MAAM;AAAA,MACR;AAAA,MACA,OAAO,CAAC;AAAA,IACV;AAAA,EACF;AAAA,EACA,kBAAkB;AAAA;AAAA,IAEhB,EAAE,SAAS,MAAM,SAAS,WAAW,OAAO,EAAE,KAAK,SAAS,EAAE;AAAA,IAC9D,EAAE,SAAS,MAAM,SAAS,eAAe,OAAO,EAAE,KAAK,OAAO,EAAE;AAAA,EAClE;AAAA,EACA,iBAAiB,EAAE,SAAS,WAAW,SAAS,MAAM;AACxD,CAAC;AAGD,MAAM,iBAAiB;AAAA,EACrB;AAAA,EACA;AAAA,EACA;AACF;AAEA,MAAM,eAAe;AAErB,MAAM,CAAC,cAAc,cAAc,IAAI,cAGpC,cAAc;AAYV,SAAS,aAA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A,MACC,aAAU;AAAA,MACV,WAAW;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MAGA,8BAAC,SAAI,KAAW,GAAG,OAAO;AAAA;AAAA,EAC5B;AAEJ;AAGO,SAAS,gBAAgB,EAAE,WAAW,GAAG,MAAM,GAAgC;AACpF,QAAM,aAAa,MAAM,WAAW,cAAc;AAClD,QAAM,UAAU,MAAM;AACpB,QAA6C,YAAY;AACvD,cAAQ,KAAK,wGAAwG;AAAA,IACvH;AAAA,EACF,GAAG,CAAC,UAAU,CAAC;AACf,SAAO,oBAAC,SAAI,aAAU,oBAAmB,WAAW,GAAG,uDAAuD,SAAS,GAAI,GAAG,OAAO;AACvI;AAGA,SAAS,iBAAiB;AACxB,SACE,qBAAC,UAAK,aAAU,mBAAkB,WAAU,iDAC1C;AAAA,wBAAC,UAAK,eAAY,QAAO,WAAU,kCAAiC;AAAA,IACpE,oBAAC,UAAK,WAAU,WAAU,oBAAM;AAAA,KAClC;AAEJ;","names":[]}
@@ -0,0 +1,39 @@
1
+ import {
2
+ ActivityFeed,
3
+ ActivityGroup,
4
+ ActivityGroupLabel,
5
+ ActivityItem,
6
+ ActivityMarker,
7
+ ActivityIcon,
8
+ ActivityDot,
9
+ ActivityContent,
10
+ ActivityHeader,
11
+ ActivityActor,
12
+ ActivityTime,
13
+ ActivityBody,
14
+ ActivityCard,
15
+ ActivityAttachments,
16
+ ActivityImage,
17
+ ActivityActions,
18
+ activityFeedVariants
19
+ } from "./activity-feed.mjs";
20
+ export {
21
+ ActivityActions,
22
+ ActivityActor,
23
+ ActivityAttachments,
24
+ ActivityBody,
25
+ ActivityCard,
26
+ ActivityContent,
27
+ ActivityDot,
28
+ ActivityFeed,
29
+ ActivityGroup,
30
+ ActivityGroupLabel,
31
+ ActivityHeader,
32
+ ActivityIcon,
33
+ ActivityImage,
34
+ ActivityItem,
35
+ ActivityMarker,
36
+ ActivityTime,
37
+ activityFeedVariants
38
+ };
39
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/ui/activity-feed/index.ts"],"sourcesContent":["export {\n ActivityFeed,\n ActivityGroup,\n ActivityGroupLabel,\n ActivityItem,\n ActivityMarker,\n ActivityIcon,\n ActivityDot,\n ActivityContent,\n ActivityHeader,\n ActivityActor,\n ActivityTime,\n ActivityBody,\n ActivityCard,\n ActivityAttachments,\n ActivityImage,\n ActivityActions,\n activityFeedVariants,\n type ActivityFeedProps,\n type ActivityItemProps,\n type ActivityIconProps,\n type ActivityDotProps,\n type ActivityActorProps,\n type ActivityImageProps,\n type ActivityTone,\n} from \"./activity-feed.mjs\"\n"],"mappings":"AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAQK;","names":[]}