@fusion.dev/helix-docs 0.208.1 → 0.209.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.
@@ -431,7 +431,7 @@ names the tag to define.
431
431
 
432
432
  [//]: # (renders)
433
433
 
434
- **38 of the 106 headless families interpolate another family's tag**, across 24 distinct children.
434
+ **39 of the 107 headless families interpolate another family's tag**, across 26 distinct children.
435
435
 
436
436
  | Family | Renders |
437
437
  |---|---|
@@ -454,6 +454,7 @@ names the tag to define.
454
454
  | \`pagination\` | \`option\`, \`select\` |
455
455
  | \`select\` | \`listbox\` |
456
456
  | \`steps\`, \`tour\` | \`button\` |
457
+ | \`terminal\` | \`button\`, \`icon-button\`, \`toolbar\` |
457
458
  | \`time-input\` | \`tag\`, \`time-picker\` |
458
459
  | \`time-picker\` | \`listbox\`, \`option\` |
459
460
  | \`video\`, \`video-playlist\` | \`menu\`, \`menu-item\` |
@@ -5121,7 +5122,7 @@ on its own.
5121
5122
 
5122
5123
  | | Raw | Gzip | Brotli |
5123
5124
  |---|---|---|---|
5124
- | Lit and \`@fusion.dev/helix-core\` | 265,008 | 85,811 | 73,175 |
5125
+ | Lit and \`@fusion.dev/helix-core\` | 266,106 | 85,971 | 73,239 |
5125
5126
 
5126
5127
  ## Whole packages
5127
5128
 
@@ -5132,12 +5133,12 @@ either barrel. The per-component tables show what your page pays.
5132
5133
 
5133
5134
  | Package | Raw | Gzip | Brotli | |
5134
5135
  |---|---|---|---|---|
5135
- | \`@fusion.dev/helix-core\` | 264,217 | 85,678 | 72,898 | The element base class, mixins, decorators, and floating positioning. |
5136
- | \`@fusion.dev/helix-headless\` | 1,458,046 | 408,995 | 306,896 | Every headless family. The barrel entry includes all of them. |
5137
- | \`@fusion.dev/helix-icons\` | 56,111 | 17,847 | 15,166 | The whole glyph set. |
5136
+ | \`@fusion.dev/helix-core\` | 265,315 | 85,814 | 72,940 | The element base class, mixins, decorators, and floating positioning. |
5137
+ | \`@fusion.dev/helix-headless\` | 1,477,055 | 413,517 | 310,509 | Every headless family. The barrel entry includes all of them. |
5138
+ | \`@fusion.dev/helix-icons\` | 56,982 | 18,222 | 15,516 | The whole glyph set. |
5138
5139
  | \`@fusion.dev/helix-theme\` | 4,030 | 1,791 | 1,560 | The JavaScript that runs the derivation engine. Most sites run it at build time, and a theme switcher runs it in the browser. |
5139
5140
  | \`fusion_helix_theme_bg.wasm\` | 412,026 | 152,920 | 123,363 | The derivation engine itself, in WebAssembly. The entry above loads it when the engine runs. |
5140
- | \`@fusion.dev/helix\` | 2,178,982 | 564,575 | 402,682 | Every styled family. |
5141
+ | \`@fusion.dev/helix\` | 2,206,311 | 570,788 | 406,879 | Every styled family. |
5141
5142
  | \`lit\` | 15,394 | 6,118 | 5,460 | Lit itself, listed so you can subtract it from every row above. |
5142
5143
 
5143
5144
  ## Stylesheets
@@ -5151,20 +5152,20 @@ shows the whole cost of using the base layer on its own.
5151
5152
  | File | Raw | Gzip | Brotli | |
5152
5153
  |---|---|---|---|---|
5153
5154
  | \`base.css\` | 33,986 | 4,785 | 4,158 | The base layer. It styles markup Helix does not render, and it works with no JavaScript. |
5154
- | \`elements.css\` | 19,633 | 2,937 | 2,632 | Hides each element until its definition loads. It is generated from the tags in \`@fusion.dev/helix\`. |
5155
+ | \`elements.css\` | 19,686 | 2,942 | 2,638 | Hides each element until its definition loads. It is generated from the tags in \`@fusion.dev/helix\`. |
5155
5156
  | \`helix.css\` | 207 | 148 | 118 | The other four stylesheets in one import, in the order they must load. |
5156
5157
  | \`primitives.css\` | 7,511 | 1,401 | 1,221 | The primitive layer. It is private, and it ships because \`tokens.css\` refers to it. |
5157
5158
  | \`tokens.css\` | 23,030 | 2,795 | 2,319 | The 200 semantic tokens. Every styled component needs them. |
5158
5159
 
5159
5160
  ## What the numbers say
5160
5161
 
5161
- **Most of your first component is the shared runtime.** The median styled family is 19,331 bytes gzipped alone, and it adds 4,366 to a page that already has Helix. The shared runtime is 77 percent of the first component, and the component itself is 23 percent. Ten typical components cost the first number once, plus nine of the added number. The two columns in the tables below let you work that out for your own components.
5162
+ **Most of your first component is the shared runtime.** The median styled family is 19,793 bytes gzipped alone, and it adds 4,537 to a page that already has Helix. The shared runtime is 77 percent of the first component, and the component itself is 23 percent. Ten typical components cost the first number once, plus nine of the added number. The two columns in the tables below let you work that out for your own components.
5162
5163
 
5163
- Across the 113 styled components, the smallest is \`code\` at 8,561 bytes gzipped alone, and the largest is \`data-table\` at 67,606. Every family together is 564,575.
5164
+ Across the 114 styled components, the smallest is \`code\` at 8,560 bytes gzipped alone, and the largest is \`data-table\` at 67,608. Every family together is 570,788.
5164
5165
 
5165
- No family imports a barrel. The \`barrels\` rule in \`fusion x workspace\` enforces that. \`@fusion.dev/helix-headless\` marks every module in \`dist\` as having side effects, which is true of a file that calls \`customElements.define\`. A bundler can remove none of it. One \`import { HelixHeadlessButton } from '@fusion.dev/helix-headless'\` costs 408,995 bytes gzipped, whatever else the page imports. That is 21 times the median family above. All 113 styled families import the headless family they extend directly. The rule checks the shape of the import, so it applies to any package that sets \`sideEffects\`, whatever its name.
5166
+ No family imports a barrel. The \`barrels\` rule in \`fusion x workspace\` enforces that. \`@fusion.dev/helix-headless\` marks every module in \`dist\` as having side effects, which is true of a file that calls \`customElements.define\`. A bundler can remove none of it. One \`import { HelixHeadlessButton } from '@fusion.dev/helix-headless'\` costs 413,517 bytes gzipped, whatever else the page imports. That is 21 times the median family above. All 114 styled families import the headless family they extend directly. The rule checks the shape of the import, so it applies to any package that sets \`sideEffects\`, whatever its name.
5166
5167
 
5167
- The headless tier never had the problem, so it serves as the control. \`@fusion.dev/helix-core\` is \`sideEffects: false\`, and the median headless family is 18,197 bytes gzipped alone.
5168
+ The headless tier never had the problem, so it serves as the control. \`@fusion.dev/helix-core\` is \`sideEffects: false\`, and the median headless family is 18,410 bytes gzipped alone.
5168
5169
 
5169
5170
  ## Compared with other systems
5170
5171
 
@@ -5176,43 +5177,43 @@ The table has no whole-library row. That row would compare how many components e
5176
5177
 
5177
5178
  | Component | System | Raw | Gzip | Brotli |
5178
5179
  |---|---|---|---|---|
5179
- | \`button\` | **Helix** | 42,729 | 14,402 | 12,816 |
5180
+ | \`button\` | **Helix** | 42,729 | 14,402 | 12,850 |
5180
5181
  | | Carbon | 133,058 | 20,959 | 17,685 |
5181
5182
  | | Material Web | 47,060 | 14,173 | 12,591 |
5182
5183
  | | Spectrum | 98,792 | 22,045 | 18,674 |
5183
5184
  | | Web Awesome | 136,044 | 33,730 | 28,760 |
5184
- | \`checkbox\` | **Helix** | 47,728 | 15,518 | 13,864 |
5185
+ | \`checkbox\` | **Helix** | 47,728 | 15,519 | 13,814 |
5185
5186
  | | Carbon | 60,255 | 15,609 | 13,550 |
5186
5187
  | | Material Web | 43,785 | 13,556 | 12,015 |
5187
5188
  | | Spectrum | 62,492 | 15,437 | 13,481 |
5188
5189
  | | Web Awesome | 115,251 | 28,728 | 24,420 |
5189
- | \`dialog\` | **Helix** | 44,311 | 15,225 | 13,594 |
5190
+ | \`dialog\` | **Helix** | 44,311 | 15,228 | 13,600 |
5190
5191
  | | Carbon | 510,866 | 67,390 | 39,189 |
5191
5192
  | | Material Web | 34,238 | 11,510 | 10,229 |
5192
5193
  | | Spectrum | 155,708 | 31,899 | 26,262 |
5193
5194
  | | Web Awesome | 148,657 | 36,692 | 31,388 |
5194
- | \`radio\` | **Helix** | 51,120 | 16,281 | 14,513 |
5195
+ | \`radio\` | **Helix** | 51,120 | 16,284 | 14,491 |
5195
5196
  | | Carbon | 63,055 | 16,887 | 14,605 |
5196
5197
  | | Material Web | 41,044 | 13,234 | 11,757 |
5197
5198
  | | Spectrum | 38,685 | 10,660 | 9,370 |
5198
5199
  | | Web Awesome | 112,026 | 27,416 | 23,128 |
5199
- | \`switch\` | **Helix** | 44,449 | 14,978 | 13,362 |
5200
+ | \`switch\` | **Helix** | 44,449 | 14,979 | 13,332 |
5200
5201
  | | Carbon | 69,423 | 17,127 | 14,764 |
5201
5202
  | | Material Web | 50,155 | 14,577 | 12,935 |
5202
5203
  | | Spectrum | 62,322 | 15,059 | 13,321 |
5203
5204
  | | Web Awesome | 45,876 | 15,003 | 13,475 |
5204
- | \`tabs\` | **Helix** | 56,031 | 18,048 | 16,068 |
5205
+ | \`tabs\` | **Helix** | 56,031 | 18,046 | 16,086 |
5205
5206
  | | Carbon | 578,766 | 73,537 | 43,235 |
5206
5207
  | | Material Web | 38,883 | 12,820 | 11,368 |
5207
5208
  | | Spectrum | 64,875 | 18,298 | 16,283 |
5208
5209
  | | Web Awesome | 153,439 | 37,030 | 31,737 |
5209
- | \`tooltip\` | **Helix** | 62,502 | 22,262 | 19,723 |
5210
+ | \`tooltip\` | **Helix** | 62,502 | 22,264 | 19,787 |
5210
5211
  | | Carbon | 189,382 | 30,354 | 22,273 |
5211
5212
  | | Material Web | | not shipped | |
5212
5213
  | | Spectrum | 136,599 | 40,552 | 35,286 |
5213
5214
  | | Web Awesome | 70,568 | 24,005 | 21,107 |
5214
5215
 
5215
- At least one system is smaller than Helix on \`button\`, \`checkbox\`, \`dialog\`, \`radio\`, \`switch\`, \`tabs\`. The largest gap is radio against Spectrum, at 5,621 bytes gzipped. 8 of 27 peer measurements are smaller than the Helix row.
5216
+ At least one system is smaller than Helix on \`button\`, \`checkbox\`, \`dialog\`, \`radio\`, \`switch\`, \`tabs\`. The largest gap is radio against Spectrum, at 5,624 bytes gzipped. 8 of 27 peer measurements are smaller than the Helix row.
5216
5217
 
5217
5218
  Helix's \`radio\` family includes Radio Group, so its row carries an element that some peer rows measure without.
5218
5219
 
@@ -5286,112 +5287,113 @@ Structure, accessibility, state, and form participation. It has no presentation
5286
5287
 
5287
5288
  | Family | Alone raw | Alone gzip | Alone brotli | Added raw | Added gzip | Added brotli |
5288
5289
  |---|---|---|---|---|---|---|
5289
- | \`accordion\` | 32,671 | 12,095 | 10,732 | 5,377 | 1,563 | 1,217 |
5290
- | \`announcement\` | 37,661 | 13,706 | 12,236 | 4,700 | 1,377 | 933 |
5291
- | \`app-header\` | 33,168 | 12,242 | 10,880 | 5,900 | 1,765 | 1,247 |
5292
- | \`area-chart\` | 99,355 | 34,967 | 30,847 | 14,417 | 4,435 | 3,591 |
5293
- | \`avatar\` | 31,887 | 12,152 | 10,870 | 3,999 | 1,244 | 863 |
5294
- | \`badge\` | 28,118 | 10,943 | 9,778 | 2,960 | 892 | 772 |
5295
- | \`bar-chart\` | 107,369 | 37,644 | 33,296 | 21,901 | 6,897 | 5,707 |
5296
- | \`blockquote\` | 24,679 | 9,638 | 8,541 | 2,400 | 888 | 754 |
5297
- | \`breadcrumbs\` | 37,419 | 14,329 | 12,787 | 7,381 | 2,409 | 1,945 |
5298
- | \`button\` | 36,221 | 12,969 | 11,566 | 5,127 | 1,529 | 1,084 |
5299
- | \`button-group\` | 28,214 | 10,617 | 9,418 | 4,923 | 1,515 | 1,204 |
5300
- | \`callout\` | 36,284 | 13,987 | 12,431 | 2,884 | 964 | 662 |
5301
- | \`canvas\` | 109,988 | 35,327 | 30,867 | 68,989 | 21,044 | 17,591 |
5302
- | \`card\` | 24,397 | 9,311 | 8,259 | 2,090 | 619 | 454 |
5303
- | \`carousel\` | 45,167 | 16,067 | 14,393 | 15,330 | 4,234 | 3,238 |
5304
- | \`chat\` | 81,069 | 27,036 | 23,922 | 27,682 | 8,066 | 6,458 |
5305
- | \`checkbox\` | 41,242 | 14,016 | 12,511 | 3,107 | 956 | 621 |
5306
- | \`checkbox-group\` | 48,465 | 15,944 | 14,238 | 8,321 | 2,359 | 1,719 |
5307
- | \`code\` | 20,869 | 8,248 | 7,311 | 138 | 68 | 106 |
5308
- | \`code-block\` | 104,774 | 35,632 | 31,448 | 37,349 | 10,781 | 8,882 |
5309
- | \`color-input\` | 143,744 | 45,826 | 39,930 | 55,780 | 14,210 | 11,791 |
5310
- | \`color-picker\` | 105,363 | 33,633 | 29,439 | 47,900 | 12,700 | 10,486 |
5311
- | \`combobox\` | 133,766 | 42,655 | 37,502 | 35,968 | 9,137 | 7,196 |
5312
- | \`command\` | 101,170 | 32,142 | 28,248 | 30,351 | 8,162 | 6,451 |
5313
- | \`copy-button\` | 82,225 | 28,295 | 25,025 | 18,756 | 5,080 | 4,094 |
5314
- | \`data-table\` | 202,025 | 62,201 | 53,125 | 89,966 | 24,057 | 19,128 |
5315
- | \`date-input\` | 143,049 | 45,174 | 39,742 | 38,666 | 9,518 | 7,653 |
5316
- | \`date-picker\` | 63,093 | 21,512 | 19,285 | 20,720 | 5,657 | 4,461 |
5317
- | \`description-list\` | 23,472 | 8,993 | 7,982 | 1,565 | 504 | 351 |
5318
- | \`dialog\` | 39,175 | 13,971 | 12,446 | 5,948 | 1,761 | 1,202 |
5319
- | \`divider\` | 23,564 | 9,144 | 8,084 | 1,414 | 503 | 381 |
5320
- | \`donut-chart\` | 92,673 | 32,268 | 28,536 | 14,717 | 4,503 | 3,685 |
5321
- | \`drawer\` | 43,812 | 15,481 | 13,858 | 7,798 | 2,315 | 1,785 |
5322
- | \`drilldown\` | 43,527 | 15,249 | 13,575 | 9,709 | 2,689 | 2,036 |
5323
- | \`empty\` | 25,007 | 9,578 | 8,499 | 1,976 | 631 | 433 |
5324
- | \`file-input\` | 59,118 | 20,550 | 18,263 | 13,152 | 4,125 | 3,216 |
5325
- | \`filter-input\` | 99,578 | 33,494 | 29,683 | 21,569 | 6,163 | 4,922 |
5326
- | \`format-date\` | 31,209 | 11,674 | 10,418 | 4,474 | 1,269 | 1,013 |
5327
- | \`graph\` | 76,986 | 25,237 | 22,347 | 23,180 | 6,770 | 5,506 |
5328
- | \`heatmap\` | 101,735 | 34,695 | 30,630 | 19,071 | 5,589 | 4,451 |
5329
- | \`icon\` | 83,516 | 28,587 | 24,464 | 58,618 | 20,089 | 16,093 |
5330
- | \`icon-button\` | 36,332 | 13,001 | 11,591 | 5,236 | 1,571 | 1,099 |
5331
- | \`image\` | 26,373 | 9,844 | 8,745 | 3,845 | 1,144 | 789 |
5332
- | \`input\` | 47,049 | 16,178 | 14,339 | 7,005 | 2,238 | 1,612 |
5333
- | \`kbd\` | 28,084 | 10,789 | 9,553 | 3,518 | 1,108 | 857 |
5334
- | \`legend\` | 36,396 | 13,369 | 11,949 | 2,955 | 983 | 760 |
5335
- | \`lightbox\` | 57,138 | 19,382 | 17,257 | 16,760 | 4,615 | 3,552 |
5336
- | \`line-chart\` | 102,350 | 35,823 | 31,650 | 16,812 | 5,051 | 4,182 |
5337
- | \`list\` | 62,949 | 21,721 | 19,372 | 15,258 | 4,388 | 3,488 |
5338
- | \`listbox\` | 78,070 | 25,948 | 22,931 | 15,605 | 4,570 | 3,443 |
5339
- | \`loader\` | 27,341 | 10,451 | 9,312 | 2,785 | 940 | 657 |
5340
- | \`log\` | 80,937 | 27,697 | 24,580 | 37,582 | 11,605 | 9,859 |
5341
- | \`map\` | 81,046 | 25,212 | 22,069 | 37,496 | 10,234 | 8,125 |
5342
- | \`megamenu\` | 61,165 | 22,169 | 19,590 | 8,723 | 2,440 | 1,739 |
5343
- | \`menu\` | 98,510 | 32,960 | 29,081 | 30,262 | 7,986 | 6,490 |
5344
- | \`meter\` | 32,921 | 12,484 | 11,132 | 4,980 | 1,457 | 1,193 |
5345
- | \`motion-toggle\` | 26,353 | 10,248 | 9,109 | 1,426 | 509 | 385 |
5346
- | \`navigation\` | 33,861 | 12,731 | 11,315 | 3,364 | 1,168 | 899 |
5347
- | \`notifications\` | 59,565 | 20,343 | 18,160 | 18,280 | 5,028 | 4,056 |
5348
- | \`number-input\` | 57,629 | 19,358 | 17,235 | 13,579 | 3,624 | 2,757 |
5349
- | \`object-inspector\` | 115,897 | 39,008 | 34,355 | 36,018 | 10,393 | 8,285 |
5350
- | \`option\` | 27,049 | 9,970 | 8,859 | 4,522 | 1,208 | 864 |
5351
- | \`outline\` | 34,611 | 12,985 | 11,535 | 7,888 | 2,549 | 1,930 |
5352
- | \`pagination\` | 138,030 | 44,303 | 38,421 | 45,681 | 11,904 | 9,500 |
5353
- | \`pin-input\` | 48,848 | 17,044 | 15,218 | 7,207 | 2,382 | 1,701 |
5354
- | \`popover\` | 64,882 | 23,350 | 20,626 | 6,460 | 1,852 | 1,345 |
5355
- | \`progress\` | 29,235 | 11,153 | 9,999 | 3,006 | 939 | 761 |
5356
- | \`qr-code\` | 43,669 | 17,003 | 15,118 | 17,002 | 6,284 | 5,346 |
5357
- | \`quote\` | 23,088 | 9,112 | 8,040 | 1,209 | 488 | 387 |
5358
- | \`radio\` | 43,333 | 14,777 | 13,184 | 3,815 | 1,212 | 927 |
5359
- | \`rating\` | 51,593 | 17,779 | 15,868 | 8,057 | 2,439 | 1,810 |
5360
- | \`scatter-chart\` | 98,654 | 34,303 | 30,255 | 20,338 | 6,384 | 5,082 |
5361
- | \`scroll-area\` | 31,294 | 11,434 | 10,149 | 8,518 | 2,593 | 1,918 |
5362
- | \`select\` | 116,719 | 38,717 | 33,936 | 26,155 | 7,162 | 5,538 |
5363
- | \`skeleton\` | 22,900 | 8,871 | 7,876 | 991 | 380 | 238 |
5364
- | \`skip-link\` | 24,547 | 9,608 | 8,524 | 1,223 | 462 | 394 |
5365
- | \`slider\` | 54,642 | 18,411 | 16,524 | 13,623 | 3,852 | 3,036 |
5366
- | \`sparkline\` | 49,258 | 17,982 | 16,066 | 5,982 | 2,080 | 1,585 |
5367
- | \`spatial-bar-chart\` | 105,167 | 37,122 | 32,678 | 19,854 | 6,512 | 5,245 |
5368
- | \`spatial-heatmap\` | 117,089 | 39,972 | 35,099 | 31,736 | 9,634 | 7,832 |
5369
- | \`spatial-ribbon-chart\` | 104,288 | 36,728 | 32,377 | 20,791 | 6,921 | 5,711 |
5370
- | \`spatial-scatter-chart\` | 102,521 | 35,980 | 31,686 | 19,085 | 6,282 | 5,029 |
5371
- | \`spatial-surface-chart\` | 105,443 | 37,265 | 32,856 | 21,949 | 7,457 | 6,132 |
5372
- | \`spatial-treemap\` | 106,561 | 37,910 | 33,342 | 21,370 | 7,340 | 5,906 |
5373
- | \`speed-dial\` | 69,618 | 25,069 | 22,188 | 10,934 | 2,960 | 2,303 |
5374
- | \`splitter\` | 45,071 | 15,639 | 13,983 | 14,506 | 3,861 | 3,097 |
5375
- | \`stat\` | 26,285 | 10,056 | 8,959 | 2,322 | 758 | 663 |
5376
- | \`steps\` | 54,926 | 19,122 | 17,008 | 13,804 | 3,877 | 3,151 |
5377
- | \`switch\` | 40,096 | 13,832 | 12,333 | 1,679 | 617 | 440 |
5378
- | \`table\` | 119,434 | 37,421 | 32,554 | 45,149 | 12,313 | 9,988 |
5379
- | \`tabs\` | 47,080 | 16,201 | 14,414 | 10,491 | 2,858 | 2,153 |
5380
- | \`tag\` | 43,623 | 15,992 | 14,300 | 8,450 | 2,507 | 1,843 |
5381
- | \`textarea\` | 44,973 | 15,361 | 13,719 | 5,489 | 1,620 | 1,217 |
5382
- | \`time-input\` | 170,882 | 53,314 | 46,306 | 48,574 | 12,337 | 9,817 |
5383
- | \`time-picker\` | 101,126 | 32,099 | 28,232 | 33,987 | 9,210 | 7,320 |
5384
- | \`timeline\` | 32,429 | 12,280 | 11,015 | 4,086 | 1,190 | 870 |
5385
- | \`toast\` | 52,298 | 18,497 | 16,512 | 12,164 | 3,516 | 2,702 |
5386
- | \`toggle\` | 46,246 | 15,541 | 13,887 | 6,005 | 1,797 | 1,392 |
5387
- | \`toolbar\` | 31,817 | 11,859 | 10,566 | 5,156 | 1,635 | 1,183 |
5388
- | \`tooltip\` | 59,698 | 21,530 | 19,098 | 8,504 | 2,355 | 1,754 |
5389
- | \`tour\` | 85,264 | 29,314 | 25,877 | 20,091 | 5,516 | 4,361 |
5390
- | \`tree\` | 68,641 | 23,150 | 20,581 | 17,198 | 4,915 | 3,943 |
5391
- | \`trend\` | 30,937 | 12,023 | 10,748 | 3,590 | 1,095 | 855 |
5392
- | \`video\` | 143,863 | 45,087 | 39,331 | 66,787 | 16,899 | 14,022 |
5393
- | \`video-playlist\` | 128,994 | 41,833 | 36,735 | 42,860 | 11,196 | 9,182 |
5394
- | \`virtual-list\` | 64,382 | 21,913 | 19,490 | 23,393 | 7,161 | 5,755 |
5290
+ | \`accordion\` | 32,671 | 12,094 | 10,733 | 5,377 | 1,558 | 1,223 |
5291
+ | \`announcement\` | 37,661 | 13,708 | 12,261 | 4,700 | 1,372 | 1,069 |
5292
+ | \`app-header\` | 33,168 | 12,241 | 10,876 | 5,900 | 1,744 | 1,346 |
5293
+ | \`area-chart\` | 99,355 | 34,965 | 30,812 | 14,415 | 4,382 | 3,616 |
5294
+ | \`avatar\` | 31,887 | 12,152 | 10,894 | 3,999 | 1,220 | 994 |
5295
+ | \`badge\` | 28,118 | 10,943 | 9,778 | 2,960 | 875 | 742 |
5296
+ | \`bar-chart\` | 107,369 | 37,640 | 33,226 | 21,901 | 6,885 | 5,792 |
5297
+ | \`blockquote\` | 24,679 | 9,637 | 8,534 | 2,400 | 853 | 791 |
5298
+ | \`breadcrumbs\` | 37,419 | 14,327 | 12,786 | 7,381 | 2,378 | 1,839 |
5299
+ | \`button\` | 36,221 | 12,970 | 11,572 | 5,127 | 1,507 | 1,119 |
5300
+ | \`button-group\` | 28,214 | 10,616 | 9,417 | 4,923 | 1,479 | 1,048 |
5301
+ | \`callout\` | 36,284 | 13,987 | 12,429 | 2,884 | 966 | 667 |
5302
+ | \`canvas\` | 109,988 | 35,325 | 30,896 | 68,989 | 21,021 | 17,663 |
5303
+ | \`card\` | 24,397 | 9,311 | 8,258 | 2,090 | 609 | 414 |
5304
+ | \`carousel\` | 45,167 | 16,073 | 14,357 | 15,330 | 4,224 | 3,429 |
5305
+ | \`chat\` | 81,069 | 27,038 | 23,898 | 27,682 | 8,068 | 6,441 |
5306
+ | \`checkbox\` | 41,242 | 14,017 | 12,499 | 3,107 | 939 | 733 |
5307
+ | \`checkbox-group\` | 48,465 | 15,945 | 14,237 | 8,321 | 2,325 | 1,771 |
5308
+ | \`code\` | 20,869 | 8,248 | 7,310 | 138 | 55 | 91 |
5309
+ | \`code-block\` | 104,774 | 35,632 | 31,408 | 37,349 | 10,762 | 8,854 |
5310
+ | \`color-input\` | 143,744 | 45,822 | 39,965 | 55,780 | 14,213 | 11,830 |
5311
+ | \`color-picker\` | 105,363 | 33,633 | 29,451 | 47,900 | 12,658 | 10,525 |
5312
+ | \`combobox\` | 133,766 | 42,658 | 37,464 | 35,968 | 9,150 | 7,270 |
5313
+ | \`command\` | 101,170 | 32,144 | 28,259 | 30,351 | 8,155 | 6,543 |
5314
+ | \`copy-button\` | 82,225 | 28,296 | 25,012 | 18,756 | 5,036 | 3,976 |
5315
+ | \`data-table\` | 202,025 | 62,203 | 53,212 | 89,966 | 24,051 | 19,229 |
5316
+ | \`date-input\` | 143,049 | 45,174 | 39,695 | 38,666 | 9,514 | 7,669 |
5317
+ | \`date-picker\` | 63,093 | 21,513 | 19,286 | 20,720 | 5,624 | 4,549 |
5318
+ | \`description-list\` | 23,472 | 8,992 | 7,982 | 1,565 | 491 | 312 |
5319
+ | \`dialog\` | 39,175 | 13,971 | 12,445 | 5,948 | 1,750 | 1,361 |
5320
+ | \`divider\` | 23,564 | 9,143 | 8,084 | 1,414 | 468 | 290 |
5321
+ | \`donut-chart\` | 92,673 | 32,265 | 28,574 | 14,717 | 4,458 | 3,659 |
5322
+ | \`drawer\` | 43,812 | 15,483 | 13,811 | 7,798 | 2,288 | 1,812 |
5323
+ | \`drilldown\` | 43,527 | 15,251 | 13,602 | 9,709 | 2,688 | 2,127 |
5324
+ | \`empty\` | 25,007 | 9,577 | 8,495 | 1,976 | 615 | 514 |
5325
+ | \`file-input\` | 59,118 | 20,551 | 18,298 | 13,152 | 4,110 | 3,332 |
5326
+ | \`filter-input\` | 99,578 | 33,492 | 29,737 | 21,569 | 6,139 | 4,864 |
5327
+ | \`format-date\` | 31,209 | 11,674 | 10,454 | 4,474 | 1,258 | 922 |
5328
+ | \`graph\` | 76,986 | 25,233 | 22,351 | 23,180 | 6,735 | 5,588 |
5329
+ | \`heatmap\` | 101,735 | 34,690 | 30,621 | 19,071 | 5,563 | 4,485 |
5330
+ | \`icon\` | 84,375 | 28,941 | 24,780 | 59,477 | 20,470 | 16,556 |
5331
+ | \`icon-button\` | 36,332 | 12,999 | 11,592 | 5,236 | 1,537 | 1,070 |
5332
+ | \`image\` | 26,373 | 9,843 | 8,744 | 3,845 | 1,133 | 966 |
5333
+ | \`input\` | 47,049 | 16,179 | 14,344 | 7,005 | 2,218 | 1,560 |
5334
+ | \`kbd\` | 28,084 | 10,787 | 9,545 | 3,518 | 1,086 | 792 |
5335
+ | \`legend\` | 36,396 | 13,369 | 11,915 | 2,955 | 963 | 707 |
5336
+ | \`lightbox\` | 57,138 | 19,379 | 17,221 | 16,762 | 4,594 | 3,574 |
5337
+ | \`line-chart\` | 102,350 | 35,825 | 31,641 | 16,812 | 5,020 | 4,178 |
5338
+ | \`list\` | 62,949 | 21,721 | 19,340 | 15,258 | 4,364 | 3,453 |
5339
+ | \`listbox\` | 78,070 | 25,949 | 22,952 | 15,605 | 4,558 | 3,702 |
5340
+ | \`loader\` | 27,341 | 10,451 | 9,310 | 2,785 | 909 | 838 |
5341
+ | \`log\` | 80,937 | 27,698 | 24,547 | 37,582 | 11,600 | 9,885 |
5342
+ | \`map\` | 81,046 | 25,210 | 22,087 | 37,496 | 10,221 | 8,232 |
5343
+ | \`megamenu\` | 61,165 | 22,171 | 19,600 | 8,723 | 2,415 | 1,696 |
5344
+ | \`menu\` | 98,510 | 32,958 | 29,064 | 30,262 | 7,978 | 6,564 |
5345
+ | \`meter\` | 32,921 | 12,485 | 11,169 | 4,980 | 1,426 | 1,185 |
5346
+ | \`motion-toggle\` | 26,353 | 10,249 | 9,108 | 1,426 | 485 | 409 |
5347
+ | \`navigation\` | 33,861 | 12,731 | 11,315 | 3,364 | 1,123 | 853 |
5348
+ | \`notifications\` | 59,565 | 20,344 | 18,123 | 18,280 | 5,014 | 4,131 |
5349
+ | \`number-input\` | 57,629 | 19,359 | 17,254 | 13,579 | 3,610 | 2,851 |
5350
+ | \`object-inspector\` | 115,897 | 39,007 | 34,366 | 36,018 | 10,378 | 8,431 |
5351
+ | \`option\` | 27,049 | 9,971 | 8,857 | 4,522 | 1,163 | 868 |
5352
+ | \`outline\` | 34,611 | 12,984 | 11,534 | 7,888 | 2,551 | 1,880 |
5353
+ | \`pagination\` | 138,030 | 44,309 | 38,510 | 45,681 | 11,877 | 9,516 |
5354
+ | \`pin-input\` | 48,848 | 17,045 | 15,224 | 7,207 | 2,358 | 1,761 |
5355
+ | \`popover\` | 64,882 | 23,348 | 20,630 | 6,460 | 1,849 | 1,384 |
5356
+ | \`progress\` | 29,235 | 11,152 | 9,980 | 3,006 | 911 | 699 |
5357
+ | \`qr-code\` | 43,669 | 17,005 | 15,118 | 17,002 | 6,262 | 5,336 |
5358
+ | \`quote\` | 23,088 | 9,111 | 8,039 | 1,209 | 469 | 437 |
5359
+ | \`radio\` | 43,333 | 14,778 | 13,155 | 3,815 | 1,194 | 928 |
5360
+ | \`rating\` | 51,593 | 17,779 | 15,843 | 8,057 | 2,431 | 1,811 |
5361
+ | \`scatter-chart\` | 98,654 | 34,306 | 30,268 | 20,338 | 6,357 | 5,276 |
5362
+ | \`scroll-area\` | 31,294 | 11,433 | 10,149 | 8,518 | 2,565 | 2,112 |
5363
+ | \`select\` | 116,719 | 38,719 | 33,938 | 26,155 | 7,152 | 5,621 |
5364
+ | \`skeleton\` | 22,900 | 8,871 | 7,874 | 991 | 357 | 251 |
5365
+ | \`skip-link\` | 24,547 | 9,607 | 8,535 | 1,223 | 436 | 351 |
5366
+ | \`slider\` | 54,642 | 18,410 | 16,473 | 13,623 | 3,834 | 2,938 |
5367
+ | \`sparkline\` | 49,258 | 17,983 | 16,021 | 5,980 | 2,056 | 1,731 |
5368
+ | \`spatial-bar-chart\` | 105,167 | 37,124 | 32,657 | 19,854 | 6,506 | 5,327 |
5369
+ | \`spatial-heatmap\` | 117,089 | 39,972 | 35,195 | 31,738 | 9,608 | 7,970 |
5370
+ | \`spatial-ribbon-chart\` | 104,288 | 36,725 | 32,402 | 20,791 | 6,921 | 5,748 |
5371
+ | \`spatial-scatter-chart\` | 102,521 | 35,980 | 31,675 | 19,085 | 6,254 | 5,104 |
5372
+ | \`spatial-surface-chart\` | 105,443 | 37,265 | 32,832 | 21,949 | 7,454 | 6,208 |
5373
+ | \`spatial-treemap\` | 106,561 | 37,909 | 33,341 | 21,370 | 7,339 | 5,940 |
5374
+ | \`speed-dial\` | 69,618 | 25,072 | 22,188 | 10,934 | 2,947 | 2,313 |
5375
+ | \`splitter\` | 45,071 | 15,639 | 13,967 | 14,506 | 3,849 | 3,069 |
5376
+ | \`stat\` | 26,285 | 10,056 | 8,955 | 2,322 | 726 | 548 |
5377
+ | \`steps\` | 54,926 | 19,119 | 17,023 | 13,804 | 3,872 | 3,213 |
5378
+ | \`switch\` | 40,096 | 13,831 | 12,333 | 1,679 | 580 | 328 |
5379
+ | \`table\` | 119,434 | 37,421 | 32,590 | 45,149 | 12,294 | 10,099 |
5380
+ | \`tabs\` | 47,080 | 16,201 | 14,426 | 10,491 | 2,844 | 2,157 |
5381
+ | \`tag\` | 43,623 | 15,997 | 14,325 | 8,450 | 2,504 | 2,018 |
5382
+ | \`terminal\` | 71,467 | 23,680 | 20,852 | 30,239 | 8,332 | 6,765 |
5383
+ | \`textarea\` | 44,973 | 15,362 | 13,739 | 5,489 | 1,612 | 1,177 |
5384
+ | \`time-input\` | 170,882 | 53,314 | 46,296 | 48,574 | 12,288 | 9,892 |
5385
+ | \`time-picker\` | 101,126 | 32,100 | 28,228 | 33,987 | 9,180 | 7,342 |
5386
+ | \`timeline\` | 32,429 | 12,281 | 11,016 | 4,086 | 1,172 | 885 |
5387
+ | \`toast\` | 52,298 | 18,495 | 16,474 | 12,164 | 3,488 | 2,803 |
5388
+ | \`toggle\` | 46,246 | 15,538 | 13,827 | 6,005 | 1,792 | 1,366 |
5389
+ | \`toolbar\` | 31,928 | 11,893 | 10,591 | 5,267 | 1,646 | 1,305 |
5390
+ | \`tooltip\` | 59,698 | 21,530 | 19,094 | 8,504 | 2,362 | 1,899 |
5391
+ | \`tour\` | 85,264 | 29,312 | 25,904 | 20,091 | 5,495 | 4,376 |
5392
+ | \`tree\` | 68,641 | 23,148 | 20,593 | 17,198 | 4,875 | 3,942 |
5393
+ | \`trend\` | 30,937 | 12,024 | 10,725 | 3,590 | 1,081 | 913 |
5394
+ | \`video\` | 143,863 | 45,086 | 39,243 | 66,787 | 16,872 | 13,886 |
5395
+ | \`video-playlist\` | 128,994 | 41,833 | 36,721 | 42,860 | 11,159 | 9,199 |
5396
+ | \`virtual-list\` | 64,382 | 21,914 | 19,520 | 23,393 | 7,150 | 5,810 |
5395
5397
 
5396
5398
  ### Styled tier
5397
5399
 
@@ -5399,119 +5401,120 @@ The headless tier plus presentation. \`bun add @fusion.dev/helix\` installs this
5399
5401
 
5400
5402
  | Family | Alone raw | Alone gzip | Alone brotli | Added raw | Added gzip | Added brotli |
5401
5403
  |---|---|---|---|---|---|---|
5402
- | \`accordion\` | 36,104 | 12,942 | 11,494 | 8,794 | 2,422 | 1,890 |
5403
- | \`announcement\` | 42,276 | 14,774 | 13,216 | 9,296 | 2,447 | 1,882 |
5404
- | \`app-header\` | 38,326 | 13,450 | 11,973 | 11,045 | 2,963 | 2,310 |
5405
- | \`area-chart\` | 107,559 | 36,866 | 32,511 | 22,602 | 6,323 | 5,276 |
5406
- | \`aura\` | 59,567 | 20,253 | 17,956 | 31,767 | 9,657 | 8,191 |
5407
- | \`avatar\` | 34,890 | 12,911 | 11,563 | 6,987 | 1,977 | 1,645 |
5408
- | \`badge\` | 33,626 | 12,190 | 10,866 | 8,458 | 2,162 | 1,717 |
5409
- | \`bar-chart\` | 122,404 | 40,671 | 35,922 | 36,918 | 9,901 | 8,245 |
5410
- | \`blockquote\` | 26,905 | 10,186 | 9,000 | 4,610 | 1,410 | 1,197 |
5411
- | \`breadcrumbs\` | 44,356 | 15,535 | 13,940 | 14,306 | 3,647 | 3,036 |
5412
- | \`button\` | 42,729 | 14,402 | 12,816 | 11,617 | 2,943 | 2,248 |
5413
- | \`button-group\` | 31,709 | 11,295 | 10,031 | 8,408 | 2,217 | 1,623 |
5414
- | \`callout\` | 40,077 | 14,932 | 13,276 | 6,659 | 1,926 | 1,450 |
5415
- | \`canvas\` | 131,027 | 39,298 | 34,385 | 89,671 | 24,901 | 20,865 |
5416
- | \`card\` | 28,297 | 10,317 | 9,175 | 5,976 | 1,646 | 1,192 |
5417
- | \`carousel\` | 55,653 | 17,867 | 16,011 | 25,801 | 6,071 | 4,882 |
5418
- | \`chat\` | 96,362 | 29,759 | 26,398 | 42,968 | 10,845 | 8,877 |
5419
- | \`checkbox\` | 47,728 | 15,518 | 13,864 | 9,579 | 2,487 | 2,023 |
5420
- | \`checkbox-group\` | 55,688 | 17,587 | 15,650 | 15,535 | 3,998 | 3,141 |
5421
- | \`code\` | 21,726 | 8,561 | 7,605 | 976 | 387 | 288 |
5422
- | \`code-block\` | 129,247 | 39,457 | 34,868 | 61,803 | 14,550 | 12,162 |
5423
- | \`color-input\` | 186,215 | 52,107 | 45,496 | 98,238 | 20,729 | 17,288 |
5424
- | \`color-picker\` | 142,389 | 39,199 | 34,442 | 84,910 | 18,384 | 15,218 |
5425
- | \`combobox\` | 149,120 | 45,610 | 40,084 | 51,305 | 12,020 | 9,752 |
5426
- | \`command\` | 112,469 | 34,490 | 30,347 | 41,644 | 10,571 | 8,606 |
5427
- | \`copy-button\` | 94,256 | 30,467 | 26,950 | 30,769 | 7,266 | 5,817 |
5428
- | \`data-table\` | 232,690 | 67,606 | 57,944 | 120,614 | 29,571 | 23,964 |
5429
- | \`date-input\` | 164,353 | 48,935 | 42,969 | 59,950 | 13,135 | 10,915 |
5430
- | \`date-picker\` | 71,139 | 22,979 | 20,555 | 28,748 | 7,131 | 5,617 |
5431
- | \`description-list\` | 26,427 | 9,731 | 8,675 | 4,508 | 1,267 | 971 |
5432
- | \`dialog\` | 44,311 | 15,225 | 13,594 | 11,064 | 3,043 | 2,451 |
5433
- | \`divider\` | 25,863 | 9,772 | 8,637 | 3,697 | 1,116 | 942 |
5434
- | \`donut-chart\` | 102,652 | 34,419 | 30,424 | 24,673 | 6,680 | 5,535 |
5435
- | \`drawer\` | 49,642 | 16,870 | 15,055 | 13,612 | 3,740 | 2,936 |
5436
- | \`drilldown\` | 49,204 | 16,541 | 14,754 | 15,375 | 4,009 | 3,115 |
5437
- | \`empty\` | 26,316 | 10,056 | 8,903 | 3,267 | 1,086 | 868 |
5438
- | \`file-input\` | 70,648 | 22,941 | 20,391 | 24,668 | 6,538 | 5,412 |
5439
- | \`filter-input\` | 110,412 | 35,679 | 31,658 | 32,396 | 8,385 | 6,773 |
5440
- | \`flex\` | 26,312 | 9,424 | 8,374 | 4,761 | 1,036 | 821 |
5441
- | \`format-date\` | 31,463 | 11,789 | 10,583 | 4,712 | 1,380 | 1,031 |
5442
- | \`graph\` | 92,818 | 27,924 | 24,702 | 38,992 | 9,573 | 7,748 |
5443
- | \`grid\` | 27,762 | 10,137 | 9,023 | 5,655 | 1,454 | 1,216 |
5444
- | \`heatmap\` | 110,057 | 36,548 | 32,255 | 27,373 | 7,432 | 6,176 |
5445
- | \`icon\` | 85,551 | 29,192 | 25,026 | 60,473 | 20,655 | 16,547 |
5446
- | \`icon-button\` | 44,066 | 14,349 | 12,786 | 12,955 | 2,913 | 2,319 |
5447
- | \`image\` | 27,760 | 10,306 | 9,131 | 5,216 | 1,618 | 1,266 |
5448
- | \`input\` | 51,304 | 17,264 | 15,288 | 11,243 | 3,351 | 2,489 |
5449
- | \`kbd\` | 30,078 | 11,329 | 10,047 | 5,494 | 1,664 | 1,208 |
5450
- | \`legend\` | 41,634 | 14,661 | 13,023 | 8,065 | 2,240 | 1,737 |
5451
- | \`lightbox\` | 63,432 | 20,711 | 18,428 | 23,035 | 5,920 | 4,697 |
5452
- | \`line-chart\` | 113,713 | 38,278 | 33,800 | 28,159 | 7,543 | 6,253 |
5453
- | \`list\` | 69,295 | 23,266 | 20,793 | 21,585 | 5,923 | 4,803 |
5454
- | \`listbox\` | 82,511 | 27,062 | 23,942 | 20,034 | 5,671 | 4,387 |
5455
- | \`loader\` | 30,222 | 11,214 | 10,002 | 5,652 | 1,708 | 1,342 |
5456
- | \`log\` | 92,717 | 29,992 | 26,631 | 49,350 | 13,833 | 11,891 |
5457
- | \`map\` | 114,692 | 30,616 | 26,827 | 71,126 | 15,712 | 13,000 |
5458
- | \`megamenu\` | 66,134 | 23,308 | 20,618 | 13,673 | 3,606 | 2,736 |
5459
- | \`menu\` | 109,435 | 35,106 | 30,931 | 41,177 | 10,169 | 8,340 |
5460
- | \`meter\` | 39,093 | 13,830 | 12,405 | 11,136 | 2,819 | 2,365 |
5461
- | \`motion-toggle\` | 27,988 | 10,725 | 9,532 | 3,044 | 986 | 740 |
5462
- | \`navigation\` | 37,585 | 13,566 | 12,045 | 7,077 | 2,007 | 1,606 |
5463
- | \`notifications\` | 73,053 | 22,902 | 20,452 | 31,757 | 7,626 | 6,300 |
5464
- | \`number-input\` | 62,610 | 20,544 | 18,304 | 18,544 | 4,831 | 3,761 |
5465
- | \`object-inspector\` | 132,306 | 41,847 | 36,810 | 52,407 | 13,134 | 10,871 |
5466
- | \`option\` | 30,122 | 10,930 | 9,729 | 7,585 | 2,154 | 1,712 |
5467
- | \`orb\` | 36,885 | 14,019 | 12,487 | 10,014 | 3,686 | 3,126 |
5468
- | \`outline\` | 38,845 | 13,847 | 12,314 | 12,105 | 3,427 | 2,667 |
5469
- | \`pagination\` | 154,907 | 47,576 | 41,367 | 62,541 | 15,108 | 12,386 |
5470
- | \`pin-input\` | 52,228 | 17,955 | 16,035 | 10,570 | 3,302 | 2,568 |
5471
- | \`popover\` | 68,034 | 24,118 | 21,309 | 9,594 | 2,641 | 2,021 |
5472
- | \`progress\` | 36,415 | 12,815 | 11,459 | 10,169 | 2,608 | 2,255 |
5473
- | \`qr-code\` | 45,270 | 17,490 | 15,562 | 18,586 | 6,783 | 5,723 |
5474
- | \`quote\` | 23,646 | 9,303 | 8,221 | 1,750 | 697 | 611 |
5475
- | \`radio\` | 51,120 | 16,281 | 14,513 | 11,591 | 2,742 | 2,116 |
5476
- | \`rating\` | 55,527 | 19,005 | 16,938 | 11,973 | 3,666 | 2,857 |
5477
- | \`sandbox\` | 108,218 | 32,974 | 28,855 | 74,725 | 20,349 | 17,077 |
5478
- | \`scatter-chart\` | 108,028 | 36,473 | 32,170 | 29,693 | 8,583 | 7,005 |
5479
- | \`scroll-area\` | 36,301 | 12,384 | 11,044 | 13,508 | 3,569 | 2,862 |
5480
- | \`select\` | 125,846 | 40,630 | 35,662 | 35,267 | 9,117 | 7,201 |
5481
- | \`skeleton\` | 26,848 | 9,947 | 8,859 | 4,755 | 1,403 | 1,129 |
5482
- | \`skip-link\` | 26,118 | 10,115 | 8,948 | 2,778 | 961 | 727 |
5483
- | \`slider\` | 69,605 | 20,729 | 18,554 | 28,572 | 6,252 | 5,141 |
5484
- | \`sparkline\` | 54,716 | 19,331 | 17,289 | 11,422 | 3,437 | 2,815 |
5485
- | \`spatial-bar-chart\` | 114,232 | 39,173 | 34,473 | 28,899 | 8,554 | 6,991 |
5486
- | \`spatial-heatmap\` | 126,828 | 42,153 | 37,017 | 41,457 | 11,707 | 9,742 |
5487
- | \`spatial-ribbon-chart\` | 113,204 | 38,749 | 34,175 | 29,690 | 8,962 | 7,372 |
5488
- | \`spatial-scatter-chart\` | 111,501 | 37,967 | 33,342 | 28,039 | 8,233 | 6,710 |
5489
- | \`spatial-surface-chart\` | 113,878 | 39,172 | 34,508 | 30,366 | 9,349 | 7,849 |
5490
- | \`spatial-treemap\` | 115,578 | 39,956 | 35,155 | 30,367 | 9,373 | 7,745 |
5491
- | \`speed-dial\` | 76,667 | 26,452 | 23,477 | 17,966 | 4,366 | 3,498 |
5492
- | \`splitter\` | 51,121 | 16,689 | 14,957 | 20,542 | 4,916 | 4,035 |
5493
- | \`stat\` | 29,171 | 10,751 | 9,606 | 5,193 | 1,472 | 1,129 |
5494
- | \`steps\` | 69,006 | 21,901 | 19,478 | 27,872 | 6,743 | 5,557 |
5495
- | \`strands\` | 63,680 | 23,697 | 20,888 | 38,177 | 13,700 | 11,957 |
5496
- | \`switch\` | 44,449 | 14,978 | 13,362 | 6,021 | 1,770 | 1,267 |
5497
- | \`table\` | 136,974 | 40,483 | 35,291 | 62,692 | 15,345 | 12,667 |
5498
- | \`tabs\` | 56,031 | 18,048 | 16,068 | 19,434 | 4,726 | 3,848 |
5499
- | \`tag\` | 48,197 | 17,125 | 15,291 | 13,011 | 3,615 | 2,827 |
5500
- | \`text\` | 29,286 | 10,213 | 9,030 | 7,182 | 1,478 | 1,170 |
5501
- | \`textarea\` | 48,905 | 16,375 | 14,607 | 9,403 | 2,651 | 2,167 |
5502
- | \`time-input\` | 195,137 | 57,471 | 50,031 | 72,814 | 16,512 | 13,551 |
5503
- | \`time-picker\` | 113,325 | 34,508 | 30,445 | 46,180 | 11,559 | 9,388 |
5504
- | \`timeline\` | 39,321 | 13,741 | 12,307 | 10,973 | 2,694 | 2,182 |
5505
- | \`toast\` | 60,192 | 20,339 | 18,183 | 20,046 | 5,404 | 4,414 |
5506
- | \`toggle\` | 51,106 | 16,791 | 14,924 | 10,851 | 3,070 | 2,454 |
5507
- | \`toolbar\` | 34,496 | 12,352 | 10,989 | 7,820 | 2,142 | 1,661 |
5508
- | \`tooltip\` | 62,502 | 22,262 | 19,723 | 11,290 | 3,106 | 2,499 |
5509
- | \`tour\` | 95,356 | 31,307 | 27,682 | 30,161 | 7,569 | 6,132 |
5510
- | \`tree\` | 77,329 | 25,058 | 22,338 | 25,871 | 6,853 | 5,682 |
5511
- | \`trend\` | 32,854 | 12,575 | 11,202 | 5,487 | 1,650 | 1,185 |
5512
- | \`video\` | 164,366 | 48,811 | 42,542 | 87,272 | 20,644 | 17,140 |
5513
- | \`video-playlist\` | 144,942 | 44,812 | 39,353 | 58,789 | 14,036 | 11,719 |
5514
- | \`virtual-list\` | 66,376 | 22,417 | 19,953 | 25,370 | 7,669 | 6,422 |
5404
+ | \`accordion\` | 36,104 | 12,946 | 11,493 | 8,794 | 2,416 | 1,908 |
5405
+ | \`announcement\` | 42,276 | 14,774 | 13,229 | 9,296 | 2,445 | 1,966 |
5406
+ | \`app-header\` | 38,326 | 13,449 | 11,970 | 11,045 | 2,958 | 2,506 |
5407
+ | \`area-chart\` | 107,559 | 36,864 | 32,535 | 22,602 | 6,329 | 5,149 |
5408
+ | \`aura\` | 59,567 | 20,253 | 17,948 | 31,765 | 9,603 | 8,230 |
5409
+ | \`avatar\` | 34,890 | 12,911 | 11,528 | 6,987 | 1,972 | 1,598 |
5410
+ | \`badge\` | 33,626 | 12,189 | 10,864 | 8,456 | 2,141 | 1,689 |
5411
+ | \`bar-chart\` | 122,404 | 40,670 | 35,879 | 36,918 | 9,900 | 8,408 |
5412
+ | \`blockquote\` | 26,905 | 10,186 | 9,009 | 4,610 | 1,396 | 1,193 |
5413
+ | \`breadcrumbs\` | 44,356 | 15,533 | 13,888 | 14,306 | 3,624 | 3,082 |
5414
+ | \`button\` | 42,729 | 14,402 | 12,850 | 11,617 | 2,951 | 2,411 |
5415
+ | \`button-group\` | 31,709 | 11,294 | 10,051 | 8,406 | 2,192 | 1,752 |
5416
+ | \`callout\` | 40,077 | 14,934 | 13,281 | 6,659 | 1,921 | 1,490 |
5417
+ | \`canvas\` | 131,027 | 39,298 | 34,339 | 89,671 | 24,909 | 21,002 |
5418
+ | \`card\` | 28,297 | 10,317 | 9,174 | 5,976 | 1,616 | 1,282 |
5419
+ | \`carousel\` | 55,653 | 17,867 | 16,026 | 25,801 | 6,075 | 4,977 |
5420
+ | \`chat\` | 96,362 | 29,761 | 26,363 | 42,968 | 10,824 | 8,851 |
5421
+ | \`checkbox\` | 47,728 | 15,519 | 13,814 | 9,579 | 2,460 | 1,917 |
5422
+ | \`checkbox-group\` | 55,688 | 17,587 | 15,677 | 15,535 | 3,997 | 3,145 |
5423
+ | \`code\` | 21,726 | 8,560 | 7,581 | 976 | 365 | 354 |
5424
+ | \`code-block\` | 129,247 | 39,452 | 34,803 | 61,803 | 14,544 | 12,361 |
5425
+ | \`color-input\` | 186,215 | 52,093 | 45,474 | 98,238 | 20,714 | 17,319 |
5426
+ | \`color-picker\` | 142,389 | 39,198 | 34,433 | 84,910 | 18,385 | 15,358 |
5427
+ | \`combobox\` | 149,120 | 45,609 | 40,052 | 51,305 | 12,010 | 9,886 |
5428
+ | \`command\` | 112,469 | 34,492 | 30,359 | 41,644 | 10,562 | 8,671 |
5429
+ | \`copy-button\` | 94,256 | 30,463 | 26,990 | 30,769 | 7,264 | 5,884 |
5430
+ | \`data-table\` | 232,690 | 67,608 | 57,838 | 120,614 | 29,536 | 23,990 |
5431
+ | \`date-input\` | 164,353 | 48,938 | 43,022 | 59,950 | 13,113 | 10,999 |
5432
+ | \`date-picker\` | 71,139 | 22,979 | 20,560 | 28,748 | 7,071 | 5,748 |
5433
+ | \`description-list\` | 26,427 | 9,731 | 8,674 | 4,508 | 1,259 | 1,074 |
5434
+ | \`dialog\` | 44,311 | 15,228 | 13,600 | 11,064 | 3,036 | 2,546 |
5435
+ | \`divider\` | 25,863 | 9,771 | 8,637 | 3,697 | 1,110 | 959 |
5436
+ | \`donut-chart\` | 102,652 | 34,415 | 30,413 | 24,673 | 6,674 | 5,474 |
5437
+ | \`drawer\` | 49,642 | 16,868 | 15,045 | 13,612 | 3,679 | 3,024 |
5438
+ | \`drilldown\` | 49,204 | 16,543 | 14,750 | 15,375 | 3,987 | 3,148 |
5439
+ | \`empty\` | 26,316 | 10,056 | 8,904 | 3,267 | 1,084 | 853 |
5440
+ | \`file-input\` | 70,648 | 22,940 | 20,402 | 24,668 | 6,517 | 5,314 |
5441
+ | \`filter-input\` | 110,412 | 35,682 | 31,633 | 32,396 | 8,349 | 6,810 |
5442
+ | \`flex\` | 26,312 | 9,424 | 8,375 | 4,761 | 1,007 | 816 |
5443
+ | \`format-date\` | 31,463 | 11,789 | 10,568 | 4,712 | 1,358 | 1,044 |
5444
+ | \`graph\` | 92,818 | 27,924 | 24,582 | 38,992 | 9,536 | 7,818 |
5445
+ | \`grid\` | 27,762 | 10,136 | 8,993 | 5,653 | 1,442 | 1,279 |
5446
+ | \`heatmap\` | 110,057 | 36,551 | 32,235 | 27,373 | 7,433 | 6,141 |
5447
+ | \`icon\` | 86,410 | 29,544 | 25,346 | 61,332 | 21,022 | 17,047 |
5448
+ | \`icon-button\` | 44,066 | 14,348 | 12,789 | 12,955 | 2,901 | 2,279 |
5449
+ | \`image\` | 27,760 | 10,306 | 9,128 | 5,214 | 1,587 | 1,229 |
5450
+ | \`input\` | 51,304 | 17,264 | 15,257 | 11,243 | 3,332 | 2,503 |
5451
+ | \`kbd\` | 30,078 | 11,327 | 10,002 | 5,494 | 1,642 | 1,395 |
5452
+ | \`legend\` | 41,634 | 14,661 | 13,022 | 8,065 | 2,234 | 1,742 |
5453
+ | \`lightbox\` | 63,432 | 20,711 | 18,435 | 23,037 | 5,928 | 4,781 |
5454
+ | \`line-chart\` | 113,713 | 38,275 | 33,788 | 28,159 | 7,544 | 6,213 |
5455
+ | \`list\` | 69,295 | 23,264 | 20,709 | 21,585 | 5,865 | 4,846 |
5456
+ | \`listbox\` | 82,511 | 27,060 | 23,925 | 20,034 | 5,672 | 4,460 |
5457
+ | \`loader\` | 30,222 | 11,214 | 10,000 | 5,652 | 1,689 | 1,391 |
5458
+ | \`log\` | 92,972 | 30,033 | 26,625 | 49,605 | 13,886 | 11,925 |
5459
+ | \`map\` | 114,692 | 30,616 | 26,911 | 71,126 | 15,681 | 12,962 |
5460
+ | \`megamenu\` | 66,134 | 23,306 | 20,647 | 13,673 | 3,602 | 2,759 |
5461
+ | \`menu\` | 109,435 | 35,105 | 30,951 | 41,177 | 10,159 | 8,404 |
5462
+ | \`meter\` | 39,093 | 13,832 | 12,348 | 11,136 | 2,809 | 2,384 |
5463
+ | \`motion-toggle\` | 27,988 | 10,726 | 9,544 | 3,044 | 959 | 707 |
5464
+ | \`navigation\` | 37,585 | 13,566 | 12,044 | 7,075 | 1,981 | 1,573 |
5465
+ | \`notifications\` | 73,053 | 22,904 | 20,449 | 31,757 | 7,612 | 6,265 |
5466
+ | \`number-input\` | 62,610 | 20,545 | 18,301 | 18,544 | 4,821 | 3,758 |
5467
+ | \`object-inspector\` | 132,306 | 41,847 | 36,846 | 52,407 | 13,098 | 10,906 |
5468
+ | \`option\` | 30,122 | 10,929 | 9,712 | 7,585 | 2,133 | 1,790 |
5469
+ | \`orb\` | 36,885 | 14,019 | 12,487 | 10,016 | 3,707 | 3,177 |
5470
+ | \`outline\` | 38,845 | 13,846 | 12,301 | 12,105 | 3,440 | 2,893 |
5471
+ | \`pagination\` | 154,907 | 47,575 | 41,364 | 62,541 | 15,085 | 12,496 |
5472
+ | \`pin-input\` | 52,228 | 17,953 | 16,004 | 10,570 | 3,276 | 2,567 |
5473
+ | \`popover\` | 68,034 | 24,115 | 21,386 | 9,594 | 2,630 | 2,102 |
5474
+ | \`progress\` | 36,415 | 12,815 | 11,483 | 10,169 | 2,593 | 2,218 |
5475
+ | \`qr-code\` | 45,270 | 17,490 | 15,584 | 18,586 | 6,747 | 5,751 |
5476
+ | \`quote\` | 23,646 | 9,303 | 8,221 | 1,750 | 667 | 512 |
5477
+ | \`radio\` | 51,120 | 16,284 | 14,491 | 11,591 | 2,733 | 2,180 |
5478
+ | \`rating\` | 55,527 | 19,005 | 16,927 | 11,973 | 3,663 | 2,900 |
5479
+ | \`sandbox\` | 108,218 | 32,975 | 28,892 | 74,725 | 20,337 | 17,089 |
5480
+ | \`scatter-chart\` | 108,028 | 36,474 | 32,155 | 29,693 | 8,555 | 6,997 |
5481
+ | \`scroll-area\` | 36,301 | 12,383 | 11,026 | 13,508 | 3,526 | 2,845 |
5482
+ | \`select\` | 125,846 | 40,635 | 35,644 | 35,267 | 9,098 | 7,292 |
5483
+ | \`skeleton\` | 26,848 | 9,947 | 8,858 | 4,755 | 1,362 | 1,107 |
5484
+ | \`skip-link\` | 26,118 | 10,114 | 8,973 | 2,778 | 933 | 742 |
5485
+ | \`slider\` | 69,605 | 20,727 | 18,561 | 28,572 | 6,231 | 5,058 |
5486
+ | \`sparkline\` | 54,716 | 19,332 | 17,251 | 11,420 | 3,429 | 2,883 |
5487
+ | \`spatial-bar-chart\` | 114,232 | 39,177 | 34,554 | 28,899 | 8,569 | 7,152 |
5488
+ | \`spatial-heatmap\` | 126,828 | 42,151 | 37,057 | 41,457 | 11,708 | 9,722 |
5489
+ | \`spatial-ribbon-chart\` | 113,204 | 38,746 | 34,111 | 29,690 | 8,962 | 7,482 |
5490
+ | \`spatial-scatter-chart\` | 111,501 | 37,966 | 33,427 | 28,039 | 8,229 | 6,793 |
5491
+ | \`spatial-surface-chart\` | 113,878 | 39,176 | 34,564 | 30,366 | 9,355 | 7,849 |
5492
+ | \`spatial-treemap\` | 115,580 | 39,960 | 35,142 | 30,367 | 9,371 | 7,882 |
5493
+ | \`speed-dial\` | 76,667 | 26,447 | 23,479 | 17,966 | 4,352 | 3,553 |
5494
+ | \`splitter\` | 51,121 | 16,689 | 14,958 | 20,542 | 4,919 | 4,024 |
5495
+ | \`stat\` | 29,171 | 10,751 | 9,607 | 5,193 | 1,464 | 1,161 |
5496
+ | \`steps\` | 69,006 | 21,902 | 19,511 | 27,872 | 6,706 | 5,584 |
5497
+ | \`strands\` | 63,680 | 23,700 | 20,906 | 38,177 | 13,675 | 11,897 |
5498
+ | \`switch\` | 44,449 | 14,979 | 13,332 | 6,021 | 1,764 | 1,274 |
5499
+ | \`table\` | 136,974 | 40,482 | 35,192 | 62,692 | 15,341 | 12,836 |
5500
+ | \`tabs\` | 56,031 | 18,046 | 16,086 | 19,434 | 4,722 | 3,889 |
5501
+ | \`tag\` | 48,197 | 17,125 | 15,310 | 13,011 | 3,602 | 2,851 |
5502
+ | \`terminal\` | 96,310 | 27,266 | 24,053 | 55,074 | 12,010 | 9,924 |
5503
+ | \`text\` | 29,286 | 10,212 | 9,014 | 7,182 | 1,462 | 1,170 |
5504
+ | \`textarea\` | 48,905 | 16,375 | 14,608 | 9,403 | 2,632 | 2,089 |
5505
+ | \`time-input\` | 195,137 | 57,469 | 50,040 | 72,814 | 16,486 | 13,672 |
5506
+ | \`time-picker\` | 113,325 | 34,509 | 30,370 | 46,180 | 11,545 | 9,441 |
5507
+ | \`timeline\` | 39,321 | 13,742 | 12,310 | 10,973 | 2,660 | 2,171 |
5508
+ | \`toast\` | 60,192 | 20,340 | 18,154 | 20,046 | 5,371 | 4,349 |
5509
+ | \`toggle\` | 51,106 | 16,788 | 14,913 | 10,851 | 3,062 | 2,407 |
5510
+ | \`toolbar\` | 34,607 | 12,386 | 11,016 | 7,931 | 2,138 | 1,722 |
5511
+ | \`tooltip\` | 62,502 | 22,264 | 19,787 | 11,290 | 3,098 | 2,516 |
5512
+ | \`tour\` | 95,356 | 31,302 | 27,727 | 30,161 | 7,570 | 6,170 |
5513
+ | \`tree\` | 77,329 | 25,057 | 22,299 | 25,871 | 6,844 | 5,730 |
5514
+ | \`trend\` | 32,854 | 12,576 | 11,211 | 5,487 | 1,631 | 1,299 |
5515
+ | \`video\` | 164,366 | 48,824 | 42,602 | 87,272 | 20,643 | 17,204 |
5516
+ | \`video-playlist\` | 144,942 | 44,815 | 39,295 | 58,789 | 13,995 | 11,786 |
5517
+ | \`virtual-list\` | 66,376 | 22,417 | 20,005 | 25,370 | 7,654 | 6,326 |
5515
5518
 
5516
5519
  ## What an install adds to \`node_modules\`
5517
5520
 
@@ -5524,12 +5527,12 @@ without its whitespace, and the sizes count each one that way.
5524
5527
 
5525
5528
  | Package | Unpacked | Files | Source maps stripped | Runtime dependencies |
5526
5529
  |---|---|---|---|---|
5527
- | \`@fusion.dev/helix-core\` | 2,192,783 | 587 | 791,390 | \`@floating-ui/dom\`, \`@fusion.dev/helix-icons\`, \`tslib\` |
5528
- | \`@fusion.dev/helix-headless\` | 23,982,207 | 772 | 2,535,098 | \`@fusion.dev/helix-core\`, \`@fusion.dev/helix-icons\`, \`tslib\`, \`uqr\` |
5529
- | \`@fusion.dev/helix-icons\` | 152,695 | 21 | 49,995 | \`svgo\` |
5530
- | \`@fusion.dev/helix-styles\` | 122,338 | 6 | 0 | none |
5530
+ | \`@fusion.dev/helix-core\` | 2,209,739 | 599 | 796,698 | \`@floating-ui/dom\`, \`@fusion.dev/helix-icons\`, \`tslib\` |
5531
+ | \`@fusion.dev/helix-headless\` | 24,213,495 | 778 | 2,564,547 | \`@fusion.dev/helix-core\`, \`@fusion.dev/helix-icons\`, \`tslib\`, \`uqr\` |
5532
+ | \`@fusion.dev/helix-icons\` | 154,507 | 21 | 50,303 | \`svgo\` |
5533
+ | \`@fusion.dev/helix-styles\` | 122,391 | 6 | 0 | none |
5531
5534
  | \`@fusion.dev/helix-theme\` | 453,157 | 8 | 6,257 | none |
5532
- | \`@fusion.dev/helix\` | 24,619,675 | 1,023 | 566,915 | \`@fusion.dev/helix-core\`, \`@fusion.dev/helix-headless\`, \`@fusion.dev/helix-styles\`, \`tslib\` |
5535
+ | \`@fusion.dev/helix\` | 24,834,707 | 1,029 | 569,278 | \`@fusion.dev/helix-core\`, \`@fusion.dev/helix-headless\`, \`@fusion.dev/helix-styles\`, \`tslib\` |
5533
5536
 
5534
5537
  ## Not measured yet
5535
5538
 
@@ -8347,6 +8350,429 @@ A declared \`value\`, \`open\`, \`checked\`, or \`active\` is a seed. The elemen
8347
8350
  with that value and then applies its own changes. To refuse a change, cancel the
8348
8351
  matching \`helix-before-*\` event. Skipping a state update does not refuse it. See
8349
8352
  [State and control](./state-and-control).
8353
+ `,
8354
+ terminals: `---
8355
+ description: Add a terminal that runs your own shell or process to your site, styled with your theme and drawn by xterm.js.
8356
+ section: Essentials
8357
+ title: Terminals
8358
+ ---
8359
+
8360
+ # Terminals
8361
+
8362
+ Helix Terminal puts a frame around a terminal drawn by xterm.js or an emulator
8363
+ of your own. The frame adds a header with the terminal's name and controls, a
8364
+ find bar, and a status line for a process that exited. \`@fusion.dev/helix-terminal\`
8365
+ connects the frame to the emulator and themes it from your tokens. Helix does
8366
+ not start processes. You connect the frame to yours, such as a pseudo-terminal
8367
+ on your server or in a desktop app.
8368
+
8369
+ ## Add a terminal
8370
+
8371
+ Install Helix, the terminal connector, xterm.js, and the xterm.js addons you
8372
+ want:
8373
+
8374
+ \`\`\`sh
8375
+ bun add @fusion.dev/helix @fusion.dev/helix-terminal @xterm/xterm @xterm/addon-fit @xterm/addon-search @xterm/addon-web-links
8376
+ \`\`\`
8377
+
8378
+ Add the frame and an element for xterm.js to draw in:
8379
+
8380
+ \`\`\`html
8381
+ <helix-terminal label="~/project">
8382
+ <div id="terminal"></div>
8383
+ </helix-terminal>
8384
+ \`\`\`
8385
+
8386
+ Create the terminal in your theme, open it in the frame, then connect the two:
8387
+
8388
+ \`\`\`js
8389
+ import '@fusion.dev/helix/terminal'
8390
+ import '@xterm/xterm/css/xterm.css'
8391
+ import { connectTerminal, terminalThemeReady } from '@fusion.dev/helix-terminal'
8392
+ import { xtermDriver, xtermOptions } from '@fusion.dev/helix-terminal/xterm'
8393
+ import { FitAddon } from '@xterm/addon-fit'
8394
+ import { SearchAddon } from '@xterm/addon-search'
8395
+ import { WebLinksAddon } from '@xterm/addon-web-links'
8396
+ import { Terminal } from '@xterm/xterm'
8397
+
8398
+ const frame = document.querySelector('helix-terminal')
8399
+ const terminal = new Terminal(xtermOptions(await terminalThemeReady(frame)))
8400
+ terminal.open(document.getElementById('terminal'))
8401
+
8402
+ const connection = connectTerminal(
8403
+ frame,
8404
+ xtermDriver(terminal, {
8405
+ fit: new FitAddon(),
8406
+ search: new SearchAddon(),
8407
+ webLinks: WebLinksAddon,
8408
+ }),
8409
+ )
8410
+
8411
+ // Later, when the terminal goes away:
8412
+ connection.disconnect()
8413
+ terminal.dispose()
8414
+ \`\`\`
8415
+
8416
+ \`terminalThemeReady\` waits until your tokens can be read and the monospaced
8417
+ face has loaded. xterm.js measures its cells in the face it opens with, so a
8418
+ terminal created before the face loads keeps the fallback face's cell size.
8419
+
8420
+ Pass each addon new. The driver loads them, so do not load them yourself.
8421
+
8422
+ ## Connect a process
8423
+
8424
+ The frame takes the process's output and sends what the reader types and the
8425
+ size of the grid. This example connects a pseudo-terminal on your server over
8426
+ a WebSocket:
8427
+
8428
+ \`\`\`js
8429
+ const socket = new WebSocket('wss://example.com/pty')
8430
+ socket.binaryType = 'arraybuffer'
8431
+
8432
+ // The process's output, as the bytes it wrote.
8433
+ socket.addEventListener('message', (event) => frame.write(new Uint8Array(event.data)))
8434
+
8435
+ // What the reader types and pastes, encoded for the program.
8436
+ frame.addEventListener('helix-terminal-input', (event) => {
8437
+ socket.send(JSON.stringify({ input: event.detail.data }))
8438
+ })
8439
+
8440
+ // The grid's size, which the pseudo-terminal takes as rows and columns.
8441
+ frame.addEventListener('helix-terminal-resize', (event) => {
8442
+ const { columns, rows } = event.detail
8443
+ socket.send(JSON.stringify({ columns, rows }))
8444
+ })
8445
+ \`\`\`
8446
+
8447
+ In a Tauri app, a command writes input to the pseudo-terminal and an event
8448
+ carries its output back. The frame takes the same three calls.
8449
+
8450
+ - \`write(data)\` takes a string or a \`Uint8Array\` of UTF-8. Output written
8451
+ before \`connectTerminal\` runs is held and written first, so the process can
8452
+ start before xterm.js loads.
8453
+ - \`helix-terminal-input\` carries \`data\` and \`binary\`. \`binary\` is \`true\` for
8454
+ some mouse reports, whose characters are each one byte: write them as bytes
8455
+ with \`Uint8Array.from(data, (character) => character.charCodeAt(0))\`.
8456
+ - \`helix-terminal-resize\` carries \`columns\` and \`rows\`, and \`width\` and
8457
+ \`height\` in CSS pixels, which a pseudo-terminal's size also takes. It is sent
8458
+ once when the frame connects and again whenever the grid changes size.
8459
+ - \`paste(text)\` inputs text as a paste does. It arrives as
8460
+ \`helix-terminal-input\`, wrapped in the bracketed paste codes when the program
8461
+ asked for them.
8462
+
8463
+ ### Keep up with a fast process
8464
+
8465
+ \`write()\` returns a promise that resolves once xterm.js has parsed the output.
8466
+ A process can write faster than a terminal draws, so pause it while too much
8467
+ is waiting:
8468
+
8469
+ \`\`\`js
8470
+ let waiting = 0
8471
+
8472
+ pty.onData(async (chunk) => {
8473
+ waiting += chunk.length
8474
+ if (waiting > 1_000_000) {
8475
+ pty.pause()
8476
+ }
8477
+ await frame.write(chunk)
8478
+ waiting -= chunk.length
8479
+ if (waiting < 100_000) {
8480
+ pty.resume()
8481
+ }
8482
+ })
8483
+ \`\`\`
8484
+
8485
+ ### When the process exits
8486
+
8487
+ Set \`exit-code\` when the process exits. The status line says how it exited,
8488
+ the frame stops sending input, and a Restart button appears. Restart sends
8489
+ \`helix-terminal-restart\`. Start a new process, clear \`exitCode\`, and write the
8490
+ new output:
8491
+
8492
+ Put buttons of your own beside Restart in the \`exit-actions\` slot, such as one
8493
+ that opens the whole log. They show once the process exits.
8494
+
8495
+ \`\`\`js
8496
+ pty.onExit((code) => {
8497
+ frame.exitCode = code
8498
+ })
8499
+
8500
+ frame.addEventListener('helix-terminal-restart', () => {
8501
+ frame.exitCode = undefined
8502
+ frame.reset()
8503
+ pty = start()
8504
+ })
8505
+ \`\`\`
8506
+
8507
+ ## What the connector does
8508
+
8509
+ \`connectTerminal\` links the frame to the emulator:
8510
+
8511
+ - The frame's output reaches the emulator, and the reader's input reaches the
8512
+ frame.
8513
+ - The grid fits the frame and fits again when the frame changes size. Set
8514
+ \`columns\` and \`rows\` on the frame for a grid of a fixed size.
8515
+ - The emulator is themed from your tokens, and themed again when your theme or
8516
+ color mode changes.
8517
+ - Every cell's text keeps a contrast of 4.5:1 against its ground, so a color a
8518
+ program chose stays readable on your theme. Pass \`{ contrast: 7 }\` for a
8519
+ higher floor, or \`{ contrast: 1 }\` to draw every color as the program wrote
8520
+ it.
8521
+ - The cursor stops blinking and scrolling stops animating when a reader has
8522
+ asked for reduced motion.
8523
+ - \`connection.fit()\` fits the grid again, for a page that resized the frame in
8524
+ a way the connector cannot see.
8525
+ - \`connection.disconnect()\` puts back everything \`connectTerminal\` changed.
8526
+
8527
+ Use \`xtermDriver(terminal, addons)\` for xterm.js 6. xterm.js is not bundled
8528
+ with Helix, so you can use the version you already have.
8529
+
8530
+ ## Use other xterm.js addons
8531
+
8532
+ You create the xterm.js terminal, so you load any addon on it the way
8533
+ xterm.js describes, before or after you connect. This loads the WebGL renderer
8534
+ and the Unicode 11 character widths:
8535
+
8536
+ \`\`\`js
8537
+ import { Unicode11Addon } from '@xterm/addon-unicode11'
8538
+ import { WebglAddon } from '@xterm/addon-webgl'
8539
+
8540
+ const terminal = new Terminal({
8541
+ ...xtermOptions(await terminalThemeReady(frame)),
8542
+ allowProposedApi: true,
8543
+ })
8544
+ terminal.open(document.getElementById('terminal'))
8545
+ terminal.loadAddon(new WebglAddon())
8546
+ terminal.loadAddon(new Unicode11Addon())
8547
+ terminal.unicode.activeVersion = '11'
8548
+ \`\`\`
8549
+
8550
+ The connector sets the theme, the face, and its options on the terminal
8551
+ itself, so an addon such as the WebGL renderer draws in your theme and keeps
8552
+ the contrast floor.
8553
+
8554
+ - **Fit, search, and web links go to the driver.** Pass them to \`xtermDriver\`
8555
+ unloaded, and the driver loads them: an addon loaded twice breaks. They are
8556
+ also what draws the frame's find bar and sends \`helix-terminal-link\`. With a
8557
+ search addon of your own, the frame draws no Find control, and with a web
8558
+ links addon of your own, a link it finds skips the event.
8559
+ - **Some addons need xterm.js's proposed API.** xterm.js refuses its Unicode
8560
+ handling, decorations, markers, and character joiners until
8561
+ \`allowProposedApi\` is on, and the Unicode 11 addon uses the first of these.
8562
+ The driver turns the option on while it holds a search addon and puts it
8563
+ back as it was on disconnect, so set it when you create the terminal for any
8564
+ other addon that needs it.
8565
+ - **The connection owns the link handler.** While connected, the driver sets
8566
+ xterm.js's \`linkHandler\` so every link reaches \`helix-terminal-link\`, and it
8567
+ puts yours back on disconnect. Listen for the event to handle a link.
8568
+ - **The key handler stays yours.** The frame takes its own keys before xterm.js
8569
+ sees them, so \`attachCustomKeyEventHandler\` is free for keys of your own.
8570
+
8571
+ ## Style the terminal with your theme
8572
+
8573
+ The frame reads each color from a custom property, and the connector draws
8574
+ the terminal in it. The styled frame sets every one from your tokens. Set one
8575
+ on the terminal to choose a color yourself:
8576
+
8577
+ \`\`\`css
8578
+ helix-terminal {
8579
+ --terminal-ansi-blue: #3b82f6;
8580
+ --terminal-cursor-color: var(--helix-color-accent);
8581
+ }
8582
+ \`\`\`
8583
+
8584
+ | Property | Default | Draws |
8585
+ |---|---|---|
8586
+ | \`--terminal-active-match-background-color\` | Warning, mixed with the ground | The current match of a search |
8587
+ | \`--terminal-active-match-border-color\` | \`--helix-color-warning\` | The edge of the current match |
8588
+ | \`--terminal-ansi-black\` | \`--helix-color-foreground\` in light, \`--helix-color-border\` in dark | ANSI black |
8589
+ | \`--terminal-ansi-blue\` | \`--helix-color-info\` | ANSI blue |
8590
+ | \`--terminal-ansi-cyan\` | Info mixed with success | ANSI cyan |
8591
+ | \`--terminal-ansi-green\` | \`--helix-color-success\` | ANSI green |
8592
+ | \`--terminal-ansi-magenta\` | \`--helix-color-syntax-callable\` | ANSI magenta |
8593
+ | \`--terminal-ansi-red\` | \`--helix-color-danger\` | ANSI red |
8594
+ | \`--terminal-ansi-white\` | \`--helix-color-foreground-subtle\` in light, between muted and the foreground in dark | ANSI white |
8595
+ | \`--terminal-ansi-yellow\` | \`--helix-color-warning\` | ANSI yellow |
8596
+ | \`--terminal-background-color\` | \`--helix-color-background\` | The ground |
8597
+ | \`--terminal-color\` | \`--helix-color-foreground\` | Text where the program sets no color |
8598
+ | \`--terminal-cursor-color\` | \`--helix-color-primary\` | The cursor |
8599
+ | \`--terminal-match-background-color\` | Warning, mixed more quietly with the ground | Every other match of a search |
8600
+ | \`--terminal-scrollbar-thumb-color\` | \`--helix-scrollbar-thumb-color\` | The scrollbar |
8601
+ | \`--terminal-selection-background-color\` | Primary at 30% | Selected text |
8602
+
8603
+ Each bright color has a property of its own, such as \`--terminal-ansi-bright-red\`,
8604
+ and defaults to its color mixed a quarter of the way to \`--helix-color-foreground\`,
8605
+ so it is lighter in dark mode and darker in light. Set a color alone and its
8606
+ bright form follows it. The bright gray, \`--terminal-ansi-bright-black\`,
8607
+ defaults to \`--helix-color-foreground-muted\`, and bright white to
8608
+ \`--helix-color-border\` in light and \`--helix-color-foreground\` in dark.
8609
+
8610
+ On the headless tier, \`helix-headless-terminal\` sets none of them. Set the
8611
+ ones you want, and xterm.js keeps its own color for the rest.
8612
+
8613
+ The colors share Log's hues, so a program's output reads the same in a log and
8614
+ in a terminal side by side. The four grays keep their order from dark to light
8615
+ in each color mode: a program that fills a panel with black expects it to be
8616
+ dark. Text a program writes in a gray that is faint against your ground is
8617
+ lifted to the contrast floor.
8618
+
8619
+ The grid is drawn in the viewport's face, which the styled frame sets from
8620
+ \`--terminal-font-family\`, the monospaced face by default, and
8621
+ \`--terminal-font-size\`, the small text step. It also takes
8622
+ \`--terminal-block-size\`, \`--terminal-border-color\`,
8623
+ \`--terminal-header-background-color\`, \`--terminal-padding\`, and
8624
+ \`--terminal-radius\`. The [Terminal reference](/helix/components/terminal) lists
8625
+ what each one draws.
8626
+
8627
+ ## Show a command's output
8628
+
8629
+ Set \`readonly\` to show output that takes no input, such as a command an agent
8630
+ ran. The frame draws no cursor and sends no input. Set \`columns\` and \`rows\` to
8631
+ draw the output at the size the command ran at:
8632
+
8633
+ \`\`\`html
8634
+ <helix-terminal controls="find copy" label="bun run build" readonly columns="80" rows="12">
8635
+ <div id="transcript"></div>
8636
+ </helix-terminal>
8637
+ \`\`\`
8638
+
8639
+ ## Fill a pane
8640
+
8641
+ Set \`fill\` for a terminal that fills a pane, such as one side of a \`Splitter\`.
8642
+ The frame covers its container, which needs a position of its own, such as
8643
+ \`position: relative\`. Set \`separation="plain"\` where the pane already draws its
8644
+ edges. Put buttons of your own in the \`actions\` slot, before the built-in
8645
+ controls, and in \`find-actions\` for the find bar. Each takes the size of the
8646
+ buttons beside it:
8647
+
8648
+ \`\`\`html
8649
+ <div class="pane">
8650
+ <helix-terminal fill label="zsh" separation="plain">
8651
+ <helix-icon-button label="New terminal" slot="actions">
8652
+ <helix-icon name="plus"></helix-icon>
8653
+ </helix-icon-button>
8654
+ <div id="terminal"></div>
8655
+ </helix-terminal>
8656
+ </div>
8657
+ \`\`\`
8658
+
8659
+ The frame keeps its own \`label\` when a program sets its title.
8660
+ \`helix-terminal-title\` carries the new title, so you can show it where it
8661
+ belongs, such as on the tab the terminal sits under.
8662
+
8663
+ ## Links
8664
+
8665
+ A link in the output sends \`helix-terminal-link\` with its \`href\` when a reader
8666
+ activates it. Left alone, the frame opens an \`http\` or \`https\` address in a new
8667
+ tab and opens nothing else, since a program can write any address. Cancel the
8668
+ event to open the link yourself, as a desktop app does through the system's
8669
+ browser:
8670
+
8671
+ \`\`\`js
8672
+ frame.addEventListener('helix-terminal-link', (event) => {
8673
+ event.preventDefault()
8674
+ openInBrowser(event.detail.href)
8675
+ })
8676
+ \`\`\`
8677
+
8678
+ Links a program writes as hyperlinks always work. Pass \`WebLinksAddon\` to
8679
+ \`xtermDriver\` to also make the addresses in plain text into links.
8680
+
8681
+ ## Keyboard and screen readers
8682
+
8683
+ - Every key goes to the program, including Tab, Shift+Tab, and Escape, except
8684
+ the keys below.
8685
+ - Control+Shift+F, or Command+F on a Mac, opens the find bar. Enter moves to
8686
+ the next match and Shift+Enter to the previous one. Escape closes the bar and
8687
+ returns focus to the terminal. Screen readers hear how many matches there are.
8688
+ - Control+Shift+C copies the selection. On a Mac, Command+C does.
8689
+ - Control+M, or Control+Shift+M on a Mac, switches Tab between typing in the
8690
+ terminal and moving focus out of it. The status line says when Tab moves
8691
+ focus, and screen readers hear each change. The terminal's input describes
8692
+ this key to a screen reader. In a terminal, Control+M types the same
8693
+ character as Enter.
8694
+ - The frame is a named group. Its controls come before the terminal in the
8695
+ tab order, as one toolbar: Tab reaches it once, and the arrow keys move
8696
+ between its buttons, including the ones you put in \`actions\`. The find bar's
8697
+ buttons are a second toolbar after its field. The terminal's input is one tab
8698
+ stop. Name each terminal with \`label\` so a reader can tell several apart.
8699
+ - A terminal draws its grid as a picture of text, which a screen reader cannot
8700
+ read. Set \`screen-reader-mode\` to have xterm.js keep the grid as lines a
8701
+ screen reader can move through, and announce new output as it arrives. It
8702
+ costs time on every write, so it is off by default. A browser cannot tell
8703
+ whether a screen reader is running, so connect it to a setting your reader
8704
+ can turn on:
8705
+
8706
+ \`\`\`js
8707
+ frame.screenReaderMode = settings.screenReader
8708
+ \`\`\`
8709
+
8710
+ - \`text()\` returns the lines on screen as plain text, and \`text('all')\`
8711
+ returns every line the scrollback holds, which is how an assistant reads a
8712
+ terminal it has been allowed to see.
8713
+
8714
+ ## Write a driver
8715
+
8716
+ To use another emulator, write a driver: an object that draws the frame's
8717
+ output and tells the frame what the reader typed. \`connectTerminal\` calls it.
8718
+ \`xtermDriver\` is one, and the \`TerminalDriver\` type in
8719
+ \`@fusion.dev/helix-terminal\` describes every method.
8720
+
8721
+ ### Required methods
8722
+
8723
+ - \`write(data, done)\` draws the program's output, a string or a \`Uint8Array\`,
8724
+ and calls \`done\` once it has been parsed.
8725
+ - \`onInput(input)\` calls \`input(data, binary)\` with what the reader types or
8726
+ pastes, encoded for the program, and returns a function that stops.
8727
+
8728
+ ### Optional methods
8729
+
8730
+ Each optional method turns on a feature. Without it, the feature is off and
8731
+ nothing fails. A control in the header that a driver cannot answer is not
8732
+ drawn.
8733
+
8734
+ | Method | What it must do | Turns on |
8735
+ |---|---|---|
8736
+ | \`clear()\` | Clear the scrollback, keeping the cursor's line | The clear button, and \`clear()\` |
8737
+ | \`element()\` | Return the element the emulator draws in | Refitting when it changes size |
8738
+ | \`fit()\` | Fit the grid to its element, and report the new size through \`onResize\` | A grid that fills the frame |
8739
+ | \`focus()\` | Focus the emulator's input | \`focus()\`, and focus returning from the find bar |
8740
+ | \`input()\` | Return the element that takes keys | Naming the input for screen readers |
8741
+ | \`onBell(rang)\` | Call \`rang\` on the bell, and return a function that stops | \`helix-terminal-bell\` and the flash |
8742
+ | \`onLink(activated)\` | Call \`activated(href)\` when a link is used, and return a function that stops | \`helix-terminal-link\` |
8743
+ | \`onResize(resized)\` | Call \`resized({ columns, rows })\` when the grid changes size | \`helix-terminal-resize\` after the first |
8744
+ | \`onSelection(changed)\` | Call \`changed\` when the selection changes | The copy button's state |
8745
+ | \`onTitle(changed)\` | Call \`changed(title)\` when the program sets its title | \`helix-terminal-title\` |
8746
+ | \`options(options)\` | Apply \`contrast\`, \`cursor\`, \`input\`, \`motion\`, and \`screenReader\` | Read-only output, the contrast floor, reduced motion, and screen reader mode |
8747
+ | \`paste(text)\` | Input text as a paste does | \`paste()\` |
8748
+ | \`pixels()\` | Return the grid's \`width\` and \`height\` in CSS pixels | The pixel size in \`helix-terminal-resize\` |
8749
+ | \`release()\` | Put back what the driver changed | A clean \`disconnect()\` |
8750
+ | \`reset()\` | Reset the emulator | \`reset()\` |
8751
+ | \`resize(columns, rows)\` | Set the grid's size in cells | \`columns\` and \`rows\` on the frame |
8752
+ | \`search\` | An object with \`find(query, options, matches)\`, \`end()\`, and \`onResults(found)\` | The find bar |
8753
+ | \`selection()\` | Return the selected text | The copy button and its key |
8754
+ | \`size()\` | Return the grid's \`{ columns, rows }\` | The first \`helix-terminal-resize\` |
8755
+ | \`text(scope)\` | Return the screen, or with \`all\` the scrollback, as text | \`text()\` |
8756
+ | \`theme(theme)\` | Draw in \`theme.colors\` and \`theme.font\` | Theming |
8757
+
8758
+ \`connection.disconnect()\` calls every function a method returned, detaches the
8759
+ driver from the frame, and calls \`release()\`.
8760
+
8761
+ ### Draw your own terminal
8762
+
8763
+ A page that draws a terminal without a driver hands the frame a renderer of
8764
+ its own with \`frame.attach(renderer)\`. It returns the calls that tell the frame
8765
+ what happened: \`input\`, \`resized\`, \`title\`, \`bell\`, \`link\`, \`selected\`, \`found\`,
8766
+ and \`detach\`. The \`TerminalRenderer\` and \`TerminalSink\` types in
8767
+ \`@fusion.dev/helix-headless/terminal\` describe both.
8768
+
8769
+ ### Test a driver
8770
+
8771
+ Our specs test the xterm.js driver twice. A stand-in terminal records what the
8772
+ driver asks of it, which runs anywhere. Then the browser specs connect a frame
8773
+ to the real xterm.js, write output, type, search, and check what the frame
8774
+ said. Test your driver the same way: connect it to a frame, write to the frame,
8775
+ and read \`text()\` back.
8350
8776
  `,
8351
8777
  'theme-builder': `---
8352
8778
  description: Enter your theme inputs and see every token Helix computes from them.