@nmnmcc/standard 0.0.0-stage → 0.4.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 (260) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +516 -2
  3. package/dist/Extend.d.ts +15 -0
  4. package/dist/Extend.d.ts.map +1 -0
  5. package/dist/Extend.js +1 -0
  6. package/dist/Node.d.ts +71 -0
  7. package/dist/Node.d.ts.map +1 -0
  8. package/dist/Palette-BIJ96BEh.js +84 -0
  9. package/dist/Palette.d.ts +8 -0
  10. package/dist/Palette.d.ts.map +1 -0
  11. package/dist/Palette.js +1 -0
  12. package/dist/Standard-BPpzr5SM.js +488 -0
  13. package/dist/Standard.d.ts +249 -0
  14. package/dist/Standard.d.ts.map +1 -0
  15. package/dist/Standard.js +1 -0
  16. package/dist/Ui-B9xQqqNT.js +468 -0
  17. package/dist/Ui.d.ts +500 -0
  18. package/dist/Ui.d.ts.map +1 -0
  19. package/dist/Ui.js +1 -0
  20. package/dist/index.d.ts +25 -0
  21. package/dist/index.d.ts.map +1 -0
  22. package/dist/index.js +4 -0
  23. package/dist/rolldown-runtime-BMBA7GOT.js +10 -0
  24. package/dist/standard/button/button.d.ts +21 -0
  25. package/dist/standard/button/button.d.ts.map +1 -0
  26. package/dist/standard/colour/colour.d.ts +93 -0
  27. package/dist/standard/colour/colour.d.ts.map +1 -0
  28. package/dist/standard/field/field.d.ts +91 -0
  29. package/dist/standard/field/field.d.ts.map +1 -0
  30. package/dist/standard/form/form.d.ts +16 -0
  31. package/dist/standard/form/form.d.ts.map +1 -0
  32. package/dist/standard/icon/icon.d.ts +31 -0
  33. package/dist/standard/icon/icon.d.ts.map +1 -0
  34. package/dist/standard/image/image.d.ts +21 -0
  35. package/dist/standard/image/image.d.ts.map +1 -0
  36. package/dist/standard/layout/layout.d.ts +73 -0
  37. package/dist/standard/layout/layout.d.ts.map +1 -0
  38. package/dist/standard/list/list.d.ts +26 -0
  39. package/dist/standard/list/list.d.ts.map +1 -0
  40. package/dist/standard/page/page.d.ts +20 -0
  41. package/dist/standard/page/page.d.ts.map +1 -0
  42. package/dist/standard/table/table.d.ts +18 -0
  43. package/dist/standard/table/table.d.ts.map +1 -0
  44. package/dist/standard/text/text.d.ts +39 -0
  45. package/dist/standard/text/text.d.ts.map +1 -0
  46. package/dist/standard/tokens/classes.d.ts +16 -0
  47. package/dist/standard/tokens/classes.d.ts.map +1 -0
  48. package/dist/standard/tokens/tokens.d.ts +162 -0
  49. package/dist/standard/tokens/tokens.d.ts.map +1 -0
  50. package/dist/standard.css +2 -0
  51. package/dist/ui/arrow/arrow.d.ts +18 -0
  52. package/dist/ui/arrow/arrow.d.ts.map +1 -0
  53. package/dist/ui/avatar/avatar.d.ts +15 -0
  54. package/dist/ui/avatar/avatar.d.ts.map +1 -0
  55. package/dist/ui/board/board.d.ts +34 -0
  56. package/dist/ui/board/board.d.ts.map +1 -0
  57. package/dist/ui/bullet/bullet.d.ts +15 -0
  58. package/dist/ui/bullet/bullet.d.ts.map +1 -0
  59. package/dist/ui/card/card.d.ts +24 -0
  60. package/dist/ui/card/card.d.ts.map +1 -0
  61. package/dist/ui/carousel/carousel.d.ts +17 -0
  62. package/dist/ui/carousel/carousel.d.ts.map +1 -0
  63. package/dist/ui/check/check.d.ts +20 -0
  64. package/dist/ui/check/check.d.ts.map +1 -0
  65. package/dist/ui/choice/choice.d.ts +19 -0
  66. package/dist/ui/choice/choice.d.ts.map +1 -0
  67. package/dist/ui/control/control.d.ts +57 -0
  68. package/dist/ui/control/control.d.ts.map +1 -0
  69. package/dist/ui/dialog/dialog.d.ts +30 -0
  70. package/dist/ui/dialog/dialog.d.ts.map +1 -0
  71. package/dist/ui/disclosure/disclosure.d.ts +20 -0
  72. package/dist/ui/disclosure/disclosure.d.ts.map +1 -0
  73. package/dist/ui/flap/flap.d.ts +18 -0
  74. package/dist/ui/flap/flap.d.ts.map +1 -0
  75. package/dist/ui/item/item.d.ts +21 -0
  76. package/dist/ui/item/item.d.ts.map +1 -0
  77. package/dist/ui/key/key.d.ts +12 -0
  78. package/dist/ui/key/key.d.ts.map +1 -0
  79. package/dist/ui/menu/menu.d.ts +26 -0
  80. package/dist/ui/menu/menu.d.ts.map +1 -0
  81. package/dist/ui/modal/modal.d.ts +22 -0
  82. package/dist/ui/modal/modal.d.ts.map +1 -0
  83. package/dist/ui/navigator/navigator.d.ts +137 -0
  84. package/dist/ui/navigator/navigator.d.ts.map +1 -0
  85. package/dist/ui/notice/notice.d.ts +34 -0
  86. package/dist/ui/notice/notice.d.ts.map +1 -0
  87. package/dist/ui/options/options.d.ts +19 -0
  88. package/dist/ui/options/options.d.ts.map +1 -0
  89. package/dist/ui/pager/pager.d.ts +29 -0
  90. package/dist/ui/pager/pager.d.ts.map +1 -0
  91. package/dist/ui/pagination/pagination.d.ts +14 -0
  92. package/dist/ui/pagination/pagination.d.ts.map +1 -0
  93. package/dist/ui/popover/popover.d.ts +20 -0
  94. package/dist/ui/popover/popover.d.ts.map +1 -0
  95. package/dist/ui/progress/progress.d.ts +17 -0
  96. package/dist/ui/progress/progress.d.ts.map +1 -0
  97. package/dist/ui/route/route.d.ts +27 -0
  98. package/dist/ui/route/route.d.ts.map +1 -0
  99. package/dist/ui/sheet/sheet.d.ts +35 -0
  100. package/dist/ui/sheet/sheet.d.ts.map +1 -0
  101. package/dist/ui/skeleton/skeleton.d.ts +15 -0
  102. package/dist/ui/skeleton/skeleton.d.ts.map +1 -0
  103. package/dist/ui/slider/slider.d.ts +23 -0
  104. package/dist/ui/slider/slider.d.ts.map +1 -0
  105. package/dist/ui/stepper/stepper.d.ts +32 -0
  106. package/dist/ui/stepper/stepper.d.ts.map +1 -0
  107. package/dist/ui/tabs/tabs.d.ts +22 -0
  108. package/dist/ui/tabs/tabs.d.ts.map +1 -0
  109. package/dist/ui/tag/tag.d.ts +17 -0
  110. package/dist/ui/tag/tag.d.ts.map +1 -0
  111. package/dist/ui/tile/tile.d.ts +38 -0
  112. package/dist/ui/tile/tile.d.ts.map +1 -0
  113. package/dist/ui/toasts/toasts.d.ts +17 -0
  114. package/dist/ui/toasts/toasts.d.ts.map +1 -0
  115. package/dist/ui/toggle/toggle.d.ts +17 -0
  116. package/dist/ui/toggle/toggle.d.ts.map +1 -0
  117. package/dist/ui/trail/trail.d.ts +22 -0
  118. package/dist/ui/trail/trail.d.ts.map +1 -0
  119. package/package.json +70 -3
  120. package/src/Extend.ts +14 -0
  121. package/src/Node.ts +44 -0
  122. package/src/Palette.ts +7 -0
  123. package/src/Standard.ts +109 -0
  124. package/src/Ui.ts +156 -0
  125. package/src/index.ts +27 -0
  126. package/src/standard/button/button.module.css +43 -0
  127. package/src/standard/button/button.module.d.css.ts +6 -0
  128. package/src/standard/button/button.ts +38 -0
  129. package/src/standard/colour/colour.ts +197 -0
  130. package/src/standard/field/field.module.css +222 -0
  131. package/src/standard/field/field.module.d.css.ts +13 -0
  132. package/src/standard/field/field.ts +266 -0
  133. package/src/standard/form/form.ts +25 -0
  134. package/src/standard/icon/icon.module.css +349 -0
  135. package/src/standard/icon/icon.module.d.css.ts +112 -0
  136. package/src/standard/icon/icon.ts +148 -0
  137. package/src/standard/image/image.module.css +42 -0
  138. package/src/standard/image/image.module.d.css.ts +12 -0
  139. package/src/standard/image/image.ts +39 -0
  140. package/src/standard/layout/layout.module.css +224 -0
  141. package/src/standard/layout/layout.module.d.css.ts +41 -0
  142. package/src/standard/layout/layout.ts +133 -0
  143. package/src/standard/list/list.module.css +71 -0
  144. package/src/standard/list/list.module.d.css.ts +10 -0
  145. package/src/standard/list/list.ts +53 -0
  146. package/src/standard/page/page.module.css +244 -0
  147. package/src/standard/page/page.module.d.css.ts +9 -0
  148. package/src/standard/page/page.ts +32 -0
  149. package/src/standard/table/table.module.css +40 -0
  150. package/src/standard/table/table.module.d.css.ts +6 -0
  151. package/src/standard/table/table.ts +36 -0
  152. package/src/standard/text/text.module.css +149 -0
  153. package/src/standard/text/text.module.d.css.ts +19 -0
  154. package/src/standard/text/text.ts +77 -0
  155. package/src/standard/tokens/classes.ts +31 -0
  156. package/src/standard/tokens/tokens.module.css +294 -0
  157. package/src/standard/tokens/tokens.module.d.css.ts +40 -0
  158. package/src/standard/tokens/tokens.ts +339 -0
  159. package/src/ui/arrow/arrow.module.css +38 -0
  160. package/src/ui/arrow/arrow.module.d.css.ts +13 -0
  161. package/src/ui/arrow/arrow.ts +35 -0
  162. package/src/ui/avatar/avatar.module.css +25 -0
  163. package/src/ui/avatar/avatar.module.d.css.ts +5 -0
  164. package/src/ui/avatar/avatar.ts +28 -0
  165. package/src/ui/board/board.module.css +94 -0
  166. package/src/ui/board/board.module.d.css.ts +10 -0
  167. package/src/ui/board/board.ts +84 -0
  168. package/src/ui/bullet/bullet.module.css +28 -0
  169. package/src/ui/bullet/bullet.module.d.css.ts +5 -0
  170. package/src/ui/bullet/bullet.ts +16 -0
  171. package/src/ui/card/card.module.css +80 -0
  172. package/src/ui/card/card.module.d.css.ts +6 -0
  173. package/src/ui/card/card.ts +42 -0
  174. package/src/ui/carousel/carousel.module.css +24 -0
  175. package/src/ui/carousel/carousel.module.d.css.ts +5 -0
  176. package/src/ui/carousel/carousel.ts +30 -0
  177. package/src/ui/check/check.module.css +53 -0
  178. package/src/ui/check/check.module.d.css.ts +8 -0
  179. package/src/ui/check/check.ts +46 -0
  180. package/src/ui/choice/choice.module.css +32 -0
  181. package/src/ui/choice/choice.module.d.css.ts +6 -0
  182. package/src/ui/choice/choice.ts +31 -0
  183. package/src/ui/control/control.module.css +127 -0
  184. package/src/ui/control/control.module.d.css.ts +12 -0
  185. package/src/ui/control/control.ts +97 -0
  186. package/src/ui/dialog/dialog.module.css +42 -0
  187. package/src/ui/dialog/dialog.module.d.css.ts +6 -0
  188. package/src/ui/dialog/dialog.ts +44 -0
  189. package/src/ui/disclosure/disclosure.module.css +57 -0
  190. package/src/ui/disclosure/disclosure.module.d.css.ts +7 -0
  191. package/src/ui/disclosure/disclosure.ts +32 -0
  192. package/src/ui/flap/flap.module.css +161 -0
  193. package/src/ui/flap/flap.module.d.css.ts +48 -0
  194. package/src/ui/flap/flap.ts +78 -0
  195. package/src/ui/item/item.module.css +39 -0
  196. package/src/ui/item/item.module.d.css.ts +7 -0
  197. package/src/ui/item/item.ts +33 -0
  198. package/src/ui/key/key.module.css +15 -0
  199. package/src/ui/key/key.module.d.css.ts +5 -0
  200. package/src/ui/key/key.ts +13 -0
  201. package/src/ui/menu/menu.module.css +11 -0
  202. package/src/ui/menu/menu.module.d.css.ts +5 -0
  203. package/src/ui/menu/menu.ts +48 -0
  204. package/src/ui/modal/modal.module.css +66 -0
  205. package/src/ui/modal/modal.module.d.css.ts +8 -0
  206. package/src/ui/modal/modal.ts +55 -0
  207. package/src/ui/navigator/navigator.module.css +658 -0
  208. package/src/ui/navigator/navigator.module.d.css.ts +39 -0
  209. package/src/ui/navigator/navigator.ts +337 -0
  210. package/src/ui/notice/notice.module.css +80 -0
  211. package/src/ui/notice/notice.module.d.css.ts +10 -0
  212. package/src/ui/notice/notice.ts +57 -0
  213. package/src/ui/options/options.module.css +30 -0
  214. package/src/ui/options/options.module.d.css.ts +6 -0
  215. package/src/ui/options/options.ts +31 -0
  216. package/src/ui/pager/pager.module.css +38 -0
  217. package/src/ui/pager/pager.module.d.css.ts +8 -0
  218. package/src/ui/pager/pager.ts +48 -0
  219. package/src/ui/pagination/pagination.module.css +38 -0
  220. package/src/ui/pagination/pagination.module.d.css.ts +7 -0
  221. package/src/ui/pagination/pagination.ts +52 -0
  222. package/src/ui/popover/popover.module.css +94 -0
  223. package/src/ui/popover/popover.module.d.css.ts +8 -0
  224. package/src/ui/popover/popover.ts +139 -0
  225. package/src/ui/progress/progress.module.css +69 -0
  226. package/src/ui/progress/progress.module.d.css.ts +6 -0
  227. package/src/ui/progress/progress.ts +26 -0
  228. package/src/ui/route/route.module.css +116 -0
  229. package/src/ui/route/route.module.d.css.ts +11 -0
  230. package/src/ui/route/route.ts +58 -0
  231. package/src/ui/sheet/sheet.module.css +194 -0
  232. package/src/ui/sheet/sheet.module.d.css.ts +7 -0
  233. package/src/ui/sheet/sheet.ts +47 -0
  234. package/src/ui/skeleton/skeleton.module.css +44 -0
  235. package/src/ui/skeleton/skeleton.module.d.css.ts +6 -0
  236. package/src/ui/skeleton/skeleton.ts +20 -0
  237. package/src/ui/slider/slider.module.css +56 -0
  238. package/src/ui/slider/slider.module.d.css.ts +6 -0
  239. package/src/ui/slider/slider.ts +48 -0
  240. package/src/ui/stepper/stepper.module.css +32 -0
  241. package/src/ui/stepper/stepper.module.d.css.ts +7 -0
  242. package/src/ui/stepper/stepper.ts +62 -0
  243. package/src/ui/tabs/tabs.module.css +38 -0
  244. package/src/ui/tabs/tabs.module.d.css.ts +6 -0
  245. package/src/ui/tabs/tabs.ts +24 -0
  246. package/src/ui/tag/tag.module.css +23 -0
  247. package/src/ui/tag/tag.module.d.css.ts +5 -0
  248. package/src/ui/tag/tag.ts +17 -0
  249. package/src/ui/tile/tile.module.css +137 -0
  250. package/src/ui/tile/tile.module.d.css.ts +13 -0
  251. package/src/ui/tile/tile.ts +69 -0
  252. package/src/ui/toasts/toasts.module.css +38 -0
  253. package/src/ui/toasts/toasts.module.d.css.ts +6 -0
  254. package/src/ui/toasts/toasts.ts +26 -0
  255. package/src/ui/toggle/toggle.module.css +46 -0
  256. package/src/ui/toggle/toggle.module.d.css.ts +6 -0
  257. package/src/ui/toggle/toggle.ts +29 -0
  258. package/src/ui/trail/trail.module.css +42 -0
  259. package/src/ui/trail/trail.module.d.css.ts +5 -0
  260. package/src/ui/trail/trail.ts +28 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colour.d.ts","sourceRoot":"","sources":["../../../src/standard/colour/colour.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,iFAAiF;AACjF,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAA;IAClB,Q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E,KAAK,EAAE,GAAG;aAAE,IAAI,EAAE,GAAG;aAAE,IAAI,EAAE,GAAG;aAAE,MAAM,EAAE,GAAG;CAAW,CAAA"}
