@stll/ui 0.65.1 → 0.66.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 (391) hide show
  1. package/dist/calendar/day-calendar.d.ts +8 -3
  2. package/dist/calendar/day-calendar.js +7 -10
  3. package/dist/calendar/day-calendar.logic.d.ts +0 -2
  4. package/dist/calendar/day-calendar.logic.js +1 -2
  5. package/dist/calendar/primitives.d.ts +1 -3
  6. package/dist/calendar/primitives.js +1 -2
  7. package/dist/calendar/resource-calendar.d.ts +0 -2
  8. package/dist/calendar/resource-calendar.js +1 -2
  9. package/dist/calendar/resource-calendar.logic.d.ts +1 -3
  10. package/dist/calendar/resource-calendar.logic.js +1 -2
  11. package/dist/components/accordion.d.ts +0 -2
  12. package/dist/components/accordion.js +1 -2
  13. package/dist/components/ai-label.d.ts +0 -2
  14. package/dist/components/ai-label.js +1 -2
  15. package/dist/components/alert-dialog.d.ts +0 -2
  16. package/dist/components/alert-dialog.js +1 -2
  17. package/dist/components/animated-count.d.ts +0 -2
  18. package/dist/components/animated-count.js +1 -2
  19. package/dist/components/animated-preview.css +152 -0
  20. package/dist/components/animated-preview.d.ts +75 -0
  21. package/dist/components/animated-preview.js +105 -0
  22. package/dist/components/application-rail.d.ts +1 -3
  23. package/dist/components/application-rail.js +1 -2
  24. package/dist/components/avatar.d.ts +0 -2
  25. package/dist/components/avatar.js +1 -2
  26. package/dist/components/badge.d.ts +0 -2
  27. package/dist/components/badge.js +1 -2
  28. package/dist/components/bidi-text.d.ts +0 -2
  29. package/dist/components/bidi-text.js +1 -2
  30. package/dist/components/brand-icons.d.ts +0 -2
  31. package/dist/components/brand-icons.js +1 -2
  32. package/dist/components/breadcrumb.d.ts +0 -2
  33. package/dist/components/breadcrumb.js +1 -2
  34. package/dist/components/button.d.ts +0 -2
  35. package/dist/components/button.js +35 -13
  36. package/dist/components/button.native-classes.d.ts +0 -2
  37. package/dist/components/button.native-classes.js +1 -2
  38. package/dist/components/button.native.d.ts +0 -2
  39. package/dist/components/button.native.js +1 -2
  40. package/dist/components/button.shared.d.ts +1 -3
  41. package/dist/components/button.shared.js +1 -2
  42. package/dist/components/checkbox.d.ts +0 -2
  43. package/dist/components/checkbox.js +1 -2
  44. package/dist/components/collapsible.d.ts +0 -2
  45. package/dist/components/collapsible.js +1 -2
  46. package/dist/components/color-picker.d.ts +12 -5
  47. package/dist/components/color-picker.js +4 -6
  48. package/dist/components/combobox.d.ts +0 -2
  49. package/dist/components/combobox.js +1 -2
  50. package/dist/components/command.d.ts +0 -2
  51. package/dist/components/command.js +1 -2
  52. package/dist/components/composer-tokens.d.ts +1 -3
  53. package/dist/components/composer-tokens.js +1 -2
  54. package/dist/components/composer.d.ts +0 -2
  55. package/dist/components/composer.js +1 -2
  56. package/dist/components/context-menu.d.ts +1 -3
  57. package/dist/components/context-menu.js +1 -2
  58. package/dist/components/copy-button.d.ts +0 -2
  59. package/dist/components/copy-button.js +1 -2
  60. package/dist/components/court-badge.d.ts +0 -2
  61. package/dist/components/court-badge.js +1 -2
  62. package/dist/components/court-filter.d.ts +0 -2
  63. package/dist/components/court-filter.js +1 -2
  64. package/dist/components/date-picker-popover.d.ts +0 -2
  65. package/dist/components/date-picker-popover.js +4 -68
  66. package/dist/components/date-picker-popover.logic.d.ts +1 -3
  67. package/dist/components/date-picker-popover.logic.js +1 -2
  68. package/dist/components/date-range-filter.d.ts +0 -2
  69. package/dist/components/date-range-filter.js +1 -2
  70. package/dist/components/destructive-action-confirmation.d.ts +0 -2
  71. package/dist/components/destructive-action-confirmation.js +1 -2
  72. package/dist/components/destructive-confirm-dialog.d.ts +0 -2
  73. package/dist/components/destructive-confirm-dialog.js +1 -2
  74. package/dist/components/details-grid.d.ts +13 -5
  75. package/dist/components/details-grid.js +69 -14
  76. package/dist/components/dialog-form-state.d.ts +1 -3
  77. package/dist/components/dialog-form-state.js +1 -2
  78. package/dist/components/dialog.d.ts +0 -2
  79. package/dist/components/dialog.js +1 -2
  80. package/dist/components/directional-icon.d.ts +0 -2
  81. package/dist/components/directional-icon.js +1 -2
  82. package/dist/components/document-identity-badge.d.ts +0 -2
  83. package/dist/components/document-identity-badge.js +1 -2
  84. package/dist/components/document-identity-badge.logic.d.ts +1 -3
  85. package/dist/components/document-identity-badge.logic.js +1 -2
  86. package/dist/components/document-mark.d.ts +9 -0
  87. package/dist/components/document-mark.js +29 -0
  88. package/dist/components/document-mark.native.d.ts +11 -0
  89. package/dist/components/document-mark.native.js +36 -0
  90. package/dist/components/document-mark.shared.d.ts +378 -0
  91. package/dist/components/document-mark.shared.js +756 -0
  92. package/dist/components/field.d.ts +0 -2
  93. package/dist/components/field.js +1 -2
  94. package/dist/components/file-input.d.ts +0 -2
  95. package/dist/components/file-input.js +1 -2
  96. package/dist/components/form.d.ts +0 -2
  97. package/dist/components/form.js +1 -2
  98. package/dist/components/frame.d.ts +0 -2
  99. package/dist/components/frame.js +1 -2
  100. package/dist/components/hex-color-picker.d.ts +0 -2
  101. package/dist/components/hex-color-picker.js +1 -2
  102. package/dist/components/horizontal-scroller.d.ts +0 -2
  103. package/dist/components/horizontal-scroller.js +1 -2
  104. package/dist/components/identity-text.d.ts +0 -2
  105. package/dist/components/identity-text.js +1 -2
  106. package/dist/components/inline-drop-indicator.d.ts +1 -3
  107. package/dist/components/inline-drop-indicator.js +1 -2
  108. package/dist/components/inline-rename.d.ts +0 -2
  109. package/dist/components/inline-rename.js +1 -2
  110. package/dist/components/input-control.d.ts +1 -3
  111. package/dist/components/input-control.js +1 -2
  112. package/dist/components/input-group.d.ts +0 -2
  113. package/dist/components/input-group.js +1 -2
  114. package/dist/components/input-otp.d.ts +0 -2
  115. package/dist/components/input-otp.js +1 -2
  116. package/dist/components/input.d.ts +0 -2
  117. package/dist/components/input.js +1 -2
  118. package/dist/components/input.native.d.ts +0 -2
  119. package/dist/components/input.native.js +1 -2
  120. package/dist/components/input.shared.d.ts +1 -3
  121. package/dist/components/kbd.d.ts +58 -0
  122. package/dist/components/kbd.js +90 -0
  123. package/dist/components/label.d.ts +0 -2
  124. package/dist/components/label.js +1 -2
  125. package/dist/components/landing.d.ts +0 -2
  126. package/dist/components/landing.js +1 -2
  127. package/dist/components/list.d.ts +0 -2
  128. package/dist/components/list.js +1 -2
  129. package/dist/components/loader.d.ts +0 -2
  130. package/dist/components/loader.js +1 -2
  131. package/dist/components/loader.native.d.ts +0 -2
  132. package/dist/components/loader.native.js +1 -2
  133. package/dist/components/loader.shared.d.ts +1 -3
  134. package/dist/components/loader.shared.js +1 -2
  135. package/dist/components/matter-icon.d.ts +0 -2
  136. package/dist/components/matter-icon.js +1 -2
  137. package/dist/components/matter-icon.native.d.ts +0 -2
  138. package/dist/components/matter-icon.native.js +2 -3
  139. package/dist/components/matter-icon.shared.d.ts +1 -3
  140. package/dist/components/matter-icon.shared.js +1 -2
  141. package/dist/components/menu-section.d.ts +0 -2
  142. package/dist/components/menu-section.js +1 -2
  143. package/dist/components/menu.d.ts +18 -4
  144. package/dist/components/menu.js +27 -7
  145. package/dist/components/middle-truncate.d.ts +0 -2
  146. package/dist/components/middle-truncate.js +1 -2
  147. package/dist/components/middle-truncate.logic.d.ts +0 -2
  148. package/dist/components/middle-truncate.logic.js +1 -2
  149. package/dist/components/number-input.d.ts +0 -2
  150. package/dist/components/number-input.js +1 -2
  151. package/dist/components/outline-rail.d.ts +12 -3
  152. package/dist/components/outline-rail.js +61 -9
  153. package/dist/components/outline-rail.logic.d.ts +0 -2
  154. package/dist/components/outline-rail.logic.js +7 -3
  155. package/dist/components/pagination.d.ts +0 -2
  156. package/dist/components/pagination.js +1 -2
  157. package/dist/components/popover.d.ts +0 -2
  158. package/dist/components/popover.js +1 -2
  159. package/dist/components/preview-card.d.ts +0 -2
  160. package/dist/components/preview-card.js +1 -2
  161. package/dist/components/preview-pane.d.ts +0 -2
  162. package/dist/components/preview-pane.js +1 -2
  163. package/dist/components/prose.d.ts +0 -2
  164. package/dist/components/prose.js +1 -2
  165. package/dist/components/scroll-area.d.ts +0 -2
  166. package/dist/components/scroll-area.js +1 -2
  167. package/dist/components/scroll-to-top.d.ts +1 -3
  168. package/dist/components/scroll-to-top.js +1 -2
  169. package/dist/components/search-field.d.ts +0 -2
  170. package/dist/components/search-field.js +1 -2
  171. package/dist/components/secret-input.d.ts +0 -2
  172. package/dist/components/secret-input.js +1 -2
  173. package/dist/components/segmented-icon-toggle.d.ts +0 -2
  174. package/dist/components/segmented-icon-toggle.js +1 -2
  175. package/dist/components/select.d.ts +0 -2
  176. package/dist/components/select.js +1 -2
  177. package/dist/components/separator.d.ts +0 -2
  178. package/dist/components/separator.js +1 -2
  179. package/dist/components/separator.native.d.ts +1 -3
  180. package/dist/components/separator.native.js +1 -2
  181. package/dist/components/separator.shared.d.ts +1 -3
  182. package/dist/components/sheet.d.ts +0 -2
  183. package/dist/components/sheet.js +1 -2
  184. package/dist/components/sheet.native.d.ts +1 -3
  185. package/dist/components/sheet.native.js +1 -2
  186. package/dist/components/sheet.shared.d.ts +1 -3
  187. package/dist/components/sidebar.d.ts +0 -2
  188. package/dist/components/sidebar.js +1 -2
  189. package/dist/components/sidebar.logic.d.ts +1 -3
  190. package/dist/components/sidebar.logic.js +1 -2
  191. package/dist/components/skeleton.d.ts +0 -2
  192. package/dist/components/skeleton.js +1 -2
  193. package/dist/components/split-button.d.ts +0 -2
  194. package/dist/components/split-button.js +1 -2
  195. package/dist/components/status-mark.d.ts +0 -2
  196. package/dist/components/status-mark.js +1 -2
  197. package/dist/components/stella-mark.d.ts +1 -3
  198. package/dist/components/stella-mark.js +1 -2
  199. package/dist/components/stella-mark.native.d.ts +1 -3
  200. package/dist/components/stella-mark.native.js +1 -2
  201. package/dist/components/stella-mark.shared.d.ts +1 -3
  202. package/dist/components/stella-mark.shared.js +1 -2
  203. package/dist/components/stella-wordmark.d.ts +1 -3
  204. package/dist/components/stella-wordmark.js +1 -2
  205. package/dist/components/stella-wordmark.native.d.ts +1 -3
  206. package/dist/components/stella-wordmark.native.js +1 -2
  207. package/dist/components/stella-wordmark.shared.d.ts +1 -3
  208. package/dist/components/stella-wordmark.shared.js +1 -2
  209. package/dist/components/steps.d.ts +0 -2
  210. package/dist/components/steps.js +1 -2
  211. package/dist/components/swap-text.d.ts +0 -2
  212. package/dist/components/swap-text.js +1 -2
  213. package/dist/components/switch.d.ts +0 -2
  214. package/dist/components/switch.js +1 -2
  215. package/dist/components/switch.native.d.ts +0 -2
  216. package/dist/components/switch.native.js +1 -2
  217. package/dist/components/switch.shared.d.ts +1 -3
  218. package/dist/components/table-chart.d.ts +1 -3
  219. package/dist/components/table-chart.js +1 -2
  220. package/dist/components/table.d.ts +0 -2
  221. package/dist/components/table.js +1 -2
  222. package/dist/components/tabs.d.ts +0 -2
  223. package/dist/components/tabs.js +1 -2
  224. package/dist/components/text.d.ts +0 -2
  225. package/dist/components/text.js +1 -2
  226. package/dist/components/text.native.d.ts +0 -2
  227. package/dist/components/text.native.js +1 -2
  228. package/dist/components/text.shared.d.ts +1 -3
  229. package/dist/components/text.shared.js +1 -2
  230. package/dist/components/textarea.d.ts +11 -3
  231. package/dist/components/textarea.js +51 -13
  232. package/dist/components/textarea.native.d.ts +1 -3
  233. package/dist/components/textarea.native.js +1 -2
  234. package/dist/components/textarea.shared.d.ts +1 -3
  235. package/dist/components/time-field.d.ts +25 -0
  236. package/dist/components/time-field.js +108 -0
  237. package/dist/components/toast.d.ts +0 -2
  238. package/dist/components/toast.js +1 -2
  239. package/dist/components/toggle-group.d.ts +0 -2
  240. package/dist/components/toggle-group.js +1 -2
  241. package/dist/components/toggle.d.ts +0 -2
  242. package/dist/components/toggle.js +1 -2
  243. package/dist/components/toolbar-icon-action.d.ts +0 -2
  244. package/dist/components/toolbar-icon-action.js +1 -2
  245. package/dist/components/tooltip-trigger-helper.d.ts +0 -2
  246. package/dist/components/tooltip-trigger-helper.js +1 -2
  247. package/dist/components/tooltip.d.ts +7 -3
  248. package/dist/components/tooltip.js +9 -5
  249. package/dist/components/truncated-text.d.ts +0 -2
  250. package/dist/components/truncated-text.js +1 -2
  251. package/dist/components/view-toolbar.d.ts +0 -2
  252. package/dist/components/view-toolbar.js +1 -2
  253. package/dist/components/workspace-shell.d.ts +0 -2
  254. package/dist/components/workspace-shell.js +1 -2
  255. package/dist/css.d.ts +0 -1
  256. package/dist/data-table/schema.d.ts +1 -3
  257. package/dist/data-table/schema.js +1 -2
  258. package/dist/data-table/table.d.ts +0 -2
  259. package/dist/data-table/table.js +1 -2
  260. package/dist/hooks/use-contained-handler.d.ts +0 -2
  261. package/dist/hooks/use-contained-handler.js +1 -2
  262. package/dist/hooks/use-content-dir.d.ts +0 -2
  263. package/dist/hooks/use-content-dir.js +1 -2
  264. package/dist/hooks/use-latest.d.ts +1 -3
  265. package/dist/hooks/use-latest.js +1 -2
  266. package/dist/hooks/use-mobile.d.ts +1 -3
  267. package/dist/hooks/use-mobile.js +1 -2
  268. package/dist/hooks/use-prefers-reduced-motion.d.ts +6 -0
  269. package/dist/hooks/use-prefers-reduced-motion.js +17 -0
  270. package/dist/hooks/use-viewport-width.d.ts +1 -3
  271. package/dist/hooks/use-viewport-width.js +1 -2
  272. package/dist/index.d.ts +5 -4
  273. package/dist/index.js +5 -4
  274. package/dist/inspector/chrome.d.ts +1 -3
  275. package/dist/inspector/chrome.js +1 -2
  276. package/dist/inspector/dock.d.ts +0 -2
  277. package/dist/inspector/dock.js +1 -2
  278. package/dist/inspector/entity-tab.d.ts +0 -2
  279. package/dist/inspector/entity-tab.js +1 -2
  280. package/dist/inspector/entity-tab.logic.d.ts +1 -3
  281. package/dist/inspector/entity-tab.logic.js +1 -2
  282. package/dist/inspector/facet-bar.d.ts +1 -3
  283. package/dist/inspector/facet-bar.js +1 -2
  284. package/dist/inspector/facet-bar.logic.d.ts +1 -3
  285. package/dist/inspector/facet-bar.logic.js +1 -2
  286. package/dist/inspector/layout-tokens.d.ts +1 -3
  287. package/dist/inspector/layout-tokens.js +1 -2
  288. package/dist/inspector/pane-width.d.ts +0 -2
  289. package/dist/inspector/pane-width.js +1 -2
  290. package/dist/inspector/use-pane-width.d.ts +0 -2
  291. package/dist/inspector/use-pane-width.js +1 -2
  292. package/dist/kanban/band-peek.d.ts +1 -3
  293. package/dist/kanban/band-peek.js +1 -2
  294. package/dist/kanban/card-properties.d.ts +1 -3
  295. package/dist/kanban/card-properties.js +1 -2
  296. package/dist/kanban/card-shell.d.ts +1 -3
  297. package/dist/kanban/card-shell.js +1 -2
  298. package/dist/kanban/cell-action.d.ts +1 -3
  299. package/dist/kanban/cell-action.js +1 -2
  300. package/dist/kanban/column-band-header.d.ts +1 -3
  301. package/dist/kanban/column-band-header.js +1 -2
  302. package/dist/kanban/column-bands.d.ts +1 -3
  303. package/dist/kanban/column-bands.js +1 -2
  304. package/dist/kanban/column-header.d.ts +1 -3
  305. package/dist/kanban/column-header.js +1 -2
  306. package/dist/kanban/drag-interactions.d.ts +0 -2
  307. package/dist/kanban/drag-interactions.js +1 -2
  308. package/dist/kanban/grouping.d.ts +1 -3
  309. package/dist/kanban/grouping.js +1 -2
  310. package/dist/kanban/layout-tokens.d.ts +1 -3
  311. package/dist/kanban/layout-tokens.js +1 -2
  312. package/dist/kanban/matrix.d.ts +1 -3
  313. package/dist/kanban/matrix.js +1 -2
  314. package/dist/kanban/sortable-edge.d.ts +0 -2
  315. package/dist/kanban/sortable-edge.js +1 -2
  316. package/dist/kanban/sortable-interactions.d.ts +0 -2
  317. package/dist/kanban/sortable-interactions.js +1 -2
  318. package/dist/kanban/sortable-interactions.logic.d.ts +0 -2
  319. package/dist/kanban/sortable-interactions.logic.js +1 -2
  320. package/dist/kanban/sticky-lane.d.ts +0 -2
  321. package/dist/kanban/sticky-lane.js +1 -2
  322. package/dist/kanban/subgroup-board.d.ts +0 -2
  323. package/dist/kanban/subgroup-board.js +1 -2
  324. package/dist/kanban/touch-identity.d.ts +0 -2
  325. package/dist/kanban/touch-identity.js +1 -2
  326. package/dist/kanban/virtual-cell.d.ts +1 -3
  327. package/dist/kanban/virtual-cell.js +1 -2
  328. package/dist/lib/button-disposition.d.ts +0 -2
  329. package/dist/lib/button-disposition.js +1 -2
  330. package/dist/lib/control-size.d.ts +0 -2
  331. package/dist/lib/control-size.js +1 -2
  332. package/dist/lib/field-trigger.d.ts +1 -3
  333. package/dist/lib/field-trigger.js +1 -2
  334. package/dist/lib/file-picker.d.ts +0 -2
  335. package/dist/lib/file-picker.js +1 -2
  336. package/dist/lib/initials.d.ts +1 -3
  337. package/dist/lib/initials.js +1 -2
  338. package/dist/lib/inline-reorder.d.ts +0 -2
  339. package/dist/lib/inline-reorder.js +1 -2
  340. package/dist/lib/matter-colors.d.ts +0 -2
  341. package/dist/lib/matter-colors.js +1 -2
  342. package/dist/lib/menu-row.d.ts +1 -3
  343. package/dist/lib/menu-row.js +1 -2
  344. package/dist/lib/option-color.d.ts +1 -3
  345. package/dist/lib/option-color.js +1 -2
  346. package/dist/lib/overlay-layer.d.ts +1 -3
  347. package/dist/lib/overlay-layer.js +1 -2
  348. package/dist/lib/panel-inset.d.ts +1 -3
  349. package/dist/lib/panel-inset.js +1 -2
  350. package/dist/lib/positioner-sizing.d.ts +1 -3
  351. package/dist/lib/positioner-sizing.js +1 -2
  352. package/dist/lib/renders-nothing.d.ts +8 -0
  353. package/dist/lib/renders-nothing.js +14 -0
  354. package/dist/lib/safe-area.d.ts +1 -3
  355. package/dist/lib/safe-area.js +1 -2
  356. package/dist/lib/scroll-edge-fade.d.ts +1 -3
  357. package/dist/lib/scroll-edge-fade.js +1 -2
  358. package/dist/lib/slot.d.ts +0 -2
  359. package/dist/lib/slot.js +1 -2
  360. package/dist/lib/tab-order.d.ts +0 -2
  361. package/dist/lib/tab-order.js +1 -2
  362. package/dist/lib/tooltip-content.d.ts +1 -3
  363. package/dist/lib/tooltip-content.js +1 -2
  364. package/dist/lib/typed-character.d.ts +1 -3
  365. package/dist/lib/typed-character.js +1 -2
  366. package/dist/lib/utils.d.ts +1 -3
  367. package/dist/lib/utils.js +1 -2
  368. package/dist/lib/week.d.ts +1 -3
  369. package/dist/lib/week.js +1 -2
  370. package/dist/review/review-author-avatar.d.ts +0 -2
  371. package/dist/review/review-author-avatar.js +1 -2
  372. package/dist/review/review-comment-card.d.ts +0 -2
  373. package/dist/review/review-comment-card.js +1 -2
  374. package/dist/review/review-decision-actions.d.ts +0 -2
  375. package/dist/review/review-decision-actions.js +1 -2
  376. package/dist/review/review-diff-text.d.ts +0 -2
  377. package/dist/review/review-diff-text.js +1 -2
  378. package/dist/review/review-out-of-date-notice.d.ts +0 -2
  379. package/dist/review/review-out-of-date-notice.js +1 -2
  380. package/dist/review/review-severity-dot.d.ts +0 -2
  381. package/dist/review/review-severity-dot.js +1 -2
  382. package/dist/review/review-status-badge.d.ts +0 -2
  383. package/dist/review/review-status-badge.js +1 -2
  384. package/dist/review/review-word-diff.d.ts +1 -3
  385. package/dist/review/review-word-diff.js +1 -2
  386. package/dist/review/text-mark.d.ts +0 -2
  387. package/dist/review/text-mark.js +1 -2
  388. package/dist/styles/theme.css +27 -0
  389. package/dist/testing/browser-clock.d.ts +1 -3
  390. package/dist/testing/browser-clock.js +1 -2
  391. package/package.json +37 -5
