@xtyle/core 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -6
- package/dist/algorithms/factory.d.ts +24 -1
- package/dist/algorithms/factory.d.ts.map +1 -1
- package/dist/algorithms/factory.js +373 -59
- 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/cli.js +19 -7
- 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 +0 -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 +4 -0
- package/dist/host/index.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 +11 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- 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/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 +13 -0
- package/dist/theme-file.d.ts.map +1 -1
- package/dist/theme-file.js +32 -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 +64 -1
- 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/package.json +1 -1
|
@@ -1,5 +1,25 @@
|
|
|
1
|
+
// The direction rules apply to the sliding track only; the stacked transitions ignore the axis.
|
|
2
|
+
const sliding = ':not(:is([transition="fade"], [transition="scale"], [transition="flip"]))';
|
|
1
3
|
export const carouselCss = `
|
|
2
|
-
xtyle-carousel { display: block; position: relative; }
|
|
4
|
+
xtyle-carousel { display: block; position: relative; --carousel-height: 18rem; }
|
|
5
|
+
/* Until the runtime upgrades it, a carousel is just its slides sitting in the page with no track to
|
|
6
|
+
hold them, so they paint as a tall stack of full-width blocks and then snap into a carousel once the
|
|
7
|
+
element catches up. Lay the un-enhanced host out as the same scroll-snap row the track uses: the
|
|
8
|
+
first paint is already a carousel, and the no-JS render stays a usable swipeable strip instead of a
|
|
9
|
+
pile. Once enhanced the host goes back to block and its built track takes over. */
|
|
10
|
+
xtyle-carousel:not([data-enhanced]) {
|
|
11
|
+
display: flex;
|
|
12
|
+
gap: var(--space-3);
|
|
13
|
+
overflow-x: auto;
|
|
14
|
+
scroll-snap-type: x mandatory;
|
|
15
|
+
scrollbar-width: none;
|
|
16
|
+
}
|
|
17
|
+
xtyle-carousel:not([data-enhanced])::-webkit-scrollbar { display: none; }
|
|
18
|
+
xtyle-carousel:not([data-enhanced]) > * {
|
|
19
|
+
flex: 0 0 100%;
|
|
20
|
+
min-width: 0;
|
|
21
|
+
scroll-snap-align: start;
|
|
22
|
+
}
|
|
3
23
|
.xtyle-carousel__viewport { overflow: hidden; }
|
|
4
24
|
.xtyle-carousel__track {
|
|
5
25
|
position: relative;
|
|
@@ -20,6 +40,44 @@ xtyle-carousel { display: block; position: relative; }
|
|
|
20
40
|
min-width: 0;
|
|
21
41
|
scroll-snap-align: start;
|
|
22
42
|
}
|
|
43
|
+
/* Direction: the cardinal sets the track axis (right/left horizontal, up/down vertical) and the sense
|
|
44
|
+
(left/up reverse the flex axis). Scoped to the sliding track, since the axis is moot for the stacked
|
|
45
|
+
transitions. A vertical track needs a height; --carousel-height sets it (default 18rem). */
|
|
46
|
+
xtyle-carousel[direction="left"]${sliding} .xtyle-carousel__track {
|
|
47
|
+
flex-direction: row-reverse;
|
|
48
|
+
}
|
|
49
|
+
xtyle-carousel[direction="left"]${sliding} .xtyle-carousel__dots {
|
|
50
|
+
flex-direction: row-reverse;
|
|
51
|
+
}
|
|
52
|
+
xtyle-carousel:is([direction="up"], [direction="down"])${sliding} .xtyle-carousel__viewport {
|
|
53
|
+
height: var(--carousel-height);
|
|
54
|
+
}
|
|
55
|
+
xtyle-carousel:is([direction="up"], [direction="down"])${sliding} .xtyle-carousel__track {
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
overflow-x: hidden;
|
|
58
|
+
overflow-y: auto;
|
|
59
|
+
overscroll-behavior: contain;
|
|
60
|
+
scroll-snap-type: y mandatory;
|
|
61
|
+
height: 100%;
|
|
62
|
+
}
|
|
63
|
+
xtyle-carousel[direction="up"]${sliding} .xtyle-carousel__track {
|
|
64
|
+
flex-direction: column-reverse;
|
|
65
|
+
}
|
|
66
|
+
xtyle-carousel:is([direction="up"], [direction="down"]) .xtyle-carousel__slide {
|
|
67
|
+
min-height: 0;
|
|
68
|
+
}
|
|
69
|
+
.xtyle-carousel__live {
|
|
70
|
+
position: absolute;
|
|
71
|
+
width: 1px;
|
|
72
|
+
height: 1px;
|
|
73
|
+
padding: 0;
|
|
74
|
+
margin: -1px;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
clip: rect(0 0 0 0);
|
|
77
|
+
clip-path: inset(50%);
|
|
78
|
+
white-space: nowrap;
|
|
79
|
+
border: 0;
|
|
80
|
+
}
|
|
23
81
|
.xtyle-carousel__controls {
|
|
24
82
|
display: none;
|
|
25
83
|
align-items: center;
|
|
@@ -73,8 +131,93 @@ xtyle-carousel[data-enhanced] .xtyle-carousel__controls { display: flex; }
|
|
|
73
131
|
@container style(--selection-cue: marker) {
|
|
74
132
|
.xtyle-carousel__dot.is-active { width: 1.4rem; }
|
|
75
133
|
}
|
|
134
|
+
|
|
135
|
+
/* Overlay controls: the arrows ride the slide edges and the dots float over the bottom, instead of
|
|
136
|
+
sitting in a bar beneath the track. The container is click-through; only the controls take pointer
|
|
137
|
+
events, so a swipe or a link inside a slide still works. */
|
|
138
|
+
xtyle-carousel[data-enhanced][data-controls="overlay"] .xtyle-carousel__controls {
|
|
139
|
+
position: absolute;
|
|
140
|
+
inset: 0;
|
|
141
|
+
z-index: 2;
|
|
142
|
+
display: block;
|
|
143
|
+
margin: 0;
|
|
144
|
+
pointer-events: none;
|
|
145
|
+
}
|
|
146
|
+
xtyle-carousel[data-controls="overlay"] .xtyle-carousel__nav {
|
|
147
|
+
position: absolute;
|
|
148
|
+
top: 50%;
|
|
149
|
+
transform: translateY(-50%);
|
|
150
|
+
pointer-events: auto;
|
|
151
|
+
border-color: var(--surface-overlay-border);
|
|
152
|
+
box-shadow: var(--elevation-2);
|
|
153
|
+
}
|
|
154
|
+
xtyle-carousel[data-controls="overlay"] .xtyle-carousel__nav--prev { inset-inline-start: var(--space-2); }
|
|
155
|
+
xtyle-carousel[data-controls="overlay"] .xtyle-carousel__nav--next { inset-inline-end: var(--space-2); }
|
|
156
|
+
xtyle-carousel[data-controls="overlay"] .xtyle-carousel__nav--play {
|
|
157
|
+
top: auto;
|
|
158
|
+
bottom: var(--space-2);
|
|
159
|
+
inset-inline-end: var(--space-2);
|
|
160
|
+
transform: none;
|
|
161
|
+
}
|
|
162
|
+
xtyle-carousel[data-controls="overlay"] .xtyle-carousel__dots {
|
|
163
|
+
position: absolute;
|
|
164
|
+
inset-block-end: var(--space-2);
|
|
165
|
+
inset-inline-start: 50%;
|
|
166
|
+
transform: translateX(-50%);
|
|
167
|
+
pointer-events: auto;
|
|
168
|
+
padding: 0.3rem 0.55rem;
|
|
169
|
+
border-radius: var(--radius-full);
|
|
170
|
+
background: var(--surface-overlay);
|
|
171
|
+
border: var(--border-thin) solid var(--surface-overlay-border);
|
|
172
|
+
}
|
|
173
|
+
xtyle-carousel[data-controls="overlay"] .xtyle-carousel__dot { background: var(--fg-3); }
|
|
174
|
+
xtyle-carousel[data-controls="overlay"] .xtyle-carousel__dot.is-active { background: var(--accent); }
|
|
76
175
|
@media (prefers-reduced-motion: reduce) {
|
|
77
176
|
.xtyle-carousel__track { scroll-behavior: auto; }
|
|
78
177
|
}
|
|
178
|
+
|
|
179
|
+
/* Stacked transitions (fade / scale / flip): the slides overlay in a single grid cell and the active
|
|
180
|
+
one cross-fades in, instead of a scroll-snap track paging sideways. Gated on [data-enhanced] so the
|
|
181
|
+
opacity:0 stack never hides content before the runtime marks a slide active. */
|
|
182
|
+
xtyle-carousel[data-enhanced]:is([transition="fade"], [transition="scale"], [transition="flip"]) .xtyle-carousel__track {
|
|
183
|
+
display: grid;
|
|
184
|
+
gap: 0;
|
|
185
|
+
overflow: hidden;
|
|
186
|
+
scroll-snap-type: none;
|
|
187
|
+
perspective: 1200px;
|
|
188
|
+
}
|
|
189
|
+
/* The incoming slide is placed *under* the outgoing one already fully opaque, and the outgoing fades
|
|
190
|
+
out on top of it to reveal it. Cross-fading the two against each other instead (one out while the
|
|
191
|
+
other comes in) never adds up to full coverage mid-transition, so whatever sits behind the carousel
|
|
192
|
+
(a page background, or the still under an Image hover-preview) flashes through on every change; it
|
|
193
|
+
also races, since the reveal only stays covered if the two ramps line up frame-for-frame. Fading the
|
|
194
|
+
top layer out over an already-opaque one cannot gap, whatever the timing. */
|
|
195
|
+
xtyle-carousel[data-enhanced]:is([transition="fade"], [transition="scale"], [transition="flip"]) .xtyle-carousel__slide {
|
|
196
|
+
grid-area: 1 / 1;
|
|
197
|
+
opacity: 0;
|
|
198
|
+
/* A slide that just lost is-active sits above the incoming one and fades out over it. */
|
|
199
|
+
z-index: 2;
|
|
200
|
+
pointer-events: none;
|
|
201
|
+
transition:
|
|
202
|
+
opacity var(--duration-slow) var(--ease-standard),
|
|
203
|
+
transform var(--duration-slow) var(--ease-emphasized);
|
|
204
|
+
}
|
|
205
|
+
xtyle-carousel[data-enhanced]:is([transition="fade"], [transition="scale"], [transition="flip"]) .xtyle-carousel__slide.is-active {
|
|
206
|
+
opacity: 1;
|
|
207
|
+
/* Underneath, and opaque from the first frame: it is revealed, never faded in. */
|
|
208
|
+
z-index: 1;
|
|
209
|
+
pointer-events: auto;
|
|
210
|
+
transition: transform var(--duration-slow) var(--ease-emphasized);
|
|
211
|
+
}
|
|
212
|
+
xtyle-carousel[transition="scale"] .xtyle-carousel__slide { transform: scale(0.92); }
|
|
213
|
+
xtyle-carousel[transition="scale"] .xtyle-carousel__slide.is-active { transform: scale(1); }
|
|
214
|
+
xtyle-carousel[transition="flip"] .xtyle-carousel__slide { transform: rotateY(90deg); backface-visibility: hidden; }
|
|
215
|
+
xtyle-carousel[transition="flip"] .xtyle-carousel__slide.is-active { transform: rotateY(0deg); }
|
|
216
|
+
@media (prefers-reduced-motion: reduce) {
|
|
217
|
+
xtyle-carousel:is([transition="fade"], [transition="scale"], [transition="flip"]) .xtyle-carousel__slide {
|
|
218
|
+
transition: none;
|
|
219
|
+
transform: none;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
79
222
|
`.trim();
|
|
80
223
|
//# sourceMappingURL=carousel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.js","sourceRoot":"","sources":["../../../src/css/components/carousel.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG
|
|
1
|
+
{"version":3,"file":"carousel.js","sourceRoot":"","sources":["../../../src/css/components/carousel.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,MAAM,OAAO,GAAG,2EAA2E,CAAC;AAE5F,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCA2CO,OAAO;;;kCAGP,OAAO;;;yDAGgB,OAAO;;;yDAGP,OAAO;;;;;;;;gCAQhC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+JtC,CAAC,IAAI,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/css/components/dialog.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../src/css/components/dialog.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,QA2Gd,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export const dialogCss = `
|
|
2
2
|
.xtyle-dialog {
|
|
3
|
-
|
|
3
|
+
--_dialog-size: 32rem;
|
|
4
|
+
width: min(var(--_dialog-size), calc(100vw - var(--space-6)));
|
|
4
5
|
max-width: calc(100vw - var(--space-6));
|
|
5
6
|
max-height: calc(100vh - var(--space-6));
|
|
6
7
|
padding: 0;
|
|
@@ -23,11 +24,16 @@ export const dialogCss = `
|
|
|
23
24
|
background: var(--scrim);
|
|
24
25
|
}
|
|
25
26
|
.xtyle-dialog--sm {
|
|
26
|
-
|
|
27
|
+
--_dialog-size: 24rem;
|
|
27
28
|
}
|
|
28
29
|
.xtyle-dialog--lg {
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
--_dialog-size: 48rem;
|
|
31
|
+
}
|
|
32
|
+
.xtyle-dialog--xl {
|
|
33
|
+
--_dialog-size: 64rem;
|
|
34
|
+
}
|
|
35
|
+
.xtyle-dialog--full {
|
|
36
|
+
--_dialog-size: 100vw;
|
|
31
37
|
}
|
|
32
38
|
.xtyle-dialog__header {
|
|
33
39
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.js","sourceRoot":"","sources":["../../../src/css/components/dialog.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG
|
|
1
|
+
{"version":3,"file":"dialog.js","sourceRoot":"","sources":["../../../src/css/components/dialog.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2GxB,CAAC,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dot.d.ts","sourceRoot":"","sources":["../../../src/css/components/dot.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,QAqEX,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { FULL_TONES as TONES } from "../../vocab.js";
|
|
2
|
+
export const dotCss = `
|
|
3
|
+
.xtyle-dot {
|
|
4
|
+
--dot-color: var(--neutral);
|
|
5
|
+
--dot-pulse-duration: 1.4s;
|
|
6
|
+
position: relative;
|
|
7
|
+
display: inline-block;
|
|
8
|
+
/* An empty inline-block's baseline is its bottom margin edge, so a bare dot hangs its bottom off
|
|
9
|
+
the text baseline and reads as sitting below the line. Center it on the text instead. */
|
|
10
|
+
vertical-align: middle;
|
|
11
|
+
width: var(--space-3);
|
|
12
|
+
height: var(--space-3);
|
|
13
|
+
flex: none;
|
|
14
|
+
border-radius: var(--radius-full);
|
|
15
|
+
background: var(--dot-color);
|
|
16
|
+
}
|
|
17
|
+
.xtyle-dot--sm {
|
|
18
|
+
width: var(--space-2);
|
|
19
|
+
height: var(--space-2);
|
|
20
|
+
}
|
|
21
|
+
.xtyle-dot--lg {
|
|
22
|
+
width: var(--space-4);
|
|
23
|
+
height: var(--space-4);
|
|
24
|
+
}
|
|
25
|
+
${TONES.map((t) => `.xtyle-dot--${t} { --dot-color: var(--${t}); }`).join("\n")}
|
|
26
|
+
.xtyle-dot--pulse-slow {
|
|
27
|
+
--dot-pulse-duration: 1.8s;
|
|
28
|
+
animation: xtyle-dot-pulse var(--dot-pulse-duration) var(--ease-standard) infinite;
|
|
29
|
+
}
|
|
30
|
+
.xtyle-dot--pulse-fast {
|
|
31
|
+
--dot-pulse-duration: 0.9s;
|
|
32
|
+
animation: xtyle-dot-pulse var(--dot-pulse-duration) var(--ease-standard) infinite;
|
|
33
|
+
}
|
|
34
|
+
.xtyle-dot--glow {
|
|
35
|
+
box-shadow:
|
|
36
|
+
0 0 0 var(--border-thin) color-mix(in oklch, var(--dot-color) 35%, transparent),
|
|
37
|
+
0 0 var(--space-2) 0 var(--dot-color);
|
|
38
|
+
}
|
|
39
|
+
.xtyle-dot--ping::after {
|
|
40
|
+
content: "";
|
|
41
|
+
position: absolute;
|
|
42
|
+
inset: 0;
|
|
43
|
+
border-radius: inherit;
|
|
44
|
+
background: var(--dot-color);
|
|
45
|
+
animation: xtyle-dot-ping var(--dot-pulse-duration) var(--ease-standard) infinite;
|
|
46
|
+
}
|
|
47
|
+
@keyframes xtyle-dot-pulse {
|
|
48
|
+
50% { opacity: 0.4; }
|
|
49
|
+
}
|
|
50
|
+
@keyframes xtyle-dot-ping {
|
|
51
|
+
0% {
|
|
52
|
+
transform: scale(1);
|
|
53
|
+
opacity: 0.55;
|
|
54
|
+
}
|
|
55
|
+
80%,
|
|
56
|
+
100% {
|
|
57
|
+
transform: scale(2.6);
|
|
58
|
+
opacity: 0;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
@media (prefers-reduced-motion: reduce) {
|
|
62
|
+
.xtyle-dot--pulse-slow,
|
|
63
|
+
.xtyle-dot--pulse-fast {
|
|
64
|
+
animation: none;
|
|
65
|
+
}
|
|
66
|
+
.xtyle-dot--ping::after {
|
|
67
|
+
animation: none;
|
|
68
|
+
opacity: 0;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
`.trim();
|
|
72
|
+
//# sourceMappingURL=dot.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dot.js","sourceRoot":"","sources":["../../../src/css/components/dot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,CAAC,MAAM,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;EAuBpB,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,yBAAyB,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8C9E,CAAC,IAAI,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heatmap.d.ts","sourceRoot":"","sources":["../../../src/css/components/heatmap.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"heatmap.d.ts","sourceRoot":"","sources":["../../../src/css/components/heatmap.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,QAoIf,CAAC"}
|
|
@@ -75,6 +75,29 @@ export const heatmapCss = `
|
|
|
75
75
|
border-radius: 2px;
|
|
76
76
|
border: var(--border-thin) solid var(--bg-0);
|
|
77
77
|
}
|
|
78
|
+
.xtyle-heatmap__legend {
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-wrap: wrap;
|
|
81
|
+
align-items: center;
|
|
82
|
+
gap: var(--space-1) var(--space-3);
|
|
83
|
+
margin-top: var(--space-2);
|
|
84
|
+
font-size: var(--text-xs);
|
|
85
|
+
color: var(--fg-3);
|
|
86
|
+
}
|
|
87
|
+
.xtyle-heatmap__legend-item {
|
|
88
|
+
display: inline-flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
gap: var(--space-1);
|
|
91
|
+
}
|
|
92
|
+
.xtyle-heatmap__legend-swatch {
|
|
93
|
+
width: 0.9rem;
|
|
94
|
+
height: 0.9rem;
|
|
95
|
+
border-radius: 2px;
|
|
96
|
+
border: var(--border-thin) solid var(--bg-0);
|
|
97
|
+
}
|
|
98
|
+
.xtyle-heatmap__legend-label {
|
|
99
|
+
color: var(--fg-2);
|
|
100
|
+
}
|
|
78
101
|
.xtyle-heatmap__tooltip {
|
|
79
102
|
position: absolute;
|
|
80
103
|
top: 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"heatmap.js","sourceRoot":"","sources":["../../../src/css/components/heatmap.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG
|
|
1
|
+
{"version":3,"file":"heatmap.js","sourceRoot":"","sources":["../../../src/css/components/heatmap.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoIzB,CAAC,IAAI,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/css/components/image.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/css/components/image.ts"],"names":[],"mappings":"AA8JA;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,QA2DrB,CAAC;AAET,eAAO,MAAM,QAAQ,QAAiD,CAAC"}
|
|
@@ -23,7 +23,9 @@ const cornerButton = `
|
|
|
23
23
|
box-shadow: 0 0 0 var(--border-thin) var(--surface-overlay-border), var(--elevation-3);
|
|
24
24
|
`.trim();
|
|
25
25
|
const imageFrameCss = `
|
|
26
|
+
xtyle-image { display: block; }
|
|
26
27
|
[data-image] { display: contents; }
|
|
28
|
+
.xtyle-image__media { display: contents; }
|
|
27
29
|
.xtyle-image {
|
|
28
30
|
display: block;
|
|
29
31
|
margin: 0;
|
|
@@ -97,6 +99,44 @@ const imageFrameCss = `
|
|
|
97
99
|
@media (hover: none) {
|
|
98
100
|
.xtyle-image__zoom { opacity: 1; transform: none; }
|
|
99
101
|
}
|
|
102
|
+
.xtyle-image__hover {
|
|
103
|
+
position: absolute;
|
|
104
|
+
inset: 0;
|
|
105
|
+
z-index: 1;
|
|
106
|
+
opacity: 0;
|
|
107
|
+
visibility: hidden;
|
|
108
|
+
pointer-events: none;
|
|
109
|
+
transition: opacity var(--duration-slow) var(--ease-standard), visibility 0s linear var(--duration-slow);
|
|
110
|
+
}
|
|
111
|
+
.xtyle-image__frame[data-hover-active] .xtyle-image__hover {
|
|
112
|
+
opacity: 1;
|
|
113
|
+
visibility: visible;
|
|
114
|
+
transition: opacity var(--duration-slow) var(--ease-standard);
|
|
115
|
+
}
|
|
116
|
+
/* The revealed media fills the frame. The slotted rule matches the shadow-projected path; the
|
|
117
|
+
direct-child rule matches the light / SSR path where the media is inlined into the overlay.
|
|
118
|
+
Both skip script / style nodes: a slotted island (a nested carousel) carries its own hydration
|
|
119
|
+
script, and sizing that non-visual node to the frame would push the real content out of view. */
|
|
120
|
+
.xtyle-image__hover ::slotted(:not(script):not(style)),
|
|
121
|
+
.xtyle-image__hover > :not(slot):not(script):not(style):not(.xtyle-image__audio),
|
|
122
|
+
.xtyle-image__hover-media {
|
|
123
|
+
display: block;
|
|
124
|
+
width: 100%;
|
|
125
|
+
height: 100%;
|
|
126
|
+
object-fit: cover;
|
|
127
|
+
}
|
|
128
|
+
.xtyle-image__audio {
|
|
129
|
+
${cornerButton}
|
|
130
|
+
top: auto;
|
|
131
|
+
bottom: var(--space-2);
|
|
132
|
+
right: var(--space-2);
|
|
133
|
+
pointer-events: auto;
|
|
134
|
+
cursor: pointer;
|
|
135
|
+
}
|
|
136
|
+
.xtyle-image__audio:focus-visible {
|
|
137
|
+
outline: var(--border-thick) solid var(--ring);
|
|
138
|
+
outline-offset: 2px;
|
|
139
|
+
}
|
|
100
140
|
.xtyle-image__caption {
|
|
101
141
|
margin-top: var(--space-2);
|
|
102
142
|
color: var(--fg-2);
|
|
@@ -111,6 +151,7 @@ const imageFrameCss = `
|
|
|
111
151
|
.xtyle-image__placeholder { animation: none; }
|
|
112
152
|
.xtyle-image__img { transition: none; }
|
|
113
153
|
.xtyle-image__zoom { transition: none; }
|
|
154
|
+
.xtyle-image__hover { transition: none; }
|
|
114
155
|
}
|
|
115
156
|
`.trim();
|
|
116
157
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.js","sourceRoot":"","sources":["../../../src/css/components/image.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;CAiBpB,CAAC,IAAI,EAAE,CAAC;AAET,MAAM,aAAa,GAAG
|
|
1
|
+
{"version":3,"file":"image.js","sourceRoot":"","sources":["../../../src/css/components/image.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,YAAY,GAAG;;;;;;;;;;;;;;;;;CAiBpB,CAAC,IAAI,EAAE,CAAC;AAET,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDnB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CZ,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2Bd,CAAC,IAAI,EAAE,CAAC;AAET;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;GAuB7B,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCd,CAAC,IAAI,EAAE,CAAC;AAET,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,aAAa,KAAK,gBAAgB,EAAE,CAAC,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobile-shell.d.ts","sourceRoot":"","sources":["../../../src/css/components/mobile-shell.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,QA6DnB,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export const mobileShellCss = `
|
|
2
|
+
.xtyle-mshell {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
height: 100dvh;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
background: var(--body-bg);
|
|
8
|
+
color: var(--fg-0);
|
|
9
|
+
font-family: var(--font-sans);
|
|
10
|
+
font-size: var(--text-body);
|
|
11
|
+
line-height: var(--leading-normal);
|
|
12
|
+
}
|
|
13
|
+
/* The bar and the nav absorb the safe-area insets (the notch above, the home indicator below), so the
|
|
14
|
+
content column between them is never the thing sliding under hardware. */
|
|
15
|
+
.xtyle-mshell__bar {
|
|
16
|
+
flex: 0 0 auto;
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: var(--space-3);
|
|
20
|
+
padding: calc(env(safe-area-inset-top, 0px) + var(--space-3)) var(--space-4) var(--space-3);
|
|
21
|
+
background: var(--bg-1);
|
|
22
|
+
border-bottom: var(--border-thin) solid var(--line);
|
|
23
|
+
}
|
|
24
|
+
.xtyle-mshell__lead {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: var(--space-2);
|
|
28
|
+
margin-inline-end: auto;
|
|
29
|
+
min-width: 0;
|
|
30
|
+
}
|
|
31
|
+
.xtyle-mshell__title {
|
|
32
|
+
color: var(--fg-0);
|
|
33
|
+
font-size: var(--text-lg);
|
|
34
|
+
font-weight: var(--weight-semibold);
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
text-overflow: ellipsis;
|
|
38
|
+
}
|
|
39
|
+
.xtyle-mshell__actions {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: var(--space-2);
|
|
43
|
+
flex: 0 0 auto;
|
|
44
|
+
}
|
|
45
|
+
.xtyle-mshell__content {
|
|
46
|
+
flex: 1 1 auto;
|
|
47
|
+
/* Without this a flex child refuses to shrink below its content, so the page scrolls instead of the
|
|
48
|
+
column, carrying the bar and the nav off screen with it. */
|
|
49
|
+
min-height: 0;
|
|
50
|
+
overflow-y: auto;
|
|
51
|
+
overscroll-behavior: contain;
|
|
52
|
+
padding: var(--space-4);
|
|
53
|
+
padding-bottom: var(--space-6);
|
|
54
|
+
}
|
|
55
|
+
.xtyle-mshell__content:focus-visible {
|
|
56
|
+
outline: var(--border-normal) solid transparent;
|
|
57
|
+
box-shadow: inset 0 0 0 var(--border-thick) var(--ring);
|
|
58
|
+
}
|
|
59
|
+
.xtyle-mshell__nav {
|
|
60
|
+
flex: 0 0 auto;
|
|
61
|
+
}
|
|
62
|
+
`.trim();
|
|
63
|
+
//# sourceMappingURL=mobile-shell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobile-shell.js","sourceRoot":"","sources":["../../../src/css/components/mobile-shell.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6D7B,CAAC,IAAI,EAAE,CAAC"}
|
|
@@ -48,7 +48,7 @@ export const panelCss = `
|
|
|
48
48
|
.xtyle-panel--scroll .xtyle-panel__body {
|
|
49
49
|
overflow-y: auto;
|
|
50
50
|
max-height: var(--space-8);
|
|
51
|
-
scrollbar-color: var(--
|
|
51
|
+
scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
|
|
52
52
|
}
|
|
53
53
|
.xtyle-panel--scroll .xtyle-panel__body:focus-visible {
|
|
54
54
|
outline: var(--border-normal) solid transparent;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const qrCss = "\n[data-qr] { display: inline-block; }\n.xtyle-qr {\n\t--qr-size: 200px;\n\t--qr-module: var(--fg-0);\n\t--qr-bg: var(--bg-0);\n\tdisplay: inline-flex;\n\tflex-direction: column;\n\talign-items: stretch;\n\tgap: var(--space-2);\n\tmargin: 0;\n}\n.xtyle-qr__code {\n\tposition: relative;\n\twidth: var(--qr-size);\n\theight: var(--qr-size);\n\tmax-width: 100%;\n\tborder-radius: var(--radius-md);\n}\n.xtyle-qr__svg {\n\tdisplay: block;\n\twidth: 100%;\n\theight: 100%;\n\tborder-radius: inherit;\n}\n.xtyle-qr__bg {\n\tfill: var(--qr-bg);\n}\n.xtyle-qr__modules {\n\tfill: var(--qr-module);\n}\n.xtyle-qr__logo {\n\tposition: absolute;\n\tdisplay: grid;\n\tplace-items: center;\n\tpointer-events: none;\n\tcolor: var(--qr-module);\n\tcontainer-type: inline-size;\n}\n.xtyle-qr__logo-inner {\n\tdisplay: grid;\n\tplace-items: center;\n\twidth: 100%;\n\theight: 100%;\n}\n/* Knockout: the modules under the logo are cut from the path, so a background-colored pad fills the\n hole and the mark sits inside it with a small margin. */\n.xtyle-qr__logo--knockout .xtyle-qr__logo-inner {\n\tbackground: var(--qr-bg);\n\tborder-radius: var(--radius-md);\n}\n/* The icon glyph is 1em and renders inside the icon element's shadow root, so it can only be sized by\n an inherited property (font-size crosses the boundary), not by width. Container-query units scale it\n to the logo box regardless of the icon's own size system. */\n.xtyle-qr__icon {\n\tfont-size: 92cqi;\n\tline-height: 1;\n}\n.xtyle-qr__logo--overlay .xtyle-qr__icon {\n\tfont-size: 100cqi;\n}\n.xtyle-qr__img {\n\twidth: 92%;\n\theight: 92%;\n\tobject-fit: contain;\n\tborder-radius: var(--radius-md);\n}\n/* Overlay: the mark lays over the modules (error correction recovers the covered ones), filling the\n whole logo box. */\n.xtyle-qr__logo--overlay .xtyle-qr__img {\n\twidth: 100%;\n\theight: 100%;\n}\n/* Outline: a background-colored halo so the mark reads against the modules, most useful in overlay. */\n.xtyle-qr__logo--outline .xtyle-qr__icon,\n.xtyle-qr__logo--outline .xtyle-qr__img {\n\tfilter: drop-shadow(0 0 1.5px var(--qr-bg)) drop-shadow(0 0 1.5px var(--qr-bg)) drop-shadow(0 0 1px var(--qr-bg));\n}\n.xtyle-qr--framed {\n\tgap: var(--space-3);\n\tpadding: var(--space-3);\n\tbackground: var(--bg-1);\n\tborder-radius: var(--radius-lg);\n}\n.xtyle-qr--framed .xtyle-qr__code {\n\twidth: 100%;\n\taspect-ratio: 1 / 1;\n\theight: auto;\n}\n.xtyle-qr__footer {\n\tdisplay: flex;\n\talign-items: center;\n\tgap: var(--space-2);\n}\n.xtyle-qr__caption {\n\tflex: 1 1 auto;\n\tmargin: 0;\n\tmin-width: 0;\n\tfont-family: var(--font-mono);\n\tfont-size: var(--text-sm);\n\ttext-align: center;\n\toverflow-wrap: anywhere;\n}\nfigcaption.xtyle-qr__caption {\n\tcolor: var(--fg-1);\n}\n/* The themed/bitonal swap button on the frame. */\n.xtyle-qr__toggle {\n\tflex: none;\n\tdisplay: inline-grid;\n\tplace-items: center;\n\twidth: 1.75rem;\n\theight: 1.75rem;\n\tpadding: 0;\n\tborder: 0;\n\tcursor: pointer;\n\tcolor: var(--fg-1);\n\tbackground: transparent;\n\tborder-radius: var(--radius-md);\n}\n.xtyle-qr__toggle:hover {\n\tcolor: var(--fg-0);\n\tbackground: var(--bg-0);\n}\n.xtyle-qr__toggle:focus-visible {\n\toutline: 2px solid var(--ring);\n\toutline-offset: 2px;\n}\n.xtyle-qr__toggle-icon {\n\twidth: 1rem;\n\theight: 1rem;\n}\n";
|
|
2
|
+
//# sourceMappingURL=qr.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qr.d.ts","sourceRoot":"","sources":["../../../src/css/components/qr.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,wvGAoIjB,CAAC"}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
export const qrCss = `
|
|
2
|
+
[data-qr] { display: inline-block; }
|
|
3
|
+
.xtyle-qr {
|
|
4
|
+
--qr-size: 200px;
|
|
5
|
+
--qr-module: var(--fg-0);
|
|
6
|
+
--qr-bg: var(--bg-0);
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
align-items: stretch;
|
|
10
|
+
gap: var(--space-2);
|
|
11
|
+
margin: 0;
|
|
12
|
+
}
|
|
13
|
+
.xtyle-qr__code {
|
|
14
|
+
position: relative;
|
|
15
|
+
width: var(--qr-size);
|
|
16
|
+
height: var(--qr-size);
|
|
17
|
+
max-width: 100%;
|
|
18
|
+
border-radius: var(--radius-md);
|
|
19
|
+
}
|
|
20
|
+
.xtyle-qr__svg {
|
|
21
|
+
display: block;
|
|
22
|
+
width: 100%;
|
|
23
|
+
height: 100%;
|
|
24
|
+
border-radius: inherit;
|
|
25
|
+
}
|
|
26
|
+
.xtyle-qr__bg {
|
|
27
|
+
fill: var(--qr-bg);
|
|
28
|
+
}
|
|
29
|
+
.xtyle-qr__modules {
|
|
30
|
+
fill: var(--qr-module);
|
|
31
|
+
}
|
|
32
|
+
.xtyle-qr__logo {
|
|
33
|
+
position: absolute;
|
|
34
|
+
display: grid;
|
|
35
|
+
place-items: center;
|
|
36
|
+
pointer-events: none;
|
|
37
|
+
color: var(--qr-module);
|
|
38
|
+
container-type: inline-size;
|
|
39
|
+
}
|
|
40
|
+
.xtyle-qr__logo-inner {
|
|
41
|
+
display: grid;
|
|
42
|
+
place-items: center;
|
|
43
|
+
width: 100%;
|
|
44
|
+
height: 100%;
|
|
45
|
+
}
|
|
46
|
+
/* Knockout: the modules under the logo are cut from the path, so a background-colored pad fills the
|
|
47
|
+
hole and the mark sits inside it with a small margin. */
|
|
48
|
+
.xtyle-qr__logo--knockout .xtyle-qr__logo-inner {
|
|
49
|
+
background: var(--qr-bg);
|
|
50
|
+
border-radius: var(--radius-md);
|
|
51
|
+
}
|
|
52
|
+
/* The icon glyph is 1em and renders inside the icon element's shadow root, so it can only be sized by
|
|
53
|
+
an inherited property (font-size crosses the boundary), not by width. Container-query units scale it
|
|
54
|
+
to the logo box regardless of the icon's own size system. */
|
|
55
|
+
.xtyle-qr__icon {
|
|
56
|
+
font-size: 92cqi;
|
|
57
|
+
line-height: 1;
|
|
58
|
+
}
|
|
59
|
+
.xtyle-qr__logo--overlay .xtyle-qr__icon {
|
|
60
|
+
font-size: 100cqi;
|
|
61
|
+
}
|
|
62
|
+
.xtyle-qr__img {
|
|
63
|
+
width: 92%;
|
|
64
|
+
height: 92%;
|
|
65
|
+
object-fit: contain;
|
|
66
|
+
border-radius: var(--radius-md);
|
|
67
|
+
}
|
|
68
|
+
/* Overlay: the mark lays over the modules (error correction recovers the covered ones), filling the
|
|
69
|
+
whole logo box. */
|
|
70
|
+
.xtyle-qr__logo--overlay .xtyle-qr__img {
|
|
71
|
+
width: 100%;
|
|
72
|
+
height: 100%;
|
|
73
|
+
}
|
|
74
|
+
/* Outline: a background-colored halo so the mark reads against the modules, most useful in overlay. */
|
|
75
|
+
.xtyle-qr__logo--outline .xtyle-qr__icon,
|
|
76
|
+
.xtyle-qr__logo--outline .xtyle-qr__img {
|
|
77
|
+
filter: drop-shadow(0 0 1.5px var(--qr-bg)) drop-shadow(0 0 1.5px var(--qr-bg)) drop-shadow(0 0 1px var(--qr-bg));
|
|
78
|
+
}
|
|
79
|
+
.xtyle-qr--framed {
|
|
80
|
+
gap: var(--space-3);
|
|
81
|
+
padding: var(--space-3);
|
|
82
|
+
background: var(--bg-1);
|
|
83
|
+
border-radius: var(--radius-lg);
|
|
84
|
+
}
|
|
85
|
+
.xtyle-qr--framed .xtyle-qr__code {
|
|
86
|
+
width: 100%;
|
|
87
|
+
aspect-ratio: 1 / 1;
|
|
88
|
+
height: auto;
|
|
89
|
+
}
|
|
90
|
+
.xtyle-qr__footer {
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
gap: var(--space-2);
|
|
94
|
+
}
|
|
95
|
+
.xtyle-qr__caption {
|
|
96
|
+
flex: 1 1 auto;
|
|
97
|
+
margin: 0;
|
|
98
|
+
min-width: 0;
|
|
99
|
+
font-family: var(--font-mono);
|
|
100
|
+
font-size: var(--text-sm);
|
|
101
|
+
text-align: center;
|
|
102
|
+
overflow-wrap: anywhere;
|
|
103
|
+
}
|
|
104
|
+
figcaption.xtyle-qr__caption {
|
|
105
|
+
color: var(--fg-1);
|
|
106
|
+
}
|
|
107
|
+
/* The themed/bitonal swap button on the frame. */
|
|
108
|
+
.xtyle-qr__toggle {
|
|
109
|
+
flex: none;
|
|
110
|
+
display: inline-grid;
|
|
111
|
+
place-items: center;
|
|
112
|
+
width: 1.75rem;
|
|
113
|
+
height: 1.75rem;
|
|
114
|
+
padding: 0;
|
|
115
|
+
border: 0;
|
|
116
|
+
cursor: pointer;
|
|
117
|
+
color: var(--fg-1);
|
|
118
|
+
background: transparent;
|
|
119
|
+
border-radius: var(--radius-md);
|
|
120
|
+
}
|
|
121
|
+
.xtyle-qr__toggle:hover {
|
|
122
|
+
color: var(--fg-0);
|
|
123
|
+
background: var(--bg-0);
|
|
124
|
+
}
|
|
125
|
+
.xtyle-qr__toggle:focus-visible {
|
|
126
|
+
outline: 2px solid var(--ring);
|
|
127
|
+
outline-offset: 2px;
|
|
128
|
+
}
|
|
129
|
+
.xtyle-qr__toggle-icon {
|
|
130
|
+
width: 1rem;
|
|
131
|
+
height: 1rem;
|
|
132
|
+
}
|
|
133
|
+
`;
|
|
134
|
+
//# sourceMappingURL=qr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qr.js","sourceRoot":"","sources":["../../../src/css/components/qr.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoIpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../src/css/components/radio.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../src/css/components/radio.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,QAAQ,QA6Kb,CAAC"}
|