@nmnmcc/standard 0.4.0 → 0.5.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.
Files changed (47) hide show
  1. package/README.md +45 -68
  2. package/dist/Extend.js +1 -1
  3. package/dist/{Standard-BPpzr5SM.js → Standard-BC6CfFOv.js} +116 -159
  4. package/dist/Standard.js +1 -1
  5. package/dist/Ui-DSgtM8Tf.js +591 -0
  6. package/dist/Ui.d.ts +4 -4
  7. package/dist/Ui.js +1 -1
  8. package/dist/index.js +2 -2
  9. package/dist/standard/page/page.d.ts +4 -6
  10. package/dist/standard/page/page.d.ts.map +1 -1
  11. package/dist/standard/tokens/tokens.d.ts +20 -103
  12. package/dist/standard/tokens/tokens.d.ts.map +1 -1
  13. package/dist/standard.css +1 -1
  14. package/dist/ui/flap/flap.d.ts +10 -10
  15. package/dist/ui/flap/flap.d.ts.map +1 -1
  16. package/dist/ui/modal/modal.d.ts +4 -1
  17. package/dist/ui/modal/modal.d.ts.map +1 -1
  18. package/dist/ui/navigator/navigator.d.ts +58 -59
  19. package/dist/ui/navigator/navigator.d.ts.map +1 -1
  20. package/dist/ui/notice/notice.d.ts +6 -1
  21. package/dist/ui/notice/notice.d.ts.map +1 -1
  22. package/dist/ui/sheet/sheet.d.ts +9 -9
  23. package/dist/ui/toasts/toasts.d.ts +8 -7
  24. package/dist/ui/toasts/toasts.d.ts.map +1 -1
  25. package/package.json +1 -1
  26. package/src/standard/page/page.module.css +85 -47
  27. package/src/standard/page/page.module.d.css.ts +4 -2
  28. package/src/standard/page/page.ts +83 -1
  29. package/src/standard/tokens/tokens.ts +20 -268
  30. package/src/ui/dialog/dialog.module.css +24 -11
  31. package/src/ui/flap/flap.module.css +108 -52
  32. package/src/ui/flap/flap.module.d.css.ts +6 -1
  33. package/src/ui/flap/flap.ts +140 -13
  34. package/src/ui/modal/modal.module.css +73 -22
  35. package/src/ui/modal/modal.module.d.css.ts +1 -0
  36. package/src/ui/modal/modal.ts +21 -15
  37. package/src/ui/navigator/navigator.module.css +334 -176
  38. package/src/ui/navigator/navigator.module.d.css.ts +2 -10
  39. package/src/ui/navigator/navigator.ts +111 -106
  40. package/src/ui/notice/notice.ts +7 -2
  41. package/src/ui/popover/popover.ts +3 -3
  42. package/src/ui/sheet/sheet.module.css +51 -58
  43. package/src/ui/sheet/sheet.ts +9 -9
  44. package/src/ui/toasts/toasts.module.css +70 -11
  45. package/src/ui/toasts/toasts.module.d.css.ts +1 -0
  46. package/src/ui/toasts/toasts.ts +148 -4
  47. package/dist/Ui-B9xQqqNT.js +0 -468