@@ -1,7 +1,7 @@
1
1
  import { cn } from "../lib/utils.js";
2
2
  import { TOOLBAR_ROW_HEIGHT } from "../inspector/layout-tokens.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
- //#region src/components/application-rail.tsx
4
+ // src/components/application-rail.tsx
5
5
  const APPLICATION_RAIL_WIDTH = "w-12";
6
6
  const APPLICATION_RAIL_BUTTON_SIZE = "size-11";
7
7
  const APPLICATION_RAIL_ICON_SIZE = "size-4";
@@ -48,5 +48,4 @@ const ApplicationRailFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("
48
48
  "data-slot": "application-rail-footer",
49
49
  ...props
50
50
  });
51
- //#endregion
52
51
  export { APPLICATION_RAIL_BUTTON_SIZE, APPLICATION_RAIL_ICON_SIZE, APPLICATION_RAIL_WIDTH, ApplicationRail, ApplicationRailButton, ApplicationRailContent, ApplicationRailFooter, ApplicationRailHeader, ApplicationRailMenu, ApplicationRailSeparator };
@@ -1,7 +1,5 @@
1
1
  import { Avatar as Avatar$1 } from "@base-ui/react/avatar";
2
- //#region src/components/avatar.d.ts
3
2
  declare const Avatar: ({ className, ...props }: Avatar$1.Root.Props) => import("react").JSX.Element;
