@stacksjs/components 0.2.854 → 0.2.857

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 (139) hide show
  1. package/dist/CodeEditor-jg4w7e15.stx +497 -0
  2. package/dist/ContextMenu-43g3w5tp.stx +188 -0
  3. package/dist/DataGrid-7rt7v865.stx +376 -0
  4. package/dist/GraphView-0t3t9mec.stx +320 -0
  5. package/dist/JsonTree-satc4010.stx +317 -0
  6. package/dist/PreviewFrame-erbgvzj8.stx +257 -0
  7. package/dist/SplitPane-7sqfdwqa.stx +159 -0
  8. package/dist/code-editor/editor.js +2166 -0
  9. package/dist/component-api/component-api.js +36 -0
  10. package/dist/components/CodeBlock.d.ts +12 -5
  11. package/dist/context-menu/context-menu.js +575 -0
  12. package/dist/data-grid/data-grid.js +1244 -0
  13. package/dist/graph-view/graph-view.js +1408 -0
  14. package/dist/index.d.ts +10 -0
  15. package/dist/index.js +34 -15
  16. package/dist/json-tree/json-tree.js +1121 -0
  17. package/dist/preview-frame/preview-frame.js +356 -0
  18. package/dist/split-pane/split-pane.js +364 -0
  19. package/dist/ui/code-editor/CodeEditor.d.ts +46 -0
  20. package/dist/ui/code-editor/controller.d.ts +103 -0
  21. package/dist/ui/code-editor/core/commands.d.ts +55 -0
  22. package/dist/ui/code-editor/core/completion.d.ts +40 -0
  23. package/dist/ui/code-editor/core/editor.d.ts +69 -0
  24. package/dist/ui/code-editor/core/highlight.d.ts +61 -0
  25. package/dist/ui/code-editor/core/history.d.ts +27 -0
  26. package/dist/ui/code-editor/core/index.d.ts +13 -0
  27. package/dist/ui/code-editor/core/keymap.d.ts +38 -0
  28. package/dist/ui/code-editor/core/selection.d.ts +30 -0
  29. package/dist/ui/code-editor/core/text.d.ts +64 -0
  30. package/dist/ui/code-editor/editor.d.ts +15 -0
  31. package/dist/ui/code-editor/index.d.ts +29 -0
  32. package/dist/ui/code-editor/tokenizer.d.ts +18 -0
  33. package/dist/ui/code-editor/view.d.ts +59 -0
  34. package/dist/ui/context-menu/ContextMenu.d.ts +14 -0
  35. package/dist/ui/context-menu/context-menu.d.ts +8 -0
  36. package/dist/ui/context-menu/core.d.ts +74 -0
  37. package/dist/ui/context-menu/index.d.ts +11 -0
  38. package/dist/ui/context-menu/view.d.ts +36 -0
  39. package/dist/ui/data-grid/DataGrid.d.ts +30 -0
  40. package/dist/ui/data-grid/core.d.ts +141 -0
  41. package/dist/ui/data-grid/data-grid.d.ts +9 -0
  42. package/dist/ui/data-grid/index.d.ts +20 -0
  43. package/dist/ui/data-grid/view.d.ts +56 -0
  44. package/dist/ui/graph-view/GraphView.d.ts +21 -0
  45. package/dist/ui/graph-view/core/edges.d.ts +34 -0
  46. package/dist/ui/graph-view/core/force.d.ts +10 -0
  47. package/dist/ui/graph-view/core/graph.d.ts +83 -0
  48. package/dist/ui/graph-view/core/index.d.ts +5 -0
  49. package/dist/ui/graph-view/core/layered.d.ts +24 -0
  50. package/dist/ui/graph-view/core/viewport.d.ts +34 -0
  51. package/dist/ui/graph-view/graph-view.d.ts +9 -0
  52. package/dist/ui/graph-view/index.d.ts +21 -0
  53. package/dist/ui/graph-view/view.d.ts +51 -0
  54. package/dist/ui/json-tree/JsonTree.d.ts +18 -0
  55. package/dist/ui/json-tree/core.d.ts +108 -0
  56. package/dist/ui/json-tree/index.d.ts +18 -0
  57. package/dist/ui/json-tree/json-tree.d.ts +10 -0
  58. package/dist/ui/json-tree/tinker.d.ts +84 -0
  59. package/dist/ui/json-tree/view.d.ts +59 -0
  60. package/dist/ui/preview-frame/PreviewFrame.d.ts +44 -0
  61. package/dist/ui/preview-frame/core.d.ts +81 -0
  62. package/dist/ui/preview-frame/index.d.ts +19 -0
  63. package/dist/ui/preview-frame/preview-frame.d.ts +8 -0
  64. package/dist/ui/preview-frame/view.d.ts +37 -0
  65. package/dist/ui/split-pane/SplitPane.d.ts +18 -0
  66. package/dist/ui/split-pane/core.d.ts +58 -0
  67. package/dist/ui/split-pane/index.d.ts +15 -0
  68. package/dist/ui/split-pane/split-pane.d.ts +8 -0
  69. package/dist/ui/split-pane/view.d.ts +27 -0
  70. package/dist/ui/virtual-table/index.d.ts +6 -0
  71. package/dist/utils/component-api.d.ts +4 -0
  72. package/dist/utils/highlighter.d.ts +19 -1
  73. package/dist/utils/highlighter.js +24 -7
  74. package/dist/utils/syntax-theme.d.ts +44 -0
  75. package/package.json +44 -4
  76. package/src/components/CodeBlock.stx +195 -17
  77. package/src/index.ts +10 -0
  78. package/src/ui/code-editor/CodeEditor.stx +497 -0
  79. package/src/ui/code-editor/README.md +135 -0
  80. package/src/ui/code-editor/controller.ts +517 -0
  81. package/src/ui/code-editor/core/commands.ts +381 -0
  82. package/src/ui/code-editor/core/completion.ts +212 -0
  83. package/src/ui/code-editor/core/editor.ts +319 -0
  84. package/src/ui/code-editor/core/highlight.ts +203 -0
  85. package/src/ui/code-editor/core/history.ts +190 -0
  86. package/src/ui/code-editor/core/index.ts +14 -0
  87. package/src/ui/code-editor/core/keymap.ts +125 -0
  88. package/src/ui/code-editor/core/selection.ts +104 -0
  89. package/src/ui/code-editor/core/text.ts +252 -0
  90. package/src/ui/code-editor/editor.ts +16 -0
  91. package/src/ui/code-editor/index.ts +46 -0
  92. package/src/ui/code-editor/tokenizer.ts +74 -0
  93. package/src/ui/code-editor/view.ts +1066 -0
  94. package/src/ui/context-menu/ContextMenu.stx +188 -0
  95. package/src/ui/context-menu/README.md +117 -0
  96. package/src/ui/context-menu/context-menu.ts +8 -0
  97. package/src/ui/context-menu/core.ts +250 -0
  98. package/src/ui/context-menu/index.ts +16 -0
  99. package/src/ui/context-menu/view.ts +540 -0
  100. package/src/ui/data-grid/DataGrid.stx +376 -0
  101. package/src/ui/data-grid/README.md +204 -0
  102. package/src/ui/data-grid/core.ts +813 -0
  103. package/src/ui/data-grid/data-grid.ts +9 -0
  104. package/src/ui/data-grid/index.ts +34 -0
  105. package/src/ui/data-grid/view.ts +806 -0
  106. package/src/ui/graph-view/GraphView.stx +320 -0
  107. package/src/ui/graph-view/README.md +210 -0
  108. package/src/ui/graph-view/core/edges.ts +180 -0
  109. package/src/ui/graph-view/core/force.ts +237 -0
  110. package/src/ui/graph-view/core/graph.ts +277 -0
  111. package/src/ui/graph-view/core/index.ts +5 -0
  112. package/src/ui/graph-view/core/layered.ts +256 -0
  113. package/src/ui/graph-view/core/viewport.ts +141 -0
  114. package/src/ui/graph-view/graph-view.ts +9 -0
  115. package/src/ui/graph-view/index.ts +35 -0
  116. package/src/ui/graph-view/view.ts +809 -0
  117. package/src/ui/json-tree/JsonTree.stx +317 -0
  118. package/src/ui/json-tree/README.md +193 -0
  119. package/src/ui/json-tree/core.ts +588 -0
  120. package/src/ui/json-tree/index.ts +28 -0
  121. package/src/ui/json-tree/json-tree.ts +10 -0
  122. package/src/ui/json-tree/tinker.ts +349 -0
  123. package/src/ui/json-tree/view.ts +665 -0
  124. package/src/ui/preview-frame/PreviewFrame.stx +257 -0
  125. package/src/ui/preview-frame/README.md +107 -0
  126. package/src/ui/preview-frame/core.ts +195 -0
  127. package/src/ui/preview-frame/index.ts +31 -0
  128. package/src/ui/preview-frame/preview-frame.ts +8 -0
  129. package/src/ui/preview-frame/view.ts +336 -0
  130. package/src/ui/split-pane/README.md +87 -0
  131. package/src/ui/split-pane/SplitPane.stx +159 -0
  132. package/src/ui/split-pane/core.ts +200 -0
  133. package/src/ui/split-pane/index.ts +24 -0
  134. package/src/ui/split-pane/split-pane.ts +8 -0
  135. package/src/ui/split-pane/view.ts +305 -0
  136. package/src/ui/virtual-table/index.ts +6 -0
  137. package/src/utils/component-api.ts +72 -0
  138. package/src/utils/highlighter.ts +121 -218
  139. package/src/utils/syntax-theme.ts +144 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/components",
