@xtyle/core 0.6.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -10
- package/dist/algorithms/factory.d.ts +37 -1
- package/dist/algorithms/factory.d.ts.map +1 -1
- package/dist/algorithms/factory.js +407 -60
- package/dist/algorithms/factory.js.map +1 -1
- package/dist/audit.d.ts +36 -0
- package/dist/audit.d.ts.map +1 -1
- package/dist/audit.js +22 -0
- package/dist/audit.js.map +1 -1
- package/dist/authoring.d.ts +10 -1
- package/dist/authoring.d.ts.map +1 -1
- package/dist/authoring.js +6 -1
- package/dist/authoring.js.map +1 -1
- package/dist/baked.d.ts +14 -1
- package/dist/baked.d.ts.map +1 -1
- package/dist/baked.js +17 -0
- package/dist/baked.js.map +1 -1
- package/dist/batteries.js +11 -2
- package/dist/cli.js +58 -19
- package/dist/cli.js.map +1 -1
- package/dist/color.d.ts +6 -0
- package/dist/color.d.ts.map +1 -1
- package/dist/color.js +20 -0
- package/dist/color.js.map +1 -1
- package/dist/css/components/app-shell.d.ts.map +1 -1
- package/dist/css/components/app-shell.js +10 -0
- package/dist/css/components/app-shell.js.map +1 -1
- package/dist/css/components/avatar.d.ts.map +1 -1
- package/dist/css/components/avatar.js +8 -19
- package/dist/css/components/avatar.js.map +1 -1
- package/dist/css/components/badge.d.ts.map +1 -1
- package/dist/css/components/badge.js +3 -87
- package/dist/css/components/badge.js.map +1 -1
- package/dist/css/components/bottom-nav.d.ts +2 -0
- package/dist/css/components/bottom-nav.d.ts.map +1 -0
- package/dist/css/components/bottom-nav.js +72 -0
- package/dist/css/components/bottom-nav.js.map +1 -0
- package/dist/css/components/carousel.d.ts.map +1 -1
- package/dist/css/components/carousel.js +144 -1
- package/dist/css/components/carousel.js.map +1 -1
- package/dist/css/components/dialog.d.ts.map +1 -1
- package/dist/css/components/dialog.js +10 -4
- package/dist/css/components/dialog.js.map +1 -1
- package/dist/css/components/dot.d.ts +2 -0
- package/dist/css/components/dot.d.ts.map +1 -0
- package/dist/css/components/dot.js +72 -0
- package/dist/css/components/dot.js.map +1 -0
- package/dist/css/components/heatmap.d.ts.map +1 -1
- package/dist/css/components/heatmap.js +23 -0
- package/dist/css/components/heatmap.js.map +1 -1
- package/dist/css/components/image.d.ts.map +1 -1
- package/dist/css/components/image.js +41 -0
- package/dist/css/components/image.js.map +1 -1
- package/dist/css/components/mobile-shell.d.ts +2 -0
- package/dist/css/components/mobile-shell.d.ts.map +1 -0
- package/dist/css/components/mobile-shell.js +63 -0
- package/dist/css/components/mobile-shell.js.map +1 -0
- package/dist/css/components/panel.js +1 -1
- package/dist/css/components/qr.d.ts +2 -0
- package/dist/css/components/qr.d.ts.map +1 -0
- package/dist/css/components/qr.js +134 -0
- package/dist/css/components/qr.js.map +1 -0
- package/dist/css/components/radio.d.ts.map +1 -1
- package/dist/css/components/radio.js +49 -0
- package/dist/css/components/radio.js.map +1 -1
- package/dist/css/components/ribbon.d.ts +2 -0
- package/dist/css/components/ribbon.d.ts.map +1 -0
- package/dist/css/components/ribbon.js +65 -0
- package/dist/css/components/ribbon.js.map +1 -0
- package/dist/css/components/tree.d.ts.map +1 -1
- package/dist/css/components/tree.js +4 -1
- package/dist/css/components/tree.js.map +1 -1
- package/dist/css/components.d.ts.map +1 -1
- package/dist/css/components.js +14 -1
- package/dist/css/components.js.map +1 -1
- package/dist/css/index.d.ts +2 -0
- package/dist/css/index.d.ts.map +1 -1
- package/dist/css/index.js +2 -0
- package/dist/css/index.js.map +1 -1
- package/dist/elements/avatar.d.ts +18 -3
- package/dist/elements/avatar.d.ts.map +1 -1
- package/dist/elements/avatar.js +35 -6
- package/dist/elements/avatar.js.map +1 -1
- package/dist/elements/bottom-nav.d.ts +30 -0
- package/dist/elements/bottom-nav.d.ts.map +1 -0
- package/dist/elements/bottom-nav.js +114 -0
- package/dist/elements/bottom-nav.js.map +1 -0
- package/dist/elements/carousel.d.ts +61 -0
- package/dist/elements/carousel.d.ts.map +1 -1
- package/dist/elements/carousel.js +282 -22
- package/dist/elements/carousel.js.map +1 -1
- package/dist/elements/dialog.d.ts +3 -3
- package/dist/elements/dialog.d.ts.map +1 -1
- package/dist/elements/dialog.js.map +1 -1
- package/dist/elements/dot.d.ts +37 -0
- package/dist/elements/dot.d.ts.map +1 -0
- package/dist/elements/dot.js +104 -0
- package/dist/elements/dot.js.map +1 -0
- package/dist/elements/fragment-ssr.d.ts.map +1 -1
- package/dist/elements/fragment-ssr.js +10 -0
- package/dist/elements/fragment-ssr.js.map +1 -1
- package/dist/elements/fragments/avatar/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/avatar/source.generated.js +1 -1
- package/dist/elements/fragments/avatar/source.generated.js.map +1 -1
- package/dist/elements/fragments/badge/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/badge/source.generated.js +1 -1
- package/dist/elements/fragments/badge/source.generated.js.map +1 -1
- package/dist/elements/fragments/bottom-nav/source.generated.d.ts +25 -0
- package/dist/elements/fragments/bottom-nav/source.generated.d.ts.map +1 -0
- package/dist/elements/fragments/bottom-nav/source.generated.js +4 -0
- package/dist/elements/fragments/bottom-nav/source.generated.js.map +1 -0
- package/dist/elements/fragments/component-host.json +147 -77
- package/dist/elements/fragments/dot/source.generated.d.ts +25 -0
- package/dist/elements/fragments/dot/source.generated.d.ts.map +1 -0
- package/dist/elements/fragments/dot/source.generated.js +4 -0
- package/dist/elements/fragments/dot/source.generated.js.map +1 -0
- package/dist/elements/fragments/heatmap/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/heatmap/source.generated.js +1 -1
- package/dist/elements/fragments/heatmap/source.generated.js.map +1 -1
- package/dist/elements/fragments/icon/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/icon/source.generated.js +1 -1
- package/dist/elements/fragments/icon/source.generated.js.map +1 -1
- package/dist/elements/fragments/image/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/image/source.generated.js +1 -1
- package/dist/elements/fragments/image/source.generated.js.map +1 -1
- package/dist/elements/fragments/mobile-shell/source.generated.d.ts +25 -0
- package/dist/elements/fragments/mobile-shell/source.generated.d.ts.map +1 -0
- package/dist/elements/fragments/mobile-shell/source.generated.js +4 -0
- package/dist/elements/fragments/mobile-shell/source.generated.js.map +1 -0
- package/dist/elements/fragments/qr/source.generated.d.ts +25 -0
- package/dist/elements/fragments/qr/source.generated.d.ts.map +1 -0
- package/dist/elements/fragments/qr/source.generated.js +4 -0
- package/dist/elements/fragments/qr/source.generated.js.map +1 -0
- package/dist/elements/fragments/radio/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/radio/source.generated.js +1 -1
- package/dist/elements/fragments/radio/source.generated.js.map +1 -1
- package/dist/elements/fragments/ribbon/source.generated.d.ts +25 -0
- package/dist/elements/fragments/ribbon/source.generated.d.ts.map +1 -0
- package/dist/elements/fragments/ribbon/source.generated.js +4 -0
- package/dist/elements/fragments/ribbon/source.generated.js.map +1 -0
- package/dist/elements/fragments/segmented/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/segmented/source.generated.js +1 -1
- package/dist/elements/fragments/segmented/source.generated.js.map +1 -1
- package/dist/elements/fragments/slider/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/slider/source.generated.js +1 -1
- package/dist/elements/fragments/slider/source.generated.js.map +1 -1
- package/dist/elements/fragments/tree/source.generated.d.ts.map +1 -1
- package/dist/elements/fragments/tree/source.generated.js +1 -1
- package/dist/elements/fragments/tree/source.generated.js.map +1 -1
- package/dist/elements/heatmap.d.ts +14 -3
- package/dist/elements/heatmap.d.ts.map +1 -1
- package/dist/elements/heatmap.js +49 -18
- package/dist/elements/heatmap.js.map +1 -1
- package/dist/elements/image.d.ts +20 -1
- package/dist/elements/image.d.ts.map +1 -1
- package/dist/elements/image.js +171 -1
- package/dist/elements/image.js.map +1 -1
- package/dist/elements/index.d.ts +10 -0
- package/dist/elements/index.d.ts.map +1 -1
- package/dist/elements/index.js +10 -0
- package/dist/elements/index.js.map +1 -1
- package/dist/elements/mobile-shell.d.ts +24 -0
- package/dist/elements/mobile-shell.d.ts.map +1 -0
- package/dist/elements/mobile-shell.js +53 -0
- package/dist/elements/mobile-shell.js.map +1 -0
- package/dist/elements/qr.d.ts +65 -0
- package/dist/elements/qr.d.ts.map +1 -0
- package/dist/elements/qr.js +244 -0
- package/dist/elements/qr.js.map +1 -0
- package/dist/elements/radio.d.ts +1 -0
- package/dist/elements/radio.d.ts.map +1 -1
- package/dist/elements/radio.js +7 -1
- package/dist/elements/radio.js.map +1 -1
- package/dist/elements/ribbon.d.ts +36 -0
- package/dist/elements/ribbon.d.ts.map +1 -0
- package/dist/elements/ribbon.js +91 -0
- package/dist/elements/ribbon.js.map +1 -0
- package/dist/elements/segmented.d.ts.map +1 -1
- package/dist/elements/segmented.js +3 -0
- package/dist/elements/segmented.js.map +1 -1
- package/dist/elements/slider.d.ts +25 -1
- package/dist/elements/slider.d.ts.map +1 -1
- package/dist/elements/slider.js +122 -16
- package/dist/elements/slider.js.map +1 -1
- package/dist/elements/sparkline.d.ts +3 -1
- package/dist/elements/sparkline.d.ts.map +1 -1
- package/dist/elements/sparkline.js +13 -3
- package/dist/elements/sparkline.js.map +1 -1
- package/dist/emit/css.d.ts.map +1 -1
- package/dist/emit/css.js +5 -1
- package/dist/emit/css.js.map +1 -1
- package/dist/emit/index.d.ts +2 -1
- package/dist/emit/index.d.ts.map +1 -1
- package/dist/emit/index.js +3 -1
- package/dist/emit/index.js.map +1 -1
- package/dist/emit/monaco.d.ts.map +1 -1
- package/dist/emit/monaco.js +2 -18
- package/dist/emit/monaco.js.map +1 -1
- package/dist/emit/terminal.d.ts +9 -0
- package/dist/emit/terminal.d.ts.map +1 -0
- package/dist/emit/terminal.js +32 -0
- package/dist/emit/terminal.js.map +1 -0
- package/dist/gauntlet.d.ts.map +1 -1
- package/dist/gauntlet.js +26 -0
- package/dist/gauntlet.js.map +1 -1
- package/dist/host/algorithms-bundle.generated.d.ts.map +1 -1
- package/dist/host/algorithms-bundle.generated.js +1 -1
- package/dist/host/algorithms-bundle.generated.js.map +1 -1
- package/dist/host/authoring-prelude.generated.d.ts +1 -1
- package/dist/host/authoring-prelude.generated.d.ts.map +1 -1
- package/dist/host/authoring-prelude.generated.js +1 -1
- package/dist/host/authoring-prelude.generated.js.map +1 -1
- package/dist/host/index.d.ts.map +1 -1
- package/dist/host/index.js +12 -0
- package/dist/host/index.js.map +1 -1
- package/dist/host/registry.d.ts +34 -7
- package/dist/host/registry.d.ts.map +1 -1
- package/dist/host/registry.js +45 -11
- package/dist/host/registry.js.map +1 -1
- package/dist/icon-builder.d.ts +41 -0
- package/dist/icon-builder.d.ts.map +1 -1
- package/dist/icon-builder.js +129 -8
- package/dist/icon-builder.js.map +1 -1
- package/dist/icons.d.ts +1 -1
- package/dist/icons.d.ts.map +1 -1
- package/dist/icons.js +2 -0
- package/dist/icons.js.map +1 -1
- package/dist/index.d.ts +12 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/knobs.d.ts +22 -0
- package/dist/knobs.d.ts.map +1 -0
- package/dist/knobs.js +63 -0
- package/dist/knobs.js.map +1 -0
- package/dist/manifest/avatar.manifest.d.ts.map +1 -1
- package/dist/manifest/avatar.manifest.js +37 -17
- package/dist/manifest/avatar.manifest.js.map +1 -1
- package/dist/manifest/badge.manifest.js +1 -1
- package/dist/manifest/badge.manifest.js.map +1 -1
- package/dist/manifest/bottom-nav.manifest.d.ts +3 -0
- package/dist/manifest/bottom-nav.manifest.d.ts.map +1 -0
- package/dist/manifest/bottom-nav.manifest.js +149 -0
- package/dist/manifest/bottom-nav.manifest.js.map +1 -0
- package/dist/manifest/carousel.manifest.d.ts.map +1 -1
- package/dist/manifest/carousel.manifest.js +58 -4
- package/dist/manifest/carousel.manifest.js.map +1 -1
- package/dist/manifest/dialog.manifest.d.ts.map +1 -1
- package/dist/manifest/dialog.manifest.js +7 -4
- package/dist/manifest/dialog.manifest.js.map +1 -1
- package/dist/manifest/dot.manifest.d.ts +3 -0
- package/dist/manifest/dot.manifest.d.ts.map +1 -0
- package/dist/manifest/dot.manifest.js +172 -0
- package/dist/manifest/dot.manifest.js.map +1 -0
- package/dist/manifest/heatmap.manifest.d.ts.map +1 -1
- package/dist/manifest/heatmap.manifest.js +60 -2
- package/dist/manifest/heatmap.manifest.js.map +1 -1
- package/dist/manifest/icon.manifest.d.ts.map +1 -1
- package/dist/manifest/icon.manifest.js +28 -1
- package/dist/manifest/icon.manifest.js.map +1 -1
- package/dist/manifest/image.manifest.d.ts.map +1 -1
- package/dist/manifest/image.manifest.js +100 -1
- package/dist/manifest/image.manifest.js.map +1 -1
- package/dist/manifest/mobile-shell.manifest.d.ts +3 -0
- package/dist/manifest/mobile-shell.manifest.d.ts.map +1 -0
- package/dist/manifest/mobile-shell.manifest.js +177 -0
- package/dist/manifest/mobile-shell.manifest.js.map +1 -0
- package/dist/manifest/panel.manifest.d.ts.map +1 -1
- package/dist/manifest/panel.manifest.js +2 -1
- package/dist/manifest/panel.manifest.js.map +1 -1
- package/dist/manifest/qr.manifest.d.ts +3 -0
- package/dist/manifest/qr.manifest.d.ts.map +1 -0
- package/dist/manifest/qr.manifest.js +314 -0
- package/dist/manifest/qr.manifest.js.map +1 -0
- package/dist/manifest/radio.manifest.d.ts.map +1 -1
- package/dist/manifest/radio.manifest.js +54 -1
- package/dist/manifest/radio.manifest.js.map +1 -1
- package/dist/manifest/registry.d.ts.map +1 -1
- package/dist/manifest/registry.js +10 -0
- package/dist/manifest/registry.js.map +1 -1
- package/dist/manifest/ribbon.manifest.d.ts +3 -0
- package/dist/manifest/ribbon.manifest.d.ts.map +1 -0
- package/dist/manifest/ribbon.manifest.js +173 -0
- package/dist/manifest/ribbon.manifest.js.map +1 -0
- package/dist/manifest/segmented.manifest.js +5 -5
- package/dist/manifest/segmented.manifest.js.map +1 -1
- package/dist/manifest/slider.manifest.d.ts.map +1 -1
- package/dist/manifest/slider.manifest.js +62 -4
- package/dist/manifest/slider.manifest.js.map +1 -1
- package/dist/manifest/sparkline.manifest.d.ts.map +1 -1
- package/dist/manifest/sparkline.manifest.js +27 -1
- package/dist/manifest/sparkline.manifest.js.map +1 -1
- package/dist/manifest/tree.manifest.d.ts.map +1 -1
- package/dist/manifest/tree.manifest.js +24 -10
- package/dist/manifest/tree.manifest.js.map +1 -1
- package/dist/markup/avatar.d.ts +33 -0
- package/dist/markup/avatar.d.ts.map +1 -1
- package/dist/markup/avatar.js +55 -5
- package/dist/markup/avatar.js.map +1 -1
- package/dist/markup/bottom-nav.d.ts +11 -0
- package/dist/markup/bottom-nav.d.ts.map +1 -0
- package/dist/markup/bottom-nav.js +3 -0
- package/dist/markup/bottom-nav.js.map +1 -0
- package/dist/markup/dialog.d.ts +3 -0
- package/dist/markup/dialog.d.ts.map +1 -1
- package/dist/markup/dialog.js.map +1 -1
- package/dist/markup/dot.d.ts +27 -0
- package/dist/markup/dot.d.ts.map +1 -0
- package/dist/markup/dot.js +27 -0
- package/dist/markup/dot.js.map +1 -0
- package/dist/markup/heatmap.d.ts +2 -2
- package/dist/markup/heatmap.d.ts.map +1 -1
- package/dist/markup/heatmap.js.map +1 -1
- package/dist/markup/image.d.ts +9 -0
- package/dist/markup/image.d.ts.map +1 -1
- package/dist/markup/image.js +24 -0
- package/dist/markup/image.js.map +1 -1
- package/dist/markup/index.d.ts +17 -7
- package/dist/markup/index.d.ts.map +1 -1
- package/dist/markup/index.js +9 -4
- package/dist/markup/index.js.map +1 -1
- package/dist/markup/mobile-shell.d.ts +3 -0
- package/dist/markup/mobile-shell.d.ts.map +1 -0
- package/dist/markup/mobile-shell.js +3 -0
- package/dist/markup/mobile-shell.js.map +1 -0
- package/dist/markup/qr.d.ts +77 -0
- package/dist/markup/qr.d.ts.map +1 -0
- package/dist/markup/qr.js +37 -0
- package/dist/markup/qr.js.map +1 -0
- package/dist/markup/radio.d.ts +1 -1
- package/dist/markup/radio.d.ts.map +1 -1
- package/dist/markup/radio.js +1 -1
- package/dist/markup/radio.js.map +1 -1
- package/dist/markup/ribbon.d.ts +23 -0
- package/dist/markup/ribbon.d.ts.map +1 -0
- package/dist/markup/ribbon.js +23 -0
- package/dist/markup/ribbon.js.map +1 -0
- package/dist/markup/segmented.d.ts +2 -0
- package/dist/markup/segmented.d.ts.map +1 -1
- package/dist/markup/segmented.js +2 -0
- package/dist/markup/segmented.js.map +1 -1
- package/dist/markup/sparkline.d.ts +8 -0
- package/dist/markup/sparkline.d.ts.map +1 -1
- package/dist/markup/sparkline.js +37 -0
- package/dist/markup/sparkline.js.map +1 -1
- package/dist/markup/tree.d.ts +15 -4
- package/dist/markup/tree.d.ts.map +1 -1
- package/dist/markup/tree.js +16 -4
- package/dist/markup/tree.js.map +1 -1
- package/dist/mcp/tools.d.ts +7 -0
- package/dist/mcp/tools.d.ts.map +1 -1
- package/dist/mcp/tools.js +65 -29
- package/dist/mcp/tools.js.map +1 -1
- package/dist/qr.d.ts +84 -0
- package/dist/qr.d.ts.map +1 -0
- package/dist/qr.js +596 -0
- package/dist/qr.js.map +1 -0
- package/dist/series.d.ts +29 -0
- package/dist/series.d.ts.map +1 -1
- package/dist/series.js +36 -0
- package/dist/series.js.map +1 -1
- package/dist/theme-file.d.ts +21 -0
- package/dist/theme-file.d.ts.map +1 -1
- package/dist/theme-file.js +42 -0
- package/dist/theme-file.js.map +1 -1
- package/dist/token-meta.d.ts.map +1 -1
- package/dist/token-meta.js +6 -0
- package/dist/token-meta.js.map +1 -1
- package/dist/types.d.ts +99 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/vocab.d.ts +5 -0
- package/dist/vocab.d.ts.map +1 -1
- package/dist/vocab.js.map +1 -1
- package/manifest.json +25 -2
- package/package.json +1 -1
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { FULL_TONES } from "../vocab.js";
|
|
2
|
+
const htmlExample = `<div style="position: relative; width: 16rem; height: 9rem; border-radius: var(--radius-lg); background: var(--bg-1);">
|
|
3
|
+
<xtyle-ribbon tone="accent" label="New"></xtyle-ribbon>
|
|
4
|
+
<!-- …card content… -->
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
<div style="position: relative; …">
|
|
8
|
+
<xtyle-ribbon tone="danger" corner="top-left" label="Sale"></xtyle-ribbon>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
<div style="position: relative; …">
|
|
12
|
+
<xtyle-ribbon tone="success" variant="soft" corner="bottom-right" label="Beta"></xtyle-ribbon>
|
|
13
|
+
</div>`;
|
|
14
|
+
const svelteExample = `<script lang="ts">
|
|
15
|
+
import { Ribbon } from "@xtyle/svelte";
|
|
16
|
+
</script>
|
|
17
|
+
|
|
18
|
+
<!-- the container only needs position: relative; the ribbon clips itself -->
|
|
19
|
+
<div style="position: relative;">
|
|
20
|
+
<Ribbon tone="accent" label="New" />
|
|
21
|
+
<!-- …card content… -->
|
|
22
|
+
</div>
|
|
23
|
+
|
|
24
|
+
<div style="position: relative;">
|
|
25
|
+
<Ribbon tone="danger" corner="top-left" label="Sale" />
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<div style="position: relative;">
|
|
29
|
+
<Ribbon tone="success" variant="soft" corner="bottom-right" label="Beta" />
|
|
30
|
+
</div>`;
|
|
31
|
+
const astroExample = `---
|
|
32
|
+
import Ribbon from "@xtyle/astro/Ribbon.astro";
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
<!-- the container only needs position: relative; the ribbon clips itself -->
|
|
36
|
+
<div style="position: relative;">
|
|
37
|
+
<Ribbon tone="accent" label="New" />
|
|
38
|
+
<!-- …card content… -->
|
|
39
|
+
</div>
|
|
40
|
+
|
|
41
|
+
<div style="position: relative;">
|
|
42
|
+
<Ribbon tone="danger" corner="top-left" label="Sale" />
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<div style="position: relative;">
|
|
46
|
+
<Ribbon tone="success" variant="soft" corner="bottom-right" label="Beta" />
|
|
47
|
+
</div>`;
|
|
48
|
+
export const ribbonManifest = {
|
|
49
|
+
id: "ribbon",
|
|
50
|
+
name: "Ribbon",
|
|
51
|
+
since: "0.7.0",
|
|
52
|
+
category: "feedback",
|
|
53
|
+
keywords: ["corner", "banner", "flag", "new", "sale", "beta", "featured", "decoration", "callout"],
|
|
54
|
+
seeAlso: ["badge", "dot", "card"],
|
|
55
|
+
summary: "A corner ribbon: a diagonal banner pinned to a container's corner for a short label, in any tone.",
|
|
56
|
+
description: "Ribbon is the diagonal corner banner for a short call-out on a card, a tile, or an image: `New`, `Beta`, `Sale`, `Featured`. `tone` skins it across the six semantic roles (plus the accent variants and named hues), `variant` picks a `solid` fill or a `soft` tint, `corner` chooses which of the four corners it hugs, and `size` steps the band from `sm` to `lg`. A `color` / `textColor` pair is the escape hatch for a band background and text past the tone set. It fills its container as a clipping overlay, so the band's overhang is trimmed to the container's edges and the ribbon reads as a real folded banner rather than a floating strip; the container just needs `position: relative` (the ribbon clips itself to the container's box, rounded corners included). It ships as a first-class element that self-styles in its own shadow root, so a shadow-DOM consumer with no global stylesheet gets it for free, and the `.xtyle-ribbon` utility class stays available for global-CSS pages. Ribbon is decoration, not a control: the overlay is `pointer-events: none`, and its short label is rendered as visible text, so it reads to assistive tech in the container's reading order. Keep the label short; the band is a fixed width per size and a longer label clips.",
|
|
57
|
+
bindings: ["html", "svelte", "astro"],
|
|
58
|
+
anatomy: [
|
|
59
|
+
{
|
|
60
|
+
name: "ribbon",
|
|
61
|
+
description: "The clip layer: an absolutely-positioned overlay that fills the container and trims the band's overhang.",
|
|
62
|
+
selector: ".xtyle-ribbon",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: "band",
|
|
66
|
+
description: "The diagonal banner itself: the rotated strip carrying the label, filled with the resolved tone.",
|
|
67
|
+
selector: ".xtyle-ribbon__band",
|
|
68
|
+
tokens: ["--accent", "--accent-fg", "--weight-semibold", "--elevation-2"],
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
props: [
|
|
72
|
+
{
|
|
73
|
+
name: "tone",
|
|
74
|
+
type: "FullTone",
|
|
75
|
+
default: "accent",
|
|
76
|
+
description: "Semantic color role (or named hue) driving the ribbon color.",
|
|
77
|
+
bindings: ["html", "svelte", "astro"],
|
|
78
|
+
options: [...FULL_TONES],
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: "corner",
|
|
82
|
+
type: "RibbonCorner",
|
|
83
|
+
default: "top-right",
|
|
84
|
+
description: "Which corner of the container the ribbon hugs.",
|
|
85
|
+
bindings: ["html", "svelte", "astro"],
|
|
86
|
+
options: ["top-right", "top-left", "bottom-right", "bottom-left"],
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "size",
|
|
90
|
+
type: "RibbonSize",
|
|
91
|
+
default: "md",
|
|
92
|
+
description: "Band width and type size.",
|
|
93
|
+
bindings: ["html", "svelte", "astro"],
|
|
94
|
+
options: ["sm", "md", "lg"],
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
name: "variant",
|
|
98
|
+
type: "RibbonVariant",
|
|
99
|
+
default: "solid",
|
|
100
|
+
description: "Fill style: a `solid` tone fill or a `soft` tinted band.",
|
|
101
|
+
bindings: ["html", "svelte", "astro"],
|
|
102
|
+
options: ["solid", "soft"],
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "color",
|
|
106
|
+
type: "string",
|
|
107
|
+
description: "Escape hatch: paint the band background any raw color, past the tone set. Sets `--rb-bg` and wins over `tone`. Pair it with `textColor` so the label stays legible on a custom fill.",
|
|
108
|
+
bindings: ["html", "svelte", "astro"],
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: "textColor",
|
|
112
|
+
type: "string",
|
|
113
|
+
description: "The label color to pair with a custom `color` fill (sets `--rb-fg`). Set both together so a raw-color ribbon keeps its text readable; on a tone it is unneeded.",
|
|
114
|
+
bindings: ["html", "svelte", "astro"],
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: "label",
|
|
118
|
+
type: "string",
|
|
119
|
+
description: "The ribbon's text: a short call-out like `New` or `Sale`.",
|
|
120
|
+
bindings: ["html", "svelte", "astro"],
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
variants: [
|
|
124
|
+
{ name: "solid", description: "A solid tone fill with on-tone text (the default).", className: "xtyle-ribbon" },
|
|
125
|
+
{ name: "soft", description: "A soft tinted band with tone-colored text.", className: "xtyle-ribbon--soft" },
|
|
126
|
+
...FULL_TONES.map((tone) => ({
|
|
127
|
+
name: tone,
|
|
128
|
+
description: `${tone}-toned ribbon.`,
|
|
129
|
+
className: `xtyle-ribbon--${tone}`,
|
|
130
|
+
tokens: [`--${tone}`],
|
|
131
|
+
})),
|
|
132
|
+
],
|
|
133
|
+
sizes: [
|
|
134
|
+
{ name: "sm", description: "Compact.", className: "xtyle-ribbon--sm" },
|
|
135
|
+
{ name: "md", description: "Default.", className: "xtyle-ribbon", isDefault: true },
|
|
136
|
+
{ name: "lg", description: "Large.", className: "xtyle-ribbon--lg" },
|
|
137
|
+
],
|
|
138
|
+
states: [
|
|
139
|
+
{ name: "top-right", description: "Pinned to the top-right corner (default).", selector: ".xtyle-ribbon--top-right" },
|
|
140
|
+
{ name: "top-left", description: "Pinned to the top-left corner.", selector: ".xtyle-ribbon--top-left" },
|
|
141
|
+
{ name: "bottom-right", description: "Pinned to the bottom-right corner.", selector: ".xtyle-ribbon--bottom-right" },
|
|
142
|
+
{ name: "bottom-left", description: "Pinned to the bottom-left corner.", selector: ".xtyle-ribbon--bottom-left" },
|
|
143
|
+
],
|
|
144
|
+
slots: [],
|
|
145
|
+
consumedTokens: [
|
|
146
|
+
...FULL_TONES.flatMap((t) => [`--${t}`, `--${t}-fg`, `--${t}-bg`, `--${t}-text`]),
|
|
147
|
+
"--text-xs",
|
|
148
|
+
"--text-sm",
|
|
149
|
+
"--text-lg",
|
|
150
|
+
"--weight-semibold",
|
|
151
|
+
"--elevation-2",
|
|
152
|
+
],
|
|
153
|
+
composition: [
|
|
154
|
+
"Reach for Ribbon when a call-out should hug a corner and read as a folded banner (a `Sale` flash on a product tile); reach for Badge when the label sits inline with content, and Dot when a bare color-coded status is enough.",
|
|
155
|
+
"Give the container `position: relative` and the ribbon does the rest: it pins to the corner and clips the band's ends to the container's edges, rounded corners included. It never needs the container to set `overflow: hidden`, so a card with an escaping dropdown or focus ring keeps it.",
|
|
156
|
+
"Keep the label short (a word or two); the band is a fixed width per size, and a longer label is clipped rather than wrapped.",
|
|
157
|
+
"Use `soft` for a quieter call-out that tints rather than shouts; `color` + `textColor` for a per-campaign palette wider than the tone set.",
|
|
158
|
+
],
|
|
159
|
+
a11y: [
|
|
160
|
+
"The label is rendered as visible text, so it reads to assistive tech in the container's normal reading order rather than resting on color or position alone.",
|
|
161
|
+
"Ribbon is decoration, not a control: the overlay is `pointer-events: none`, so it never intercepts clicks meant for the content beneath, and a clickable call-out belongs in a real link or button instead.",
|
|
162
|
+
"The `color` escape hatch bypasses the derived contrast the tones guarantee, so pair it with `textColor` to keep the label legible on a custom fill.",
|
|
163
|
+
],
|
|
164
|
+
examples: [
|
|
165
|
+
{
|
|
166
|
+
id: "corners-tones-variants",
|
|
167
|
+
title: "Corners, tones, and variants",
|
|
168
|
+
description: "A ribbon pinned to each corner, in solid and soft fills across the semantic tones.",
|
|
169
|
+
source: { html: htmlExample, svelte: svelteExample, astro: astroExample },
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
};
|
|
173
|
+
//# sourceMappingURL=ribbon.manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ribbon.manifest.js","sourceRoot":"","sources":["../../src/manifest/ribbon.manifest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,WAAW,GAAG;;;;;;;;;;;OAWb,CAAC;AAER,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;OAgBf,CAAC;AAER,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;OAgBd,CAAC;AAER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5B,KAAK,EAAE,8BAA8B;YACrC,WAAW,EAAE,oFAAoF;YACjG,MAAM,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,YAAY,EAAE;SACzE;KACD;CACD,CAAC"}
|
|
@@ -29,9 +29,9 @@ const svelteStructuredExample = `<script lang="ts">
|
|
|
29
29
|
const perOptionExample = `<xtyle-segmented id="run-view" label="Run output"></xtyle-segmented>
|
|
30
30
|
<script>
|
|
31
31
|
document.getElementById("run-view").options = [
|
|
32
|
-
{ value: "report", label: "Report", badge: "128" },
|
|
33
|
-
{ value: "text", label: "Text", disabled: true },
|
|
34
|
-
{ value: "log", label: "Log", disabled: true },
|
|
32
|
+
{ value: "report", label: "Report", badge: "128", title: "The parsed summary view" },
|
|
33
|
+
{ value: "text", label: "Text", disabled: true, title: "Raw text (no run yet)" },
|
|
34
|
+
{ value: "log", label: "Log", disabled: true, title: "Execution log (no run yet)" },
|
|
35
35
|
];
|
|
36
36
|
</script>`;
|
|
37
37
|
const astroStructuredExample = `---
|
|
@@ -138,8 +138,8 @@ export const segmentedManifest = {
|
|
|
138
138
|
{ name: "value", type: "string", description: "The selected option's value. Defaults to the first option. Reflected and form-submitted.", bindings: ["html", "svelte", "astro"] },
|
|
139
139
|
{
|
|
140
140
|
name: "options",
|
|
141
|
-
type: "string | { value: string; label?: string; disabled?: boolean; badge?: string }[]",
|
|
142
|
-
description: "The options. The comma-string shorthand takes bare labels (`Day,Week`, the label is the value) or `label:value` pairs (`Left:start`). For labels that differ from their value or carry a comma or colon, pass a `{ value, label }[]` instead (the JS property in html / svelte, a JSON array attribute in Astro); a bare `string[]` works too. The structured form also takes a per-option `disabled` (a choice the current data can't offer, skipped by pointer and keyboard)
|
|
141
|
+
type: "string | { value: string; label?: string; disabled?: boolean; badge?: string; title?: string }[]",
|
|
142
|
+
description: "The options. The comma-string shorthand takes bare labels (`Day,Week`, the label is the value) or `label:value` pairs (`Left:start`). For labels that differ from their value or carry a comma or colon, pass a `{ value, label }[]` instead (the JS property in html / svelte, a JSON array attribute in Astro); a bare `string[]` works too. The structured form also takes a per-option `disabled` (a choice the current data can't offer, skipped by pointer and keyboard), a `badge` (trailing text like a count), and a `title` (a hover hint on the segment, for a short label that needs disambiguating context) per segment.",
|
|
143
143
|
bindings: ["html", "svelte", "astro"],
|
|
144
144
|
},
|
|
145
145
|
{ name: "disabled", type: "boolean", default: "false", description: "Disables selection and mutes the bar.", bindings: ["html", "svelte", "astro"] },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segmented.manifest.js","sourceRoot":"","sources":["../../src/manifest/segmented.manifest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,WAAW,GAAG;;;;;;gGAM4E,CAAC;AAEjG,MAAM,qBAAqB,GAAG;;;;;;;UAOpB,CAAC;AAEX,MAAM,uBAAuB,GAAG;;;;;;;;;;;mEAWmC,CAAC;AAEpE,MAAM,gBAAgB,GAAG;;;;;;;UAOf,CAAC;AAEX,MAAM,sBAAsB,GAAG;;;;;;;;;0DAS2B,CAAC;AAE3D,MAAM,kBAAkB,GAAG;;;;mBAIR,CAAC;AAEpB,MAAM,oBAAoB,GAAG;;;;;;;;;;aAUhB,CAAC;AAEd,MAAM,mBAAmB,GAAG;;;;;;;;aAQf,CAAC;AAEd,MAAM,aAAa,GAAG;;;;;;;;;;;;0EAYoD,CAAC;AAE3E,MAAM,YAAY,GAAG;;;;;;;;;;0EAUqD,CAAC;AAE3E,MAAM,CAAC,MAAM,iBAAiB,GAAsB;IACnD,EAAE,EAAE,WAAW;IACf,IAAI,EAAE,WAAW;IACjB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,CAAC,mBAAmB,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,OAAO,CAAC;IACzF,OAAO,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,C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;QAClB,iBAAiB;QACjB,iBAAiB;KACjB;IACD,WAAW,EAAE;QACZ,sIAAsI;QACtI,kEAAkE;QAClE,2EAA2E;QAC3E,+HAA+H;KAC/H;IACD,IAAI,EAAE;QACL,mIAAmI;QACnI,qJAAqJ;QACrJ,gLAAgL;QAChL,wOAAwO;QACxO,2HAA2H;QAC3H,sRAAsR;QACtR,wPAAwP;QACxP,qJAAqJ;KACrJ;IACD,QAAQ,EAAE;QACT;YACC,EAAE,EAAE,mBAAmB;YACvB,KAAK,EAAE,gCAAgC;YACvC,WAAW,EAAE,wGAAwG;YACrH,MAAM,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,YAAY,EAAE;SACzE;QACD;YACC,EAAE,EAAE,oBAAoB;YACxB,KAAK,EAAE,oBAAoB;YAC3B,WAAW,EAAE,iJAAiJ;YAC9J,MAAM,EAAE,EAAE,IAAI,EAAE,qBAAqB,EAAE,MAAM,EAAE,uBAAuB,EAAE,KAAK,EAAE,sBAAsB,EAAE;SACvG;QACD;YACC,EAAE,EAAE,kBAAkB;YACtB,KAAK,EAAE,gCAAgC;YACvC,WAAW,EAAE,iNAAiN;YAC9N,MAAM,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE;SAClC;QACD;YACC,EAAE,EAAE,eAAe;YACnB,KAAK,EAAE,eAAe;YACtB,WAAW,EACV,yQAAyQ;YAC1Q,MAAM,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,MAAM,EAAE,oBAAoB,EAAE,KAAK,EAAE,mBAAmB,EAAE;SAC9F;KACD;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.manifest.d.ts","sourceRoot":"","sources":["../../src/manifest/slider.manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"slider.manifest.d.ts","sourceRoot":"","sources":["../../src/manifest/slider.manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAsFpD,eAAO,MAAM,cAAc,EAAE,iBAmR5B,CAAC"}
|
|
@@ -55,6 +55,27 @@ import { Slider } from "@xtyle/astro";
|
|
|
55
55
|
<Slider label="Volume" value={60} hideLabel />
|
|
56
56
|
|
|
57
57
|
<Slider label="Locked" value={50} disabled />`;
|
|
58
|
+
const steppingHtmlExample = `<!-- Coarse 15° steps; hold Shift while dragging or arrowing for 1° fine-tuning. -->
|
|
59
|
+
<xtyle-slider label="Angle" min="-180" max="180" step="15" alt-step="1" value="45" show-value></xtyle-slider>
|
|
60
|
+
|
|
61
|
+
<!-- overflow: type a scale past 200 in the readout; the thumb pins at the rail edge. -->
|
|
62
|
+
<xtyle-slider label="Scale" min="10" max="200" step="5" alt-step="1" value="100" show-value overflow></xtyle-slider>`;
|
|
63
|
+
const steppingSvelteExample = `<script lang="ts">
|
|
64
|
+
import { Slider } from "@xtyle/svelte";
|
|
65
|
+
</script>
|
|
66
|
+
|
|
67
|
+
<!-- Coarse 15° steps; hold Shift while dragging or arrowing for 1° fine-tuning. -->
|
|
68
|
+
<Slider label="Angle" min={-180} max={180} step={15} altStep={1} value={45} showValue format={(v) => \`\${v}°\`} />
|
|
69
|
+
|
|
70
|
+
<!-- overflow: type a scale past 200 in the readout; the thumb pins at the rail edge. -->
|
|
71
|
+
<Slider label="Scale" min={10} max={200} step={5} altStep={1} value={100} showValue overflow format={(v) => \`\${v}%\`} />`;
|
|
72
|
+
const steppingAstroExample = `---
|
|
73
|
+
import { Slider } from "@xtyle/astro";
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
<Slider label="Angle" min={-180} max={180} step={15} altStep={1} value={45} showValue />
|
|
77
|
+
|
|
78
|
+
<Slider label="Scale" min={10} max={200} step={5} altStep={1} value={100} showValue overflow />`;
|
|
58
79
|
export const sliderManifest = {
|
|
59
80
|
id: "slider",
|
|
60
81
|
name: "Slider",
|
|
@@ -62,7 +83,7 @@ export const sliderManifest = {
|
|
|
62
83
|
keywords: ["range", "range input", "track", "value picker", "volume", "brightness"],
|
|
63
84
|
seeAlso: ["number-input", "progress", "color-picker"],
|
|
64
85
|
summary: "A draggable range control for choosing a single value between a min and max, with full keyboard support.",
|
|
65
|
-
description: "Slider picks one number across a range. It renders a rail with a fill showing the chosen portion and a `role=\"slider\"` thumb carrying `aria-valuemin`/`aria-valuemax`/`aria-valuenow`, so pointer drag, click-to-position, and the full arrow/Page/Home/End keyboard set all move it. Values snap to `step` and clamp to `[min, max]`. It is form-associated: give it a `name` and it contributes its current value to form data. Three sizes (`sm`, the default `md`, and `lg`) vary the thumb and rail thickness. It is the primitive the hue and alpha tracks of a color picker compose from.",
|
|
86
|
+
description: "Slider picks one number across a range. It renders a rail with a fill showing the chosen portion and a `role=\"slider\"` thumb carrying `aria-valuemin`/`aria-valuemax`/`aria-valuenow`, so pointer drag, click-to-position, and the full arrow/Page/Home/End keyboard set all move it. Values snap to `step` and clamp to `[min, max]`. Holding the `modifier` (Shift by default) while stepping or dragging swaps in `alt-step` for a coarser or finer jump, the same fine-tune contract the number field carries. With `show-value`, the readout is a click-to-edit numeric field that steps on the same keys; add `overflow` and a typed value may pass the rail while the thumb pins at the edge. It is form-associated: give it a `name` and it contributes its current value to form data. Three sizes (`sm`, the default `md`, and `lg`) vary the thumb and rail thickness. It is the primitive the hue and alpha tracks of a color picker compose from.",
|
|
66
87
|
bindings: ["html", "svelte", "astro"],
|
|
67
88
|
anatomy: [
|
|
68
89
|
{
|
|
@@ -140,7 +161,36 @@ export const sliderManifest = {
|
|
|
140
161
|
name: "step",
|
|
141
162
|
type: "number",
|
|
142
163
|
default: "1",
|
|
143
|
-
description: "The granularity
|
|
164
|
+
description: "The base granularity: an arrow key and a drag snap to `step`. The finest grid the slider lands on is the smaller of `step` and `alt-step`, so a typed or fine-modifier value can sit between coarse steps.",
|
|
165
|
+
bindings: ["html", "svelte", "astro"],
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
name: "alt-step",
|
|
169
|
+
type: "number",
|
|
170
|
+
default: "step * 10",
|
|
171
|
+
description: "The step taken while the modifier is held during an arrow press or a drag (and by Page keys): set it larger than `step` for a broad jump or smaller for fine-tuning. Mirrors the number field's alt step.",
|
|
172
|
+
bindings: ["html", "svelte", "astro"],
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
name: "alt-default",
|
|
176
|
+
type: "boolean",
|
|
177
|
+
default: "false",
|
|
178
|
+
description: "Inverts the modifier: `alt-step` becomes the unmodified default and the base `step` needs the modifier held.",
|
|
179
|
+
bindings: ["html", "svelte", "astro"],
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: "modifier",
|
|
183
|
+
type: "\"shift\" | \"alt\" | \"ctrl\" | \"meta\"",
|
|
184
|
+
default: "shift",
|
|
185
|
+
description: "Which key swaps `step` for `alt-step` on a keyboard press or a drag. Same contract as the number field, so a form's slider and stepper fine-tune on the same key.",
|
|
186
|
+
bindings: ["html", "svelte", "astro"],
|
|
187
|
+
options: ["shift", "alt", "ctrl", "meta"],
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
name: "overflow",
|
|
191
|
+
type: "boolean",
|
|
192
|
+
default: "false",
|
|
193
|
+
description: "Lets a typed value in the inline editor pass `min`/`max`: the thumb pins at the rail edge while the true value is kept, emitted, and announced (the reported range widens to include it). Drag and arrow-stepping still stay on the rail.",
|
|
144
194
|
bindings: ["html", "svelte", "astro"],
|
|
145
195
|
},
|
|
146
196
|
{
|
|
@@ -188,7 +238,7 @@ export const sliderManifest = {
|
|
|
188
238
|
name: "show-value",
|
|
189
239
|
type: "boolean",
|
|
190
240
|
default: "false",
|
|
191
|
-
description: "Renders the current value inline beside the label. The readout is `aria-hidden` since the thumb's `aria-valuenow` already announces it. Format it with the `format` property.",
|
|
241
|
+
description: "Renders the current value inline beside the label. Clicking it opens an inline numeric editor that types an exact value and steps on the arrow/Page keys (honoring `modifier` and `alt-step`). The readout is `aria-hidden` since the thumb's `aria-valuenow` already announces it. Format it with the `format` property.",
|
|
192
242
|
bindings: ["html", "svelte", "astro"],
|
|
193
243
|
},
|
|
194
244
|
{
|
|
@@ -273,11 +323,13 @@ export const sliderManifest = {
|
|
|
273
323
|
composition: [
|
|
274
324
|
"Pair with Field or a form to capture the value; give it a `name` so it contributes to submitted data.",
|
|
275
325
|
"Use a tight `step` for coarse adjustments (a 0–10 rating) or `step=\"1\"` over a wide range for fine ones.",
|
|
326
|
+
"Give a coarse `step` a fine `alt-step` (e.g. `step=\"15\"` `alt-step=\"1\"`) so a drag snaps to big increments but the modifier unlocks precision; pair with `overflow` on a bounded rail whose value should occasionally exceed the slider (a scale past 200%).",
|
|
276
327
|
"It is the building block for a color picker's hue and alpha tracks: same rail, fill, and thumb mechanics with a gradient rail.",
|
|
277
328
|
],
|
|
278
329
|
a11y: [
|
|
279
330
|
"The thumb is `role=\"slider\"` with `aria-valuemin`, `aria-valuemax`, and `aria-valuenow` kept in sync, never conveying value by position alone.",
|
|
280
|
-
"Full keyboard support: arrows move by `step
|
|
331
|
+
"Full keyboard support: arrows move by `step` (by `alt-step` with the `modifier` held), PageUp/PageDown by `alt-step`, Home/End jump to min/max; the keys' default scroll is prevented.",
|
|
332
|
+
"Under `overflow`, a typed value past the rail keeps `aria-valuenow` valid by widening the announced `aria-valuemin`/`aria-valuemax` to include it, rather than misreporting a pinned value.",
|
|
281
333
|
"Requires an accessible name: `labelledby` wins, then `label`; the binding warns at runtime when neither is present. `hide-label` keeps the `label` as the accessible name while visually hiding its text, so a host that renders its own label avoids announcing the name twice.",
|
|
282
334
|
"The `show-value` readout is `aria-hidden` so screen readers hear the value once via the thumb's `aria-valuenow`, not twice.",
|
|
283
335
|
"Pointer drag uses pointer capture so the thumb keeps tracking even when the cursor leaves the rail.",
|
|
@@ -291,6 +343,12 @@ export const sliderManifest = {
|
|
|
291
343
|
description: "A labeled slider, a stepped range, the compact size, a form-bound slider, and a disabled one.",
|
|
292
344
|
source: { html: htmlExample, svelte: svelteExample, astro: astroExample },
|
|
293
345
|
},
|
|
346
|
+
{
|
|
347
|
+
id: "fine-tuning-and-overflow",
|
|
348
|
+
title: "Fine-tuning and overflow",
|
|
349
|
+
description: "A coarse-step angle that fine-tunes to 1° while Shift is held, and a scale whose editable readout accepts a value past the rail's max.",
|
|
350
|
+
source: { html: steppingHtmlExample, svelte: steppingSvelteExample, astro: steppingAstroExample },
|
|
351
|
+
},
|
|
294
352
|
],
|
|
295
353
|
};
|
|
296
354
|
//# sourceMappingURL=slider.manifest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.manifest.js","sourceRoot":"","sources":["../../src/manifest/slider.manifest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;iEAiB6C,CAAC;AAElE,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;8CAoBwB,CAAC;AAE/C,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;8CAgByB,CAAC;AAE/C,MAAM,CAAC,MAAM,cAAc,GAAsB;IAChD,EAAE,EAAE,QAAQ;IACZ,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,YAAY,CAAC;IACnF,OAAO,EAAE,CAAC,cAAc,EAAE,UAAU,EAAE,cAAc,CAAC;IACrD,OAAO,EAAE,0GAA0G;IACnH,WAAW,EACV,
|
|
1
|
+
{"version":3,"file":"slider.manifest.js","sourceRoot":"","sources":["../../src/manifest/slider.manifest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;iEAiB6C,CAA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,CAAC,KAAK,CAAC,EAAE,CAAC;QAClC,eAAe;QACf,iBAAiB;QACjB,iBAAiB;QACjB,QAAQ;QACR,eAAe;QACf,eAAe;QACf,kBAAkB;KAClB;IACD,WAAW,EAAE;QACZ,uGAAuG;QACvG,4GAA4G;QAC5G,kQAAkQ;QAClQ,gIAAgI;KAChI;IACD,IAAI,EAAE;QACL,kJAAkJ;QAClJ,wLAAwL;QACxL,6LAA6L;QAC7L,kRAAkR;QAClR,6HAA6H;QAC7H,qGAAqG;QACrG,2HAA2H;QAC3H,kHAAkH;KAClH;IACD,QAAQ,EAAE;QACT;YACC,EAAE,EAAE,uBAAuB;YAC3B,KAAK,EAAE,qCAAqC;YAC5C,WAAW,EAAE,+FAA+F;YAC5G,MAAM,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,YAAY,EAAE;SACzE;QACD;YACC,EAAE,EAAE,0BAA0B;YAC9B,KAAK,EAAE,0BAA0B;YACjC,WAAW,EAAE,wIAAwI;YACrJ,MAAM,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE,MAAM,EAAE,qBAAqB,EAAE,KAAK,EAAE,oBAAoB,EAAE;SACjG;KACD;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sparkline.manifest.d.ts","sourceRoot":"","sources":["../../src/manifest/sparkline.manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"sparkline.manifest.d.ts","sourceRoot":"","sources":["../../src/manifest/sparkline.manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AA0GpD,eAAO,MAAM,iBAAiB,EAAE,iBAkO/B,CAAC"}
|
|
@@ -74,6 +74,19 @@ const occupancySvelteExample = `<script lang="ts">
|
|
|
74
74
|
</script>
|
|
75
75
|
|
|
76
76
|
<Sparkline values={uptime} variant="occupancy" bounds="unit" tone="success" label="Uptime" />`;
|
|
77
|
+
const formatHtmlExample = `<!-- Latency in seconds: the hover reads 1.5m, not 90 -->
|
|
78
|
+
<xtyle-sparkline values="42,58,90,73,120,66,54" format="duration" bounds="duration" tone="warn" label="Latency"></xtyle-sparkline>
|
|
79
|
+
|
|
80
|
+
<!-- Load as a percentage: the hover reads 87% -->
|
|
81
|
+
<xtyle-sparkline values="38,41,52,49,87,58,71" format="percent" bounds="percent" tone="info" label="Load"></xtyle-sparkline>`;
|
|
82
|
+
const formatSvelteExample = `<script lang="ts">
|
|
83
|
+
import { Sparkline } from "@xtyle/svelte";
|
|
84
|
+
const latency = [42, 58, 90, 73, 120, 66, 54]; // seconds
|
|
85
|
+
const load = [38, 41, 52, 49, 87, 58, 71]; // percent
|
|
86
|
+
</script>
|
|
87
|
+
|
|
88
|
+
<Sparkline values={latency} format="duration" bounds="duration" tone="warn" label="Latency" />
|
|
89
|
+
<Sparkline values={load} format="percent" bounds="percent" tone="info" label="Load" />`;
|
|
77
90
|
export const sparklineManifest = {
|
|
78
91
|
id: "sparkline",
|
|
79
92
|
name: "Sparkline",
|
|
@@ -82,7 +95,7 @@ export const sparklineManifest = {
|
|
|
82
95
|
keywords: ["mini chart", "trend line", "inline chart", "time series", "micro chart"],
|
|
83
96
|
seeAlso: ["stat", "bar", "heatmap"],
|
|
84
97
|
summary: "A tiny, word-sized trend line, area, bar, or occupancy chart, single-tone and axis-free, for inline use or a live time-series.",
|
|
85
|
-
description: "Sparkline draws a single series of numbers as a small, axis-free SVG that reads as a trend at a glance, sized to sit inline in a sentence, a table cell, or beside a `Stat`. Four shapes: a `line`, a filled `area`, a mini `bar` run, or an `occupancy` strip that fills each \"on\" sample of a bool/binary series as a solid block (uptime, presence, connection state) rather than drawing a 0/1 line. Feed it evenly-spaced `values`, or switch to `points` (timestamped samples) for a real time-series: they map onto a sliding `window` (or an explicit `domain`), so irregular samples sit at their true position and slide left over real time. Add `step` to hold each value for an on/off signal. It takes one `tone` from the theme roster (any semantic role or named hue) and marks the latest point with an end dot. It's interactive: sweeping across it floats a marker and the value at the nearest point. Size it with the `--spark-width` and `--spark-height` custom properties; give it a `label` for an accessible name. Auto-ranged from the data, pinned with `min` / `max`, or ranged by kind with `bounds`: `percent` locks `[0, 100]`, `unit` locks `[0, 1]`, and `duration` caps at a rolling power of two so a latency spike lifts the ceiling instead of squashing the baseline; the per-kind range every consumer of a typed metric would otherwise re-derive by hand. An empty series shows a muted `No data` label instead of a blank box.",
|
|
98
|
+
description: "Sparkline draws a single series of numbers as a small, axis-free SVG that reads as a trend at a glance, sized to sit inline in a sentence, a table cell, or beside a `Stat`. Four shapes: a `line`, a filled `area`, a mini `bar` run, or an `occupancy` strip that fills each \"on\" sample of a bool/binary series as a solid block (uptime, presence, connection state) rather than drawing a 0/1 line. Feed it evenly-spaced `values`, or switch to `points` (timestamped samples) for a real time-series: they map onto a sliding `window` (or an explicit `domain`), so irregular samples sit at their true position and slide left over real time. Add `step` to hold each value for an on/off signal. It takes one `tone` from the theme roster (any semantic role or named hue) and marks the latest point with an end dot. It's interactive: sweeping across it floats a marker and the value at the nearest point, and `format` makes that readout speak the metric's units (`duration` as `42s`/`1.5m`, `percent` as `87%`, `bytes`, or a plain `unit`). Size it with the `--spark-width` and `--spark-height` custom properties; give it a `label` for an accessible name. Auto-ranged from the data, pinned with `min` / `max`, or ranged by kind with `bounds`: `percent` locks `[0, 100]`, `unit` locks `[0, 1]`, and `duration` caps at a rolling power of two so a latency spike lifts the ceiling instead of squashing the baseline; the per-kind range every consumer of a typed metric would otherwise re-derive by hand. An empty series shows a muted `No data` label instead of a blank box.",
|
|
86
99
|
bindings: ["html", "svelte", "astro"],
|
|
87
100
|
anatomy: [
|
|
88
101
|
{
|
|
@@ -195,6 +208,13 @@ export const sparklineManifest = {
|
|
|
195
208
|
bindings: ["html", "svelte", "astro"],
|
|
196
209
|
options: ["percent", "unit", "duration"],
|
|
197
210
|
},
|
|
211
|
+
{
|
|
212
|
+
name: "format",
|
|
213
|
+
type: "\"percent\" | \"duration\" | \"bytes\" | \"unit\"",
|
|
214
|
+
description: "Speak the metric's units in the hover readout instead of a bare number: `duration` reads seconds as `42s` / `1.5m` / `0.3h`, `percent` appends `%`, `bytes` steps `B`/`KB`/`MB`/…, `unit` is a trimmed number. Independent of `bounds` (range vs. label); unset shows the raw value.",
|
|
215
|
+
bindings: ["html", "svelte", "astro"],
|
|
216
|
+
options: ["percent", "duration", "bytes", "unit"],
|
|
217
|
+
},
|
|
198
218
|
{
|
|
199
219
|
name: "label",
|
|
200
220
|
type: "string",
|
|
@@ -282,6 +302,12 @@ export const sparklineManifest = {
|
|
|
282
302
|
description: "`variant=\"occupancy\"` fills each \"on\" sample as a solid block over a faint track; the uptime/presence/connection reading a 0/1 step line can't give. Pair with `bounds=\"unit\"`.",
|
|
283
303
|
source: { html: occupancyHtmlExample, svelte: occupancySvelteExample },
|
|
284
304
|
},
|
|
305
|
+
{
|
|
306
|
+
id: "hover-format",
|
|
307
|
+
title: "Units in the hover readout",
|
|
308
|
+
description: "`format` makes the hover value speak the metric's units — a latency series reads `1.5m` instead of `90`, a load series reads `87%`. Independent of `bounds`, which ranges the y-axis.",
|
|
309
|
+
source: { html: formatHtmlExample, svelte: formatSvelteExample },
|
|
310
|
+
},
|
|
285
311
|
],
|
|
286
312
|
};
|
|
287
313
|
//# sourceMappingURL=sparkline.manifest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sparkline.manifest.js","sourceRoot":"","sources":["../../src/manifest/sparkline.manifest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,WAAW,GAAG;;;;8FAI0E,CAAC;AAE/F,MAAM,aAAa,GAAG;;;;;;;2DAOqC,CAAC;AAE5D,MAAM,YAAY,GAAG;;;;;;2DAMsC,CAAC;AAE5D,MAAM,iBAAiB,GAAG;;;;KAI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AAE,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,YAAY,EAAE;SACzE;QACD;YACC,EAAE,EAAE,QAAQ;YACZ,KAAK,EAAE,gBAAgB;YACvB,WAAW,EAAE,sFAAsF;YACnG,MAAM,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,mBAAmB,EAAE,KAAK,EAAE,kBAAkB,EAAE;SAC3F;QACD;YACC,EAAE,EAAE,YAAY;YAChB,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EAAE,sNAAsN;YACnO,MAAM,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,EAAE,iBAAiB,EAAE,KAAK,EAAE,gBAAgB,EAAE;SACrF;QACD;YACC,EAAE,EAAE,aAAa;YACjB,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EAAE,uNAAuN;YACpO,MAAM,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,mBAAmB,EAAE;SAChE;QACD;YACC,EAAE,EAAE,WAAW;YACf,KAAK,EAAE,mCAAmC;YAC1C,WAAW,EAAE,uLAAuL;YACpM,MAAM,EAAE,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,EAAE,sBAAsB,EAAE;SACtE;QACD;YACC,EAAE,EAAE,cAAc;YAClB,KAAK,EAAE,4BAA4B;YACnC,WAAW,EAAE,uLAAuL;YACpM,MAAM,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,mBAAmB,EAAE;SAChE;KACD;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree.manifest.d.ts","sourceRoot":"","sources":["../../src/manifest/tree.manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"tree.manifest.d.ts","sourceRoot":"","sources":["../../src/manifest/tree.manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AA4FpD,eAAO,MAAM,YAAY,EAAE,iBAgK1B,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FULL_TONES } from "../vocab.js";
|
|
1
2
|
const htmlExample = `<xtyle-tree label="Documentation"></xtyle-tree>
|
|
2
3
|
|
|
3
4
|
<script>
|
|
@@ -28,11 +29,21 @@ const svelteExample = `<script lang="ts">
|
|
|
28
29
|
{ label: "Theming", href: "/guides/theming" },
|
|
29
30
|
],
|
|
30
31
|
},
|
|
31
|
-
{
|
|
32
|
+
{
|
|
33
|
+
label: "Reference",
|
|
34
|
+
children: [
|
|
35
|
+
{ label: "Engine", value: "engine", actions: [{ id: "rename", label: "Rename", icon: "✎" }] },
|
|
36
|
+
],
|
|
37
|
+
},
|
|
32
38
|
];
|
|
33
39
|
</script>
|
|
34
40
|
|
|
35
|
-
<Tree
|
|
41
|
+
<Tree
|
|
42
|
+
label="Documentation"
|
|
43
|
+
{items}
|
|
44
|
+
onselect={(e) => console.log("select", e.detail.value)}
|
|
45
|
+
ontreeaction={(e) => console.log(e.detail.action, "on", e.detail.value)}
|
|
46
|
+
/>`;
|
|
36
47
|
const astroExample = `---
|
|
37
48
|
import { Tree } from "@xtyle/astro";
|
|
38
49
|
|
|
@@ -56,18 +67,21 @@ const trailingExample = `<xtyle-tree label="Binder"></xtyle-tree>
|
|
|
56
67
|
const tree = document.querySelector("xtyle-tree");
|
|
57
68
|
tree.items = [
|
|
58
69
|
{
|
|
59
|
-
label: "Chapter 1", value: "ch1", expanded: true,
|
|
70
|
+
label: "Chapter 1", value: "ch1", expanded: true,
|
|
71
|
+
// a word count plus a toned drift pill: two trailing badges, each its own color
|
|
72
|
+
badge: ["1,204", { text: "3", tone: "warn" }],
|
|
60
73
|
children: [
|
|
61
|
-
{ label: "Opening", value: "ch1-1", badge: "
|
|
74
|
+
{ label: "Opening", value: "ch1-1", badge: "512", actions: [
|
|
75
|
+
{ id: "up", label: "Move up", icon: "↑", disabled: true },
|
|
62
76
|
{ id: "rename", label: "Rename", icon: "✎" },
|
|
63
77
|
{ id: "delete", label: "Delete", icon: "✕" },
|
|
64
78
|
] },
|
|
65
79
|
{ label: "Rising action", value: "ch1-2", actions: [{ id: "rename", label: "Rename", icon: "✎" }] },
|
|
66
80
|
],
|
|
67
81
|
},
|
|
68
|
-
{ label: "Chapter 2", value: "ch2", badge: "
|
|
82
|
+
{ label: "Chapter 2", value: "ch2", badge: "812" },
|
|
69
83
|
];
|
|
70
|
-
//
|
|
84
|
+
// Badges show always; actions reveal on hover and fire tree-action (a disabled action stays greyed).
|
|
71
85
|
tree.addEventListener("tree-action", (e) => console.log(e.detail.action, "on", e.detail.value));
|
|
72
86
|
</script>`;
|
|
73
87
|
export const treeManifest = {
|
|
@@ -77,7 +91,7 @@ export const treeManifest = {
|
|
|
77
91
|
keywords: ["tree view", "file tree", "nested list", "hierarchy", "explorer", "outline"],
|
|
78
92
|
seeAlso: ["toc", "accordion", "table"],
|
|
79
93
|
summary: "A hierarchical, keyboard-navigable list of expandable nodes built from a data array.",
|
|
80
|
-
description: "Tree renders a nested hierarchy from an `items` array. Each node carries a `label`, an optional `value`, `href`, and `children`, plus flags for `expanded`, `selected`, and `disabled`. It builds the WAI-ARIA tree pattern: a `role=\"tree\"` with nested `role=\"group\"` levels and `role=\"treeitem\"` nodes carrying `aria-level`, `aria-expanded`, and `aria-selected`, with a single roving tab stop so the whole tree is one Tab stop and the arrow keys walk it. A twisty rotates on expand. A node with an `href` renders its row as a link whether or not it has children, so a branch can be both navigable and a group; the row navigates while the twisty (and Left/Right) work the children. A branch without an `href` is a pure container that toggles on click. A node also carries per-row trailing content:
|
|
94
|
+
description: "Tree renders a nested hierarchy from an `items` array. Each node carries a `label`, an optional `value`, `href`, and `children`, plus flags for `expanded`, `selected`, and `disabled`. It builds the WAI-ARIA tree pattern: a `role=\"tree\"` with nested `role=\"group\"` levels and `role=\"treeitem\"` nodes carrying `aria-level`, `aria-expanded`, and `aria-selected`, with a single roving tab stop so the whole tree is one Tab stop and the arrow keys walk it. A twisty rotates on expand. A node with an `href` renders its row as a link whether or not it has children, so a branch can be both navigable and a group; the row navigates while the twisty (and Left/Right) work the children. A branch without an `href` is a pure container that toggles on click. A node also carries per-row trailing content: one or more `badge` pills (a count plus a toned status pill after the label) and `actions` (hover-revealed row buttons that fire a `tree-action` event, each optionally `disabled` in place), the file-tree-with-inline-controls shape. Being data-driven keeps it robust across the bindings and a natural fit for a file or navigation tree. Three sizes (`sm`, `md`, `lg`) scale the row density.",
|
|
81
95
|
bindings: ["html", "svelte", "astro"],
|
|
82
96
|
anatomy: [
|
|
83
97
|
{
|
|
@@ -123,13 +137,13 @@ export const treeManifest = {
|
|
|
123
137
|
},
|
|
124
138
|
{
|
|
125
139
|
name: "trailing",
|
|
126
|
-
description: "Per-row content after the label:
|
|
140
|
+
description: "Per-row content after the label: one or more `badge` pills (a count plus a toned status, always shown) and hover-revealed `actions` buttons. Reachable at `::part(badge)` and `::part(row-action)`.",
|
|
127
141
|
selector: ".xtyle-tree__trailing",
|
|
128
142
|
tokens: ["--text-xs", "--fg-0", "--fg-2", "--fg-3", "--state-hover", "--space-0"],
|
|
129
143
|
},
|
|
130
144
|
],
|
|
131
145
|
props: [
|
|
132
|
-
{ name: "items", type: "TreeNode[]", description: "The node hierarchy. Each `TreeNode` has a `label` and optional `value`, `href`, `children`, `expanded`, `selected`, and `disabled`. Each node can also take a `badge` (trailing
|
|
146
|
+
{ name: "items", type: "TreeNode[]", description: "The node hierarchy. Each `TreeNode` has a `label` and optional `value`, `href`, `children`, `expanded`, `selected`, and `disabled`. Each node can also take a `badge` (trailing content after the label: a plain string, a toned `{ text, tone }` pill, or a list of them so a count and a status pill each keep their own color) and `actions` (a `{ id, label, icon?, disabled? }[]` of hover-revealed trailing buttons, non-link rows only) that fire a `tree-action` event; a `disabled` action renders greyed and non-firing instead of being omitted, so a positional control set keeps a stable count. Passed as a property in the bindings (serialized to JSON for the element).", bindings: ["html", "svelte", "astro"] },
|
|
133
147
|
{ name: "size", type: "Size", default: "md", description: "Row density: `sm`, `md`, or `lg`.", bindings: ["html", "svelte", "astro"], options: ["sm", "md", "lg"] },
|
|
134
148
|
{ name: "label", type: "string", description: "Accessible name for the tree, applied as `aria-label`.", bindings: ["html", "svelte", "astro"] },
|
|
135
149
|
{ name: "labelledby", type: "string", description: "Id of an external element naming the tree; takes precedence over `label`.", bindings: ["html", "svelte", "astro"] },
|
|
@@ -183,7 +197,7 @@ export const treeManifest = {
|
|
|
183
197
|
"--fg-3",
|
|
184
198
|
"--fg-disabled",
|
|
185
199
|
"--accent-bg",
|
|
186
|
-
|
|
200
|
+
...FULL_TONES.map((t) => `--${t}-text`),
|
|
187
201
|
"--selection-cue",
|
|
188
202
|
"--weight-medium",
|
|
189
203
|
"--state-hover",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree.manifest.js","sourceRoot":"","sources":["../../src/manifest/tree.manifest.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tree.manifest.js","sourceRoot":"","sources":["../../src/manifest/tree.manifest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;UAiBV,CAAC;AAEX,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BnB,CAAC;AAEJ,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;6CAgBwB,CAAC;AAE9C,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;UAsBd,CAAC;AAEX,MAAM,CAAC,MAAM,YAAY,GAAsB;IAC9C,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,MAAM;IACZ,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,CAAC,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU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