4
3
  declare const AvatarImage: ({ className, ...props }: Avatar$1.Image.Props) => import("react").JSX.Element;
5
4
  declare const AvatarFallback: ({ className, ...props }: Avatar$1.Fallback.Props) => import("react").JSX.Element;
6
- //#endregion
7
5
  export { Avatar, AvatarFallback, AvatarImage };
@@ -2,7 +2,7 @@
2
2
  import { cn } from "../lib/utils.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { Avatar as Avatar$1 } from "@base-ui/react/avatar";
5
- //#region src/components/avatar.tsx
5
+ // src/components/avatar.tsx
6
6
  const Avatar = ({ className, ...props }) => /* @__PURE__ */ jsx(Avatar$1.Root, {
7
7
  className: cn("bg-background inline-flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-full align-middle text-xs font-medium select-none", className),
8
8
  "data-slot": "avatar",
@@ -18,5 +18,4 @@ const AvatarFallback = ({ className, ...props }) => /* @__PURE__ */ jsx(Avatar$1
18
18
  "data-slot": "avatar-fallback",
19
19
  ...props
20
20
  });
21
- //#endregion
22
21
  export { Avatar, AvatarFallback, AvatarImage };
@@ -1,6 +1,5 @@
1
1
  import { StatusTone } from "./list.js";
2
2
  import { useRender } from "@base-ui/react/use-render";
3
- //#region src/components/badge.d.ts
4
3
  /**
5
4
  * A short label that classifies the thing beside it: a status, a type, a
6
5
  * count. The words carry the meaning; the tone and the optional dot only
@@ -24,5 +23,4 @@ declare const badgeVariants: (props?: ({
24
23
  size?: "sm" | "xs" | null | undefined;
25
24
  tone?: "destructive" | "info" | "neutral" | "success" | "warning" | null | undefined;
26
25
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
27
- //#endregion
28
26
  export { Badge, type BadgeProps, type BadgeSize, type BadgeTone, badgeVariants };
@@ -3,7 +3,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
3
  import { mergeProps } from "@base-ui/react/merge-props";
4
4
  import { useRender } from "@base-ui/react/use-render";
5
5
  import { cva } from "class-variance-authority";
6
- //#region src/components/badge.tsx
6
+ // src/components/badge.tsx
7
7
  /**
8
8
  * A short label that classifies the thing beside it: a status, a type, a
9
9
  * count. The words carry the meaning; the tone and the optional dot only
@@ -60,5 +60,4 @@ const BADGE_DOT_CLASS = {
60
60
  success: "bg-success",
61
61
  warning: "bg-warning"
62
62
  };
63
- //#endregion
64
63
  export { Badge, badgeVariants };
@@ -1,5 +1,4 @@
1
1
  import * as React$1 from "react";
2
- //#region src/components/bidi-text.d.ts
3
2
  /**
4
3
  * Isolation shields the text around a value, not the value itself: a
5
4
  * directional control inside it still reorders its letters, so stored text
@@ -27,5 +26,4 @@ type ParagraphTextProps = Omit<React$1.ComponentPropsWithoutRef<"p">, "dir"> & {
27
26
  direction?: BidiDirection;
28
27
  };
29
28
  type BidiTextProps = BdiElementProps | SpanTextProps | DivTextProps | ParagraphTextProps;
30
- //#endregion
31
29
  export type { BidiDirection, BidiTextProps };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { cn } from "../lib/utils.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
- //#region src/components/bidi-text.tsx
4
+ // src/components/bidi-text.tsx
5
5
  /** Explicit embeddings, overrides and isolates; implicit marks stay. */
6
6
  const DIRECTIONAL_CONTROLS = /[\u202A-\u202E\u2066-\u2069]/gu;
7
7
  /**
@@ -47,5 +47,4 @@ const BidiText = (props) => {
47
47
  });
48
48
  };
49
49
  const UserText = BidiText;
50
- //#endregion
51
50
  export { BidiText, UserText, stripDirectionalControls, withoutDirectionalControls };
@@ -1,8 +1,6 @@
1
1
  import * as React$1 from "react";
2
- //#region src/components/brand-icons.d.ts
3
2
  type BrandIconProps = React$1.ComponentProps<"svg">;
4
3
  export declare const DiscordLogoIcon: (props: BrandIconProps) => React$1.JSX.Element;
5
4
  export declare const GitHubLogoIcon: (props: BrandIconProps) => React$1.JSX.Element;
6
5
  export declare const XLogoIcon: (props: BrandIconProps) => React$1.JSX.Element;
7
- //#endregion
8
6
  export {};
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- //#region src/components/brand-icons.tsx
2
+ // src/components/brand-icons.tsx
3
3
  const DiscordLogoIcon = (props) => /* @__PURE__ */ jsx("svg", {
4
4
  "aria-hidden": "true",
5
5
  fill: "currentColor",
@@ -21,5 +21,4 @@ const XLogoIcon = (props) => /* @__PURE__ */ jsx("svg", {
21
21
  ...props,
22
22
  children: /* @__PURE__ */ jsx("path", { d: "M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.64 7.584H.47l8.6-9.835L0 1.153h7.594l5.243 6.932 6.064-6.932Zm-1.29 19.49h2.039L6.486 3.24H4.298l13.313 17.403Z" })
23
23
  });
24
- //#endregion
25
24
  export { DiscordLogoIcon, GitHubLogoIcon, XLogoIcon };
@@ -1,6 +1,5 @@
1
1
  import * as React$1 from "react";
2
2
  import { useRender } from "@base-ui/react/use-render";
3
- //#region src/components/breadcrumb.d.ts
4
3
  declare const Breadcrumb: ({ ...props }: React$1.ComponentProps<"nav">) => React$1.JSX.Element;
5
4
  declare const BreadcrumbList: ({ className, ...props }: React$1.ComponentProps<"ol">) => React$1.JSX.Element;
6
5
  declare const BreadcrumbItem: ({ className, ...props }: React$1.ComponentProps<"li">) => React$1.JSX.Element;
@@ -8,5 +7,4 @@ declare function BreadcrumbLink({ className, render, ...props }: useRender.Compo
8
7
  declare const BreadcrumbPage: ({ className, ...props }: React$1.ComponentProps<"span">) => React$1.JSX.Element;
9
8
  declare const BreadcrumbSeparator: ({ children, className, ...props }: React$1.ComponentProps<"li">) => React$1.JSX.Element;
10
9
  declare const BreadcrumbEllipsis: ({ className, ...props }: React$1.ComponentProps<"span">) => React$1.JSX.Element;
11
- //#endregion
12
10
  export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
@@ -5,7 +5,7 @@ import { DirectionalIcon } from "./directional-icon.js";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { mergeProps } from "@base-ui/react/merge-props";
7
7
  import { useRender } from "@base-ui/react/use-render";
8
- //#region src/components/breadcrumb.tsx
8
+ // src/components/breadcrumb.tsx
9
9
  const Breadcrumb = ({ ...props }) => /* @__PURE__ */ jsx("nav", {
10
10
  "aria-label": "Breadcrumb",
11
11
  "data-slot": "breadcrumb",
@@ -57,5 +57,4 @@ const BreadcrumbEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxs("sp
57
57
  children: "More"
58
58
  })]
59
59
  });
60
- //#endregion
61
60
  export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
@@ -1,7 +1,6 @@
1
1
  import { ButtonContract, ButtonSize, ButtonVariant } from "./button.shared.js";
2
2
  import { ReactNode } from "react";
3
3
  import { useRender } from "@base-ui/react/use-render";
4
- //#region src/components/button.d.ts
5
4
  /**
6
5
  * Disabled styling for a button that is only `aria-disabled`.
7
6
  *
@@ -103,5 +102,4 @@ type ButtonTextRunProps = Omit<ButtonProps, "children" | "className" | "focusRin
103
102
  * `Button size="inline"` for a short action.
104
103
  */
105
104
  declare const ButtonTextRun: ({ children, className, disabled, ...props }: ButtonTextRunProps) => import("react").JSX.Element;
106
- //#endregion
107
105
  export { BUTTON_CONTENT, BUTTON_SIZE_CONTENT, Button, type ButtonFocusRing, type ButtonPlainShape, type ButtonProps, type ButtonSize, ButtonTextRun, type ButtonVariant, buttonAccessibleDisabledClass, buttonVariants };
@@ -3,6 +3,7 @@ import { cn } from "../lib/utils.js";
3
3
  import { renderTooltipTrigger } from "./tooltip-trigger-helper.js";
4
4
  import { BUTTON_DISPOSITION, blockDisabledActivation, blockDisabledKeyActivation, resolveButtonDisposition } from "../lib/button-disposition.js";
5
5
  import { MENU_ROW_CLASS_NAME } from "../lib/menu-row.js";
6
+ import { rendersNothing } from "../lib/renders-nothing.js";
6
7
  import { BUTTON_PLAIN_VARIANT, BUTTON_VARIANT_TOKENS } from "./button.shared.js";
7
8
  import { Loader } from "./loader.js";
8
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -11,7 +12,7 @@ import { mergeProps } from "@base-ui/react/merge-props";
11
12
  import { useRender } from "@base-ui/react/use-render";
12
13
  import { panic } from "better-result";
13
14
  import { cva } from "class-variance-authority";
14
- //#region src/components/button.tsx
15
+ // src/components/button.tsx
15
16
  /**
16
17
  * Disabled styling for a button that is only `aria-disabled`.
17
18
  *
@@ -218,17 +219,15 @@ function Button({ className, variant: variantProp, size, render, layout, loading
218
219
  const isAccessibleDisabled = disposition === BUTTON_DISPOSITION.accessibleDisabled;
219
220
  const isActivationPreservingDisabled = accessibleDisabled !== void 0;
220
221
  const defaultProps = {
221
- children: /* @__PURE__ */ jsxs(Fragment, { children: [loading ? /* @__PURE__ */ jsx(Loader, {
222
- animation: "none",
223
- className: "[transition:opacity_150ms_ease-out,scale_320ms_var(--ease-spring)] motion-reduce:transition-none starting:scale-50 starting:opacity-0",
224
- "data-slot": "button-loader",
225
- size: "sm",
226
- variant: "decorative"
227
- }) : icon, cutsLabel({
228
- layout,
229
- size,
230
- variant
231
- }) ? containedLabel(children) : children] }),
222
+ children: buttonContent({
223
+ icon,
224
+ label: cutsLabel({
225
+ layout,
226
+ size,
227
+ variant
228
+ }) ? containedLabel(children) : children,
229
+ loading
230
+ }),
232
231
  className: cn(variant === "plain" ? cn(BUTTON_PLAIN_CLASS, BUTTON_PLAIN_SHAPE_CLASS[shape], className) : cn(disposition === BUTTON_DISPOSITION.enabled && !isActivationPreservingDisabled && size !== "row" && size !== "inline" && variant !== "link" && buttonPressClass, buttonVariants({
233
232
  className,
234
233
  size,
@@ -263,6 +262,30 @@ function Button({ className, variant: variantProp, size, render, layout, loading
263
262
  });
264
263
  }
265
264
  /**
265
+ * What the button shows. Loading never changes its width: with an `icon`,
266
+ * the loader takes the icon's place; without one, the label (already cut to
267
+ * the button's width where it is cut) stays in place but transparent (still
268
+ * the accessible name) and the loader sits over its centre, so a row of
269
+ * buttons does not shift when one starts saving.
270
+ */
271
+ function buttonContent({ icon, label, loading }) {
272
+ if (!loading) return /* @__PURE__ */ jsxs(Fragment, { children: [icon, label] });
273
+ const hasIcon = !rendersNothing(icon);
274
+ const loader = /* @__PURE__ */ jsx(Loader, {
275
+ animation: "none",
276
+ className: cn("[transition:opacity_150ms_ease-out,scale_320ms_var(--ease-spring)] motion-reduce:transition-none starting:scale-50 starting:opacity-0", !hasIcon && "absolute inset-0 m-auto"),
277
+ "data-slot": "button-loader",
278
+ size: "sm",
279
+ variant: "decorative"
280
+ });
281
+ if (hasIcon) return /* @__PURE__ */ jsxs(Fragment, { children: [loader, label] });
282
+ return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
283
+ className: "inline-flex min-w-0 items-center gap-[inherit] opacity-0",
284
+ "data-slot": "button-loading-label",
285
+ children: label
286
+ }), loader] });
287
+ }
288
+ /**
266
289
  * The run is the visible target: underlined like a link, ringed while its
267
290
  * button has keyboard focus (per line, so a wrapped run rings each line).
268
291
  */
