@fusion.dev/helix-docs 0.244.2 → 0.245.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.
- package/content/metrics.mdx +279 -279
- package/content/motion.mdx +138 -1
- package/dist/pages.generated.js +1 -1
- package/dist/sources.generated.js +417 -280
- package/package.json +12 -12
|
@@ -5526,7 +5526,7 @@ on its own.
|
|
|
5526
5526
|
|
|
5527
5527
|
| | Raw | Gzip | Brotli |
|
|
5528
5528
|
|---|---|---|---|
|
|
5529
|
-
| Lit and \`@fusion.dev/helix-core\` |
|
|
5529
|
+
| Lit and \`@fusion.dev/helix-core\` | 319,326 | 103,362 | 88,162 |
|
|
5530
5530
|
|
|
5531
5531
|
## Whole packages
|
|
5532
5532
|
|
|
@@ -5537,12 +5537,12 @@ either barrel. The per-component tables show what your page pays.
|
|
|
5537
5537
|
|
|
5538
5538
|
| Package | Raw | Gzip | Brotli | |
|
|
5539
5539
|
|---|---|---|---|---|
|
|
5540
|
-
| \`@fusion.dev/helix-core\` |
|
|
5541
|
-
| \`@fusion.dev/helix-headless\` | 1,
|
|
5540
|
+
| \`@fusion.dev/helix-core\` | 318,534 | 103,244 | 87,771 | The element base class, mixins, decorators, and floating positioning. |
|
|
5541
|
+
| \`@fusion.dev/helix-headless\` | 1,841,495 | 509,574 | 381,245 | Every headless family. The barrel entry includes all of them. |
|
|
5542
5542
|
| \`@fusion.dev/helix-icons\` | 80,639 | 26,001 | 21,273 | The whole glyph set. |
|
|
5543
5543
|
| \`@fusion.dev/helix-theme\` | 3,934 | 1,681 | 1,504 | The JavaScript that runs the derivation engine. Most sites run it at build time, and a theme switcher runs it in the browser. |
|
|
5544
5544
|
| \`fusion_helix_theme_bg.wasm\` | 416,286 | 153,551 | 124,048 | The derivation engine itself, in WebAssembly. The entry above loads it when the engine runs. |
|
|
5545
|
-
| \`@fusion.dev/helix\` | 2,
|
|
5545
|
+
| \`@fusion.dev/helix\` | 2,872,732 | 725,500 | 512,225 | Every styled family. |
|
|
5546
5546
|
| \`lit\` | 15,396 | 5,990 | 5,419 | Lit itself, listed so you can subtract it from every row above. |
|
|
5547
5547
|
|
|
5548
5548
|
## Stylesheets
|
|
@@ -5564,13 +5564,13 @@ shows the whole cost of using the base layer on its own.
|
|
|
5564
5564
|
|
|
5565
5565
|
## What the numbers say
|
|
5566
5566
|
|
|
5567
|
-
**Most of your first component is the shared runtime.** The median styled family is 21,
|
|
5567
|
+
**Most of your first component is the shared runtime.** The median styled family is 21,693 bytes gzipped alone, and it adds 5,023 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.
|
|
5568
5568
|
|
|
5569
|
-
Across the 141 styled components, the smallest is \`code\` at 9,949 bytes gzipped alone, and the largest is \`data-table\` at 139,
|
|
5569
|
+
Across the 141 styled components, the smallest is \`code\` at 9,949 bytes gzipped alone, and the largest is \`data-table\` at 139,446. Every family together is 725,500.
|
|
5570
5570
|
|
|
5571
|
-
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
|
|
5571
|
+
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 509,574 bytes gzipped, whatever else the page imports. That is 23 times the median family above. All 141 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.
|
|
5572
5572
|
|
|
5573
|
-
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 21,
|
|
5573
|
+
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 21,428 bytes gzipped alone.
|
|
5574
5574
|
|
|
5575
5575
|
## Compared with other systems
|
|
5576
5576
|
|
|
@@ -5582,43 +5582,43 @@ The table has no whole-library row. That row would compare how many components e
|
|
|
5582
5582
|
|
|
5583
5583
|
| Component | System | Raw | Gzip | Brotli |
|
|
5584
5584
|
|---|---|---|---|---|
|
|
5585
|
-
| \`button\` | **Helix** | 52,361 | 16,
|
|
5585
|
+
| \`button\` | **Helix** | 52,361 | 16,624 | 15,004 |
|
|
5586
5586
|
| | Carbon | 133,019 | 20,696 | 17,673 |
|
|
5587
5587
|
| | Material Web | 47,039 | 13,980 | 12,488 |
|
|
5588
5588
|
| | Spectrum | 98,861 | 21,731 | 18,547 |
|
|
5589
5589
|
| | Web Awesome | 136,082 | 34,015 | 28,815 |
|
|
5590
|
-
| \`checkbox\` | **Helix** | 55,683 | 17,
|
|
5590
|
+
| \`checkbox\` | **Helix** | 55,683 | 17,532 | 15,780 |
|
|
5591
5591
|
| | Carbon | 60,226 | 15,349 | 13,476 |
|
|
5592
5592
|
| | Material Web | 43,770 | 13,361 | 11,940 |
|
|
5593
5593
|
| | Spectrum | 60,006 | 14,720 | 12,834 |
|
|
5594
5594
|
| | Web Awesome | 115,313 | 28,720 | 24,391 |
|
|
5595
|
-
| \`dialog\` | **Helix** | 54,029 | 17,
|
|
5595
|
+
| \`dialog\` | **Helix** | 54,029 | 17,811 | 16,000 |
|
|
5596
5596
|
| | Carbon | 510,751 | 66,753 | 39,054 |
|
|
5597
5597
|
| | Material Web | 34,234 | 11,327 | 10,171 |
|
|
5598
5598
|
| | Spectrum | 152,934 | 30,766 | 25,567 |
|
|
5599
5599
|
| | Web Awesome | 148,696 | 36,894 | 31,476 |
|
|
5600
|
-
| \`radio\` | **Helix** | 57,401 | 18,004 | 16,
|
|
5600
|
+
| \`radio\` | **Helix** | 57,401 | 18,004 | 16,181 |
|
|
5601
5601
|
| | Carbon | 62,982 | 16,599 | 14,519 |
|
|
5602
5602
|
| | Material Web | 41,029 | 13,048 | 11,659 |
|
|
5603
5603
|
| | Spectrum | 38,765 | 10,485 | 9,337 |
|
|
5604
5604
|
| | Web Awesome | 112,100 | 27,426 | 23,157 |
|
|
5605
|
-
| \`switch\` | **Helix** | 51,624 | 16,
|
|
5605
|
+
| \`switch\` | **Helix** | 51,624 | 16,920 | 15,209 |
|
|
5606
5606
|
| | Carbon | 69,388 | 16,861 | 14,710 |
|
|
5607
5607
|
| | Material Web | 50,129 | 14,355 | 12,869 |
|
|
5608
5608
|
| | Spectrum | 62,390 | 14,852 | 13,259 |
|
|
5609
5609
|
| | Web Awesome | 45,922 | 15,043 | 13,489 |
|
|
5610
|
-
| \`tabs\` | **Helix** | 69,538 | 21,
|
|
5610
|
+
| \`tabs\` | **Helix** | 69,538 | 21,305 | 19,171 |
|
|
5611
5611
|
| | Carbon | 578,657 | 72,708 | 43,044 |
|
|
5612
5612
|
| | Material Web | 38,875 | 12,619 | 11,290 |
|
|
5613
5613
|
| | Spectrum | 64,371 | 17,857 | 16,004 |
|
|
5614
5614
|
| | Web Awesome | 153,457 | 37,241 | 31,779 |
|
|
5615
|
-
| \`tooltip\` | **Helix** | 69,419 | 23,
|
|
5615
|
+
| \`tooltip\` | **Helix** | 69,419 | 23,977 | 21,572 |
|
|
5616
5616
|
| | Carbon | 189,319 | 29,833 | 22,169 |
|
|
5617
5617
|
| | Material Web | | not shipped | |
|
|
5618
5618
|
| | Spectrum | 136,084 | 39,731 | 34,997 |
|
|
5619
5619
|
| | Web Awesome | 70,482 | 23,540 | 21,032 |
|
|
5620
5620
|
|
|
5621
|
-
At least one system is smaller than Helix on \`button\`, \`checkbox\`, \`dialog\`, \`radio\`, \`switch\`, \`tabs\`, \`tooltip\`. The largest gap is tabs against Material Web, at 8,
|
|
5621
|
+
At least one system is smaller than Helix on \`button\`, \`checkbox\`, \`dialog\`, \`radio\`, \`switch\`, \`tabs\`, \`tooltip\`. The largest gap is tabs against Material Web, at 8,686 bytes gzipped. 15 of 27 peer measurements are smaller than the Helix row.
|
|
5622
5622
|
|
|
5623
5623
|
Helix's \`radio\` family includes Radio Group, so its row carries an element that some peer rows measure without.
|
|
5624
5624
|
|
|
@@ -5692,127 +5692,127 @@ Structure, accessibility, state, and form participation. It has no presentation
|
|
|
5692
5692
|
|
|
5693
5693
|
| Family | Alone raw | Alone gzip | Alone brotli | Added raw | Added gzip | Added brotli |
|
|
5694
5694
|
|---|---|---|---|---|---|---|
|
|
5695
|
-
| \`accordion\` | 36,877 | 13,
|
|
5696
|
-
| \`announcement\` | 41,546 | 14,
|
|
5697
|
-
| \`app-header\` | 37,902 | 13,
|
|
5698
|
-
| \`area-chart\` | 111,993 | 38,
|
|
5699
|
-
| \`avatar\` | 36,061 | 13,
|
|
5700
|
-
| \`badge\` | 32,293 | 12,
|
|
5701
|
-
| \`bar-chart\` | 120,038 | 41,
|
|
5702
|
-
| \`blockquote\` | 28,886 | 10,
|
|
5703
|
-
| \`breadcrumbs\` | 42,286 | 15,
|
|
5704
|
-
| \`button\` | 41,734 | 14,
|
|
5705
|
-
| \`button-group\` | 32,755 | 11,
|
|
5706
|
-
| \`callout\` | 40,143 | 15,
|
|
5707
|
-
| \`canvas\` | 183,563 | 57,
|
|
5708
|
-
| \`card\` | 28,591 | 10,
|
|
5709
|
-
| \`carousel\` | 49,497 | 17,
|
|
5710
|
-
| \`chat\` | 149,014 | 48,
|
|
5711
|
-
| \`checkbox\` | 46,004 | 15,
|
|
5712
|
-
| \`checkbox-group\` | 53,187 | 17,
|
|
5713
|
-
| \`code\` | 25,076 | 9,
|
|
5714
|
-
| \`code-block\` | 113,891 | 38,
|
|
5715
|
-
| \`code-editor\` | 102,235 | 31,
|
|
5716
|
-
| \`code-input\` | 65,943 | 22,
|
|
5717
|
-
| \`color-input\` | 150,046 | 47,
|
|
5718
|
-
| \`color-picker\` | 111,159 | 35,
|
|
5719
|
-
| \`column-manager\` | 67,982 | 23,506 | 21,
|
|
5720
|
-
| \`combobox\` | 160,384 | 50,996 | 44,
|
|
5721
|
-
| \`command\` | 131,823 | 41,
|
|
5722
|
-
| \`copy-button\` | 89,273 | 30,349 | 27,
|
|
5723
|
-
| \`data-table\` | 410,356 | 119,365 | 99,
|
|
5724
|
-
| \`date-input\` | 155,936 | 49,
|
|
5725
|
-
| \`date-picker\` | 67,848 | 22,
|
|
5726
|
-
| \`description-list\` | 27,672 | 10,349 | 9,
|
|
5727
|
-
| \`device-screen\` | 122,918 | 38,
|
|
5728
|
-
| \`dialog\` | 44,220 | 15,646 | 14,
|
|
5729
|
-
| \`divider\` | 28,131 | 10,
|
|
5730
|
-
| \`donut-chart\` | 105,451 | 36,
|
|
5731
|
-
| \`drawer\` | 48,845 | 17,
|
|
5732
|
-
| \`drilldown\` | 48,095 | 16,
|
|
5733
|
-
| \`editor\` | 188,049 | 56,
|
|
5734
|
-
| \`empty\` | 29,214 | 10,
|
|
5735
|
-
| \`file-input\` | 71,384 | 24,
|
|
5736
|
-
| \`filter-input\` | 122,638 | 40,
|
|
5737
|
-
| \`find\` | 78,472 | 26,
|
|
5738
|
-
| \`format-date\` | 35,400 | 13,
|
|
5739
|
-
| \`graph\` | 148,997 | 46,896 | 40,
|
|
5740
|
-
| \`heatmap\` | 114,394 | 38,
|
|
5741
|
-
| \`hover-card\` | 58,111 | 21,
|
|
5742
|
-
| \`icon\` | 111,446 | 37,
|
|
5743
|
-
| \`icon-button\` | 41,843 | 14,
|
|
5744
|
-
| \`image\` | 30,657 | 11,
|
|
5745
|
-
| \`input\` | 62,697 | 21,
|
|
5746
|
-
| \`kbd\` | 34,394 | 12,
|
|
5747
|
-
| \`legend\` | 44,300 | 15,
|
|
5748
|
-
| \`lightbox\` | 61,323 | 20,
|
|
5749
|
-
| \`line-chart\` | 115,302 | 39,
|
|
5750
|
-
| \`list\` | 73,753 | 25,
|
|
5751
|
-
| \`listbox\` | 95,741 | 31,
|
|
5752
|
-
| \`loader\` | 31,630 | 11,799 | 10,
|
|
5753
|
-
| \`log\` | 90,337 | 30,
|
|
5754
|
-
| \`map\` | 163,226 | 48,
|
|
5755
|
-
| \`markdown\` | 151,740 | 50,130 | 44,
|
|
5756
|
-
| \`megamenu\` | 67,580 | 24,
|
|
5757
|
-
| \`menu\` | 107,411 | 35,
|
|
5758
|
-
| \`meter\` | 40,854 | 14,
|
|
5759
|
-
| \`motion-toggle\` | 30,594 | 11,
|
|
5760
|
-
| \`navigation\` | 125,791 | 40,
|
|
5761
|
-
| \`notifications\` | 70,025 | 23,
|
|
5762
|
-
| \`number-input\` | 62,424 | 20,
|
|
5763
|
-
| \`object-inspector\` | 124,600 | 41,418 | 36,
|
|
5764
|
-
| \`option\` | 31,605 | 11,
|
|
5765
|
-
| \`outline\` | 42,186 | 15,
|
|
5766
|
-
| \`pagination\` | 167,587 | 52,
|
|
5767
|
-
| \`pin-input\` | 53,098 | 18,
|
|
5768
|
-
| \`popover\` | 69,738 | 24,588 | 22,
|
|
5769
|
-
| \`progress\` | 35,205 | 13,
|
|
5770
|
-
| \`qr-code\` | 47,814 | 18,
|
|
5771
|
-
| \`quick-filters\` | 45,791 | 16,745 | 15,
|
|
5772
|
-
| \`quote\` | 27,295 | 10,
|
|
5773
|
-
| \`radio\` | 47,667 | 16,
|
|
5774
|
-
| \`rating\` | 56,442 | 19,
|
|
5775
|
-
| \`scatter-chart\` | 111,017 | 38,
|
|
5776
|
-
| \`scroll-area\` | 36,012 | 12,
|
|
5777
|
-
| \`select\` | 135,498 | 44,
|
|
5778
|
-
| \`selection-bar\` | 32,831 | 12,
|
|
5779
|
-
| \`shortcut-overlay\` | 55,763 | 19,
|
|
5780
|
-
| \`skeleton\` | 27,249 | 10,
|
|
5781
|
-
| \`skip-link\` | 28,857 | 10,
|
|
5782
|
-
| \`slider\` | 59,389 | 19,
|
|
5783
|
-
| \`sparkline\` | 54,703 | 19,
|
|
5784
|
-
| \`spatial-bar-chart\` | 127,894 | 44,
|
|
5785
|
-
| \`spatial-heatmap\` | 129,762 | 43,
|
|
5786
|
-
| \`spatial-ribbon-chart\` | 118,924 | 41,
|
|
5787
|
-
| \`spatial-scatter-chart\` |
|
|
5788
|
-
| \`spatial-surface-chart\` | 119,934 | 41,
|
|
5789
|
-
| \`spatial-treemap\` | 121,037 | 42,
|
|
5790
|
-
| \`speed-dial\` | 74,292 | 26,
|
|
5791
|
-
| \`splitter\` | 51,089 | 17,
|
|
5792
|
-
| \`stat\` | 35,926 | 13,
|
|
5793
|
-
| \`steps\` | 60,608 | 20,903 | 18,
|
|
5794
|
-
| \`switch\` | 44,969 | 15,
|
|
5795
|
-
| \`table\` | 134,608 | 41,
|
|
5796
|
-
| \`table-export\` | 69,338 | 22,
|
|
5797
|
-
| \`tabs\` | 54,713 | 18,
|
|
5798
|
-
| \`tag\` | 53,374 | 19,
|
|
5799
|
-
| \`terminal\` | 142,096 | 44,
|
|
5800
|
-
| \`textarea\` | 60,244 | 20,
|
|
5801
|
-
| \`theme-toggle\` | 32,465 | 12,
|
|
5802
|
-
| \`time-input\` | 197,226 | 61,
|
|
5803
|
-
| \`time-picker\` | 119,198 | 37,523 | 33,
|
|
5804
|
-
| \`timeline\` | 42,532 | 15,
|
|
5805
|
-
| \`toast\` | 77,981 | 26,
|
|
5806
|
-
| \`toggle\` | 53,465 | 17,
|
|
5807
|
-
| \`toolbar\` | 37,481 | 13,
|
|
5808
|
-
| \`tooltip\` | 65,278 | 23,
|
|
5809
|
-
| \`tour\` | 91,077 | 30,
|
|
5810
|
-
| \`tree\` | 96,745 | 30,
|
|
5811
|
-
| \`trend\` | 36,847 | 14,
|
|
5812
|
-
| \`video\` | 153,003 | 47,
|
|
5813
|
-
| \`video-playlist\` | 138,374 | 44,
|
|
5814
|
-
| \`view-panel\` | 69,542 | 23,
|
|
5815
|
-
| \`virtual-list\` | 72,480 | 24,
|
|
5695
|
+
| \`accordion\` | 36,877 | 13,393 | 12,052 | 5,367 | 1,543 | 1,301 |
|
|
5696
|
+
| \`announcement\` | 41,546 | 14,920 | 13,471 | 4,742 | 1,426 | 1,016 |
|
|
5697
|
+
| \`app-header\` | 37,902 | 13,777 | 12,356 | 6,453 | 1,935 | 1,537 |
|
|
5698
|
+
| \`area-chart\` | 111,993 | 38,849 | 34,668 | 14,870 | 4,555 | 3,798 |
|
|
5699
|
+
| \`avatar\` | 36,061 | 13,461 | 12,166 | 3,982 | 1,221 | 960 |
|
|
5700
|
+
| \`badge\` | 32,293 | 12,238 | 11,055 | 2,943 | 891 | 718 |
|
|
5701
|
+
| \`bar-chart\` | 120,038 | 41,420 | 37,029 | 22,369 | 6,988 | 5,844 |
|
|
5702
|
+
| \`blockquote\` | 28,886 | 10,991 | 9,890 | 2,396 | 872 | 658 |
|
|
5703
|
+
| \`breadcrumbs\` | 42,286 | 15,769 | 14,239 | 7,908 | 2,547 | 2,281 |
|
|
5704
|
+
| \`button\` | 41,734 | 14,708 | 13,302 | 5,703 | 1,688 | 1,290 |
|
|
5705
|
+
| \`button-group\` | 32,755 | 11,980 | 10,788 | 4,899 | 1,453 | 1,108 |
|
|
5706
|
+
| \`callout\` | 40,143 | 15,144 | 13,629 | 2,877 | 984 | 757 |
|
|
5707
|
+
| \`canvas\` | 183,563 | 57,572 | 50,208 | 86,536 | 25,368 | 20,995 |
|
|
5708
|
+
| \`card\` | 28,591 | 10,652 | 9,601 | 2,076 | 627 | 435 |
|
|
5709
|
+
| \`carousel\` | 49,497 | 17,392 | 15,716 | 15,477 | 4,231 | 3,367 |
|
|
5710
|
+
| \`chat\` | 149,014 | 48,468 | 42,689 | 45,363 | 12,375 | 9,949 |
|
|
5711
|
+
| \`checkbox\` | 46,004 | 15,591 | 14,015 | 3,154 | 977 | 666 |
|
|
5712
|
+
| \`checkbox-group\` | 53,187 | 17,451 | 15,666 | 8,349 | 2,335 | 1,773 |
|
|
5713
|
+
| \`code\` | 25,076 | 9,625 | 8,660 | 136 | 59 | 154 |
|
|
5714
|
+
| \`code-block\` | 113,891 | 38,389 | 34,121 | 40,490 | 11,799 | 9,640 |
|
|
5715
|
+
| \`code-editor\` | 102,235 | 31,873 | 28,276 | 37,443 | 9,568 | 7,639 |
|
|
5716
|
+
| \`code-input\` | 65,943 | 22,616 | 20,235 | 10,556 | 3,416 | 2,677 |
|
|
5717
|
+
| \`color-input\` | 150,046 | 47,613 | 41,772 | 56,716 | 14,490 | 11,925 |
|
|
5718
|
+
| \`color-picker\` | 111,159 | 35,256 | 31,244 | 48,842 | 12,971 | 10,600 |
|
|
5719
|
+
| \`column-manager\` | 67,982 | 23,506 | 21,016 | 15,010 | 4,862 | 3,828 |
|
|
5720
|
+
| \`combobox\` | 160,384 | 50,996 | 44,812 | 41,156 | 10,617 | 8,378 |
|
|
5721
|
+
| \`command\` | 131,823 | 41,181 | 36,064 | 41,341 | 10,645 | 8,662 |
|
|
5722
|
+
| \`copy-button\` | 89,273 | 30,349 | 27,117 | 19,845 | 5,287 | 4,293 |
|
|
5723
|
+
| \`data-table\` | 410,356 | 119,365 | 99,191 | 228,402 | 59,371 | 46,081 |
|
|
5724
|
+
| \`date-input\` | 155,936 | 49,235 | 43,478 | 41,330 | 10,469 | 8,463 |
|
|
5725
|
+
| \`date-picker\` | 67,848 | 22,963 | 20,768 | 21,028 | 5,727 | 4,632 |
|
|
5726
|
+
| \`description-list\` | 27,672 | 10,349 | 9,311 | 1,556 | 498 | 374 |
|
|
5727
|
+
| \`device-screen\` | 122,918 | 38,747 | 34,353 | 45,893 | 11,334 | 8,994 |
|
|
5728
|
+
| \`dialog\` | 44,220 | 15,646 | 14,017 | 6,455 | 1,900 | 1,438 |
|
|
5729
|
+
| \`divider\` | 28,131 | 10,588 | 9,515 | 1,410 | 483 | 341 |
|
|
5730
|
+
| \`donut-chart\` | 105,451 | 36,162 | 32,371 | 15,656 | 4,693 | 3,803 |
|
|
5731
|
+
| \`drawer\` | 48,845 | 17,091 | 15,352 | 8,325 | 2,428 | 2,005 |
|
|
5732
|
+
| \`drilldown\` | 48,095 | 16,573 | 14,867 | 10,063 | 2,734 | 2,113 |
|
|
5733
|
+
| \`editor\` | 188,049 | 56,446 | 48,996 | 91,066 | 22,216 | 17,938 |
|
|
5734
|
+
| \`empty\` | 29,214 | 10,914 | 9,830 | 1,974 | 641 | 488 |
|
|
5735
|
+
| \`file-input\` | 71,384 | 24,690 | 22,128 | 15,513 | 5,033 | 3,958 |
|
|
5736
|
+
| \`filter-input\` | 122,638 | 40,888 | 36,298 | 25,236 | 7,145 | 5,853 |
|
|
5737
|
+
| \`find\` | 78,472 | 26,021 | 23,294 | 21,911 | 5,726 | 4,594 |
|
|
5738
|
+
| \`format-date\` | 35,400 | 13,006 | 11,725 | 4,469 | 1,243 | 1,015 |
|
|
5739
|
+
| \`graph\` | 148,997 | 46,896 | 40,926 | 40,034 | 10,976 | 8,820 |
|
|
5740
|
+
| \`heatmap\` | 114,394 | 38,616 | 34,537 | 19,877 | 5,813 | 4,750 |
|
|
5741
|
+
| \`hover-card\` | 58,111 | 21,014 | 18,905 | 3,475 | 998 | 794 |
|
|
5742
|
+
| \`icon\` | 111,446 | 37,466 | 31,958 | 79,598 | 26,571 | 21,654 |
|
|
5743
|
+
| \`icon-button\` | 41,843 | 14,752 | 13,320 | 5,810 | 1,709 | 1,322 |
|
|
5744
|
+
| \`image\` | 30,657 | 11,222 | 10,118 | 3,910 | 1,150 | 998 |
|
|
5745
|
+
| \`input\` | 62,697 | 21,428 | 19,088 | 7,538 | 2,381 | 1,867 |
|
|
5746
|
+
| \`kbd\` | 34,394 | 12,821 | 11,497 | 3,998 | 1,298 | 991 |
|
|
5747
|
+
| \`legend\` | 44,300 | 15,742 | 14,217 | 2,762 | 908 | 652 |
|
|
5748
|
+
| \`lightbox\` | 61,323 | 20,605 | 18,481 | 16,531 | 4,487 | 3,430 |
|
|
5749
|
+
| \`line-chart\` | 115,302 | 39,767 | 35,611 | 17,582 | 5,236 | 4,447 |
|
|
5750
|
+
| \`list\` | 73,753 | 25,287 | 22,536 | 16,341 | 4,601 | 3,630 |
|
|
5751
|
+
| \`listbox\` | 95,741 | 31,521 | 27,871 | 17,816 | 4,956 | 4,046 |
|
|
5752
|
+
| \`loader\` | 31,630 | 11,799 | 10,659 | 2,877 | 944 | 845 |
|
|
5753
|
+
| \`log\` | 90,337 | 30,188 | 27,109 | 40,569 | 12,447 | 10,453 |
|
|
5754
|
+
| \`map\` | 163,226 | 48,421 | 41,774 | 64,058 | 15,497 | 12,217 |
|
|
5755
|
+
| \`markdown\` | 151,740 | 50,130 | 44,280 | 65,798 | 20,485 | 16,789 |
|
|
5756
|
+
| \`megamenu\` | 67,580 | 24,168 | 21,581 | 9,535 | 2,636 | 2,060 |
|
|
5757
|
+
| \`menu\` | 107,411 | 35,115 | 31,285 | 33,424 | 8,646 | 7,060 |
|
|
5758
|
+
| \`meter\` | 40,854 | 14,979 | 13,515 | 6,964 | 2,029 | 1,633 |
|
|
5759
|
+
| \`motion-toggle\` | 30,594 | 11,666 | 10,489 | 1,508 | 524 | 314 |
|
|
5760
|
+
| \`navigation\` | 125,791 | 40,715 | 36,155 | 42,912 | 11,250 | 9,180 |
|
|
5761
|
+
| \`notifications\` | 70,025 | 23,659 | 21,224 | 19,019 | 5,234 | 4,208 |
|
|
5762
|
+
| \`number-input\` | 62,424 | 20,842 | 18,712 | 13,666 | 3,689 | 2,943 |
|
|
5763
|
+
| \`object-inspector\` | 124,600 | 41,418 | 36,712 | 37,109 | 10,579 | 8,531 |
|
|
5764
|
+
| \`option\` | 31,605 | 11,400 | 10,275 | 4,862 | 1,273 | 945 |
|
|
5765
|
+
| \`outline\` | 42,186 | 15,093 | 13,642 | 10,619 | 3,133 | 2,421 |
|
|
5766
|
+
| \`pagination\` | 167,587 | 52,933 | 46,173 | 51,477 | 13,048 | 10,473 |
|
|
5767
|
+
| \`pin-input\` | 53,098 | 18,342 | 16,518 | 7,186 | 2,339 | 1,737 |
|
|
5768
|
+
| \`popover\` | 69,738 | 24,588 | 22,036 | 6,502 | 1,864 | 1,378 |
|
|
5769
|
+
| \`progress\` | 35,205 | 13,063 | 11,778 | 3,634 | 1,108 | 1,003 |
|
|
5770
|
+
| \`qr-code\` | 47,814 | 18,177 | 16,410 | 16,971 | 6,258 | 5,287 |
|
|
5771
|
+
| \`quick-filters\` | 45,791 | 16,745 | 15,101 | 7,773 | 2,393 | 1,934 |
|
|
5772
|
+
| \`quote\` | 27,295 | 10,451 | 9,400 | 1,205 | 515 | 309 |
|
|
5773
|
+
| \`radio\` | 47,667 | 16,146 | 14,508 | 3,908 | 1,206 | 898 |
|
|
5774
|
+
| \`rating\` | 56,442 | 19,347 | 17,409 | 8,320 | 2,528 | 1,937 |
|
|
5775
|
+
| \`scatter-chart\` | 111,017 | 38,124 | 33,997 | 20,723 | 6,449 | 5,273 |
|
|
5776
|
+
| \`scroll-area\` | 36,012 | 12,877 | 11,595 | 9,029 | 2,682 | 2,197 |
|
|
5777
|
+
| \`select\` | 135,498 | 44,187 | 38,866 | 29,297 | 7,715 | 6,057 |
|
|
5778
|
+
| \`selection-bar\` | 32,831 | 12,484 | 11,256 | 2,369 | 705 | 757 |
|
|
5779
|
+
| \`shortcut-overlay\` | 55,763 | 19,649 | 17,611 | 12,350 | 3,688 | 3,146 |
|
|
5780
|
+
| \`skeleton\` | 27,249 | 10,307 | 9,296 | 1,130 | 434 | 306 |
|
|
5781
|
+
| \`skip-link\` | 28,857 | 10,949 | 9,858 | 1,334 | 495 | 384 |
|
|
5782
|
+
| \`slider\` | 59,389 | 19,880 | 17,957 | 13,671 | 3,853 | 3,154 |
|
|
5783
|
+
| \`sparkline\` | 54,703 | 19,498 | 17,600 | 7,137 | 2,372 | 1,957 |
|
|
5784
|
+
| \`spatial-bar-chart\` | 127,894 | 44,722 | 39,793 | 29,285 | 9,908 | 8,387 |
|
|
5785
|
+
| \`spatial-heatmap\` | 129,762 | 43,762 | 38,957 | 32,549 | 9,858 | 8,011 |
|
|
5786
|
+
| \`spatial-ribbon-chart\` | 118,924 | 41,429 | 36,836 | 22,333 | 7,498 | 6,106 |
|
|
5787
|
+
| \`spatial-scatter-chart\` | 116,993 | 40,663 | 36,213 | 20,467 | 6,712 | 5,559 |
|
|
5788
|
+
| \`spatial-surface-chart\` | 119,934 | 41,879 | 37,302 | 23,348 | 7,917 | 6,650 |
|
|
5789
|
+
| \`spatial-treemap\` | 121,037 | 42,466 | 37,778 | 22,753 | 7,786 | 6,437 |
|
|
5790
|
+
| \`speed-dial\` | 74,292 | 26,235 | 23,493 | 10,921 | 2,884 | 2,279 |
|
|
5791
|
+
| \`splitter\` | 51,089 | 17,445 | 15,766 | 16,151 | 4,261 | 3,451 |
|
|
5792
|
+
| \`stat\` | 35,926 | 13,323 | 11,991 | 6,395 | 2,127 | 1,600 |
|
|
5793
|
+
| \`steps\` | 60,608 | 20,903 | 18,722 | 14,559 | 4,050 | 3,250 |
|
|
5794
|
+
| \`switch\` | 44,969 | 15,421 | 13,849 | 1,839 | 656 | 411 |
|
|
5795
|
+
| \`table\` | 134,608 | 41,690 | 36,472 | 48,308 | 12,959 | 10,573 |
|
|
5796
|
+
| \`table-export\` | 69,338 | 22,460 | 20,124 | 16,983 | 4,531 | 3,625 |
|
|
5797
|
+
| \`tabs\` | 54,713 | 18,419 | 16,546 | 11,897 | 3,148 | 2,415 |
|
|
5798
|
+
| \`tag\` | 53,374 | 19,119 | 17,248 | 8,797 | 2,605 | 1,991 |
|
|
5799
|
+
| \`terminal\` | 142,096 | 44,742 | 39,450 | 53,960 | 13,271 | 10,868 |
|
|
5800
|
+
| \`textarea\` | 60,244 | 20,573 | 18,478 | 5,645 | 1,673 | 1,254 |
|
|
5801
|
+
| \`theme-toggle\` | 32,465 | 12,384 | 11,104 | 2,343 | 821 | 615 |
|
|
5802
|
+
| \`time-input\` | 197,226 | 61,453 | 53,215 | 54,252 | 13,697 | 11,144 |
|
|
5803
|
+
| \`time-picker\` | 119,198 | 37,523 | 33,097 | 36,999 | 9,718 | 7,796 |
|
|
5804
|
+
| \`timeline\` | 42,532 | 15,774 | 14,245 | 4,419 | 1,289 | 1,142 |
|
|
5805
|
+
| \`toast\` | 77,981 | 26,247 | 23,409 | 22,936 | 6,511 | 5,447 |
|
|
5806
|
+
| \`toggle\` | 53,465 | 17,681 | 15,929 | 6,384 | 1,889 | 1,440 |
|
|
5807
|
+
| \`toolbar\` | 37,481 | 13,588 | 12,227 | 1,406 | 499 | 430 |
|
|
5808
|
+
| \`tooltip\` | 65,278 | 23,082 | 20,783 | 8,865 | 2,456 | 1,918 |
|
|
5809
|
+
| \`tour\` | 91,077 | 30,854 | 27,573 | 21,117 | 5,723 | 4,694 |
|
|
5810
|
+
| \`tree\` | 96,745 | 30,833 | 27,417 | 22,938 | 6,204 | 4,970 |
|
|
5811
|
+
| \`trend\` | 36,847 | 14,046 | 12,661 | 3,486 | 1,118 | 993 |
|
|
5812
|
+
| \`video\` | 153,003 | 47,051 | 41,523 | 69,311 | 17,182 | 14,161 |
|
|
5813
|
+
| \`video-playlist\` | 138,374 | 44,182 | 39,098 | 46,672 | 11,938 | 9,897 |
|
|
5814
|
+
| \`view-panel\` | 69,542 | 23,063 | 20,647 | 16,220 | 4,605 | 3,616 |
|
|
5815
|
+
| \`virtual-list\` | 72,480 | 24,002 | 21,643 | 25,469 | 7,520 | 6,280 |
|
|
5816
5816
|
|
|
5817
5817
|
### Styled tier
|
|
5818
5818
|
|
|
@@ -5820,147 +5820,147 @@ The headless tier plus presentation. \`bun add @fusion.dev/helix\` installs this
|
|
|
5820
5820
|
|
|
5821
5821
|
| Family | Alone raw | Alone gzip | Alone brotli | Added raw | Added gzip | Added brotli |
|
|
5822
5822
|
|---|---|---|---|---|---|---|
|
|
5823
|
-
| \`accordion\` | 41,510 | 14,
|
|
5824
|
-
| \`announcement\` | 47,097 | 16,
|
|
5825
|
-
| \`app-header\` | 45,572 | 15,
|
|
5826
|
-
| \`area-chart\` | 126,026 | 41,
|
|
5827
|
-
| \`aura\` | 65,616 | 22,119 | 19,
|
|
5828
|
-
| \`avatar\` | 40,063 | 14,
|
|
5829
|
-
| \`badge\` | 38,701 | 13,764 | 12,
|
|
5830
|
-
| \`bar-chart\` | 141,119 | 45,
|
|
5831
|
-
| \`blockquote\` | 31,111 | 11,
|
|
5832
|
-
| \`breadcrumbs\` | 50,954 | 17,
|
|
5833
|
-
| \`button\` | 52,361 | 16,
|
|
5834
|
-
| \`button-group\` | 38,038 | 12,
|
|
5835
|
-
| \`callout\` | 46,837 | 16,747 | 15,
|
|
5836
|
-
| \`canvas\` | 224,296 | 63,
|
|
5837
|
-
| \`card\` | 36,514 | 12,
|
|
5838
|
-
| \`carousel\` | 62,025 | 19,
|
|
5839
|
-
| \`chat\` | 193,556 | 57,
|
|
5840
|
-
| \`checkbox\` | 55,683 | 17,
|
|
5841
|
-
| \`checkbox-group\` | 63,661 | 19,
|
|
5842
|
-
| \`code\` | 25,945 | 9,949 | 8,
|
|
5843
|
-
| \`code-block\` | 146,508 | 43,
|
|
5844
|
-
| \`code-editor\` | 144,717 | 37,
|
|
5845
|
-
| \`code-input\` | 82,474 | 27,
|
|
5846
|
-
| \`color-input\` | 205,486 | 55,
|
|
5847
|
-
| \`color-picker\` | 158,576 | 41,
|
|
5848
|
-
| \`column-manager\` | 81,429 | 26,089 | 23,
|
|
5849
|
-
| \`combobox\` | 195,994 | 58,
|
|
5850
|
-
| \`command\` | 167,359 | 49,
|
|
5851
|
-
| \`copy-button\` | 109,103 | 33,
|
|
5852
|
-
| \`cursor\` | 27,989 | 10,
|
|
5853
|
-
| \`data-table\` | 533,830 | 139,
|
|
5854
|
-
| \`date-input\` | 189,295 | 54,
|
|
5855
|
-
| \`date-picker\` | 79,556 | 25,180 | 22,
|
|
5856
|
-
| \`description-list\` | 30,670 | 11,
|
|
5857
|
-
| \`device-screen\` | 148,336 | 42,
|
|
5858
|
-
| \`dialog\` | 54,029 | 17,
|
|
5859
|
-
| \`divider\` | 30,429 | 11,
|
|
5860
|
-
| \`donut-chart\` | 122,821 | 39,
|
|
5861
|
-
| \`drawer\` | 58,400 | 18,
|
|
5862
|
-
| \`drilldown\` | 57,909 | 18,
|
|
5863
|
-
| \`editor\` | 249,321 | 65,
|
|
5864
|
-
| \`empty\` | 30,614 | 11,
|
|
5865
|
-
| \`file-input\` | 86,167 | 27,
|
|
5866
|
-
| \`filter-input\` | 149,557 | 47,
|
|
5867
|
-
| \`find\` | 113,637 | 30,
|
|
5868
|
-
| \`flex\` | 30,519 | 10,792 | 9,
|
|
5869
|
-
| \`format-date\` | 35,654 | 13,
|
|
5870
|
-
| \`graph\` | 184,037 | 52,
|
|
5871
|
-
| \`grid\` | 31,969 | 11,
|
|
5872
|
-
| \`heatmap\` | 127,484 | 41,
|
|
5873
|
-
| \`highlighter\` | 26,591 | 10,
|
|
5874
|
-
| \`hover-card\` | 60,918 | 21,
|
|
5875
|
-
| \`icon\` | 113,500 | 38,075 | 32,
|
|
5876
|
-
| \`icon-button\` | 55,726 | 16,
|
|
5877
|
-
| \`image\` | 32,617 | 11,
|
|
5878
|
-
| \`input\` | 82,510 | 26,
|
|
5879
|
-
| \`kbd\` | 36,713 | 13,
|
|
5880
|
-
| \`legend\` | 50,192 | 17,
|
|
5881
|
-
| \`lightbox\` | 71,619 | 23,
|
|
5882
|
-
| \`line-chart\` | 133,721 | 43,
|
|
5883
|
-
| \`list\` | 84,876 | 27,
|
|
5884
|
-
| \`listbox\` | 114,143 | 36,
|
|
5885
|
-
| \`loader\` | 34,749 | 12,
|
|
5886
|
-
| \`log\` | 109,581 | 33,849 | 30,
|
|
5887
|
-
| \`magnetic\` | 28,349 | 10,
|
|
5888
|
-
| \`map\` | 214,711 | 56,
|
|
5889
|
-
| \`markdown\` | 200,936 | 57,
|
|
5890
|
-
| \`marquee\` | 29,091 | 10,
|
|
5891
|
-
| \`megamenu\` | 75,084 | 25,
|
|
5892
|
-
| \`menu\` | 124,053 | 38,
|
|
5893
|
-
| \`meter\` | 50,135 | 16,
|
|
5894
|
-
| \`motion-toggle\` | 32,514 | 12,
|
|
5895
|
-
| \`navigation\` | 151,210 | 45,
|
|
5896
|
-
| \`notifications\` | 87,472 | 26,
|
|
5897
|
-
| \`number-input\` | 72,908 | 22,959 | 20,
|
|
5898
|
-
| \`object-inspector\` | 149,700 | 45,
|
|
5899
|
-
| \`option\` | 36,517 | 12,
|
|
5900
|
-
| \`orb\` | 41,145 | 15,
|
|
5901
|
-
| \`outline\` | 48,868 | 16,
|
|
5902
|
-
| \`pagination\` | 207,773 | 61,595 | 53,
|
|
5903
|
-
| \`pattern\` | 38,679 | 13,930 | 12,
|
|
5904
|
-
| \`pin-input\` | 56,789 | 19,
|
|
5905
|
-
| \`popover\` | 75,869 | 25,
|
|
5906
|
-
| \`progress\` | 42,580 | 14,
|
|
5907
|
-
| \`qr-code\` | 49,514 | 18,684 | 16,
|
|
5908
|
-
| \`quick-filters\` | 48,931 | 17,
|
|
5909
|
-
| \`quote\` | 27,851 | 10,
|
|
5910
|
-
| \`radio\` | 57,401 | 18,004 | 16,
|
|
5911
|
-
| \`rating\` | 62,174 | 20,896 | 18,
|
|
5912
|
-
| \`reveal\` | 26,361 | 9,
|
|
5913
|
-
| \`rotating-text\` | 29,571 | 11,
|
|
5914
|
-
| \`sandbox\` | 224,059 | 64,015 | 54,
|
|
5915
|
-
| \`scatter-chart\` | 126,065 | 41,
|
|
5916
|
-
| \`scroll-area\` | 43,992 | 14,
|
|
5917
|
-
| \`scroll-progress\` | 28,153 | 10,
|
|
5918
|
-
| \`select\` | 162,530 | 50,
|
|
5919
|
-
| \`selection-bar\` | 35,103 | 13,
|
|
5920
|
-
| \`shimmer-text\` | 26,928 | 10,
|
|
5921
|
-
| \`shine\` | 28,286 | 10,
|
|
5922
|
-
| \`shortcut-overlay\` | 67,617 | 22,
|
|
5923
|
-
| \`skeleton\` | 35,927 | 12,
|
|
5924
|
-
| \`skip-link\` | 30,427 | 11,
|
|
5925
|
-
| \`slider\` | 77,267 | 22,
|
|
5926
|
-
| \`sliding-number\` | 31,421 | 12,
|
|
5927
|
-
| \`sparkline\` | 63,466 | 21,
|
|
5928
|
-
| \`spatial-bar-chart\` | 144,372 | 48,
|
|
5929
|
-
| \`spatial-heatmap\` | 144,531 | 46,948 | 41,
|
|
5930
|
-
| \`spatial-ribbon-chart\` | 133,388 | 44,477 | 39,
|
|
5931
|
-
| \`spatial-scatter-chart\` | 131,525 | 43,
|
|
5932
|
-
| \`spatial-surface-chart\` | 133,262 | 44,
|
|
5933
|
-
| \`spatial-treemap\` | 135,600 | 45,
|
|
5934
|
-
| \`speed-dial\` | 82,327 | 27,
|
|
5935
|
-
| \`splitter\` | 58,769 | 18,
|
|
5936
|
-
| \`stat\` | 40,886 | 14,398 | 13,
|
|
5937
|
-
| \`steps\` | 80,697 | 24,
|
|
5938
|
-
| \`strands\` | 69,907 | 25,
|
|
5939
|
-
| \`switch\` | 51,624 | 16,
|
|
5940
|
-
| \`table\` | 163,170 | 46,
|
|
5941
|
-
| \`table-export\` | 92,502 | 26,
|
|
5942
|
-
| \`tabs\` | 69,538 | 21,
|
|
5943
|
-
| \`tag\` | 59,925 | 20,607 | 18,
|
|
5944
|
-
| \`terminal\` | 188,591 | 51,
|
|
5945
|
-
| \`text\` | 33,565 | 11,572 | 10,
|
|
5946
|
-
| \`textarea\` | 77,629 | 25,
|
|
5947
|
-
| \`theme-toggle\` | 34,106 | 12,911 | 11,
|
|
5948
|
-
| \`tilt\` | 28,304 | 10,
|
|
5949
|
-
| \`time-input\` | 246,270 | 71,
|
|
5950
|
-
| \`time-picker\` | 148,402 | 44,
|
|
5951
|
-
| \`timeline\` | 49,559 | 17,
|
|
5952
|
-
| \`toast\` | 98,678 | 29,879 | 26,
|
|
5953
|
-
| \`toggle\` | 60,353 | 19,260 | 17,
|
|
5954
|
-
| \`toolbar\` | 43,378 | 14,
|
|
5955
|
-
| \`tooltip\` | 69,419 | 23,
|
|
5956
|
-
| \`tour\` | 105,940 | 33,
|
|
5957
|
-
| \`tree\` | 117,767 | 34,701 | 30,
|
|
5958
|
-
| \`trend\` | 38,956 | 14,
|
|
5959
|
-
| \`video\` | 181,706 | 52,
|
|
5960
|
-
| \`video-playlist\` | 160,138 | 48,
|
|
5961
|
-
| \`view-panel\` | 91,950 | 26,
|
|
5962
|
-
| \`virtual-list\` | 74,559 | 24,
|
|
5963
|
-
| \`voice-level\` | 38,486 | 14,
|
|
5823
|
+
| \`accordion\` | 41,510 | 14,530 | 13,056 | 9,990 | 2,673 | 2,157 |
|
|
5824
|
+
| \`announcement\` | 47,097 | 16,187 | 14,599 | 10,275 | 2,707 | 2,270 |
|
|
5825
|
+
| \`app-header\` | 45,572 | 15,435 | 13,881 | 14,105 | 3,564 | 2,995 |
|
|
5826
|
+
| \`area-chart\` | 126,026 | 41,822 | 37,280 | 28,895 | 7,613 | 6,224 |
|
|
5827
|
+
| \`aura\` | 65,616 | 22,119 | 19,800 | 33,344 | 9,996 | 8,363 |
|
|
5828
|
+
| \`avatar\` | 40,063 | 14,533 | 13,136 | 7,970 | 2,282 | 2,074 |
|
|
5829
|
+
| \`badge\` | 38,701 | 13,764 | 12,494 | 9,240 | 2,350 | 1,978 |
|
|
5830
|
+
| \`bar-chart\` | 141,119 | 45,614 | 40,695 | 43,440 | 11,201 | 9,222 |
|
|
5831
|
+
| \`blockquote\` | 31,111 | 11,528 | 10,346 | 4,604 | 1,430 | 1,238 |
|
|
5832
|
+
| \`breadcrumbs\` | 50,954 | 17,233 | 15,555 | 16,556 | 4,018 | 3,375 |
|
|
5833
|
+
| \`button\` | 52,361 | 16,624 | 15,004 | 16,310 | 3,644 | 2,997 |
|
|
5834
|
+
| \`button-group\` | 38,038 | 12,868 | 11,576 | 10,166 | 2,359 | 1,802 |
|
|
5835
|
+
| \`callout\` | 46,837 | 16,747 | 15,080 | 9,553 | 2,561 | 2,152 |
|
|
5836
|
+
| \`canvas\` | 224,296 | 63,715 | 55,648 | 127,253 | 31,796 | 26,270 |
|
|
5837
|
+
| \`card\` | 36,514 | 12,125 | 10,927 | 9,984 | 2,132 | 1,735 |
|
|
5838
|
+
| \`carousel\` | 62,025 | 19,456 | 17,648 | 27,983 | 6,334 | 5,278 |
|
|
5839
|
+
| \`chat\` | 193,556 | 57,729 | 50,702 | 86,856 | 20,842 | 17,131 |
|
|
5840
|
+
| \`checkbox\` | 55,683 | 17,532 | 15,780 | 12,817 | 2,941 | 2,364 |
|
|
5841
|
+
| \`checkbox-group\` | 63,661 | 19,548 | 17,546 | 18,814 | 4,471 | 3,569 |
|
|
5842
|
+
| \`code\` | 25,945 | 9,949 | 8,971 | 986 | 403 | 260 |
|
|
5843
|
+
| \`code-block\` | 146,508 | 43,119 | 38,256 | 73,082 | 16,623 | 13,780 |
|
|
5844
|
+
| \`code-editor\` | 144,717 | 37,731 | 33,267 | 79,914 | 15,379 | 12,509 |
|
|
5845
|
+
| \`code-input\` | 82,474 | 27,303 | 24,458 | 23,956 | 7,196 | 5,928 |
|
|
5846
|
+
| \`color-input\` | 205,486 | 55,469 | 48,577 | 112,139 | 22,587 | 18,623 |
|
|
5847
|
+
| \`color-picker\` | 158,576 | 41,964 | 37,121 | 96,249 | 19,880 | 16,537 |
|
|
5848
|
+
| \`column-manager\` | 81,429 | 26,089 | 23,299 | 28,444 | 7,486 | 6,159 |
|
|
5849
|
+
| \`combobox\` | 195,994 | 58,900 | 51,767 | 73,631 | 17,608 | 14,546 |
|
|
5850
|
+
| \`command\` | 167,359 | 49,560 | 43,409 | 73,499 | 18,024 | 14,837 |
|
|
5851
|
+
| \`copy-button\` | 109,103 | 33,331 | 29,742 | 39,655 | 8,436 | 6,919 |
|
|
5852
|
+
| \`cursor\` | 27,989 | 10,683 | 9,623 | 2,059 | 764 | 596 |
|
|
5853
|
+
| \`data-table\` | 533,830 | 139,446 | 115,365 | 348,840 | 78,797 | 61,656 |
|
|
5854
|
+
| \`date-input\` | 189,295 | 54,623 | 48,381 | 74,674 | 15,809 | 13,214 |
|
|
5855
|
+
| \`date-picker\` | 79,556 | 25,180 | 22,700 | 32,617 | 7,925 | 6,456 |
|
|
5856
|
+
| \`description-list\` | 30,670 | 11,091 | 9,995 | 4,543 | 1,244 | 950 |
|
|
5857
|
+
| \`device-screen\` | 148,336 | 42,864 | 37,866 | 71,288 | 15,418 | 12,630 |
|
|
5858
|
+
| \`dialog\` | 54,029 | 17,811 | 16,000 | 16,155 | 4,070 | 3,279 |
|
|
5859
|
+
| \`divider\` | 30,429 | 11,205 | 10,080 | 3,687 | 1,104 | 895 |
|
|
5860
|
+
| \`donut-chart\` | 122,821 | 39,596 | 35,421 | 33,010 | 8,272 | 6,733 |
|
|
5861
|
+
| \`drawer\` | 58,400 | 18,991 | 17,075 | 17,870 | 4,355 | 3,690 |
|
|
5862
|
+
| \`drilldown\` | 57,909 | 18,877 | 16,973 | 19,760 | 5,023 | 4,000 |
|
|
5863
|
+
| \`editor\` | 249,321 | 65,195 | 56,418 | 152,319 | 31,135 | 25,446 |
|
|
5864
|
+
| \`empty\` | 30,614 | 11,423 | 10,263 | 3,352 | 1,136 | 1,050 |
|
|
5865
|
+
| \`file-input\` | 86,167 | 27,617 | 24,753 | 30,277 | 7,984 | 6,680 |
|
|
5866
|
+
| \`filter-input\` | 149,557 | 47,387 | 42,009 | 49,012 | 12,720 | 10,599 |
|
|
5867
|
+
| \`find\` | 113,637 | 30,971 | 27,461 | 57,069 | 10,846 | 8,862 |
|
|
5868
|
+
| \`flex\` | 30,519 | 10,792 | 9,710 | 4,759 | 1,016 | 1,010 |
|
|
5869
|
+
| \`format-date\` | 35,654 | 13,113 | 11,831 | 4,705 | 1,378 | 1,079 |
|
|
5870
|
+
| \`graph\` | 184,037 | 52,004 | 45,319 | 75,052 | 16,103 | 13,123 |
|
|
5871
|
+
| \`grid\` | 31,969 | 11,467 | 10,347 | 5,652 | 1,463 | 1,285 |
|
|
5872
|
+
| \`heatmap\` | 127,484 | 41,518 | 36,937 | 32,943 | 8,706 | 7,166 |
|
|
5873
|
+
| \`highlighter\` | 26,591 | 10,136 | 9,139 | 1,535 | 544 | 357 |
|
|
5874
|
+
| \`hover-card\` | 60,918 | 21,689 | 19,479 | 6,271 | 1,659 | 1,342 |
|
|
5875
|
+
| \`icon\` | 113,500 | 38,075 | 32,440 | 81,470 | 27,133 | 22,073 |
|
|
5876
|
+
| \`icon-button\` | 55,726 | 16,806 | 15,160 | 19,677 | 3,839 | 3,029 |
|
|
5877
|
+
| \`image\` | 32,617 | 11,928 | 10,777 | 5,852 | 1,849 | 1,638 |
|
|
5878
|
+
| \`input\` | 82,510 | 26,675 | 23,802 | 24,206 | 6,718 | 5,412 |
|
|
5879
|
+
| \`kbd\` | 36,713 | 13,425 | 12,065 | 6,301 | 1,932 | 1,614 |
|
|
5880
|
+
| \`legend\` | 50,192 | 17,104 | 15,362 | 8,515 | 2,228 | 1,811 |
|
|
5881
|
+
| \`lightbox\` | 71,619 | 23,082 | 20,720 | 26,714 | 6,934 | 5,618 |
|
|
5882
|
+
| \`line-chart\` | 133,721 | 43,672 | 38,911 | 35,883 | 9,244 | 7,627 |
|
|
5883
|
+
| \`list\` | 84,876 | 27,858 | 24,836 | 27,442 | 7,157 | 5,788 |
|
|
5884
|
+
| \`listbox\` | 114,143 | 36,817 | 32,503 | 32,916 | 9,328 | 7,525 |
|
|
5885
|
+
| \`loader\` | 34,749 | 12,606 | 11,411 | 5,972 | 1,749 | 1,548 |
|
|
5886
|
+
| \`log\` | 109,581 | 33,849 | 30,347 | 59,327 | 16,038 | 13,588 |
|
|
5887
|
+
| \`magnetic\` | 28,349 | 10,637 | 9,562 | 1,289 | 409 | 313 |
|
|
5888
|
+
| \`map\` | 214,711 | 56,131 | 48,432 | 115,520 | 23,358 | 18,892 |
|
|
5889
|
+
| \`markdown\` | 200,936 | 57,612 | 50,750 | 114,981 | 28,000 | 23,141 |
|
|
5890
|
+
| \`marquee\` | 29,091 | 10,970 | 9,925 | 2,681 | 922 | 862 |
|
|
5891
|
+
| \`megamenu\` | 75,084 | 25,691 | 22,950 | 17,020 | 4,175 | 3,345 |
|
|
5892
|
+
| \`menu\` | 124,053 | 38,441 | 34,204 | 50,052 | 11,981 | 9,983 |
|
|
5893
|
+
| \`meter\` | 50,135 | 16,754 | 15,125 | 16,224 | 3,855 | 3,190 |
|
|
5894
|
+
| \`motion-toggle\` | 32,514 | 12,241 | 10,970 | 3,412 | 1,093 | 931 |
|
|
5895
|
+
| \`navigation\` | 151,210 | 45,217 | 40,138 | 68,321 | 15,739 | 13,190 |
|
|
5896
|
+
| \`notifications\` | 87,472 | 26,986 | 24,223 | 36,459 | 8,628 | 7,010 |
|
|
5897
|
+
| \`number-input\` | 72,908 | 22,959 | 20,699 | 24,129 | 5,841 | 4,695 |
|
|
5898
|
+
| \`object-inspector\` | 149,700 | 45,300 | 40,047 | 62,183 | 14,315 | 11,885 |
|
|
5899
|
+
| \`option\` | 36,517 | 12,740 | 11,495 | 9,766 | 2,613 | 2,155 |
|
|
5900
|
+
| \`orb\` | 41,145 | 15,306 | 13,824 | 10,104 | 3,699 | 3,137 |
|
|
5901
|
+
| \`outline\` | 48,868 | 16,522 | 14,916 | 17,285 | 4,544 | 3,830 |
|
|
5902
|
+
| \`pagination\` | 207,773 | 61,595 | 53,574 | 88,532 | 20,944 | 16,961 |
|
|
5903
|
+
| \`pattern\` | 38,679 | 13,930 | 12,563 | 12,357 | 3,826 | 3,357 |
|
|
5904
|
+
| \`pin-input\` | 56,789 | 19,335 | 17,415 | 10,858 | 3,340 | 2,634 |
|
|
5905
|
+
| \`popover\` | 75,869 | 25,976 | 23,248 | 12,518 | 3,218 | 2,496 |
|
|
5906
|
+
| \`progress\` | 42,580 | 14,721 | 13,279 | 10,992 | 2,759 | 2,362 |
|
|
5907
|
+
| \`qr-code\` | 49,514 | 18,684 | 16,872 | 18,653 | 6,772 | 5,678 |
|
|
5908
|
+
| \`quick-filters\` | 48,931 | 17,681 | 15,951 | 10,896 | 3,318 | 2,701 |
|
|
5909
|
+
| \`quote\` | 27,851 | 10,644 | 9,584 | 1,746 | 694 | 476 |
|
|
5910
|
+
| \`radio\` | 57,401 | 18,004 | 16,181 | 13,636 | 3,076 | 2,451 |
|
|
5911
|
+
| \`rating\` | 62,174 | 20,896 | 18,817 | 14,042 | 4,084 | 3,242 |
|
|
5912
|
+
| \`reveal\` | 26,361 | 9,982 | 8,987 | 1,305 | 379 | 358 |
|
|
5913
|
+
| \`rotating-text\` | 29,571 | 11,031 | 9,924 | 2,970 | 931 | 712 |
|
|
5914
|
+
| \`sandbox\` | 224,059 | 64,015 | 54,834 | 159,630 | 41,480 | 33,412 |
|
|
5915
|
+
| \`scatter-chart\` | 126,065 | 41,312 | 36,850 | 35,759 | 9,738 | 8,125 |
|
|
5916
|
+
| \`scroll-area\` | 43,992 | 14,264 | 12,852 | 16,992 | 4,112 | 3,331 |
|
|
5917
|
+
| \`scroll-progress\` | 28,153 | 10,614 | 9,532 | 2,389 | 811 | 662 |
|
|
5918
|
+
| \`select\` | 162,530 | 50,778 | 44,617 | 53,020 | 13,290 | 10,801 |
|
|
5919
|
+
| \`selection-bar\` | 35,103 | 13,297 | 11,976 | 4,529 | 1,465 | 1,288 |
|
|
5920
|
+
| \`shimmer-text\` | 26,928 | 10,186 | 9,187 | 1,500 | 453 | 441 |
|
|
5921
|
+
| \`shine\` | 28,286 | 10,665 | 9,600 | 2,052 | 682 | 611 |
|
|
5922
|
+
| \`shortcut-overlay\` | 67,617 | 22,185 | 19,886 | 24,082 | 6,191 | 4,987 |
|
|
5923
|
+
| \`skeleton\` | 35,927 | 12,782 | 11,536 | 9,625 | 2,756 | 2,347 |
|
|
5924
|
+
| \`skip-link\` | 30,427 | 11,453 | 10,269 | 2,889 | 989 | 698 |
|
|
5925
|
+
| \`slider\` | 77,267 | 22,528 | 20,355 | 31,522 | 6,580 | 5,499 |
|
|
5926
|
+
| \`sliding-number\` | 31,421 | 12,114 | 10,911 | 3,547 | 1,403 | 1,332 |
|
|
5927
|
+
| \`sparkline\` | 63,466 | 21,693 | 19,589 | 15,882 | 4,604 | 3,688 |
|
|
5928
|
+
| \`spatial-bar-chart\` | 144,372 | 48,091 | 42,787 | 45,742 | 13,119 | 11,156 |
|
|
5929
|
+
| \`spatial-heatmap\` | 144,531 | 46,948 | 41,730 | 47,289 | 12,922 | 10,739 |
|
|
5930
|
+
| \`spatial-ribbon-chart\` | 133,388 | 44,477 | 39,575 | 36,789 | 10,592 | 8,717 |
|
|
5931
|
+
| \`spatial-scatter-chart\` | 131,525 | 43,678 | 38,831 | 34,971 | 9,800 | 8,065 |
|
|
5932
|
+
| \`spatial-surface-chart\` | 133,262 | 44,731 | 39,945 | 36,656 | 10,784 | 8,931 |
|
|
5933
|
+
| \`spatial-treemap\` | 135,600 | 45,563 | 40,496 | 37,308 | 10,860 | 9,005 |
|
|
5934
|
+
| \`speed-dial\` | 82,327 | 27,808 | 24,923 | 18,933 | 4,496 | 3,590 |
|
|
5935
|
+
| \`splitter\` | 58,769 | 18,704 | 16,932 | 23,812 | 5,578 | 4,609 |
|
|
5936
|
+
| \`stat\` | 40,886 | 14,398 | 13,012 | 11,338 | 3,226 | 2,663 |
|
|
5937
|
+
| \`steps\` | 80,697 | 24,434 | 21,876 | 34,631 | 7,669 | 6,349 |
|
|
5938
|
+
| \`strands\` | 69,907 | 25,457 | 22,652 | 39,932 | 14,047 | 12,255 |
|
|
5939
|
+
| \`switch\` | 51,624 | 16,920 | 15,209 | 8,478 | 2,160 | 1,725 |
|
|
5940
|
+
| \`table\` | 163,170 | 46,509 | 40,839 | 76,869 | 17,962 | 14,765 |
|
|
5941
|
+
| \`table-export\` | 92,502 | 26,088 | 23,402 | 40,141 | 8,256 | 6,709 |
|
|
5942
|
+
| \`tabs\` | 69,538 | 21,305 | 19,171 | 26,609 | 6,087 | 5,002 |
|
|
5943
|
+
| \`tag\` | 59,925 | 20,607 | 18,575 | 15,340 | 4,081 | 3,236 |
|
|
5944
|
+
| \`terminal\` | 188,591 | 51,265 | 45,049 | 100,436 | 19,917 | 16,263 |
|
|
5945
|
+
| \`text\` | 33,565 | 11,572 | 10,393 | 7,248 | 1,499 | 1,186 |
|
|
5946
|
+
| \`textarea\` | 77,629 | 25,417 | 22,866 | 19,896 | 5,609 | 4,587 |
|
|
5947
|
+
| \`theme-toggle\` | 34,106 | 12,911 | 11,619 | 3,967 | 1,384 | 1,104 |
|
|
5948
|
+
| \`tilt\` | 28,304 | 10,652 | 9,570 | 1,244 | 420 | 398 |
|
|
5949
|
+
| \`time-input\` | 246,270 | 71,222 | 61,850 | 100,253 | 22,788 | 18,646 |
|
|
5950
|
+
| \`time-picker\` | 148,402 | 44,412 | 39,095 | 63,177 | 15,672 | 12,937 |
|
|
5951
|
+
| \`timeline\` | 49,559 | 17,278 | 15,539 | 11,437 | 2,814 | 2,309 |
|
|
5952
|
+
| \`toast\` | 98,678 | 29,879 | 26,637 | 43,622 | 10,279 | 8,562 |
|
|
5953
|
+
| \`toggle\` | 60,353 | 19,260 | 17,356 | 13,261 | 3,486 | 2,930 |
|
|
5954
|
+
| \`toolbar\` | 43,378 | 14,751 | 13,264 | 7,288 | 1,650 | 1,341 |
|
|
5955
|
+
| \`tooltip\` | 69,419 | 23,977 | 21,572 | 12,988 | 3,340 | 2,761 |
|
|
5956
|
+
| \`tour\` | 105,940 | 33,500 | 30,004 | 35,970 | 8,460 | 6,860 |
|
|
5957
|
+
| \`tree\` | 117,767 | 34,701 | 30,877 | 43,966 | 10,248 | 8,461 |
|
|
5958
|
+
| \`trend\` | 38,956 | 14,618 | 13,185 | 5,575 | 1,731 | 1,428 |
|
|
5959
|
+
| \`video\` | 181,706 | 52,159 | 46,097 | 97,996 | 22,399 | 18,724 |
|
|
5960
|
+
| \`video-playlist\` | 160,138 | 48,297 | 42,754 | 68,415 | 16,054 | 13,506 |
|
|
5961
|
+
| \`view-panel\` | 91,950 | 26,670 | 23,878 | 38,616 | 8,318 | 6,820 |
|
|
5962
|
+
| \`virtual-list\` | 74,559 | 24,536 | 22,167 | 27,531 | 8,054 | 6,760 |
|
|
5963
|
+
| \`voice-level\` | 38,486 | 14,100 | 12,763 | 7,529 | 2,519 | 2,067 |
|
|
5964
5964
|
|
|
5965
5965
|
## What an install adds to \`node_modules\`
|
|
5966
5966
|
|
|
@@ -5973,7 +5973,7 @@ without its whitespace, and the sizes count each one that way.
|
|
|
5973
5973
|
|
|
5974
5974
|
| Package | Unpacked | Files | Source maps stripped | Runtime dependencies |
|
|
5975
5975
|
|---|---|---|---|---|
|
|
5976
|
-
| \`@fusion.dev/helix-core\` | 2,
|
|
5976
|
+
| \`@fusion.dev/helix-core\` | 2,414,266 | 523 | 918,547 | \`@floating-ui/dom\`, \`@fusion.dev/helix-icons\`, \`tslib\` |
|
|
5977
5977
|
| \`@fusion.dev/helix-headless\` | 24,851,743 | 1,156 | 3,202,837 | \`@fusion.dev/helix-core\`, \`@fusion.dev/helix-icons\`, \`tslib\`, \`uqr\` |
|
|
5978
5978
|
| \`@fusion.dev/helix-icons\` | 210,151 | 22 | 65,060 | \`svgo\` |
|
|
5979
5979
|
| \`@fusion.dev/helix-styles\` | 173,619 | 7 | 0 | none |
|
|
@@ -5990,7 +5990,7 @@ We list these gaps so you know what the numbers above leave out.
|
|
|
5990
5990
|
- **No per-component stylesheet bytes.** Each family's CSS is compiled into its JavaScript, so every number above already includes it. \`elements.css\` is the light-DOM layer, and it is in the stylesheet table.
|
|
5991
5991
|
`,
|
|
5992
5992
|
motion: `---
|
|
5993
|
-
description: The duration and easing tokens,
|
|
5993
|
+
description: The duration and easing tokens, how components handle reduced motion, and the functions that move your own elements.
|
|
5994
5994
|
section: Foundations
|
|
5995
5995
|
title: Motion
|
|
5996
5996
|
---
|
|
@@ -6261,6 +6261,143 @@ It names the way for the length of the move, changes the page at once under
|
|
|
6261
6261
|
reduced motion or where the browser has no view transitions, and rejects
|
|
6262
6262
|
where the change does. To keep a header still while the rest of the page
|
|
6263
6263
|
moves, give it a \`view-transition-name\` of its own on every page.
|
|
6264
|
+
|
|
6265
|
+
## Motion on your own elements
|
|
6266
|
+
|
|
6267
|
+
Four functions in \`@fusion.dev/helix-core\` give elements you write yourself
|
|
6268
|
+
the motion Helix's own families have, with no component around them:
|
|
6269
|
+
|
|
6270
|
+
- \`moveItems\` slides the items of a list to their new places.
|
|
6271
|
+
- \`trackIndicator\` sends one mark from item to item.
|
|
6272
|
+
- \`countTo\` counts a figure to a new number.
|
|
6273
|
+
- \`followPointer\` writes where a mouse or pen is over an element.
|
|
6274
|
+
|
|
6275
|
+
Each one works on any element, in any framework, and needs no Helix
|
|
6276
|
+
stylesheet. Times and curves default to the tokens above, and to the values
|
|
6277
|
+
those tokens hold where the page does not load them. Under reduced motion
|
|
6278
|
+
nothing moves, the figure changes at once, and the pointer is not followed.
|
|
6279
|
+
\`moveItems\`, \`followPointer\`, and \`trackIndicator\` return the way to stop.
|
|
6280
|
+
|
|
6281
|
+
### Items that move
|
|
6282
|
+
|
|
6283
|
+
\`moveItems\` watches an element's children. When you or your framework add,
|
|
6284
|
+
remove, reorder, or hide them, each item slides from its old place to its new
|
|
6285
|
+
one, and an item you add fades in:
|
|
6286
|
+
|
|
6287
|
+
\`\`\`js
|
|
6288
|
+
import { moveItems } from '@fusion.dev/helix-core'
|
|
6289
|
+
|
|
6290
|
+
const stop = moveItems(document.querySelector('#tasks'), {
|
|
6291
|
+
leaving: document.querySelector('#tasks-box'),
|
|
6292
|
+
})
|
|
6293
|
+
\`\`\`
|
|
6294
|
+
|
|
6295
|
+
| Option | Default |
|
|
6296
|
+
| --- | --- |
|
|
6297
|
+
| \`items\`, a selector or a function returning the items | the element's children |
|
|
6298
|
+
| \`duration\`, in milliseconds, as a time, or as a custom property | \`--helix-duration-normal\` |
|
|
6299
|
+
| \`easing\`, a curve or a custom property | \`--helix-easing-standard\` |
|
|
6300
|
+
| \`leaving\`, a positioned box around the element | none, so an item that leaves is gone at once |
|
|
6301
|
+
| \`arriveIntoEmpty\`, so the first item into an empty list fades in | \`false\` |
|
|
6302
|
+
|
|
6303
|
+
A copy of an item that leaves fades out where it was, in the \`leaving\` box.
|
|
6304
|
+
The copy never joins the element's own children, which your framework
|
|
6305
|
+
manages, so give the box \`position: relative\` and put the list inside it.
|
|
6306
|
+
When every item is new at once, as when a framework draws the whole list
|
|
6307
|
+
again, the list appears without moving.
|
|
6308
|
+
|
|
6309
|
+
### A mark that travels
|
|
6310
|
+
|
|
6311
|
+
\`trackIndicator\` places one mark on the item that is marked now, and places it
|
|
6312
|
+
again whenever an attribute inside the element changes, an item arrives or
|
|
6313
|
+
leaves, or the element changes size:
|
|
6314
|
+
|
|
6315
|
+
\`\`\`js
|
|
6316
|
+
import { trackIndicator } from '@fusion.dev/helix-core'
|
|
6317
|
+
|
|
6318
|
+
trackIndicator(document.querySelector('nav'), {
|
|
6319
|
+
active: '[aria-current="page"]',
|
|
6320
|
+
indicator: document.querySelector('nav .mark'),
|
|
6321
|
+
})
|
|
6322
|
+
\`\`\`
|
|
6323
|
+
|
|
6324
|
+
It writes four custom properties on the mark: \`--indicator-x\`,
|
|
6325
|
+
\`--indicator-y\`, \`--indicator-inline-size\`, and \`--indicator-block-size\`.
|
|
6326
|
+
Your stylesheet moves the mark with them, so its transition is the move:
|
|
6327
|
+
|
|
6328
|
+
\`\`\`css
|
|
6329
|
+
nav {
|
|
6330
|
+
position: relative;
|
|
6331
|
+
}
|
|
6332
|
+
|
|
6333
|
+
nav .mark {
|
|
6334
|
+
block-size: var(--indicator-block-size, 0);
|
|
6335
|
+
inline-size: var(--indicator-inline-size, 0);
|
|
6336
|
+
inset-block-start: 0;
|
|
6337
|
+
inset-inline-start: 0;
|
|
6338
|
+
opacity: 0;
|
|
6339
|
+
position: absolute;
|
|
6340
|
+
transition:
|
|
6341
|
+
translate var(--helix-duration-normal) var(--helix-easing-emphasized),
|
|
6342
|
+
inline-size var(--helix-duration-normal) var(--helix-easing-emphasized),
|
|
6343
|
+
opacity var(--helix-duration-fast);
|
|
6344
|
+
translate: var(--indicator-x, 0) var(--indicator-y, 0);
|
|
6345
|
+
}
|
|
6346
|
+
|
|
6347
|
+
nav .mark[data-placed] {
|
|
6348
|
+
opacity: 1;
|
|
6349
|
+
}
|
|
6350
|
+
\`\`\`
|
|
6351
|
+
|
|
6352
|
+
\`data-placed\` is on the mark once it has a place, so it fades in where it
|
|
6353
|
+
belongs. \`data-moving\` is on it while it travels. With nothing marked, the
|
|
6354
|
+
mark loses \`data-placed\`. Call \`place()\` on what it returns after a change it
|
|
6355
|
+
cannot see, such as a new stylesheet, and \`stop()\` to end it.
|
|
6356
|
+
|
|
6357
|
+
### A figure that counts
|
|
6358
|
+
|
|
6359
|
+
\`countTo\` counts the number an element shows to a new one, and resolves once
|
|
6360
|
+
the new figure is written:
|
|
6361
|
+
|
|
6362
|
+
\`\`\`js
|
|
6363
|
+
import { countTo } from '@fusion.dev/helix-core'
|
|
6364
|
+
|
|
6365
|
+
await countTo(document.querySelector('#revenue'), 1284)
|
|
6366
|
+
\`\`\`
|
|
6367
|
+
|
|
6368
|
+
It counts from the number last counted to, or from the number the element's
|
|
6369
|
+
text reads. Pass \`from\` the first time for a figure written with grouping in
|
|
6370
|
+
another language. The figure is written in the element's language, or with
|
|
6371
|
+
\`format\`, which takes the number and returns its text. The count takes
|
|
6372
|
+
\`--helix-duration-slow\` along \`--helix-easing-decelerate\`, and a new count
|
|
6373
|
+
started during one carries on from the figure drawn.
|
|
6374
|
+
|
|
6375
|
+
The element's text changes on every frame, so keep it out of a live region and
|
|
6376
|
+
tell screen reader users the new number another way.
|
|
6377
|
+
|
|
6378
|
+
### Following the pointer
|
|
6379
|
+
|
|
6380
|
+
\`followPointer\` writes \`--pointer-x\` and \`--pointer-y\` on an element while a
|
|
6381
|
+
mouse or pen is over it, each from -1 to 1, with 0 and 0 in the middle. A
|
|
6382
|
+
right-to-left page mirrors \`--pointer-x\`. The two go when the pointer leaves,
|
|
6383
|
+
so give them \`0\` as the fallback:
|
|
6384
|
+
|
|
6385
|
+
\`\`\`js
|
|
6386
|
+
import { followPointer } from '@fusion.dev/helix-core'
|
|
6387
|
+
|
|
6388
|
+
followPointer(document.querySelector('.card'))
|
|
6389
|
+
\`\`\`
|
|
6390
|
+
|
|
6391
|
+
\`\`\`css
|
|
6392
|
+
.card {
|
|
6393
|
+
rotate: x calc(var(--pointer-y, 0) * -6deg);
|
|
6394
|
+
transition: rotate var(--helix-duration-normal) var(--helix-easing-standard);
|
|
6395
|
+
}
|
|
6396
|
+
\`\`\`
|
|
6397
|
+
|
|
6398
|
+
\`data-following\` is on the element while the two are written. A touch is not
|
|
6399
|
+
followed, since a finger is on the element only while it presses. Pass \`moved\`
|
|
6400
|
+
and \`left\` to hear the same positions in script.
|
|
6264
6401
|
`,
|
|
6265
6402
|
'other-frameworks': `---
|
|
6266
6403
|
description: The three rules for using Helix in any framework, and how each framework applies them.
|