@@ -0,0 +1,591 @@
1
+ import { t as e } from "./rolldown-runtime-BMBA7GOT.js";
2
+ import { D as t, E as n, O as r, S as i, T as a, _ as o, b as s, k as c, n as l, v as u, w as d, x as f } from "./Standard-BC6CfFOv.js";
3
+ import { Effect as p, Queue as m, Schema as h, Stream as g } from "effect";
4
+ import { Component as _, Mount as v } from "effect/ui";
5
+ var y = {
6
+ arrow: "s-ui-arrow",
7
+ "dir-up": "s-ui-dir-up",
8
+ "dir-up-right": "s-ui-dir-up-right",
9
+ "dir-right": "s-ui-dir-right",
10
+ "dir-down-right": "s-ui-dir-down-right",
11
+ "dir-down": "s-ui-dir-down",
12
+ "dir-down-left": "s-ui-dir-down-left",
13
+ "dir-left": "s-ui-dir-left",
14
+ "dir-up-left": "s-ui-dir-up-left"
15
+ }, b = h.Literals([
16
+ "up",
17
+ "up-right",
18
+ "right",
19
+ "down-right",
20
+ "down",
21
+ "down-left",
22
+ "left",
23
+ "up-left"
24
+ ]), x = (e, t, n) => e.span.class(y.arrow, y[`dir-${t}`]).attr("role", n === void 0 ? void 0 : "img").attr("aria-label", n).attr("aria-hidden", n === void 0 ? "true" : void 0), ee = (e) => ({ arrow: (t, n) => c(x(e, t, n)) }), te = { avatar: "s-ui-avatar" }, ne = (e) => ({ avatar: (t) => c(e.span.class(te.avatar).attr("role", "img").attr("aria-label", t.name).children(t.src === void 0 ? t.name.split(/\s+/).slice(0, 2).map((e) => e.slice(0, 1)).join("") : e.img.attr("src", t.src).attr("alt", ""))) }), S = {
25
+ control: "s-ui-control",
26
+ native: "s-ui-native",
27
+ legend: "s-ui-legend",
28
+ field: "s-ui-field",
29
+ lined: "s-ui-lined",
30
+ actions: "s-ui-actions",
31
+ action: "s-ui-action",
32
+ "action-primary": "s-ui-action-primary"
33
+ }, C = {
34
+ board: "s-ui-board",
35
+ numeric: "s-ui-numeric",
36
+ "board-row": "s-ui-board-row",
37
+ "board-dense": "s-ui-board-dense",
38
+ "board-wide": "s-ui-board-wide",
39
+ "board-narrow": "s-ui-board-narrow"
40
+ }, re = (e) => ({ board: (t) => {
41
+ let n = (e) => [
42
+ t.columns[e]?.numeric === !0 && C.numeric,
43
+ t.columns[e]?.only === "wide" && C["board-wide"],
44
+ t.columns[e]?.only === "narrow" && C["board-narrow"]
45
+ ];
46
+ return c(e.div.class(C.board, t.dense === !0 && C["board-dense"], t.tone !== void 0 && s(t.tone)).children(e.table.attr("aria-label", t.label).children(e.thead.children(e.tr.children(t.columns.map((t, r) => e.th.attr("scope", "col").class(S.legend, ...n(r)).children(t.title)))), e.tbody.children(t.rows.map(({ cells: t, onSelect: i }) => {
47
+ let a = e.tr.children(t.map((t, a) => e.td.class(...n(a)).children(i !== void 0 && a === 0 ? e.button.attr("type", "button").children(r([t])) : r([t]))));
48
+ return i === void 0 ? a : a.class(S.control, C["board-row"]).on("click", i);
49
+ })))));
50
+ } }), ie = { bullet: "s-ui-bullet" }, w = (e) => e === void 0 ? void 0 : `${o(e)} ${S.lined}`, T = (e, t, n) => {
51
+ let r = e.id(`s-ui-${n.name}`);
52
+ return e.div.class(t.group).attr("role", "radiogroup").children(n.items.map((i) => e.label.class(S.control, t.item).children(e.input.class(S.native).attr("type", "radio").attr("name", r).attr("value", i.value).checked(i.value === n.value).disabled(i.disabled === !0).on("change", () => n.onChange(i.value)), e.span.children(a(e, i.icon), i.label))));
53
+ }, E = (e, t, n) => e.div.class(S.actions, t).children(n.map((t) => {
54
+ let n = e.button.class(S.control, S.action, t.primary === !0 && S["action-primary"]).attr("type", t.onPress === void 0 ? "submit" : "button").disabled(t.disabled === !0);
55
+ return (t.onPress === void 0 ? n : n.on("click", t.onPress)).children(a(e, t.icon), t.label);
56
+ })), ae = (e) => ({ bullet: (t, n) => c(e.span.class(ie.bullet, w(t.colour)).children(n)) }), D = {
57
+ card: "s-ui-card",
58
+ "card-actions": "s-ui-card-actions"
59
+ }, oe = (e) => ({ card: (t, ...n) => c(e.div.class(D.card, t.tone === void 0 ? void 0 : s(t.tone), t.gap === void 0 ? void 0 : u(t.gap), w(t.colour)).children(r(n), (t.actions ?? []).length > 0 && E(e, D["card-actions"], t.actions ?? []))) }), se = { carousel: "s-ui-carousel" }, ce = (e) => ({ carousel: (t, ...n) => c(e.ul.class(se.carousel).attr("aria-label", t.label).attr("tabindex", "0").children(r(n).flatMap((t) => t === !1 || t == null ? [] : [e.li.children(t)]))) }), O = {
60
+ check: "s-ui-check",
61
+ box: "s-ui-box",
62
+ "check-field": "s-ui-check-field",
63
+ "check-error": "s-ui-check-error"
64
+ }, le = (e) => ({ check: (t) => {
65
+ let n = t.error === void 0 || t.error === null || t.error === "" ? void 0 : t.error, r = e.id(`s-ui-check-${t.name}-error`), i = e.label.class(S.control, O.check).children(e.input.class(S.native).attr("type", "checkbox").attr("name", t.name).attr("aria-invalid", n === void 0 ? void 0 : "true").attr("aria-describedby", n === void 0 ? void 0 : r).checked(t.checked).disabled(t.disabled === !0).on("change", t.onChange(!t.checked)), e.span.class(O.box).attr("aria-hidden", "true"), e.span.children(t.label));
66
+ return c(n === void 0 ? i : e.div.class(O["check-field"]).children(i, e.p.class(O["check-error"]).attr("id", r).attr("role", "alert").children(n)));
67
+ } }), ue = {
68
+ choice: "s-ui-choice",
69
+ segment: "s-ui-segment"
70
+ }, de = (e) => ({ choice: (t) => {
71
+ let n = e.id(`s-ui-${t.name}-label`);
72
+ return c(e.div.class(S.field).children(e.p.class(S.legend).attr("id", n).children(t.label), T(e, {
73
+ group: ue.choice,
74
+ item: ue.segment
75
+ }, t).attr("aria-labelledby", n)));
76
+ } }), k = {
77
+ "modal-frame": "s-ui-modal-frame",
78
+ modal: "s-ui-modal",
79
+ "modal-head": "s-ui-modal-head",
80
+ "modal-body": "s-ui-modal-body",
81
+ "modal-title": "s-ui-modal-title"
82
+ }, A = (e, n, i, a, o, s) => {
83
+ let c = e.id(`s-ui-${n}-title`);
84
+ return e.dialog.class(k["modal-frame"]).attr("role", a.alert === !0 ? "alertdialog" : void 0).attr("aria-labelledby", c).attr("closedby", a.alert === !0 ? "closerequest" : "any").modal(a.open).on("cancel", a.close.onPress).children(e.div.class(k.modal, ...i).children(e.div.class(k["modal-head"]).children(e.h2.class(k["modal-title"]).attr("id", c).children(a.title), t(f(e).button({
85
+ kind: "secondary",
86
+ icon: "close",
87
+ onClick: a.close.onPress
88
+ }, a.close.label))), e.div.class(k["modal-body"]).children(r(o)), s));
89
+ }, j = {
90
+ dialog: "s-ui-dialog",
91
+ "dialog-actions": "s-ui-dialog-actions"
92
+ }, fe = (e) => ({ dialog: (t, ...n) => {
93
+ let r = t.actions ?? [];
94
+ return c(A(e, "dialog", [j.dialog], t, n, r.length > 0 && E(e, j["dialog-actions"], r)));
95
+ } }), M = {
96
+ disclosure: "s-ui-disclosure",
97
+ summary: "s-ui-summary",
98
+ "disclosure-body": "s-ui-disclosure-body"
99
+ }, pe = (e) => ({ disclosure: (t, ...n) => c(e.details.class(M.disclosure).attr("name", t.name).attr("open", t.open === !0 ? "" : void 0).children(e.summary.class(S.control, M.summary).children(e.span.children(t.title), x(e, "down")), e.div.class(M["disclosure-body"]).children(r(n)))) }), N = {
100
+ flap: "s-ui-flap",
101
+ "flap-cell": "s-ui-flap-cell",
102
+ "flap-face": "s-ui-flap-face",
103
+ "flap-top": "s-ui-flap-top",
104
+ "flap-front": "s-ui-flap-front",
105
+ "flap-bottom": "s-ui-flap-bottom",
106
+ "flap-back": "s-ui-flap-back",
107
+ "flap-leaf": "s-ui-flap-leaf",
108
+ "g-0": "s-ui-g-0",
109
+ "g-1": "s-ui-g-1",
110
+ "g-2": "s-ui-g-2",
111
+ "g-3": "s-ui-g-3",
112
+ "g-4": "s-ui-g-4",
113
+ "g-5": "s-ui-g-5",
114
+ "g-6": "s-ui-g-6",
115
+ "g-7": "s-ui-g-7",
116
+ "g-8": "s-ui-g-8",
117
+ "g-9": "s-ui-g-9",
118
+ "g-10": "s-ui-g-10",
119
+ "g-11": "s-ui-g-11",
120
+ "g-12": "s-ui-g-12",
121
+ "g-13": "s-ui-g-13",
122
+ "g-14": "s-ui-g-14",
123
+ "g-15": "s-ui-g-15",
124
+ "g-16": "s-ui-g-16",
125
+ "g-17": "s-ui-g-17",
126
+ "g-18": "s-ui-g-18",
127
+ "g-19": "s-ui-g-19",
128
+ "g-20": "s-ui-g-20",
129
+ "g-21": "s-ui-g-21",
130
+ "g-22": "s-ui-g-22",
131
+ "g-23": "s-ui-g-23",
132
+ "g-24": "s-ui-g-24",
133
+ "g-25": "s-ui-g-25",
134
+ "g-26": "s-ui-g-26",
135
+ "g-27": "s-ui-g-27",
136
+ "g-28": "s-ui-g-28",
137
+ "g-29": "s-ui-g-29",
138
+ "g-30": "s-ui-g-30",
139
+ "g-31": "s-ui-g-31",
140
+ "g-32": "s-ui-g-32",
141
+ "g-33": "s-ui-g-33",
142
+ "g-34": "s-ui-g-34",
143
+ "g-35": "s-ui-g-35",
144
+ "g-36": "s-ui-g-36",
145
+ "g-37": "s-ui-g-37",
146
+ "g-38": "s-ui-g-38",
147
+ "g-39": "s-ui-g-39",
148
+ "g-40": "s-ui-g-40"
149
+ }, P = [
150
+ ["\xA0", N["g-0"]],
151
+ ["0", N["g-1"]],
152
+ ["1", N["g-2"]],
153
+ ["2", N["g-3"]],
154
+ ["3", N["g-4"]],
155
+ ["4", N["g-5"]],
156
+ ["5", N["g-6"]],
157
+ ["6", N["g-7"]],
158
+ ["7", N["g-8"]],
159
+ ["8", N["g-9"]],
160
+ ["9", N["g-10"]],
161
+ ["A", N["g-11"]],
162
+ ["B", N["g-12"]],
163
+ ["C", N["g-13"]],
164
+ ["D", N["g-14"]],
165
+ ["E", N["g-15"]],
166
+ ["F", N["g-16"]],
167
+ ["G", N["g-17"]],
168
+ ["H", N["g-18"]],
169
+ ["I", N["g-19"]],
170
+ ["J", N["g-20"]],
171
+ ["K", N["g-21"]],
172
+ ["L", N["g-22"]],
173
+ ["M", N["g-23"]],
174
+ ["N", N["g-24"]],
175
+ ["O", N["g-25"]],
176
+ ["P", N["g-26"]],
177
+ ["Q", N["g-27"]],
178
+ ["R", N["g-28"]],
179
+ ["S", N["g-29"]],
180
+ ["T", N["g-30"]],
181
+ ["U", N["g-31"]],
182
+ ["V", N["g-32"]],
183
+ ["W", N["g-33"]],
184
+ ["X", N["g-34"]],
185
+ ["Y", N["g-35"]],
186
+ ["Z", N["g-36"]],
187
+ ["/", N["g-37"]],
188
+ [":", N["g-38"]],
189
+ ["-", N["g-39"]],
190
+ [".", N["g-40"]]
191
+ ], F = {
192
+ first: 1,
193
+ last: 10
194
+ }, me = (e) => e >= F.first && e <= F.last, he = (e, t) => me(e) && me(t) ? e === F.last ? F.first : e + 1 : (e + 1) % P.length, ge = (e) => {
195
+ let t = getComputedStyle(e).getPropertyValue("--s-quick").trim(), n = Number.parseFloat(t);
196
+ return Number.isNaN(n) ? 0 : t.endsWith("ms") ? n : n * 1e3;
197
+ }, _e = v.make("TurnTheDrum", { args: { to: h.Number } }, (e, t, n) => {
198
+ let r = (t) => e.querySelector(`.${t}`), i = r(N["flap-top"]), a = r(N["flap-bottom"]), o = r(N["flap-leaf"]), s = r(N["flap-front"]), c = r(N["flap-back"]), l = (e, t) => e?.style.setProperty("--s-ui-face", JSON.stringify(P[t]?.[0] ?? P[0][0])), u = "var(--s-fg)", d = "color-mix(in oklch, var(--s-fg) 64%, var(--s-bg))", f, m = 0, h = !1, v = (e) => {
199
+ h = !1;
200
+ for (let t of [
201
+ i,
202
+ a,
203
+ s,
204
+ c
205
+ ]) l(t, e);
206
+ o?.style.setProperty("visibility", "hidden");
207
+ }, y = () => {
208
+ if (f === void 0 || f === m) return v(m);
209
+ let t = ge(e);
210
+ if (o === null || !(t > 0)) return f = m, v(m);
211
+ h = !0;
212
+ let n = f, r = he(n, m);
213
+ l(i, r), l(a, n), l(s, n), l(c, r), o.style.setProperty("visibility", "visible");
214
+ let p = {
215
+ duration: t,
216
+ easing: "ease-in"
217
+ };
218
+ s?.animate([
219
+ { backgroundColor: u },
220
+ {
221
+ backgroundColor: d,
222
+ offset: .5
223
+ },
224
+ { backgroundColor: d }
225
+ ], p), c?.animate([
226
+ { backgroundColor: d },
227
+ {
228
+ backgroundColor: d,
229
+ offset: .5
230
+ },
231
+ { backgroundColor: u }
232
+ ], p);
233
+ let g = o.animate([{ transform: "rotateX(0deg)" }, { transform: "rotateX(-180deg)" }], p);
234
+ g.onfinish = () => {
235
+ f = r, y();
236
+ }, g.oncancel = () => {
237
+ f = m, v(m);
238
+ };
239
+ };
240
+ return g.runForEach(n, ({ to: e }) => p.sync(() => {
241
+ m = e, f === void 0 ? (f = e, v(e)) : h || y();
242
+ })).pipe(p.as(_.noop));
243
+ }), ve = (e) => ({ flap: (t) => c(e.span.class(N.flap).attr("role", "img").attr("aria-label", t).children([...t.toUpperCase().replaceAll(" ", "\xA0")].map((t) => {
244
+ let n = Math.max(0, P.findIndex(([e]) => e === t)), r = (t) => e.span.class(N["flap-face"], t);
245
+ return e.span.class(N["flap-cell"], P[n]?.[1] ?? P[0][1]).attr("aria-hidden", "true").onMount(_e({ to: n })).children(r(N["flap-top"]), r(N["flap-bottom"]), e.span.class(N["flap-leaf"]).children(r(N["flap-front"]), r(N["flap-back"])));
246
+ }))) }), I = {
247
+ item: "s-ui-item",
248
+ "item-body": "s-ui-item-body",
249
+ "item-actions": "s-ui-item-actions"
250
+ }, ye = (e) => ({ item: (t, ...n) => {
251
+ let i = t.actions ?? [];
252
+ return c(e.div.class(I.item).children(e.div.class(I["item-body"]).children(r(n)), i.length > 0 && E(e, I["item-actions"], i)));
253
+ } }), be = { key: "s-ui-key" }, xe = (e) => ({ key: (t) => c(e.kbd.class(be.key).children(t)) }), Se = { "menu-item": "s-ui-menu-item" }, L = {
254
+ "popover-root": "s-ui-popover-root",
255
+ trigger: "s-ui-trigger",
256
+ popover: "s-ui-popover",
257
+ "popover-body": "s-ui-popover-body"
258
+ }, Ce = (...e) => g.callback((t) => p.acquireRelease(p.sync(() => {
259
+ let n = new ResizeObserver(() => m.offerUnsafe(t, void 0));
260
+ return e.forEach((e) => n.observe(e)), n;
261
+ }), (e) => p.sync(() => e.disconnect()))), we = (e) => g.callback((t) => p.acquireRelease(p.sync(() => {
262
+ let n = new MutationObserver(() => m.offerUnsafe(t, void 0));
263
+ return n.observe(e, {
264
+ attributes: !0,
265
+ attributeFilter: ["class"],
266
+ subtree: !0
267
+ }), n;
268
+ }), (e) => p.sync(() => e.disconnect()))), Te = (e, t) => {
269
+ if (t.offsetHeight > 0) return t.offsetHeight;
270
+ e.setAttribute("data-measuring", "");
271
+ let n = t.offsetHeight;
272
+ return e.removeAttribute("data-measuring"), n;
273
+ }, Ee = v.make("FacePopover", { args: {} }, (e) => g.mergeAll([
274
+ g.succeed(void 0),
275
+ Ce(document.documentElement, document.body, e),
276
+ g.fromEffect(p.promise(() => document.fonts.ready)),
277
+ g.fromEventListener(window, "load", { once: !0 }),
278
+ g.fromEventListener(window, "scroll", {
279
+ capture: !0,
280
+ passive: !0
281
+ }),
282
+ g.fromEventListener(window, "resize", { passive: !0 }),
283
+ we(document.body),
284
+ g.fromEventListener(window, "transitionend", {
285
+ capture: !0,
286
+ passive: !0
287
+ }),
288
+ g.fromEventListener(window, "transitioncancel", {
289
+ capture: !0,
290
+ passive: !0
291
+ }),
292
+ g.fromEventListener(window, "animationend", {
293
+ capture: !0,
294
+ passive: !0
295
+ }),
296
+ g.fromEventListener(e, "pointerenter", {
297
+ capture: !0,
298
+ passive: !0
299
+ }),
300
+ g.fromEventListener(e, "focusin", { passive: !0 }),
301
+ g.fromEventListener(e, "toggle", { capture: !0 })
302
+ ], { concurrency: "unbounded" }).pipe(g.runForEach(() => p.sync(() => {
303
+ let t = e.querySelector("button"), n = e.querySelector("[popover]");
304
+ if (t === null || n === null) return;
305
+ let r = t.getBoundingClientRect(), i = window.innerHeight - r.bottom, a = Te(e, n) + 8;
306
+ e.setAttribute("data-face", i < a && r.top > i ? "up" : "down");
307
+ })), p.as(_.noop))), R = (e, t, n) => {
308
+ let r = e.id(`s-ui-popover-${t.name}`);
309
+ return {
310
+ id: r,
311
+ content: e.div.class(L["popover-root"]).onMount(Ee({})).children(e.button.class(i("secondary"), L.trigger).attr("type", "button").attr("popovertarget", r).attr("aria-haspopup", t.role).children(t.label, x(e, "down")), e.div.class(L.popover).attr("id", r).attr("popover", "auto").attr("role", t.role).children(n))
312
+ };
313
+ }, De = (e) => ({ popover: (t, ...n) => c(R(e, t, e.div.class(L["popover-body"]).children(r(n))).content) }), Oe = (e) => ({ menu: (t) => {
314
+ let n = e.id(`s-ui-popover-${t.name}`);
315
+ return c(R(e, {
316
+ name: t.name,
317
+ label: t.label,
318
+ role: "menu"
319
+ }, t.items.map((t) => e.button.class(S.control, Se["menu-item"]).attr("type", "button").attr("role", "menuitem").attr("popovertarget", n).attr("popovertargetaction", "hide").disabled(t.disabled === !0).on("click", t.onPress).children(a(e, t.icon), t.label))).content);
320
+ } }), z = {
321
+ shell: "s-ui-shell",
322
+ "nav-top": "s-ui-nav-top",
323
+ "shell-body": "s-ui-shell-body",
324
+ "state-open": "s-ui-state-open",
325
+ "nav-pane": "s-ui-nav-pane",
326
+ "nav-list": "s-ui-nav-list",
327
+ "nav-cell": "s-ui-nav-cell",
328
+ "nav-mark": "s-ui-nav-mark",
329
+ "nav-up": "s-ui-nav-up",
330
+ navigator: "s-ui-navigator",
331
+ "nav-sign": "s-ui-nav-sign",
332
+ "nav-back": "s-ui-nav-back",
333
+ "nav-bar": "s-ui-nav-bar",
334
+ "nav-tabs": "s-ui-nav-tabs",
335
+ "nav-name": "s-ui-nav-name",
336
+ "nav-home": "s-ui-nav-home",
337
+ "nav-rule": "s-ui-nav-rule",
338
+ "is-before": "s-ui-is-before",
339
+ "is-after": "s-ui-is-after",
340
+ "nav-places": "s-ui-nav-places",
341
+ "nav-rows": "s-ui-nav-rows",
342
+ "nav-place": "s-ui-nav-place",
343
+ "nav-lit": "s-ui-nav-lit",
344
+ "nav-here": "s-ui-nav-here",
345
+ "place-side": "s-ui-place-side",
346
+ "place-top": "s-ui-place-top",
347
+ "nav-brand": "s-ui-nav-brand"
348
+ }, B = h.Literals([
349
+ "side",
350
+ "top",
351
+ "bottom"
352
+ ]), V = h.Literals([
353
+ "docked",
354
+ "sheet",
355
+ "menu"
356
+ ]), ke = v.make("ShowCurrentPlace", { args: { at: h.String } }, (e, t, n) => g.runForEach(n, () => p.sync(() => {
357
+ let t = e.querySelector("[aria-current=\"page\"]"), n = t?.closest(`.${z["nav-list"]}`);
358
+ if (t === null || n == null) return;
359
+ let r = n.getBoundingClientRect(), i = t.getBoundingClientRect();
360
+ (i.top < r.top || i.bottom > r.bottom) && (n.scrollTop += i.top - r.top - (r.height - i.height) / 2), (i.left < r.left || i.right > r.right) && (n.scrollLeft += i.left - r.left - (r.width - i.width) / 2);
361
+ })).pipe(p.as(_.noop))), Ae = v.make("FollowTheWindow", { args: {} }, (e) => g.mergeAll([
362
+ g.succeed(void 0),
363
+ g.fromEventListener(window, "scroll", {
364
+ capture: !0,
365
+ passive: !0
366
+ }),
367
+ g.fromEventListener(window, "resize", { passive: !0 })
368
+ ], { concurrency: "unbounded" }).pipe(g.runForEach(() => p.sync(() => {
369
+ let t = e.parentElement;
370
+ if (t === null) return;
371
+ let n = t.getBoundingClientRect().top + e.offsetTop - t.offsetTop;
372
+ e.style.setProperty("--s-ui-seen", `${-n}px`);
373
+ })), p.as(_.noop))), je = (e) => ({ navigator: (t, ...n) => {
374
+ let i = e.id("s-ui-navigator"), o = t.open === !0, { back: l, brand: u } = t, f = () => l !== void 0 && e.button.class(S.control, z["nav-back"]).attr("type", "button").attr("aria-label", l.label).disabled(l.disabled === !0).on("click", l.onPress).children(d(e, "arrow-back")), p = (t) => [e.span.class(z["nav-mark"], w(t.colour)).attr("aria-hidden", "true").children(t.src === void 0 ? t.icon !== void 0 && d(e, t.icon) : e.img.attr("src", t.src).attr("alt", "")), e.span.class(z["nav-name"]).children(t.name)], m = t.place ?? "side", h = m === "side" ? "docked" : m === "top" ? "menu" : "sheet", g = t.groups[t.shown], _ = (n) => t.groups.map((r, a) => e.button.class(S.control, z["nav-cell"], w(r.colour)).attr("type", "button").attr("aria-controls", i).attr("aria-pressed", a === t.shown ? "true" : "false").on("click", o && a === t.shown ? t.onClose(n) : t.onShow(a, n)).on("pointerenter", ({ pointerType: e }) => n === "menu" && o && a !== t.shown && e === "mouse" ? t.onShow(a, n) : void 0).children(d(e, r.icon), e.span.class(z["nav-name"]).children(r.label)));
375
+ return c(e.div.class(z.shell, m !== "bottom" && z[`place-${m}`], o && z["state-open"]).children(e.nav.class(z.navigator, t.tone !== void 0 && s(t.tone)).attr("aria-label", t.label).onMount(ke({ at: `${t.groups.flatMap((e) => e.links).find((e) => e.current === !0)?.href ?? ""} ${o} ${t.shown}` })).children(e.div.class(z["nav-bar"]).children(f(), e.a.class(S.control, z["nav-home"], u !== void 0 && z["nav-brand"]).attr("href", t.home.href).attr("aria-label", t.home.label).children(u === void 0 ? d(e, "home") : p(u)), u !== void 0 && e.div.class(z["nav-rule"]).attr("aria-hidden", "true"), _(h)), e.div.class(z["nav-tabs"]).children(_("sheet")), e.div.class(z["nav-pane"]).attr("id", i).children(g !== void 0 && e.button.class(S.control, z["nav-up"], w(g.colour)).attr("type", "button").on("click", t.onClose(h)).children(d(e, "arrow-back"), e.span.class(z["nav-name"]).children(g.label)), t.groups.map((n, r) => {
376
+ let i = (t) => t.icon === void 0 ? t.label : e.span.children(a(e, t.icon), t.label), o = n.links.findIndex((e) => e.current === !0);
377
+ return e.div.class(z["nav-list"], r < t.shown && z["is-before"], r > t.shown && z["is-after"], w(n.colour)).children(e.div.class(z["nav-rows"]).children(e.ul.class(z["nav-places"]).attr("aria-label", n.label).children(n.links.map((t) => e.li.children(e.a.class(S.control, z["nav-place"]).attr("href", t.href).attr("aria-current", t.current === !0 ? "page" : void 0).children(i(t))))), o >= 0 && e.div.class(z["nav-here"]).attr("aria-hidden", "true").attr("data-at", String(o)).children(n.links.map((t) => e.div.class(z["nav-lit"]).children(i(t))))));
378
+ }))), (l !== void 0 || u !== void 0) && e.div.class(z["nav-top"], t.tone !== void 0 && s(t.tone)).children(f(), u !== void 0 && e.a.class(S.control, z["nav-sign"]).attr("href", t.home.href).attr("aria-label", t.home.label).children(p(u))), e.div.class(z["shell-body"]).onMount(Ae({})).children(r(n))));
379
+ } }), H = {
380
+ notice: "s-ui-notice",
381
+ "level-caution": "s-ui-level-caution",
382
+ "notice-body": "s-ui-notice-body",
383
+ "notice-dismiss": "s-ui-notice-dismiss",
384
+ "notice-actions": "s-ui-notice-actions",
385
+ "notice-title": "s-ui-notice-title"
386
+ }, U = h.Literals(["info", "caution"]), Me = (e) => ({ notice: (t, ...n) => c((t.key === void 0 ? e.div : e.div.key(String(t.key))).class(H.notice, t.level === "caution" && H["level-caution"]).attr("role", t.level === "caution" ? "alert" : "status").children(e.div.class(H["notice-body"]).children(e.p.class(H["notice-title"]).children(a(e, t.icon ?? (t.level === "caution" ? "warning" : "info")), t.title), r(n)), t.dismiss !== void 0 && E(e, H["notice-dismiss"], [{
387
+ icon: "close",
388
+ ...t.dismiss
389
+ }]), (t.actions ?? []).length > 0 && E(e, H["notice-actions"], t.actions ?? []))) }), W = {
390
+ options: "s-ui-options",
391
+ option: "s-ui-option"
392
+ }, Ne = (e) => ({ options: (t) => {
393
+ let n = e.id(`s-ui-${t.name}-label`);
394
+ return c(e.div.class(S.field).children(e.p.class(S.legend).attr("id", n).children(t.label), T(e, {
395
+ group: W.options,
396
+ item: W.option
397
+ }, t).attr("aria-labelledby", n)));
398
+ } }), G = {
399
+ pager: "s-ui-pager",
400
+ "pager-link": "s-ui-pager-link",
401
+ "pager-next": "s-ui-pager-next",
402
+ "pager-title": "s-ui-pager-title"
403
+ }, Pe = (e) => ({ pager: (t) => {
404
+ let n = t.axis === "vertical", r = (t, n, r) => e.a.class(S.control, G["pager-link"], t === "next" && G["pager-next"]).attr("href", r.href).attr("rel", t).children(e.span.class(S.legend).children(r.label), e.span.class(G["pager-title"]).children(x(e, n), " ", r.title));
405
+ return c(e.nav.class(G.pager).attr("aria-label", t.label).children(t.previous !== void 0 && r("prev", n ? "up" : "left", t.previous), t.next !== void 0 && r("next", n ? "down" : "right", t.next)));
406
+ } }), K = {
407
+ pagination: "s-ui-pagination",
408
+ "page-item": "s-ui-page-item",
409
+ gap: "s-ui-gap"
410
+ }, Fe = (e) => ({ pagination: (t) => {
411
+ let { count: n, page: r } = t, i = Array.from({ length: n }, (e, t) => t + 1).filter((e) => e === 1 || e === n || Math.abs(e - r) <= 1), a = (i, a, o) => e.button.class(S.control, K["page-item"]).attr("type", "button").attr("aria-label", o).attr("aria-current", o === void 0 && i === r ? "page" : void 0).disabled(i < 1 || i > n).on("click", t.onChange(i)).children(a);
412
+ return c(e.nav.attr("aria-label", t.label).children(e.ol.class(K.pagination).children(e.li.children(a(r - 1, x(e, "left"), t.previous)), i.flatMap((t, n) => [...n > 0 && t - (i[n - 1] ?? t) > 1 ? [e.li.class(K.gap).attr("aria-hidden", "true").children("…")] : [], e.li.children(a(t, String(t)))]), e.li.children(a(r + 1, x(e, "right"), t.next)))));
413
+ } }), Ie = {
414
+ progress: "s-ui-progress",
415
+ "progress-run": "s-ui-progress-run"
416
+ }, Le = (e) => ({ progress: (t) => c(e.progress.class(Ie.progress, w(t.colour)).attr("aria-label", t.label).attr("max", "1").attr("value", t.value === void 0 ? void 0 : String(Math.min(1, Math.max(0, t.value))))) }), q = {
417
+ route: "s-ui-route",
418
+ stop: "s-ui-stop",
419
+ "state-passed": "s-ui-state-passed",
420
+ "state-current": "s-ui-state-current",
421
+ "stop-body": "s-ui-stop-body",
422
+ "stop-note": "s-ui-stop-note",
423
+ "axis-horizontal": "s-ui-axis-horizontal"
424
+ }, Re = (e) => ({ route: (t) => {
425
+ let { at: n, onSelect: r } = t;
426
+ return c(e.ol.class(q.route, w(t.colour), t.axis === "horizontal" && q["axis-horizontal"]).attr("aria-label", t.label).children(t.stops.map((t, i) => {
427
+ let a = [e.span.children(t.name), t.note !== void 0 && e.span.class(q["stop-note"]).children(t.note)];
428
+ return e.li.class(q.stop, n !== void 0 && i < n && q["state-passed"], i === n && q["state-current"]).attr("aria-current", i === n ? "step" : void 0).children(r === void 0 ? e.div.class(q["stop-body"]).children(a) : e.button.class(S.control, q["stop-body"]).attr("type", "button").on("click", r(i)).children(a));
429
+ })));
430
+ } }), J = {
431
+ sheet: "s-ui-sheet",
432
+ "sheet-actions": "s-ui-sheet-actions",
433
+ "side-start": "s-ui-side-start"
434
+ }, ze = (e) => ({ sheet: (t, ...n) => c(A(e, "sheet", [J.sheet, t.side === "start" && J["side-start"]], t, n, (t.actions ?? []).length > 0 && E(e, J["sheet-actions"], t.actions ?? []))) }), Be = {
435
+ skeleton: "s-ui-skeleton",
436
+ "skeleton-run": "s-ui-skeleton-run"
437
+ }, Ve = (e) => ({ skeleton: (t) => c(e.div.class(Be.skeleton).attr("role", "status").attr("aria-label", t.label).children(Array.from({ length: t.lines ?? 3 }, () => e.span))) }), Y = {
438
+ slider: "s-ui-slider",
439
+ "slider-head": "s-ui-slider-head"
440
+ }, He = (e) => ({ slider: (t) => {
441
+ let n = e.id(`s-ui-${t.name}`);
442
+ return c(e.div.class(S.field).children(e.div.class(Y["slider-head"]).children(e.label.class(S.legend).attr("for", n).children(t.label), e.span.children(t.shown ?? String(t.value))), e.input.class(Y.slider).attr("id", n).attr("name", t.name).attr("type", "range").attr("min", String(t.min)).attr("max", String(t.max)).attr("step", String(t.step ?? 1)).disabled(t.disabled === !0).value(String(t.value)).on("input", ({ value: e }) => t.onInput(Number(e)))));
443
+ } }), X = {
444
+ stepper: "s-ui-stepper",
445
+ step: "s-ui-step",
446
+ "stepper-value": "s-ui-stepper-value"
447
+ }, Ue = (e) => ({ stepper: (t) => {
448
+ let n = t.step ?? 1, r = t.min ?? 0, i = t.max ?? 1e400, a = (n, a, o) => e.button.class(S.control, X.step).attr("type", "button").attr("aria-label", o).disabled(t.disabled === !0 || n < r || n > i).on("click", t.onChange(n)).children(d(e, a));
449
+ return c(e.div.class(X.stepper).attr("role", "group").attr("aria-label", t.label).children(a(t.value - n, "remove", t.less), e.output.class(X["stepper-value"]).attr("aria-live", "polite").children(t.shown ?? String(t.value)), a(t.value + n, "add", t.more)));
450
+ } }), We = {
451
+ tabs: "s-ui-tabs",
452
+ tab: "s-ui-tab"
453
+ }, Ge = (e) => ({ tabs: (t) => c(T(e, {
454
+ group: We.tabs,
455
+ item: We.tab
456
+ }, t).attr("aria-label", t.label)) }), Ke = { tag: "s-ui-tag" }, qe = (e) => ({ tag: (t, n) => c(e.span.class(Ke.tag, w(t.colour)).children(a(e, t.icon), n)) }), Z = {
457
+ tile: "s-ui-tile",
458
+ "tile-set": "s-ui-tile-set",
459
+ "tile-image": "s-ui-tile-image",
460
+ "tile-icon": "s-ui-tile-icon",
461
+ "tile-value": "s-ui-tile-value",
462
+ "tile-long": "s-ui-tile-long",
463
+ "tile-label": "s-ui-tile-label",
464
+ "tile-note": "s-ui-tile-note",
465
+ "tile-actions": "s-ui-tile-actions"
466
+ }, Je = (e) => ({ tile: (t) => {
467
+ let n = t.actions ?? [], r = [t.tone !== void 0 && s(t.tone), w(t.colour)], i = [
468
+ S.control,
469
+ Z.tile,
470
+ ...n.length === 0 ? r : []
471
+ ], a = [
472
+ t.image !== void 0 && e.img.class(Z["tile-image"]).attr("src", t.image.src).attr("alt", t.image.alt).attr("loading", "lazy"),
473
+ t.icon !== void 0 && e.span.class(Z["tile-icon"]).children(d(e, t.icon)),
474
+ t.value !== void 0 && e.span.class(Z["tile-value"], t.value.length > 8 && Z["tile-long"]).children(t.value),
475
+ e.span.class(Z["tile-label"]).children(t.label),
476
+ t.note !== void 0 && e.span.class(Z["tile-note"]).children(t.note)
477
+ ], o = e.button.class(...i).attr("type", "button").disabled(t.disabled === !0), l = t.href !== void 0 && t.disabled !== !0 ? e.a.class(...i).attr("href", t.href).children(a) : (t.onPress === void 0 ? o : o.on("click", t.onPress)).children(a);
478
+ return n.length === 0 ? c(l) : c(e.div.class(Z["tile-set"], ...r).children(l, E(e, Z["tile-actions"], n)));
479
+ } }), Q = {
480
+ toasts: "s-ui-toasts",
481
+ "toasts-list": "s-ui-toasts-list",
482
+ "toast-gone": "s-ui-toast-gone"
483
+ }, Ye = "translateX(-50vi) perspective(150vmax) translateX(50vi) rotateY(90deg)", Xe = (e) => {
484
+ let t = Number.parseFloat(e);
485
+ return Number.isNaN(t) ? 0 : e.trim().endsWith("ms") ? t : t * 1e3;
486
+ }, Ze = v.make("TurnOutWhatGoes", { args: {} }, (e) => g.callback(() => p.acquireRelease(p.sync(() => {
487
+ let t = /* @__PURE__ */ new Map(), n = () => {
488
+ for (let n of e.children) n instanceof HTMLElement && t.set(n, {
489
+ left: e.offsetLeft + n.offsetLeft,
490
+ top: e.offsetTop + n.offsetTop,
491
+ width: n.offsetWidth,
492
+ height: n.offsetHeight
493
+ });
494
+ }, r = (n, r) => {
495
+ let i = t.get(n);
496
+ t.delete(n);
497
+ let a = e.parentElement, o = getComputedStyle(e), s = Xe(o.getPropertyValue("--s-travel")), c = Xe(o.getPropertyValue("--s-move"));
498
+ if (i === void 0 || a === null || !(s > 0)) return;
499
+ for (let e = r; e !== null; e = e.nextSibling) {
500
+ if (!(e instanceof HTMLElement)) continue;
501
+ let t = `0 ${i.height}px`;
502
+ e.animate([
503
+ {
504
+ translate: t,
505
+ easing: "linear"
506
+ },
507
+ {
508
+ translate: t,
509
+ offset: s / (s + c),
510
+ easing: "cubic-bezier(0.2, 0, 0, 1)"
511
+ },
512
+ { translate: "0 0" }
513
+ ], { duration: s + c });
514
+ }
515
+ let l = n.cloneNode(!0);
516
+ if (!(l instanceof HTMLElement)) return;
517
+ l.inert = !0, l.setAttribute("aria-hidden", "true"), l.classList.add(Q["toast-gone"]), l.style.setProperty("left", `${i.left}px`), l.style.setProperty("top", `${i.top}px`), l.style.setProperty("width", `${i.width}px`), l.style.setProperty("height", `${i.height}px`), a.append(l);
518
+ let u = l.animate([{ transform: "none" }, { transform: Ye }], {
519
+ duration: s,
520
+ easing: "cubic-bezier(0.6, 0, 0.2, 1)",
521
+ fill: "forwards"
522
+ });
523
+ u.onfinish = () => l.remove(), u.oncancel = () => l.remove();
524
+ }, i = new MutationObserver((e) => {
525
+ for (let t of e) t.removedNodes.forEach((e) => r(e, t.nextSibling));
526
+ n();
527
+ }), a = new ResizeObserver(n);
528
+ return i.observe(e, { childList: !0 }), a.observe(e), n(), () => {
529
+ i.disconnect(), a.disconnect();
530
+ };
531
+ }), (e) => p.sync(e))).pipe(g.runDrain, p.as(_.noop))), Qe = v.make("StayOverEverything", { args: {} }, (e) => g.callback(() => p.acquireRelease(p.sync(() => {
532
+ let t = () => {
533
+ e.isConnected && (e.matches(":popover-open") && e.hidePopover(), e.showPopover());
534
+ }, n = (n) => {
535
+ n.target !== e && t();
536
+ }, r = new MutationObserver((n) => {
537
+ n.some((t) => t.target !== e) && t();
538
+ });
539
+ return r.observe(document.body, {
540
+ attributes: !0,
541
+ attributeFilter: ["open"],
542
+ subtree: !0
543
+ }), window.addEventListener("toggle", n, { capture: !0 }), t(), () => {
544
+ r.disconnect(), window.removeEventListener("toggle", n, { capture: !0 });
545
+ };
546
+ }), (e) => p.sync(e))).pipe(g.runDrain, p.as(_.noop))), $e = (e) => ({ toasts: (t, ...n) => c(e.div.class(Q.toasts).attr("role", "region").attr("aria-label", t.label).attr("popover", "manual").onMount(Qe({})).children(e.div.class(Q["toasts-list"]).onMount(Ze({})).children(r(n)))) }), et = {
547
+ toggle: "s-ui-toggle",
548
+ track: "s-ui-track"
549
+ }, tt = (e) => ({ toggle: (t) => c(e.button.class(S.control, et.toggle).attr("type", "button").attr("role", "switch").attr("aria-checked", t.on ? "true" : "false").disabled(t.disabled === !0).on("click", t.onChange(!t.on)).children(e.span.class(et.track).attr("aria-hidden", "true"), e.span.children(t.label))) }), nt = { trail: "s-ui-trail" }, rt = (e) => ({ trail: (t) => c(e.nav.attr("aria-label", t.label).children(e.ol.class(nt.trail).children(t.steps.map((t) => e.li.children(e.a.attr("href", t.href).children(t.label))), e.li.children(e.span.attr("aria-current", "page").children(t.here))))) }), it = /* @__PURE__ */ e({
550
+ Direction: () => b,
551
+ Hold: () => V,
552
+ Level: () => U,
553
+ Place: () => B,
554
+ builders: () => $,
555
+ component: () => at
556
+ }), $ = (e) => ({
557
+ ...l(e),
558
+ ...ae(e),
559
+ ...ee(e),
560
+ ...ve(e),
561
+ ...qe(e),
562
+ ...ne(e),
563
+ ...xe(e),
564
+ ...Je(e),
565
+ ...Ge(e),
566
+ ...de(e),
567
+ ...Ne(e),
568
+ ...tt(e),
569
+ ...le(e),
570
+ ...He(e),
571
+ ...Ue(e),
572
+ ...Oe(e),
573
+ ...oe(e),
574
+ ...ye(e),
575
+ ...re(e),
576
+ ...Re(e),
577
+ ...Le(e),
578
+ ...Ve(e),
579
+ ...ce(e),
580
+ ...pe(e),
581
+ ...De(e),
582
+ ...ze(e),
583
+ ...fe(e),
584
+ ...Me(e),
585
+ ...$e(e),
586
+ ...je(e),
587
+ ...rt(e),
588
+ ...Pe(e),
589
+ ...Fe(e)
590
+ }), at = (e, t) => n(e, (e, n) => t($(e), n));
591
+ export { V as a, U as i, $ as n, B as o, at as r, b as s, it as t };
package/dist/Ui.d.ts CHANGED
@@ -267,9 +267,10 @@ export declare const builders: <Msg, Props>(h: Html.H<Msg> & {
267
267
  readonly shown: number;
268
268
  readonly onShow: (index: number, as: import("./Ui.ts").Hold) => Msg;
269
269
  readonly open?: boolean;
270
- readonly toggle: {
270
+ readonly onClose: (as: import("./Ui.ts").Hold) => Msg;
271
+ readonly home: {
271
272
  readonly label: string;
272
- readonly onToggle: (open: boolean, as: import("./Ui.ts").Hold) => Msg;
273
+ readonly href: string;
273
274
  };
274
275
  readonly brand?: {
275
276
  readonly name: string;
@@ -281,14 +282,13 @@ export declare const builders: <Msg, Props>(h: Html.H<Msg> & {
281
282
  readonly label: string;
282
283
  readonly onPress: Msg;
283
284
  readonly disabled?: boolean;
284
- readonly travel?: ReadonlyArray<Standard.Travel>;
285
285
  };
286
286
  readonly place?: import("./Ui.ts").Place;
287
- readonly mode?: Exclude<import("./Ui.ts").Hold, "menu">;
288
287
  readonly tone?: Standard.Tone;
289
288
  }, ...children: readonly Standard.Child<Standard.Kind, Msg, R>[]) => Node<"block", Msg, R>;
290
289
  notice: <R = never>(options: {
291
290
  readonly title: string;
291
+ readonly key?: string | number;
292
292
  readonly level?: import("./Ui.ts").Level;
293
293
  readonly icon?: Standard.Icon;
294
294
  readonly dismiss?: {
package/dist/Ui.js CHANGED
@@ -1 +1 @@
1
- export { s as Direction, a as Hold, i as Level, o as Place, n as builders, r as component } from "./Ui-B9xQqqNT.js";
1
+ export { s as Direction, a as Hold, i as Level, o as Place, n as builders, r as component } from "./Ui-DSgtM8Tf.js";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./Standard-BPpzr5SM.js";
2
- import { t } from "./Ui-B9xQqqNT.js";
1
+ import { t as e } from "./Standard-BC6CfFOv.js";
2
+ import { t } from "./Ui-DSgtM8Tf.js";
3
3
  import { t as n } from "./Palette-BIJ96BEh.js";
4
4
  export { n as Palette, e as Standard, t as Ui };
@@ -1,8 +1,3 @@
1
- /**
2
- * `page`: the root of a page.
3
- *
4
- * @since 0.4.0
5
- */
6
1
  import type { Html } from "effect/ui/html";
7
2
  import { type Child, type Kind, type Node } from "../../Node.ts";
8
3
  import type { Colour, Scheme } from "../tokens/tokens.ts";
@@ -10,7 +5,10 @@ export declare const page: <Msg>(h: Html.H<Msg>) => {
10
5
  /**
11
6
  * The root of a page: sets the type, the ground and the accent colour, and
12
7
  * its width is what the columns collapse against. `scheme` sets the light
13
- * or the dark scheme; left out, it follows the reader's system.
8
+ * or the dark scheme; left out, it follows the reader's system. While
9
+ * Shift is held down, every movement in the window takes ten times as
10
+ * long, so that it can be looked at, and a link of the app is followed
11
+ * in this window, not opened in a new one.
14
12
  */
15
13
  page: <R = never>(options: {
16
14
  readonly accent?: Colour;