@@ -295,5 +318,4 @@ const ButtonTextRun = ({ children, className, disabled, ...props }) => /* @__PUR
295
318
  variant: BUTTON_PLAIN_VARIANT
296
319
  }), children]
297
320
  });
298
- //#endregion
299
321
  export { BUTTON_CONTENT, BUTTON_SIZE_CONTENT, Button, ButtonTextRun, buttonAccessibleDisabledClass, buttonVariants };
@@ -1,5 +1,4 @@
1
1
  import { ButtonSize, ButtonVariant } from "./button.shared.js";
2
- //#region src/components/button.native-classes.d.ts
3
2
  type NativeButtonClassNamesOptions = {
4
3
  className?: string | undefined;
5
4
  inactive: boolean;
@@ -13,5 +12,4 @@ export declare const nativeButtonClassNames: ({ className, inactive, selected, s
13
12
  pressable: string;
14
13
  slop: 0 | 6 | 8 | 12;
15
14
  };
16
- //#endregion
17
15
  export {};
@@ -1,5 +1,5 @@
1
1
  import { BUTTON_PLAIN_VARIANT, BUTTON_VARIANT_TOKENS } from "./button.shared.js";
2
- //#region src/components/button.native-classes.ts
2
+ // src/components/button.native-classes.ts
3
3
  /** A control's box: centred content inside the variant's border. */