@@ -0,0 +1,91 @@
1
+ /**
2
+ * `field`, `textarea` and `select`: a labelled input.
3
+ *
4
+ * @since 0.4.0
5
+ */
6
+ import type { Html } from "effect/ui/html";
7
+ import { type Node } from "../../Node.ts";
8
+ import { type Icon } from "../icon/icon.ts";
9
+ /** What every input has around it: its name, its label, and what is said about it. */
10
+ export interface Frame {
11
+ readonly name: string;
12
+ readonly label: string;
13
+ /** What to enter, shown under the field. */
14
+ readonly hint?: string;
15
+ /** What is wrong with the value as it stands. It colours the field red and is read out. */
16
+ readonly error?: string | null;
17
+ /** It has to be filled in: the label says so, and so does a screen reader. The Model still checks it. */
18
+ readonly required?: boolean;
19
+ readonly disabled?: boolean;
20
+ /** Given when the caret leaves the field: the moment to check what was typed. */
21
+ readonly onBlur?: unknown;
22
+ }
23
+ /** One thing to do with what is typed, as a button at the end of the box: clear it, show it, paste into it. */
24
+ export interface Action<Msg> {
25
+ readonly icon: Icon;
26
+ /** What the button does, for a screen reader. */
27
+ readonly label: string;
28
+ readonly onPress: Msg;
29
+ }
30
+ export declare const field: <Msg>(h: Html.H<Msg>) => {
31
+ /** A labelled text input, a filled block that is framed only while it is written in, with the error the Model holds for it. */
32
+ field: (options: Omit<Frame, "onBlur"> & {
33
+ readonly value: string;
34
+ readonly onInput: (value: string) => Msg;
35
+ readonly onBlur?: Msg;
36
+ readonly type?: "text" | "email" | "password" | "search" | "tel" | "url" | "number" | "date" | "time" | "datetime-local" | "month";
37
+ readonly placeholder?: string;
38
+ /** A pictogram at the start of the box that says what goes in it: a magnifier for a search, a lock for a password. */
39
+ readonly icon?: Icon;
40
+ /** Words before what is typed, such as a currency or a country code. They are read out with the label. */
41
+ readonly prefix?: string;
42
+ /** Words after what is typed, such as a unit. They are read out with the label. */
43
+ readonly suffix?: string;
44
+ /** A button at the end of the box. */
45
+ readonly action?: Action<Msg>;
46
+ /** The keyboard a touch screen offers: the digits for a code, the digits and a point for an amount. */
47
+ readonly inputMode?: "text" | "numeric" | "decimal" | "tel" | "email" | "url" | "search";
48
+ /** What the browser may fill in, by the names of HTML's `autocomplete`: `"email"`, `"current-password"`, `"one-time-code"`, or `"off"`. */
49
+ readonly autoComplete?: string;
50
+ /** The field the keyboard is in when the page, or the sheet or dialog it is in, opens. One at most. */
51
+ readonly autoFocus?: boolean;
52
+ /** The most characters it takes. The count is shown across from the label. */
53
+ readonly maxLength?: number;
54
+ /** The least, the most and the step of a number, a date or a time. */
55
+ readonly min?: number | string;
56
+ readonly max?: number | string;
57
+ readonly step?: number | string;
58
+ /** It shows a value that can be copied but not changed, and is drawn as a block, not as a box. */
59
+ readonly readOnly?: boolean;
60
+ /** Values the browser suggests as the person types. */
61
+ readonly suggestions?: ReadonlyArray<string>;
62
+ }) => Node<"block", Msg>;
63
+ /** A labelled text input of several lines. It grows with what is typed. */
64
+ textarea: (options: Omit<Frame, "onBlur"> & {
65
+ readonly value: string;
66
+ readonly onInput: (value: string) => Msg;
67
+ readonly onBlur?: Msg;
68
+ readonly placeholder?: string;
69
+ /** How many lines it is high while it is empty. Three, unless said. */
70
+ readonly rows?: number;
71
+ /** The most characters it takes. The count is shown across from the label. */
72
+ readonly maxLength?: number;
73
+ /** It shows a value that can be copied but not changed, and is drawn as a block, not as a box. */
74
+ readonly readOnly?: boolean;
75
+ }) => Node<"block", Msg>;
76
+ /** A labelled choice from a list, using the browser's own picker: a wheel under a finger, a dropdown under a mouse. */
77
+ select: <A extends string>(options: Omit<Frame, "onBlur"> & {
78
+ readonly value: A;
79
+ readonly onChange: (value: string) => Msg;
80
+ readonly options: ReadonlyArray<{
81
+ readonly value: A;
82
+ readonly label: string;
83
+ readonly disabled?: boolean;
84
+ }>;
85
+ /** What is shown while nothing is chosen: while the value is none of the options. It cannot be chosen itself. */
86
+ readonly placeholder?: string;
87
+ /** A pictogram at the start of the box that says what is chosen in it. */
88
+ readonly icon?: Icon;
89
+ }) => Node<"block", Msg>;
90
+ };
91
+ //# sourceMappingURL=field.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../src/standard/field/field.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAQ,KAAK,IAAI,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,KAAK,IAAI,EAAU,MAAM,iBAAiB,CAAA;AAGnD,sFAAsF;AACtF,MAAM,WAAW,KAAK;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,4CAA4C;IAC5C,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,2FAA2F;IAC3F,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,yGAAyG;IACzG,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,iFAAiF;IACjF,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,+GAA+G;AAC/G,MAAM,WAAW,MAAM,CAAC,GAAG;IACzB,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAA;IACnB,iDAAiD;IACjD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAA;CACtB;AAqCD,eAAO,MAAM,KAAK,GAAI,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC;IAmBrC,+HAA+H;IAC/H,KAAK,YACM,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG;QAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;QACtB,QAAQ,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C;CAsCxB,CAAA"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * `form`: fields, and what sends them.
3
+ *
4
+ * @since 0.4.0
5
+ */
6
+ import type { Html } from "effect/ui/html";
7
+ import { type Child, type Kind, type Node } from "../../Node.ts";
8
+ import type { Space } from "../tokens/tokens.ts";
9
+ export declare const form: <Msg>(h: Html.H<Msg>) => {
10
+ /** A form. Its children stack, and the browser's own validation is off: the Model says what is wrong. */
11
+ form: <R = never>(options: {
12
+ readonly onSubmit: Msg;
13
+ readonly gap?: Space;
14
+ }, ...children: ReadonlyArray<Child<Kind, Msg, R>>) => Node<"block", Msg, R>;
15
+ };
16
+ //# sourceMappingURL=form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/standard/form/form.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,KAAK,KAAK,EAAqB,KAAK,IAAI,EAAQ,KAAK,IAAI,EAAE,MAAM,eAAe,CAAA;AAGzF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAEhD,eAAO,MAAM,IAAI,GAAI,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC;IACtC,yGAAyG;IACzG,IAAI,GAAG,CAAC,GAAG,KAAK,WACL;QAAE,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC;QAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,KAAK,CAAA;KAAE,eAC5C,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,KAC9C,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;CAQxB,CAAA"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * `icon`: a pictogram.
3
+ *
4
+ * @since 0.4.0
5
+ */
6
+ import { Schema } from "effect";
7
+ import type { Html } from "effect/ui/html";
8
+ import { type Node } from "../../Node.ts";
9
+ /**
10
+ * The pictograms: a small selection from Material Symbols, in its sharp,
11
+ * filled, bold style, under the family's own names. One that is missing is
12
+ * added here and to the stylesheet beside this file, where a name with no
13
+ * class doesn't compile.
14
+ */
15
+ export declare const Icon: Schema.Literals<readonly ["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"]>;
16
+ export type Icon = typeof Icon.Type;
17
+ /** The pictogram itself, for a builder that has one in it. A screen reader reads it out only when it is given a label. One that `leads` a word keeps its distance from it. */
18
+ export declare const iconOf: <Msg>(h: Html.H<Msg>, name: Icon, label?: string, leads?: boolean) => Html.Element<Msg, never, Html.Events, HTMLSpanElement, "span">;
19
+ /** A pictogram before words, with the space that separates it from them: half an em, with what the stylesheet adds. Nothing when there is none. */
20
+ export declare const leading: <Msg>(h: Html.H<Msg>, name: Icon | undefined) => (string | Html.Element<Msg, never, Html.Events, HTMLSpanElement, "span">)[];
21
+ export declare const icon: <Msg>(h: Html.H<Msg>) => {
22
+ /**
23
+ * A pictogram, set in the line like a letter: as high as the text, and in
24
+ * its colour. It goes beside a word, not in place of one; when it stands
25
+ * alone, give it a label, which is what a screen reader reads out.
26
+ * Without one it stands before its word: write a space between the two,
27
+ * and it is as far from the word as the pictogram of a button is.
28
+ */
29
+ icon: (name: Icon, label?: string) => Node<"inline", Msg>;
30
+ };
31
+ //# sourceMappingURL=icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/standard/icon/icon.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAQ,KAAK,IAAI,EAAE,MAAM,eAAe,CAAA;AAG/C;;;;;GAKG;AACH,eAAO,MAAM,IAAI,2vCA2Gf,CAAA;AACF,MAAM,MAAM,IAAI,GAAG,OAAO,IAAI,CAAC,IAAI,CAAA;AAEnC,8KAA8K;AAC9K,eAAO,MAAM,MAAM,GAAI,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,IAAI,UAAU,MAAM,oFAKJ,CAAA;AAElE,mJAAmJ;AACnJ,eAAO,MAAM,OAAO,GAAI,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,IAAI,GAAG,SAAS,gFACA,CAAA;AAEnE,eAAO,MAAM,IAAI,GAAI,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC;IACtC;;;;;;OAMG;IACH,IAAI,SAAS,IAAI,UAAU,MAAM,KAAG,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC;CACvD,CAAA"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * `image`: a picture, cropped to a ratio.
3
+ *
4
+ * @since 0.4.0
5
+ */
6
+ import type { Html } from "effect/ui/html";
7
+ import { type Node } from "../../Node.ts";
8
+ import type { Ratio } from "../tokens/tokens.ts";
9
+ export declare const image: <Msg>(h: Html.H<Msg>) => {
10
+ /**
11
+ * An image, cropped to a ratio. With a `caption`, it is a figure: the
12
+ * caption is set small under it, and belongs to it for a screen reader.
13
+ */
14
+ image: (options: {
15
+ readonly src: string;
16
+ readonly alt: string;
17
+ readonly ratio?: Ratio;
18
+ readonly caption?: string;
19
+ }) => Node<"block", Msg>;
20
+ };
21
+ //# sourceMappingURL=image.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../src/standard/image/image.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAQ,KAAK,IAAI,EAAE,MAAM,eAAe,CAAA;AAG/C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAIhD,eAAO,MAAM,KAAK,GAAI,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC;IACvC;;;OAGG;IACH,KAAK,YAAY;QACf,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;QACpB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;QACpB,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAA;QACtB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAC1B,KAAG,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC;CAetB,CAAA"}
@@ -0,0 +1,73 @@
1
+ /**
2
+ * The layout: `section`, `grid`, `col`, `stack`, `row` and `rule`.
3
+ *
4
+ * @since 0.4.0
5
+ */
6
+ import type { Html } from "effect/ui/html";
7
+ import { type Child, type Kind, type Node } from "../../Node.ts";
8
+ import type { Align, Colour, Landmark, Only, Space, Span, Tone } from "../tokens/tokens.ts";
9
+ export declare const layout: <Msg>(h: Html.H<Msg>) => {
10
+ /** A full-width region with its own ground, accent colour and padding. Its children stack. */
11
+ section: <R = never>(options: {
12
+ readonly as?: Landmark;
13
+ readonly tone?: Tone;
14
+ readonly accent?: Colour;
15
+ readonly pad?: Space;
16
+ readonly gap?: Space;
17
+ readonly label?: string;
18
+ /** Its text can be selected and copied. No text can be, unless a region says so. */
19
+ readonly select?: boolean;
20
+ }, ...children: ReadonlyArray<Child<Kind, Msg, R>>) => Node<"block", Msg, R>;
21
+ /**
22
+ * The twelve columns. Children are `s.col`s, and anything else takes the
23
+ * full width. A grid directly inside a column continues the columns of the
24
+ * grid above it instead of starting its own.
25
+ */
26
+ grid: <R = never>(options: {
27
+ readonly gap?: Space;
28
+ readonly align?: Align;
29
+ }, ...children: ReadonlyArray<Child<Kind, Msg, R>>) => Node<"block", Msg, R>;
30
+ /**
31
+ * A run of columns in a grid. Its children stack. A `start` that would
32
+ * push the span past the twelfth column shortens the span.
33
+ */
34
+ col: <R = never>(options: {
35
+ readonly span: Span;
36
+ readonly start?: Span;
37
+ readonly gap?: Space;
38
+ readonly align?: Align;
39
+ readonly only?: Only;
40
+ /** Stays in view while the rest of its row scrolls past. */
41
+ readonly sticky?: boolean;
42
+ /**
43
+ * Its first child takes whatever height the row leaves over. Columns
44
+ * side by side are as high as the highest of them: with this, what is
45
+ * in them is too, and whatever comes under it sits on one line.
46
+ */
47
+ readonly fill?: boolean;
48
+ }, ...children: ReadonlyArray<Child<Kind, Msg, R>>) => Node<"block", Msg, R>;
49
+ /**
50
+ * Children one under the other. With `as` it is a landmark as well: an
51
+ * article in a column of a page, or an aside beside one. A `section` is a
52
+ * region as wide as the page; this is one inside it.
53
+ */
54
+ stack: <R = never>(options: {
55
+ readonly as?: Landmark;
56
+ readonly label?: string;
57
+ readonly gap?: Space;
58
+ readonly only?: Only;
59
+ /** Its text can be selected and copied. No text can be, unless a region says so. */
60
+ readonly select?: boolean;
61
+ }, ...children: ReadonlyArray<Child<Kind, Msg, R>>) => Node<"block", Msg, R>;
62
+ /** Children side by side from the left, wrapping when they run out of room. */
63
+ row: <R = never>(options: {
64
+ readonly gap?: Space;
65
+ readonly align?: Align;
66
+ }, ...children: ReadonlyArray<Child<Kind, Msg, R>>) => Node<"block", Msg, R>;
67
+ /** A horizontal line. */
68
+ rule: (options?: {
69
+ readonly weight?: "hair" | "bold";
70
+ readonly accent?: boolean;
71
+ }) => Node<"block", Msg>;
72
+ };
73
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../src/standard/layout/layout.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,KAAK,KAAK,EAAqB,KAAK,IAAI,EAAQ,KAAK,IAAI,EAAE,MAAM,eAAe,CAAA;AAGzF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAE3F,eAAO,MAAM,MAAM,GAAI,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC;IACxC,8FAA8F;IAC9F,OAAO,GAAG,CAAC,GAAG,KAAK,WACR;QACP,QAAQ,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAA;QACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,CAAA;QACpB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;QACxB,QAAQ,CAAC,GAAG,CAAC,EAAE,KAAK,CAAA;QACpB,QAAQ,CAAC,GAAG,CAAC,EAAE,KAAK,CAAA;QACpB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;QACvB,oFAAoF;QACpF,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;KAC1B,eACY,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,KAC9C,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,CA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E,CAAC,CAAC,CAAC,KAC9C,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAaxB,+EAA+E;IAC/E,GAAG,GAAG,CAAC,GAAG,KAAK,WACJ;QAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC;QAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAE,eAC5C,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,KAC9C,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAGxB,yBAAyB;IACzB,IAAI,aAAY;QAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,KAAQ,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC;CAQ1G,CAAA"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * `list`: items one under the other.
3
+ *
4
+ * @since 0.4.0
5
+ */
6
+ import type { Html } from "effect/ui/html";
7
+ import { type Child, type Kind, type Node } from "../../Node.ts";
8
+ export declare const list: <Msg>(h: Html.H<Msg>) => {
9
+ /** A list. Each child is an item, and a hole is no item. */
10
+ list: <R = never>(options: {
11
+ readonly marker?: "dash" | "number" | "none";
12
+ readonly ruled?: boolean;
13
+ }, ...items: ReadonlyArray<Child<Kind, Msg, R>>) => Node<"block", Msg, R>;
14
+ /**
15
+ * Facts about one thing: each a name and what it is, such as the number of
16
+ * an account or the date of a payment. The names are set small above their
17
+ * values, or beside them with `beside`.
18
+ */
19
+ facts: <R = never>(options: {
20
+ readonly beside?: boolean;
21
+ }, ...items: ReadonlyArray<{
22
+ readonly name: string;
23
+ readonly value: Child<"inline", Msg, R>;
24
+ } | false | null | undefined>) => Node<"block", Msg, R>;
25
+ };
26
+ //# sourceMappingURL=list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/standard/list/list.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,KAAK,KAAK,EAAqB,KAAK,IAAI,EAAQ,KAAK,IAAI,EAAE,MAAM,eAAe,CAAA;AAGzF,eAAO,MAAM,IAAI,GAAI,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC;IACtC,4DAA4D;IAC5D,IAAI,GAAG,CAAC,GAAG,KAAK,WACL;QAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,YACzE,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,KAC3C,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAgBxB;;;;OAIG;IACH,KAAK,GAAG,CAAC,GAAG,KAAK,WACN;QAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,YAC5B,aAAa,CACrB;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,CAAA;KAAE,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAC9F,KACA,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;CAYxB,CAAA"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * `page`: the root of a page.
3
+ *
4
+ * @since 0.4.0
5
+ */
6
+ import type { Html } from "effect/ui/html";
7
+ import { type Child, type Kind, type Node } from "../../Node.ts";
8
+ import type { Colour, Scheme } from "../tokens/tokens.ts";
9
+ export declare const page: <Msg>(h: Html.H<Msg>) => {
10
+ /**
11
+ * The root of a page: sets the type, the ground and the accent colour, and
12
+ * 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.
14
+ */
15
+ page: <R = never>(options: {
16
+ readonly accent?: Colour;
17
+ readonly scheme?: Scheme;
18
+ }, ...children: ReadonlyArray<Child<Kind, Msg, R>>) => Node<"block", Msg, R>;
19
+ };
20
+ //# sourceMappingURL=page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../src/standard/page/page.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,KAAK,KAAK,EAAqB,KAAK,IAAI,EAAQ,KAAK,IAAI,EAAE,MAAM,eAAe,CAAA;AAGzF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAEzD,eAAO,MAAM,IAAI,GAAI,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC;IACtC;;;;OAIG;IACH,IAAI,GAAG,CAAC,GAAG,KAAK,WACL;QAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,eAClD,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,KAC9C,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;CAWxB,CAAA"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * `table`: a table of text.
3
+ *
4
+ * @since 0.4.0
5
+ */
6
+ import type { Html } from "effect/ui/html";
7
+ import { type Node } from "../../Node.ts";
8
+ export declare const table: <Msg>(h: Html.H<Msg>) => {
9
+ /** A table of text. Numeric columns are set flush right in tabular figures. */
10
+ table: (options: {
11
+ readonly columns: ReadonlyArray<{
12
+ readonly title: string;
13
+ readonly numeric?: boolean;
14
+ }>;
15
+ readonly rows: ReadonlyArray<ReadonlyArray<string>>;
16
+ }) => Node<"block", Msg>;
17
+ };
18
+ //# sourceMappingURL=table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/standard/table/table.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAQ,KAAK,IAAI,EAAE,MAAM,eAAe,CAAA;AAG/C,eAAO,MAAM,KAAK,GAAI,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC;IACvC,+EAA+E;IAC/E,KAAK,YAAY;QACf,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;YAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;SAAE,CAAC,CAAA;QACvF,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAA;KACpD,KAAG,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC;CAqBtB,CAAA"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * The text: `text`, `em`, `code`, `listing`, `quote`, `link` and `br`.
3
+ *
4
+ * @since 0.4.0
5
+ */
6
+ import type { Html } from "effect/ui/html";
7
+ import { type Child, type Node } from "../../Node.ts";
8
+ import type { Emphasis, Role } from "../tokens/tokens.ts";
9
+ export declare const text: <Msg>(h: Html.H<Msg>) => {
10
+ /** A block of text at one step of the type scale. */
11
+ text: <R = never>(role: Role, ...children: ReadonlyArray<Child<"inline", Msg, R>>) => Node<"block", Msg, R>;
12
+ /** A run of text set apart by weight or colour. */
13
+ em: <R = never>(emphasis: Emphasis, ...children: ReadonlyArray<Child<"inline", Msg, R>>) => Node<"inline", Msg, R>;
14
+ /** A run of code, in the one monospaced typeface. */
15
+ code: (text: string) => Node<"inline", Msg>;
16
+ /** A listing of code. It scrolls sideways instead of wrapping. With `select`, it can be selected and copied. */
17
+ listing: (options: {
18
+ readonly label?: string;
19
+ readonly select?: boolean;
20
+ }, text: string) => Node<"block", Msg>;
21
+ /**
22
+ * Somebody else's words, set apart from yours: a surface of its own, in
23
+ * the size of a lead. `by` is who said it and `from` is where, and a
24
+ * screen reader is told that the words are quoted.
25
+ */
26
+ quote: <R = never>(options: {
27
+ readonly by?: string;
28
+ readonly from?: string;
29
+ }, ...children: ReadonlyArray<Child<"inline", Msg, R>>) => Node<"block", Msg, R>;
30
+ /** A link. One that leaves the site says so with a pictogram; the one to the current page is marked. */
31
+ link: <R = never>(options: {
32
+ readonly href: string;
33
+ readonly external?: boolean;
34
+ readonly current?: boolean;
35
+ }, ...children: ReadonlyArray<Child<"inline", Msg, R>>) => Node<"inline", Msg, R>;
36
+ /** A line break. */
37
+ br: Node<"inline", Msg, never>;
38
+ };
39
+ //# sourceMappingURL=text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/standard/text/text.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,KAAK,KAAK,EAA2B,KAAK,IAAI,EAAE,MAAM,eAAe,CAAA;AAI9E,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAIzD,eAAO,MAAM,IAAI,GAAI,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC;IACtC,qDAAqD;IACrD,IAAI,GAAG,CAAC,GAAG,KAAK,QAAQ,IAAI,eAAe,aAAa,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,KAAG,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAGzG,mDAAmD;IACnD,EAAE,GAAG,CAAC,GAAG,KAAK,YAAY,QAAQ,eAAe,aAAa,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,KAAG,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;IAGhH,qDAAqD;IACrD,IAAI,SAAS,MAAM,KAAG,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC;IAEzC,gHAAgH;IAChH,OAAO,YAAY;QAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;KAAE,QAAQ,MAAM,KAAG,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC;IAS5G;;;;OAIG;IACH,KAAK,GAAG,CAAC,GAAG,KAAK,WACN;QAAE,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,eAC5C,aAAa,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,KAClD,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAexB,wGAAwG;IACxG,IAAI,GAAG,CAAC,GAAG,KAAK,WACL;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,eAC9E,aAAa,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,KAClD,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC;IAWzB,oBAAoB;IACpB,EAAE;CACF,CAAA"}
@@ -0,0 +1,16 @@
1
+ import type { Align, Colour, Space, Tone } from "./tokens.ts";
2
+ /** The class a token stands for, or none when the option was left out. */
3
+ export declare const on: <A>(value: A | undefined, name: (value: A) => string) => string | undefined;
4
+ /** The class that sets a ground's colours. The element paints them with `--s-bg` and `--s-fg`. */
5
+ export declare const tone: (name: Tone) => string;
6
+ /** The class that sets `--s-accent` and `--s-on-accent` to a colour. */
7
+ export declare const accent: (colour: Colour) => string;
8
+ /** The class of a region whose text can be selected. No text can be, without it. */
9
+ export declare const selectable: string;
10
+ /** The class that sets `--s-gap`. */
11
+ export declare const gap: (space: Space) => string;
12
+ /** The class that sets `--s-pad`. */
13
+ export declare const pad: (space: Space) => string;
14
+ /** The class that sets `--s-align`. */
15
+ export declare const align: (name: Align) => string;
16
+ //# sourceMappingURL=classes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"classes.d.ts","sourceRoot":"","sources":["../../../src/standard/tokens/classes.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAE7D,0EAA0E;AAC1E,eAAO,MAAM,EAAE,GAAI,CAAC,SAAS,CAAC,GAAG,SAAS,QAAQ,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,KAAG,MAAM,GAAG,SACnC,CAAA;AAE/C,kGAAkG;AAClG,eAAO,MAAM,IAAI,SAAU,IAAI,KAAG,MAAgC,CAAA;AAElE,wEAAwE;AACxE,eAAO,MAAM,MAAM,WAAY,MAAM,KAAG,MAAoC,CAAA;AAE5E,oFAAoF;AACpF,eAAO,MAAM,UAAU,EAAE,MAA0B,CAAA;AAEnD,qCAAqC;AACrC,eAAO,MAAM,GAAG,UAAW,KAAK,KAAG,MAAgC,CAAA;AAEnE,qCAAqC;AACrC,eAAO,MAAM,GAAG,UAAW,KAAK,KAAG,MAAgC,CAAA;AAEnE,uCAAuC;AACvC,eAAO,MAAM,KAAK,SAAU,KAAK,KAAG,MAAiC,CAAA"}
@@ -0,0 +1,162 @@
1
+ /**
2
+ * The tokens: every visual choice a builder takes is one of these.
3
+ *
4
+ * @since 0.4.0
5
+ */
6
+ import { Schema } from "effect";
7
+ /** How many of the twelve columns something takes, or the column it starts at. */
8
+ export declare const Span: Schema.Literals<readonly [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]>;
9
+ export type Span = typeof Span.Type;
10
+ /** A distance, in units of half a baseline (8px at the default size). */
11
+ export declare const Space: Schema.Literals<readonly [0, 1, 2, 3, 4, 6, 8, 12, 16, 24]>;
12
+ export type Space = typeof Space.Type;
13
+ /**
14
+ * The colours. Swiss Style does not limit how much colour is used: it asks
15
+ * that colour be flat and mean something. Any region can pick its own.
16
+ */
17
+ export declare const Colour: Schema.Literals<readonly ["red", "orange", "yellow", "green", "teal", "blue", "purple", "grey"]>;
18
+ export type Colour = typeof Colour.Type;
19
+ /**
20
+ * Whether a page is in the light or the dark scheme. In the light it is
21
+ * ink on paper; in the dark the two swap places, and everything set in
22
+ * them follows. `auto` is the scheme the reader has chosen in their system
23
+ * settings.
24
+ */
25
+ export declare const Scheme: Schema.Literals<readonly ["auto", "light", "dark"]>;
26
+ export type Scheme = typeof Scheme.Type;
27
+ /** The ground a region is set on. Paper is what the page is printed on, and ink what it is printed in. */
28
+ export declare const Tone: Schema.Literals<readonly ["paper", "ink", "accent"]>;
29
+ export type Tone = typeof Tone.Type;
30
+ /** The steps of the type scale. */
31
+ export declare const Role: Schema.Literals<readonly ["display", "title", "heading", "lead", "body", "caption", "label"]>;
32
+ export type Role = typeof Role.Type;
33
+ /** How a run of text differs from the text around it. */
34
+ export declare const Emphasis: Schema.Literals<readonly ["strong", "muted", "accent"]>;
35
+ export type Emphasis = typeof Emphasis.Type;
36
+ /** Where things sit on the cross axis of their layout. Never the centre. */
37
+ export declare const Align: Schema.Literals<readonly ["start", "end", "baseline", "stretch"]>;
38
+ export type Align = typeof Align.Type;
39
+ /** The aspect ratio of an image. */
40
+ export declare const Ratio: Schema.Literals<readonly ["1/1", "4/3", "3/2", "16/9", "3/4", "2/3"]>;
41
+ export type Ratio = typeof Ratio.Type;
42
+ /**
43
+ * The way the window moves over the canvas in a change of view, for
44
+ * `$.viewTransition(travel)` in `update`: `forward` and `back` along the
45
+ * line of reading, `down` and `up` along the page, and one of each for a
46
+ * diagonal. `Standard.travel` works it out from the route table.
47
+ */
48
+ export declare const Travel: Schema.Literals<readonly ["forward", "back", "down", "up"]>;
49
+ export type Travel = typeof Travel.Type;
50
+ /** A route table, as `Route.union` of `effect/ui` makes it: all that `travel` and `canvas` read of one. */
51
+ export interface Routes {
52
+ readonly routes: {
53
+ readonly [tag: string]: {
54
+ readonly path: string;
55
+ readonly params: {
56
+ readonly [name: string]: unknown;
57
+ };
58
+ };
59
+ };
60
+ readonly catchAll: string | undefined;
61
+ readonly Type: {
62
+ readonly _tag: string;
63
+ };
64
+ }
65
+ /**
66
+ * The way from one route to another, for `$.viewTransition(...)`. An app is
67
+ * one canvas without edges, and the screen is a window onto it: every route
68
+ * has a place there, and a change of route is the window moving from one
69
+ * place to another. What is in the window then slides the other way, as
70
+ * what is seen through a window does when the window moves, and whatever
71
+ * has its own view-transition name, such as a navigator, stays where it is.
72
+ *
73
+ * The place of a route is not for the app to say. The route table says it,
74
+ * and so the addresses of an app have to be written the way its canvas is
75
+ * drawn: `/section/page`, and under a page whatever is under it.
76
+ *
77
+ * - The first segment is the section, and sections lie along the line of
78
+ * reading in the order the table first names them: from `/read/…` to
79
+ * `/settings/…` is `forward`.
80
+ * - The second segment is the page, and the pages of a section lie down
81
+ * the page in the order the table declares them: from `/read/latest` to
82
+ * `/read/archive` is `down`. Every section starts at the top, so from the
83
+ * second page of one to the fifth of another is `forward` and `down`,
84
+ * and to the first of another `forward` and `up`.
85
+ * - Each segment after that is a step `forward` from the page it is under:
86
+ * `/read/topics/:id` is straight along from `/read/topics`. Params that
87
+ * follow one another are one step between them: `/read/latest/:date/:id`
88
+ * is as far along as `/read/topics/:id`.
89
+ * - A param takes as many places as its `Schema.Literals` has literals, in
90
+ * the order they are given. A param of any other Schema takes one place,
91
+ * and two of its values are in the order a list of them would be read
92
+ * in: numbers as numbers, `"B9"` before `"B10"`, `"2026-11-24"` before
93
+ * `"2026-12-02"`. So an address that should lie in the order of its date
94
+ * has the date in it.
95
+ *
96
+ * No way at all when the places are the same.
97
+ *
98
+ * **Example** (Moving the window in `update`)
99
+ *
100
+ * ```ts
101
+ * Navigated: ($, { route }) =>
102
+ * $.evolve({ route }).viewTransition(Standard.travel(AppRoute, $.model.route, route))
103
+ * ```
104
+ *
105
+ * @since 0.4.0
106
+ */
107
+ export declare const travel: <R extends Routes>(routes: R, from: R["Type"], to: R["Type"]) => ReadonlyArray<Travel>;
108
+ /**
109
+ * A place on a canvas that is drawn by hand: one address, as a route, or
110
+ * every address of a route, as its tag.
111
+ */
112
+ export type Spot<R extends Routes> = R["Type"]["_tag"] | R["Type"];
113
+ /** A page of a section, and with `under`, what is under it: each of those a step forward from it, and listed downwards. */
114
+ export type Page<R extends Routes> = Spot<R> | {
115
+ readonly at: Spot<R>;
116
+ readonly under: ReadonlyArray<Page<R>>;
117
+ };
118
+ /** A canvas drawn by hand: it says the way from one route to another, as `travel` does. */
119
+ export interface Canvas<R extends Routes> {
120
+ readonly travel: (from: R["Type"], to: R["Type"]) => ReadonlyArray<Travel>;
121
+ }
122
+ /**
123
+ * The canvas of an app whose addresses are not written the way it is drawn.
124
+ * `travel` reads the canvas off the addresses, which is why they have to be
125
+ * `/section/page`. With this the addresses are whatever people expect, `/`
126
+ * and `/posts/:id` and `/settings`, and the canvas is said once, here: the
127
+ * sections along the line of reading, in each its pages from the top down,
128
+ * and under a page whatever is a step forward from it.
129
+ *
130
+ * A place is a route, for one address, or the tag of a route, for all its
131
+ * addresses. Those are then in the order of their params: the literals of
132
+ * a `Schema.Literals` as given, any other values as a list of them would
133
+ * be read. An address is at the place that names it, and failing that at
134
+ * the place of its tag.
135
+ *
136
+ * Every route but the catch-all has to be somewhere on it, or this throws:
137
+ * a page can't be left off the map. A canvas is cheap to draw, so one that
138
+ * depends on the Model, such as the posts there are, is drawn in `update`.
139
+ *
140
+ * **Example** (A blog)
141
+ *
142
+ * ```ts
143
+ * const Canvas = Standard.canvas(BlogRoute, [
144
+ * [{ at: "Latest", under: ["Post"] }, "Archive", { at: "Topics", under: ["Topic"] }],
145
+ * ["Saved", "Write"],
146
+ * ["Display"]
147
+ * ])
148
+ *
149
+ * Navigated: ($, { route }) =>
150
+ * $.evolve({ route }).viewTransition(Canvas.travel($.model.route, route))
151
+ * ```
152
+ *
153
+ * @since 0.4.0
154
+ */
155
+ export declare const canvas: <R extends Routes>(routes: R, sections: ReadonlyArray<ReadonlyArray<Page<R>>>) => Canvas<R>;
156
+ /** The width of page something is shown at: every column side by side, or all of them collapsed into one. */
157
+ export declare const Only: Schema.Literals<readonly ["wide", "narrow"]>;
158
+ export type Only = typeof Only.Type;
159
+ /** The landmark a region is. */
160
+ export declare const Landmark: Schema.Literals<readonly ["section", "header", "main", "footer", "nav", "article", "aside"]>;
161
+ export type Landmark = typeof Landmark.Type;
162
+ //# sourceMappingURL=tokens.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/standard/tokens/tokens.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,kFAAkF;AAClF,eAAO,MAAM,IAAI,mEAA2D,CAAA;AAC5E,MAAM,MAAM,IAAI,GAAG,OAAO,IAAI,CAAC,IAAI,CAAA;AAEnC,yEAAyE;AACzE,eAAO,MAAM,KAAK,6DAAqD,CAAA;AACvE,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC,IAAI,CAAA;AAErC;;;GAGG;AACH,eAAO,MAAM,MAAM,kGAA0F,CAAA;AAC7G,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAA;AAEvC;;;;;GAKG;AACH,eAAO,MAAM,MAAM,qDAA6C,CAAA;AAChE,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,IAAI,CAAA;AAEvC,0GAA0G;AAC1G,eAAO,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