@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
|
@@ -6,16 +6,6 @@
|
|
|
6
6
|
"title": "Xtyle components",
|
|
7
7
|
"description": "The host surface a xtyle component fragment fills: an inert template plus sandboxed hooks and handlers, rendered into the component's shadow root.",
|
|
8
8
|
"slots": [
|
|
9
|
-
{
|
|
10
|
-
"id": "component.tabs",
|
|
11
|
-
"description": "The built-in fill for the xtyle Tabs component: the mod-zero markup and behavior every app inherits and may override.",
|
|
12
|
-
"accepts": [
|
|
13
|
-
"text/html+jsml"
|
|
14
|
-
],
|
|
15
|
-
"capability": "xtyle.component.tabs",
|
|
16
|
-
"multiple": false,
|
|
17
|
-
"style": "inherit"
|
|
18
|
-
},
|
|
19
9
|
{
|
|
20
10
|
"id": "component.accordion",
|
|
21
11
|
"description": "The built-in fill for the xtyle Accordion component: the mod-zero markup and behavior every app inherits and may override.",
|
|
@@ -26,26 +16,6 @@
|
|
|
26
16
|
"multiple": false,
|
|
27
17
|
"style": "inherit"
|
|
28
18
|
},
|
|
29
|
-
{
|
|
30
|
-
"id": "component.button",
|
|
31
|
-
"description": "The built-in fill for the xtyle Button component: the mod-zero markup every app inherits and may override.",
|
|
32
|
-
"accepts": [
|
|
33
|
-
"text/html+jsml"
|
|
34
|
-
],
|
|
35
|
-
"capability": "xtyle.component.button",
|
|
36
|
-
"multiple": false,
|
|
37
|
-
"style": "inherit"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"id": "component.switch",
|
|
41
|
-
"description": "The built-in fill for the xtyle Switch component: the mod-zero markup and behavior every app inherits and may override.",
|
|
42
|
-
"accepts": [
|
|
43
|
-
"text/html+jsml"
|
|
44
|
-
],
|
|
45
|
-
"capability": "xtyle.component.switch",
|
|
46
|
-
"multiple": false,
|
|
47
|
-
"style": "inherit"
|
|
48
|
-
},
|
|
49
19
|
{
|
|
50
20
|
"id": "component.alert",
|
|
51
21
|
"description": "The built-in fill for the xtyle Alert component: the mod-zero markup and behavior every app inherits and may override.",
|
|
@@ -96,6 +66,26 @@
|
|
|
96
66
|
"multiple": false,
|
|
97
67
|
"style": "inherit"
|
|
98
68
|
},
|
|
69
|
+
{
|
|
70
|
+
"id": "component.bar",
|
|
71
|
+
"description": "The built-in fill for the xtyle Bar chart: the mod-zero SVG markup every app inherits and may override.",
|
|
72
|
+
"accepts": [
|
|
73
|
+
"text/html+jsml"
|
|
74
|
+
],
|
|
75
|
+
"capability": "xtyle.component.bar",
|
|
76
|
+
"multiple": false,
|
|
77
|
+
"style": "inherit"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"id": "component.bottom-nav",
|
|
81
|
+
"description": "The built-in fill for the xtyle Bottom Nav component: the mod-zero markup every app inherits and may override.",
|
|
82
|
+
"accepts": [
|
|
83
|
+
"text/html+jsml"
|
|
84
|
+
],
|
|
85
|
+
"capability": "xtyle.component.bottom-nav",
|
|
86
|
+
"multiple": false,
|
|
87
|
+
"style": "inherit"
|
|
88
|
+
},
|
|
99
89
|
{
|
|
100
90
|
"id": "component.breadcrumb",
|
|
101
91
|
"description": "The built-in fill for the xtyle Breadcrumb component: the mod-zero markup every app inherits and may override.",
|
|
@@ -106,6 +96,16 @@
|
|
|
106
96
|
"multiple": false,
|
|
107
97
|
"style": "inherit"
|
|
108
98
|
},
|
|
99
|
+
{
|
|
100
|
+
"id": "component.button",
|
|
101
|
+
"description": "The built-in fill for the xtyle Button component: the mod-zero markup every app inherits and may override.",
|
|
102
|
+
"accepts": [
|
|
103
|
+
"text/html+jsml"
|
|
104
|
+
],
|
|
105
|
+
"capability": "xtyle.component.button",
|
|
106
|
+
"multiple": false,
|
|
107
|
+
"style": "inherit"
|
|
108
|
+
},
|
|
109
109
|
{
|
|
110
110
|
"id": "component.card",
|
|
111
111
|
"description": "The built-in fill for the xtyle Card component: the mod-zero markup every app inherits and may override.",
|
|
@@ -146,6 +146,16 @@
|
|
|
146
146
|
"multiple": false,
|
|
147
147
|
"style": "inherit"
|
|
148
148
|
},
|
|
149
|
+
{
|
|
150
|
+
"id": "component.code",
|
|
151
|
+
"description": "The built-in fill for the xtyle Code component: the mod-zero markup every app inherits and may override.",
|
|
152
|
+
"accepts": [
|
|
153
|
+
"text/html+jsml"
|
|
154
|
+
],
|
|
155
|
+
"capability": "xtyle.component.code",
|
|
156
|
+
"multiple": false,
|
|
157
|
+
"style": "inherit"
|
|
158
|
+
},
|
|
149
159
|
{
|
|
150
160
|
"id": "component.color-picker",
|
|
151
161
|
"description": "The built-in fill for the xtyle Color Picker component: the mod-zero markup every app inherits and may override.",
|
|
@@ -176,6 +186,16 @@
|
|
|
176
186
|
"multiple": false,
|
|
177
187
|
"style": "inherit"
|
|
178
188
|
},
|
|
189
|
+
{
|
|
190
|
+
"id": "component.dot",
|
|
191
|
+
"description": "The built-in fill for the xtyle Dot component: the mod-zero markup every app inherits and may override.",
|
|
192
|
+
"accepts": [
|
|
193
|
+
"text/html+jsml"
|
|
194
|
+
],
|
|
195
|
+
"capability": "xtyle.component.dot",
|
|
196
|
+
"multiple": false,
|
|
197
|
+
"style": "inherit"
|
|
198
|
+
},
|
|
179
199
|
{
|
|
180
200
|
"id": "component.eyebrow",
|
|
181
201
|
"description": "The built-in fill for the xtyle Eyebrow component: the mod-zero markup every app inherits and may override.",
|
|
@@ -227,12 +247,12 @@
|
|
|
227
247
|
"style": "inherit"
|
|
228
248
|
},
|
|
229
249
|
{
|
|
230
|
-
"id": "component.
|
|
231
|
-
"description": "The built-in fill for the xtyle
|
|
250
|
+
"id": "component.heatmap",
|
|
251
|
+
"description": "The built-in fill for the xtyle Heatmap: the mod-zero SVG grid markup every app inherits and may override.",
|
|
232
252
|
"accepts": [
|
|
233
253
|
"text/html+jsml"
|
|
234
254
|
],
|
|
235
|
-
"capability": "xtyle.component.
|
|
255
|
+
"capability": "xtyle.component.heatmap",
|
|
236
256
|
"multiple": false,
|
|
237
257
|
"style": "inherit"
|
|
238
258
|
},
|
|
@@ -257,82 +277,82 @@
|
|
|
257
277
|
"style": "inherit"
|
|
258
278
|
},
|
|
259
279
|
{
|
|
260
|
-
"id": "component.
|
|
261
|
-
"description": "The built-in fill for the xtyle
|
|
280
|
+
"id": "component.kbd",
|
|
281
|
+
"description": "The built-in fill for the xtyle Kbd component: the mod-zero markup every app inherits and may override.",
|
|
262
282
|
"accepts": [
|
|
263
283
|
"text/html+jsml"
|
|
264
284
|
],
|
|
265
|
-
"capability": "xtyle.component.
|
|
285
|
+
"capability": "xtyle.component.kbd",
|
|
266
286
|
"multiple": false,
|
|
267
287
|
"style": "inherit"
|
|
268
288
|
},
|
|
269
289
|
{
|
|
270
|
-
"id": "component.
|
|
271
|
-
"description": "The built-in fill for the xtyle
|
|
290
|
+
"id": "component.link",
|
|
291
|
+
"description": "The built-in fill for the xtyle Link component: the mod-zero markup every app inherits and may override.",
|
|
272
292
|
"accepts": [
|
|
273
293
|
"text/html+jsml"
|
|
274
294
|
],
|
|
275
|
-
"capability": "xtyle.component.
|
|
295
|
+
"capability": "xtyle.component.link",
|
|
276
296
|
"multiple": false,
|
|
277
297
|
"style": "inherit"
|
|
278
298
|
},
|
|
279
299
|
{
|
|
280
|
-
"id": "component.
|
|
281
|
-
"description": "The built-in fill for the xtyle
|
|
300
|
+
"id": "component.menu",
|
|
301
|
+
"description": "The built-in fill for the xtyle Menu component: the mod-zero markup and behavior every app inherits and may override.",
|
|
282
302
|
"accepts": [
|
|
283
303
|
"text/html+jsml"
|
|
284
304
|
],
|
|
285
|
-
"capability": "xtyle.component.
|
|
305
|
+
"capability": "xtyle.component.menu",
|
|
286
306
|
"multiple": false,
|
|
287
307
|
"style": "inherit"
|
|
288
308
|
},
|
|
289
309
|
{
|
|
290
|
-
"id": "component.
|
|
291
|
-
"description": "The built-in fill for the xtyle
|
|
310
|
+
"id": "component.mobile-shell",
|
|
311
|
+
"description": "The built-in fill for the xtyle Mobile Shell component: the mod-zero markup every app inherits and may override.",
|
|
292
312
|
"accepts": [
|
|
293
313
|
"text/html+jsml"
|
|
294
314
|
],
|
|
295
|
-
"capability": "xtyle.component.
|
|
315
|
+
"capability": "xtyle.component.mobile-shell",
|
|
296
316
|
"multiple": false,
|
|
297
317
|
"style": "inherit"
|
|
298
318
|
},
|
|
299
319
|
{
|
|
300
|
-
"id": "component.
|
|
301
|
-
"description": "The built-in fill for the xtyle
|
|
320
|
+
"id": "component.number-input",
|
|
321
|
+
"description": "The built-in fill for the xtyle Number Input component: the mod-zero markup and behavior every app inherits and may override.",
|
|
302
322
|
"accepts": [
|
|
303
323
|
"text/html+jsml"
|
|
304
324
|
],
|
|
305
|
-
"capability": "xtyle.component.
|
|
325
|
+
"capability": "xtyle.component.number-input",
|
|
306
326
|
"multiple": false,
|
|
307
327
|
"style": "inherit"
|
|
308
328
|
},
|
|
309
329
|
{
|
|
310
|
-
"id": "component.
|
|
311
|
-
"description": "The built-in fill for the xtyle
|
|
330
|
+
"id": "component.pagination",
|
|
331
|
+
"description": "The built-in fill for the xtyle Pagination component: the mod-zero markup every app inherits and may override.",
|
|
312
332
|
"accepts": [
|
|
313
333
|
"text/html+jsml"
|
|
314
334
|
],
|
|
315
|
-
"capability": "xtyle.component.
|
|
335
|
+
"capability": "xtyle.component.pagination",
|
|
316
336
|
"multiple": false,
|
|
317
337
|
"style": "inherit"
|
|
318
338
|
},
|
|
319
339
|
{
|
|
320
|
-
"id": "component.
|
|
321
|
-
"description": "The built-in fill for the xtyle
|
|
340
|
+
"id": "component.panel",
|
|
341
|
+
"description": "The built-in fill for the xtyle Panel component: the mod-zero markup and behavior every app inherits and may override.",
|
|
322
342
|
"accepts": [
|
|
323
343
|
"text/html+jsml"
|
|
324
344
|
],
|
|
325
|
-
"capability": "xtyle.component.
|
|
345
|
+
"capability": "xtyle.component.panel",
|
|
326
346
|
"multiple": false,
|
|
327
347
|
"style": "inherit"
|
|
328
348
|
},
|
|
329
349
|
{
|
|
330
|
-
"id": "component.
|
|
331
|
-
"description": "The built-in fill for the xtyle
|
|
350
|
+
"id": "component.pie",
|
|
351
|
+
"description": "The built-in fill for the xtyle Pie chart: the mod-zero SVG markup every app inherits and may override.",
|
|
332
352
|
"accepts": [
|
|
333
353
|
"text/html+jsml"
|
|
334
354
|
],
|
|
335
|
-
"capability": "xtyle.component.
|
|
355
|
+
"capability": "xtyle.component.pie",
|
|
336
356
|
"multiple": false,
|
|
337
357
|
"style": "inherit"
|
|
338
358
|
},
|
|
@@ -346,6 +366,16 @@
|
|
|
346
366
|
"multiple": false,
|
|
347
367
|
"style": "inherit"
|
|
348
368
|
},
|
|
369
|
+
{
|
|
370
|
+
"id": "component.qr",
|
|
371
|
+
"description": "The built-in fill for the xtyle QR Code: the mod-zero SVG markup every app inherits and may override.",
|
|
372
|
+
"accepts": [
|
|
373
|
+
"text/html+jsml"
|
|
374
|
+
],
|
|
375
|
+
"capability": "xtyle.component.qr",
|
|
376
|
+
"multiple": false,
|
|
377
|
+
"style": "inherit"
|
|
378
|
+
},
|
|
349
379
|
{
|
|
350
380
|
"id": "component.radio",
|
|
351
381
|
"description": "The built-in fill for the xtyle Radio component: the mod-zero markup and behavior every app inherits and may override.",
|
|
@@ -356,6 +386,16 @@
|
|
|
356
386
|
"multiple": false,
|
|
357
387
|
"style": "inherit"
|
|
358
388
|
},
|
|
389
|
+
{
|
|
390
|
+
"id": "component.ribbon",
|
|
391
|
+
"description": "The built-in fill for the xtyle Ribbon component: the mod-zero markup every app inherits and may override.",
|
|
392
|
+
"accepts": [
|
|
393
|
+
"text/html+jsml"
|
|
394
|
+
],
|
|
395
|
+
"capability": "xtyle.component.ribbon",
|
|
396
|
+
"multiple": false,
|
|
397
|
+
"style": "inherit"
|
|
398
|
+
},
|
|
359
399
|
{
|
|
360
400
|
"id": "component.section",
|
|
361
401
|
"description": "The built-in fill for the xtyle Section component: the mod-zero markup every app inherits and may override.",
|
|
@@ -416,6 +456,16 @@
|
|
|
416
456
|
"multiple": false,
|
|
417
457
|
"style": "inherit"
|
|
418
458
|
},
|
|
459
|
+
{
|
|
460
|
+
"id": "component.sparkline",
|
|
461
|
+
"description": "The built-in fill for the xtyle Sparkline: the mod-zero inline SVG markup every app inherits and may override.",
|
|
462
|
+
"accepts": [
|
|
463
|
+
"text/html+jsml"
|
|
464
|
+
],
|
|
465
|
+
"capability": "xtyle.component.sparkline",
|
|
466
|
+
"multiple": false,
|
|
467
|
+
"style": "inherit"
|
|
468
|
+
},
|
|
419
469
|
{
|
|
420
470
|
"id": "component.spinner",
|
|
421
471
|
"description": "The built-in fill for the xtyle Spinner component: the mod-zero markup every app inherits and may override.",
|
|
@@ -476,6 +526,26 @@
|
|
|
476
526
|
"multiple": false,
|
|
477
527
|
"style": "inherit"
|
|
478
528
|
},
|
|
529
|
+
{
|
|
530
|
+
"id": "component.switch",
|
|
531
|
+
"description": "The built-in fill for the xtyle Switch component: the mod-zero markup and behavior every app inherits and may override.",
|
|
532
|
+
"accepts": [
|
|
533
|
+
"text/html+jsml"
|
|
534
|
+
],
|
|
535
|
+
"capability": "xtyle.component.switch",
|
|
536
|
+
"multiple": false,
|
|
537
|
+
"style": "inherit"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"id": "component.tabs",
|
|
541
|
+
"description": "The built-in fill for the xtyle Tabs component: the mod-zero markup and behavior every app inherits and may override.",
|
|
542
|
+
"accepts": [
|
|
543
|
+
"text/html+jsml"
|
|
544
|
+
],
|
|
545
|
+
"capability": "xtyle.component.tabs",
|
|
546
|
+
"multiple": false,
|
|
547
|
+
"style": "inherit"
|
|
548
|
+
},
|
|
479
549
|
{
|
|
480
550
|
"id": "component.text",
|
|
481
551
|
"description": "The built-in fill for the xtyle Text component: the mod-zero markup every app inherits and may override.",
|
|
@@ -545,26 +615,6 @@
|
|
|
545
615
|
"capability": "xtyle.component.tree",
|
|
546
616
|
"multiple": false,
|
|
547
617
|
"style": "inherit"
|
|
548
|
-
},
|
|
549
|
-
{
|
|
550
|
-
"id": "component.code",
|
|
551
|
-
"description": "The built-in fill for the xtyle Code component: the mod-zero markup every app inherits and may override.",
|
|
552
|
-
"accepts": [
|
|
553
|
-
"text/html+jsml"
|
|
554
|
-
],
|
|
555
|
-
"capability": "xtyle.component.code",
|
|
556
|
-
"multiple": false,
|
|
557
|
-
"style": "inherit"
|
|
558
|
-
},
|
|
559
|
-
{
|
|
560
|
-
"id": "component.pagination",
|
|
561
|
-
"description": "The built-in fill for the xtyle Pagination component: the mod-zero markup every app inherits and may override.",
|
|
562
|
-
"accepts": [
|
|
563
|
-
"text/html+jsml"
|
|
564
|
-
],
|
|
565
|
-
"capability": "xtyle.component.pagination",
|
|
566
|
-
"multiple": false,
|
|
567
|
-
"style": "inherit"
|
|
568
618
|
}
|
|
569
619
|
],
|
|
570
620
|
"capabilities": {
|
|
@@ -636,6 +686,14 @@
|
|
|
636
686
|
"description": "Permits a mod to provide the markup of the xtyle Dock component.",
|
|
637
687
|
"risk": "low"
|
|
638
688
|
},
|
|
689
|
+
"xtyle.component.dot": {
|
|
690
|
+
"description": "Permits a mod to provide the markup of the xtyle Dot component.",
|
|
691
|
+
"risk": "low"
|
|
692
|
+
},
|
|
693
|
+
"xtyle.component.ribbon": {
|
|
694
|
+
"description": "Permits a mod to provide the markup of the xtyle Ribbon component.",
|
|
695
|
+
"risk": "low"
|
|
696
|
+
},
|
|
639
697
|
"xtyle.component.eyebrow": {
|
|
640
698
|
"description": "Permits a mod to provide the markup of the xtyle Eyebrow component.",
|
|
641
699
|
"risk": "low"
|
|
@@ -788,9 +846,21 @@
|
|
|
788
846
|
"description": "Permits a mod to provide the markup of the xtyle Pie chart component.",
|
|
789
847
|
"risk": "low"
|
|
790
848
|
},
|
|
849
|
+
"xtyle.component.qr": {
|
|
850
|
+
"description": "Permits a mod to provide the markup of the xtyle QR Code component.",
|
|
851
|
+
"risk": "low"
|
|
852
|
+
},
|
|
791
853
|
"xtyle.component.heatmap": {
|
|
792
854
|
"description": "Permits a mod to provide the markup of the xtyle Heatmap component.",
|
|
793
855
|
"risk": "low"
|
|
856
|
+
},
|
|
857
|
+
"xtyle.component.mobile-shell": {
|
|
858
|
+
"description": "Permits a mod to provide the markup and behavior of the xtyle MobileShell component.",
|
|
859
|
+
"risk": "low"
|
|
860
|
+
},
|
|
861
|
+
"xtyle.component.bottom-nav": {
|
|
862
|
+
"description": "Permits a mod to provide the markup and behavior of the xtyle BottomNav component.",
|
|
863
|
+
"risk": "low"
|
|
794
864
|
}
|
|
795
865
|
},
|
|
796
866
|
"limits": {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const manifest: {
|
|
2
|
+
$schema: string;
|
|
3
|
+
xript: string;
|
|
4
|
+
name: string;
|
|
5
|
+
version: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
capabilities: string[];
|
|
9
|
+
entry: {
|
|
10
|
+
script: string;
|
|
11
|
+
format: string;
|
|
12
|
+
};
|
|
13
|
+
fills: {
|
|
14
|
+
"component.dot": {
|
|
15
|
+
id: string;
|
|
16
|
+
format: string;
|
|
17
|
+
source: string;
|
|
18
|
+
meta: {
|
|
19
|
+
tokens: string[];
|
|
20
|
+
};
|
|
21
|
+
}[];
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const fragmentSources: Record<string, string>;
|
|
25
|
+
//# sourceMappingURL=source.generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source.generated.d.ts","sourceRoot":"","sources":["../../../../src/elements/fragments/dot/source.generated.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;CAA8lB,CAAC;AACpnB,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAA0iC,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// generated by scripts/build-fragments.mjs: do not edit
|
|
2
|
+
export const manifest = { "$schema": "https://xript.dev/schema/mod/v0.7.json", "xript": "0.7", "name": "xtyle-dot-default", "version": "0.0.1", "title": "Xtyle Dot (default)", "description": "The built-in fill for the xtyle Dot component: the mod-zero markup every app inherits and may override.", "capabilities": ["xtyle.component.dot"], "entry": { "script": "mod.js", "format": "script" }, "fills": { "component.dot": [{ "id": "dot", "format": "text/html+jsml", "source": "dot.html", "meta": { "tokens": ["--neutral", "--accent", "--success", "--warn", "--danger", "--info", "--radius-full", "--space-1", "--space-2", "--space-3", "--border-thin", "--ease-standard"] } }] } };
|
|
3
|
+
export const fragmentSources = { "mod.js": "\"use strict\";\n(() => {\n // packages/xtyle/src/elements/fragments/dot/mod.ts\n function dotClass(b) {\n const size = b.size ?? \"md\";\n return [\n \"xtyle-dot\",\n size !== \"md\" && `xtyle-dot--${size}`,\n !b.color && b.tone && `xtyle-dot--${b.tone}`,\n b.pulse && `xtyle-dot--pulse-${b.pulse}`,\n b.ping && \"xtyle-dot--ping\",\n b.glow && \"xtyle-dot--glow\"\n ].filter(Boolean).join(\" \");\n }\n function dotStyle(b) {\n return b.color ? `--dot-color: ${b.color}` : \"\";\n }\n function dotHtml(b) {\n return `<span part=\"dot\" class=\"${dotClass(b)}\" style=\"${dotStyle(b)}\" aria-hidden=\"true\"></span>`;\n }\n hooks.fragment.mount(\"dot\", (bindings, ops) => {\n ops.replaceChildren(\"[data-dot]\", dotHtml(bindings));\n });\n hooks.fragment.update(\"dot\", (bindings, ops) => {\n ops.setAttr('[part=\"dot\"]', \"class\", dotClass(bindings));\n ops.setAttr('[part=\"dot\"]', \"style\", dotStyle(bindings));\n });\n})();\n", "dot.html": "<span data-root data-dot></span>\n" };
|
|
4
|
+
//# sourceMappingURL=source.generated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source.generated.js","sourceRoot":"","sources":["../../../../src/elements/fragments/dot/source.generated.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,MAAM,CAAC,MAAM,QAAQ,GAAG,EAAC,SAAS,EAAC,wCAAwC,EAAC,OAAO,EAAC,KAAK,EAAC,MAAM,EAAC,mBAAmB,EAAC,SAAS,EAAC,OAAO,EAAC,OAAO,EAAC,qBAAqB,EAAC,aAAa,EAAC,yGAAyG,EAAC,cAAc,EAAC,CAAC,qBAAqB,CAAC,EAAC,OAAO,EAAC,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,EAAC,OAAO,EAAC,EAAC,eAAe,EAAC,CAAC,EAAC,IAAI,EAAC,KAAK,EAAC,QAAQ,EAAC,gBAAgB,EAAC,QAAQ,EAAC,UAAU,EAAC,MAAM,EAAC,EAAC,QAAQ,EAAC,CAAC,WAAW,EAAC,UAAU,EAAC,WAAW,EAAC,QAAQ,EAAC,UAAU,EAAC,QAAQ,EAAC,eAAe,EAAC,WAAW,EAAC,WAAW,EAAC,WAAW,EAAC,eAAe,EAAC,iBAAiB,CAAC,EAAC,EAAC,CAAC,EAAC,EAAC,CAAC;AACpnB,MAAM,CAAC,MAAM,eAAe,GAA2B,EAAC,QAAQ,EAAC,2+BAA2+B,EAAC,UAAU,EAAC,oCAAoC,EAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.generated.d.ts","sourceRoot":"","sources":["../../../../src/elements/fragments/heatmap/source.generated.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;CAAu0B,CAAC;AAC71B,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"source.generated.d.ts","sourceRoot":"","sources":["../../../../src/elements/fragments/heatmap/source.generated.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;CAAu0B,CAAC;AAC71B,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAA6oO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// generated by scripts/build-fragments.mjs: do not edit
|
|
2
2
|
export const manifest = { "$schema": "https://xript.dev/schema/mod/v0.7.json", "xript": "0.7", "name": "xtyle-heatmap-default", "version": "0.0.1", "title": "Xtyle Heatmap (default)", "description": "The built-in fill for the xtyle Heatmap: the mod-zero SVG grid markup every app inherits and may override.", "capabilities": ["xtyle.component.heatmap"], "entry": { "script": "mod.js", "format": "script" }, "fills": { "component.heatmap": [{ "id": "heatmap", "format": "text/html+jsml", "source": "heatmap.html", "meta": { "tokens": ["--font-sans", "--text-xs", "--text-sm", "--fg-0", "--fg-2", "--fg-3", "--bg-0", "--space-1", "--space-2", "--radius-md", "--surface-overlay", "--surface-overlay-border", "--elevation-3", "--duration-fast", "--ease-standard", "--ring", "--border-thin", "--border-thick", "--weight-semibold", "--leading-normal", "--accent", "--success", "--danger", "--warn", "--info", "--neutral"] } }] } };
|
|
3
|
-
export const fragmentSources = { "mod.js": "\"use strict\";\n(() => {\n // packages/xtyle/src/elements/fragments/heatmap/mod.ts\n var CURRENT_TONES = /* @__PURE__ */ new Set([\"success\", \"danger\", \"warn\", \"info\", \"neutral\"]);\n var AMP = /&/g;\n var LT = /</g;\n var GT = />/g;\n var QUOT = /\"/g;\n function esc(value) {\n return value.replace(AMP, \"&\").replace(LT, \"<\").replace(GT, \">\").replace(QUOT, \""\");\n }\n var CELL = 34;\n var GAP = 2;\n function matrix(b) {\n return (b.values ?? []).map((row) => Array.isArray(row) ? row.map((v) => Number.isFinite(v) ? v : 0) : []);\n }\n function formatValue(value) {\n if (value >= 1e3) return `${(value / 1e3).toFixed(value % 1e3 === 0 ? 0 : 1)}k`;\n return Number.isInteger(value) ? String(value) : String(Math.round(value * 100) / 100);\n }\n function tableHtml(values, rows, cols, caption) {\n const head = `<tr><th scope=\"col\"></th>${cols.map((c) => `<th scope=\"col\">${esc(c)}</th>`).join(\"\")}</tr>`;\n const body = values.map(\n (row, r) => `<tr><th scope=\"row\">${esc(rows[r] ?? String(r))}</th>${row.map((v) => `<td>${esc(formatValue(v))}</td>`).join(\"\")}</tr>`\n ).join(\"\");\n const cap = caption ? `<caption>${esc(caption)}</caption>` : \"\";\n return `<table class=\"xtyle-heatmap__a11y\">${cap}<thead>${head}</thead><tbody>${body}</tbody></table>`;\n }\n function heatmapHtml(b) {\n const values = matrix(b);\n const rows = b.rows ?? [];\n const cols = b.cols ?? [];\n const colors = b.cellColors ?? [];\n const glows = b.cellGlows ?? [];\n const glowValues = b.glowValues ?? [];\n const glowLabel = b.glowLabel ?? null;\n const titles = b.titles ?? [];\n const currentSet = new Set((b.current ?? []).map(([r, c]) => `${r},${c}`));\n const currentPulse = !!b.currentPulse;\n const selectable = !!b.selectable;\n const nRows = values.length;\n const nCols = values.reduce((max, row) => Math.max(max, row.length), 0);\n if (nRows === 0 || nCols === 0) {\n const label = b.title ?? b.ariaLabel ?? \"\";\n return `<figure part=\"chart\" class=\"xtyle-heatmap\"><div class=\"xtyle-heatmap__empty\" part=\"empty\" role=\"img\" aria-label=\"${label ? esc(label) : \"No data\"}\">No data</div></figure>`;\n }\n const hasRowLabels = rows.some(Boolean);\n const hasColLabels = cols.some(Boolean);\n const leftPad = hasRowLabels ? 64 : 2;\n const bottomPad = hasColLabels ? 22 : 2;\n const topPad = 2;\n const rightPad = 2;\n const gridW = nCols * CELL;\n const gridH = nRows * CELL;\n const width = leftPad + gridW + rightPad;\n const height = topPad + gridH + bottomPad;\n const role = selectable ? \"button\" : \"img\";\n const cells = [];\n const valueLabels = [];\n for (let r = 0; r < nRows; r++) {\n for (let c = 0; c < (values[r]?.length ?? 0); c++) {\n const v = values[r]?.[c] ?? 0;\n const x = leftPad + c * CELL;\n const y = topPad + r * CELL;\n const fill = colors[r]?.[c] ?? \"currentColor\";\n const glow = glows[r]?.[c] ?? null;\n const style = glow ? ` style=\"filter:${esc(glow)}\"` : \"\";\n const gv = glowValues[r]?.[c];\n const glowText = glowLabel && Number.isFinite(gv) ? `, ${glowLabel} ${gv}` : \"\";\n const title = titles[r]?.[c];\n const label = title || `${rows[r] ?? String(r)}, ${cols[c] ?? String(c)}: ${v}${glowText}`;\n const isCurrent = currentSet.has(`${r},${c}`);\n const cellCls = \"xtyle-heatmap__cell\" + (isCurrent ? \" xtyle-heatmap__cell--current\" : \"\") + (isCurrent && currentPulse ? \" xtyle-heatmap__cell--pulse\" : \"\");\n cells.push(\n `<rect class=\"${cellCls}\" part=\"cell\" x=\"${(x + GAP / 2).toFixed(1)}\" y=\"${(y + GAP / 2).toFixed(1)}\" width=\"${(CELL - GAP).toFixed(1)}\" height=\"${(CELL - GAP).toFixed(1)}\" rx=\"2\" fill=\"${esc(fill)}\"${style} data-r=\"${r}\" data-c=\"${c}\" tabindex=\"0\" role=\"${role}\" aria-label=\"${esc(label)}\"></rect>`\n );\n if (b.showValues) {\n valueLabels.push(\n `<text class=\"xtyle-heatmap__value\" x=\"${(x + CELL / 2).toFixed(1)}\" y=\"${(y + CELL / 2).toFixed(1)}\" dy=\"0.32em\" text-anchor=\"middle\">${esc(formatValue(v))}</text>`\n );\n }\n }\n }\n const rowLabels = hasRowLabels ? rows.slice(0, nRows).map(\n (labelText, r) => `<text class=\"xtyle-heatmap__rowlabel\" x=\"${(leftPad - 8).toFixed(1)}\" y=\"${(topPad + r * CELL + CELL / 2).toFixed(1)}\" dy=\"0.32em\" text-anchor=\"end\">${esc(labelText ?? \"\")}</text>`\n ).join(\"\") : \"\";\n const colLabels = hasColLabels ? cols.slice(0, nCols).map(\n (labelText, c) => `<text class=\"xtyle-heatmap__collabel\" x=\"${(leftPad + c * CELL + CELL / 2).toFixed(1)}\" y=\"${(topPad + gridH + 15).toFixed(1)}\" text-anchor=\"middle\">${esc(labelText ?? \"\")}</text>`\n ).join(\"\") : \"\";\n const toneMod = b.currentTone && CURRENT_TONES.has(b.currentTone) ? `xtyle-heatmap--now-${b.currentTone}` : \"\";\n const cls = [\"xtyle-heatmap\", selectable && \"xtyle-heatmap--selectable\", toneMod].filter(Boolean).join(\" \");\n const svg = `<svg class=\"xtyle-heatmap__svg\" viewBox=\"0 0 ${width} ${height}\" style=\"max-width:${width}px\" preserveAspectRatio=\"xMidYMid meet\" aria-hidden=\"true\"><g class=\"xtyle-heatmap__cells\">${cells.join(\"\")}</g><g class=\"xtyle-heatmap__values\">${valueLabels.join(\"\")}</g><g class=\"xtyle-heatmap__rowlabels\">${rowLabels}</g><g class=\"xtyle-heatmap__collabels\">${colLabels}</g></svg>`;\n const tooltip = `<div class=\"xtyle-heatmap__tooltip\" part=\"tooltip\" role=\"status\" aria-hidden=\"true\" hidden></div>`;\n const table = tableHtml(values, rows, cols, b.title ?? b.ariaLabel ?? \"\");\n const scaleColors = b.scaleColors ?? [];\n const scaleHtml = b.scale &&
|
|
3
|
+
export const fragmentSources = { "mod.js": "\"use strict\";\n(() => {\n // packages/xtyle/src/elements/fragments/heatmap/mod.ts\n var CURRENT_TONES = /* @__PURE__ */ new Set([\"success\", \"danger\", \"warn\", \"info\", \"neutral\"]);\n var AMP = /&/g;\n var LT = /</g;\n var GT = />/g;\n var QUOT = /\"/g;\n function esc(value) {\n return value.replace(AMP, \"&\").replace(LT, \"<\").replace(GT, \">\").replace(QUOT, \""\");\n }\n var CELL = 34;\n var GAP = 2;\n function matrix(b) {\n return (b.values ?? []).map((row) => Array.isArray(row) ? row.map((v) => Number.isFinite(v) ? v : 0) : []);\n }\n function formatValue(value) {\n if (value >= 1e3) return `${(value / 1e3).toFixed(value % 1e3 === 0 ? 0 : 1)}k`;\n return Number.isInteger(value) ? String(value) : String(Math.round(value * 100) / 100);\n }\n function tableHtml(values, rows, cols, caption) {\n const head = `<tr><th scope=\"col\"></th>${cols.map((c) => `<th scope=\"col\">${esc(c)}</th>`).join(\"\")}</tr>`;\n const body = values.map(\n (row, r) => `<tr><th scope=\"row\">${esc(rows[r] ?? String(r))}</th>${row.map((v) => `<td>${esc(formatValue(v))}</td>`).join(\"\")}</tr>`\n ).join(\"\");\n const cap = caption ? `<caption>${esc(caption)}</caption>` : \"\";\n return `<table class=\"xtyle-heatmap__a11y\">${cap}<thead>${head}</thead><tbody>${body}</tbody></table>`;\n }\n function heatmapHtml(b) {\n const values = matrix(b);\n const rows = b.rows ?? [];\n const cols = b.cols ?? [];\n const colors = b.cellColors ?? [];\n const glows = b.cellGlows ?? [];\n const glowValues = b.glowValues ?? [];\n const glowLabel = b.glowLabel ?? null;\n const titles = b.titles ?? [];\n const currentSet = new Set((b.current ?? []).map(([r, c]) => `${r},${c}`));\n const currentPulse = !!b.currentPulse;\n const selectable = !!b.selectable;\n const nRows = values.length;\n const nCols = values.reduce((max, row) => Math.max(max, row.length), 0);\n if (nRows === 0 || nCols === 0) {\n const label = b.title ?? b.ariaLabel ?? \"\";\n return `<figure part=\"chart\" class=\"xtyle-heatmap\"><div class=\"xtyle-heatmap__empty\" part=\"empty\" role=\"img\" aria-label=\"${label ? esc(label) : \"No data\"}\">No data</div></figure>`;\n }\n const hasRowLabels = rows.some(Boolean);\n const hasColLabels = cols.some(Boolean);\n const leftPad = hasRowLabels ? 64 : 2;\n const bottomPad = hasColLabels ? 22 : 2;\n const topPad = 2;\n const rightPad = 2;\n const gridW = nCols * CELL;\n const gridH = nRows * CELL;\n const width = leftPad + gridW + rightPad;\n const height = topPad + gridH + bottomPad;\n const role = selectable ? \"button\" : \"img\";\n const cells = [];\n const valueLabels = [];\n for (let r = 0; r < nRows; r++) {\n for (let c = 0; c < (values[r]?.length ?? 0); c++) {\n const v = values[r]?.[c] ?? 0;\n const x = leftPad + c * CELL;\n const y = topPad + r * CELL;\n const fill = colors[r]?.[c] ?? \"currentColor\";\n const glow = glows[r]?.[c] ?? null;\n const style = glow ? ` style=\"filter:${esc(glow)}\"` : \"\";\n const gv = glowValues[r]?.[c];\n const glowText = glowLabel && Number.isFinite(gv) ? `, ${glowLabel} ${gv}` : \"\";\n const title = titles[r]?.[c];\n const label = title || `${rows[r] ?? String(r)}, ${cols[c] ?? String(c)}: ${v}${glowText}`;\n const isCurrent = currentSet.has(`${r},${c}`);\n const cellCls = \"xtyle-heatmap__cell\" + (isCurrent ? \" xtyle-heatmap__cell--current\" : \"\") + (isCurrent && currentPulse ? \" xtyle-heatmap__cell--pulse\" : \"\");\n cells.push(\n `<rect class=\"${cellCls}\" part=\"cell\" x=\"${(x + GAP / 2).toFixed(1)}\" y=\"${(y + GAP / 2).toFixed(1)}\" width=\"${(CELL - GAP).toFixed(1)}\" height=\"${(CELL - GAP).toFixed(1)}\" rx=\"2\" fill=\"${esc(fill)}\"${style} data-r=\"${r}\" data-c=\"${c}\" tabindex=\"0\" role=\"${role}\" aria-label=\"${esc(label)}\"></rect>`\n );\n if (b.showValues) {\n valueLabels.push(\n `<text class=\"xtyle-heatmap__value\" x=\"${(x + CELL / 2).toFixed(1)}\" y=\"${(y + CELL / 2).toFixed(1)}\" dy=\"0.32em\" text-anchor=\"middle\">${esc(formatValue(v))}</text>`\n );\n }\n }\n }\n const rowLabels = hasRowLabels ? rows.slice(0, nRows).map(\n (labelText, r) => `<text class=\"xtyle-heatmap__rowlabel\" x=\"${(leftPad - 8).toFixed(1)}\" y=\"${(topPad + r * CELL + CELL / 2).toFixed(1)}\" dy=\"0.32em\" text-anchor=\"end\">${esc(labelText ?? \"\")}</text>`\n ).join(\"\") : \"\";\n const colLabels = hasColLabels ? cols.slice(0, nCols).map(\n (labelText, c) => `<text class=\"xtyle-heatmap__collabel\" x=\"${(leftPad + c * CELL + CELL / 2).toFixed(1)}\" y=\"${(topPad + gridH + 15).toFixed(1)}\" text-anchor=\"middle\">${esc(labelText ?? \"\")}</text>`\n ).join(\"\") : \"\";\n const toneMod = b.currentTone && CURRENT_TONES.has(b.currentTone) ? `xtyle-heatmap--now-${b.currentTone}` : \"\";\n const cls = [\"xtyle-heatmap\", selectable && \"xtyle-heatmap--selectable\", toneMod].filter(Boolean).join(\" \");\n const svg = `<svg class=\"xtyle-heatmap__svg\" viewBox=\"0 0 ${width} ${height}\" style=\"max-width:${width}px\" preserveAspectRatio=\"xMidYMid meet\" aria-hidden=\"true\"><g class=\"xtyle-heatmap__cells\">${cells.join(\"\")}</g><g class=\"xtyle-heatmap__values\">${valueLabels.join(\"\")}</g><g class=\"xtyle-heatmap__rowlabels\">${rowLabels}</g><g class=\"xtyle-heatmap__collabels\">${colLabels}</g></svg>`;\n const tooltip = `<div class=\"xtyle-heatmap__tooltip\" part=\"tooltip\" role=\"status\" aria-hidden=\"true\" hidden></div>`;\n const table = tableHtml(values, rows, cols, b.title ?? b.ariaLabel ?? \"\");\n const scaleColors = b.scaleColors ?? [];\n const legend = b.legend ?? [];\n let scaleHtml = \"\";\n if (b.scale && legend.length) {\n scaleHtml = `<div class=\"xtyle-heatmap__legend\" part=\"legend\" aria-hidden=\"true\">` + legend.map(\n (item) => `<span class=\"xtyle-heatmap__legend-item\"><span class=\"xtyle-heatmap__legend-swatch\" style=\"background:${esc(item.color)}\"></span>` + (item.label ? `<span class=\"xtyle-heatmap__legend-label\">${esc(item.label)}</span>` : \"\") + `</span>`\n ).join(\"\") + `</div>`;\n } else if (b.scale && scaleColors.length) {\n scaleHtml = `<div class=\"xtyle-heatmap__scale\" part=\"scale\" aria-hidden=\"true\"><span class=\"xtyle-heatmap__scale-end\">${esc(formatValue(b.scaleLow ?? 0))}</span><span class=\"xtyle-heatmap__scale-ramp\">${scaleColors.map((color) => `<span class=\"xtyle-heatmap__scale-swatch\" style=\"background:${esc(color)}\"></span>`).join(\"\")}</span><span class=\"xtyle-heatmap__scale-end\">${esc(formatValue(b.scaleHigh ?? 0))}</span></div>`;\n }\n return `<figure part=\"chart\" class=\"${cls}\">${svg}${scaleHtml}${tooltip}${table}</figure>`;\n }\n hooks.fragment.mount(\"heatmap\", (bindings, ops) => {\n ops.replaceChildren(\"[data-heatmap]\", heatmapHtml(bindings));\n });\n hooks.fragment.update(\"heatmap\", (bindings, ops) => {\n ops.replaceChildren(\"[data-heatmap]\", heatmapHtml(bindings));\n });\n})();\n", "heatmap.html": "<span data-root data-heatmap></span>\n" };
|
|
4
4
|
//# sourceMappingURL=source.generated.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.generated.js","sourceRoot":"","sources":["../../../../src/elements/fragments/heatmap/source.generated.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,MAAM,CAAC,MAAM,QAAQ,GAAG,EAAC,SAAS,EAAC,wCAAwC,EAAC,OAAO,EAAC,KAAK,EAAC,MAAM,EAAC,uBAAuB,EAAC,SAAS,EAAC,OAAO,EAAC,OAAO,EAAC,yBAAyB,EAAC,aAAa,EAAC,4GAA4G,EAAC,cAAc,EAAC,CAAC,yBAAyB,CAAC,EAAC,OAAO,EAAC,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,EAAC,OAAO,EAAC,EAAC,mBAAmB,EAAC,CAAC,EAAC,IAAI,EAAC,SAAS,EAAC,QAAQ,EAAC,gBAAgB,EAAC,QAAQ,EAAC,cAAc,EAAC,MAAM,EAAC,EAAC,QAAQ,EAAC,CAAC,aAAa,EAAC,WAAW,EAAC,WAAW,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,WAAW,EAAC,WAAW,EAAC,aAAa,EAAC,mBAAmB,EAAC,0BAA0B,EAAC,eAAe,EAAC,iBAAiB,EAAC,iBAAiB,EAAC,QAAQ,EAAC,eAAe,EAAC,gBAAgB,EAAC,mBAAmB,EAAC,kBAAkB,EAAC,UAAU,EAAC,WAAW,EAAC,UAAU,EAAC,QAAQ,EAAC,QAAQ,EAAC,WAAW,CAAC,EAAC,EAAC,CAAC,EAAC,EAAC,CAAC;AAC71B,MAAM,CAAC,MAAM,eAAe,GAA2B,EAAC,QAAQ,EAAC,
|
|
1
|
+
{"version":3,"file":"source.generated.js","sourceRoot":"","sources":["../../../../src/elements/fragments/heatmap/source.generated.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,MAAM,CAAC,MAAM,QAAQ,GAAG,EAAC,SAAS,EAAC,wCAAwC,EAAC,OAAO,EAAC,KAAK,EAAC,MAAM,EAAC,uBAAuB,EAAC,SAAS,EAAC,OAAO,EAAC,OAAO,EAAC,yBAAyB,EAAC,aAAa,EAAC,4GAA4G,EAAC,cAAc,EAAC,CAAC,yBAAyB,CAAC,EAAC,OAAO,EAAC,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,EAAC,OAAO,EAAC,EAAC,mBAAmB,EAAC,CAAC,EAAC,IAAI,EAAC,SAAS,EAAC,QAAQ,EAAC,gBAAgB,EAAC,QAAQ,EAAC,cAAc,EAAC,MAAM,EAAC,EAAC,QAAQ,EAAC,CAAC,aAAa,EAAC,WAAW,EAAC,WAAW,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,WAAW,EAAC,WAAW,EAAC,aAAa,EAAC,mBAAmB,EAAC,0BAA0B,EAAC,eAAe,EAAC,iBAAiB,EAAC,iBAAiB,EAAC,QAAQ,EAAC,eAAe,EAAC,gBAAgB,EAAC,mBAAmB,EAAC,kBAAkB,EAAC,UAAU,EAAC,WAAW,EAAC,UAAU,EAAC,QAAQ,EAAC,QAAQ,EAAC,WAAW,CAAC,EAAC,EAAC,CAAC,EAAC,EAAC,CAAC;AAC71B,MAAM,CAAC,MAAM,eAAe,GAA2B,EAAC,QAAQ,EAAC,skOAAskO,EAAC,cAAc,EAAC,wCAAwC,EAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.generated.d.ts","sourceRoot":"","sources":["../../../../src/elements/fragments/icon/source.generated.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;CAAgd,CAAC;AACte,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"source.generated.d.ts","sourceRoot":"","sources":["../../../../src/elements/fragments/icon/source.generated.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;CAAgd,CAAC;AACte,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAukM,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// generated by scripts/build-fragments.mjs: do not edit
|
|
2
2
|
export const manifest = { "$schema": "https://xript.dev/schema/mod/v0.7.json", "xript": "0.7", "name": "xtyle-icon-default", "version": "0.0.1", "title": "Xtyle Icon (default)", "description": "The built-in fill for the xtyle Icon component: the mod-zero markup every app inherits and may override.", "capabilities": ["xtyle.component.icon"], "entry": { "script": "mod.js", "format": "script" }, "fills": { "component.icon": [{ "id": "icon", "format": "text/html+jsml", "source": "icon.html", "meta": { "tokens": [] } }] } };
|
|
3
|
-
export const fragmentSources = { "mod.js": "\"use strict\";\n(() => {\n // packages/xtyle/src/icons.ts\n var stroke = (d) => `<path d=\"${d}\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>`;\n var dot = (cx, cy) => `<circle cx=\"${cx}\" cy=\"${cy}\" r=\"1.8\" fill=\"currentColor\"/>`;\n var fill = (d) => `<path d=\"${d}\" fill=\"currentColor\"/>`;\n var bar = (x, w) => `<rect x=\"${x}\" y=\"5\" width=\"${w}\" height=\"14\" rx=\"1\" fill=\"currentColor\"/>`;\n var circle = stroke(\"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18z\");\n var ICONS = {\n \"chevron-up\": stroke(\"M18 15l-6-6-6 6\"),\n \"chevron-down\": stroke(\"M6 9l6 6 6-6\"),\n \"chevron-left\": stroke(\"M15 18l-6-6 6-6\"),\n \"chevron-right\": stroke(\"M9 6l6 6-6 6\"),\n \"chevron-expand\": stroke(\"M8 9l4-4 4 4\") + stroke(\"M16 15l-4 4-4-4\"),\n \"arrow-up\": stroke(\"M12 19V5\") + stroke(\"M6 11l6-6 6 6\"),\n \"arrow-down\": stroke(\"M12 5v14\") + stroke(\"M6 13l6 6 6-6\"),\n \"arrow-left\": stroke(\"M19 12H5\") + stroke(\"M11 6l-6 6 6 6\"),\n \"arrow-right\": stroke(\"M5 12h14\") + stroke(\"M13 6l6 6-6 6\"),\n close: stroke(\"M18 6L6 18\") + stroke(\"M6 6l12 12\"),\n check: stroke(\"M20 6L9 17l-5-5\"),\n plus: stroke(\"M12 5v14\") + stroke(\"M5 12h14\"),\n minus: stroke(\"M5 12h14\"),\n menu: stroke(\"M4 6h16\") + stroke(\"M4 12h16\") + stroke(\"M4 18h16\"),\n \"more-vertical\": dot(12, 5) + dot(12, 12) + dot(12, 19),\n \"more-horizontal\": dot(5, 12) + dot(12, 12) + dot(19, 12),\n search: stroke(\"M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14z\") + stroke(\"M20 20l-3.6-3.6\"),\n info: circle + stroke(\"M12 11v5\") + stroke(\"M12 8h.01\"),\n warning: stroke(\"M12 3L2 20h20L12 3z\") + stroke(\"M12 10v4\") + stroke(\"M12 17h.01\"),\n error: circle + stroke(\"M15 9l-6 6\") + stroke(\"M9 9l6 6\"),\n success: circle + stroke(\"M8.5 12l2.5 2.5L16 9\"),\n \"external-link\": stroke(\"M14 4h6v6\") + stroke(\"M20 4l-9 9\") + stroke(\"M18 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4\"),\n maximize: stroke(\"M15 3h6v6\") + stroke(\"M9 21H3v-6\") + stroke(\"M21 3l-7 7\") + stroke(\"M3 21l7-7\"),\n dot: `<circle cx=\"12\" cy=\"12\" r=\"4\" fill=\"currentColor\"/>`,\n loader: stroke(\"M12 3a9 9 0 1 0 9 9\"),\n play: fill(\"M8 5v14l11-7z\"),\n pause: bar(7, 3.2) + bar(13.8, 3.2),\n stop: `<rect x=\"6\" y=\"6\" width=\"12\" height=\"12\" rx=\"2\" fill=\"currentColor\"/>`,\n \"skip-forward\": fill(\"M6 5l9 7-9 7z\") + bar(16, 2.6),\n \"skip-back\": fill(\"M18 5l-9 7 9 7z\") + bar(5.4, 2.6),\n gear: stroke(\"M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6z\") + stroke(\n \"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.6 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.6a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z\"\n ),\n folder: stroke(\"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z\"),\n pencil: stroke(\"M17 3a2.83 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z\"),\n trash: stroke(\"M3 6h18\") + stroke(\"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6\") + stroke(\"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\"),\n eye: stroke(\"M2 12s4-7 10-7 10 7 10 7-4 7-10 7-10-7-10-7z\") + stroke(\"M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6z\"),\n copy: stroke(\"M10 8h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2z\") + stroke(\"M6 16H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\"),\n palette: stroke(\n \"M12 3a9 9 0 1 0 0 18c.9 0 1.5-.7 1.5-1.5 0-.4-.15-.72-.4-1-.24-.27-.35-.6-.35-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 0 0 5-5c0-4.4-4-8-9-8z\"\n ) + dot(8.5, 10.5) + dot(12, 8) + dot(15.5, 10.5),\n bookmark: stroke(\"M6 3h12a1 1 0 0 1 1 1v17l-7-4-7 4V4a1 1 0 0 1 1-1z\"),\n download: stroke(\"M12 3v12\") + stroke(\"M7 10l5 5 5-5\") + stroke(\"M4 20h16\")\n };\n var ICON_NAMES = Object.keys(ICONS);\n function hasIcon(name) {\n return Object.prototype.hasOwnProperty.call(ICONS, name);\n }\n function escapeAttr(value) {\n return value.replace(/&/g, \"&\").replace(/</g, \"<\").replace(/>/g, \">\").replace(/\"/g, \""\");\n }\n function iconClass(opts) {\n const size = opts.size ?? \"md\";\n return [\n \"xtyle-icon\",\n size !== \"md\" && `xtyle-icon--${size}`,\n opts.tone && `xtyle-icon--${opts.tone}`,\n opts.spin && \"xtyle-icon--spin\",\n opts.class\n ].filter(Boolean).join(\" \");\n }\n var MISSING = stroke(\"M5 5h14v14H5z\");\n function renderIcon(name, opts = {}) {\n const body = hasIcon(name) ? ICONS[name] : MISSING;\n const part = opts.part ? ` part=\"${escapeAttr(opts.part)}\"` : \"\";\n const a11y = opts.label ? `role=\"img\" aria-label=\"${escapeAttr(opts.label)}\"` : `aria-hidden=\"true\"`;\n const title = opts.label ? `<title>${escapeAttr(opts.label)}</title>` : \"\";\n return `<svg${part} class=\"${iconClass(opts)}\" viewBox=\"0 0 24 24\" width=\"1em\" height=\"1em\" focusable=\"false\" ${a11y}>${title}${body}</svg>`;\n }\n\n // packages/xtyle/src/elements/fragments/icon/mod.ts\n function iconHtml(b) {\n return renderIcon(b.name ?? \"\", {\n size: b.size ?? \"md\",\n tone: b.tone,\n label: b.label,\n spin: !!b.spin,\n part: \"icon\"\n });\n }\n function render(bindings, ops) {\n ops.replaceChildren(\"[data-icon]\", iconHtml(bindings));\n }\n hooks.fragment.mount(\"icon\", render);\n hooks.fragment.update(\"icon\", render);\n})();\n", "icon.html": "<span data-root data-icon></span>\n" };
|
|
3
|
+
export const fragmentSources = { "mod.js": "\"use strict\";\n(() => {\n // packages/xtyle/src/icons.ts\n var stroke = (d) => `<path d=\"${d}\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/>`;\n var dot = (cx, cy) => `<circle cx=\"${cx}\" cy=\"${cy}\" r=\"1.8\" fill=\"currentColor\"/>`;\n var fill = (d) => `<path d=\"${d}\" fill=\"currentColor\"/>`;\n var bar = (x, w) => `<rect x=\"${x}\" y=\"5\" width=\"${w}\" height=\"14\" rx=\"1\" fill=\"currentColor\"/>`;\n var circle = stroke(\"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18z\");\n var ICONS = {\n \"chevron-up\": stroke(\"M18 15l-6-6-6 6\"),\n \"chevron-down\": stroke(\"M6 9l6 6 6-6\"),\n \"chevron-left\": stroke(\"M15 18l-6-6 6-6\"),\n \"chevron-right\": stroke(\"M9 6l6 6-6 6\"),\n \"chevron-expand\": stroke(\"M8 9l4-4 4 4\") + stroke(\"M16 15l-4 4-4-4\"),\n \"arrow-up\": stroke(\"M12 19V5\") + stroke(\"M6 11l6-6 6 6\"),\n \"arrow-down\": stroke(\"M12 5v14\") + stroke(\"M6 13l6 6 6-6\"),\n \"arrow-left\": stroke(\"M19 12H5\") + stroke(\"M11 6l-6 6 6 6\"),\n \"arrow-right\": stroke(\"M5 12h14\") + stroke(\"M13 6l6 6-6 6\"),\n close: stroke(\"M18 6L6 18\") + stroke(\"M6 6l12 12\"),\n check: stroke(\"M20 6L9 17l-5-5\"),\n plus: stroke(\"M12 5v14\") + stroke(\"M5 12h14\"),\n minus: stroke(\"M5 12h14\"),\n menu: stroke(\"M4 6h16\") + stroke(\"M4 12h16\") + stroke(\"M4 18h16\"),\n \"more-vertical\": dot(12, 5) + dot(12, 12) + dot(12, 19),\n \"more-horizontal\": dot(5, 12) + dot(12, 12) + dot(19, 12),\n search: stroke(\"M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14z\") + stroke(\"M20 20l-3.6-3.6\"),\n info: circle + stroke(\"M12 11v5\") + stroke(\"M12 8h.01\"),\n warning: stroke(\"M12 3L2 20h20L12 3z\") + stroke(\"M12 10v4\") + stroke(\"M12 17h.01\"),\n error: circle + stroke(\"M15 9l-6 6\") + stroke(\"M9 9l6 6\"),\n success: circle + stroke(\"M8.5 12l2.5 2.5L16 9\"),\n \"external-link\": stroke(\"M14 4h6v6\") + stroke(\"M20 4l-9 9\") + stroke(\"M18 14v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4\"),\n maximize: stroke(\"M15 3h6v6\") + stroke(\"M9 21H3v-6\") + stroke(\"M21 3l-7 7\") + stroke(\"M3 21l7-7\"),\n dot: `<circle cx=\"12\" cy=\"12\" r=\"4\" fill=\"currentColor\"/>`,\n loader: stroke(\"M12 3a9 9 0 1 0 9 9\"),\n play: fill(\"M8 5v14l11-7z\"),\n pause: bar(7, 3.2) + bar(13.8, 3.2),\n stop: `<rect x=\"6\" y=\"6\" width=\"12\" height=\"12\" rx=\"2\" fill=\"currentColor\"/>`,\n \"skip-forward\": fill(\"M6 5l9 7-9 7z\") + bar(16, 2.6),\n \"skip-back\": fill(\"M18 5l-9 7 9 7z\") + bar(5.4, 2.6),\n volume: fill(\"M11 5L6 9H3v6h3l5 4V5z\") + stroke(\"M15.5 8.5a5 5 0 0 1 0 7\") + stroke(\"M18.5 6a9 9 0 0 1 0 12\"),\n \"volume-off\": fill(\"M11 5L6 9H3v6h3l5 4V5z\") + stroke(\"M22 9l-6 6\") + stroke(\"M16 9l6 6\"),\n gear: stroke(\"M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6z\") + stroke(\n \"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.6 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.6a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z\"\n ),\n folder: stroke(\"M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z\"),\n pencil: stroke(\"M17 3a2.83 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z\"),\n trash: stroke(\"M3 6h18\") + stroke(\"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6\") + stroke(\"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2\"),\n eye: stroke(\"M2 12s4-7 10-7 10 7 10 7-4 7-10 7-10-7-10-7z\") + stroke(\"M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6z\"),\n copy: stroke(\"M10 8h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-8a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2z\") + stroke(\"M6 16H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1\"),\n palette: stroke(\n \"M12 3a9 9 0 1 0 0 18c.9 0 1.5-.7 1.5-1.5 0-.4-.15-.72-.4-1-.24-.27-.35-.6-.35-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 0 0 5-5c0-4.4-4-8-9-8z\"\n ) + dot(8.5, 10.5) + dot(12, 8) + dot(15.5, 10.5),\n bookmark: stroke(\"M6 3h12a1 1 0 0 1 1 1v17l-7-4-7 4V4a1 1 0 0 1 1-1z\"),\n download: stroke(\"M12 3v12\") + stroke(\"M7 10l5 5 5-5\") + stroke(\"M4 20h16\")\n };\n var ICON_NAMES = Object.keys(ICONS);\n function hasIcon(name) {\n return Object.prototype.hasOwnProperty.call(ICONS, name);\n }\n function escapeAttr(value) {\n return value.replace(/&/g, \"&\").replace(/</g, \"<\").replace(/>/g, \">\").replace(/\"/g, \""\");\n }\n function iconClass(opts) {\n const size = opts.size ?? \"md\";\n return [\n \"xtyle-icon\",\n size !== \"md\" && `xtyle-icon--${size}`,\n opts.tone && `xtyle-icon--${opts.tone}`,\n opts.spin && \"xtyle-icon--spin\",\n opts.class\n ].filter(Boolean).join(\" \");\n }\n var MISSING = stroke(\"M5 5h14v14H5z\");\n function renderIcon(name, opts = {}) {\n const body = hasIcon(name) ? ICONS[name] : MISSING;\n const part = opts.part ? ` part=\"${escapeAttr(opts.part)}\"` : \"\";\n const a11y = opts.label ? `role=\"img\" aria-label=\"${escapeAttr(opts.label)}\"` : `aria-hidden=\"true\"`;\n const title = opts.label ? `<title>${escapeAttr(opts.label)}</title>` : \"\";\n return `<svg${part} class=\"${iconClass(opts)}\" viewBox=\"0 0 24 24\" width=\"1em\" height=\"1em\" focusable=\"false\" ${a11y}>${title}${body}</svg>`;\n }\n\n // packages/xtyle/src/elements/fragments/icon/mod.ts\n function iconHtml(b) {\n return renderIcon(b.name ?? \"\", {\n size: b.size ?? \"md\",\n tone: b.tone,\n label: b.label,\n spin: !!b.spin,\n part: \"icon\"\n });\n }\n function render(bindings, ops) {\n ops.replaceChildren(\"[data-icon]\", iconHtml(bindings));\n }\n hooks.fragment.mount(\"icon\", render);\n hooks.fragment.update(\"icon\", render);\n})();\n", "icon.html": "<span data-root data-icon></span>\n" };
|
|
4
4
|
//# sourceMappingURL=source.generated.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.generated.js","sourceRoot":"","sources":["../../../../src/elements/fragments/icon/source.generated.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,MAAM,CAAC,MAAM,QAAQ,GAAG,EAAC,SAAS,EAAC,wCAAwC,EAAC,OAAO,EAAC,KAAK,EAAC,MAAM,EAAC,oBAAoB,EAAC,SAAS,EAAC,OAAO,EAAC,OAAO,EAAC,sBAAsB,EAAC,aAAa,EAAC,0GAA0G,EAAC,cAAc,EAAC,CAAC,sBAAsB,CAAC,EAAC,OAAO,EAAC,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,EAAC,OAAO,EAAC,EAAC,gBAAgB,EAAC,CAAC,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAC,gBAAgB,EAAC,QAAQ,EAAC,WAAW,EAAC,MAAM,EAAC,EAAC,QAAQ,EAAC,EAAE,EAAC,EAAC,CAAC,EAAC,EAAC,CAAC;AACte,MAAM,CAAC,MAAM,eAAe,GAA2B,EAAC,QAAQ,EAAC,
|
|
1
|
+
{"version":3,"file":"source.generated.js","sourceRoot":"","sources":["../../../../src/elements/fragments/icon/source.generated.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,MAAM,CAAC,MAAM,QAAQ,GAAG,EAAC,SAAS,EAAC,wCAAwC,EAAC,OAAO,EAAC,KAAK,EAAC,MAAM,EAAC,oBAAoB,EAAC,SAAS,EAAC,OAAO,EAAC,OAAO,EAAC,sBAAsB,EAAC,aAAa,EAAC,0GAA0G,EAAC,cAAc,EAAC,CAAC,sBAAsB,CAAC,EAAC,OAAO,EAAC,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,EAAC,OAAO,EAAC,EAAC,gBAAgB,EAAC,CAAC,EAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAC,gBAAgB,EAAC,QAAQ,EAAC,WAAW,EAAC,MAAM,EAAC,EAAC,QAAQ,EAAC,EAAE,EAAC,EAAC,CAAC,EAAC,EAAC,CAAC;AACte,MAAM,CAAC,MAAM,eAAe,GAA2B,EAAC,QAAQ,EAAC,sgMAAsgM,EAAC,WAAW,EAAC,qCAAqC,EAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.generated.d.ts","sourceRoot":"","sources":["../../../../src/elements/fragments/image/source.generated.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;CAA0mB,CAAC;AAChoB,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"source.generated.d.ts","sourceRoot":"","sources":["../../../../src/elements/fragments/image/source.generated.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;CAA0mB,CAAC;AAChoB,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAA2tE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// generated by scripts/build-fragments.mjs: do not edit
|
|
2
2
|
export const manifest = { "$schema": "https://xript.dev/schema/mod/v0.7.json", "xript": "0.7", "name": "xtyle-image-default", "version": "0.0.1", "title": "Xtyle Image (default)", "description": "The built-in fill for the xtyle Image component: the mod-zero markup every app inherits and may override.", "capabilities": ["xtyle.component.image"], "entry": { "script": "mod.js", "format": "script" }, "fills": { "component.image": [{ "id": "image", "format": "text/html+jsml", "source": "image.html", "meta": { "tokens": ["--bg-2", "--bg-3", "--fg-2", "--radius-sm", "--radius-md", "--radius-lg", "--duration-slow", "--ease-standard", "--text-sm", "--leading-normal", "--space-2"] } }] } };
|
|
3
|
-
export const fragmentSources = { "mod.js": "\"use strict\";\n(() => {\n // packages/xtyle/src/elements/fragments/image/mod.ts\n function esc(value) {\n return value.replace(/&/g, \"&\").replace(/</g, \"<\").replace(/>/g, \">\").replace(/\"/g, \""\");\n }\n function imageClass(b) {\n const radius = b.radius ?? \"md\";\n return [\n \"xtyle-image\",\n b.fit === \"contain\" && \"xtyle-image--contain\",\n radius !== \"md\" && `xtyle-image--radius-${radius}`\n ].filter(Boolean).join(\" \");\n }\n function
|
|
3
|
+
export const fragmentSources = { "mod.js": "\"use strict\";\n(() => {\n // packages/xtyle/src/elements/fragments/image/mod.ts\n function esc(value) {\n return value.replace(/&/g, \"&\").replace(/</g, \"<\").replace(/>/g, \">\").replace(/\"/g, \""\");\n }\n function imageClass(b) {\n const radius = b.radius ?? \"md\";\n return [\n \"xtyle-image\",\n b.fit === \"contain\" && \"xtyle-image--contain\",\n radius !== \"md\" && `xtyle-image--radius-${radius}`\n ].filter(Boolean).join(\" \");\n }\n function mediaHtml(b) {\n const src = esc(b.src ?? \"\");\n if (!src) return \"\";\n const alt = esc(b.alt ?? \"\");\n const loading = b.loading === \"eager\" ? \"eager\" : \"lazy\";\n return `<img class=\"xtyle-image__img\" part=\"image\" src=\"${src}\" alt=\"${alt}\" loading=\"${loading}\" decoding=\"async\" />`;\n }\n function captionHtml(b) {\n return b.caption ? `<figcaption class=\"xtyle-image__caption\" part=\"caption\">${esc(b.caption)}</figcaption>` : \"\";\n }\n function imageHtml(b) {\n const ratioStyle = b.ratio ? ` style=\"aspect-ratio: ${esc(b.ratio)}\"` : \"\";\n const placeholder = `<span class=\"xtyle-image__placeholder\" part=\"placeholder\" aria-hidden=\"true\"></span>`;\n const media = `<span class=\"xtyle-image__media\" data-image-media>${mediaHtml(b)}</span>`;\n const hover = `<span class=\"xtyle-image__hover\" part=\"hover\" aria-hidden=\"true\" data-slot=\"hover\"><slot name=\"hover\"></slot></span>`;\n const frame = `<span class=\"xtyle-image__frame\" part=\"frame\"${ratioStyle}>${placeholder}${media}${hover}</span>`;\n return `<figure class=\"${imageClass(b)}\" part=\"figure\">${frame}${captionHtml(b)}</figure>`;\n }\n function mount(bindings, ops) {\n ops.replaceChildren(\"[data-image]\", imageHtml(bindings));\n }\n function patch(bindings, ops) {\n ops.setAttr('[part=\"figure\"]', \"class\", imageClass(bindings));\n ops.setAttr('[part=\"frame\"]', \"style\", bindings.ratio ? `aspect-ratio: ${esc(bindings.ratio)}` : \"\");\n ops.replaceChildren(\"[data-image-media]\", mediaHtml(bindings));\n }\n hooks.fragment.mount(\"image\", mount);\n hooks.fragment.update(\"image\", patch);\n})();\n", "image.html": "<span data-root data-image></span>\n" };
|
|
4
4
|
//# sourceMappingURL=source.generated.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source.generated.js","sourceRoot":"","sources":["../../../../src/elements/fragments/image/source.generated.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,MAAM,CAAC,MAAM,QAAQ,GAAG,EAAC,SAAS,EAAC,wCAAwC,EAAC,OAAO,EAAC,KAAK,EAAC,MAAM,EAAC,qBAAqB,EAAC,SAAS,EAAC,OAAO,EAAC,OAAO,EAAC,uBAAuB,EAAC,aAAa,EAAC,2GAA2G,EAAC,cAAc,EAAC,CAAC,uBAAuB,CAAC,EAAC,OAAO,EAAC,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,EAAC,OAAO,EAAC,EAAC,iBAAiB,EAAC,CAAC,EAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAC,gBAAgB,EAAC,QAAQ,EAAC,YAAY,EAAC,MAAM,EAAC,EAAC,QAAQ,EAAC,CAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,aAAa,EAAC,aAAa,EAAC,aAAa,EAAC,iBAAiB,EAAC,iBAAiB,EAAC,WAAW,EAAC,kBAAkB,EAAC,WAAW,CAAC,EAAC,EAAC,CAAC,EAAC,EAAC,CAAC;AAChoB,MAAM,CAAC,MAAM,eAAe,GAA2B,EAAC,QAAQ,EAAC,
|
|
1
|
+
{"version":3,"file":"source.generated.js","sourceRoot":"","sources":["../../../../src/elements/fragments/image/source.generated.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,MAAM,CAAC,MAAM,QAAQ,GAAG,EAAC,SAAS,EAAC,wCAAwC,EAAC,OAAO,EAAC,KAAK,EAAC,MAAM,EAAC,qBAAqB,EAAC,SAAS,EAAC,OAAO,EAAC,OAAO,EAAC,uBAAuB,EAAC,aAAa,EAAC,2GAA2G,EAAC,cAAc,EAAC,CAAC,uBAAuB,CAAC,EAAC,OAAO,EAAC,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,EAAC,OAAO,EAAC,EAAC,iBAAiB,EAAC,CAAC,EAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAC,gBAAgB,EAAC,QAAQ,EAAC,YAAY,EAAC,MAAM,EAAC,EAAC,QAAQ,EAAC,CAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,aAAa,EAAC,aAAa,EAAC,aAAa,EAAC,iBAAiB,EAAC,iBAAiB,EAAC,WAAW,EAAC,kBAAkB,EAAC,WAAW,CAAC,EAAC,EAAC,CAAC,EAAC,EAAC,CAAC;AAChoB,MAAM,CAAC,MAAM,eAAe,GAA2B,EAAC,QAAQ,EAAC,wpEAAwpE,EAAC,YAAY,EAAC,sCAAsC,EAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const manifest: {
|
|
2
|
+
$schema: string;
|
|
3
|
+
xript: string;
|
|
4
|
+
name: string;
|
|
5
|
+
version: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
capabilities: string[];
|
|
9
|
+
entry: {
|
|
10
|
+
script: string;
|
|
11
|
+
format: string;
|
|
12
|
+
};
|
|
13
|
+
fills: {
|
|
14
|
+
"component.mobile-shell": {
|
|
15
|
+
id: string;
|
|
16
|
+
format: string;
|
|
17
|
+
source: string;
|
|
18
|
+
meta: {
|
|
19
|
+
tokens: string[];
|
|
20
|
+
};
|
|
21
|
+
}[];
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const fragmentSources: Record<string, string>;
|
|
25
|
+
//# sourceMappingURL=source.generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source.generated.d.ts","sourceRoot":"","sources":["../../../../src/elements/fragments/mobile-shell/source.generated.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;CAA2tB,CAAC;AACjvB,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAi9C,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// generated by scripts/build-fragments.mjs: do not edit
|
|
2
|
+
export const manifest = { "$schema": "https://xript.dev/schema/mod/v0.7.json", "xript": "0.7", "name": "xtyle-mobile-shell-default", "version": "0.0.1", "title": "Xtyle MobileShell (default)", "description": "The built-in fill for the xtyle MobileShell component: the mod-zero markup every app inherits and may override.", "capabilities": ["xtyle.component.mobile-shell"], "entry": { "script": "mod.js", "format": "script" }, "fills": { "component.mobile-shell": [{ "id": "mobile-shell", "format": "text/html+jsml", "source": "mobile-shell.html", "meta": { "tokens": ["--body-bg", "--bg-1", "--fg-0", "--line", "--font-sans", "--text-body", "--text-lg", "--weight-semibold", "--leading-normal", "--border-thin", "--border-normal", "--border-thick", "--ring", "--space-3", "--space-4", "--space-6"] } }] } };
|
|
3
|
+
export const fragmentSources = { "mod.js": "\"use strict\";\n(() => {\n // packages/xtyle/src/elements/fragments/mobile-shell/mod.ts\n function esc(value) {\n return value.replace(/&/g, \"&\").replace(/</g, \"<\").replace(/>/g, \">\").replace(/\"/g, \""\");\n }\n function titleText(b) {\n return b.heading ? esc(b.heading) : \"\";\n }\n function shellHtml(b) {\n const mainId = esc(b.mainId ?? \"main\");\n return `<div class=\"xtyle-mshell\" part=\"shell\"><header class=\"xtyle-mshell__bar\" part=\"bar\"><span class=\"xtyle-mshell__lead\" part=\"lead\"><slot name=\"brand\"></slot><span class=\"xtyle-mshell__title\" part=\"title\" data-mshell-title>${titleText(b)}</span></span><span class=\"xtyle-mshell__actions\" part=\"actions\"><slot name=\"actions\"></slot></span></header><main class=\"xtyle-mshell__content\" part=\"content\" id=\"${mainId}\" tabindex=\"-1\"><slot></slot></main><div class=\"xtyle-mshell__nav\" part=\"nav\" data-slot=\"nav\"><slot name=\"nav\"></slot></div></div>`;\n }\n function mount(bindings, ops) {\n ops.replaceChildren(\"[data-mobile-shell]\", shellHtml(bindings));\n }\n function patch(bindings, ops) {\n ops.replaceChildren(\"[data-mshell-title]\", titleText(bindings));\n ops.setAttr('[part=\"content\"]', \"id\", esc(bindings.mainId ?? \"main\"));\n }\n hooks.fragment.mount(\"mobile-shell\", mount);\n hooks.fragment.update(\"mobile-shell\", patch);\n})();\n", "mobile-shell.html": "<span data-root data-mobile-shell></span>\n" };
|
|
4
|
+
//# sourceMappingURL=source.generated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source.generated.js","sourceRoot":"","sources":["../../../../src/elements/fragments/mobile-shell/source.generated.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,MAAM,CAAC,MAAM,QAAQ,GAAG,EAAC,SAAS,EAAC,wCAAwC,EAAC,OAAO,EAAC,KAAK,EAAC,MAAM,EAAC,4BAA4B,EAAC,SAAS,EAAC,OAAO,EAAC,OAAO,EAAC,6BAA6B,EAAC,aAAa,EAAC,iHAAiH,EAAC,cAAc,EAAC,CAAC,8BAA8B,CAAC,EAAC,OAAO,EAAC,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,EAAC,OAAO,EAAC,EAAC,wBAAwB,EAAC,CAAC,EAAC,IAAI,EAAC,cAAc,EAAC,QAAQ,EAAC,gBAAgB,EAAC,QAAQ,EAAC,mBAAmB,EAAC,MAAM,EAAC,EAAC,QAAQ,EAAC,CAAC,WAAW,EAAC,QAAQ,EAAC,QAAQ,EAAC,QAAQ,EAAC,aAAa,EAAC,aAAa,EAAC,WAAW,EAAC,mBAAmB,EAAC,kBAAkB,EAAC,eAAe,EAAC,iBAAiB,EAAC,gBAAgB,EAAC,QAAQ,EAAC,WAAW,EAAC,WAAW,EAAC,WAAW,CAAC,EAAC,EAAC,CAAC,EAAC,EAAC,CAAC;AACjvB,MAAM,CAAC,MAAM,eAAe,GAA2B,EAAC,QAAQ,EAAC,g4CAAg4C,EAAC,mBAAmB,EAAC,6CAA6C,EAAC,CAAC"}
|