4
4
  const CONTROL = "items-center justify-center border";
5
5
  /**
@@ -177,5 +177,4 @@ const nativeButtonClassNames = ({ className, inactive, selected, size, variant }
177
177
  slop: shape.slop
178
178
  };
179
179
  };
180
- //#endregion
181
180
  export { nativeButtonClassNames };
@@ -1,6 +1,5 @@
1
1
  import { ButtonContract } from "./button.shared.js";
2
2
  import { PressableProps } from "react-native";
3
- //#region src/components/button.native.d.ts
4
3
  type ButtonProps = Omit<PressableProps, "children" | "disabled"> & ButtonContract & {
5
4
  className?: string | undefined;
6
5
  };
@@ -14,5 +13,4 @@ type ButtonProps = Omit<PressableProps, "children" | "disabled"> & ButtonContrac
14
13
  * only when it is selected. Its classes come from ./button.native-classes.ts.
15
14
  */
16
15
  export declare const Button: ({ accessibilityState, children, className, disabled, hitSlop, icon, loading, selected: selectedProp, size, variant: variantProp, ...props }: ButtonProps) => import("react").JSX.Element;
17
- //#endregion
18
16
  export {};
@@ -3,7 +3,7 @@ import { Loader } from "./loader.native.js";
3
3
  import { Text as Text$1 } from "./text.native.js";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import { Pressable } from "react-native";
