@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,505 @@
1
+ "use client";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import * as React from "react";
4
+ import { Check } from "atoms-icons";
5
+ import { Slot } from "radix-ui";
6
+ import { Button } from "../button/button.mjs";
7
+ import { Skeleton } from "../skeleton/index.mjs";
8
+ import {
9
+ EmptyState,
10
+ EmptyStateActions,
11
+ EmptyStateDescription,
12
+ EmptyStateMedia,
13
+ EmptyStateTitle
14
+ } from "../empty-state/empty-state.mjs";
15
+ import { tv } from "../../../lib/tv.mjs";
16
+ import { cn } from "../../../lib/utils.mjs";
17
+ const listVariants = tv({
18
+ slots: {
19
+ root: "text-sm",
20
+ row: "group/list-row relative",
21
+ media: "flex shrink-0 items-center justify-center text-muted-foreground [&>svg]:size-5",
22
+ content: "flex min-w-0 flex-1 flex-col gap-0.5",
23
+ title: "font-medium text-foreground [:where(&)]:text-pretty",
24
+ description: "text-xs text-muted-foreground [:where(&)]:text-pretty",
25
+ meta: [
26
+ "ml-auto flex shrink-0 text-xs tabular-nums text-muted-foreground [&>svg]:size-4",
27
+ "transition-opacity duration-fast ease-out motion-reduce-fade",
28
+ // Actions take the meta's place on hover and focus.
29
+ "group-data-actions/list-row:group-hover/list-row:opacity-0 group-data-actions/list-row:group-focus-within/list-row:opacity-0"
30
+ ],
31
+ actions: [
32
+ "pointer-events-none absolute top-1/2 right-2 z-10 flex -translate-y-1/2 items-center gap-0.5 opacity-0",
33
+ "transition-opacity duration-fast ease-out motion-reduce-fade",
34
+ "group-hover/list-row:pointer-events-auto group-hover/list-row:opacity-100",
35
+ "group-focus-within/list-row:pointer-events-auto group-focus-within/list-row:opacity-100"
36
+ ]
37
+ },
38
+ variants: {
39
+ variant: {
40
+ card: { root: "overflow-hidden rounded-xl text-card-foreground shadow-xs ring-1 ring-edge" },
41
+ filled: { root: "overflow-hidden rounded-xl bg-muted ring-1 ring-border [--surface:var(--muted)]" },
42
+ plain: {}
43
+ }
44
+ }
45
+ });
46
+ const ruled = "after:absolute after:inset-x-0 after:bottom-0 after:h-px after:bg-border after:content-[''] last:after:hidden";
47
+ const rowLayout = "flex items-center gap-3 px-3 py-2.5 [&_[data-slot=list-item-title]]:font-normal";
48
+ const focusRing = "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus";
49
+ function surfaceClass({
50
+ variant,
51
+ divided,
52
+ bleed,
53
+ currentStyle,
54
+ current,
55
+ selected,
56
+ unread
57
+ }) {
58
+ const marked = current || selected;
59
+ const plain = variant === "plain";
60
+ const shape = !plain ? "px-3 w-full" : currentStyle === "edge" ? "px-2 w-full rounded-none" : divided && bleed ? "px-2 -mx-2 w-[calc(100%+1rem)]" : currentStyle === "lift" ? "px-2 w-full rounded-md" : divided ? "px-2 w-full" : "px-2 w-full rounded-lg";
61
+ const transition = currentStyle === "lift" ? "transition-[background-color,box-shadow]" : "transition-colors";
62
+ let tone;
63
+ switch (currentStyle) {
64
+ case "chip":
65
+ tone = marked ? "relative bg-row-selected hover:bg-row-selected active:bg-row-selected" : "hover:bg-row-hover active:bg-row-hover";
66
+ break;
67
+ case "lift":
68
+ tone = marked ? "relative bg-card shadow-sm hover:bg-card active:bg-card dark:bg-popover dark:shadow-xs dark:ring-1 dark:ring-edge dark:ring-inset dark:hover:bg-popover dark:active:bg-popover" : "hover:bg-row-hover active:bg-row-hover";
69
+ break;
70
+ case "edge":
71
+ tone = marked ? "relative active:bg-foreground/2 dark:hover:bg-foreground/4 dark:active:bg-foreground/4 bg-row-hover hover:bg-row-hover before:pointer-events-none before:absolute before:inset-y-0 before:left-0 before:w-[3px] before:bg-foreground before:content-['']" : "hover:bg-foreground/2 active:bg-foreground/2 dark:hover:bg-foreground/4 dark:active:bg-foreground/4";
72
+ break;
73
+ case "ring":
74
+ tone = marked ? "relative ring-2 ring-inset ring-border hover:bg-muted/60 active:bg-muted" : "hover:bg-muted/60 active:bg-muted";
75
+ break;
76
+ default:
77
+ tone = marked ? "relative active:bg-muted bg-muted hover:bg-muted before:pointer-events-none before:absolute before:top-1/2 before:left-0 before:h-4 before:w-[3px] before:-translate-y-1/2 before:rounded-r-full before:bg-primary before:content-['']" : "hover:bg-muted/60 active:bg-muted";
78
+ }
79
+ return cn(
80
+ "flex items-center gap-3 py-2.5 cursor-pointer text-left duration-fast ease-out",
81
+ transition,
82
+ tone,
83
+ focusRing,
84
+ // A read row (or a row with no read state) sets the title regular; unread keeps it medium.
85
+ unread !== true && "[&_[data-slot=list-item-title]]:font-normal",
86
+ shape
87
+ );
88
+ }
89
+ const ListContext = React.createContext({
90
+ variant: "card",
91
+ divided: true,
92
+ bleed: true,
93
+ currentStyle: "bar",
94
+ listbox: false
95
+ });
96
+ const PAGE = 5;
97
+ function List({
98
+ variant = "card",
99
+ divided = true,
100
+ bleed = true,
101
+ currentStyle = "bar",
102
+ navigable,
103
+ selectionMode = "none",
104
+ asChild = false,
105
+ className,
106
+ onKeyDown,
107
+ onFocus,
108
+ ref,
109
+ ...props
110
+ }) {
111
+ const listbox = selectionMode !== "none";
112
+ const roving = navigable ?? listbox;
113
+ const listRef = React.useRef(null);
114
+ const lastIndex = React.useRef(0);
115
+ React.useImperativeHandle(ref, () => listRef.current);
116
+ const context = React.useMemo(
117
+ () => ({ variant, divided, bleed, currentStyle, listbox }),
118
+ [variant, divided, bleed, currentStyle, listbox]
119
+ );
120
+ const surfaces = () => Array.from(listRef.current?.querySelectorAll("[data-list-surface]") ?? []);
121
+ React.useEffect(() => {
122
+ const list = listRef.current;
123
+ if (!roving || !list) return;
124
+ const assign = () => {
125
+ const rows = surfaces();
126
+ if (rows.length === 0) return;
127
+ const focused = rows.indexOf(document.activeElement);
128
+ const current = rows.findIndex((row) => row.hasAttribute("aria-current"));
129
+ const index = focused >= 0 ? focused : current >= 0 ? current : Math.min(lastIndex.current, rows.length - 1);
130
+ rows.forEach((row, i) => row.tabIndex = i === index ? 0 : -1);
131
+ };
132
+ assign();
133
+ const observer = new MutationObserver(() => {
134
+ const rows = surfaces();
135
+ if (document.activeElement === document.body && rows.length > 0) {
136
+ rows[Math.min(lastIndex.current, rows.length - 1)].focus();
137
+ }
138
+ assign();
139
+ });
140
+ observer.observe(list, { childList: true, subtree: true });
141
+ return () => observer.disconnect();
142
+ });
143
+ const Comp = asChild ? Slot.Root : "ul";
144
+ return /* @__PURE__ */ jsx(ListContext.Provider, { value: context, children: /* @__PURE__ */ jsx(
145
+ Comp,
146
+ {
147
+ ref: listRef,
148
+ "data-slot": "list",
149
+ role: listbox ? "listbox" : void 0,
150
+ "aria-multiselectable": selectionMode === "multiple" || void 0,
151
+ className: listVariants({ variant }).root({ className }),
152
+ onFocus: (event) => {
153
+ onFocus?.(event);
154
+ if (!roving) return;
155
+ const rows = surfaces();
156
+ const index = rows.indexOf(event.target);
157
+ if (index < 0) return;
158
+ lastIndex.current = index;
159
+ rows.forEach((row, i) => row.tabIndex = i === index ? 0 : -1);
160
+ },
161
+ onKeyDown: (event) => {
162
+ onKeyDown?.(event);
163
+ if (!roving || event.defaultPrevented) return;
164
+ const rows = surfaces();
165
+ const index = rows.indexOf(document.activeElement);
166
+ if (index < 0) return;
167
+ const target = {
168
+ ArrowDown: index + 1,
169
+ ArrowUp: index - 1,
170
+ Home: 0,
171
+ End: rows.length - 1,
172
+ PageDown: index + PAGE,
173
+ PageUp: index - PAGE
174
+ }[event.key];
175
+ if (target === void 0) return;
176
+ event.preventDefault();
177
+ rows[Math.max(0, Math.min(rows.length - 1, target))].focus();
178
+ },
179
+ ...props
180
+ }
181
+ ) });
182
+ }
183
+ function ListItem({
184
+ asChild = false,
185
+ interactive,
186
+ current,
187
+ selected = false,
188
+ unread,
189
+ actions,
190
+ className,
191
+ children,
192
+ ...props
193
+ }) {
194
+ const ctx = React.useContext(ListContext);
195
+ const slots = listVariants();
196
+ const hasSurface = asChild;
197
+ const isInteractive = interactive ?? asChild;
198
+ const plain = ctx.variant === "plain";
199
+ const showActions = actions != null && !ctx.listbox;
200
+ const rule = ctx.divided ? hasSurface && plain && ctx.bleed && ctx.currentStyle !== "edge" ? ruled.replace("after:inset-x-0", "after:-inset-x-2") : ruled : "";
201
+ const gap = !ctx.divided && hasSurface ? ctx.currentStyle === "lift" ? "not-last:mb-1" : "not-last:mb-0.5" : "";
202
+ const unreadLabel = unread === true ? /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Unread," }) : null;
203
+ const actionsNode = showActions ? /* @__PURE__ */ jsx("div", { "data-slot": "list-item-actions", className: slots.actions(), children: actions }) : null;
204
+ if (!hasSurface) {
205
+ return /* @__PURE__ */ jsxs(
206
+ "li",
207
+ {
208
+ "data-slot": "list-item",
209
+ "data-actions": showActions ? "" : void 0,
210
+ "aria-current": current === true ? "true" : current || void 0,
211
+ className: slots.row({
212
+ className: cn(
213
+ rule,
214
+ rowLayout,
215
+ plain && "px-0",
216
+ isInteractive && "cursor-pointer transition-colors duration-fast ease-out hover:bg-muted/60 active:bg-muted",
217
+ className
218
+ )
219
+ }),
220
+ ...props,
221
+ children: [
222
+ unreadLabel,
223
+ children,
224
+ actionsNode
225
+ ]
226
+ }
227
+ );
228
+ }
229
+ const isCurrent = current !== void 0 && current !== false;
230
+ return /* @__PURE__ */ jsxs(
231
+ "li",
232
+ {
233
+ "data-slot": "list-item",
234
+ "data-actions": showActions ? "" : void 0,
235
+ role: ctx.listbox ? "none" : void 0,
236
+ className: slots.row({ className: cn(rule, gap, className) }),
237
+ ...props,
238
+ children: [
239
+ /* @__PURE__ */ jsxs(
240
+ Slot.Root,
241
+ {
242
+ "data-list-surface": "",
243
+ "data-unread": unread === void 0 ? void 0 : String(unread),
244
+ role: ctx.listbox ? "option" : void 0,
245
+ "aria-selected": ctx.listbox ? selected : void 0,
246
+ "aria-current": isCurrent ? current === true ? "true" : current : void 0,
247
+ className: surfaceClass({
248
+ variant: ctx.variant,
249
+ divided: ctx.divided,
250
+ bleed: ctx.bleed,
251
+ currentStyle: ctx.currentStyle,
252
+ current: isCurrent,
253
+ selected,
254
+ unread
255
+ }),
256
+ children: [
257
+ unreadLabel,
258
+ /* @__PURE__ */ jsx(Slot.Slottable, { children })
259
+ ]
260
+ }
261
+ ),
262
+ actionsNode
263
+ ]
264
+ }
265
+ );
266
+ }
267
+ function ListItemMedia({ className, ...props }) {
268
+ return /* @__PURE__ */ jsx("div", { "data-slot": "list-item-media", className: listVariants().media({ className }), ...props });
269
+ }
270
+ function ListItemContent({ className, ...props }) {
271
+ return /* @__PURE__ */ jsx("div", { "data-slot": "list-item-content", className: listVariants().content({ className }), ...props });
272
+ }
273
+ function clamp(lines) {
274
+ return lines === 1 ? "truncate" : lines === 2 ? "line-clamp-2" : lines === 3 ? "line-clamp-3" : "";
275
+ }
276
+ function ListItemTitle({ lines = 1, className, ...props }) {
277
+ return /* @__PURE__ */ jsx("div", { "data-slot": "list-item-title", className: listVariants().title({ className: cn(clamp(lines), className) }), ...props });
278
+ }
279
+ function ListItemDescription({ lines = "none", className, ...props }) {
280
+ return /* @__PURE__ */ jsx("div", { "data-slot": "list-item-description", className: listVariants().description({ className: cn(clamp(lines), className) }), ...props });
281
+ }
282
+ function ListItemMeta({ width = "auto", stacked = false, className, ...props }) {
283
+ const layout = stacked ? "w-14 h-10 flex-col items-end justify-start gap-0 self-start [&>*]:flex [&>*]:h-5 [&>*]:items-center" : cn("h-5 items-center gap-2", width === "sm" && "w-14 justify-end", width === "md" && "w-16 justify-end");
284
+ return /* @__PURE__ */ jsx("div", { "data-slot": "list-item-meta", className: listVariants().meta({ className: cn(layout, className) }), ...props });
285
+ }
286
+ function ListItemIndicator({ className, ...props }) {
287
+ return /* @__PURE__ */ jsx(
288
+ "span",
289
+ {
290
+ "data-slot": "list-item-indicator",
291
+ "data-tone": "neutral",
292
+ "aria-hidden": true,
293
+ className: cn(
294
+ "relative inline-block align-middle bg-(--dot-color) before:pointer-events-none before:absolute before:inset-0 before:rounded-[inherit] before:bg-(--dot-color) before:opacity-0 before:content-['']",
295
+ "after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:content-[''] rounded-full size-2 shrink-0 [--dot-color:var(--foreground)]",
296
+ className
297
+ ),
298
+ ...props
299
+ }
300
+ );
301
+ }
302
+ function ListItemAction({ className, ...props }) {
303
+ return /* @__PURE__ */ jsx(
304
+ Button,
305
+ {
306
+ variant: "ghost",
307
+ size: "sm",
308
+ iconOnly: true,
309
+ "data-slot": "list-item-action",
310
+ className: cn("[&_svg:not([class*='size-'])]:size-4", className),
311
+ ...props
312
+ }
313
+ );
314
+ }
315
+ function ListItemCheckbox({ checked = false, onCheckedChange, className, children, ...props }) {
316
+ return /* @__PURE__ */ jsxs(
317
+ "span",
318
+ {
319
+ "data-slot": "list-item-checkbox",
320
+ "data-state": checked ? "checked" : "unchecked",
321
+ className: cn("group/list-check relative flex size-8 shrink-0 items-center justify-center", className),
322
+ onClick: (event) => {
323
+ event.preventDefault();
324
+ event.stopPropagation();
325
+ onCheckedChange?.(!checked, { shiftKey: event.shiftKey, metaKey: event.metaKey, ctrlKey: event.ctrlKey });
326
+ },
327
+ ...props,
328
+ children: [
329
+ /* @__PURE__ */ jsx(
330
+ "span",
331
+ {
332
+ className: cn(
333
+ "flex transition-opacity duration-fast ease-out motion-reduce-fade",
334
+ "group-hover/list-row:opacity-0 group-has-focus-visible/list-row:opacity-0 in-data-selecting:opacity-0"
335
+ ),
336
+ children
337
+ }
338
+ ),
339
+ /* @__PURE__ */ jsx(
340
+ "span",
341
+ {
342
+ "aria-hidden": true,
343
+ className: cn(
344
+ "absolute inset-0 flex cursor-pointer items-center justify-center opacity-0 transition-opacity duration-fast ease-out",
345
+ "group-hover/list-row:opacity-100 group-has-focus-visible/list-row:opacity-100 in-data-selecting:opacity-100 motion-reduce-fade"
346
+ ),
347
+ children: /* @__PURE__ */ jsx(
348
+ "span",
349
+ {
350
+ className: cn(
351
+ "flex size-4 items-center justify-center rounded-[calc(var(--radius-sm)*0.6)] border shadow-xs transition-colors duration-fast ease-out",
352
+ checked ? "border-primary bg-primary text-[var(--surface,var(--background))]" : "border-input bg-[var(--surface,var(--background))]"
353
+ ),
354
+ children: checked ? /* @__PURE__ */ jsx(Check, { className: "size-3" }) : null
355
+ }
356
+ )
357
+ }
358
+ )
359
+ ]
360
+ }
361
+ );
362
+ }
363
+ function ListSelectionBar({ count, onClear, onSelectAll, className, children, ...props }) {
364
+ if (count === 0) return null;
365
+ return /* @__PURE__ */ jsx(Fragment, { children: count > 0 ? /* @__PURE__ */ jsxs(
366
+ "div",
367
+ {
368
+ "data-slot": "list-selection-bar",
369
+ role: "status",
370
+ "aria-live": "polite",
371
+ className: cn(
372
+ "absolute inset-x-3 bottom-3 z-20 flex items-center gap-1 rounded-xl bg-popover py-1.5 pr-1.5 pl-4 text-sm text-popover-foreground shadow-lg ring-1 ring-border [--surface:var(--popover)]",
373
+ "motion-safe:animate-in motion-safe:fade-in-0 motion-safe:slide-in-from-bottom-2 motion-safe:duration-fast",
374
+ className
375
+ ),
376
+ ...props,
377
+ children: [
378
+ /* @__PURE__ */ jsxs("span", { className: "mr-auto font-medium tabular-nums", children: [
379
+ count,
380
+ " selected"
381
+ ] }),
382
+ onSelectAll ? /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", onClick: onSelectAll, children: "Select all" }) : null,
383
+ onClear ? /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "sm", onClick: onClear, children: "Clear" }) : null,
384
+ children
385
+ ]
386
+ }
387
+ ) : null });
388
+ }
389
+ function useListSelection(ids) {
390
+ const [selection, setSelection] = React.useState(() => /* @__PURE__ */ new Set());
391
+ const anchor = React.useRef(null);
392
+ const live = React.useMemo(() => new Set(ids.filter((id) => selection.has(id))), [ids, selection]);
393
+ const toggle = React.useCallback((id, on) => {
394
+ setSelection((current) => {
395
+ const next = new Set(current);
396
+ if (on ?? !next.has(id)) next.add(id);
397
+ else next.delete(id);
398
+ return next;
399
+ });
400
+ anchor.current = id;
401
+ }, []);
402
+ const range = React.useCallback(
403
+ (id) => {
404
+ const from = anchor.current ? ids.indexOf(anchor.current) : -1;
405
+ const to = ids.indexOf(id);
406
+ if (from < 0 || to < 0) return toggle(id, true);
407
+ const [start, end] = from < to ? [from, to] : [to, from];
408
+ setSelection((current) => /* @__PURE__ */ new Set([...current, ...ids.slice(start, end + 1)]));
409
+ },
410
+ [ids, toggle]
411
+ );
412
+ return {
413
+ count: live.size,
414
+ isSelected: (id) => live.has(id),
415
+ clear: () => setSelection(/* @__PURE__ */ new Set()),
416
+ selectAll: () => setSelection(new Set(ids)),
417
+ listProps: { "data-selecting": live.size > 0 ? "" : void 0 },
418
+ getItemProps: (id, onOpen) => ({
419
+ selected: live.has(id),
420
+ onClick: (event) => {
421
+ if (event.shiftKey) range(id);
422
+ else if (event.metaKey || event.ctrlKey) toggle(id);
423
+ else onOpen?.();
424
+ },
425
+ onKeyDown: (event) => {
426
+ if (event.key !== " ") return;
427
+ event.preventDefault();
428
+ toggle(id);
429
+ }
430
+ }),
431
+ getCheckboxProps: (id) => ({
432
+ checked: live.has(id),
433
+ onCheckedChange: (_checked, modifiers) => modifiers.shiftKey ? range(id) : toggle(id)
434
+ })
435
+ };
436
+ }
437
+ function ListItemSkeleton({ media = "avatar", lines = 2, meta = true, className, ...props }) {
438
+ const ctx = React.useContext(ListContext);
439
+ const widths = ["w-2/5", "w-3/5", "w-1/2"];
440
+ return /* @__PURE__ */ jsx(
441
+ "li",
442
+ {
443
+ "data-slot": "list-item-skeleton",
444
+ "aria-hidden": true,
445
+ className: listVariants().row({ className: cn(ctx.divided ? ruled : "not-last:mb-0.5", className) }),
446
+ ...props,
447
+ children: /* @__PURE__ */ jsxs(
448
+ "div",
449
+ {
450
+ className: cn(
451
+ surfaceClass({ ...ctx, current: false, selected: false, unread: void 0 }),
452
+ "pointer-events-none items-start"
453
+ ),
454
+ children: [
455
+ media === "avatar" ? /* @__PURE__ */ jsx(Skeleton, { variant: "circle", className: "size-8" }) : null,
456
+ /* @__PURE__ */ jsx("div", { className: cn("flex min-w-0 flex-1 flex-col gap-0.5", lines > 1 && "min-h-10"), children: Array.from({ length: lines }, (_, index) => /* @__PURE__ */ jsx("div", { className: cn("flex items-center", index === 0 ? "h-5" : "h-4"), children: /* @__PURE__ */ jsx(Skeleton, { className: cn(index === 0 ? "h-3" : "h-2.5", widths[index]) }) }, index)) }),
457
+ meta ? /* @__PURE__ */ jsx("div", { className: "flex h-5 w-14 shrink-0 items-center justify-end", children: /* @__PURE__ */ jsx(Skeleton, { className: "h-2.5 w-8" }) }) : null
458
+ ]
459
+ }
460
+ )
461
+ }
462
+ );
463
+ }
464
+ const emptyCopy = {
465
+ empty: { title: "Nothing here yet", description: "New items will show up here." },
466
+ filtered: { title: "No results", description: "Try a different search or clear the filters." },
467
+ error: { title: "Couldn't load this list", description: "Check your connection and try again." }
468
+ };
469
+ function ListEmpty({ reason = "empty", icon, title, description, action, className, ...props }) {
470
+ const copy = emptyCopy[reason];
471
+ return /* @__PURE__ */ jsxs(
472
+ EmptyState,
473
+ {
474
+ "data-slot": "list-empty",
475
+ "data-reason": reason,
476
+ role: reason === "error" ? "alert" : void 0,
477
+ className: cn("gap-1.5 px-4 py-8", className),
478
+ ...props,
479
+ children: [
480
+ icon ? /* @__PURE__ */ jsx(EmptyStateMedia, { children: icon }) : null,
481
+ /* @__PURE__ */ jsx(EmptyStateTitle, { children: title ?? copy.title }),
482
+ /* @__PURE__ */ jsx(EmptyStateDescription, { children: description ?? copy.description }),
483
+ action ? /* @__PURE__ */ jsx(EmptyStateActions, { children: action }) : null
484
+ ]
485
+ }
486
+ );
487
+ }
488
+ export {
489
+ List,
490
+ ListEmpty,
491
+ ListItem,
492
+ ListItemAction,
493
+ ListItemCheckbox,
494
+ ListItemContent,
495
+ ListItemDescription,
496
+ ListItemIndicator,
497
+ ListItemMedia,
498
+ ListItemMeta,
499
+ ListItemSkeleton,
500
+ ListItemTitle,
501
+ ListSelectionBar,
502
+ listVariants,
503
+ useListSelection
504
+ };
505
+ //# sourceMappingURL=list.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/ui/list/list.tsx"],"sourcesContent":["\"use client\"\r\n\r\nimport * as React from \"react\"\r\nimport { Check } from \"atoms-icons\"\r\nimport { Slot } from \"radix-ui\"\r\n\r\nimport { Button, type ButtonProps } from \"../button/button.mjs\"\r\nimport { Skeleton } from \"../skeleton/index.mjs\"\r\nimport {\r\n EmptyState,\r\n EmptyStateActions,\r\n EmptyStateDescription,\r\n EmptyStateMedia,\r\n EmptyStateTitle,\r\n} from \"../empty-state/empty-state.mjs\"\r\nimport { tv } from \"../../../lib/tv.mjs\"\r\nimport { cn } from \"../../../lib/utils.mjs\"\r\n\r\n/*\r\n * The vertical list group: rows with leading media, a title and description, and trailing meta or\r\n * actions. Rows are inert by default; `asChild` hands the row surface to an <a> or <button> while\r\n * the <li> keeps the divider, so the nesting stays valid. Selection is ink, never brand: the\r\n * current row is marked by `currentStyle`, and a hover is always a lighter step of the same signal.\r\n */\r\n\r\ntype Variant = \"card\" | \"filled\" | \"plain\"\r\ntype CurrentStyle = \"bar\" | \"ring\" | \"chip\" | \"lift\" | \"edge\"\r\ntype SelectionMode = \"none\" | \"single\" | \"multiple\"\r\ntype Lines = 1 | 2 | 3 | \"none\"\r\n\r\nexport const listVariants = tv({\r\n slots: {\r\n root: \"text-sm\",\r\n row: \"group/list-row relative\",\r\n media: \"flex shrink-0 items-center justify-center text-muted-foreground [&>svg]:size-5\",\r\n content: \"flex min-w-0 flex-1 flex-col gap-0.5\",\r\n title: \"font-medium text-foreground [:where(&)]:text-pretty\",\r\n description: \"text-xs text-muted-foreground [:where(&)]:text-pretty\",\r\n meta: [\r\n \"ml-auto flex shrink-0 text-xs tabular-nums text-muted-foreground [&>svg]:size-4\",\r\n \"transition-opacity duration-fast ease-out motion-reduce-fade\",\r\n // Actions take the meta's place on hover and focus.\r\n \"group-data-actions/list-row:group-hover/list-row:opacity-0 group-data-actions/list-row:group-focus-within/list-row:opacity-0\",\r\n ],\r\n actions: [\r\n \"pointer-events-none absolute top-1/2 right-2 z-10 flex -translate-y-1/2 items-center gap-0.5 opacity-0\",\r\n \"transition-opacity duration-fast ease-out motion-reduce-fade\",\r\n \"group-hover/list-row:pointer-events-auto group-hover/list-row:opacity-100\",\r\n \"group-focus-within/list-row:pointer-events-auto group-focus-within/list-row:opacity-100\",\r\n ],\r\n },\r\n variants: {\r\n variant: {\r\n card: { root: \"overflow-hidden rounded-xl text-card-foreground shadow-xs ring-1 ring-edge\" },\r\n filled: { root: \"overflow-hidden rounded-xl bg-muted ring-1 ring-border [--surface:var(--muted)]\" },\r\n plain: {},\r\n },\r\n },\r\n})\r\n\r\nconst ruled = \"after:absolute after:inset-x-0 after:bottom-0 after:h-px after:bg-border after:content-[''] last:after:hidden\"\r\nconst rowLayout = \"flex items-center gap-3 px-3 py-2.5 [&_[data-slot=list-item-title]]:font-normal\"\r\nconst focusRing = \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-focus\"\r\n\r\n/** The classes on a row surface (the <a> or <button> under asChild). */\r\nfunction surfaceClass({\r\n variant,\r\n divided,\r\n bleed,\r\n currentStyle,\r\n current,\r\n selected,\r\n unread,\r\n}: {\r\n variant: Variant\r\n divided: boolean\r\n bleed: boolean\r\n currentStyle: CurrentStyle\r\n current: boolean\r\n selected: boolean\r\n unread: boolean | undefined\r\n}) {\r\n const marked = current || selected\r\n const plain = variant === \"plain\"\r\n const shape = !plain\r\n ? \"px-3 w-full\"\r\n : currentStyle === \"edge\"\r\n ? \"px-2 w-full rounded-none\"\r\n : divided && bleed\r\n ? \"px-2 -mx-2 w-[calc(100%+1rem)]\"\r\n : currentStyle === \"lift\"\r\n ? \"px-2 w-full rounded-md\"\r\n : divided\r\n ? \"px-2 w-full\"\r\n : \"px-2 w-full rounded-lg\"\r\n const transition = currentStyle === \"lift\" ? \"transition-[background-color,box-shadow]\" : \"transition-colors\"\r\n\r\n let tone: string\r\n switch (currentStyle) {\r\n case \"chip\":\r\n tone = marked\r\n ? \"relative bg-row-selected hover:bg-row-selected active:bg-row-selected\"\r\n : \"hover:bg-row-hover active:bg-row-hover\"\r\n break\r\n case \"lift\":\r\n tone = marked\r\n ? \"relative bg-card shadow-sm hover:bg-card active:bg-card dark:bg-popover dark:shadow-xs dark:ring-1 dark:ring-edge dark:ring-inset dark:hover:bg-popover dark:active:bg-popover\"\r\n : \"hover:bg-row-hover active:bg-row-hover\"\r\n break\r\n case \"edge\":\r\n tone = marked\r\n ? \"relative active:bg-foreground/2 dark:hover:bg-foreground/4 dark:active:bg-foreground/4 bg-row-hover hover:bg-row-hover before:pointer-events-none before:absolute before:inset-y-0 before:left-0 before:w-[3px] before:bg-foreground before:content-['']\"\r\n : \"hover:bg-foreground/2 active:bg-foreground/2 dark:hover:bg-foreground/4 dark:active:bg-foreground/4\"\r\n break\r\n case \"ring\":\r\n // The grey cursor for game-style selection: a ring, no fill.\r\n tone = marked ? \"relative ring-2 ring-inset ring-border hover:bg-muted/60 active:bg-muted\" : \"hover:bg-muted/60 active:bg-muted\"\r\n break\r\n default:\r\n tone = marked\r\n ? \"relative active:bg-muted bg-muted hover:bg-muted before:pointer-events-none before:absolute before:top-1/2 before:left-0 before:h-4 before:w-[3px] before:-translate-y-1/2 before:rounded-r-full before:bg-primary before:content-['']\"\r\n : \"hover:bg-muted/60 active:bg-muted\"\r\n }\r\n\r\n return cn(\r\n \"flex items-center gap-3 py-2.5 cursor-pointer text-left duration-fast ease-out\",\r\n transition,\r\n tone,\r\n focusRing,\r\n // A read row (or a row with no read state) sets the title regular; unread keeps it medium.\r\n unread !== true && \"[&_[data-slot=list-item-title]]:font-normal\",\r\n shape,\r\n )\r\n}\r\n\r\n/* ─── Context ───────────────────────────────────────────────────────────── */\r\n\r\ninterface ListContextValue {\r\n variant: Variant\r\n divided: boolean\r\n bleed: boolean\r\n currentStyle: CurrentStyle\r\n listbox: boolean\r\n}\r\n\r\nconst ListContext = React.createContext<ListContextValue>({\r\n variant: \"card\",\r\n divided: true,\r\n bleed: true,\r\n currentStyle: \"bar\",\r\n listbox: false,\r\n})\r\n\r\n/* ─── List ──────────────────────────────────────────────────────────────── */\r\n\r\nexport interface ListProps extends React.ComponentProps<\"ul\"> {\r\n /** card bands the rows in a ringed surface; filled adds its own fill; plain sits them flush. */\r\n variant?: Variant\r\n /** A hairline rule between rows. */\r\n divided?: boolean\r\n /** plain only: the row's fill hangs 8px into the column's own margin. */\r\n bleed?: boolean\r\n /** How the current row is marked. */\r\n currentStyle?: CurrentStyle\r\n /** Roving focus: one tab stop, arrows, Home, End and Page Up/Down move between rows. */\r\n navigable?: boolean\r\n /** single and multiple make the list a listbox: rows become options with aria-selected. */\r\n selectionMode?: SelectionMode\r\n /** Renders the child (an <ol>, say) as the root. */\r\n asChild?: boolean\r\n}\r\n\r\nconst PAGE = 5\r\n\r\nexport function List({\r\n variant = \"card\",\r\n divided = true,\r\n bleed = true,\r\n currentStyle = \"bar\",\r\n navigable,\r\n selectionMode = \"none\",\r\n asChild = false,\r\n className,\r\n onKeyDown,\r\n onFocus,\r\n ref,\r\n ...props\r\n}: ListProps) {\r\n const listbox = selectionMode !== \"none\"\r\n const roving = navigable ?? listbox\r\n const listRef = React.useRef<HTMLUListElement | null>(null)\r\n const lastIndex = React.useRef(0)\r\n React.useImperativeHandle(ref, () => listRef.current as HTMLUListElement)\r\n\r\n const context = React.useMemo(\r\n () => ({ variant, divided, bleed, currentStyle, listbox }),\r\n [variant, divided, bleed, currentStyle, listbox],\r\n )\r\n\r\n const surfaces = () => Array.from(listRef.current?.querySelectorAll<HTMLElement>(\"[data-list-surface]\") ?? [])\r\n\r\n // One tab stop: the current row, else the last focused one, else the first.\r\n React.useEffect(() => {\r\n const list = listRef.current\r\n if (!roving || !list) return\r\n const assign = () => {\r\n const rows = surfaces()\r\n if (rows.length === 0) return\r\n const focused = rows.indexOf(document.activeElement as HTMLElement)\r\n const current = rows.findIndex((row) => row.hasAttribute(\"aria-current\"))\r\n const index = focused >= 0 ? focused : current >= 0 ? current : Math.min(lastIndex.current, rows.length - 1)\r\n rows.forEach((row, i) => (row.tabIndex = i === index ? 0 : -1))\r\n }\r\n assign()\r\n // A removed row (archived, say) hands focus to the row that took its place.\r\n const observer = new MutationObserver(() => {\r\n const rows = surfaces()\r\n if (document.activeElement === document.body && rows.length > 0) {\r\n rows[Math.min(lastIndex.current, rows.length - 1)].focus()\r\n }\r\n assign()\r\n })\r\n observer.observe(list, { childList: true, subtree: true })\r\n return () => observer.disconnect()\r\n })\r\n\r\n const Comp = asChild ? Slot.Root : \"ul\"\r\n return (\r\n <ListContext.Provider value={context}>\r\n <Comp\r\n ref={listRef}\r\n data-slot=\"list\"\r\n role={listbox ? \"listbox\" : undefined}\r\n aria-multiselectable={selectionMode === \"multiple\" || undefined}\r\n className={listVariants({ variant }).root({ className })}\r\n onFocus={(event: React.FocusEvent<HTMLUListElement>) => {\r\n onFocus?.(event)\r\n if (!roving) return\r\n const rows = surfaces()\r\n const index = rows.indexOf(event.target as HTMLElement)\r\n if (index < 0) return\r\n lastIndex.current = index\r\n rows.forEach((row, i) => (row.tabIndex = i === index ? 0 : -1))\r\n }}\r\n onKeyDown={(event: React.KeyboardEvent<HTMLUListElement>) => {\r\n onKeyDown?.(event)\r\n if (!roving || event.defaultPrevented) return\r\n const rows = surfaces()\r\n const index = rows.indexOf(document.activeElement as HTMLElement)\r\n if (index < 0) return\r\n const target = {\r\n ArrowDown: index + 1,\r\n ArrowUp: index - 1,\r\n Home: 0,\r\n End: rows.length - 1,\r\n PageDown: index + PAGE,\r\n PageUp: index - PAGE,\r\n }[event.key]\r\n if (target === undefined) return\r\n event.preventDefault()\r\n rows[Math.max(0, Math.min(rows.length - 1, target))].focus()\r\n }}\r\n {...props}\r\n />\r\n </ListContext.Provider>\r\n )\r\n}\r\n\r\n/* ─── ListItem ──────────────────────────────────────────────────────────── */\r\n\r\nexport interface ListItemProps extends React.ComponentProps<\"li\"> {\r\n /** Hands the row surface to a single <a> or <button> child. Implies interactive. */\r\n asChild?: boolean\r\n /** Hover, press and focus affordance on the row itself. */\r\n interactive?: boolean\r\n /** The row the screen is showing: marked by the list's currentStyle, with aria-current. */\r\n current?: boolean | \"page\" | \"step\" | \"location\" | \"date\" | \"time\"\r\n /** Part of a multi-selection: a soft ink fill, and aria-selected in a listbox. */\r\n selected?: boolean\r\n /** Read state. true keeps the title medium and announces it; false sets the title regular. */\r\n unread?: boolean\r\n /** Hover-revealed ListItemActions, rendered beside the row, never inside it. */\r\n actions?: React.ReactNode\r\n}\r\n\r\nexport function ListItem({\r\n asChild = false,\r\n interactive,\r\n current,\r\n selected = false,\r\n unread,\r\n actions,\r\n className,\r\n children,\r\n ...props\r\n}: ListItemProps) {\r\n const ctx = React.useContext(ListContext)\r\n const slots = listVariants()\r\n const hasSurface = asChild\r\n const isInteractive = interactive ?? asChild\r\n const plain = ctx.variant === \"plain\"\r\n const showActions = actions != null && !ctx.listbox\r\n\r\n const rule = ctx.divided ? (hasSurface && plain && ctx.bleed && ctx.currentStyle !== \"edge\" ? ruled.replace(\"after:inset-x-0\", \"after:-inset-x-2\") : ruled) : \"\"\r\n const gap = !ctx.divided && hasSurface ? (ctx.currentStyle === \"lift\" ? \"not-last:mb-1\" : \"not-last:mb-0.5\") : \"\"\r\n\r\n const unreadLabel = unread === true ? <span className=\"sr-only\">Unread,</span> : null\r\n const actionsNode = showActions ? (\r\n <div data-slot=\"list-item-actions\" className={slots.actions()}>\r\n {actions}\r\n </div>\r\n ) : null\r\n\r\n if (!hasSurface) {\r\n // An inert row (or one that handles its own onClick): the <li> carries the layout.\r\n return (\r\n <li\r\n data-slot=\"list-item\"\r\n data-actions={showActions ? \"\" : undefined}\r\n aria-current={current === true ? \"true\" : current || undefined}\r\n className={slots.row({\r\n className: cn(\r\n rule,\r\n rowLayout,\r\n plain && \"px-0\",\r\n isInteractive && \"cursor-pointer transition-colors duration-fast ease-out hover:bg-muted/60 active:bg-muted\",\r\n className,\r\n ),\r\n })}\r\n {...props}\r\n >\r\n {unreadLabel}\r\n {children}\r\n {actionsNode}\r\n </li>\r\n )\r\n }\r\n\r\n const isCurrent = current !== undefined && current !== false\r\n return (\r\n <li\r\n data-slot=\"list-item\"\r\n data-actions={showActions ? \"\" : undefined}\r\n role={ctx.listbox ? \"none\" : undefined}\r\n className={slots.row({ className: cn(rule, gap, className) })}\r\n {...props}\r\n >\r\n <Slot.Root\r\n data-list-surface=\"\"\r\n data-unread={unread === undefined ? undefined : String(unread)}\r\n role={ctx.listbox ? \"option\" : undefined}\r\n aria-selected={ctx.listbox ? selected : undefined}\r\n aria-current={isCurrent ? (current === true ? \"true\" : current) : undefined}\r\n className={surfaceClass({\r\n variant: ctx.variant,\r\n divided: ctx.divided,\r\n bleed: ctx.bleed,\r\n currentStyle: ctx.currentStyle,\r\n current: isCurrent,\r\n selected,\r\n unread,\r\n })}\r\n >\r\n {unreadLabel}\r\n <Slot.Slottable>{children}</Slot.Slottable>\r\n </Slot.Root>\r\n {actionsNode}\r\n </li>\r\n )\r\n}\r\n\r\n/* ─── Row parts ─────────────────────────────────────────────────────────── */\r\n\r\nexport function ListItemMedia({ className, ...props }: React.ComponentProps<\"div\">) {\r\n return <div data-slot=\"list-item-media\" className={listVariants().media({ className })} {...props} />\r\n}\r\n\r\nexport function ListItemContent({ className, ...props }: React.ComponentProps<\"div\">) {\r\n return <div data-slot=\"list-item-content\" className={listVariants().content({ className })} {...props} />\r\n}\r\n\r\nfunction clamp(lines: Lines) {\r\n return lines === 1 ? \"truncate\" : lines === 2 ? \"line-clamp-2\" : lines === 3 ? \"line-clamp-3\" : \"\"\r\n}\r\n\r\nexport interface ListItemTextProps extends React.ComponentProps<\"div\"> {\r\n /** Lines before the ellipsis. \"none\" wraps in full. */\r\n lines?: Lines\r\n}\r\n\r\n/** The primary line: one line with an ellipsis by default, so a long title never pushes the meta off. */\r\nexport function ListItemTitle({ lines = 1, className, ...props }: ListItemTextProps) {\r\n return <div data-slot=\"list-item-title\" className={listVariants().title({ className: cn(clamp(lines), className) })} {...props} />\r\n}\r\n\r\n/** The muted second line: wraps in full by default. */\r\nexport function ListItemDescription({ lines = \"none\", className, ...props }: ListItemTextProps) {\r\n return (\r\n <div data-slot=\"list-item-description\" className={listVariants().description({ className: cn(clamp(lines), className) })} {...props} />\r\n )\r\n}\r\n\r\nexport interface ListItemMetaProps extends React.ComponentProps<\"div\"> {\r\n /** A fixed, right-aligned column (56 or 64px), so every title truncates at the same edge. */\r\n width?: \"auto\" | \"sm\" | \"md\"\r\n /** Two lines on the title's and description's rows: the time on top, an indicator under it. */\r\n stacked?: boolean\r\n}\r\n\r\nexport function ListItemMeta({ width = \"auto\", stacked = false, className, ...props }: ListItemMetaProps) {\r\n const layout = stacked\r\n ? \"w-14 h-10 flex-col items-end justify-start gap-0 self-start [&>*]:flex [&>*]:h-5 [&>*]:items-center\"\r\n : cn(\"h-5 items-center gap-2\", width === \"sm\" && \"w-14 justify-end\", width === \"md\" && \"w-16 justify-end\")\r\n return <div data-slot=\"list-item-meta\" className={listVariants().meta({ className: cn(layout, className) })} {...props} />\r\n}\r\n\r\n/** The unread mark: an ink dot sized for the meta column. Decorative; `unread` announces it. */\r\nexport function ListItemIndicator({ className, ...props }: React.ComponentProps<\"span\">) {\r\n return (\r\n <span\r\n data-slot=\"list-item-indicator\"\r\n data-tone=\"neutral\"\r\n aria-hidden\r\n className={cn(\r\n \"relative inline-block align-middle bg-(--dot-color) before:pointer-events-none before:absolute before:inset-0 before:rounded-[inherit] before:bg-(--dot-color) before:opacity-0 before:content-['']\",\r\n \"after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:content-[''] rounded-full size-2 shrink-0 [--dot-color:var(--foreground)]\",\r\n className,\r\n )}\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\nexport interface ListItemActionProps extends Omit<ButtonProps, \"variant\" | \"size\"> {\r\n /** Required: the control has no visible text. */\r\n \"aria-label\": string\r\n}\r\n\r\n/** One hover-revealed row control: a small ghost icon button. Pass it in the row's `actions`. */\r\nexport function ListItemAction({ className, ...props }: ListItemActionProps) {\r\n return (\r\n <Button\r\n variant=\"ghost\"\r\n size=\"sm\"\r\n iconOnly\r\n data-slot=\"list-item-action\"\r\n className={cn(\"[&_svg:not([class*='size-'])]:size-4\", className)}\r\n {...props}\r\n />\r\n )\r\n}\r\n\r\n/* ─── Selection ─────────────────────────────────────────────────────────── */\r\n\r\ntype Modifiers = { shiftKey: boolean; metaKey: boolean; ctrlKey: boolean }\r\n\r\nexport interface ListItemCheckboxProps extends Omit<React.ComponentProps<\"span\">, \"onClick\"> {\r\n checked?: boolean\r\n onCheckedChange?: (checked: boolean, modifiers: Modifiers) => void\r\n}\r\n\r\n/** The selection box in the media slot: the avatar at rest, the box on hover, focus and while selecting. */\r\nexport function ListItemCheckbox({ checked = false, onCheckedChange, className, children, ...props }: ListItemCheckboxProps) {\r\n return (\r\n <span\r\n data-slot=\"list-item-checkbox\"\r\n data-state={checked ? \"checked\" : \"unchecked\"}\r\n className={cn(\"group/list-check relative flex size-8 shrink-0 items-center justify-center\", className)}\r\n onClick={(event) => {\r\n // The box toggles the selection; it never opens the row.\r\n event.preventDefault()\r\n event.stopPropagation()\r\n onCheckedChange?.(!checked, { shiftKey: event.shiftKey, metaKey: event.metaKey, ctrlKey: event.ctrlKey })\r\n }}\r\n {...props}\r\n >\r\n <span\r\n className={cn(\r\n \"flex transition-opacity duration-fast ease-out motion-reduce-fade\",\r\n \"group-hover/list-row:opacity-0 group-has-focus-visible/list-row:opacity-0 in-data-selecting:opacity-0\",\r\n )}\r\n >\r\n {children}\r\n </span>\r\n <span\r\n aria-hidden\r\n className={cn(\r\n \"absolute inset-0 flex cursor-pointer items-center justify-center opacity-0 transition-opacity duration-fast ease-out\",\r\n \"group-hover/list-row:opacity-100 group-has-focus-visible/list-row:opacity-100 in-data-selecting:opacity-100 motion-reduce-fade\",\r\n )}\r\n >\r\n <span\r\n className={cn(\r\n \"flex size-4 items-center justify-center rounded-[calc(var(--radius-sm)*0.6)] border shadow-xs transition-colors duration-fast ease-out\",\r\n checked\r\n ? \"border-primary bg-primary text-[var(--surface,var(--background))]\"\r\n : \"border-input bg-[var(--surface,var(--background))]\",\r\n )}\r\n >\r\n {checked ? <Check className=\"size-3\" /> : null}\r\n </span>\r\n </span>\r\n </span>\r\n )\r\n}\r\n\r\nexport interface ListSelectionBarProps extends React.ComponentProps<\"div\"> {\r\n /** How many rows are selected. Nothing renders at zero. */\r\n count: number\r\n onClear?: () => void\r\n /** Shows a Select all button. */\r\n onSelectAll?: () => void\r\n}\r\n\r\n/** A floating bar at the foot of the pane: the count, Select all, Clear and your bulk actions. */\r\nexport function ListSelectionBar({ count, onClear, onSelectAll, className, children, ...props }: ListSelectionBarProps) {\r\n if (count === 0) return null\r\n return (\r\n <>\r\n {count > 0 ? (\r\n <div\r\n data-slot=\"list-selection-bar\"\r\n role=\"status\"\r\n aria-live=\"polite\"\r\n className={cn(\r\n \"absolute inset-x-3 bottom-3 z-20 flex items-center gap-1 rounded-xl bg-popover py-1.5 pr-1.5 pl-4 text-sm text-popover-foreground shadow-lg ring-1 ring-border [--surface:var(--popover)]\",\r\n \"motion-safe:animate-in motion-safe:fade-in-0 motion-safe:slide-in-from-bottom-2 motion-safe:duration-fast\",\r\n className,\r\n )}\r\n {...props}\r\n >\r\n <span className=\"mr-auto font-medium tabular-nums\">{count} selected</span>\r\n {onSelectAll ? (\r\n <Button variant=\"ghost\" size=\"sm\" onClick={onSelectAll}>\r\n Select all\r\n </Button>\r\n ) : null}\r\n {onClear ? (\r\n <Button variant=\"ghost\" size=\"sm\" onClick={onClear}>\r\n Clear\r\n </Button>\r\n ) : null}\r\n {children}\r\n </div>\r\n ) : null}\r\n </>\r\n )\r\n}\r\n\r\n/** Multi-select state for a list of ids: a click opens, Shift-click selects a range, Cmd or Ctrl-click and Space toggle. */\r\nexport function useListSelection(ids: string[]) {\r\n const [selection, setSelection] = React.useState<Set<string>>(() => new Set())\r\n const anchor = React.useRef<string | null>(null)\r\n\r\n // Ids that leave the list drop out of the selection.\r\n const live = React.useMemo(() => new Set(ids.filter((id) => selection.has(id))), [ids, selection])\r\n\r\n const toggle = React.useCallback((id: string, on?: boolean) => {\r\n setSelection((current) => {\r\n const next = new Set(current)\r\n if (on ?? !next.has(id)) next.add(id)\r\n else next.delete(id)\r\n return next\r\n })\r\n anchor.current = id\r\n }, [])\r\n\r\n const range = React.useCallback(\r\n (id: string) => {\r\n const from = anchor.current ? ids.indexOf(anchor.current) : -1\r\n const to = ids.indexOf(id)\r\n if (from < 0 || to < 0) return toggle(id, true)\r\n const [start, end] = from < to ? [from, to] : [to, from]\r\n setSelection((current) => new Set([...current, ...ids.slice(start, end + 1)]))\r\n },\r\n [ids, toggle],\r\n )\r\n\r\n return {\r\n count: live.size,\r\n isSelected: (id: string) => live.has(id),\r\n clear: () => setSelection(new Set()),\r\n selectAll: () => setSelection(new Set(ids)),\r\n listProps: { \"data-selecting\": live.size > 0 ? \"\" : undefined },\r\n getItemProps: (id: string, onOpen?: () => void) => ({\r\n selected: live.has(id),\r\n onClick: (event: React.MouseEvent) => {\r\n if (event.shiftKey) range(id)\r\n else if (event.metaKey || event.ctrlKey) toggle(id)\r\n else onOpen?.()\r\n },\r\n onKeyDown: (event: React.KeyboardEvent) => {\r\n if (event.key !== \" \") return\r\n event.preventDefault()\r\n toggle(id)\r\n },\r\n }),\r\n getCheckboxProps: (id: string) => ({\r\n checked: live.has(id),\r\n onCheckedChange: (_checked: boolean, modifiers: Modifiers) => (modifiers.shiftKey ? range(id) : toggle(id)),\r\n }),\r\n }\r\n}\r\n\r\n/* ─── Loading and empty ─────────────────────────────────────────────────── */\r\n\r\nexport interface ListItemSkeletonProps extends React.ComponentProps<\"li\"> {\r\n /** Reserve the 32px leading mark. */\r\n media?: \"avatar\" | \"none\"\r\n /** Title plus description lines. */\r\n lines?: 1 | 2 | 3\r\n /** Reserve the fixed time column. */\r\n meta?: boolean\r\n}\r\n\r\n/** A loading row on the real row's grid, so nothing jumps when the data lands. */\r\nexport function ListItemSkeleton({ media = \"avatar\", lines = 2, meta = true, className, ...props }: ListItemSkeletonProps) {\r\n const ctx = React.useContext(ListContext)\r\n const widths = [\"w-2/5\", \"w-3/5\", \"w-1/2\"]\r\n return (\r\n <li\r\n data-slot=\"list-item-skeleton\"\r\n aria-hidden\r\n className={listVariants().row({ className: cn(ctx.divided ? ruled : \"not-last:mb-0.5\", className) })}\r\n {...props}\r\n >\r\n <div\r\n className={cn(\r\n surfaceClass({ ...ctx, current: false, selected: false, unread: undefined }),\r\n \"pointer-events-none items-start\",\r\n )}\r\n >\r\n {media === \"avatar\" ? <Skeleton variant=\"circle\" className=\"size-8\" /> : null}\r\n <div className={cn(\"flex min-w-0 flex-1 flex-col gap-0.5\", lines > 1 && \"min-h-10\")}>\r\n {Array.from({ length: lines }, (_, index) => (\r\n <div key={index} className={cn(\"flex items-center\", index === 0 ? \"h-5\" : \"h-4\")}>\r\n <Skeleton className={cn(index === 0 ? \"h-3\" : \"h-2.5\", widths[index])} />\r\n </div>\r\n ))}\r\n </div>\r\n {meta ? (\r\n <div className=\"flex h-5 w-14 shrink-0 items-center justify-end\">\r\n <Skeleton className=\"h-2.5 w-8\" />\r\n </div>\r\n ) : null}\r\n </div>\r\n </li>\r\n )\r\n}\r\n\r\nconst emptyCopy = {\r\n empty: { title: \"Nothing here yet\", description: \"New items will show up here.\" },\r\n filtered: { title: \"No results\", description: \"Try a different search or clear the filters.\" },\r\n error: { title: \"Couldn't load this list\", description: \"Check your connection and try again.\" },\r\n} as const\r\n\r\nexport interface ListEmptyProps extends Omit<React.ComponentProps<\"div\">, \"title\"> {\r\n /** Nothing yet, a filter with no matches, or a load that failed (announced as an alert). */\r\n reason?: \"empty\" | \"filtered\" | \"error\"\r\n icon?: React.ReactNode\r\n title?: React.ReactNode\r\n description?: React.ReactNode\r\n /** One action at most: Clear filters, Retry. */\r\n action?: React.ReactNode\r\n}\r\n\r\n/** What a list shows when it has no rows, for one of three reasons. */\r\nexport function ListEmpty({ reason = \"empty\", icon, title, description, action, className, ...props }: ListEmptyProps) {\r\n const copy = emptyCopy[reason]\r\n return (\r\n <EmptyState\r\n data-slot=\"list-empty\"\r\n data-reason={reason}\r\n role={reason === \"error\" ? \"alert\" : undefined}\r\n className={cn(\"gap-1.5 px-4 py-8\", className)}\r\n {...props}\r\n >\r\n {icon ? <EmptyStateMedia>{icon}</EmptyStateMedia> : null}\r\n <EmptyStateTitle>{title ?? copy.title}</EmptyStateTitle>\r\n <EmptyStateDescription>{description ?? copy.description}</EmptyStateDescription>\r\n {action ? <EmptyStateActions>{action}</EmptyStateActions> : null}\r\n </EmptyState>\r\n )\r\n}\r\n"],"mappings":";AAqOM,SAiSF,UAjSE,KAuFA,YAvFA;AAnON,YAAY,WAAW;AACvB,SAAS,aAAa;AACtB,SAAS,YAAY;AAErB,SAAS,cAAgC;AACzC,SAAS,gBAAgB;AACzB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,UAAU;AACnB,SAAS,UAAU;AAcZ,MAAM,eAAe,GAAG;AAAA,EAC7B,OAAO;AAAA,IACL,MAAM;AAAA,IACN,KAAK;AAAA,IACL,OAAO;AAAA,IACP,SAAS;AAAA,IACT,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,MACJ;AAAA,MACA;AAAA;AAAA,MAEA;AAAA,IACF;AAAA,IACA,SAAS;AAAA,MACP;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF;AAAA,EACF;AAAA,E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AC,SAAI,WAAU,mDACb,8BAAC,YAAS,WAAU,aAAY,GAClC,IACE;AAAA;AAAA;AAAA,MACN;AAAA;AAAA,EACF;AAEJ;AAEA,MAAM,YAAY;AAAA,EAChB,OAAO,EAAE,OAAO,oBAAoB,aAAa,+BAA+B;AAAA,EAChF,UAAU,EAAE,OAAO,cAAc,aAAa,+CAA+C;AAAA,EAC7F,OAAO,EAAE,OAAO,2BAA2B,aAAa,uCAAuC;AACjG;AAaO,SAAS,UAAU,EAAE,SAAS,SAAS,MAAM,OAAO,aAAa,QAAQ,WAAW,GAAG,MAAM,GAAmB;AACrH,QAAM,OAAO,UAAU,MAAM;AAC7B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,eAAa;AAAA,MACb,MAAM,WAAW,UAAU,UAAU;AAAA,MACrC,WAAW,GAAG,qBAAqB,SAAS;AAAA,MAC3C,GAAG;AAAA,MAEH;AAAA,eAAO,oBAAC,mBAAiB,gBAAK,IAAqB;AAAA,QACpD,oBAAC,mBAAiB,mBAAS,KAAK,OAAM;AAAA,QACtC,oBAAC,yBAAuB,yBAAe,KAAK,aAAY;AAAA,QACvD,SAAS,oBAAC,qBAAmB,kBAAO,IAAuB;AAAA;AAAA;AAAA,EAC9D;AAEJ;","names":[]}
@@ -0,0 +1,23 @@
1
+ import {
2
+ LoadMore,
3
+ LoadMoreList,
4
+ LoadMoreContent,
5
+ LoadMoreStatus,
6
+ LoadMoreTrigger,
7
+ LoadMoreSentinel,
8
+ LoadMoreLoader,
9
+ LoadMoreEnd,
10
+ loadMoreVariants
11
+ } from "./load-more.mjs";
12
+ export {
13
+ LoadMore,
14
+ LoadMoreContent,
15
+ LoadMoreEnd,
16
+ LoadMoreList,
17
+ LoadMoreLoader,
18
+ LoadMoreSentinel,
19
+ LoadMoreStatus,
20
+ LoadMoreTrigger,
21
+ loadMoreVariants
22
+ };
23
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/ui/load-more/index.ts"],"sourcesContent":["export {\n LoadMore,\n LoadMoreList,\n LoadMoreContent,\n LoadMoreStatus,\n LoadMoreTrigger,\n LoadMoreSentinel,\n LoadMoreLoader,\n LoadMoreEnd,\n loadMoreVariants,\n type LoadMoreProps,\n type LoadMoreContentProps,\n type LoadMoreStatusProps,\n type LoadMoreTriggerProps,\n type LoadMoreSentinelProps,\n} from \"./load-more.mjs\"\n"],"mappings":"AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAMK;","names":[]}