@nmnmcc/standard 0.0.0-stage → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +516 -2
- package/dist/Extend.d.ts +15 -0
- package/dist/Extend.d.ts.map +1 -0
- package/dist/Extend.js +1 -0
- package/dist/Node.d.ts +71 -0
- package/dist/Node.d.ts.map +1 -0
- package/dist/Palette-BIJ96BEh.js +84 -0
- package/dist/Palette.d.ts +8 -0
- package/dist/Palette.d.ts.map +1 -0
- package/dist/Palette.js +1 -0
- package/dist/Standard-BPpzr5SM.js +488 -0
- package/dist/Standard.d.ts +249 -0
- package/dist/Standard.d.ts.map +1 -0
- package/dist/Standard.js +1 -0
- package/dist/Ui-B9xQqqNT.js +468 -0
- package/dist/Ui.d.ts +500 -0
- package/dist/Ui.d.ts.map +1 -0
- package/dist/Ui.js +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/rolldown-runtime-BMBA7GOT.js +10 -0
- package/dist/standard/button/button.d.ts +21 -0
- package/dist/standard/button/button.d.ts.map +1 -0
- package/dist/standard/colour/colour.d.ts +93 -0
- package/dist/standard/colour/colour.d.ts.map +1 -0
- package/dist/standard/field/field.d.ts +91 -0
- package/dist/standard/field/field.d.ts.map +1 -0
- package/dist/standard/form/form.d.ts +16 -0
- package/dist/standard/form/form.d.ts.map +1 -0
- package/dist/standard/icon/icon.d.ts +31 -0
- package/dist/standard/icon/icon.d.ts.map +1 -0
- package/dist/standard/image/image.d.ts +21 -0
- package/dist/standard/image/image.d.ts.map +1 -0
- package/dist/standard/layout/layout.d.ts +73 -0
- package/dist/standard/layout/layout.d.ts.map +1 -0
- package/dist/standard/list/list.d.ts +26 -0
- package/dist/standard/list/list.d.ts.map +1 -0
- package/dist/standard/page/page.d.ts +20 -0
- package/dist/standard/page/page.d.ts.map +1 -0
- package/dist/standard/table/table.d.ts +18 -0
- package/dist/standard/table/table.d.ts.map +1 -0
- package/dist/standard/text/text.d.ts +39 -0
- package/dist/standard/text/text.d.ts.map +1 -0
- package/dist/standard/tokens/classes.d.ts +16 -0
- package/dist/standard/tokens/classes.d.ts.map +1 -0
- package/dist/standard/tokens/tokens.d.ts +162 -0
- package/dist/standard/tokens/tokens.d.ts.map +1 -0
- package/dist/standard.css +2 -0
- package/dist/ui/arrow/arrow.d.ts +18 -0
- package/dist/ui/arrow/arrow.d.ts.map +1 -0
- package/dist/ui/avatar/avatar.d.ts +15 -0
- package/dist/ui/avatar/avatar.d.ts.map +1 -0
- package/dist/ui/board/board.d.ts +34 -0
- package/dist/ui/board/board.d.ts.map +1 -0
- package/dist/ui/bullet/bullet.d.ts +15 -0
- package/dist/ui/bullet/bullet.d.ts.map +1 -0
- package/dist/ui/card/card.d.ts +24 -0
- package/dist/ui/card/card.d.ts.map +1 -0
- package/dist/ui/carousel/carousel.d.ts +17 -0
- package/dist/ui/carousel/carousel.d.ts.map +1 -0
- package/dist/ui/check/check.d.ts +20 -0
- package/dist/ui/check/check.d.ts.map +1 -0
- package/dist/ui/choice/choice.d.ts +19 -0
- package/dist/ui/choice/choice.d.ts.map +1 -0
- package/dist/ui/control/control.d.ts +57 -0
- package/dist/ui/control/control.d.ts.map +1 -0
- package/dist/ui/dialog/dialog.d.ts +30 -0
- package/dist/ui/dialog/dialog.d.ts.map +1 -0
- package/dist/ui/disclosure/disclosure.d.ts +20 -0
- package/dist/ui/disclosure/disclosure.d.ts.map +1 -0
- package/dist/ui/flap/flap.d.ts +18 -0
- package/dist/ui/flap/flap.d.ts.map +1 -0
- package/dist/ui/item/item.d.ts +21 -0
- package/dist/ui/item/item.d.ts.map +1 -0
- package/dist/ui/key/key.d.ts +12 -0
- package/dist/ui/key/key.d.ts.map +1 -0
- package/dist/ui/menu/menu.d.ts +26 -0
- package/dist/ui/menu/menu.d.ts.map +1 -0
- package/dist/ui/modal/modal.d.ts +22 -0
- package/dist/ui/modal/modal.d.ts.map +1 -0
- package/dist/ui/navigator/navigator.d.ts +137 -0
- package/dist/ui/navigator/navigator.d.ts.map +1 -0
- package/dist/ui/notice/notice.d.ts +34 -0
- package/dist/ui/notice/notice.d.ts.map +1 -0
- package/dist/ui/options/options.d.ts +19 -0
- package/dist/ui/options/options.d.ts.map +1 -0
- package/dist/ui/pager/pager.d.ts +29 -0
- package/dist/ui/pager/pager.d.ts.map +1 -0
- package/dist/ui/pagination/pagination.d.ts +14 -0
- package/dist/ui/pagination/pagination.d.ts.map +1 -0
- package/dist/ui/popover/popover.d.ts +20 -0
- package/dist/ui/popover/popover.d.ts.map +1 -0
- package/dist/ui/progress/progress.d.ts +17 -0
- package/dist/ui/progress/progress.d.ts.map +1 -0
- package/dist/ui/route/route.d.ts +27 -0
- package/dist/ui/route/route.d.ts.map +1 -0
- package/dist/ui/sheet/sheet.d.ts +35 -0
- package/dist/ui/sheet/sheet.d.ts.map +1 -0
- package/dist/ui/skeleton/skeleton.d.ts +15 -0
- package/dist/ui/skeleton/skeleton.d.ts.map +1 -0
- package/dist/ui/slider/slider.d.ts +23 -0
- package/dist/ui/slider/slider.d.ts.map +1 -0
- package/dist/ui/stepper/stepper.d.ts +32 -0
- package/dist/ui/stepper/stepper.d.ts.map +1 -0
- package/dist/ui/tabs/tabs.d.ts +22 -0
- package/dist/ui/tabs/tabs.d.ts.map +1 -0
- package/dist/ui/tag/tag.d.ts +17 -0
- package/dist/ui/tag/tag.d.ts.map +1 -0
- package/dist/ui/tile/tile.d.ts +38 -0
- package/dist/ui/tile/tile.d.ts.map +1 -0
- package/dist/ui/toasts/toasts.d.ts +17 -0
- package/dist/ui/toasts/toasts.d.ts.map +1 -0
- package/dist/ui/toggle/toggle.d.ts +17 -0
- package/dist/ui/toggle/toggle.d.ts.map +1 -0
- package/dist/ui/trail/trail.d.ts +22 -0
- package/dist/ui/trail/trail.d.ts.map +1 -0
- package/package.json +70 -3
- package/src/Extend.ts +14 -0
- package/src/Node.ts +44 -0
- package/src/Palette.ts +7 -0
- package/src/Standard.ts +109 -0
- package/src/Ui.ts +156 -0
- package/src/index.ts +27 -0
- package/src/standard/button/button.module.css +43 -0
- package/src/standard/button/button.module.d.css.ts +6 -0
- package/src/standard/button/button.ts +38 -0
- package/src/standard/colour/colour.ts +197 -0
- package/src/standard/field/field.module.css +222 -0
- package/src/standard/field/field.module.d.css.ts +13 -0
- package/src/standard/field/field.ts +266 -0
- package/src/standard/form/form.ts +25 -0
- package/src/standard/icon/icon.module.css +349 -0
- package/src/standard/icon/icon.module.d.css.ts +112 -0
- package/src/standard/icon/icon.ts +148 -0
- package/src/standard/image/image.module.css +42 -0
- package/src/standard/image/image.module.d.css.ts +12 -0
- package/src/standard/image/image.ts +39 -0
- package/src/standard/layout/layout.module.css +224 -0
- package/src/standard/layout/layout.module.d.css.ts +41 -0
- package/src/standard/layout/layout.ts +133 -0
- package/src/standard/list/list.module.css +71 -0
- package/src/standard/list/list.module.d.css.ts +10 -0
- package/src/standard/list/list.ts +53 -0
- package/src/standard/page/page.module.css +244 -0
- package/src/standard/page/page.module.d.css.ts +9 -0
- package/src/standard/page/page.ts +32 -0
- package/src/standard/table/table.module.css +40 -0
- package/src/standard/table/table.module.d.css.ts +6 -0
- package/src/standard/table/table.ts +36 -0
- package/src/standard/text/text.module.css +149 -0
- package/src/standard/text/text.module.d.css.ts +19 -0
- package/src/standard/text/text.ts +77 -0
- package/src/standard/tokens/classes.ts +31 -0
- package/src/standard/tokens/tokens.module.css +294 -0
- package/src/standard/tokens/tokens.module.d.css.ts +40 -0
- package/src/standard/tokens/tokens.ts +339 -0
- package/src/ui/arrow/arrow.module.css +38 -0
- package/src/ui/arrow/arrow.module.d.css.ts +13 -0
- package/src/ui/arrow/arrow.ts +35 -0
- package/src/ui/avatar/avatar.module.css +25 -0
- package/src/ui/avatar/avatar.module.d.css.ts +5 -0
- package/src/ui/avatar/avatar.ts +28 -0
- package/src/ui/board/board.module.css +94 -0
- package/src/ui/board/board.module.d.css.ts +10 -0
- package/src/ui/board/board.ts +84 -0
- package/src/ui/bullet/bullet.module.css +28 -0
- package/src/ui/bullet/bullet.module.d.css.ts +5 -0
- package/src/ui/bullet/bullet.ts +16 -0
- package/src/ui/card/card.module.css +80 -0
- package/src/ui/card/card.module.d.css.ts +6 -0
- package/src/ui/card/card.ts +42 -0
- package/src/ui/carousel/carousel.module.css +24 -0
- package/src/ui/carousel/carousel.module.d.css.ts +5 -0
- package/src/ui/carousel/carousel.ts +30 -0
- package/src/ui/check/check.module.css +53 -0
- package/src/ui/check/check.module.d.css.ts +8 -0
- package/src/ui/check/check.ts +46 -0
- package/src/ui/choice/choice.module.css +32 -0
- package/src/ui/choice/choice.module.d.css.ts +6 -0
- package/src/ui/choice/choice.ts +31 -0
- package/src/ui/control/control.module.css +127 -0
- package/src/ui/control/control.module.d.css.ts +12 -0
- package/src/ui/control/control.ts +97 -0
- package/src/ui/dialog/dialog.module.css +42 -0
- package/src/ui/dialog/dialog.module.d.css.ts +6 -0
- package/src/ui/dialog/dialog.ts +44 -0
- package/src/ui/disclosure/disclosure.module.css +57 -0
- package/src/ui/disclosure/disclosure.module.d.css.ts +7 -0
- package/src/ui/disclosure/disclosure.ts +32 -0
- package/src/ui/flap/flap.module.css +161 -0
- package/src/ui/flap/flap.module.d.css.ts +48 -0
- package/src/ui/flap/flap.ts +78 -0
- package/src/ui/item/item.module.css +39 -0
- package/src/ui/item/item.module.d.css.ts +7 -0
- package/src/ui/item/item.ts +33 -0
- package/src/ui/key/key.module.css +15 -0
- package/src/ui/key/key.module.d.css.ts +5 -0
- package/src/ui/key/key.ts +13 -0
- package/src/ui/menu/menu.module.css +11 -0
- package/src/ui/menu/menu.module.d.css.ts +5 -0
- package/src/ui/menu/menu.ts +48 -0
- package/src/ui/modal/modal.module.css +66 -0
- package/src/ui/modal/modal.module.d.css.ts +8 -0
- package/src/ui/modal/modal.ts +55 -0
- package/src/ui/navigator/navigator.module.css +658 -0
- package/src/ui/navigator/navigator.module.d.css.ts +39 -0
- package/src/ui/navigator/navigator.ts +337 -0
- package/src/ui/notice/notice.module.css +80 -0
- package/src/ui/notice/notice.module.d.css.ts +10 -0
- package/src/ui/notice/notice.ts +57 -0
- package/src/ui/options/options.module.css +30 -0
- package/src/ui/options/options.module.d.css.ts +6 -0
- package/src/ui/options/options.ts +31 -0
- package/src/ui/pager/pager.module.css +38 -0
- package/src/ui/pager/pager.module.d.css.ts +8 -0
- package/src/ui/pager/pager.ts +48 -0
- package/src/ui/pagination/pagination.module.css +38 -0
- package/src/ui/pagination/pagination.module.d.css.ts +7 -0
- package/src/ui/pagination/pagination.ts +52 -0
- package/src/ui/popover/popover.module.css +94 -0
- package/src/ui/popover/popover.module.d.css.ts +8 -0
- package/src/ui/popover/popover.ts +139 -0
- package/src/ui/progress/progress.module.css +69 -0
- package/src/ui/progress/progress.module.d.css.ts +6 -0
- package/src/ui/progress/progress.ts +26 -0
- package/src/ui/route/route.module.css +116 -0
- package/src/ui/route/route.module.d.css.ts +11 -0
- package/src/ui/route/route.ts +58 -0
- package/src/ui/sheet/sheet.module.css +194 -0
- package/src/ui/sheet/sheet.module.d.css.ts +7 -0
- package/src/ui/sheet/sheet.ts +47 -0
- package/src/ui/skeleton/skeleton.module.css +44 -0
- package/src/ui/skeleton/skeleton.module.d.css.ts +6 -0
- package/src/ui/skeleton/skeleton.ts +20 -0
- package/src/ui/slider/slider.module.css +56 -0
- package/src/ui/slider/slider.module.d.css.ts +6 -0
- package/src/ui/slider/slider.ts +48 -0
- package/src/ui/stepper/stepper.module.css +32 -0
- package/src/ui/stepper/stepper.module.d.css.ts +7 -0
- package/src/ui/stepper/stepper.ts +62 -0
- package/src/ui/tabs/tabs.module.css +38 -0
- package/src/ui/tabs/tabs.module.d.css.ts +6 -0
- package/src/ui/tabs/tabs.ts +24 -0
- package/src/ui/tag/tag.module.css +23 -0
- package/src/ui/tag/tag.module.d.css.ts +5 -0
- package/src/ui/tag/tag.ts +17 -0
- package/src/ui/tile/tile.module.css +137 -0
- package/src/ui/tile/tile.module.d.css.ts +13 -0
- package/src/ui/tile/tile.ts +69 -0
- package/src/ui/toasts/toasts.module.css +38 -0
- package/src/ui/toasts/toasts.module.d.css.ts +6 -0
- package/src/ui/toasts/toasts.ts +26 -0
- package/src/ui/toggle/toggle.module.css +46 -0
- package/src/ui/toggle/toggle.module.d.css.ts +6 -0
- package/src/ui/toggle/toggle.ts +29 -0
- package/src/ui/trail/trail.module.css +42 -0
- package/src/ui/trail/trail.module.d.css.ts +5 -0
- package/src/ui/trail/trail.ts +28 -0
|
@@ -0,0 +1,488 @@
|
|
|
1
|
+
import { t as e } from "./rolldown-runtime-BMBA7GOT.js";
|
|
2
|
+
import { Html as t } from "effect/ui/html";
|
|
3
|
+
import { Schema as n } from "effect";
|
|
4
|
+
var r = {
|
|
5
|
+
"accent-red": "s-accent-red",
|
|
6
|
+
"accent-orange": "s-accent-orange",
|
|
7
|
+
"accent-yellow": "s-accent-yellow",
|
|
8
|
+
"accent-green": "s-accent-green",
|
|
9
|
+
"accent-teal": "s-accent-teal",
|
|
10
|
+
"accent-blue": "s-accent-blue",
|
|
11
|
+
"accent-purple": "s-accent-purple",
|
|
12
|
+
"accent-grey": "s-accent-grey",
|
|
13
|
+
"tone-paper": "s-tone-paper",
|
|
14
|
+
"tone-ink": "s-tone-ink",
|
|
15
|
+
"tone-accent": "s-tone-accent",
|
|
16
|
+
selectable: "s-selectable",
|
|
17
|
+
"gap-0": "s-gap-0",
|
|
18
|
+
"gap-1": "s-gap-1",
|
|
19
|
+
"gap-2": "s-gap-2",
|
|
20
|
+
"gap-3": "s-gap-3",
|
|
21
|
+
"gap-4": "s-gap-4",
|
|
22
|
+
"gap-6": "s-gap-6",
|
|
23
|
+
"gap-8": "s-gap-8",
|
|
24
|
+
"gap-12": "s-gap-12",
|
|
25
|
+
"gap-16": "s-gap-16",
|
|
26
|
+
"gap-24": "s-gap-24",
|
|
27
|
+
"pad-0": "s-pad-0",
|
|
28
|
+
"pad-1": "s-pad-1",
|
|
29
|
+
"pad-2": "s-pad-2",
|
|
30
|
+
"pad-3": "s-pad-3",
|
|
31
|
+
"pad-4": "s-pad-4",
|
|
32
|
+
"pad-6": "s-pad-6",
|
|
33
|
+
"pad-8": "s-pad-8",
|
|
34
|
+
"pad-12": "s-pad-12",
|
|
35
|
+
"pad-16": "s-pad-16",
|
|
36
|
+
"pad-24": "s-pad-24",
|
|
37
|
+
"align-start": "s-align-start",
|
|
38
|
+
"align-end": "s-align-end",
|
|
39
|
+
"align-baseline": "s-align-baseline",
|
|
40
|
+
"align-stretch": "s-align-stretch"
|
|
41
|
+
}, i = Symbol("@nmnmcc/standard/Node"), a = (e) => ({ [i]: e }), o = (e) => e[i], s = (e) => e.map((e) => typeof e == "object" && e ? e[i] : e), c = (e, n) => t.component(e).make({ view: (e, t) => o(n(e, t)) }), l = {
|
|
42
|
+
icon: "s-icon",
|
|
43
|
+
leads: "s-leads",
|
|
44
|
+
"icon-menu": "s-icon-menu",
|
|
45
|
+
"icon-close": "s-icon-close",
|
|
46
|
+
"icon-search": "s-icon-search",
|
|
47
|
+
"icon-add": "s-icon-add",
|
|
48
|
+
"icon-remove": "s-icon-remove",
|
|
49
|
+
"icon-check": "s-icon-check",
|
|
50
|
+
"icon-edit": "s-icon-edit",
|
|
51
|
+
"icon-delete": "s-icon-delete",
|
|
52
|
+
"icon-more-horiz": "s-icon-more-horiz",
|
|
53
|
+
"icon-settings": "s-icon-settings",
|
|
54
|
+
"icon-tune": "s-icon-tune",
|
|
55
|
+
"icon-filter-list": "s-icon-filter-list",
|
|
56
|
+
"icon-sort": "s-icon-sort",
|
|
57
|
+
"icon-refresh": "s-icon-refresh",
|
|
58
|
+
"icon-download": "s-icon-download",
|
|
59
|
+
"icon-upload": "s-icon-upload",
|
|
60
|
+
"icon-share": "s-icon-share",
|
|
61
|
+
"icon-content-copy": "s-icon-content-copy",
|
|
62
|
+
"icon-link": "s-icon-link",
|
|
63
|
+
"icon-open-in-new": "s-icon-open-in-new",
|
|
64
|
+
"icon-info": "s-icon-info",
|
|
65
|
+
"icon-warning": "s-icon-warning",
|
|
66
|
+
"icon-error": "s-icon-error",
|
|
67
|
+
"icon-check-circle": "s-icon-check-circle",
|
|
68
|
+
"icon-help": "s-icon-help",
|
|
69
|
+
"icon-home": "s-icon-home",
|
|
70
|
+
"icon-person": "s-icon-person",
|
|
71
|
+
"icon-group": "s-icon-group",
|
|
72
|
+
"icon-mail": "s-icon-mail",
|
|
73
|
+
"icon-calendar-today": "s-icon-calendar-today",
|
|
74
|
+
"icon-schedule": "s-icon-schedule",
|
|
75
|
+
"icon-location-on": "s-icon-location-on",
|
|
76
|
+
"icon-call": "s-icon-call",
|
|
77
|
+
"icon-description": "s-icon-description",
|
|
78
|
+
"icon-folder": "s-icon-folder",
|
|
79
|
+
"icon-image": "s-icon-image",
|
|
80
|
+
"icon-attach-file": "s-icon-attach-file",
|
|
81
|
+
"icon-star": "s-icon-star",
|
|
82
|
+
"icon-favorite": "s-icon-favorite",
|
|
83
|
+
"icon-bookmark": "s-icon-bookmark",
|
|
84
|
+
"icon-lock": "s-icon-lock",
|
|
85
|
+
"icon-visibility": "s-icon-visibility",
|
|
86
|
+
"icon-visibility-off": "s-icon-visibility-off",
|
|
87
|
+
"icon-notifications": "s-icon-notifications",
|
|
88
|
+
"icon-send": "s-icon-send",
|
|
89
|
+
"icon-print": "s-icon-print",
|
|
90
|
+
"icon-save": "s-icon-save",
|
|
91
|
+
"icon-language": "s-icon-language",
|
|
92
|
+
"icon-palette": "s-icon-palette",
|
|
93
|
+
"icon-code": "s-icon-code",
|
|
94
|
+
"icon-menu-book": "s-icon-menu-book",
|
|
95
|
+
"icon-grid-view": "s-icon-grid-view",
|
|
96
|
+
"icon-dashboard": "s-icon-dashboard",
|
|
97
|
+
"icon-widgets": "s-icon-widgets",
|
|
98
|
+
"icon-title": "s-icon-title",
|
|
99
|
+
"icon-layers": "s-icon-layers",
|
|
100
|
+
"icon-touch-app": "s-icon-touch-app",
|
|
101
|
+
"icon-animation": "s-icon-animation",
|
|
102
|
+
"icon-map": "s-icon-map",
|
|
103
|
+
"icon-explore": "s-icon-explore",
|
|
104
|
+
"icon-flag": "s-icon-flag",
|
|
105
|
+
"icon-bolt": "s-icon-bolt",
|
|
106
|
+
"icon-keyboard": "s-icon-keyboard",
|
|
107
|
+
"icon-verified": "s-icon-verified",
|
|
108
|
+
"icon-account-balance": "s-icon-account-balance",
|
|
109
|
+
"icon-credit-card": "s-icon-credit-card",
|
|
110
|
+
"icon-payments": "s-icon-payments",
|
|
111
|
+
"icon-savings": "s-icon-savings",
|
|
112
|
+
"icon-swap-horiz": "s-icon-swap-horiz",
|
|
113
|
+
"icon-receipt-long": "s-icon-receipt-long",
|
|
114
|
+
"icon-account-balance-wallet": "s-icon-account-balance-wallet",
|
|
115
|
+
"icon-logout": "s-icon-logout",
|
|
116
|
+
"icon-shield": "s-icon-shield",
|
|
117
|
+
"icon-ac-unit": "s-icon-ac-unit",
|
|
118
|
+
"icon-bar-chart": "s-icon-bar-chart",
|
|
119
|
+
"icon-contactless": "s-icon-contactless",
|
|
120
|
+
"icon-shopping-cart": "s-icon-shopping-cart",
|
|
121
|
+
"icon-restaurant": "s-icon-restaurant",
|
|
122
|
+
"icon-directions-bus": "s-icon-directions-bus",
|
|
123
|
+
"icon-storefront": "s-icon-storefront",
|
|
124
|
+
"icon-work": "s-icon-work",
|
|
125
|
+
"icon-key": "s-icon-key",
|
|
126
|
+
"icon-public": "s-icon-public",
|
|
127
|
+
"icon-pause": "s-icon-pause",
|
|
128
|
+
"icon-play-arrow": "s-icon-play-arrow",
|
|
129
|
+
"icon-block": "s-icon-block",
|
|
130
|
+
"icon-history": "s-icon-history",
|
|
131
|
+
"icon-local-cafe": "s-icon-local-cafe",
|
|
132
|
+
"icon-bakery-dining": "s-icon-bakery-dining",
|
|
133
|
+
"icon-lunch-dining": "s-icon-lunch-dining",
|
|
134
|
+
"icon-icecream": "s-icon-icecream",
|
|
135
|
+
"icon-local-bar": "s-icon-local-bar",
|
|
136
|
+
"icon-redeem": "s-icon-redeem",
|
|
137
|
+
"icon-qr-code-2": "s-icon-qr-code-2",
|
|
138
|
+
"icon-takeout-dining": "s-icon-takeout-dining",
|
|
139
|
+
"icon-table-restaurant": "s-icon-table-restaurant",
|
|
140
|
+
"icon-eco": "s-icon-eco",
|
|
141
|
+
"icon-shopping-bag": "s-icon-shopping-bag",
|
|
142
|
+
"icon-loyalty": "s-icon-loyalty",
|
|
143
|
+
"icon-arrow-back": "s-icon-arrow-back",
|
|
144
|
+
"icon-article": "s-icon-article",
|
|
145
|
+
"icon-chat": "s-icon-chat",
|
|
146
|
+
"icon-sell": "s-icon-sell",
|
|
147
|
+
"icon-rss-feed": "s-icon-rss-feed",
|
|
148
|
+
"icon-inventory-2": "s-icon-inventory-2",
|
|
149
|
+
"icon-edit-note": "s-icon-edit-note"
|
|
150
|
+
}, u = n.Literals(/* @__PURE__ */ "menu.close.search.add.remove.check.edit.delete.more-horiz.settings.tune.filter-list.sort.refresh.download.upload.share.content-copy.link.open-in-new.info.warning.error.check-circle.help.home.person.group.mail.calendar-today.schedule.location-on.call.description.folder.image.attach-file.star.favorite.bookmark.lock.visibility.visibility-off.notifications.send.print.save.language.palette.code.menu-book.grid-view.dashboard.widgets.title.layers.touch-app.animation.map.explore.flag.bolt.keyboard.verified.account-balance.credit-card.payments.savings.swap-horiz.receipt-long.account-balance-wallet.logout.shield.ac-unit.bar-chart.contactless.shopping-cart.restaurant.directions-bus.storefront.work.key.public.pause.play-arrow.block.history.arrow-back.local-cafe.bakery-dining.lunch-dining.icecream.local-bar.redeem.qr-code-2.takeout-dining.table-restaurant.eco.shopping-bag.loyalty.article.chat.sell.rss-feed.inventory-2.edit-note".split(".")), d = (e, t, n, r = !1) => e.span.class(l.icon, l[`icon-${t}`], r && l.leads).attr("role", n === void 0 ? void 0 : "img").attr("aria-label", n).attr("aria-hidden", n === void 0 ? "true" : void 0), f = (e, t) => t === void 0 ? [] : [d(e, t, void 0, !0), " "], p = (e) => ({ icon: (t, n) => a(d(e, t, n, n === void 0)) }), m = {
|
|
151
|
+
button: "s-button",
|
|
152
|
+
"kind-secondary": "s-kind-secondary"
|
|
153
|
+
}, h = (e) => e === "secondary" ? `${m.button} ${m["kind-secondary"]}` : m.button, g = (e) => ({ button: (t, n) => {
|
|
154
|
+
let r = e.button.class(m.button, t.kind === "secondary" && m["kind-secondary"]).attr("type", t.type ?? "button").disabled(t.disabled === !0);
|
|
155
|
+
return a((t.onClick === void 0 ? r : r.on("click", t.onClick)).children(f(e, t.icon), n));
|
|
156
|
+
} }), _ = {
|
|
157
|
+
field: "s-field",
|
|
158
|
+
must: "s-must",
|
|
159
|
+
count: "s-count",
|
|
160
|
+
full: "s-full",
|
|
161
|
+
hint: "s-hint",
|
|
162
|
+
box: "s-box",
|
|
163
|
+
affix: "s-affix",
|
|
164
|
+
act: "s-act",
|
|
165
|
+
select: "s-select"
|
|
166
|
+
}, v = (e, t) => {
|
|
167
|
+
let n = e.id(`s-field-${t.name}`), r = t.error === void 0 || t.error === null || t.error === "" ? void 0 : t.error, i = [t.hint === void 0 ? [] : [`${n}-hint`], r === void 0 ? [] : [`${n}-error`]].flat().join(" "), a = t.value?.length ?? 0;
|
|
168
|
+
return {
|
|
169
|
+
id: n,
|
|
170
|
+
invalid: r === void 0 ? void 0 : "true",
|
|
171
|
+
described: i === "" ? void 0 : i,
|
|
172
|
+
required: t.required === !0 ? "true" : void 0,
|
|
173
|
+
head: [e.label.attr("for", n).children(t.label, t.required === !0 && e.span.class(_.must).attr("aria-hidden", "true").children(" *")), t.maxLength !== void 0 && e.span.class(_.count, a >= t.maxLength && _.full).attr("aria-hidden", "true").children(`${a} / ${t.maxLength}`)],
|
|
174
|
+
foot: [t.hint !== void 0 && e.p.class(_.hint).attr("id", `${n}-hint`).children(t.hint), r !== void 0 && e.p.attr("id", `${n}-error`).attr("role", "alert").children(r)]
|
|
175
|
+
};
|
|
176
|
+
}, ee = (e) => {
|
|
177
|
+
let t = (t, n, r) => n !== void 0 && e.label.class(_.affix).attr("for", t).children(r ? d(e, n) : n), n = (t, n) => t !== void 0 && e.button.class(_.act).attr("type", "button").attr("aria-label", t.label).disabled(n === !0).on("click", t.onPress).children(d(e, t.icon));
|
|
178
|
+
return {
|
|
179
|
+
field: (r) => {
|
|
180
|
+
let { described: i, foot: o, head: s, id: c, invalid: l, required: u } = v(e, r), d = e.input.attr("id", c).attr("name", r.name).attr("type", r.type ?? "text").attr("placeholder", r.placeholder).attr("inputmode", r.inputMode).attr("autocomplete", r.autoComplete).attr("autofocus", r.autoFocus === !0 ? "" : void 0).attr("maxlength", r.maxLength === void 0 ? void 0 : String(r.maxLength)).attr("min", r.min === void 0 ? void 0 : String(r.min)).attr("max", r.max === void 0 ? void 0 : String(r.max)).attr("step", r.step === void 0 ? void 0 : String(r.step)).attr("readonly", r.readOnly === !0 ? "" : void 0).attr("aria-required", u).attr("aria-invalid", l).attr("aria-describedby", i).attr("list", r.suggestions === void 0 ? void 0 : `${c}-list`).disabled(r.disabled === !0).value(r.value).on("input", ({ value: e }) => r.onInput(e));
|
|
181
|
+
return a(e.div.class(_.field).children(s, e.div.class(_.box).children(t(c, r.icon, !0), t(c, r.prefix, !1), r.onBlur === void 0 ? d : d.on("blur", r.onBlur), t(c, r.suffix, !1), n(r.action, r.disabled)), r.suggestions !== void 0 && e.datalist.attr("id", `${c}-list`).children(r.suggestions.map((t) => e.option.attr("value", t))), o));
|
|
182
|
+
},
|
|
183
|
+
textarea: (t) => {
|
|
184
|
+
let { described: n, foot: r, head: i, id: o, invalid: s, required: c } = v(e, t), l = e.textarea.attr("id", o).attr("name", t.name).attr("rows", String(t.rows ?? 3)).attr("placeholder", t.placeholder).attr("maxlength", t.maxLength === void 0 ? void 0 : String(t.maxLength)).attr("readonly", t.readOnly === !0 ? "" : void 0).attr("aria-required", c).attr("aria-invalid", s).attr("aria-describedby", n).disabled(t.disabled === !0).value(t.value).on("input", ({ value: e }) => t.onInput(e));
|
|
185
|
+
return a(e.div.class(_.field).children(i, e.div.class(_.box).children(t.onBlur === void 0 ? l : l.on("blur", t.onBlur)), r));
|
|
186
|
+
},
|
|
187
|
+
select: (n) => {
|
|
188
|
+
let { described: r, foot: i, head: o, id: s, invalid: c, required: l } = v(e, n), u = n.options.some((e) => e.value === n.value);
|
|
189
|
+
return a(e.div.class(_.field).children(o, e.div.class(_.box, _.select).children(t(s, n.icon, !0), e.select.attr("id", s).attr("name", n.name).attr("aria-required", l).attr("aria-invalid", c).attr("aria-describedby", r).disabled(n.disabled === !0).on("change", ({ value: e }) => n.onChange(e)).children(n.placeholder !== void 0 && e.option.attr("value", "").attr("hidden", "").selected(!u).disabled(!0).children(n.placeholder), n.options.map((t) => e.option.attr("value", t.value).selected(t.value === n.value).disabled(t.disabled === !0).children(t.label)))), i));
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
}, y = (e, t) => e === void 0 ? void 0 : t(e), b = (e) => r[`tone-${e}`], x = (e) => r[`accent-${e}`], S = r.selectable, C = (e) => r[`gap-${e}`], w = (e) => r[`pad-${e}`], T = (e) => r[`align-${e}`], E = {
|
|
193
|
+
section: "s-section",
|
|
194
|
+
"span-1": "s-span-1",
|
|
195
|
+
"span-2": "s-span-2",
|
|
196
|
+
"span-3": "s-span-3",
|
|
197
|
+
"span-4": "s-span-4",
|
|
198
|
+
"span-5": "s-span-5",
|
|
199
|
+
"span-6": "s-span-6",
|
|
200
|
+
"span-7": "s-span-7",
|
|
201
|
+
"span-8": "s-span-8",
|
|
202
|
+
"span-9": "s-span-9",
|
|
203
|
+
"span-10": "s-span-10",
|
|
204
|
+
"span-11": "s-span-11",
|
|
205
|
+
"span-12": "s-span-12",
|
|
206
|
+
"start-1": "s-start-1",
|
|
207
|
+
"start-2": "s-start-2",
|
|
208
|
+
"start-3": "s-start-3",
|
|
209
|
+
"start-4": "s-start-4",
|
|
210
|
+
"start-5": "s-start-5",
|
|
211
|
+
"start-6": "s-start-6",
|
|
212
|
+
"start-7": "s-start-7",
|
|
213
|
+
"start-8": "s-start-8",
|
|
214
|
+
"start-9": "s-start-9",
|
|
215
|
+
"start-10": "s-start-10",
|
|
216
|
+
"start-11": "s-start-11",
|
|
217
|
+
"start-12": "s-start-12",
|
|
218
|
+
grid: "s-grid",
|
|
219
|
+
col: "s-col",
|
|
220
|
+
stack: "s-stack",
|
|
221
|
+
row: "s-row",
|
|
222
|
+
placed: "s-placed",
|
|
223
|
+
rule: "s-rule",
|
|
224
|
+
"weight-bold": "s-weight-bold",
|
|
225
|
+
"rule-accent": "s-rule-accent",
|
|
226
|
+
fill: "s-fill",
|
|
227
|
+
sticky: "s-sticky",
|
|
228
|
+
"only-wide": "s-only-wide",
|
|
229
|
+
"only-narrow": "s-only-narrow"
|
|
230
|
+
}, te = (e) => ({ form: (t, ...n) => a(e.form.class(E.stack, y(t.gap, C)).attr("novalidate", "").on("submit", t.onSubmit).children(s(n))) }), D = {
|
|
231
|
+
image: "s-image",
|
|
232
|
+
"ratio-1x1": "s-ratio-1x1",
|
|
233
|
+
"ratio-4x3": "s-ratio-4x3",
|
|
234
|
+
"ratio-3x2": "s-ratio-3x2",
|
|
235
|
+
"ratio-16x9": "s-ratio-16x9",
|
|
236
|
+
"ratio-3x4": "s-ratio-3x4",
|
|
237
|
+
"ratio-2x3": "s-ratio-2x3",
|
|
238
|
+
figure: "s-figure"
|
|
239
|
+
}, ne = {
|
|
240
|
+
"1/1": "1x1",
|
|
241
|
+
"4/3": "4x3",
|
|
242
|
+
"3/2": "3x2",
|
|
243
|
+
"16/9": "16x9",
|
|
244
|
+
"3/4": "3x4",
|
|
245
|
+
"2/3": "2x3"
|
|
246
|
+
}, O = (e) => ({ image: (t) => {
|
|
247
|
+
let n = e.img.class(D.image, y(t.ratio, (e) => D[`ratio-${ne[e]}`])).attr("src", t.src).attr("alt", t.alt).attr("loading", "lazy");
|
|
248
|
+
return a(t.caption === void 0 ? n : e.figure.class(D.figure).children(n, e.figcaption.children(t.caption)));
|
|
249
|
+
} }), k = (e) => ({
|
|
250
|
+
section: (t, ...n) => a(e[t.as ?? "section"].class(E.section, y(t.accent, x), y(t.tone, b), y(t.pad, w), y(t.gap, C), t.select === !0 && S).attr("aria-label", t.label).children(s(n))),
|
|
251
|
+
grid: (t, ...n) => a(e.div.class(E.grid, y(t.gap, C), y(t.align, T)).children(s(n))),
|
|
252
|
+
col: (t, ...n) => a(e.div.class(E.col, E[`span-${t.span}`], y(t.start, (e) => `${E.placed} ${E[`start-${e}`]}`), y(t.only, (e) => E[`only-${e}`]), t.sticky === !0 && E.sticky, t.fill === !0 && E.fill, y(t.gap, C), y(t.align, T)).children(s(n))),
|
|
253
|
+
stack: (t, ...n) => a(e[t.as ?? "div"].class(E.stack, t.select === !0 && S, y(t.gap, C), y(t.only, (e) => E[`only-${e}`])).attr("aria-label", t.label).children(s(n))),
|
|
254
|
+
row: (t, ...n) => a(e.div.class(E.row, y(t.gap, C), y(t.align, T)).children(s(n))),
|
|
255
|
+
rule: (t = {}) => a(e.hr.class(E.rule, t.weight === "bold" && E["weight-bold"], t.accent === !0 && E["rule-accent"]))
|
|
256
|
+
}), A = {
|
|
257
|
+
list: "s-list",
|
|
258
|
+
"marker-number": "s-marker-number",
|
|
259
|
+
"marker-none": "s-marker-none",
|
|
260
|
+
ruled: "s-ruled",
|
|
261
|
+
facts: "s-facts",
|
|
262
|
+
beside: "s-beside"
|
|
263
|
+
}, j = (e) => ({
|
|
264
|
+
list: (t, ...n) => a(e[t.marker === "number" ? "ol" : "ul"].class(A.list, t.marker === "number" && A["marker-number"], t.marker === "none" && A["marker-none"], t.ruled === !0 && A.ruled).children(s(n).flatMap((t) => t === !1 || t == null ? [] : [e.li.children(t)]))),
|
|
265
|
+
facts: (t, ...n) => a(e.dl.class(A.facts, t.beside === !0 && A.beside).children(n.flatMap((t) => t === !1 || t == null ? [] : [e.div.children(e.dt.children(t.name), e.dd.children(s([t.value])))])))
|
|
266
|
+
}), M = {
|
|
267
|
+
page: "s-page",
|
|
268
|
+
"scheme-dark": "s-scheme-dark",
|
|
269
|
+
"scheme-light": "s-scheme-light",
|
|
270
|
+
leave: "s-leave",
|
|
271
|
+
enter: "s-enter"
|
|
272
|
+
}, re = (e) => ({ page: (t, ...n) => a(e.div.class(M.page, y(t.accent, x), t.scheme === "light" && M["scheme-light"], t.scheme === "dark" && M["scheme-dark"]).children(s(n))) }), N = {
|
|
273
|
+
table: "s-table",
|
|
274
|
+
numeric: "s-numeric"
|
|
275
|
+
}, ie = (e) => ({ table: (t) => {
|
|
276
|
+
let n = (e) => t.columns[e]?.numeric === !0 && N.numeric;
|
|
277
|
+
return a(e.table.class(N.table).children(e.thead.children(e.tr.children(t.columns.map((t, r) => e.th.attr("scope", "col").class(n(r)).children(t.title)))), e.tbody.children(t.rows.map((t) => e.tr.children(t.map((t, r) => e.td.class(n(r)).children(t)))))));
|
|
278
|
+
} }), P = {
|
|
279
|
+
text: "s-text",
|
|
280
|
+
"role-display": "s-role-display",
|
|
281
|
+
"role-title": "s-role-title",
|
|
282
|
+
"role-heading": "s-role-heading",
|
|
283
|
+
"role-lead": "s-role-lead",
|
|
284
|
+
"role-body": "s-role-body",
|
|
285
|
+
"role-caption": "s-role-caption",
|
|
286
|
+
"role-label": "s-role-label",
|
|
287
|
+
"em-strong": "s-em-strong",
|
|
288
|
+
"em-muted": "s-em-muted",
|
|
289
|
+
"em-accent": "s-em-accent",
|
|
290
|
+
code: "s-code",
|
|
291
|
+
listing: "s-listing",
|
|
292
|
+
quote: "s-quote",
|
|
293
|
+
link: "s-link"
|
|
294
|
+
}, ae = {
|
|
295
|
+
display: "h1",
|
|
296
|
+
title: "h2",
|
|
297
|
+
heading: "h3",
|
|
298
|
+
lead: "p",
|
|
299
|
+
body: "p",
|
|
300
|
+
caption: "p",
|
|
301
|
+
label: "p"
|
|
302
|
+
}, oe = (e) => ({
|
|
303
|
+
text: (t, ...n) => a(e[ae[t]].class(P.text, P[`role-${t}`]).children(s(n))),
|
|
304
|
+
em: (t, ...n) => a(e[t === "strong" ? "strong" : "span"].class(P[`em-${t}`]).children(s(n))),
|
|
305
|
+
code: (t) => a(e.code.class(P.code).children(t)),
|
|
306
|
+
listing: (t, n) => a(e.pre.class(P.listing, t.select === !0 && S).attr("aria-label", t.label).attr("tabindex", "0").children(e.code.children(n))),
|
|
307
|
+
quote: (t, ...n) => a(e.figure.class(P.quote).children(e.blockquote.children(e.p.children(s(n))), (t.by !== void 0 || t.from !== void 0) && e.figcaption.children(t.by, t.by !== void 0 && t.from !== void 0 && ", ", t.from !== void 0 && e.cite.children(t.from)))),
|
|
308
|
+
link: (t, ...n) => a(e.a.class(P.link).attr("href", t.href).attr("target", t.external === !0 ? "_blank" : void 0).attr("rel", t.external === !0 ? "external noopener noreferrer" : void 0).attr("aria-current", t.current === !0 ? "page" : void 0).children(s(n), t.external === !0 && ["\xA0", d(e, "open-in-new")])),
|
|
309
|
+
br: a(e.br)
|
|
310
|
+
}), F = n.Literals([
|
|
311
|
+
1,
|
|
312
|
+
2,
|
|
313
|
+
3,
|
|
314
|
+
4,
|
|
315
|
+
5,
|
|
316
|
+
6,
|
|
317
|
+
7,
|
|
318
|
+
8,
|
|
319
|
+
9,
|
|
320
|
+
10,
|
|
321
|
+
11,
|
|
322
|
+
12
|
|
323
|
+
]), I = n.Literals([
|
|
324
|
+
0,
|
|
325
|
+
1,
|
|
326
|
+
2,
|
|
327
|
+
3,
|
|
328
|
+
4,
|
|
329
|
+
6,
|
|
330
|
+
8,
|
|
331
|
+
12,
|
|
332
|
+
16,
|
|
333
|
+
24
|
|
334
|
+
]), L = n.Literals([
|
|
335
|
+
"red",
|
|
336
|
+
"orange",
|
|
337
|
+
"yellow",
|
|
338
|
+
"green",
|
|
339
|
+
"teal",
|
|
340
|
+
"blue",
|
|
341
|
+
"purple",
|
|
342
|
+
"grey"
|
|
343
|
+
]), R = n.Literals([
|
|
344
|
+
"auto",
|
|
345
|
+
"light",
|
|
346
|
+
"dark"
|
|
347
|
+
]), z = n.Literals([
|
|
348
|
+
"paper",
|
|
349
|
+
"ink",
|
|
350
|
+
"accent"
|
|
351
|
+
]), B = n.Literals([
|
|
352
|
+
"display",
|
|
353
|
+
"title",
|
|
354
|
+
"heading",
|
|
355
|
+
"lead",
|
|
356
|
+
"body",
|
|
357
|
+
"caption",
|
|
358
|
+
"label"
|
|
359
|
+
]), V = n.Literals([
|
|
360
|
+
"strong",
|
|
361
|
+
"muted",
|
|
362
|
+
"accent"
|
|
363
|
+
]), H = n.Literals([
|
|
364
|
+
"start",
|
|
365
|
+
"end",
|
|
366
|
+
"baseline",
|
|
367
|
+
"stretch"
|
|
368
|
+
]), U = n.Literals([
|
|
369
|
+
"1/1",
|
|
370
|
+
"4/3",
|
|
371
|
+
"3/2",
|
|
372
|
+
"16/9",
|
|
373
|
+
"3/4",
|
|
374
|
+
"2/3"
|
|
375
|
+
]), W = n.Literals([
|
|
376
|
+
"forward",
|
|
377
|
+
"back",
|
|
378
|
+
"down",
|
|
379
|
+
"up"
|
|
380
|
+
]), G = (e) => e.split("/").filter((e) => e !== ""), K = (e) => e > 0 ? 1 : e < 0 ? -1 : 0, se = new Intl.Collator("en", { numeric: !0 }), q = (e, t) => K(typeof e == "number" && typeof t == "number" ? t - e : se.compare(String(t), String(e))), J = (e, t, n) => {
|
|
381
|
+
let r = Object.keys(e.routes).map((t, n) => ({
|
|
382
|
+
tag: t,
|
|
383
|
+
order: n,
|
|
384
|
+
path: G(e.routes[t].path)
|
|
385
|
+
})), i = r.find((e) => e.tag === t._tag), a = r.find((e) => e.tag === n._tag);
|
|
386
|
+
if (i === void 0 || a === void 0) return [];
|
|
387
|
+
let o = (t, n) => e.routes[t]?.params[n.slice(1)]?.literals, s = (e, t) => e.params?.[t === "*" ? "*" : t.slice(1)], c = (e) => e !== void 0 && (e.startsWith(":") || e === "*"), l = (e, t, n) => {
|
|
388
|
+
let i = /* @__PURE__ */ new Map(), a = 0;
|
|
389
|
+
for (let n of r) {
|
|
390
|
+
if (!n.path.slice(0, e).every((e, n) => e === t.path[n]) || n.path.length < e) continue;
|
|
391
|
+
let r = n.path[e] ?? "";
|
|
392
|
+
i.has(r) || (i.set(r, a), a += c(r) ? o(n.tag, r)?.length ?? 1 : 1);
|
|
393
|
+
}
|
|
394
|
+
let l = t.path[e] ?? "", u = c(l) ? o(t.tag, l) : void 0;
|
|
395
|
+
return (i.get(l) ?? 0) + (u === void 0 ? 0 : Math.max(0, u.indexOf(s(n, l))));
|
|
396
|
+
}, u = (e) => e.filter((t, n) => n >= 2 && !(n > 2 && c(t) && c(e[n - 1]))).length, d = (e) => {
|
|
397
|
+
let r = K(l(e, a, n) - l(e, i, t)), u = i.path[e];
|
|
398
|
+
return r !== 0 || !c(u) || u !== a.path[e] || !f(e) || o(i.tag, u) !== void 0 ? r : q(s(t, u), s(n, u));
|
|
399
|
+
}, f = (e) => i.path.length >= e && a.path.length >= e && i.path.slice(0, e).every((e, t) => e === a.path[t]), p = d(0) || K(u(a.path) - u(i.path)), m = () => {
|
|
400
|
+
let e = d(1);
|
|
401
|
+
if (e !== 0 || !f(2)) return e;
|
|
402
|
+
for (let e = 2; e < Math.min(i.path.length, a.path.length); e++) {
|
|
403
|
+
let t = d(e);
|
|
404
|
+
if (t !== 0 || !f(e + 1)) return t;
|
|
405
|
+
}
|
|
406
|
+
return 0;
|
|
407
|
+
}, h = p > 0 ? ["forward"] : p < 0 ? ["back"] : [], g = m();
|
|
408
|
+
return [...h, ...g > 0 ? ["down"] : g < 0 ? ["up"] : []];
|
|
409
|
+
}, Y = (e, t) => {
|
|
410
|
+
let n = [], r = (e, t) => {
|
|
411
|
+
let i = typeof e == "object" && "at" in e ? e.at : e;
|
|
412
|
+
n.push(typeof i == "string" ? {
|
|
413
|
+
tag: i,
|
|
414
|
+
params: void 0,
|
|
415
|
+
at: t
|
|
416
|
+
} : {
|
|
417
|
+
tag: i._tag,
|
|
418
|
+
params: i.params ?? {},
|
|
419
|
+
at: t
|
|
420
|
+
}), typeof e == "object" && "under" in e && e.under.forEach((e, n) => r(e, [...t, n]));
|
|
421
|
+
};
|
|
422
|
+
t.forEach((e, t) => e.forEach((e, n) => r(e, [t, n])));
|
|
423
|
+
let i = Object.keys(e.routes).filter((t) => t !== e.catchAll && !n.some((e) => e.tag === t));
|
|
424
|
+
if (i.length > 0) throw Error(`Standard.canvas: no place for ${i.join(", ")}`);
|
|
425
|
+
let a = (e, t) => Object.keys(e).every((n) => e[n] === t.params?.[n]), o = (e) => n.find((t) => t.tag === e._tag && t.params !== void 0 && a(t.params, e)) ?? n.find((t) => t.tag === e._tag && t.params === void 0), s = (t, n) => {
|
|
426
|
+
for (let r of G(e.routes[t._tag]?.path ?? "/")) {
|
|
427
|
+
let i = r === "*" ? "*" : r.startsWith(":") ? r.slice(1) : void 0;
|
|
428
|
+
if (i === void 0) continue;
|
|
429
|
+
let a = e.routes[t._tag]?.params[i]?.literals, o = a === void 0 ? q(t.params?.[i], n.params?.[i]) : K(a.indexOf(n.params?.[i]) - a.indexOf(t.params?.[i]));
|
|
430
|
+
if (o !== 0) return o;
|
|
431
|
+
}
|
|
432
|
+
return 0;
|
|
433
|
+
};
|
|
434
|
+
return { travel: (e, t) => {
|
|
435
|
+
let n = o(e), r = o(t);
|
|
436
|
+
if (n === void 0 || r === void 0) return [];
|
|
437
|
+
let i = K(r.at[0] - n.at[0]) || K(r.at.length - n.at.length), a = (() => {
|
|
438
|
+
let a = K(r.at[1] - n.at[1]);
|
|
439
|
+
if (a !== 0 || i !== 0 && r.at[0] !== n.at[0]) return a;
|
|
440
|
+
for (let e = 2; e < Math.min(n.at.length, r.at.length); e++) {
|
|
441
|
+
let t = K(r.at[e] - n.at[e]);
|
|
442
|
+
if (t !== 0) return t;
|
|
443
|
+
}
|
|
444
|
+
return n === r ? s(e, t) : 0;
|
|
445
|
+
})();
|
|
446
|
+
return [...i > 0 ? ["forward"] : i < 0 ? ["back"] : [], ...a > 0 ? ["down"] : a < 0 ? ["up"] : []];
|
|
447
|
+
} };
|
|
448
|
+
}, X = n.Literals(["wide", "narrow"]), Z = n.Literals([
|
|
449
|
+
"section",
|
|
450
|
+
"header",
|
|
451
|
+
"main",
|
|
452
|
+
"footer",
|
|
453
|
+
"nav",
|
|
454
|
+
"article",
|
|
455
|
+
"aside"
|
|
456
|
+
]), ce = /* @__PURE__ */ e({
|
|
457
|
+
Align: () => H,
|
|
458
|
+
Colour: () => L,
|
|
459
|
+
Emphasis: () => V,
|
|
460
|
+
Icon: () => u,
|
|
461
|
+
Landmark: () => Z,
|
|
462
|
+
Only: () => X,
|
|
463
|
+
Ratio: () => U,
|
|
464
|
+
Role: () => B,
|
|
465
|
+
Scheme: () => R,
|
|
466
|
+
Space: () => I,
|
|
467
|
+
Span: () => F,
|
|
468
|
+
Tone: () => z,
|
|
469
|
+
Travel: () => W,
|
|
470
|
+
builders: () => Q,
|
|
471
|
+
canvas: () => Y,
|
|
472
|
+
component: () => $,
|
|
473
|
+
travel: () => J
|
|
474
|
+
}), Q = (e) => ({
|
|
475
|
+
props: e.props,
|
|
476
|
+
...re(e),
|
|
477
|
+
...k(e),
|
|
478
|
+
...oe(e),
|
|
479
|
+
...p(e),
|
|
480
|
+
...j(e),
|
|
481
|
+
...O(e),
|
|
482
|
+
...ie(e),
|
|
483
|
+
...g(e),
|
|
484
|
+
...ee(e),
|
|
485
|
+
...te(e),
|
|
486
|
+
child: (t) => a(t(e))
|
|
487
|
+
}), $ = (e, t) => c(e, (e, n) => t(Q(e), n));
|
|
488
|
+
export { a as A, h as C, c as D, f as E, o as O, g as S, d as T, J as _, L as a, w as b, X as c, R as d, I as f, Y as g, W as h, H as i, s as k, U as l, z as m, Q as n, V as o, F as p, $ as r, Z as s, ce as t, B as u, x as v, u as w, b as x, C as y };
|