6
- //#region src/components/button.native.tsx
6
+ // src/components/button.native.tsx
7
7
  /**
8
8
  * The web's `Button` (./button.tsx) on a phone: the same variants and sizes,
9
9
  * read from ./button.shared.ts, on a Pressable. A string child is set as the
@@ -44,5 +44,4 @@ const Button = ({ accessibilityState, children, className, disabled = false, hit
44
44
  }) : children]
45
45
  });
46
46
  };
47
- //#endregion
48
47
  export { Button };
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from "react";
2
- //#region src/components/button.shared.d.ts
3
2
  /**
4
3
  * Each variant's colours: the box (`surface`: border and fill) and the
5
4
  * label. Neither carries state; each renderer adds its own hover, press and
@@ -83,5 +82,4 @@ export type ButtonContract = {
83
82
  */
84
83
  selected?: boolean | undefined;
85
84
  children?: ReactNode;
86
- };
87
- //#endregion
85
+ };
@@ -1,4 +1,4 @@
1
- //#region src/components/button.shared.ts
1
+ // src/components/button.shared.ts
2
2
  /**
3
3
  * Each variant's colours: the box (`surface`: border and fill) and the
4
4
  * label. Neither carries state; each renderer adds its own hover, press and
@@ -72,5 +72,4 @@ const BUTTON_SIZES = [
72
72
  "xl",
73
73
  "xs"
74
74
  ];
75
- //#endregion
76
75
  export { BUTTON_PLAIN_VARIANT, BUTTON_SIZES, BUTTON_VARIANT_TOKENS };
@@ -1,5 +1,3 @@
1
1
  import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
2
- //#region src/components/checkbox.d.ts
3
2
  declare const Checkbox: ({ className, ...props }: Checkbox$1.Root.Props) => import("react").JSX.Element;
4
- //#endregion
5
3
  export { Checkbox };
@@ -2,7 +2,7 @@
2
2
  import { cn } from "../lib/utils.js";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
5
- //#region src/components/checkbox.tsx
5
+ // src/components/checkbox.tsx
6
6
  const Checkbox = ({ className, ...props }) => /* @__PURE__ */ jsx(Checkbox$1.Root, {
7
7
  className: cn("border-input bg-background ring-ring focus-visible:ring-offset-background aria-invalid:border-destructive/36 focus-visible:aria-invalid:border-destructive/64 focus-visible:aria-invalid:ring-destructive/48 dark:not-data-checked:bg-input/32 dark:aria-invalid:ring-destructive/24 relative inline-flex size-4.5 shrink-0 items-center justify-center rounded-[4px] border shadow-xs/5 outline-none not-dark:bg-clip-padding before:pointer-events-none before:absolute before:inset-0 before:rounded-[3px] not-data-disabled:not-data-checked:not-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)] focus-visible:ring-2 focus-visible:ring-offset-1 data-disabled:opacity-64 sm:size-4 dark:not-data-disabled:not-data-checked:not-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)] [[data-disabled],[data-checked],[aria-invalid]]:shadow-none", className),
8
8
  "data-slot": "checkbox",
@@ -42,5 +42,4 @@ const Checkbox = ({ className, ...props }) => /* @__PURE__ */ jsx(Checkbox$1.Roo
42
42
  })
43
43
  })
44
44
  });
45
- //#endregion
46
45
  export { Checkbox };
@@ -1,5 +1,4 @@
1
1
  import { Collapsible as Collapsible$1 } from "@base-ui/react/collapsible";
2
- //#region src/components/collapsible.d.ts
3
2
  /**
4
3
  * One disclosure: a trigger that shows or hides a single panel ("Show
5
4
  * details" under a card, a step list in a transcript). A set of sections
@@ -28,5 +27,4 @@ declare const CollapsibleTrigger: ({ className, ...props }: Collapsible$1.Trigge
28
27
  * `hiddenUntilFound={false}` to unmount it instead.
29
28
  */
30
29
  declare const CollapsiblePanel: ({ className, hiddenUntilFound, ...props }: Collapsible$1.Panel.Props) => import("react").JSX.Element;
31
- //#endregion
32
30
  export { Collapsible, CollapsiblePanel, CollapsibleTrigger };
@@ -2,7 +2,7 @@
2
2
  import { cn } from "../lib/utils.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { Collapsible as Collapsible$1 } from "@base-ui/react/collapsible";
5
- //#region src/components/collapsible.tsx
5
+ // src/components/collapsible.tsx
6
6
  /**
7
7
  * One disclosure: a trigger that shows or hides a single panel ("Show
8
8
  * details" under a card, a step list in a transcript). A set of sections
@@ -43,5 +43,4 @@ const CollapsiblePanel = ({ className, hiddenUntilFound = true, ...props }) => /
43
43
  hiddenUntilFound,
44
44
  ...props
45
45
  });
46
- //#endregion
47
46
  export { Collapsible, CollapsiblePanel, CollapsibleTrigger };
@@ -1,5 +1,4 @@
1
1
  import * as React$1 from "react";
2
- //#region src/components/color-picker.d.ts
3
2
  type ColorPreset = {
4
3
  label: string;
5
4
  /** Value emitted on select (e.g. "red" or "FF0000") */
@@ -23,8 +22,17 @@ type ColorPickerProps = {
23
22
  defaultExpanded?: boolean;
24
23
  /** Localized label for expanding the custom color controls. */
25
24
  moreLabel: string;
26
- /** Popover trigger element */
27
- children: React$1.ReactNode;
25
+ /**
26
+ * The popover trigger: one focusable element (normally a named button)
27
+ * that becomes the trigger itself, so the picker never wraps it in a
28
+ * second, unnamed button.
29
+ */
30
+ trigger: React$1.ReactElement;
31
+ /**
32
+ * Whether `trigger` renders a native `<button>` (default). Pass `false`
33
+ * only for a non-button element; Base UI then gives it button semantics.
34
+ */
35
+ nativeButton?: boolean;
28
36
  /** Popover placement side */
29
37
  side?: "top" | "bottom" | "left" | "right";
30
38
  /** Popover placement alignment */
@@ -52,6 +60,5 @@ type ColorPickerContentProps = ColorPickerContentBaseProps & ({
52
60
  });
53
61
  declare const DEFAULT_PRESETS: ColorPreset[];
54
62
  declare const ColorPickerContent: ({ value, onSelect, onClear, presets, columns, defaultExpanded, moreLabel, presentation }: ColorPickerContentProps) => React$1.JSX.Element;
55
- declare const ColorPicker: ({ value, onSelect, onClear, presets, columns, defaultExpanded, moreLabel, children, side, align, className }: ColorPickerProps) => React$1.JSX.Element;
56
- //#endregion
63
+ declare const ColorPicker: ({ value, onSelect, onClear, presets, columns, defaultExpanded, moreLabel, nativeButton, trigger, side, align, className }: ColorPickerProps) => React$1.JSX.Element;
57
64
  export { ColorPicker, ColorPickerContent, type ColorPickerContentProps, type ColorPickerProps, type ColorPreset, DEFAULT_PRESETS };
@@ -5,7 +5,7 @@ import { OVERLAY_LAYER_CLASS_NAMES } from "../lib/overlay-layer.js";
5
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
6
  import { Suspense, lazy, useState } from "react";
7
7
  import { Popover } from "@base-ui/react/popover";
8
- //#region src/components/color-picker.tsx
8
+ // src/components/color-picker.tsx
9
9
  const HexColorPicker = lazy(async () => {
10
10
  return { default: (await import("./hex-color-picker.js")).HexColorPicker };
11
11
  });
@@ -287,11 +287,10 @@ const ColorPickerContent = ({ value, onSelect, onClear, presets, columns, defaul
287
287
  ]
288
288
  });
289
289
  };