3
3
  "type": "module",
4
- "version": "0.2.854",
4
+ "version": "0.2.857",
5
5
  "description": "A modern component library built with STX, featuring headwind utility classes and TypeScript syntax highlighting.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",
@@ -52,6 +52,46 @@
52
52
  "bun": "./dist/chat/controller.js",
53
53
  "import": "./dist/chat/controller.js"
54
54
  },
55
+ "./code-editor": {
56
+ "types": "./dist/ui/code-editor/editor.d.ts",
57
+ "bun": "./dist/code-editor/editor.js",
58
+ "import": "./dist/code-editor/editor.js"
59
+ },
60
+ "./component-api": {
61
+ "types": "./dist/utils/component-api.d.ts",
62
+ "bun": "./dist/component-api/component-api.js",
63
+ "import": "./dist/component-api/component-api.js"
64
+ },
65
+ "./context-menu": {
66
+ "types": "./dist/ui/context-menu/context-menu.d.ts",
67
+ "bun": "./dist/context-menu/context-menu.js",
68
+ "import": "./dist/context-menu/context-menu.js"
69
+ },
70
+ "./data-grid": {
71
+ "types": "./dist/ui/data-grid/data-grid.d.ts",
72
+ "bun": "./dist/data-grid/data-grid.js",
73
+ "import": "./dist/data-grid/data-grid.js"
74
+ },
75
+ "./graph-view": {
76
+ "types": "./dist/ui/graph-view/graph-view.d.ts",
77
+ "bun": "./dist/graph-view/graph-view.js",
78
+ "import": "./dist/graph-view/graph-view.js"
79
+ },
80
+ "./json-tree": {
81
+ "types": "./dist/ui/json-tree/json-tree.d.ts",
82
+ "bun": "./dist/json-tree/json-tree.js",
83
+ "import": "./dist/json-tree/json-tree.js"
84
+ },
85
+ "./preview-frame": {
86
+ "types": "./dist/ui/preview-frame/preview-frame.d.ts",
87
+ "bun": "./dist/preview-frame/preview-frame.js",
88
+ "import": "./dist/preview-frame/preview-frame.js"
89
+ },
90
+ "./split-pane": {
91
+ "types": "./dist/ui/split-pane/split-pane.d.ts",
92
+ "bun": "./dist/split-pane/split-pane.js",
93
+ "import": "./dist/split-pane/split-pane.js"
94
+ },
55
95
  "./overlays": {
56
96
  "types": "./dist/utils/overlays.d.ts",
57
97
  "bun": "./dist/overlays/overlays.js",
@@ -84,9 +124,9 @@
84
124
  "dependencies": {
85
125
  "@iconify-json/f7": "^1.2.2",
86
126
  "@stacksjs/ts-css": "^0.3.11",
87
- "@stacksjs/stx": "0.2.854",
88
- "bun-plugin-stx": "0.2.854",
89
- "ts-syntax-highlighter": "^0.2.17",
127
+ "@stacksjs/stx": "0.2.857",
128
+ "bun-plugin-stx": "0.2.857",
129
+ "ts-syntax-highlighter": "^0.2.20",
90
130
  "ts-video-player": "^0.1.11"
91
131
  },
92
132
  "devDependencies": {
@@ -15,14 +15,21 @@ export const lineNumbers = $bool($props.lineNumbers, true)
15
15
  export const copyable = $bool($props.copyable, true)
16
16
  export const className = $props.className || ''
17
17
 
18
- const result = await highlight(code, { language, theme, lineNumbers })
18
+ /*
19
+ * `lineNumbers` is still not passed on. `highlight()` can number lines now (as
20
+ * a CSS counter, so they never reach a copy), but this prop defaults to true
21
+ * and has always been dropped: honouring it would put numbers on every block
22
+ * already in use. Turning it on is its own change.
23
+ */
24
+ const result = await highlight(code, { language, theme })
19
25
  export const highlightedCode = applyHeadwindClasses(result.html, className)
20
- // Exported, not rendered: no stylesheet in this package covers the
21
- // highlighter's class names, so a consumer needs these rules to see colour --
22
- // but a <style> inside a component is extracted from the component's source
23
- // before interpolation runs, so emitting it here ships an empty tag. Until that
24
- // is fixed in stx, an app includes this itself (or sets its own token styles).
26
+ // The same sheet the <style> block below ships as literal text. A <style>
27
+ // inside a component is extracted from its source before interpolation runs,
28
+ // so `{{ highlightCss }}` in one would ship an empty tag; the literal copy is
29
+ // what a page gets, and this export is for a caller that wants the string.
25
30
  export const highlightCss = result.css
31
+ export const renderedOnServer = code !== ''
32
+ export const liveClasses = `rounded-md overflow-auto text-sm leading-relaxed font-mono ${className}`.trim()
26
33
 
27
34
  /*
28
35
  * The clipboard payload, decided on the SERVER.
@@ -57,23 +64,70 @@ export const copyPayload = copyable ? code : ''
57
64
  * "1const a = 1" rather than the code. Gating is the version that cannot
58
65
  * silently corrupt what lands on the clipboard.
59
66
  */
60
- const code = {{ copyPayload }}
67
+ let code = {{ copyPayload }}
61
68
  const copied = state(false)
62
69
 
63
- async function copyToClipboard() {
64
- try {
65
- await navigator.clipboard.writeText(code)
66
- copied.set(true)
67
- setTimeout(() => copied.set(false), 2000)
68
- }
69
- catch (err) {
70
- console.error('Failed to copy code:', err)
71
- }
70
+ /*
71
+ * A block whose code is bound (`:code="snippet()"`) follows it in the browser.
72
+ *
73
+ * The new code is shown at once, as text. It is coloured as well when the page
74
+ * hands this block a highlighter: `:highlighter="highlightToHtml"`, the function
75
+ * this package exports, which runs in a browser through the highlighter's
76
+ * browser entry. It is passed in rather than imported here because an import
77
+ * in this script is bundled into every page that has a code block on it, and a
78
+ * page of static snippets should not download a tokenizer and its grammars to
79
+ * show HTML the server already coloured.
80
+ *
81
+ * `null` as the default for `code`, not the server's code: a default would put
82
+ * the snippet in this script whether or not anything needs it (#2014).
83
+ */
84
+ const liveCode = useReactiveProp('code', null, { parse: v => v })
85
+ const liveLanguage = useReactiveProp('language', {{ language }}, { parse: v => (v == null ? '' : String(v)) })
86
+ const liveHighlighter = useReactiveProp('highlighter', null, { parse: v => v })
87
+ const liveHtml = state('')
88
+ // What the server drew. A bound prop is not known there, so it drew nothing.
89
+ let renderedCode = {{ renderedOnServer }} ? null : ''
90
+ let renderedLanguage = {{ language }}
91
+ let request = 0
92
+
93
+ const themeAttribute = {{ theme }} === 'light' || {{ theme }} === 'dark' ? ' data-syntax-theme="' + {{ theme }} + '"' : ''
94
+ function plainHtml(text) {
95
+ return '<pre class="syntax"' + themeAttribute + '><code>' + String(text).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;') + '</code></pre>'
72
96
  }
97
+
98
+ effect(() => {
99
+ const next = liveCode()
100
+ const language = liveLanguage() || {{ language }}
101
+ const highlighter = liveHighlighter()
102
+ if (typeof next !== 'string') return
103
+ // The first value a bound prop delivers is the one the server drew.
104
+ if (renderedCode === null) {
105
+ renderedCode = next
106
+ return
107
+ }
108
+ if (next === renderedCode && language === renderedLanguage) return
109
+
110
+ renderedCode = next
111
+ renderedLanguage = language
112
+ if ({{ copyable }}) code = next
113
+ const mine = ++request
114
+ liveHtml.set(plainHtml(next))
115
+ if (typeof highlighter !== 'function') return
116
+
117
+ Promise.resolve()
118
+ .then(() => highlighter(next, { language, theme: {{ theme }} }))
119
+ .then((html) => {
120
+ // A later change has already been drawn, or there was nothing to colour.
121
+ if (mine === request && typeof html === 'string' && html) liveHtml.set(html)
122
+ })
123
+ .catch(() => {})
124
+ })
73
125
  </script>
74
126
 
75
127
  <div class="relative group">
76
- {!! highlightedCode !!}
128
+ {{-- The server's render, until a bound `code` changes; then the browser's. --}}
129
+ <div :show="!liveHtml()">{!! highlightedCode !!}</div>
130
+ <div class="{{ liveClasses }}" :show="liveHtml()" :html="liveHtml()"></div>
77
131
 
78
132
  @if(copyable)
79
133
  <button
@@ -107,3 +161,127 @@ async function copyToClipboard() {
107
161
  </button>
108
162
  @endif
109
163
  </div>
164
+
165
+ <style>
166
+ /* codeBlockCss() in utils/syntax-theme.ts, as literal text. A test holds the two
167
+ together; change that file and paste, not this. */
168
+ :where(:root) {
169
+ --stx-syntax-background: #ffffff;
170
+ --stx-syntax-foreground: #24292f;
171
+ --stx-syntax-keyword: #cf222e;
172
+ --stx-syntax-string: #0a3069;
173
+ --stx-syntax-comment: #6e7781;
174
+ --stx-syntax-numeric: #0550ae;
175
+ --stx-syntax-constant: #0550ae;
176
+ --stx-syntax-function: #8250df;
177
+ --stx-syntax-operator: #cf222e;
178
+ --stx-syntax-punctuation: #24292f;
179
+ --stx-syntax-type: #953800;
180
+ --stx-syntax-variable: #953800;
181
+ --stx-syntax-tag: #116329;
182
+ --stx-syntax-attribute: #0550ae;
183
+ }
184
+ @media (prefers-color-scheme: dark) {
185
+ :where(:root:not(.light)) {
186
+ --stx-syntax-background: #0d1117;
187
+ --stx-syntax-foreground: #c9d1d9;
188
+ --stx-syntax-keyword: #ff7b72;
189
+ --stx-syntax-string: #a5d6ff;
190
+ --stx-syntax-comment: #8b949e;
191
+ --stx-syntax-numeric: #79c0ff;
192
+ --stx-syntax-constant: #79c0ff;
193
+ --stx-syntax-function: #d2a8ff;
194
+ --stx-syntax-operator: #ff7b72;
195
+ --stx-syntax-punctuation: #c9d1d9;
196
+ --stx-syntax-type: #ffa657;
197
+ --stx-syntax-variable: #ffa657;
198
+ --stx-syntax-tag: #7ee787;
199
+ --stx-syntax-attribute: #79c0ff;
200
+ }
201
+ }
202
+ :where(.dark) {
203
+ --stx-syntax-background: #0d1117;
204
+ --stx-syntax-foreground: #c9d1d9;
205
+ --stx-syntax-keyword: #ff7b72;
206
+ --stx-syntax-string: #a5d6ff;
207
+ --stx-syntax-comment: #8b949e;
208
+ --stx-syntax-numeric: #79c0ff;
209
+ --stx-syntax-constant: #79c0ff;
210
+ --stx-syntax-function: #d2a8ff;
211
+ --stx-syntax-operator: #ff7b72;
212
+ --stx-syntax-punctuation: #c9d1d9;
213
+ --stx-syntax-type: #ffa657;
214
+ --stx-syntax-variable: #ffa657;
215
+ --stx-syntax-tag: #7ee787;
216
+ --stx-syntax-attribute: #79c0ff;
217
+ }
218
+ :where([data-syntax-theme="light"]) {
219
+ --stx-syntax-background: #ffffff;
220
+ --stx-syntax-foreground: #24292f;
221
+ --stx-syntax-keyword: #cf222e;
222
+ --stx-syntax-string: #0a3069;
223
+ --stx-syntax-comment: #6e7781;
224
+ --stx-syntax-numeric: #0550ae;
225
+ --stx-syntax-constant: #0550ae;
226
+ --stx-syntax-function: #8250df;
227
+ --stx-syntax-operator: #cf222e;
228
+ --stx-syntax-punctuation: #24292f;
229
+ --stx-syntax-type: #953800;
230
+ --stx-syntax-variable: #953800;
231
+ --stx-syntax-tag: #116329;
232
+ --stx-syntax-attribute: #0550ae;
233
+ }
234
+ :where([data-syntax-theme="dark"]) {
235
+ --stx-syntax-background: #0d1117;
236
+ --stx-syntax-foreground: #c9d1d9;
237
+ --stx-syntax-keyword: #ff7b72;
238
+ --stx-syntax-string: #a5d6ff;
239
+ --stx-syntax-comment: #8b949e;
240
+ --stx-syntax-numeric: #79c0ff;
241
+ --stx-syntax-constant: #79c0ff;
242
+ --stx-syntax-function: #d2a8ff;
243
+ --stx-syntax-operator: #ff7b72;
244
+ --stx-syntax-punctuation: #c9d1d9;
245
+ --stx-syntax-type: #ffa657;
246
+ --stx-syntax-variable: #ffa657;
247
+ --stx-syntax-tag: #7ee787;
248
+ --stx-syntax-attribute: #79c0ff;
249
+ }
250
+ .tok-keyword { color: var(--stx-syntax-keyword); }
251
+ .tok-string { color: var(--stx-syntax-string); }
252
+ .tok-comment { color: var(--stx-syntax-comment); }
253
+ .tok-numeric { color: var(--stx-syntax-numeric); }
254
+ .tok-constant { color: var(--stx-syntax-constant); }
255
+ .tok-function { color: var(--stx-syntax-function); }
256
+ .tok-operator { color: var(--stx-syntax-operator); }
257
+ .tok-punctuation { color: var(--stx-syntax-punctuation); }
258
+ .tok-type { color: var(--stx-syntax-type); }
259
+ .tok-variable { color: var(--stx-syntax-variable); }
260
+ .tok-tag { color: var(--stx-syntax-tag); }
261
+ .tok-attribute { color: var(--stx-syntax-attribute); }
262
+ .tok-comment { font-style: italic; }
263
+ .syntax {
264
+ margin: 0;
265
+ padding: 1rem;
266
+ overflow-x: auto;
267
+ border-radius: 0.375rem;
268
+ background-color: var(--stx-syntax-background);
269
+ color: var(--stx-syntax-foreground);
270
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
271
+ font-size: 0.875rem;
272
+ line-height: 1.5;
273
+ tab-size: 2;
274
+ }
275
+ .syntax code { display: block; font-family: inherit; }
276
+ .syntax[data-line-numbers] { counter-reset: stx-syntax-line; }
277
+ .syntax[data-line-numbers] .line::before {
278
+ counter-increment: stx-syntax-line;
279
+ content: counter(stx-syntax-line);
280
+ display: inline-block;
281
+ width: 2.5em;
282
+ margin-right: 1em;
283
+ text-align: right;
284
+ opacity: 0.5;
285
+ user-select: none;
286
+ }
287
+ </style>
package/src/index.ts CHANGED
@@ -29,15 +29,20 @@ export * from './ui/card'
29
29
 
30
30
  export * from './ui/checkbox'
31
31
  export * from './ui/choice-chips'
32
+ export * from './ui/code-editor'
32
33
  export * from './ui/combobox'
33
34
  export * from './ui/command-palette'
35
+ export * from './ui/context-menu'
36
+ export * from './ui/data-grid'
34
37
  export * from './ui/dialog'
35
38
  export * from './ui/drawer'
36
39
  export * from './ui/dropdown'
37
40
  export * from './ui/form'
41
+ export * from './ui/graph-view'
38
42
  export * from './ui/grouped-list'
39
43
  export * from './ui/image'
40
44
  export * from './ui/input'
45
+ export * from './ui/json-tree'
41
46
  export * from './ui/list'
42
47
  export * from './ui/listbox'
43
48
  // The phone primitives: a bottom tab bar, filter pills, dense list rows.
@@ -49,6 +54,7 @@ export * from './ui/pagination'
49
54
  export * from './ui/payment'
50
55
  export * from './ui/popover'
51
56
  export * from './ui/portal'
57
+ export * from './ui/preview-frame'
52
58
  export * from './ui/progress'
53
59
  export * from './ui/radio'
54
60
  export * from './ui/radio-group'
@@ -57,6 +63,7 @@ export * from './ui/select'
57
63
  export * from './ui/sidebar'
58
64
  export * from './ui/skeleton'
59
65
  export * from './ui/spinner'
66
+ export * from './ui/split-pane'
60
67
  export * from './ui/stepper'
61
68
  export * from './ui/storage'
62
69
  export * from './ui/switch'
@@ -71,6 +78,8 @@ export * from './ui/virtual-list'
71
78
  export * from './ui/virtual-table'
72
79
  export * from './utils/accessibility'
73
80
  export * from './utils/animation'
81
+ // A component's exposed methods, from outside it.
82
+ export * from './utils/component-api'
74
83
  export * from './utils/error-handling'
75
84
  // Export utilities
76
85
  export * from './utils/highlighter'
@@ -78,6 +87,7 @@ export * from './utils/i18n'
78
87
  export * from './utils/keep-alive'
79
88
  export * from './utils/lazy-loading'
80
89
  export * from './utils/prop-validation'
90
+ export * from './utils/syntax-theme'
81
91
  export * from './utils/theme'
82
92
 
83
93
  // Types