@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,149 @@
|
|
|
1
|
+
const htmlExample = `<xtyle-bottom-nav
|
|
2
|
+
value="inbox"
|
|
3
|
+
label="Sections"
|
|
4
|
+
tabs='[{"value":"inbox","label":"Inbox","icon":"folder","badge":3},
|
|
5
|
+
{"value":"threads","label":"Threads","icon":"menu"},
|
|
6
|
+
{"value":"you","label":"You","icon":"gear"}]'
|
|
7
|
+
></xtyle-bottom-nav>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
document.querySelector("xtyle-bottom-nav")
|
|
11
|
+
.addEventListener("change", (e) => show(e.target.value));
|
|
12
|
+
</script>`;
|
|
13
|
+
const svelteExample = `<script lang="ts">
|
|
14
|
+
import { BottomNav } from "@xtyle/svelte";
|
|
15
|
+
|
|
16
|
+
let section = $state("inbox");
|
|
17
|
+
const tabs = [
|
|
18
|
+
{ value: "inbox", label: "Inbox", icon: "folder", badge: 3 },
|
|
19
|
+
{ value: "threads", label: "Threads", icon: "menu" },
|
|
20
|
+
{ value: "you", label: "You", icon: "gear" },
|
|
21
|
+
];
|
|
22
|
+
</script>
|
|
23
|
+
|
|
24
|
+
<BottomNav {tabs} bind:value={section} label="Sections" />`;
|
|
25
|
+
const astroExample = `---
|
|
26
|
+
import BottomNav from "@xtyle/astro/BottomNav.astro";
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
<BottomNav
|
|
30
|
+
value="inbox"
|
|
31
|
+
label="Sections"
|
|
32
|
+
tabs={[
|
|
33
|
+
{ value: "inbox", label: "Inbox", icon: "folder", badge: 3 },
|
|
34
|
+
{ value: "threads", label: "Threads", icon: "menu" },
|
|
35
|
+
{ value: "you", label: "You", icon: "gear" },
|
|
36
|
+
]}
|
|
37
|
+
/>`;
|
|
38
|
+
export const bottomNavManifest = {
|
|
39
|
+
id: "bottom-nav",
|
|
40
|
+
name: "BottomNav",
|
|
41
|
+
since: "0.7.0",
|
|
42
|
+
category: "navigation",
|
|
43
|
+
keywords: ["bottom nav", "tab bar", "mobile", "phone", "touch", "tabs", "sections"],
|
|
44
|
+
seeAlso: ["mobile-shell", "tabs", "segmented"],
|
|
45
|
+
summary: "A thumb-reachable bottom tab bar: a real tablist with roving focus and an accent indicator.",
|
|
46
|
+
description: "BottomNav is the tab bar that pairs with `MobileShell` the way `Statusbar` pairs with `AppShell`: the app's top-level sections, sitting where a thumb actually reaches.\n\nIt renders the tablist from its `tabs` through its own fragment, like `Tabs` and `Segmented`, so a mod can reshape a tab the same way it can reshape any other control.\n\nThe runtime adds what markup can't: a *roving tabindex*, so the whole bar is a single tab stop in the page with the arrow keys (plus Home / End) moving between sections inside it, rather than every tab being its own stop to tab past.\n\nEach tab takes an optional icon and a badge. The selected one is marked by an accent bar as well as by color, so which section you're in never rests on hue alone.",
|
|
47
|
+
bindings: ["html", "svelte", "astro"],
|
|
48
|
+
anatomy: [
|
|
49
|
+
{
|
|
50
|
+
name: "bar",
|
|
51
|
+
description: "The tab bar itself: an equal-column grid, so any number of sections divide the width evenly. Absorbs the bottom safe-area inset so nothing sits under a home indicator.",
|
|
52
|
+
selector: ".xtyle-bottom-nav",
|
|
53
|
+
tokens: ["--bg-1", "--line", "--border-thin"],
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: "item",
|
|
57
|
+
description: "A tab: an icon over a label, with the whole cell as the touch target rather than just the glyph.",
|
|
58
|
+
selector: ".xtyle-bottom-nav__item",
|
|
59
|
+
tokens: ["--fg-3", "--accent-text", "--text-xs", "--space-8"],
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: "indicator",
|
|
63
|
+
description: "The accent bar over the selected tab: the non-color cue that says which section is current.",
|
|
64
|
+
selector: ".xtyle-bottom-nav__item[aria-selected=\"true\"]::before",
|
|
65
|
+
tokens: ["--accent", "--border-thick", "--radius-sm"],
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: "badge",
|
|
69
|
+
description: "The optional count on a tab, for an unread or pending total.",
|
|
70
|
+
selector: ".xtyle-bottom-nav__badge",
|
|
71
|
+
tokens: ["--accent", "--accent-fg", "--radius-full"],
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
props: [
|
|
75
|
+
{
|
|
76
|
+
name: "value",
|
|
77
|
+
type: "string",
|
|
78
|
+
description: "The selected tab's `data-value`. Reflected, and updated on select; listen for `change` to read it back.",
|
|
79
|
+
bindings: ["html", "svelte", "astro"],
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: "label",
|
|
83
|
+
type: "string",
|
|
84
|
+
default: "Sections",
|
|
85
|
+
description: "The accessible name of the tablist, e.g. \"Sections\".",
|
|
86
|
+
bindings: ["html", "svelte", "astro"],
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "tabs",
|
|
90
|
+
type: "BottomNavTab[]",
|
|
91
|
+
description: "The tabs, in the bindings: `{ value, label, icon?, badge? }`. Pass an array from the bindings, or JSON on the attribute for a static page.",
|
|
92
|
+
bindings: ["html", "svelte", "astro"],
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
variants: [],
|
|
96
|
+
sizes: [],
|
|
97
|
+
states: [
|
|
98
|
+
{
|
|
99
|
+
name: "selected",
|
|
100
|
+
description: "The current section: accent-colored, and marked by the accent bar above it.",
|
|
101
|
+
selector: ".xtyle-bottom-nav__item[aria-selected=\"true\"]",
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
slots: [],
|
|
105
|
+
consumedTokens: [
|
|
106
|
+
"--bg-1",
|
|
107
|
+
"--line",
|
|
108
|
+
"--fg-3",
|
|
109
|
+
"--accent",
|
|
110
|
+
"--accent-fg",
|
|
111
|
+
"--accent-text",
|
|
112
|
+
"--ring",
|
|
113
|
+
"--radius-sm",
|
|
114
|
+
"--radius-full",
|
|
115
|
+
"--border-thin",
|
|
116
|
+
"--border-thick",
|
|
117
|
+
"--text-xs",
|
|
118
|
+
"--weight-medium",
|
|
119
|
+
"--weight-semibold",
|
|
120
|
+
"--space-1",
|
|
121
|
+
"--space-2",
|
|
122
|
+
"--space-4",
|
|
123
|
+
"--space-6",
|
|
124
|
+
"--space-8",
|
|
125
|
+
"--duration-fast",
|
|
126
|
+
"--ease-standard",
|
|
127
|
+
],
|
|
128
|
+
composition: [
|
|
129
|
+
"Drop it in a `MobileShell`'s `nav` slot; the two are designed as a pair.",
|
|
130
|
+
"Keep it to three to five sections. A bottom bar is a thumb surface, not a menu, and past five the targets get too narrow to hit.",
|
|
131
|
+
"It carries top-level sections, not actions. A destructive or one-off action belongs in the app bar or a sheet, where an accidental thumb-brush can't fire it.",
|
|
132
|
+
],
|
|
133
|
+
a11y: [
|
|
134
|
+
"It is a real `role=\"tablist\"` of `role=\"tab\"` buttons carrying `aria-selected`, so a screen reader announces the section count and which one is current.",
|
|
135
|
+
"A roving tabindex makes the whole bar one tab stop: the arrow keys (and Home / End) move between sections, so a keyboard user doesn't have to tab past every tab to leave the bar.",
|
|
136
|
+
"The selected tab is marked by an accent bar as well as by color, so the current section reads for a color-deficient user (WCAG 1.4.1).",
|
|
137
|
+
"The tabs are real `<button>`s carrying `role=\"tab\"`, rendered through the same SSR path as every other component, so the bar paints and every label is reachable before the runtime hydrates it; the runtime adds the roving tabindex and the key handling.",
|
|
138
|
+
"The bar absorbs the bottom safe-area inset, so no tab sits under a home indicator where it can't be tapped.",
|
|
139
|
+
],
|
|
140
|
+
examples: [
|
|
141
|
+
{
|
|
142
|
+
id: "sections",
|
|
143
|
+
title: "Sections",
|
|
144
|
+
description: "A tab bar over the app's top-level sections. Arrow keys move between them; `change` reports the new `value`.",
|
|
145
|
+
source: { html: htmlExample, svelte: svelteExample, astro: astroExample },
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
};
|
|
149
|
+
//# sourceMappingURL=bottom-nav.manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bottom-nav.manifest.js","sourceRoot":"","sources":["../../src/manifest/bottom-nav.manifest.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAG;;;;;;;;;;;UAWV,CAAC;AAEX,MAAM,aAAa,GAAG;;;;;;;;;;;2DAWqC,CAAC;AAE5D,MAAM,YAAY,GAAG;;;;;;;;;;;;GAYlB,CAAC;AAEJ,MAAM,CAAC,MAAM,iBAAiB,GAAsB;IACnD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;YACd,OAAO,EAAE,UAAU;YACnB,WAAW,EAAE,wDAAwD;YACrE,QAAQ,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC;SACrC;QACD;YACC,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,gBAAgB;YACtB,WAAW,EAAE,4IAA4I;YACzJ,QAAQ,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC;SACrC;KACD;IACD,QAAQ,EAAE,EAAE;IACZ,KAAK,EAAE,EAAE;IACT,MAAM,EAAE;QACP;YACC,IAAI,EAAE,UAAU;YAChB,WAAW,EAAE,6EAA6E;YAC1F,QAAQ,EAAE,iDAAiD;SAC3D;KACD;IACD,KAAK,EAAE,EAAE;IACT,cAAc,EAAE;QACf,QAAQ;QACR,QAAQ;QACR,QAAQ;QACR,UAAU;QACV,aAAa;QACb,eAAe;QACf,QAAQ;QACR,aAAa;QACb,eAAe;QACf,eAAe;QACf,gBAAgB;QAChB,WAAW;QACX,iBAAiB;QACjB,mBAAmB;QACnB,WAAW;QACX,WAAW;QACX,WAAW;QACX,WAAW;QACX,WAAW;QACX,iBAAiB;QACjB,iBAAiB;KACjB;IACD,WAAW,EAAE;QACZ,0EAA0E;QAC1E,kIAAkI;QAClI,+JAA+J;KAC/J;IACD,IAAI,EAAE;QACL,8JAA8J;QAC9J,oLAAoL;QACpL,wIAAwI;QACxI,+PAA+P;QAC/P,6GAA6G;KAC7G;IACD,QAAQ,EAAE;QACT;YACC,EAAE,EAAE,UAAU;YACd,KAAK,EAAE,UAAU;YACjB,WAAW,EAAE,8GAA8G;YAC3H,MAAM,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,YAAY,EAAE;SACzE;KACD;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.manifest.d.ts","sourceRoot":"","sources":["../../src/manifest/carousel.manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"carousel.manifest.d.ts","sourceRoot":"","sources":["../../src/manifest/carousel.manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAqEpD,eAAO,MAAM,gBAAgB,EAAE,iBA0K9B,CAAC"}
|
|
@@ -8,6 +8,21 @@ const autoplayHtmlExample = `<xtyle-carousel label="Highlights" autoplay interva
|
|
|
8
8
|
<div>Slide two</div>
|
|
9
9
|
<div>Slide three</div>
|
|
10
10
|
</xtyle-carousel>`;
|
|
11
|
+
const transitionHtmlExample = `<xtyle-carousel label="Featured" transition="fade" autoplay loop>
|
|
12
|
+
<div>First</div>
|
|
13
|
+
<div>Second</div>
|
|
14
|
+
<div>Third</div>
|
|
15
|
+
</xtyle-carousel>`;
|
|
16
|
+
const transitionSvelteExample = `<Carousel label="Featured" transition="fade" autoplay loop>
|
|
17
|
+
<div>First</div>
|
|
18
|
+
<div>Second</div>
|
|
19
|
+
<div>Third</div>
|
|
20
|
+
</Carousel>`;
|
|
21
|
+
const transitionAstroExample = `<Carousel label="Featured" transition="fade" autoplay loop>
|
|
22
|
+
<div>First</div>
|
|
23
|
+
<div>Second</div>
|
|
24
|
+
<div>Third</div>
|
|
25
|
+
</Carousel>`;
|
|
11
26
|
const autoplaySvelteExample = `<script lang="ts">
|
|
12
27
|
import { Carousel } from "@xtyle/svelte";
|
|
13
28
|
</script>
|
|
@@ -49,7 +64,7 @@ export const carouselManifest = {
|
|
|
49
64
|
keywords: ["slideshow", "gallery", "slides", "swiper", "scroll snap", "slider"],
|
|
50
65
|
seeAlso: ["image", "hero", "tabs"],
|
|
51
66
|
summary: "A scroll-snap track of slides with prev/next controls, dots, keyboard, and opt-in autoplay.",
|
|
52
|
-
description: "Carousel lays its slotted children out as a horizontal scroll-snap track: each child is a slide, and the browser's own scrolling does the paging, so the track is swipeable and keyboard-scrollable with no JavaScript at all. When the runtime is present it grows a control bar, prev and next buttons (drawn with the chevron icons), a row of pagination dots that track and drive the active slide, and arrow-key and Home/End navigation, all wired over the same native scroll. An opt-in `autoplay` advances the track on an `interval`, pausing on hover and focus and standing still entirely under `prefers-reduced-motion`; `loop` wraps the ends. It is content-agnostic: the slides can be `Image`s, `Card`s, or any markup, and it exposes itself as a labelled carousel region with each slide named for assistive tech.",
|
|
67
|
+
description: "Carousel lays its slotted children out as a horizontal scroll-snap track: each child is a slide, and the browser's own scrolling does the paging, so the track is swipeable and keyboard-scrollable with no JavaScript at all. When the runtime is present it grows a control bar, prev and next buttons (drawn with the chevron icons), a row of pagination dots that track and drive the active slide, and arrow-key and Home/End navigation, all wired over the same native scroll. An opt-in `autoplay` advances the track on an `interval`, pausing on hover and focus and standing still entirely under `prefers-reduced-motion`; `loop` wraps the ends seamlessly, scrolling into an inert clone of the far slide and then silently snapping to the real one so the wrap never rewinds. The `transition` prop swaps the paging model: `slide` keeps the scroll-snap track, while `fade`, `scale`, and `flip` stack the slides and cross-fade the active one, so a testimonial or hero rotator can dissolve rather than slide. It is content-agnostic: the slides can be `Image`s, `Card`s, or any markup, and it exposes itself as a labelled carousel region with each slide named for assistive tech.",
|
|
53
68
|
bindings: ["html", "svelte", "astro"],
|
|
54
69
|
anatomy: [
|
|
55
70
|
{
|
|
@@ -96,15 +111,16 @@ export const carouselManifest = {
|
|
|
96
111
|
name: "loop",
|
|
97
112
|
type: "boolean",
|
|
98
113
|
default: "false",
|
|
99
|
-
description: "Wraps past the last slide
|
|
114
|
+
description: "Wraps seamlessly past the last slide to the first (and back): the track scrolls forward into an inert clone of the far slide, then silently snaps to the real one, so the wrap reads as continuous motion instead of a rewind. The prev/next buttons stay enabled at the ends.",
|
|
100
115
|
bindings: ["html", "svelte", "astro"],
|
|
101
116
|
},
|
|
102
117
|
{
|
|
103
118
|
name: "controls",
|
|
104
|
-
type: "boolean",
|
|
119
|
+
type: "boolean | \"overlay\"",
|
|
105
120
|
default: "true",
|
|
106
|
-
description: "
|
|
121
|
+
description: "Where the prev/next buttons sit: `true` renders them in a bar below the track; `\"overlay\"` floats them on the slide edges (arrows at the left/right, dots and the play toggle over the bottom) for an in-image gallery; `\"false\"` hides them and relies on swipe, dots, and keys. The overlay layer is click-through except for the controls, so a swipe or a link inside a slide still works.",
|
|
107
122
|
bindings: ["html", "svelte", "astro"],
|
|
123
|
+
options: ["true", "false", "overlay"],
|
|
108
124
|
},
|
|
109
125
|
{
|
|
110
126
|
name: "dots",
|
|
@@ -113,6 +129,29 @@ export const carouselManifest = {
|
|
|
113
129
|
description: "Shows the pagination dots. Set `dots=\"false\"` to hide them.",
|
|
114
130
|
bindings: ["html", "svelte", "astro"],
|
|
115
131
|
},
|
|
132
|
+
{
|
|
133
|
+
name: "pause-on-hover",
|
|
134
|
+
type: "boolean",
|
|
135
|
+
default: "true",
|
|
136
|
+
description: "Whether hovering or focusing the carousel pauses autoplay. Set `pause-on-hover=\"false\"` when the rotation is the point and should keep running under the pointer: a decorative marquee, an ambient gallery, or a preview revealed inside an `Image`'s `hover` slot (which only shows while hovered, so a hover-pause would freeze it on its first slide). The explicit play/pause toggle and `prefers-reduced-motion` still stop it, so the content stays pausable.",
|
|
137
|
+
bindings: ["html", "svelte", "astro"],
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: "transition",
|
|
141
|
+
type: "CarouselTransition",
|
|
142
|
+
default: "slide",
|
|
143
|
+
description: "How slides change. `slide` (the default) pages a scroll-snap track sideways; `fade`, `scale`, and `flip` instead stack the slides and cross-fade the active one (`scale` adds a subtle zoom, `flip` a card turn). The stacked modes have no swipe track, so they lean on the controls, dots, and keys.",
|
|
144
|
+
bindings: ["html", "svelte", "astro"],
|
|
145
|
+
options: ["slide", "fade", "scale", "flip"],
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: "direction",
|
|
149
|
+
type: "CarouselDirection",
|
|
150
|
+
default: "right",
|
|
151
|
+
description: "Which way a `slide` carousel advances. `right` (the default) and `left` page a horizontal track; `up` and `down` a vertical one (give it a height with `--carousel-height`, default `18rem`). `left` and `up` reverse the sense. Moot for the stacked transitions.",
|
|
152
|
+
bindings: ["html", "svelte", "astro"],
|
|
153
|
+
options: ["right", "left", "up", "down"],
|
|
154
|
+
},
|
|
116
155
|
],
|
|
117
156
|
variants: [],
|
|
118
157
|
sizes: [],
|
|
@@ -130,29 +169,38 @@ export const carouselManifest = {
|
|
|
130
169
|
"--bg-3",
|
|
131
170
|
"--fg-1",
|
|
132
171
|
"--fg-2",
|
|
172
|
+
"--fg-3",
|
|
133
173
|
"--accent",
|
|
134
174
|
"--line-2",
|
|
175
|
+
"--surface-overlay",
|
|
176
|
+
"--surface-overlay-border",
|
|
135
177
|
"--radius-full",
|
|
136
178
|
"--border-thin",
|
|
137
179
|
"--border-thick",
|
|
138
180
|
"--ring",
|
|
181
|
+
"--elevation-2",
|
|
139
182
|
"--selection-cue",
|
|
140
183
|
"--space-2",
|
|
141
184
|
"--space-3",
|
|
142
185
|
"--space-6",
|
|
143
186
|
"--duration-fast",
|
|
187
|
+
"--duration-slow",
|
|
144
188
|
"--ease-standard",
|
|
189
|
+
"--ease-emphasized",
|
|
145
190
|
],
|
|
146
191
|
composition: [
|
|
147
192
|
"Put `Image`s in the track for a photo gallery; pair each with a `ratio` so the slides stay a consistent height.",
|
|
148
193
|
"Slot `Card`s for a featured-content rail, or any markup for a testimonial or onboarding sequence.",
|
|
149
194
|
"Set `autoplay` with `loop` for an unattended hero rotation; it pauses the moment a user hovers or focuses it.",
|
|
150
195
|
"Set `controls=\"false\"` on a touch-first surface to lean on swipe and dots alone.",
|
|
196
|
+
"A vertical `direction` (`up` / `down`) suits uniform, media-shaped slides: it pins each slide to `--carousel-height` and clips the overflow, so give it a height that fits the content and reach for it over long text cards.",
|
|
151
197
|
],
|
|
152
198
|
a11y: [
|
|
153
199
|
"The carousel is a labelled `region` with `aria-roledescription=\"carousel\"`, and each slide is a labelled group announced as `N of M`.",
|
|
154
200
|
"The track is focusable and scrolls with the arrow keys and Home/End; the prev/next buttons and dots are labelled controls.",
|
|
155
201
|
"Autoplay pauses on hover and focus, and stops entirely under `prefers-reduced-motion`, so motion never runs against a user's stated preference.",
|
|
202
|
+
"An autoplay carousel grows a persistent play/pause toggle in the control bar (WCAG 2.2.2): the user can stop the motion outright, and a deliberate pause survives a pointer leaving and re-entering, unlike the transient hover pause.",
|
|
203
|
+
"The active slide is announced through a polite live region (`Slide N of M`), so a screen-reader user hears each change even though scrolling, or a stacked cross-fade, never moves focus.",
|
|
156
204
|
"With no JavaScript the slides remain visible and the track stays natively scrollable, so no content is trapped behind the enhancement.",
|
|
157
205
|
"The current slide carries a non-color channel on demand: when the theme sets `--selection-cue: marker`, the active dot elongates into a pill alongside the accent color, so which slide is current never rests on color alone (WCAG 1.4.1). High-contrast emits `marker` by default, and any algorithm can opt in via the `cues` knob.",
|
|
158
206
|
],
|
|
@@ -169,6 +217,12 @@ export const carouselManifest = {
|
|
|
169
217
|
description: "An auto-advancing, looping track that pauses on hover or focus.",
|
|
170
218
|
source: { html: autoplayHtmlExample, svelte: autoplaySvelteExample, astro: autoplayAstroExample },
|
|
171
219
|
},
|
|
220
|
+
{
|
|
221
|
+
id: "transition",
|
|
222
|
+
title: "Fade transition",
|
|
223
|
+
description: "A stacked cross-fade instead of a sliding track, for a testimonial or hero rotator.",
|
|
224
|
+
source: { html: transitionHtmlExample, svelte: transitionSvelteExample, astro: transitionAstroExample },
|
|
225
|
+
},
|
|
172
226
|
],
|
|
173
227
|
};
|
|
174
228
|
//# sourceMappingURL=carousel.manifest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.manifest.js","sourceRoot":"","sources":["../../src/manifest/carousel.manifest.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAG;;;;kBAIF,CAAC;AAEnB,MAAM,mBAAmB,GAAG;;;;kBAIV,CAAC;AAEnB,MAAM,qBAAqB,GAAG;;;;;;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ACD;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.manifest.d.ts","sourceRoot":"","sources":["../../src/manifest/dialog.manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAoDpD,eAAO,MAAM,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"dialog.manifest.d.ts","sourceRoot":"","sources":["../../src/manifest/dialog.manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAoDpD,eAAO,MAAM,cAAc,EAAE,iBAgO5B,CAAC"}
|
|
@@ -52,7 +52,7 @@ export const dialogManifest = {
|
|
|
52
52
|
keywords: ["modal", "popup", "overlay", "lightbox", "confirm", "sheet"],
|
|
53
53
|
seeAlso: ["tooltip", "menu", "toast"],
|
|
54
54
|
summary: "A centered modal built on the native `<dialog>` element: scrim, focus trap, and Esc-to-close come for free.",
|
|
55
|
-
description: "Dialog is a centered modal that wraps the platform `<dialog>` element, so the native modal machinery (the top-layer scrim, the focus trap, focus restore on close, `Escape` to dismiss, and the `role`/`aria-modal` semantics) all comes from the browser rather than re-implemented JavaScript. Open and close it imperatively with `showModal()` / `close()` (or the reactive `open` prop in the framework wrappers). It lays out a header, a scrolling body, and a footer via named slots, and ships a close button by default. The header is wired to the dialog with `aria-labelledby` whenever a `heading` (or explicit `labelledby`) is supplied; a dialog that brings its own `header` slot instead names itself with `label`, since `aria-labelledby` cannot reach a slotted title across the shadow boundary.
|
|
55
|
+
description: "Dialog is a centered modal that wraps the platform `<dialog>` element, so the native modal machinery (the top-layer scrim, the focus trap, focus restore on close, `Escape` to dismiss, and the `role`/`aria-modal` semantics) all comes from the browser rather than re-implemented JavaScript. Open and close it imperatively with `showModal()` / `close()` (or the reactive `open` prop in the framework wrappers). It lays out a header, a scrolling body, and a footer via named slots, and ships a close button by default. The header is wired to the dialog with `aria-labelledby` whenever a `heading` (or explicit `labelledby`) is supplied; a dialog that brings its own `header` slot instead names itself with `label`, since `aria-labelledby` cannot reach a slotted title across the shadow boundary. Five sizes (sm, md, lg, xl, full) cap its width while it stays responsive on small screens; `xl` (64rem) and `full` cover editor-class content, and the inner panel is exposed as `::part(dialog)` so a consumer can size or style it to an exact width directly.",
|
|
56
56
|
bindings: ["html", "svelte", "astro"],
|
|
57
57
|
anatomy: [
|
|
58
58
|
{
|
|
@@ -125,11 +125,11 @@ export const dialogManifest = {
|
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
name: "size",
|
|
128
|
-
type: "
|
|
128
|
+
type: "DialogSize",
|
|
129
129
|
default: "md",
|
|
130
|
-
description: "Caps the dialog's width.",
|
|
130
|
+
description: "Caps the dialog's width. `xl` (64rem) and `full` cover editor-class content; for an exact width, style `::part(dialog)`.",
|
|
131
131
|
bindings: ["html", "svelte", "astro"],
|
|
132
|
-
options: ["sm", "md", "lg"],
|
|
132
|
+
options: ["sm", "md", "lg", "xl", "full"],
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
name: "heading",
|
|
@@ -169,6 +169,8 @@ export const dialogManifest = {
|
|
|
169
169
|
{ name: "sm", description: "Compact: for short confirmations.", className: "xtyle-dialog--sm" },
|
|
170
170
|
{ name: "md", description: "Default.", className: "xtyle-dialog", isDefault: true },
|
|
171
171
|
{ name: "lg", description: "Roomy: for richer content.", className: "xtyle-dialog--lg" },
|
|
172
|
+
{ name: "xl", description: "Wide (64rem): editor-class content, multi-column forms.", className: "xtyle-dialog--xl" },
|
|
173
|
+
{ name: "full", description: "Viewport width minus the responsive margin.", className: "xtyle-dialog--full" },
|
|
172
174
|
],
|
|
173
175
|
states: [
|
|
174
176
|
{
|
|
@@ -248,6 +250,7 @@ export const dialogManifest = {
|
|
|
248
250
|
"Pair the footer with Button for the action row; wire a ghost neutral Cancel to `close()` and the primary action to its handler.",
|
|
249
251
|
"Use `heading` for the common titled case; drop in a `header` slot when the title needs an icon, badge, or subtitle.",
|
|
250
252
|
"Set `no-close-button` when the dialog is a blocking confirm whose only exits are explicit footer actions.",
|
|
253
|
+
"For a wide, editor-class host (a code editor, a multi-column form), reach for `size=\"xl\"` (64rem) or `size=\"full\"`; for an exact width or any other panel styling, target `::part(dialog)` from the consumer's own stylesheet (`xtyle-dialog::part(dialog) { width: min(1100px, 96vw); }`).",
|
|
251
254
|
],
|
|
252
255
|
a11y: [
|
|
253
256
|
"Built on the native `<dialog>` element, so `role=\"dialog\"`, `aria-modal=\"true\"`, the focus trap, focus restore on close, and `Escape`-to-dismiss all come from the browser.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.manifest.js","sourceRoot":"","sources":["../../src/manifest/dialog.manifest.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAG;;;;;;;;;;;;gBAYJ,CAAC;AAEjB,MAAM,aAAa,GAAG;;;;;;;;;;;;;;UAcZ,CAAC;AAEX,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;UAkBX,CAAC;AAEX,MAAM,CAAC,MAAM,cAAc,GAAsB;IAChD,EAAE,EAAE,QAAQ;IACZ,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,CAAC;IACvE,OAAO,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC;IACrC,OAAO,EAAE,6GAA6G;IACtH,WAAW,EACV,
|
|
1
|
+
{"version":3,"file":"dialog.manifest.js","sourceRoot":"","sources":["../../src/manifest/dialog.manifest.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,GAAG;;;;;;;;;;;;gBAYJ,CAAC;AAEjB,MAAM,aAAa,GAAG;;;;;;;;;;;;;;UAcZ,CAAC;AAEX,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;;UAkBX,CAAC;AAEX,MAAM,CAAC,MA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,EAAE,aAAa,EAAE,KAAK,EAAE,YAAY,EAAE;SACzE;KACD;CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dot.manifest.d.ts","sourceRoot":"","sources":["../../src/manifest/dot.manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAmCpD,eAAO,MAAM,WAAW,EAAE,iBA6IzB,CAAC"}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { FULL_TONES } from "../vocab.js";
|
|
2
|
+
const htmlExample = `<xtyle-dot tone="success" label="Online"></xtyle-dot>
|
|
3
|
+
|
|
4
|
+
<xtyle-dot tone="danger" ping label="Live"></xtyle-dot>
|
|
5
|
+
|
|
6
|
+
<xtyle-dot tone="accent" glow size="lg"></xtyle-dot>
|
|
7
|
+
|
|
8
|
+
<xtyle-dot color="#a855f7" ping></xtyle-dot>`;
|
|
9
|
+
const svelteExample = `<script lang="ts">
|
|
10
|
+
import { Dot } from "@xtyle/svelte";
|
|
11
|
+
</script>
|
|
12
|
+
|
|
13
|
+
<Dot tone="success" label="Online" />
|
|
14
|
+
|
|
15
|
+
<Dot tone="danger" ping label="Live" />
|
|
16
|
+
|
|
17
|
+
<Dot tone="accent" glow size="lg" />
|
|
18
|
+
|
|
19
|
+
<Dot color="#a855f7" ping />`;
|
|
20
|
+
const astroExample = `---
|
|
21
|
+
import Dot from "@xtyle/astro/Dot.astro";
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
<Dot tone="success" label="Online" />
|
|
25
|
+
|
|
26
|
+
<Dot tone="danger" ping label="Live" />
|
|
27
|
+
|
|
28
|
+
<Dot tone="accent" glow size="lg" />
|
|
29
|
+
|
|
30
|
+
<Dot color="#a855f7" ping />`;
|
|
31
|
+
export const dotManifest = {
|
|
32
|
+
id: "dot",
|
|
33
|
+
name: "Dot",
|
|
34
|
+
since: "0.7.0",
|
|
35
|
+
category: "feedback",
|
|
36
|
+
keywords: ["status", "indicator", "presence", "online", "offline", "live", "ping", "pulse", "pip", "led"],
|
|
37
|
+
seeAlso: ["badge", "spinner", "swatch"],
|
|
38
|
+
summary: "A standalone status dot: a bare indicator in any tone, with optional ping, glow, and pulse.",
|
|
39
|
+
description: "Dot is the bare indicator for \"presence without a full chip\": a connection light in a titlebar, a per-row streaming pip, an online/offline marker. `tone` colors it across the six semantic roles (plus the accent variants and named hues), `size` picks sm, md, or lg, and a `color` escape hatch paints any raw value past the tone set (a `color-mix(...)` expression, a per-state color from a status map). Three composable animations layer on: `ping` radiates an expanding ring, `glow` adds a soft halo, and `pulse` breathes the dot at a slow or fast cadence; all three hold still under `prefers-reduced-motion`. 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-dot` utility class stays available for global-CSS pages. A labelled dot is exposed as a named `role=\"img\"`; an unlabelled one is decorative and hidden from assistive tech.",
|
|
40
|
+
bindings: ["html", "svelte", "astro"],
|
|
41
|
+
anatomy: [
|
|
42
|
+
{
|
|
43
|
+
name: "dot",
|
|
44
|
+
description: "The dot itself: a full-radius circle filled with the resolved `--dot-color`.",
|
|
45
|
+
selector: ".xtyle-dot",
|
|
46
|
+
tokens: ["--neutral", "--radius-full", "--space-2"],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: "ping",
|
|
50
|
+
description: "The expanding ring on a `ping` dot: an `::after` clone that scales out and fades on a loop.",
|
|
51
|
+
selector: ".xtyle-dot--ping::after",
|
|
52
|
+
tokens: ["--ease-standard"],
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
props: [
|
|
56
|
+
{
|
|
57
|
+
name: "tone",
|
|
58
|
+
type: "FullTone",
|
|
59
|
+
default: "neutral",
|
|
60
|
+
description: "Semantic color role (or named hue) driving the dot color.",
|
|
61
|
+
bindings: ["html", "svelte", "astro"],
|
|
62
|
+
options: [...FULL_TONES],
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
name: "size",
|
|
66
|
+
type: "DotSize",
|
|
67
|
+
default: "md",
|
|
68
|
+
description: "Dot diameter, stepped off the spacing scale.",
|
|
69
|
+
bindings: ["html", "svelte", "astro"],
|
|
70
|
+
options: ["sm", "md", "lg"],
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "pulse",
|
|
74
|
+
type: "DotPulse",
|
|
75
|
+
description: "Breathe the dot's opacity at a slow or fast cadence.",
|
|
76
|
+
bindings: ["html", "svelte", "astro"],
|
|
77
|
+
options: ["slow", "fast"],
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "ping",
|
|
81
|
+
type: "boolean",
|
|
82
|
+
default: "false",
|
|
83
|
+
description: "Radiate an expanding ring for a live/active indicator.",
|
|
84
|
+
bindings: ["html", "svelte", "astro"],
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: "glow",
|
|
88
|
+
type: "boolean",
|
|
89
|
+
default: "false",
|
|
90
|
+
description: "Add a soft halo in the dot color.",
|
|
91
|
+
bindings: ["html", "svelte", "astro"],
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "color",
|
|
95
|
+
type: "string",
|
|
96
|
+
description: "Escape hatch: paint the dot any raw color, past the tone set. Sets `--dot-color` and wins over `tone`.",
|
|
97
|
+
bindings: ["html", "svelte", "astro"],
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: "label",
|
|
101
|
+
type: "string",
|
|
102
|
+
description: "Accessible name. When set, the dot is exposed as `role=\"img\"`; when absent, it is decorative and hidden.",
|
|
103
|
+
bindings: ["html", "svelte", "astro"],
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
variants: FULL_TONES.map((tone) => ({
|
|
107
|
+
name: tone,
|
|
108
|
+
description: `${tone}-toned dot.`,
|
|
109
|
+
className: `xtyle-dot--${tone}`,
|
|
110
|
+
tokens: [`--${tone}`],
|
|
111
|
+
})),
|
|
112
|
+
sizes: [
|
|
113
|
+
{ name: "sm", description: "Compact.", className: "xtyle-dot--sm" },
|
|
114
|
+
{ name: "md", description: "Default.", className: "xtyle-dot", isDefault: true },
|
|
115
|
+
{ name: "lg", description: "Large.", className: "xtyle-dot--lg" },
|
|
116
|
+
],
|
|
117
|
+
states: [
|
|
118
|
+
{
|
|
119
|
+
name: "ping",
|
|
120
|
+
description: "An expanding ring radiates outward on a loop.",
|
|
121
|
+
selector: ".xtyle-dot--ping",
|
|
122
|
+
tokens: ["--ease-standard"],
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: "glow",
|
|
126
|
+
description: "A soft halo in the dot color.",
|
|
127
|
+
selector: ".xtyle-dot--glow",
|
|
128
|
+
tokens: ["--border-thin"],
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
name: "pulse-slow",
|
|
132
|
+
description: "Slow opacity breathe.",
|
|
133
|
+
selector: ".xtyle-dot--pulse-slow",
|
|
134
|
+
tokens: ["--ease-standard"],
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: "pulse-fast",
|
|
138
|
+
description: "Fast opacity breathe.",
|
|
139
|
+
selector: ".xtyle-dot--pulse-fast",
|
|
140
|
+
tokens: ["--ease-standard"],
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
slots: [],
|
|
144
|
+
consumedTokens: [
|
|
145
|
+
"--radius-full",
|
|
146
|
+
"--space-2",
|
|
147
|
+
"--space-3",
|
|
148
|
+
"--space-4",
|
|
149
|
+
"--border-thin",
|
|
150
|
+
"--ease-standard",
|
|
151
|
+
...FULL_TONES.map((t) => `--${t}`),
|
|
152
|
+
],
|
|
153
|
+
composition: [
|
|
154
|
+
"Reach for Dot when you want a color-coded status without a label chip; reach for Badge when the status wants a word beside it.",
|
|
155
|
+
"Compose `ping` + `glow` for a strong live indicator; add `pulse` for a quieter breathe when a full ping ring is too loud.",
|
|
156
|
+
"Use `color` for a per-state palette wider than the tone set (a run-state map, a `color-mix(...)` expression); `tone` covers the common semantic cases.",
|
|
157
|
+
],
|
|
158
|
+
a11y: [
|
|
159
|
+
"A labelled dot is exposed as a named `role=\"img\"`, so its meaning does not rest on color alone.",
|
|
160
|
+
"An unlabelled dot is treated as decorative and hidden from assistive tech, since color without a name carries no meaning to a screen reader.",
|
|
161
|
+
"All three animations (`ping`, `glow` shimmer, `pulse`) hold still under `prefers-reduced-motion`.",
|
|
162
|
+
],
|
|
163
|
+
examples: [
|
|
164
|
+
{
|
|
165
|
+
id: "tones-states-color",
|
|
166
|
+
title: "Tones, states, and the color escape hatch",
|
|
167
|
+
description: "A labelled status dot, a live ping, a glowing accent, and a raw custom color.",
|
|
168
|
+
source: { html: htmlExample, svelte: svelteExample, astro: astroExample },
|
|
169
|
+
},
|
|
170
|
+
],
|
|
171
|
+
};
|
|
172
|
+
//# sourceMappingURL=dot.manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dot.manifest.js","sourceRoot":"","sources":["../../src/manifest/dot.manifest.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,WAAW,GAAG;;;;;;6CAMyB,CAAC;AAE9C,MAAM,aAAa,GAAG;;;;;;;;;;6BAUO,CAAC;AAE9B,MAAM,YAAY,GAAG;;;;;;;;;;6BAUQ,CAAC;AAE9B,MAAM,CAAC,MAAM,WAAW,GAAsB;IAC7C,EAAE,EAAE,KAAK;IACT,IAAI,EAAE,KAAK;IACX,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,CAAC,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC;IACzG,OAAO,EAAE,CAAC,OAAO,EAAE,SAAS,EAAE,QAAQ,CAAC;IACvC,OAAO,EAAE,6FAA6F;IACtG,WAAW,EACV,i7BAAi7B;IACl7B,Q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C,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,uBAAuB;YACpC,QAAQ,EAAE,wBAAwB;YAClC,MAAM,EAAE,CAAC,iBAAiB,CAAC;SAC3B;QACD;YACC,IAAI,EAAE,YAAY;YAClB,WAAW,EAAE,uBAAuB;YACpC,QAAQ,EAAE,wBAAwB;YAClC,MAAM,EAAE,CAAC,iBAAiB,CAAC;SAC3B;KACD;IACD,KAAK,EAAE,EAAE;IACT,cAAc,EAAE;QACf,eAAe;QACf,WAAW;QACX,WAAW;QACX,WAAW;QACX,eAAe;QACf,iBAAiB;QACjB,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,EAAW,CAAC;KAC3C;IACD,WAAW,EAAE;QACZ,gIAAgI;QAChI,2HAA2H;QAC3H,wJAAwJ;KACxJ;IACD,IAAI,EAAE;QACL,mGAAmG;QACnG,8IAA8I;QAC9I,mGAAmG;KACnG;IACD,QAAQ,EAAE;QACT;YACC,EAAE,EAAE,oBAAoB;YACxB,KAAK,EAAE,2CAA2C;YAClD,WAAW,EAAE,+EAA+E;YAC5F,MAAM,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,YAAY,EAAE;SACzE;KACD;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heatmap.manifest.d.ts","sourceRoot":"","sources":["../../src/manifest/heatmap.manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"heatmap.manifest.d.ts","sourceRoot":"","sources":["../../src/manifest/heatmap.manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAiNpD,eAAO,MAAM,eAAe,EAAE,iBA8S7B,CAAC"}
|