290
- const ColorPicker = ({ value, onSelect, onClear, presets = DEFAULT_PRESETS, columns = 9, defaultExpanded = false, moreLabel, children, side = "bottom", align = "start", className }) => /* @__PURE__ */ jsxs(Popover.Root, { children: [/* @__PURE__ */ jsx(Popover.Trigger, {
290
+ const ColorPicker = ({ value, onSelect, onClear, presets = DEFAULT_PRESETS, columns = 9, defaultExpanded = false, moreLabel, nativeButton = true, trigger, side = "bottom", align = "start", className }) => /* @__PURE__ */ jsxs(Popover.Root, { children: [/* @__PURE__ */ jsx(Popover.Trigger, {
291
291
  "data-slot": "color-picker-trigger",
292
- nativeButton: false,
293
- render: /* @__PURE__ */ jsx("div", { className: "inline-flex" }),
294
- children
292
+ nativeButton,
293
+ render: trigger
295
294
  }), /* @__PURE__ */ jsx(Popover.Portal, { children: /* @__PURE__ */ jsx(Popover.Positioner, {
296
295
  align,
297
296
  className: OVERLAY_LAYER_CLASS_NAMES.popup,
@@ -312,5 +311,4 @@ const ColorPicker = ({ value, onSelect, onClear, presets = DEFAULT_PRESETS, colu
312
311
  })
313
312
  })
314
313
  }) })] });
315
- //#endregion
316
314
  export { ColorPicker, ColorPickerContent, DEFAULT_PRESETS };
@@ -1,7 +1,6 @@
1
1
  import * as React$1 from "react";
2
2
  import { Combobox as Combobox$1 } from "@base-ui/react/combobox";
3
3
  import { ControlSize } from "../lib/control-size.js";
4
- //#region src/components/combobox.d.ts
5
4
  declare const Combobox: <Value, Multiple extends boolean | undefined = false>(props: Combobox$1.Root.Props<Value, Multiple>) => React$1.JSX.Element;
6
5
  declare const ComboboxChipsInput: ({ className, size, ...props }: Omit<Combobox$1.Input.Props, "size"> & {
7
6
  size?: ControlSize | number;
@@ -38,5 +37,4 @@ declare const ComboboxChips: ({ className, children, startAddon, ...props }: Com
38
37
  startAddon?: React$1.ReactNode;
39
38
  }) => React$1.JSX.Element;
40
39
  declare const ComboboxChip: ({ children, ...props }: Combobox$1.Chip.Props) => React$1.JSX.Element;
41
- //#endregion
42
40
  export { Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxClear, ComboboxCollection, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxList, ComboboxPopup, ComboboxRow, ComboboxSeparator, ComboboxStatus, ComboboxTrigger, ComboboxValue };
@@ -10,7 +10,7 @@ import { Input } from "./input.js";
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
11
11
  import * as React$1 from "react";
12
12
  import { Combobox as Combobox$1 } from "@base-ui/react/combobox";
13
- //#region src/components/combobox.tsx
13
+ // src/components/combobox.tsx
14
14
  const ComboboxContext = React$1.createContext({
15
15
  chipsRef: null,
16
16
  multiple: false
@@ -232,5 +232,4 @@ const ComboboxChipRemove = (props) => /* @__PURE__ */ jsx(Combobox$1.ChipRemove,
232
232
  ...props,
233
233
  children: /* @__PURE__ */ jsx(XIcon, {})
234
234
  });
235
- //#endregion
236
235
  export { Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxClear, ComboboxCollection, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxList, ComboboxPopup, ComboboxRow, ComboboxSeparator, ComboboxStatus, ComboboxTrigger, ComboboxValue };
@@ -4,7 +4,6 @@ import { ControlSize } from "../lib/control-size.js";
4
4
  import { Dialog } from "@base-ui/react/dialog";
5
5
  import { DialogContent as DialogPopup } from "./dialog.js";
6
6
  import { VariantProps } from "class-variance-authority";
7
- //#region src/components/command.d.ts
8
7
  type CommandProps<ItemValue> = Omit<Autocomplete.Root.Props<ItemValue>, "items"> & {
9
8
  items?: readonly ItemValue[] | undefined;
10
9
  };
@@ -36,5 +35,4 @@ declare const CommandItem: ({ className, size, ...props }: Autocomplete.Item.Pro
36
35
  declare const CommandSeparator: ({ className, ...props }: Autocomplete.Separator.Props) => React$1.JSX.Element;
37
36
  declare const CommandShortcut: ({ className, ...props }: React$1.ComponentProps<"span">) => React$1.JSX.Element;
38
37
  declare const CommandFooter: ({ className, ...props }: React$1.ComponentProps<"div">) => React$1.JSX.Element;
39
- //#endregion
40
38
  export { Command, CommandCollection, CommandDialog, CommandDialogPopup, CommandDialogTrigger, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandInput, CommandItem, CommandList, CommandPanel, CommandSeparator, CommandShortcut };
@@ -9,7 +9,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
9
9
  import { Dialog } from "@base-ui/react/dialog";
10
10
  import { cva } from "class-variance-authority";
11
11
  import { Autocomplete } from "@base-ui/react/autocomplete";
12
- //#region src/components/command.tsx
12
+ // src/components/command.tsx
13
13
  const Command = ({ autoHighlight = "always", keepHighlight = true, open = true, ...props }) => /* @__PURE__ */ jsx(Autocomplete.Root, {
14
14
  autoHighlight,
15
15
  keepHighlight,
@@ -114,5 +114,4 @@ const CommandFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
114
114
  "data-slot": "command-footer",
115
115
  ...props
116
116
  });
117
- //#endregion
118
117
  export { Command, CommandCollection, CommandDialog, CommandDialogPopup, CommandDialogTrigger, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandInput, CommandItem, CommandList, CommandPanel, CommandSeparator, CommandShortcut };
@@ -1,4 +1,3 @@
1
- //#region src/components/composer-tokens.d.ts
2
1
  /**
3
2
  * The tokens every composer box shares: the chat hero, the chat follow-up
4
3
  * bar, the docked bar over documents (inspector chat, file overlay,
@@ -68,5 +67,4 @@ export declare const COMPOSER_SEND_BUTTON_CLASS = "bg-foreground text-background
68
67
  * law home's scope and jurisdiction): quiet text with a hover surface, so
69
68
  * the row stays subordinate to the box above it.
70
69
  */
71
- export declare const COMPOSER_PICKER_TRIGGER_CLASS = "text-muted-foreground hover:text-foreground hover:bg-accent inline-flex min-w-0 shrink items-center gap-1 rounded-md px-1.5 py-0.5 text-2xs";
72
- //#endregion
70
+ export declare const COMPOSER_PICKER_TRIGGER_CLASS = "text-muted-foreground hover:text-foreground hover:bg-accent inline-flex min-w-0 shrink items-center gap-1 rounded-md px-1.5 py-0.5 text-2xs";
@@ -1,4 +1,4 @@
1
- //#region src/components/composer-tokens.ts
1
+ // src/components/composer-tokens.ts
2
2
  /**
3
3
  * The tokens every composer box shares: the chat hero, the chat follow-up
4
4
  * bar, the docked bar over documents (inspector chat, file overlay,
@@ -69,5 +69,4 @@ const COMPOSER_SEND_BUTTON_CLASS = "bg-foreground text-background hover:bg-foreg
69
69
  * the row stays subordinate to the box above it.
70
70
  */
71
71
  const COMPOSER_PICKER_TRIGGER_CLASS = "text-muted-foreground hover:text-foreground hover:bg-accent inline-flex min-w-0 shrink items-center gap-1 rounded-md px-1.5 py-0.5 text-2xs";
72
- //#endregion
73
72
  export { COMPOSER_BOX_ANONYMIZED_CLASS, COMPOSER_BOX_CLASS, COMPOSER_BOX_FOCUS_CLASS, COMPOSER_COMPACT_ROW_CLASS, COMPOSER_COMPACT_TEXT_CELL_CLASS, COMPOSER_CONTROL_BUTTON_SIZE, COMPOSER_LARGE_ACTION_ROW_CLASS, COMPOSER_LARGE_EDITOR_CLASS, COMPOSER_LARGE_TEXT_WELL_CLASS, COMPOSER_LEADING_GROUP_CLASS, COMPOSER_PICKER_TRIGGER_CLASS, COMPOSER_PLACEHOLDER_CLASS, COMPOSER_SEND_BUTTON_CLASS, COMPOSER_TEXT_CLASS };
@@ -1,6 +1,5 @@
1
1
  import { COMPOSER_BOX_ANONYMIZED_CLASS, COMPOSER_BOX_CLASS, COMPOSER_BOX_FOCUS_CLASS, COMPOSER_COMPACT_ROW_CLASS, COMPOSER_COMPACT_TEXT_CELL_CLASS, COMPOSER_CONTROL_BUTTON_SIZE, COMPOSER_LARGE_ACTION_ROW_CLASS, COMPOSER_LARGE_EDITOR_CLASS, COMPOSER_LARGE_TEXT_WELL_CLASS, COMPOSER_LEADING_GROUP_CLASS, COMPOSER_PICKER_TRIGGER_CLASS, COMPOSER_PLACEHOLDER_CLASS, COMPOSER_SEND_BUTTON_CLASS, COMPOSER_TEXT_CLASS } from "./composer-tokens.js";
2
2
  import { ReactNode } from "react";
3
- //#region src/components/composer.d.ts
4
3
  type ComposerStatusRowProps = {
5
4
  /** Left cluster: matter picker, web-search / anonymize toggles, ... */
6
5
  start?: ReactNode | undefined;
@@ -43,5 +42,4 @@ type ComposerPickerProps<Value extends string> = {
43
42
  * kind of control.
44
43
  */
45
44
  export declare const ComposerPicker: <Value extends string>({ ariaLabel, icon, onChange, options, value }: ComposerPickerProps<Value>) => import("react").JSX.Element;
46
- //#endregion
47
45
  export { COMPOSER_BOX_ANONYMIZED_CLASS, COMPOSER_BOX_CLASS, COMPOSER_BOX_FOCUS_CLASS, COMPOSER_COMPACT_ROW_CLASS, COMPOSER_COMPACT_TEXT_CELL_CLASS, COMPOSER_CONTROL_BUTTON_SIZE, COMPOSER_LARGE_ACTION_ROW_CLASS, COMPOSER_LARGE_EDITOR_CLASS, COMPOSER_LARGE_TEXT_WELL_CLASS, COMPOSER_LEADING_GROUP_CLASS, COMPOSER_PICKER_TRIGGER_CLASS, COMPOSER_PLACEHOLDER_CLASS, COMPOSER_SEND_BUTTON_CLASS, COMPOSER_TEXT_CLASS };
@@ -4,7 +4,7 @@ import { cn } from "../lib/utils.js";
4
4
  import { DropdownMenu as Menu, DropdownMenuContent as MenuPopup, DropdownMenuRadioGroup as MenuRadioGroup, DropdownMenuRadioItem as MenuRadioItem, DropdownMenuTrigger as MenuTrigger } from "./menu.js";
5
5
  import { COMPOSER_BOX_ANONYMIZED_CLASS, COMPOSER_BOX_CLASS, COMPOSER_BOX_FOCUS_CLASS, COMPOSER_COMPACT_ROW_CLASS, COMPOSER_COMPACT_TEXT_CELL_CLASS, COMPOSER_CONTROL_BUTTON_SIZE, COMPOSER_LARGE_ACTION_ROW_CLASS, COMPOSER_LARGE_EDITOR_CLASS, COMPOSER_LARGE_TEXT_WELL_CLASS, COMPOSER_LEADING_GROUP_CLASS, COMPOSER_PICKER_TRIGGER_CLASS, COMPOSER_PLACEHOLDER_CLASS, COMPOSER_SEND_BUTTON_CLASS, COMPOSER_TEXT_CLASS } from "./composer-tokens.js";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
- //#region src/components/composer.tsx
7
+ // src/components/composer.tsx
8
8
  /**
9
9
  * The slim status row rendered beneath a composer box: a `text-xs` row with
10
10
  * a start cluster and an end slot pinned to the far edge. Shared by every
@@ -76,5 +76,4 @@ const ComposerPicker = ({ ariaLabel, icon, onChange, options, value }) => {
76
76
  })
77
77
  })] });
78
78
  };
79
- //#endregion
80
79
  export { COMPOSER_BOX_ANONYMIZED_CLASS, COMPOSER_BOX_CLASS, COMPOSER_BOX_FOCUS_CLASS, COMPOSER_COMPACT_ROW_CLASS, COMPOSER_COMPACT_TEXT_CELL_CLASS, COMPOSER_CONTROL_BUTTON_SIZE, COMPOSER_LARGE_ACTION_ROW_CLASS, COMPOSER_LARGE_EDITOR_CLASS, COMPOSER_LARGE_TEXT_WELL_CLASS, COMPOSER_LEADING_GROUP_CLASS, COMPOSER_PICKER_TRIGGER_CLASS, COMPOSER_PLACEHOLDER_CLASS, COMPOSER_SEND_BUTTON_CLASS, COMPOSER_TEXT_CLASS, ComposerPicker, ComposerStatusRow };
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from "react";
2
- //#region src/components/context-menu.d.ts
3
2
  export type ContextMenuAction = {
4
3
  label: string;
5
4
  icon?: ReactNode;
@@ -32,5 +31,4 @@ export type ContextMenuProps = {
32
31
  * Renders only the children when `actions` is empty so callers can
33
32
  * pass conditionally.
34
33
  */
35
- export declare const ContextMenu: ({ actions, children }: ContextMenuProps) => ReactNode;
36
- //#endregion
34
+ export declare const ContextMenu: ({ actions, children }: ContextMenuProps) => ReactNode;
@@ -3,7 +3,7 @@ import { cn } from "../lib/utils.js";
3
3
  import { DropdownMenuCheckboxItem as MenuCheckboxItem, DropdownMenuContent as MenuPopup, DropdownMenuItem as MenuItem, DropdownMenuSeparator as MenuSeparator, DropdownMenuSub as MenuSub, DropdownMenuSubContent as MenuSubPopup, DropdownMenuSubTrigger as MenuSubTrigger } from "./menu.js";
4
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
5
  import { ContextMenu as ContextMenu$1 } from "@base-ui/react/context-menu";
6
- //#region src/components/context-menu.tsx
6
+ // src/components/context-menu.tsx
7
7
  /**
8
8
  * Wrap arbitrary content with a right-click context menu. Built on
9
9
  * base-ui's `ContextMenu`, which is purpose-built for right-click /
@@ -44,5 +44,4 @@ const ContextMenuActionItem = ({ action }) => {
44
44
  children: [action.icon, action.label]
45
45
  })] });
46
46
  };
47
- //#endregion
48
47
  export { ContextMenu };
@@ -1,7 +1,6 @@
1
1
  import { Button } from "./button.js";
2
2
  import { ComponentProps } from "react";
3
3
  import { CopyToClipboardIcon } from "../icons.js";
4
- //#region src/components/copy-button.d.ts
5
4
  export declare const COPIED_RESET_MS = 1500;
6
5
  type CopyButtonProps = Omit<ComponentProps<typeof Button>, "children" | "onClick"> & {
7
6
  /** Copies and reports whether it worked; failures stay with the caller. */
@@ -47,5 +46,4 @@ type CopyFeedbackProps = {
47
46
  };
48
47
  /** The standard copy-to-check glyph and label swap, for compound controls. */
49
48
  export declare const CopyFeedback: ({ icon: Icon, labelClassName, copied, copiedLabel, iconOnly, iconClassName, label }: CopyFeedbackProps) => import("react").JSX.Element;
50
- //#endregion
51
49
  export {};
@@ -4,7 +4,7 @@ import { cn } from "../lib/utils.js";
4
4
  import { Button } from "./button.js";
5
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
6
  import { useCallback, useEffect, useRef, useState } from "react";
7
- //#region src/components/copy-button.tsx
7
+ // src/components/copy-button.tsx
8
8
  const COPIED_RESET_MS = 1500;
9
9
  const SWAP_CLASS = "col-start-1 row-start-1 transition-[opacity,scale] duration-200 ease-out motion-reduce:transition-none";
10
10
  /**
@@ -106,5 +106,4 @@ const CopyFeedback = ({ icon: Icon = CopyToClipboardIcon, labelClassName, copied
106
106
  })
107
107
  ] });
108
108
  };
109
- //#endregion
110
109
  export { COPIED_RESET_MS, CopyButton, CopyFeedback, useCopiedFeedback, useCopyConfirmation };