@fusion.dev/helix-docs 0.114.0 → 0.115.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/maps.mdx +23 -0
- package/content/metrics.mdx +8 -8
- package/dist/sources.generated.js +31 -8
- package/package.json +9 -9
package/content/maps.mdx
CHANGED
|
@@ -325,6 +325,29 @@ service such as OSRM or Valhalla.
|
|
|
325
325
|
- `distancesAlong(points)` measures a route the same way the connector does, so
|
|
326
326
|
something you move along the route and the lighter part stay in step.
|
|
327
327
|
|
|
328
|
+
An area is a shape, such as a delivery zone or a search sector. Set `caption` to
|
|
329
|
+
write a few words on the map with it:
|
|
330
|
+
|
|
331
|
+
```html
|
|
332
|
+
<helix-map-area
|
|
333
|
+
caption="A"
|
|
334
|
+
label="Sector A"
|
|
335
|
+
points="30.2693,-97.7745 30.2693,-97.7700 30.2655,-97.7700 30.2655,-97.7745"
|
|
336
|
+
tone="success"
|
|
337
|
+
></helix-map-area>
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
The caption stands inside the area, at the point furthest from its edges. Set
|
|
341
|
+
`caption-placement="outside"` to stand it above the area's northernmost point
|
|
342
|
+
instead, clear of what the area holds. It is drawn in the area's color, brought
|
|
343
|
+
toward the theme's text color until it reaches a 4.5:1 contrast ratio against
|
|
344
|
+
the map, with a halo of the map's land around it. A caption is drawn, not
|
|
345
|
+
focusable, so it adds nothing to the tab order. A screen reader hears the area's
|
|
346
|
+
`label` in the frame's list of layers.
|
|
347
|
+
|
|
348
|
+
On Leaflet, pass `L`, as `leafletDriver(map, L)`, and the caption is drawn as a
|
|
349
|
+
marker that nobody can press or reach with the keyboard.
|
|
350
|
+
|
|
328
351
|
### Live positions
|
|
329
352
|
|
|
330
353
|
```html
|
package/content/metrics.mdx
CHANGED
|
@@ -58,10 +58,10 @@ either barrel. The per-component tables show what your page pays.
|
|
|
58
58
|
| Package | Raw | Gzip | Brotli | |
|
|
59
59
|
|---|---|---|---|---|
|
|
60
60
|
| `@fusion.dev/helix-core` | 177,240 | 56,685 | 48,188 | The element base class, mixins, decorators, and floating positioning. |
|
|
61
|
-
| `@fusion.dev/helix-headless` | 726,
|
|
61
|
+
| `@fusion.dev/helix-headless` | 726,678 | 188,232 | 146,411 | Every headless family. The barrel entry includes all of them. |
|
|
62
62
|
| `@fusion.dev/helix-icons` | 55,565 | 17,727 | 14,864 | The whole glyph set. |
|
|
63
63
|
| `@fusion.dev/helix-theme` | 3,626 | 1,597 | 1,384 | The derivation engine. Most sites run it at build time, and a theme switcher runs it in the browser. |
|
|
64
|
-
| `@fusion.dev/helix` | 1,259,
|
|
64
|
+
| `@fusion.dev/helix` | 1,259,606 | 294,810 | 216,375 | Every styled family. |
|
|
65
65
|
| `lit` | 15,394 | 6,118 | 5,460 | Lit itself, listed so you can subtract it from every row above. |
|
|
66
66
|
|
|
67
67
|
## Stylesheets
|
|
@@ -84,9 +84,9 @@ shows the whole cost of using the base layer on its own.
|
|
|
84
84
|
|
|
85
85
|
**Most of your first component is the shared runtime.** The median styled family is 20,629 bytes gzipped alone, and it adds 2,221 to a page that already has Helix. The shared runtime is 89 percent of the first component, and the component itself is 11 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.
|
|
86
86
|
|
|
87
|
-
Across the 103 styled components, the smallest is `code` at 9,802 bytes gzipped alone, and the largest is `data-table` at 63,637. Every family together is 294,
|
|
87
|
+
Across the 103 styled components, the smallest is `code` at 9,802 bytes gzipped alone, and the largest is `data-table` at 63,637. Every family together is 294,810.
|
|
88
88
|
|
|
89
|
-
No family imports a barrel. The `barrels` rule in `fusion 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 188,
|
|
89
|
+
No family imports a barrel. The `barrels` rule in `fusion 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 188,232 bytes gzipped, whatever else the page imports. That is 9 times the median family above. All 103 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.
|
|
90
90
|
|
|
91
91
|
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,082 bytes gzipped alone.
|
|
92
92
|
|
|
@@ -230,7 +230,7 @@ Structure, accessibility, state, and form participation. It has no presentation
|
|
|
230
230
|
| `list` | 32,717 | 10,112 | 8,882 | 1,726 | 351 | 261 |
|
|
231
231
|
| `listbox` | 107,105 | 34,377 | 27,998 | 11,262 | 3,083 | 2,411 |
|
|
232
232
|
| `loader` | 31,901 | 10,048 | 8,837 | 900 | 227 | 50 |
|
|
233
|
-
| `map` | 127,
|
|
233
|
+
| `map` | 127,334 | 38,435 | 31,828 | 32,702 | 7,603 | 6,264 |
|
|
234
234
|
| `megamenu` | 62,159 | 20,749 | 18,373 | 4,941 | 1,351 | 966 |
|
|
235
235
|
| `menu` | 125,881 | 41,816 | 35,009 | 8,855 | 2,228 | 1,664 |
|
|
236
236
|
| `meter` | 35,091 | 10,894 | 9,614 | 4,099 | 1,059 | 815 |
|
|
@@ -337,7 +337,7 @@ The headless tier plus presentation. `bun add @fusion.dev/helix` installs this t
|
|
|
337
337
|
| `list` | 36,783 | 11,064 | 9,720 | 5,782 | 1,298 | 1,049 |
|
|
338
338
|
| `listbox` | 111,622 | 35,424 | 28,887 | 15,768 | 4,115 | 3,277 |
|
|
339
339
|
| `loader` | 35,067 | 10,812 | 9,512 | 4,051 | 995 | 760 |
|
|
340
|
-
| `map` | 162,
|
|
340
|
+
| `map` | 162,694 | 43,806 | 36,410 | 68,047 | 13,080 | 10,800 |
|
|
341
341
|
| `megamenu` | 67,040 | 21,815 | 19,332 | 9,805 | 2,410 | 1,905 |
|
|
342
342
|
| `menu` | 133,408 | 43,467 | 36,434 | 16,362 | 3,837 | 3,129 |
|
|
343
343
|
| `meter` | 40,489 | 12,037 | 10,612 | 9,479 | 2,219 | 1,827 |
|
|
@@ -399,11 +399,11 @@ stripped column shows the bytes we removed.
|
|
|
399
399
|
| Package | Unpacked | Files | Source maps stripped | Runtime dependencies |
|
|
400
400
|
|---|---|---|---|---|
|
|
401
401
|
| `@fusion.dev/helix-core` | 1,145,832 | 169 | 254,745 | `@floating-ui/dom`, `@fusion.dev/helix-icons` |
|
|
402
|
-
| `@fusion.dev/helix-headless` | 13,
|
|
402
|
+
| `@fusion.dev/helix-headless` | 13,183,914 | 504 | 1,051,839 | `@fusion.dev/helix-core`, `@fusion.dev/helix-icons`, `uqr` |
|
|
403
403
|
| `@fusion.dev/helix-icons` | 150,162 | 21 | 50,346 | `svgo` |
|
|
404
404
|
| `@fusion.dev/helix-styles` | 102,108 | 6 | 0 | none |
|
|
405
405
|
| `@fusion.dev/helix-theme` | 500,416 | 8 | 5,191 | none |
|
|
406
|
-
| `@fusion.dev/helix` | 14,
|
|
406
|
+
| `@fusion.dev/helix` | 14,319,594 | 870 | 371,466 | `@fusion.dev/helix-core`, `@fusion.dev/helix-headless`, `@fusion.dev/helix-styles` |
|
|
407
407
|
|
|
408
408
|
## Not measured yet
|
|
409
409
|
|
|
@@ -2604,6 +2604,29 @@ service such as OSRM or Valhalla.
|
|
|
2604
2604
|
- \`distancesAlong(points)\` measures a route the same way the connector does, so
|
|
2605
2605
|
something you move along the route and the lighter part stay in step.
|
|
2606
2606
|
|
|
2607
|
+
An area is a shape, such as a delivery zone or a search sector. Set \`caption\` to
|
|
2608
|
+
write a few words on the map with it:
|
|
2609
|
+
|
|
2610
|
+
\`\`\`html
|
|
2611
|
+
<helix-map-area
|
|
2612
|
+
caption="A"
|
|
2613
|
+
label="Sector A"
|
|
2614
|
+
points="30.2693,-97.7745 30.2693,-97.7700 30.2655,-97.7700 30.2655,-97.7745"
|
|
2615
|
+
tone="success"
|
|
2616
|
+
></helix-map-area>
|
|
2617
|
+
\`\`\`
|
|
2618
|
+
|
|
2619
|
+
The caption stands inside the area, at the point furthest from its edges. Set
|
|
2620
|
+
\`caption-placement="outside"\` to stand it above the area's northernmost point
|
|
2621
|
+
instead, clear of what the area holds. It is drawn in the area's color, brought
|
|
2622
|
+
toward the theme's text color until it reaches a 4.5:1 contrast ratio against
|
|
2623
|
+
the map, with a halo of the map's land around it. A caption is drawn, not
|
|
2624
|
+
focusable, so it adds nothing to the tab order. A screen reader hears the area's
|
|
2625
|
+
\`label\` in the frame's list of layers.
|
|
2626
|
+
|
|
2627
|
+
On Leaflet, pass \`L\`, as \`leafletDriver(map, L)\`, and the caption is drawn as a
|
|
2628
|
+
marker that nobody can press or reach with the keyboard.
|
|
2629
|
+
|
|
2607
2630
|
### Live positions
|
|
2608
2631
|
|
|
2609
2632
|
\`\`\`html
|
|
@@ -2906,10 +2929,10 @@ either barrel. The per-component tables show what your page pays.
|
|
|
2906
2929
|
| Package | Raw | Gzip | Brotli | |
|
|
2907
2930
|
|---|---|---|---|---|
|
|
2908
2931
|
| \`@fusion.dev/helix-core\` | 177,240 | 56,685 | 48,188 | The element base class, mixins, decorators, and floating positioning. |
|
|
2909
|
-
| \`@fusion.dev/helix-headless\` | 726,
|
|
2932
|
+
| \`@fusion.dev/helix-headless\` | 726,678 | 188,232 | 146,411 | Every headless family. The barrel entry includes all of them. |
|
|
2910
2933
|
| \`@fusion.dev/helix-icons\` | 55,565 | 17,727 | 14,864 | The whole glyph set. |
|
|
2911
2934
|
| \`@fusion.dev/helix-theme\` | 3,626 | 1,597 | 1,384 | The derivation engine. Most sites run it at build time, and a theme switcher runs it in the browser. |
|
|
2912
|
-
| \`@fusion.dev/helix\` | 1,259,
|
|
2935
|
+
| \`@fusion.dev/helix\` | 1,259,606 | 294,810 | 216,375 | Every styled family. |
|
|
2913
2936
|
| \`lit\` | 15,394 | 6,118 | 5,460 | Lit itself, listed so you can subtract it from every row above. |
|
|
2914
2937
|
|
|
2915
2938
|
## Stylesheets
|
|
@@ -2932,9 +2955,9 @@ shows the whole cost of using the base layer on its own.
|
|
|
2932
2955
|
|
|
2933
2956
|
**Most of your first component is the shared runtime.** The median styled family is 20,629 bytes gzipped alone, and it adds 2,221 to a page that already has Helix. The shared runtime is 89 percent of the first component, and the component itself is 11 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.
|
|
2934
2957
|
|
|
2935
|
-
Across the 103 styled components, the smallest is \`code\` at 9,802 bytes gzipped alone, and the largest is \`data-table\` at 63,637. Every family together is 294,
|
|
2958
|
+
Across the 103 styled components, the smallest is \`code\` at 9,802 bytes gzipped alone, and the largest is \`data-table\` at 63,637. Every family together is 294,810.
|
|
2936
2959
|
|
|
2937
|
-
No family imports a barrel. The \`barrels\` rule in \`fusion 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 188,
|
|
2960
|
+
No family imports a barrel. The \`barrels\` rule in \`fusion 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 188,232 bytes gzipped, whatever else the page imports. That is 9 times the median family above. All 103 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.
|
|
2938
2961
|
|
|
2939
2962
|
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,082 bytes gzipped alone.
|
|
2940
2963
|
|
|
@@ -3078,7 +3101,7 @@ Structure, accessibility, state, and form participation. It has no presentation
|
|
|
3078
3101
|
| \`list\` | 32,717 | 10,112 | 8,882 | 1,726 | 351 | 261 |
|
|
3079
3102
|
| \`listbox\` | 107,105 | 34,377 | 27,998 | 11,262 | 3,083 | 2,411 |
|
|
3080
3103
|
| \`loader\` | 31,901 | 10,048 | 8,837 | 900 | 227 | 50 |
|
|
3081
|
-
| \`map\` | 127,
|
|
3104
|
+
| \`map\` | 127,334 | 38,435 | 31,828 | 32,702 | 7,603 | 6,264 |
|
|
3082
3105
|
| \`megamenu\` | 62,159 | 20,749 | 18,373 | 4,941 | 1,351 | 966 |
|
|
3083
3106
|
| \`menu\` | 125,881 | 41,816 | 35,009 | 8,855 | 2,228 | 1,664 |
|
|
3084
3107
|
| \`meter\` | 35,091 | 10,894 | 9,614 | 4,099 | 1,059 | 815 |
|
|
@@ -3185,7 +3208,7 @@ The headless tier plus presentation. \`bun add @fusion.dev/helix\` installs this
|
|
|
3185
3208
|
| \`list\` | 36,783 | 11,064 | 9,720 | 5,782 | 1,298 | 1,049 |
|
|
3186
3209
|
| \`listbox\` | 111,622 | 35,424 | 28,887 | 15,768 | 4,115 | 3,277 |
|
|
3187
3210
|
| \`loader\` | 35,067 | 10,812 | 9,512 | 4,051 | 995 | 760 |
|
|
3188
|
-
| \`map\` | 162,
|
|
3211
|
+
| \`map\` | 162,694 | 43,806 | 36,410 | 68,047 | 13,080 | 10,800 |
|
|
3189
3212
|
| \`megamenu\` | 67,040 | 21,815 | 19,332 | 9,805 | 2,410 | 1,905 |
|
|
3190
3213
|
| \`menu\` | 133,408 | 43,467 | 36,434 | 16,362 | 3,837 | 3,129 |
|
|
3191
3214
|
| \`meter\` | 40,489 | 12,037 | 10,612 | 9,479 | 2,219 | 1,827 |
|
|
@@ -3247,11 +3270,11 @@ stripped column shows the bytes we removed.
|
|
|
3247
3270
|
| Package | Unpacked | Files | Source maps stripped | Runtime dependencies |
|
|
3248
3271
|
|---|---|---|---|---|
|
|
3249
3272
|
| \`@fusion.dev/helix-core\` | 1,145,832 | 169 | 254,745 | \`@floating-ui/dom\`, \`@fusion.dev/helix-icons\` |
|
|
3250
|
-
| \`@fusion.dev/helix-headless\` | 13,
|
|
3273
|
+
| \`@fusion.dev/helix-headless\` | 13,183,914 | 504 | 1,051,839 | \`@fusion.dev/helix-core\`, \`@fusion.dev/helix-icons\`, \`uqr\` |
|
|
3251
3274
|
| \`@fusion.dev/helix-icons\` | 150,162 | 21 | 50,346 | \`svgo\` |
|
|
3252
3275
|
| \`@fusion.dev/helix-styles\` | 102,108 | 6 | 0 | none |
|
|
3253
3276
|
| \`@fusion.dev/helix-theme\` | 500,416 | 8 | 5,191 | none |
|
|
3254
|
-
| \`@fusion.dev/helix\` | 14,
|
|
3277
|
+
| \`@fusion.dev/helix\` | 14,319,594 | 870 | 371,466 | \`@fusion.dev/helix-core\`, \`@fusion.dev/helix-headless\`, \`@fusion.dev/helix-styles\` |
|
|
3255
3278
|
|
|
3256
3279
|
## Not measured yet
|
|
3257
3280
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion.dev/helix-docs",
|
|
3
3
|
"description": "Versioned documentation content and registry for Helix.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.115.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Ross Sheppard <ross.sheppard@fusion.dev>",
|
|
7
7
|
"repository": {
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
},
|
|
37
37
|
"bugs": "https://github.com/project-fusion/fusion/issues",
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@fusion.dev/helix": "0.
|
|
40
|
-
"@fusion.dev/helix-cem": "0.
|
|
41
|
-
"@fusion.dev/helix-headless": "0.
|
|
42
|
-
"@fusion.dev/helix-icons": "0.
|
|
43
|
-
"@fusion.dev/helix-map": "0.
|
|
44
|
-
"@fusion.dev/helix-styles": "0.
|
|
45
|
-
"@fusion.dev/helix-testing": "0.
|
|
46
|
-
"@fusion.dev/helix-theme": "0.
|
|
39
|
+
"@fusion.dev/helix": "0.115.0",
|
|
40
|
+
"@fusion.dev/helix-cem": "0.115.0",
|
|
41
|
+
"@fusion.dev/helix-headless": "0.115.0",
|
|
42
|
+
"@fusion.dev/helix-icons": "0.115.0",
|
|
43
|
+
"@fusion.dev/helix-map": "0.115.0",
|
|
44
|
+
"@fusion.dev/helix-styles": "0.115.0",
|
|
45
|
+
"@fusion.dev/helix-testing": "0.115.0",
|
|
46
|
+
"@fusion.dev/helix-theme": "0.115.0",
|
|
47
47
|
"@fusion.dev/scripts": "0.0.0-dev",
|
|
48
48
|
"lit": "^3.2.1",
|
|
49
49
|
"playwright": "^1.62.1"
|