@getloopscale/ui 0.0.0-stage → 0.37.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +61 -2
  3. package/dist/components/composites/account-menu/account-menu.d.ts +43 -0
  4. package/dist/components/composites/account-menu/index.d.ts +1 -0
  5. package/dist/components/composites/annotation-input/annotation-input.d.ts +38 -0
  6. package/dist/components/composites/annotation-input/index.d.ts +4 -0
  7. package/dist/components/composites/annotation-input/types.d.ts +31 -0
  8. package/dist/components/composites/annotation-summary-group/annotation-summary-group.d.ts +28 -0
  9. package/dist/components/composites/annotation-summary-group/index.d.ts +1 -0
  10. package/dist/components/composites/attributes-table/attributes-table.d.ts +20 -0
  11. package/dist/components/composites/attributes-table/index.d.ts +1 -0
  12. package/dist/components/composites/chat-message-card/chat-message-card.d.ts +14 -0
  13. package/dist/components/composites/chat-message-card/index.d.ts +1 -0
  14. package/dist/components/composites/code-block/code-block.d.ts +29 -0
  15. package/dist/components/composites/code-block/index.d.ts +1 -0
  16. package/dist/components/composites/command-palette/command-palette.d.ts +41 -0
  17. package/dist/components/composites/command-palette/index.d.ts +1 -0
  18. package/dist/components/composites/comment-thread/comment-thread.d.ts +24 -0
  19. package/dist/components/composites/comment-thread/index.d.ts +2 -0
  20. package/dist/components/composites/confirm-dialog/confirm-dialog.d.ts +41 -0
  21. package/dist/components/composites/confirm-dialog/index.d.ts +1 -0
  22. package/dist/components/composites/data-table/compare-values.d.ts +2 -0
  23. package/dist/components/composites/data-table/data-table-loading.d.ts +10 -0
  24. package/dist/components/composites/data-table/data-table-parts.d.ts +16 -0
  25. package/dist/components/composites/data-table/data-table-virtualized.d.ts +32 -0
  26. package/dist/components/composites/data-table/data-table.d.ts +82 -0
  27. package/dist/components/composites/data-table/index.d.ts +2 -0
  28. package/dist/components/composites/data-table/use-data-table-sort.d.ts +19 -0
  29. package/dist/components/composites/dataset-item-diff/dataset-item-diff.d.ts +19 -0
  30. package/dist/components/composites/dataset-item-diff/index.d.ts +4 -0
  31. package/dist/components/composites/dataset-item-diff/to-diff-text.d.ts +22 -0
  32. package/dist/components/composites/deployment-row/deployment-row.d.ts +28 -0
  33. package/dist/components/composites/deployment-row/index.d.ts +1 -0
  34. package/dist/components/composites/diff-view/diff-section.d.ts +19 -0
  35. package/dist/components/composites/diff-view/diff-view.d.ts +39 -0
  36. package/dist/components/composites/diff-view/index.d.ts +2 -0
  37. package/dist/components/composites/domain-config/domain-config.d.ts +34 -0
  38. package/dist/components/composites/domain-config/index.d.ts +1 -0
  39. package/dist/components/composites/env-var-editor/env-var-editor.d.ts +35 -0
  40. package/dist/components/composites/env-var-editor/index.d.ts +1 -0
  41. package/dist/components/composites/evaluator-form/evaluator-form.d.ts +25 -0
  42. package/dist/components/composites/evaluator-form/index.d.ts +3 -0
  43. package/dist/components/composites/evaluator-form/types.d.ts +41 -0
  44. package/dist/components/composites/histogram/histogram.d.ts +19 -0
  45. package/dist/components/composites/histogram/index.d.ts +2 -0
  46. package/dist/components/composites/io-cards/index.d.ts +2 -0
  47. package/dist/components/composites/io-cards/io-cards.d.ts +17 -0
  48. package/dist/components/composites/io-cards/message-card.d.ts +21 -0
  49. package/dist/components/composites/message-branch-selector/index.d.ts +1 -0
  50. package/dist/components/composites/message-branch-selector/message-branch-selector.d.ts +27 -0
  51. package/dist/components/composites/metric-card/index.d.ts +2 -0
  52. package/dist/components/composites/metric-card/metric-card.d.ts +46 -0
  53. package/dist/components/composites/page-shell/index.d.ts +1 -0
  54. package/dist/components/composites/page-shell/page-shell.d.ts +68 -0
  55. package/dist/components/composites/percentile-chart/index.d.ts +2 -0
  56. package/dist/components/composites/percentile-chart/percentile-chart.d.ts +37 -0
  57. package/dist/components/composites/preview-env-card/index.d.ts +1 -0
  58. package/dist/components/composites/preview-env-card/preview-env-card.d.ts +36 -0
  59. package/dist/components/composites/price-breakdown/index.d.ts +2 -0
  60. package/dist/components/composites/price-breakdown/price-breakdown.d.ts +21 -0
  61. package/dist/components/composites/project-card/index.d.ts +1 -0
  62. package/dist/components/composites/project-card/project-card.d.ts +32 -0
  63. package/dist/components/composites/prompt-template-editor/extract-vars.d.ts +1 -0
  64. package/dist/components/composites/prompt-template-editor/index.d.ts +2 -0
  65. package/dist/components/composites/prompt-template-editor/prompt-template-editor.d.ts +24 -0
  66. package/dist/components/composites/prompt-version-diff/index.d.ts +4 -0
  67. package/dist/components/composites/prompt-version-diff/prompt-version-diff.d.ts +20 -0
  68. package/dist/components/composites/prompt-version-diff/to-diff-text.d.ts +26 -0
  69. package/dist/components/composites/rollback-ui/index.d.ts +1 -0
  70. package/dist/components/composites/rollback-ui/rollback-ui.d.ts +32 -0
  71. package/dist/components/composites/session-summary/index.d.ts +1 -0
  72. package/dist/components/composites/session-summary/session-summary.d.ts +18 -0
  73. package/dist/components/composites/session-timeline/index.d.ts +1 -0
  74. package/dist/components/composites/session-timeline/session-timeline.d.ts +22 -0
  75. package/dist/components/composites/severity-badge/index.d.ts +2 -0
  76. package/dist/components/composites/severity-badge/severity-badge.d.ts +33 -0
  77. package/dist/components/composites/span-graph/index.d.ts +1 -0
  78. package/dist/components/composites/span-graph/span-graph.d.ts +19 -0
  79. package/dist/components/composites/span-tree/index.d.ts +2 -0
  80. package/dist/components/composites/span-tree/span-tree-row.d.ts +22 -0
  81. package/dist/components/composites/span-tree/span-tree-virtual.d.ts +7 -0
  82. package/dist/components/composites/span-tree/span-tree.d.ts +34 -0
  83. package/dist/components/composites/span-waterfall/index.d.ts +1 -0
  84. package/dist/components/composites/span-waterfall/span-waterfall.d.ts +28 -0
  85. package/dist/components/composites/status-indicator/index.d.ts +2 -0
  86. package/dist/components/composites/status-indicator/status-indicator.d.ts +31 -0
  87. package/dist/components/composites/stepper/index.d.ts +1 -0
  88. package/dist/components/composites/stepper/stepper.d.ts +53 -0
  89. package/dist/components/composites/tag-input/index.d.ts +2 -0
  90. package/dist/components/composites/tag-input/tag-input.d.ts +32 -0
  91. package/dist/components/composites/task-header/index.d.ts +1 -0
  92. package/dist/components/composites/task-header/task-header.d.ts +20 -0
  93. package/dist/components/composites/token-cost-breakdown/index.d.ts +2 -0
  94. package/dist/components/composites/token-cost-breakdown/token-cost-breakdown.d.ts +26 -0
  95. package/dist/components/composites/trace-compare/index.d.ts +1 -0
  96. package/dist/components/composites/trace-compare/trace-compare.d.ts +27 -0
  97. package/dist/components/composites/trace-transcript/index.d.ts +1 -0
  98. package/dist/components/composites/trace-transcript/trace-transcript.d.ts +26 -0
  99. package/dist/components/composites/trend-chart/index.d.ts +1 -0
  100. package/dist/components/composites/trend-chart/trend-chart.d.ts +117 -0
  101. package/dist/components/primitives/action-bar/action-bar.d.ts +36 -0
  102. package/dist/components/primitives/action-bar/index.d.ts +1 -0
  103. package/dist/components/primitives/alert/alert.d.ts +31 -0
  104. package/dist/components/primitives/alert/index.d.ts +1 -0
  105. package/dist/components/primitives/avatar/avatar.d.ts +26 -0
  106. package/dist/components/primitives/avatar/index.d.ts +1 -0
  107. package/dist/components/primitives/badge/badge.d.ts +33 -0
  108. package/dist/components/primitives/badge/index.d.ts +1 -0
  109. package/dist/components/primitives/breadcrumb/breadcrumb.d.ts +15 -0
  110. package/dist/components/primitives/breadcrumb/index.d.ts +1 -0
  111. package/dist/components/primitives/button/button.d.ts +26 -0
  112. package/dist/components/primitives/button/index.d.ts +1 -0
  113. package/dist/components/primitives/card/card.d.ts +59 -0
  114. package/dist/components/primitives/card/index.d.ts +1 -0
  115. package/dist/components/primitives/checkbox/checkbox.d.ts +20 -0
  116. package/dist/components/primitives/checkbox/index.d.ts +1 -0
  117. package/dist/components/primitives/combobox/combobox.d.ts +53 -0
  118. package/dist/components/primitives/combobox/index.d.ts +1 -0
  119. package/dist/components/primitives/copy-button/copy-button.d.ts +17 -0
  120. package/dist/components/primitives/copy-button/index.d.ts +1 -0
  121. package/dist/components/primitives/danger-zone/danger-zone.d.ts +40 -0
  122. package/dist/components/primitives/danger-zone/index.d.ts +1 -0
  123. package/dist/components/primitives/description-list/description-list.d.ts +33 -0
  124. package/dist/components/primitives/description-list/index.d.ts +1 -0
  125. package/dist/components/primitives/dialog/dialog.d.ts +31 -0
  126. package/dist/components/primitives/dialog/index.d.ts +1 -0
  127. package/dist/components/primitives/dropdown-menu/dropdown-menu.d.ts +68 -0
  128. package/dist/components/primitives/dropdown-menu/index.d.ts +1 -0
  129. package/dist/components/primitives/empty-state/empty-state.d.ts +22 -0
  130. package/dist/components/primitives/empty-state/index.d.ts +1 -0
  131. package/dist/components/primitives/file-dropzone/file-dropzone.d.ts +26 -0
  132. package/dist/components/primitives/file-dropzone/index.d.ts +1 -0
  133. package/dist/components/primitives/file-dropzone/validate.d.ts +40 -0
  134. package/dist/components/primitives/form-field/form-field.d.ts +44 -0
  135. package/dist/components/primitives/form-field/index.d.ts +1 -0
  136. package/dist/components/primitives/input/index.d.ts +1 -0
  137. package/dist/components/primitives/input/input.d.ts +24 -0
  138. package/dist/components/primitives/json-viewer/index.d.ts +1 -0
  139. package/dist/components/primitives/json-viewer/json-viewer.d.ts +32 -0
  140. package/dist/components/primitives/label/index.d.ts +1 -0
  141. package/dist/components/primitives/label/label.d.ts +15 -0
  142. package/dist/components/primitives/login-split/index.d.ts +1 -0
  143. package/dist/components/primitives/login-split/login-split.d.ts +24 -0
  144. package/dist/components/primitives/metrics-panel/index.d.ts +1 -0
  145. package/dist/components/primitives/metrics-panel/metrics-panel.d.ts +62 -0
  146. package/dist/components/primitives/pagination/index.d.ts +1 -0
  147. package/dist/components/primitives/pagination/pagination.d.ts +44 -0
  148. package/dist/components/primitives/pin-input/index.d.ts +1 -0
  149. package/dist/components/primitives/pin-input/pin-input.d.ts +41 -0
  150. package/dist/components/primitives/plan-badge/index.d.ts +1 -0
  151. package/dist/components/primitives/plan-badge/plan-badge.d.ts +35 -0
  152. package/dist/components/primitives/progress/index.d.ts +1 -0
  153. package/dist/components/primitives/progress/progress.d.ts +44 -0
  154. package/dist/components/primitives/radio-group/index.d.ts +1 -0
  155. package/dist/components/primitives/radio-group/radio-group.d.ts +5 -0
  156. package/dist/components/primitives/scroll-area/index.d.ts +2 -0
  157. package/dist/components/primitives/scroll-area/scroll-area.d.ts +40 -0
  158. package/dist/components/primitives/scroll-area/use-stick-to-bottom.d.ts +20 -0
  159. package/dist/components/primitives/select/index.d.ts +1 -0
  160. package/dist/components/primitives/select/select.d.ts +50 -0
  161. package/dist/components/primitives/sheet/index.d.ts +1 -0
  162. package/dist/components/primitives/sheet/sheet.d.ts +33 -0
  163. package/dist/components/primitives/sidebar/index.d.ts +1 -0
  164. package/dist/components/primitives/sidebar/sidebar.d.ts +76 -0
  165. package/dist/components/primitives/skeleton/index.d.ts +1 -0
  166. package/dist/components/primitives/skeleton/skeleton.d.ts +21 -0
  167. package/dist/components/primitives/slider/index.d.ts +1 -0
  168. package/dist/components/primitives/slider/slider.d.ts +24 -0
  169. package/dist/components/primitives/social-auth-row/index.d.ts +1 -0
  170. package/dist/components/primitives/social-auth-row/social-auth-row.d.ts +24 -0
  171. package/dist/components/primitives/stat-tile/index.d.ts +1 -0
  172. package/dist/components/primitives/stat-tile/stat-tile.d.ts +28 -0
  173. package/dist/components/primitives/status-dot/index.d.ts +1 -0
  174. package/dist/components/primitives/status-dot/status-dot.d.ts +31 -0
  175. package/dist/components/primitives/switch/index.d.ts +1 -0
  176. package/dist/components/primitives/switch/switch.d.ts +20 -0
  177. package/dist/components/primitives/table/index.d.ts +1 -0
  178. package/dist/components/primitives/table/table.d.ts +61 -0
  179. package/dist/components/primitives/tabs/index.d.ts +1 -0
  180. package/dist/components/primitives/tabs/tabs.d.ts +7 -0
  181. package/dist/components/primitives/textarea/index.d.ts +1 -0
  182. package/dist/components/primitives/textarea/textarea.d.ts +20 -0
  183. package/dist/components/primitives/timestamp/index.d.ts +1 -0
  184. package/dist/components/primitives/timestamp/timestamp.d.ts +34 -0
  185. package/dist/components/primitives/toast/index.d.ts +2 -0
  186. package/dist/components/primitives/toast/toast.d.ts +34 -0
  187. package/dist/components/primitives/toast/toaster.d.ts +38 -0
  188. package/dist/components/primitives/tooltip/index.d.ts +1 -0
  189. package/dist/components/primitives/tooltip/tooltip.d.ts +33 -0
  190. package/dist/components/primitives/topnav/index.d.ts +1 -0
  191. package/dist/components/primitives/topnav/topnav.d.ts +29 -0
  192. package/dist/components/primitives/update-banner/index.d.ts +1 -0
  193. package/dist/components/primitives/update-banner/update-banner.d.ts +16 -0
  194. package/dist/components.css +2 -0
  195. package/dist/fonts/geist-400.woff2 +0 -0
  196. package/dist/fonts/geist-500.woff2 +0 -0
  197. package/dist/fonts/geist-600.woff2 +0 -0
  198. package/dist/fonts/geist-mono-400.woff2 +0 -0
  199. package/dist/fonts/geist-mono-500.woff2 +0 -0
  200. package/dist/fonts/geist-mono-600.woff2 +0 -0
  201. package/dist/fonts-cdn.css +28 -0
  202. package/dist/fonts.css +75 -0
  203. package/dist/index.d.ts +116 -0
  204. package/dist/index.js +9274 -0
  205. package/dist/lib/chart/histogram.d.ts +21 -0
  206. package/dist/lib/chart/index.d.ts +1 -0
  207. package/dist/lib/cn.d.ts +6 -0
  208. package/dist/lib/diff/diff-lines.d.ts +23 -0
  209. package/dist/lib/diff/index.d.ts +1 -0
  210. package/dist/lib/env.d.ts +55 -0
  211. package/dist/lib/live-region-context.d.ts +2 -0
  212. package/dist/lib/safe-href.d.ts +27 -0
  213. package/dist/lib/session/aggregate.d.ts +18 -0
  214. package/dist/lib/session/index.d.ts +2 -0
  215. package/dist/lib/session/types.d.ts +30 -0
  216. package/dist/lib/trace/align.d.ts +41 -0
  217. package/dist/lib/trace/attributes.d.ts +11 -0
  218. package/dist/lib/trace/bar-layout.d.ts +52 -0
  219. package/dist/lib/trace/chat.d.ts +14 -0
  220. package/dist/lib/trace/cost.d.ts +24 -0
  221. package/dist/lib/trace/duration.d.ts +18 -0
  222. package/dist/lib/trace/flatten.d.ts +28 -0
  223. package/dist/lib/trace/graph-layout.d.ts +52 -0
  224. package/dist/lib/trace/index.d.ts +9 -0
  225. package/dist/lib/trace/types.d.ts +85 -0
  226. package/dist/lib/types.d.ts +10 -0
  227. package/dist/preset.css +27 -0
  228. package/dist/styles/tailwind-preset.d.ts +29 -0
  229. package/dist/styles-v3-legacy.css +88 -0
  230. package/dist/styles.css +137 -0
  231. package/dist/tailwind-preset.js +166 -0
  232. package/dist/test/a11y.d.ts +13 -0
  233. package/dist/test/fixtures/trace.d.ts +19 -0
  234. package/dist/test/setup.d.ts +1 -0
  235. package/dist/tokens-v4.css +223 -0
  236. package/dist/tokens.css +315 -0
  237. package/dist/types/task.d.ts +9 -0
  238. package/package.json +127 -4
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for describing the origin of the Work and
141
+ reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 getloopscale.com
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md CHANGED
@@ -1,3 +1,62 @@
1
- # Temporary Holding Version
1
+ # @getloopscale/ui
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Violet Forge design system — the generic React components and primitives that form the non-AI
4
+ foundation of the LoopScale UI stack. Apache-2.0, ESM-only.
5
+
6
+ This is the layer with **no agent in it**: the shell, the tables, the forms, the feedback states,
7
+ the dashboard pieces. [`@theokit/ui`](https://github.com/usetheokit/theokit-ui) builds on top of it
8
+ with the agent surfaces (chat threads, tool calls, approval cards) and shares the same tokens, so
9
+ the two compose without a visual seam.
10
+
11
+ **Rule of thumb:** if the component would exist in an app with no agent in it, it belongs here.
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ pnpm add @getloopscale/ui
17
+ ```
18
+
19
+ Or copy a single component, shadcn-style, from the published registry:
20
+
21
+ ```bash
22
+ npx shadcn@latest add https://getloopscale.github.io/ui/r/data-table.json
23
+ ```
24
+
25
+ ## Catalog
26
+
27
+ <!-- BEGIN:catalog -->
28
+
29
+ **87 components** — 45 primitives + 42 composites.
30
+
31
+ ### Primitives (45)
32
+
33
+ `ActionBar` · `Alert` · `Avatar` · `Badge` · `Breadcrumb` · `Button` · `Card` · `Checkbox` · `Combobox` · `CopyButton` · `DangerZone` · `DescriptionList` · `Dialog` · `DropdownMenu` · `EmptyState` · `FileDropzone` · `FormField` · `Input` · `JsonViewer` · `Label` · `LoginSplit` · `MetricsPanel` · `Pagination` · `PinInput` · `PlanBadge` · `Progress` · `RadioGroup` · `ScrollArea` · `Select` · `Sheet` · `Sidebar` · `Skeleton` · `Slider` · `SocialAuthRow` · `StatTile` · `StatusDot` · `Switch` · `Table` · `Tabs` · `Textarea` · `Timestamp` · `Toast` · `Tooltip` · `Topnav` · `UpdateBanner`
34
+
35
+ ### Composites (42)
36
+
37
+ `AccountMenu` · `AnnotationInput` · `AnnotationSummaryGroup` · `AttributesTable` · `ChatMessageCard` · `CodeBlock` · `CommandPalette` · `CommentThread` · `ConfirmDialog` · `DataTable` · `DatasetItemDiff` · `DeploymentRow` · `DiffView` · `DomainConfig` · `EnvVarEditor` · `EvaluatorForm` · `Histogram` · `IoCards` · `MessageBranchSelector` · `MetricCard` · `PageShell` · `PercentileChart` · `PreviewEnvCard` · `PriceBreakdown` · `ProjectCard` · `PromptTemplateEditor` · `PromptVersionDiff` · `RollbackUi` · `SessionSummary` · `SessionTimeline` · `SeverityBadge` · `SpanGraph` · `SpanTree` · `SpanWaterfall` · `StatusIndicator` · `Stepper` · `TagInput` · `TaskHeader` · `TokenCostBreakdown` · `TraceCompare` · `TraceTranscript` · `TrendChart`
38
+
39
+ <!-- END:catalog -->
40
+
41
+ Generated from `src/components/` by `pnpm sync:readme` — do not edit the block above by hand.
42
+
43
+ ## Theming
44
+
45
+ The tokens come from the Violet Forge foundation shipped here (`tailwind-preset`, `themes`, `cn`).
46
+ Consumers that also install `@theokit/ui` get the same token names, so a theme defined once applies
47
+ to both packages.
48
+
49
+ ## Development
50
+
51
+ ```bash
52
+ pnpm install
53
+ pnpm dev # Ladle catalog
54
+ pnpm test
55
+ pnpm typecheck
56
+ pnpm lint
57
+ pnpm build
58
+ pnpm sync:readme # regenerate the catalog block above
59
+ pnpm registry:build # rebuild registry/r/*.json for the shadcn path
60
+ ```
61
+
62
+ > Seeded from `loopscale-ui` @ `2b46eca` (2026-07-03, AI-exclusive pivot milestone M-B).
@@ -0,0 +1,43 @@
1
+ import type { ButtonHTMLAttributes, ReactNode } from "react";
2
+ import { type PlanTier } from "../../primitives/plan-badge/index.js";
3
+ /**
4
+ * AccountMenu — sidebar header for PaaS surfaces.
5
+ *
6
+ * Renders avatar + name + (optional) plan badge + (optional) secondary line.
7
+ * Dual mode: with `onClick`, renders as a `<button>` with a `ChevronsUpDown`
8
+ * trailing icon (account picker affordance); without, renders as a static
9
+ * `<div>` (read-only display, not focusable).
10
+ *
11
+ * Composition:
12
+ *
13
+ * <Sidebar.Header className="p-0">
14
+ * <AccountMenu
15
+ * name="paulohenriquevn"
16
+ * avatar="https://avatars.githubusercontent.com/u/12345"
17
+ * plan="hobby"
18
+ * onClick={openAccountSwitcher}
19
+ * />
20
+ * </Sidebar.Header>
21
+ *
22
+ * Avatar handling:
23
+ * - URL (`http(s)://` or `/`) → `<Avatar.Image>` with `<Avatar.Fallback>` initials
24
+ * - Short string (≤2 chars) → treated as initials directly
25
+ * - Undefined → initials derived from the first character of `name`
26
+ *
27
+ * PaaS-shape sibling of `<ProjectSwitcher>` (workspace + branch + agent-status).
28
+ * Same dual-mode (interactive vs static) pattern; different semantics.
29
+ */
30
+ export interface AccountMenuProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "type" | "children" | "name"> {
31
+ /** Display name (username, email, org name). */
32
+ name: ReactNode;
33
+ /** Avatar URL or 1-2-char initials. If undefined, derives initials from `name`. */
34
+ avatar?: string;
35
+ /** Plan tier — renders inline `<PlanBadge size="sm">`. Omit for none. */
36
+ plan?: PlanTier;
37
+ /** Optional secondary line below name (e.g. email). */
38
+ secondary?: ReactNode;
39
+ /** Make the row interactive (button) with a trailing chevron. */
40
+ onClick?: () => void;
41
+ }
42
+ declare const AccountMenu: import("react").ForwardRefExoticComponent<AccountMenuProps & import("react").RefAttributes<HTMLElement>>;
43
+ export { AccountMenu };
@@ -0,0 +1 @@
1
+ export { AccountMenu, type AccountMenuProps } from "./account-menu.js";
@@ -0,0 +1,38 @@
1
+ import type { AnnotationCategoricalConfig, AnnotationContinuousConfig, AnnotationFreeformConfig } from "./types.js";
2
+ /**
3
+ * AnnotationInput — a controlled, config-driven human annotation input (M12).
4
+ * Dispatches on `config.type` (Phoenix's three-type model): categorical →
5
+ * RadioGroup over named options; continuous → number input bounded by the
6
+ * config; freeform → textarea. Fully controlled (`value` + `onValueChange`);
7
+ * the consumer owns the config (fixture or backend store) and the submission.
8
+ * Composes the DS form primitives — zero new dependency (M12 ADR D2).
9
+ *
10
+ * <AnnotationInput name="Quality" config={qualityConfig}
11
+ * value={v} onValueChange={setV} />
12
+ */
13
+ interface AnnotationInputCommon {
14
+ /** The score name — rendered as the field label / radiogroup accessible name. */
15
+ name: string;
16
+ /** Overrides the generated control id (for external label association). */
17
+ id?: string;
18
+ /** Optional helper text, wired via aria-describedby. */
19
+ description?: string;
20
+ required?: boolean;
21
+ disabled?: boolean;
22
+ className?: string;
23
+ }
24
+ export type AnnotationInputProps = (AnnotationInputCommon & {
25
+ config: AnnotationCategoricalConfig;
26
+ value: string | null;
27
+ onValueChange: (value: string | null) => void;
28
+ }) | (AnnotationInputCommon & {
29
+ config: AnnotationContinuousConfig;
30
+ value: number | null;
31
+ onValueChange: (value: number | null) => void;
32
+ }) | (AnnotationInputCommon & {
33
+ config: AnnotationFreeformConfig;
34
+ value: string | null;
35
+ onValueChange: (value: string | null) => void;
36
+ });
37
+ declare function AnnotationInput(props: AnnotationInputProps): import("react").JSX.Element;
38
+ export { AnnotationInput };
@@ -0,0 +1,4 @@
1
+ export { AnnotationInput } from "./annotation-input.js";
2
+ export type { AnnotationInputProps } from "./annotation-input.js";
3
+ export type { CategoricalOption, AnnotationCategoricalConfig, AnnotationContinuousConfig, AnnotationFreeformConfig, AnnotationConfig, } from "./types.js";
4
+ export { isCategoricalConfig, isContinuousConfig, isFreeformConfig } from "./types.js";
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Annotation config types — the named-score-type contract for AnnotationInput
3
+ * (M12). Follows Phoenix's three-type model (categorical / continuous /
4
+ * freeform); Langfuse's BOOLEAN is categorical-of-two and CORRECTION is
5
+ * system-only, so neither adds to a controlled human input. The config is a
6
+ * plain descriptor the consumer owns (fixture or backend store) — the DS
7
+ * component is config-driven and stateless.
8
+ */
9
+ /** One named categorical choice; `score` optionally maps the label to a numeric value on submit. */
10
+ export interface CategoricalOption {
11
+ label: string;
12
+ score?: number | null;
13
+ }
14
+ export interface AnnotationCategoricalConfig {
15
+ type: "categorical";
16
+ options: CategoricalOption[];
17
+ }
18
+ export interface AnnotationContinuousConfig {
19
+ type: "continuous";
20
+ min: number;
21
+ max: number;
22
+ step?: number;
23
+ }
24
+ export interface AnnotationFreeformConfig {
25
+ type: "freeform";
26
+ maxLength?: number;
27
+ }
28
+ export type AnnotationConfig = AnnotationCategoricalConfig | AnnotationContinuousConfig | AnnotationFreeformConfig;
29
+ export declare function isCategoricalConfig(c: AnnotationConfig): c is AnnotationCategoricalConfig;
30
+ export declare function isContinuousConfig(c: AnnotationConfig): c is AnnotationContinuousConfig;
31
+ export declare function isFreeformConfig(c: AnnotationConfig): c is AnnotationFreeformConfig;
@@ -0,0 +1,28 @@
1
+ import type { AnnotationConfig } from "../annotation-input/types.js";
2
+ /**
3
+ * AnnotationSummaryGroup — a collapsible group showing AGGREGATE stats over a
4
+ * list of annotation values for one `AnnotationConfig` (M18). Reuses the M12
5
+ * `AnnotationConfig` contract (DRY, ADR D2) and dispatches on `config.type`:
6
+ * - continuous → mean of the finite numeric values + count.
7
+ * - categorical → count per option label + total count.
8
+ * - freeform → count of non-empty values.
9
+ *
10
+ * Controlled and pure — the consumer owns `values` (fixture or backend store);
11
+ * this component only summarizes. Uses a native `<details>`/`<summary>` for
12
+ * zero-JS collapsibility; composes `Card`/`Badge`. Zero new dependency.
13
+ *
14
+ * <AnnotationSummaryGroup config={cfg} values={vals} label="Quality" />
15
+ */
16
+ export interface AnnotationSummaryGroupProps {
17
+ /** The annotation config the values were collected against (reused from M12). */
18
+ config: AnnotationConfig;
19
+ /** The collected annotation values to aggregate. */
20
+ values: (string | number)[];
21
+ /** Group heading; falls back to the config type when omitted. */
22
+ label?: string;
23
+ /** Whether the group starts expanded. */
24
+ defaultOpen?: boolean;
25
+ className?: string;
26
+ }
27
+ declare const AnnotationSummaryGroup: import("react").ForwardRefExoticComponent<AnnotationSummaryGroupProps & import("react").RefAttributes<HTMLDetailsElement>>;
28
+ export { AnnotationSummaryGroup };
@@ -0,0 +1 @@
1
+ export { AnnotationSummaryGroup, type AnnotationSummaryGroupProps, } from "./annotation-summary-group.js";
@@ -0,0 +1,20 @@
1
+ export interface AttributesTableProps {
2
+ attrs?: Record<string, unknown>;
3
+ /** Predicate marking a key's value as sensitive (masked fail-closed). Default: nothing masked. */
4
+ maskedKeys?: (key: string) => boolean;
5
+ /** Whether the viewer is authorized to reveal masked values. Default false (fail-closed). */
6
+ canReveal?: boolean;
7
+ /** Keys promoted to a badge header above the namespace cards. */
8
+ promoted?: string[];
9
+ /** Namespace cards start expanded. Default true. */
10
+ defaultOpen?: boolean;
11
+ }
12
+ /**
13
+ * AttributesTable — namespace-grouped OTel span attributes with fail-closed
14
+ * PII masking. A `maskedKeys`-flagged value renders as `•••`; its raw string
15
+ * NEVER enters the DOM (no text node, no title/aria/data) until Reveal is
16
+ * clicked AND `canReveal` is true, and its CopyButton is withheld until then.
17
+ * When `!canReveal` the reveal control is a quiet "masked" hint, not an inert
18
+ * button. Object values fall back to the dependency-free `JsonViewer`.
19
+ */
20
+ export declare function AttributesTable({ attrs, maskedKeys, canReveal, promoted, defaultOpen, }: AttributesTableProps): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export { AttributesTable, type AttributesTableProps } from "./attributes-table.js";
@@ -0,0 +1,14 @@
1
+ import type { HTMLAttributes } from "react";
2
+ import type { ToolCall } from "../../../lib/trace/types.js";
3
+ export interface ChatMessageCardProps extends HTMLAttributes<HTMLDivElement> {
4
+ /** ChatML role — user / assistant / tool / system (or any string). */
5
+ role: string;
6
+ /** Text body of the message. */
7
+ content?: string;
8
+ /** Structured tool calls attached to the message (assistant turns). */
9
+ toolCalls?: ToolCall[];
10
+ /** Structured tool results (tool turns). Serialized to JSON for display. */
11
+ toolResults?: unknown[];
12
+ }
13
+ declare const ChatMessageCard: import("react").ForwardRefExoticComponent<ChatMessageCardProps & import("react").RefAttributes<HTMLDivElement>>;
14
+ export { ChatMessageCard };
@@ -0,0 +1 @@
1
+ export { ChatMessageCard, type ChatMessageCardProps } from "./chat-message-card.js";
@@ -0,0 +1,29 @@
1
+ import type { HTMLAttributes, ReactNode } from "react";
2
+ /**
3
+ * CodeBlock — terminal command / code snippet surface.
4
+ *
5
+ * Pre-rendered code block with optional terminal "$ " prefix per line,
6
+ * optional caption (file name), and optional CopyButton positioned top-right.
7
+ * The CopyButton receives the RAW `code` (without the visual "$ " prefix),
8
+ * so consumers paste only the executable command.
9
+ *
10
+ * @example
11
+ * <CodeBlock code="loopzero deploy" terminal copyable />
12
+ * <CodeBlock code={dotenv} caption=".env.local" copyable />
13
+ *
14
+ * `language` is reserved for future syntax highlighting (v1: ignored).
15
+ */
16
+ export interface CodeBlockProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
17
+ /** Code content. Can be multiline. */
18
+ code: string;
19
+ /** Language hint (forward-compat; v1 ignored). */
20
+ language?: string;
21
+ /** When true, prefix each line with "$ " for shell commands. */
22
+ terminal?: boolean;
23
+ /** Show inline CopyButton in top-right. */
24
+ copyable?: boolean;
25
+ /** Optional caption above block (e.g. ".env.local"). */
26
+ caption?: ReactNode;
27
+ }
28
+ declare const CodeBlock: import("react").ForwardRefExoticComponent<CodeBlockProps & import("react").RefAttributes<HTMLDivElement>>;
29
+ export { CodeBlock };
@@ -0,0 +1 @@
1
+ export { CodeBlock, type CodeBlockProps } from "./code-block.js";
@@ -0,0 +1,41 @@
1
+ import type { ReactNode } from "react";
2
+ import type { IconComponent } from "../../../lib/types.js";
3
+ export interface CommandItem {
4
+ id: string;
5
+ label: ReactNode;
6
+ /** Optional secondary line (path, hint, shortcut). */
7
+ hint?: ReactNode;
8
+ /** Optional group name. Items with the same group are visually grouped. */
9
+ group?: string;
10
+ /** Optional icon. */
11
+ icon?: IconComponent;
12
+ /** Optional searchable plain-text used by the cmdk ranker. Falls back to `label` when string. */
13
+ searchable?: string;
14
+ }
15
+ interface CommandPaletteProps {
16
+ open: boolean;
17
+ onOpenChange: (open: boolean) => void;
18
+ items: CommandItem[];
19
+ onSelect: (id: string) => void;
20
+ placeholder?: string;
21
+ emptyMessage?: ReactNode;
22
+ /**
23
+ * Optional custom filter score (0 = no match, > 0 = match). Receives the
24
+ * `value` (the item's searchable text) and the current `search` query.
25
+ * Defaults to cmdk's built-in fuzzy ranker which prioritizes substring +
26
+ * word-boundary + consecutive matches.
27
+ */
28
+ filter?: (value: string, search: string) => number;
29
+ }
30
+ /**
31
+ * CommandPalette — Cmd+K-style global launcher with full keyboard navigation.
32
+ *
33
+ * Built on `cmdk` (the de-facto shadcn pattern) + the Dialog primitive. Provides
34
+ * out-of-the-box: ArrowUp/ArrowDown navigation, Enter selection, Escape close,
35
+ * Home/End, active-item highlight via `data-selected`, and fuzzy ranking.
36
+ *
37
+ * Stateless: caller owns `open` / `onOpenChange` / `items`. Selecting an item
38
+ * fires `onSelect(id)` and closes the dialog.
39
+ */
40
+ declare function CommandPalette({ open, onOpenChange, items, onSelect, placeholder, emptyMessage, filter, }: CommandPaletteProps): import("react").JSX.Element;
41
+ export { CommandPalette };
@@ -0,0 +1 @@
1
+ export { CommandPalette, type CommandItem } from "./command-palette.js";
@@ -0,0 +1,24 @@
1
+ /**
2
+ * A single comment in a {@link CommentThread}. The `id` keys the list; the
3
+ * consumer owns id assignment (backend or fixture).
4
+ */
5
+ export interface Comment {
6
+ id: string;
7
+ author: string;
8
+ body: string;
9
+ /** ISO string OR Unix **ms** (Timestamp contract) — NOT seconds. */
10
+ createdAt: string | number;
11
+ avatarUrl?: string;
12
+ }
13
+ export interface CommentThreadProps {
14
+ /** The rendered thread (controlled — the consumer brings/persists it). */
15
+ comments: Comment[];
16
+ /** Called with the trimmed draft when the composer submits a non-empty body. */
17
+ onSubmit: (body: string) => void;
18
+ /** Name of the person composing — surfaced as the composer avatar/context. */
19
+ currentUser?: string;
20
+ disabled?: boolean;
21
+ className?: string;
22
+ }
23
+ declare const CommentThread: import("react").ForwardRefExoticComponent<CommentThreadProps & import("react").RefAttributes<HTMLDivElement>>;
24
+ export { CommentThread };
@@ -0,0 +1,2 @@
1
+ export { CommentThread } from "./comment-thread.js";
2
+ export type { Comment, CommentThreadProps } from "./comment-thread.js";
@@ -0,0 +1,41 @@
1
+ import type { ReactNode } from "react";
2
+ /**
3
+ * ConfirmDialog — controlled confirmation modal built on `Dialog`.
4
+ *
5
+ * Focuses Cancel on open (deliberate — NOT the destructive button).
6
+ * `intent="destructive"` styles the confirm button with the destructive
7
+ * variant. `confirmationPhrase` enables typed-confirmation guard:
8
+ * the confirm button is disabled until the input value matches the
9
+ * phrase exactly (case-sensitive). An empty string phrase is treated
10
+ * as "no phrase required" (`!!confirmationPhrase`). Pressing Enter in
11
+ * the input triggers confirm when `canConfirm` is true.
12
+ *
13
+ * `onConfirm` can be async. While the returned promise is pending,
14
+ * both buttons are disabled and a `Loader2` spinner appears. On
15
+ * resolve, the dialog closes via `onOpenChange(false)`. On reject,
16
+ * the dialog stays open so the consumer can show their own error.
17
+ *
18
+ * @example
19
+ * <ConfirmDialog
20
+ * open={open} onOpenChange={setOpen}
21
+ * title="Delete project"
22
+ * description="This cannot be undone."
23
+ * intent="destructive"
24
+ * confirmationPhrase="my-project"
25
+ * onConfirm={async () => api.deleteProject(id)}
26
+ * />
27
+ */
28
+ export interface ConfirmDialogProps {
29
+ open: boolean;
30
+ onOpenChange: (open: boolean) => void;
31
+ title: ReactNode;
32
+ description: ReactNode;
33
+ confirmLabel?: ReactNode;
34
+ cancelLabel?: ReactNode;
35
+ intent?: "default" | "destructive";
36
+ confirmationPhrase?: string;
37
+ onConfirm: () => void | Promise<void>;
38
+ loading?: boolean;
39
+ }
40
+ declare const ConfirmDialog: import("react").ForwardRefExoticComponent<ConfirmDialogProps & import("react").RefAttributes<HTMLDivElement>>;
41
+ export { ConfirmDialog };
@@ -0,0 +1 @@
1
+ export { ConfirmDialog, type ConfirmDialogProps } from "./confirm-dialog.js";
@@ -0,0 +1,2 @@
1
+ /** Shared sort comparator for DataTable modes (default + virtualized). */
2
+ export declare function compareValues(a: unknown, b: unknown): number;
@@ -0,0 +1,10 @@
1
+ import type { ReactNode } from "react";
2
+ import type { DataTableColumn } from "./data-table.js";
3
+ /** Skeleton state shared by both DataTable modes (extracted — 300-line hook floor). */
4
+ export declare function DataTableLoading<T>(props: {
5
+ columns: DataTableColumn<T>[];
6
+ hasExpandColumn: boolean;
7
+ hasActionsColumn: boolean;
8
+ stickyHeader: boolean;
9
+ className?: string;
10
+ }): ReactNode;