plggmatic 0.2.2 → 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 (159) hide show
  1. package/README.md +82 -0
  2. package/dist/Appearance/model/appearance.d.ts +91 -0
  3. package/dist/Appearance/model/appearance.d.ts.map +1 -0
  4. package/dist/Appearance/usecase/appearanceCss.d.ts +24 -0
  5. package/dist/Appearance/usecase/appearanceCss.d.ts.map +1 -0
  6. package/dist/Appearance/usecase/asAppearance.d.ts +13 -0
  7. package/dist/Appearance/usecase/asAppearance.d.ts.map +1 -0
  8. package/dist/Catalog/model/tool.d.ts.map +1 -1
  9. package/dist/Catalog/usecase/adapter.d.ts.map +1 -1
  10. package/dist/Catalog/usecase/catalog.d.ts.map +1 -1
  11. package/dist/Catalog/usecase/runFlow.d.ts.map +1 -1
  12. package/dist/Component/index.d.ts +3 -0
  13. package/dist/Component/index.d.ts.map +1 -1
  14. package/dist/Component/usecase/breadcrumb.d.ts.map +1 -1
  15. package/dist/Component/usecase/button.d.ts.map +1 -1
  16. package/dist/Component/usecase/checkbox.d.ts.map +1 -1
  17. package/dist/Component/usecase/colHead.d.ts.map +1 -1
  18. package/dist/Component/usecase/confirmDialog.d.ts.map +1 -1
  19. package/dist/Component/usecase/declaredForm.d.ts +89 -0
  20. package/dist/Component/usecase/declaredForm.d.ts.map +1 -0
  21. package/dist/Component/usecase/navTree.d.ts.map +1 -1
  22. package/dist/Component/usecase/properties.d.ts +59 -0
  23. package/dist/Component/usecase/properties.d.ts.map +1 -0
  24. package/dist/Component/usecase/selectInput.d.ts.map +1 -1
  25. package/dist/Component/usecase/sidebarNav.d.ts +78 -0
  26. package/dist/Component/usecase/sidebarNav.d.ts.map +1 -0
  27. package/dist/Component/usecase/textArea.d.ts.map +1 -1
  28. package/dist/Component/usecase/textInput.d.ts.map +1 -1
  29. package/dist/Component/usecase/textLink.d.ts.map +1 -1
  30. package/dist/Component/usecase/themeToggle.d.ts +6 -1
  31. package/dist/Component/usecase/themeToggle.d.ts.map +1 -1
  32. package/dist/Component/usecase/toast.d.ts.map +1 -1
  33. package/dist/Component/usecase/typography.d.ts.map +1 -1
  34. package/dist/Declare/model/Action.d.ts.map +1 -1
  35. package/dist/Declare/model/Adapter.d.ts.map +1 -1
  36. package/dist/Declare/model/Collection.d.ts.map +1 -1
  37. package/dist/Declare/model/Declaration.d.ts.map +1 -1
  38. package/dist/Declare/model/Menu.d.ts.map +1 -1
  39. package/dist/Declare/model/Query.d.ts.map +1 -1
  40. package/dist/Declare/model/Row.d.ts.map +1 -1
  41. package/dist/Declare/model/Source.d.ts.map +1 -1
  42. package/dist/Declare/usecase/apply.d.ts.map +1 -1
  43. package/dist/Declare/usecase/project.d.ts.map +1 -1
  44. package/dist/Declare/usecase/reconcile.d.ts.map +1 -1
  45. package/dist/Flow/model/forms.d.ts.map +1 -1
  46. package/dist/Flow/model/run.d.ts.map +1 -1
  47. package/dist/Flow/model/script.d.ts.map +1 -1
  48. package/dist/Flow/usecase/interpret.d.ts.map +1 -1
  49. package/dist/Flow/usecase/read.d.ts.map +1 -1
  50. package/dist/Form/model/submission.d.ts.map +1 -1
  51. package/dist/Form/usecase/controlParts.d.ts.map +1 -1
  52. package/dist/Form/usecase/formView.d.ts.map +1 -1
  53. package/dist/Form/usecase/parseForm.d.ts.map +1 -1
  54. package/dist/Layout/index.d.ts +6 -1
  55. package/dist/Layout/index.d.ts.map +1 -1
  56. package/dist/Layout/model/geometry.d.ts +97 -0
  57. package/dist/Layout/model/geometry.d.ts.map +1 -0
  58. package/dist/Layout/model/pane.d.ts.map +1 -1
  59. package/dist/Layout/model/reveal.d.ts +26 -0
  60. package/dist/Layout/model/reveal.d.ts.map +1 -0
  61. package/dist/Layout/usecase/combinators.d.ts +30 -1
  62. package/dist/Layout/usecase/combinators.d.ts.map +1 -1
  63. package/dist/Layout/usecase/preference.d.ts +27 -0
  64. package/dist/Layout/usecase/preference.d.ts.map +1 -0
  65. package/dist/Layout/usecase/revealColumn.d.ts +39 -0
  66. package/dist/Layout/usecase/revealColumn.d.ts.map +1 -0
  67. package/dist/Layout/usecase/workspace.d.ts +58 -0
  68. package/dist/Layout/usecase/workspace.d.ts.map +1 -0
  69. package/dist/Meta/model/classHooks.d.ts +257 -0
  70. package/dist/Meta/model/classHooks.d.ts.map +1 -0
  71. package/dist/Navigate/index.d.ts +20 -0
  72. package/dist/Navigate/index.d.ts.map +1 -0
  73. package/dist/Navigate/model/Composition.d.ts +50 -0
  74. package/dist/Navigate/model/Composition.d.ts.map +1 -0
  75. package/dist/Navigate/model/Trail.d.ts +84 -0
  76. package/dist/Navigate/model/Trail.d.ts.map +1 -0
  77. package/dist/Navigate/model/marker.d.ts +44 -0
  78. package/dist/Navigate/model/marker.d.ts.map +1 -0
  79. package/dist/Navigate/usecase/carouselScript.d.ts +26 -0
  80. package/dist/Navigate/usecase/carouselScript.d.ts.map +1 -0
  81. package/dist/Navigate/usecase/compositionUrl.d.ts +63 -0
  82. package/dist/Navigate/usecase/compositionUrl.d.ts.map +1 -0
  83. package/dist/Navigate/usecase/navigationScript.d.ts +16 -0
  84. package/dist/Navigate/usecase/navigationScript.d.ts.map +1 -0
  85. package/dist/Navigate/usecase/trailUrl.d.ts +61 -0
  86. package/dist/Navigate/usecase/trailUrl.d.ts.map +1 -0
  87. package/dist/Render/index.d.ts +1 -0
  88. package/dist/Render/index.d.ts.map +1 -1
  89. package/dist/Render/model/mode.d.ts.map +1 -1
  90. package/dist/Render/model/screen.d.ts.map +1 -1
  91. package/dist/Render/usecase/advanceColumns.d.ts +41 -0
  92. package/dist/Render/usecase/advanceColumns.d.ts.map +1 -0
  93. package/dist/Render/usecase/multiColumn.d.ts.map +1 -1
  94. package/dist/Render/usecase/parts.d.ts.map +1 -1
  95. package/dist/Render/usecase/renderMode.d.ts.map +1 -1
  96. package/dist/Render/usecase/singleColumn.d.ts.map +1 -1
  97. package/dist/Schedule/model/Model.d.ts.map +1 -1
  98. package/dist/Schedule/model/Msg.d.ts.map +1 -1
  99. package/dist/Schedule/model/Scene.d.ts.map +1 -1
  100. package/dist/Schedule/model/View.d.ts.map +1 -1
  101. package/dist/Schedule/usecase/chain.d.ts.map +1 -1
  102. package/dist/Schedule/usecase/codec.d.ts.map +1 -1
  103. package/dist/Schedule/usecase/lower.d.ts.map +1 -1
  104. package/dist/Schedule/usecase/scene.d.ts.map +1 -1
  105. package/dist/Schedule/usecase/schedule.d.ts.map +1 -1
  106. package/dist/Schedule/usecase/update.d.ts.map +1 -1
  107. package/dist/Shell/index.d.ts +21 -0
  108. package/dist/Shell/index.d.ts.map +1 -0
  109. package/dist/Shell/usecase/kit.d.ts +30 -0
  110. package/dist/Shell/usecase/kit.d.ts.map +1 -0
  111. package/dist/Shell/usecase/shell.d.ts +85 -0
  112. package/dist/Shell/usecase/shell.d.ts.map +1 -0
  113. package/dist/Style/index.d.ts +6 -0
  114. package/dist/Style/index.d.ts.map +1 -1
  115. package/dist/Style/model/appearance.d.ts.map +1 -1
  116. package/dist/Style/model/breakpoint.d.ts.map +1 -1
  117. package/dist/Style/model/componentSlot.d.ts +35 -0
  118. package/dist/Style/model/componentSlot.d.ts.map +1 -0
  119. package/dist/Style/model/hexColor.d.ts +3 -1
  120. package/dist/Style/model/hexColor.d.ts.map +1 -1
  121. package/dist/Style/model/metric.d.ts.map +1 -1
  122. package/dist/Style/model/palette.d.ts.map +1 -1
  123. package/dist/Style/model/syntax.d.ts.map +1 -1
  124. package/dist/Style/model/theme.d.ts +10 -0
  125. package/dist/Style/model/theme.d.ts.map +1 -1
  126. package/dist/Style/model/token.d.ts.map +1 -1
  127. package/dist/Style/model/typography.d.ts.map +1 -1
  128. package/dist/Style/model/zIndex.d.ts.map +1 -1
  129. package/dist/Style/usecase/appearanceScript.d.ts.map +1 -1
  130. package/dist/Style/usecase/carouselCss.d.ts +17 -0
  131. package/dist/Style/usecase/carouselCss.d.ts.map +1 -0
  132. package/dist/Style/usecase/chromeCss.d.ts.map +1 -1
  133. package/dist/Style/usecase/contrast.d.ts.map +1 -1
  134. package/dist/Style/usecase/metricCss.d.ts.map +1 -1
  135. package/dist/Style/usecase/runwayCss.d.ts +50 -0
  136. package/dist/Style/usecase/runwayCss.d.ts.map +1 -0
  137. package/dist/Style/usecase/schemeCss.d.ts.map +1 -1
  138. package/dist/Style/usecase/shareCss.d.ts +49 -0
  139. package/dist/Style/usecase/shareCss.d.ts.map +1 -0
  140. package/dist/Style/usecase/slotCss.d.ts +73 -0
  141. package/dist/Style/usecase/slotCss.d.ts.map +1 -0
  142. package/dist/Style/usecase/syntaxCss.d.ts.map +1 -1
  143. package/dist/Style/usecase/utilities.d.ts +1 -1
  144. package/dist/Style/usecase/utilities.d.ts.map +1 -1
  145. package/dist/Style/usecase/workspaceCss.d.ts +48 -0
  146. package/dist/Style/usecase/workspaceCss.d.ts.map +1 -0
  147. package/dist/System/usecase/systemCss.d.ts +43 -0
  148. package/dist/System/usecase/systemCss.d.ts.map +1 -0
  149. package/dist/brand.d.ts.map +1 -1
  150. package/dist/columnsEntry.d.ts +27 -0
  151. package/dist/columnsEntry.d.ts.map +1 -0
  152. package/dist/columnsEntry.es.js +492 -0
  153. package/dist/index.d.ts +23 -4
  154. package/dist/index.d.ts.map +1 -1
  155. package/dist/index.es.js +2649 -181
  156. package/dist/styleEntry.d.ts +12 -2
  157. package/dist/styleEntry.d.ts.map +1 -1
  158. package/dist/styleEntry.es.js +843 -44
  159. package/package.json +12 -8
package/README.md CHANGED
@@ -114,6 +114,88 @@ in [`packages/plggmatic-example/`](../plggmatic-example/) (`src/declaration.ts`
114
114
  the design record at
115
115
  [`.workaholic/specs/20260704-plggmatic-scheduler-design.md`](../../.workaholic/specs/20260704-plggmatic-scheduler-design.md).
116
116
 
117
+ ## The standard screen: what "build it with plggmatic" gives you
118
+
119
+ `shell(props)` draws it and `kitCss(theme)` is its whole stylesheet: a sidebar
120
+ pinned on the left (the product's name, sections as groups that open where
121
+ the reader is, a control that folds it, the appearance toggle at its foot)
122
+ and beside it the open pages sharing the width. One page fills the room; a
123
+ followed link opens its target to the right and the two stand side by side;
124
+ past what the window holds the strip scrolls and the carousel steps it.
125
+
126
+ ```ts
127
+ style.textContent = kitCss(defaultTheme);
128
+ // view:
129
+ shell({ brand, home, atHome, nav, folded, fold, foot, pages });
130
+ ```
131
+
132
+ **System and appearance are two things.** `systemCss` fixes structure and
133
+ behaviour — the frame, what a column is, how pages share the width, which
134
+ states exist — and contains no colour, font, border, radius, padding or
135
+ duration. An `Appearance` is a value that answers all of those, and
136
+ `appearanceCss` turns it into rules. `kitCss(theme, appearance)` is the two
137
+ in order; `kitSystemCss` and `kitAppearanceCss` are the halves, so a product
138
+ can swap its appearance at run time and nothing moves.
139
+
140
+ `monochrome` is the default appearance — one ink, square, inversion as the
141
+ only emphasis — and only a default: `soft` ships beside it to keep that
142
+ honest, and a product is expected to write its own
143
+ (`{ ...monochrome, radius: "6px", rule: "border" }`).
144
+
145
+ Settings read down a column use the **property list** (`propertyList`,
146
+ `propertyRow`, with `choice`, `entry` and `toggle` as the one control a row
147
+ holds).
148
+
149
+ `packages/plggmatic-example` opens on the **catalog** (`index.html`): the
150
+ design system's pages and live examples, shown in this screen.
151
+
152
+ ## The workspace: a pinned panel, a menu, a strip walked by a trail
153
+
154
+ What corpd, coop-planner and this package's own reference each wrote by hand
155
+ is one capability here. A product supplies its records and what each column
156
+ offers; the rest is the framework's.
157
+
158
+ - **Trail** (`Navigate`): `resolveTrail(resolver)(trail)` walks the steps
159
+ through the product's resolver and stops at the first step a column does
160
+ not offer, so a stale address folds to the deepest state it still names.
161
+ `foldTrail`, `stepFrom` and `restep` are the only ways a trail changes. The
162
+ address is `?x=<step>.<step>.…` (`decodeTrail`, `encodeTrail`,
163
+ `trailQuery`), spelled as corpd spells it; a step's meaning stays the
164
+ product's (`StepCodec`).
165
+ - **Geometry** (`Layout`): `stripGeometry(stripMetrics)(viewport, scroll,
166
+ menu)` gives the menu, column, pinned-panel and seam widths; `stripStyle`
167
+ writes them as custom properties (`stripVar`).
168
+ - **Frame**: `workspace` / `pinnedPanel` / `browser` / `menuColumn` /
169
+ `widthColumn("fit" | "wide" | "read")`, laid out by
170
+ `workspaceCss(theme)(workspaceOptions)` — the menu folds to a rail under
171
+ `menuCompactAttr`, and below `sm` the strip snaps one column per swipe.
172
+ - **Reveal**: `revealTarget` decides where a column comes to rest;
173
+ `revealColumn(strip, column, options)` glides there and yields to the
174
+ reader's first touch, wheel or key.
175
+ - **Sidebar**: `sidebarNav` with `sidebarNavCss` — ruled rows in titled
176
+ groups, the current row inverted, optional numbering and toggle groups.
177
+ - **Preference**: `readPreference` / `savePreference` remember a yes/no (the
178
+ rail) and read as "no" when storage refuses.
179
+
180
+ `packages/plggmatic-example` demo 4 (`demo4.html`) runs all of it together.
181
+
182
+ - **Shared strip** (`shareCss`, `shareClass`, `spanTwoClass`): the open
183
+ document columns divide the room right of whatever is pinned
184
+ (`shareInsetVar`), up to what the window holds — one column from the start,
185
+ two from 960px, three from 1760px. One column fills the room; a column past
186
+ the capacity does not squeeze the others, the strip scrolls. A `span-2`
187
+ column takes two columns' worth.
188
+ - **Carousel** (`carouselInitScript`, `carouselCss`): two controls at the
189
+ strip's edges that step it a column at a time, each shown only while there
190
+ is something its way.
191
+
192
+ A product that already draws its own columns takes the logic alone from
193
+ `plggmatic/columns` — the trail and its address, the geometry, the reveal and
194
+ the preference, about 21 KiB, reaching only `plgg`. The package root gathers
195
+ the whole framework into one file, which a bundler that inlines dependencies
196
+ whole would carry into the page (measured on corpd: +490 KiB per entry from
197
+ the root, +27 KiB from `plggmatic/columns`).
198
+
117
199
  ## Palette override & scheme persistence
118
200
 
119
201
  The color system is a closed role×variant matrix with a **monochrome default**.
@@ -0,0 +1,91 @@
1
+ import { type SoftStr } from "plgg";
2
+ import { type Color } from "../../Style/model/token";
3
+ /**
4
+ * How one state is shown: the fill behind it and the ink
5
+ * on it, both by role — so the mark reschemes with the
6
+ * palette like everything else.
7
+ */
8
+ export type Mark = Readonly<{
9
+ fill: Color;
10
+ ink: Color;
11
+ }>;
12
+ /**
13
+ * AN APPEARANCE: everything about how the framework's UI
14
+ * system LOOKS, and nothing about what it is.
15
+ *
16
+ * The UI system (`System`) fixes structure and behaviour:
17
+ * there is a sidebar and a strip of pages; every column is
18
+ * a head over a body that scrolls on its own; pages share
19
+ * the width, arrive by growing and leave by shrinking; the
20
+ * current thing and the link that opened a page are
21
+ * MARKED. None of that says a rule is black, a corner is
22
+ * square, or a mark is an inversion. Those are answers an
23
+ * appearance gives, and a product is expected to give its
24
+ * own: two products on this system looking nothing alike
25
+ * is the ordinary case, not an exception.
26
+ *
27
+ * An appearance is DATA — a value, not a stylesheet — so
28
+ * it can be compared, derived (`{ ...monochrome, radius:
29
+ * "6px" }`) and checked by the compiler, and so a new one
30
+ * cannot forget a decision: every field is required.
31
+ * {@link appearanceCss} turns one into rules.
32
+ *
33
+ * - type: `font`, `mono`, `size`, `leading`.
34
+ * - line: `rule` frames the columns and bars, `hairline`
35
+ * separates quieter things inside them, `ruleWidth`.
36
+ * - shape: `radius` of controls and boxes.
37
+ * - emphasis: `current` marks where the reader is (and
38
+ * what opened the page beside it), `hover` a row under
39
+ * the pointer, `press` a control or link being acted on.
40
+ * - density: `head` bar height, `gutter` beside rows and
41
+ * bars, `page` padding round a page's content.
42
+ * - depth: `elevation` of what floats (dialog, toast).
43
+ * - motion: `quick` for state changes, `arrive` / `leave`
44
+ * / `swap` for pages, `ease`.
45
+ */
46
+ export type Appearance = Readonly<{
47
+ name: SoftStr;
48
+ font: SoftStr;
49
+ mono: SoftStr;
50
+ size: SoftStr;
51
+ leading: SoftStr;
52
+ rule: Color;
53
+ hairline: Color;
54
+ ruleWidth: SoftStr;
55
+ radius: SoftStr;
56
+ current: Mark;
57
+ hover: Mark;
58
+ press: Mark;
59
+ head: SoftStr;
60
+ gutter: SoftStr;
61
+ page: SoftStr;
62
+ elevation: SoftStr;
63
+ quick: SoftStr;
64
+ arrive: SoftStr;
65
+ leave: SoftStr;
66
+ swap: SoftStr;
67
+ ease: SoftStr;
68
+ }>;
69
+ /**
70
+ * THE DEFAULT: monochrome. One ink — the frame is drawn,
71
+ * not shaded in grey, in a rule the palette holds one step
72
+ * under the text colour (full black on white, or white on
73
+ * dark, is harsher than a frame needs to be). Square. The only
74
+ * emphasis is inversion: the current thing swaps text and
75
+ * surface, and so does whatever is being pressed. Calm
76
+ * type on a 15px body.
77
+ *
78
+ * A default, not the system: nothing in `System` assumes
79
+ * any of this.
80
+ */
81
+ export declare const monochrome: Appearance;
82
+ /**
83
+ * A second appearance, shipped to keep the first honest:
84
+ * soft. Quiet grey rules, rounded corners, the current
85
+ * thing tinted rather than inverted, floating things
86
+ * lifted by a shadow, the platform's own type, slower
87
+ * motion. Same system, same markup, no rule in common
88
+ * with {@link monochrome} beyond what the type demands.
89
+ */
90
+ export declare const soft: Appearance;
91
+ //# sourceMappingURL=appearance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appearance.d.ts","sourceRoot":"","sources":["../../../src/Appearance/model/appearance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAEzD;;;;GAIG;AACH,MAAM,MAAM,IAAI,GAAG,QAAQ,CAAC;IAC1B,IAAI,EAAE,KAAK,CAAC;IACZ,GAAG,EAAE,KAAK,CAAC;CACZ,CAAC,CAAC;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,MAAM,UAAU,GAAG,QAAQ,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,KAAK,CAAC;IACZ,QAAQ,EAAE,KAAK,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,IAAI,CAAC;IACd,KAAK,EAAE,IAAI,CAAC;IACZ,KAAK,EAAE,IAAI,CAAC;IACZ,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;CACf,CAAC,CAAC;AAEH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,EAAE,UAyBxB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,IAAI,EAAE,UAyBlB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { type SoftStr } from "plgg";
2
+ import { type Theme } from "../../Style/model/theme";
3
+ import { type Appearance } from "../model/appearance";
4
+ /**
5
+ * AN APPEARANCE AS RULES: every visual decision of the UI
6
+ * system's parts, read from one {@link Appearance} value.
7
+ *
8
+ * The other half of `systemCss`, and deliberately its
9
+ * complement: this sheet positions nothing and sizes no
10
+ * layout — it only dresses what the system has already
11
+ * laid out. Swap the appearance and the same markup, in
12
+ * the same places, behaving the same way, looks like
13
+ * another product.
14
+ *
15
+ * Nothing here is a constant of the framework. A colour is
16
+ * a role resolved through the palette; a width, a radius,
17
+ * a duration, a font is the appearance's. The few literal
18
+ * lengths that remain are proportions of the type (an
19
+ * icon's box, a chevron's arms), not taste.
20
+ *
21
+ * Escape-safe (no `<`, `>`, `&`).
22
+ */
23
+ export declare const appearanceCss: (theme: Theme) => (a: Appearance) => SoftStr;
24
+ //# sourceMappingURL=appearanceCss.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appearanceCss.d.ts","sourceRoot":"","sources":["../../../src/Appearance/usecase/appearanceCss.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAGzD,OAAO,EACL,KAAK,UAAU,EAEhB,MAAM,uCAAuC,CAAC;AAE/C;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,aAAa,UAChB,KAAK,SACT,UAAU,KAAG,OAkLhB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { type Result, type InvalidError } from "plgg";
2
+ import { type Appearance } from "../model/appearance";
3
+ /**
4
+ * Validate an unknown value (a config file's `appearance`)
5
+ * into an {@link Appearance}. Every field is required: an
6
+ * appearance cannot leave a decision out, so a product
7
+ * that wants "the default but rounder" spreads the default
8
+ * and names what it changes
9
+ * (`{ ...monochrome, radius: "6px" }`). A failure names
10
+ * the field.
11
+ */
12
+ export declare const asAppearance: (value: unknown) => Result<Appearance, InvalidError>;
13
+ //# sourceMappingURL=asAppearance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asAppearance.d.ts","sourceRoot":"","sources":["../../../src/Appearance/usecase/asAppearance.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,YAAY,EASlB,MAAM,MAAM,CAAC;AAKd,OAAO,EACL,KAAK,UAAU,EAEhB,MAAM,uCAAuC,CAAC;AAkC/C;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,UAChB,OAAO,KACb,MAAM,CAAC,UAAU,EAAE,YAAY,CAgCjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["../../../src/Catalog/model/tool.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,GAAG,EACR,KAAK,IAAI,EAIV,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAEjE;;;;;;;;;;;;;;;;GAgB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I,KAC3B,IAAI,CAAC;IACV,cAAc,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACzC,CAAC,CAAC;AAEH,8DAA8D;AAC9D,eAAO,MAAM,iBAAiB,EAAE,YAG/B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,UAAU,aAET,CAAC,GAAG,EAAE,YAAY,KAAK,IAAI,OAChC,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,SAE5B,IAAI,WACF,OAAO,KAAG,IAQb,CAAC;AAEN;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,SAChB,YAAY,aACP,CAAC,CAAC,EAAE,IAAI,KAAK,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,QACxC,aAAa,CAAC,cAAc,CAAC,QAC7B,aAAa,CAAC,IAAI,CAAC,KACxB,aAAa,CAAC,cAAc,CAmB9B,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,cAClB,OAAO,KACjB,MAAM,CAAC,YAAY,CAwBrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/Catalog/usecase/catalog.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,KAAK,KAAK,EAYX,MAAM,gCAAgC,CAAC;AASxC,OAAO,EACL,KAAK,IAAI,EAOV,MAAM,8BAA8B,CAAC;AAEtC;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,MAAM,KAAK,CAAC;AAwSzB;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,GACpB,OAAO,KAAK,KACX,aAAa,CAAC,IAAI,CA8BpB,CAAC"}
1
+ {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../src/Catalog/usecase/catalog.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,KAAK,KAAK,EAYX,MAAM,gCAAgC,CAAC;AASxC,OAAO,EACL,KAAK,IAAI,EAOV,MAAM,8B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4BAA4B,CAAC;AACpC,OAAO,EACL,KAAK,WAAW,EAKjB,MAAM,0BAA0B,CAAC;AAOlC;;;;;;;;GAQG;AACH,MAAM,MAAM,QAAQ,GAAG,QAAQ,CAAC;IAC9B,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,CAAC,GAAG,EAAE,YAAY,KAAK,QAAQ,CAAC;CACzC,CAAC,CAAC;AAEH,gEAAgE;AAChE,eAAO,MAAM,QAAQ,cACR,SAAS,SACb,KAAK,KACX,QAOD,CAAC;AAEH;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,UAAU,GAClB,GAAG,CAAC,UAAU,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,GAC7C,GAAG,CAAC,SAAS,EAAE,aAAa,CAAC,GAC7B,GAAG,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;AAE5B,sCAAsC;AACtC,eAAO,MAAM,QAAQ,gBACN,aAAa,CAAC,aAAa,CAAC,KACxC,UAA0C,CAAC;AAE9C,qCAAqC;AACrC,eAAO,MAAM,OAAO,YACT,aAAa,KACrB,UAAqC,CAAC;AAEzC,iCAAiC;AACjC,eAAO,MAAM,GAAG,YACL,WAAW,KACnB,UAAiC,CAAC;AAErC,iDAAiD;AACjD,eAAO,MAAM,SAAS;;;;CACC,CAAC;AACxB,eAAO,MAAM,QAAQ;;;;CACC,CAAC;AACvB,eAAO,MAAM,IAAI;;;;CAAyB,CAAC;AAkH3C;;;;;GAKG;AACH,eAAO,MAAM,YAAY,gBACV,WAAW,KACvB,UAKA,CAAC;AA8CJ;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,WACV,OAAO,UACP,UAAU,QACZ,QAAQ,SACR,MAAM,KACX,UAQF,CAAC"}
@@ -17,12 +17,15 @@ export { type HeadingLevel, heading, prose, } from "./usecase/typography";
17
17
  export { type ThemeToggleProps, themeToggle, staticThemeToggle, themeToggleClass, themeToggleCss, } from "./usecase/themeToggle";
18
18
  export { type NavItem } from "./model/navItem";
19
19
  export { navTree } from "./usecase/navTree";
20
+ export { type NavGroup, type SidebarNavProps, sidebarNav, sidebarNavClass, sidebarNavCss, sidebarNavRevealScript, } from "./usecase/sidebarNav";
20
21
  export { type ColHeadProps, colHead, } from "./usecase/colHead";
21
22
  export { type Crumb, breadcrumb, } from "./usecase/breadcrumb";
22
23
  export { type TextInputProps, textInput, } from "./usecase/textInput";
23
24
  export { type TextAreaProps, textArea, } from "./usecase/textArea";
24
25
  export { type SelectOption, type SelectProps, selectInput, } from "./usecase/selectInput";
25
26
  export { type CheckboxProps, checkbox, } from "./usecase/checkbox";
27
+ export { type Control, type FormField, type FieldState, type DeclaredFormProps, fieldControl, declaredForm, } from "./usecase/declaredForm";
26
28
  export { type ConfirmDialogProps, confirmDialog, } from "./usecase/confirmDialog";
27
29
  export { type Tone, type ToastProps, tones, toast, toaster, } from "./usecase/toast";
30
+ export { type ChoiceProps, type EntryProps, type ToggleProps, propertyList, propertyRow, choice, entry, toggle, } from "./usecase/properties";
28
31
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Component/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EACL,KAAK,gBAAgB,EACrB,SAAS,EACT,QAAQ,EACR,QAAQ,GACT,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,KAAK,WAAW,EAChB,MAAM,GACP,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,KAAK,aAAa,EAClB,QAAQ,GACT,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,KAAK,YAAY,EACjB,OAAO,EACP,KAAK,GACN,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,KAAK,gBAAgB,EACrB,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,GACf,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EACL,KAAK,YAAY,EACjB,OAAO,GACR,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,KAAK,KAAK,EACV,UAAU,GACX,MAAM,wCAAwC,CAAC;AAKhD,OAAO,EACL,KAAK,cAAc,EACnB,SAAS,GACV,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,KAAK,aAAa,EAClB,QAAQ,GACT,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,WAAW,GACZ,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,KAAK,aAAa,EAClB,QAAQ,GACT,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,KAAK,kBAAkB,EACvB,aAAa,GACd,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,KAAK,IAAI,EACT,KAAK,UAAU,EACf,KAAK,EACL,KAAK,EACL,OAAO,GACR,MAAM,mCAAmC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Component/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EACL,KAAK,gBAAgB,EACrB,SAAS,EACT,QAAQ,EACR,QAAQ,GACT,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,KAAK,WAAW,EAChB,MAAM,GACP,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,KAAK,aAAa,EAClB,QAAQ,GACT,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,KAAK,YAAY,EACjB,OAAO,EACP,KAAK,GACN,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,KAAK,gBAAgB,EACrB,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,GACf,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,UAAU,EACV,eAAe,EACf,aAAa,EACb,sBAAsB,GACvB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,KAAK,YAAY,EACjB,OAAO,GACR,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,KAAK,KAAK,EACV,UAAU,GACX,MAAM,wCAAwC,CAAC;AAKhD,OAAO,EACL,KAAK,cAAc,EACnB,SAAS,GACV,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,KAAK,aAAa,EAClB,QAAQ,GACT,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,WAAW,GACZ,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,KAAK,aAAa,EAClB,QAAQ,GACT,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,YAAY,EACZ,YAAY,GACb,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACL,KAAK,kBAAkB,EACvB,aAAa,GACd,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,KAAK,IAAI,EACT,KAAK,UAAU,EACf,KAAK,EACL,KAAK,EACL,OAAO,GACR,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,YAAY,EACZ,WAAW,EACX,MAAM,EACN,KAAK,EACL,MAAM,GACP,MAAM,wCAAwC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/Component/usecase/breadcrumb.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,IAAI,EAOV,MAAM,WAAW,CAAC;AAKnB;;;;;;;GAOG;AACH,MAAM,MAAM,KAAK,GAAG,QAAQ,CAAC;IAC3B,KAAK,EAAE,OAAO,CAAC;IACf,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;CACrB,CAAC,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,GAAI,GAAG,EAC5B,QAAQ,aAAa,CAAC,KAAK,CAAC,KAC3B,IAAI,CAAC,GAAG,EAAE,KAAK,CAwDjB,CAAC"}
1
+ {"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/Component/usecase/breadcrumb.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,IAAI,EAOV,MAAM,WAAW,CAAC;AAUnB;;;;;;;GAOG;AACH,MAAM,MAAM,KAAK,GAAG,QAAQ,CAAC;IAC3B,KAAK,EAAE,OAAO,CAAC;IACf,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;CACrB,CAAC,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,UAAU,GAAI,GAAG,UACpB,aAAa,CAAC,KAAK,CAAC,KAC3B,IAAI,CAAC,GAAG,EAAE,KAAK,CAgDjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/Component/usecase/button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EACL,KAAK,IAAI,EAMV,MAAM,WAAW,CAAC;AAmBnB;;;;;GAKG;AACH,MAAM,MAAM,WAAW,CAAC,GAAG,IAAI,QAAQ,CAAC;IACtC,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC,CAAC;AAEH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,MAAM,GAAI,GAAG,EACxB,OAAO,WAAW,CAAC,GAAG,CAAC,KACtB,IAAI,CAAC,GAAG,EAAE,QAAQ,CAwBlB,CAAC"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/Component/usecase/button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EACL,KAAK,IAAI,EAMV,MAAM,WAAW,CAAC;AAkBnB;;;;;GAKG;AACH,MAAM,MAAM,WAAW,CAAC,GAAG,IAAI,QAAQ,CAAC;IACtC,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC,CAAC;AAEH;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,MAAM,GAAI,GAAG,SACjB,WAAW,CAAC,GAAG,CAAC,KACtB,IAAI,CAAC,GAAG,EAAE,QAAQ,CAuBlB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/Component/usecase/checkbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EACL,KAAK,IAAI,EAaV,MAAM,WAAW,CAAC;AAKnB;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,CAAC,GAAG,IAAI,QAAQ,CAAC;IACxC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,GAAG,CAAC;CACf,CAAC,CAAC;AAEH,eAAO,MAAM,QAAQ,GAAI,GAAG,EAC1B,OAAO,aAAa,CAAC,GAAG,CAAC,KACxB,IAAI,CAAC,GAAG,EAAE,KAAK,CAsCf,CAAC"}
1
+ {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/Component/usecase/checkbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EACL,KAAK,IAAI,EAaV,MAAM,WAAW,CAAC;AAWnB;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,CAAC,GAAG,IAAI,QAAQ,CAAC;IACxC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,GAAG,CAAC;CACf,CAAC,CAAC;AAEH,eAAO,MAAM,QAAQ,GAAI,GAAG,SACnB,aAAa,CAAC,GAAG,CAAC,KACxB,IAAI,CAAC,GAAG,EAAE,KAAK,CAmCf,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"colHead.d.ts","sourceRoot":"","sources":["../../../src/Component/usecase/colHead.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,IAAI,EAOV,MAAM,WAAW,CAAC;AAKnB;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC;IAClC,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACvB,KAAK,EAAE,aAAa,CAClB,QAAQ,CAAC;QACP,KAAK,EAAE,OAAO,CAAC;QACf,IAAI,EAAE,OAAO,CAAC;KACf,CAAC,CACH,CAAC;CACH,CAAC,CAAC;AAEH,eAAO,MAAM,OAAO,GAAI,GAAG,EACzB,OAAO,YAAY,KAClB,IAAI,CAAC,GAAG,EAAE,KAAK,CA4Cf,CAAC"}
1
+ {"version":3,"file":"colHead.d.ts","sourceRoot":"","sources":["../../../src/Component/usecase/colHead.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,IAAI,EAOV,MAAM,WAAW,CAAC;AASnB;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC;IAClC,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACvB,KAAK,EAAE,aAAa,CAClB,QAAQ,CAAC;QACP,KAAK,EAAE,OAAO,CAAC;QACf,IAAI,EAAE,OAAO,CAAC;KACf,CAAC,CACH,CAAC;CACH,CAAC,CAAC;AAEH,eAAO,MAAM,OAAO,GAAI,GAAG,SAClB,YAAY,KAClB,IAAI,CAAC,GAAG,EAAE,KAAK,CAoCf,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"confirmDialog.d.ts","sourceRoot":"","sources":["../../../src/Component/usecase/confirmDialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EACL,KAAK,IAAI,EAUV,MAAM,WAAW,CAAC;AAKnB;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,kBAAkB,CAAC,GAAG,IAAI,QAAQ,CAAC;IAC7C,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,GAAG,CAAC;IACf,QAAQ,EAAE,GAAG,CAAC;CACf,CAAC,CAAC;AAIH,eAAO,MAAM,aAAa,GAAI,GAAG,EAC/B,OAAO,kBAAkB,CAAC,GAAG,CAAC,KAC7B,IAAI,CAAC,GAAG,EAAE,KAAK,CA6Df,CAAC"}
1
+ {"version":3,"file":"confirmDialog.d.ts","sourceRoot":"","sources":["../../../src/Component/usecase/confirmDialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EACL,KAAK,IAAI,EAUV,MAAM,WAAW,CAAC;AAanB;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,kBAAkB,CAAC,GAAG,IAAI,QAAQ,CAAC;IAC7C,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,GAAG,CAAC;IACf,QAAQ,EAAE,GAAG,CAAC;CACf,CAAC,CAAC;AAIH,eAAO,MAAM,aAAa,GAAI,GAAG,SACxB,kBAAkB,CAAC,GAAG,CAAC,KAC7B,IAAI,CAAC,GAAG,EAAE,KAAK,CAqDf,CAAC"}
@@ -0,0 +1,89 @@
1
+ import { type SoftStr, type Option } from "plgg";
2
+ import { type Html } from "plgg-view";
3
+ import { type ControlKind } from "../../Form/model/control";
4
+ import { type FieldSpec } from "../../Form/usecase/parseForm";
5
+ import { type SelectOption } from "./selectInput";
6
+ /**
7
+ * One arm of the {@link Control} union: a variant tagged by
8
+ * a {@link ControlKind} member (`K extends ControlKind`, so
9
+ * a kind that is not in the closed union is a compile
10
+ * error) carrying that kind's render data.
11
+ */
12
+ type ControlOf<K extends ControlKind, Data> = Readonly<{
13
+ kind: K;
14
+ } & Data>;
15
+ /**
16
+ * The RENDER half of a declared field, discriminated by
17
+ * {@link ControlKind} — the per-kind data and the
18
+ * consumer's message builders. A closed union so
19
+ * {@link fieldControl}'s `switch` is exhaustive: a new
20
+ * control kind cannot be added to the surface without a
21
+ * render arm for it. This is what makes `ControlKind`
22
+ * load-bearing — the declaration says *which* control, and
23
+ * the framework picks the component, instead of the caller
24
+ * hand-listing `textInput`/`textArea`.
25
+ */
26
+ export type Control<Msg> = ControlOf<"text", {
27
+ placeholder: Option<SoftStr>;
28
+ onInput: (value: SoftStr) => Msg;
29
+ }> | ControlOf<"textarea", {
30
+ placeholder: Option<SoftStr>;
31
+ onInput: (value: SoftStr) => Msg;
32
+ }> | ControlOf<"select", {
33
+ options: ReadonlyArray<SelectOption>;
34
+ onChange: (value: SoftStr) => Msg;
35
+ }> | ControlOf<"checkbox", {
36
+ onToggle: Msg;
37
+ }>;
38
+ /**
39
+ * A fully declared form field: the parse contract
40
+ * ({@link FieldSpec}'s `name` + `cast`) plus its label and
41
+ * render {@link Control}. ONE declaration drives BOTH
42
+ * validation (`parseForm` reads `name`/`cast`) and
43
+ * rendering ({@link fieldControl} reads `label`/`control`)
44
+ * — the example declares *what the form is*, the framework
45
+ * parses and renders it.
46
+ */
47
+ export type FormField<Msg> = FieldSpec & Readonly<{
48
+ label: SoftStr;
49
+ control: Control<Msg>;
50
+ }>;
51
+ /**
52
+ * The per-render runtime state of a field — its current
53
+ * draft `value`, its parse `error` (if any), and whether
54
+ * it is `disabled` (the form is submitting). The static
55
+ * {@link FormField} declaration carries no state; this is
56
+ * threaded in each frame.
57
+ */
58
+ export type FieldState = Readonly<{
59
+ value: SoftStr;
60
+ error: Option<SoftStr>;
61
+ disabled: boolean;
62
+ }>;
63
+ /**
64
+ * Renders one declared field to its control component by an
65
+ * exhaustive `switch` over the {@link Control} kind (a
66
+ * closed union, no `default`, so a new kind is a compile
67
+ * error until it has an arm). A `checkbox` reads its
68
+ * checked-ness from a non-empty draft, mirroring how HTML
69
+ * serialises a checked box.
70
+ */
71
+ export declare const fieldControl: <Msg>(field: FormField<Msg>, state: FieldState) => Html<Msg, "div">;
72
+ /**
73
+ * A form driven entirely by its declared {@link FormField}
74
+ * set: each field is rendered through {@link fieldControl}
75
+ * (its runtime state resolved by `stateOf`) and the whole
76
+ * is assembled by {@link formView}. The consumer's `update`
77
+ * still owns parsing (the SAME field list feeds `parseForm`)
78
+ * and the submit `Cmd`; this component owns no state.
79
+ */
80
+ export type DeclaredFormProps<Msg> = Readonly<{
81
+ fields: ReadonlyArray<FormField<Msg>>;
82
+ stateOf: (name: SoftStr) => FieldState;
83
+ submitLabel: SoftStr;
84
+ submitting: boolean;
85
+ onSubmit: Msg;
86
+ }>;
87
+ export declare const declaredForm: <Msg>(props: DeclaredFormProps<Msg>) => Html<Msg, "form">;
88
+ export {};
89
+ //# sourceMappingURL=declaredForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"declaredForm.d.ts","sourceRoot":"","sources":["../../../src/Component/usecase/declaredForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,MAAM,CAAC;AACjD,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAIlE,OAAO,EACL,KAAK,YAAY,EAElB,MAAM,yCAAyC,CAAC;AAGjD;;;;;GAKG;AACH,KAAK,SAAS,CACZ,CAAC,SAAS,WAAW,EACrB,IAAI,IACF,QAAQ,CAAC;IAAE,IAAI,EAAE,CAAC,CAAA;CAAE,GAAG,IAAI,CAAC,CAAC;AAEjC;;;;;;;;;;GAUG;AACH,MAAM,MAAM,OAAO,CAAC,GAAG,IACnB,SAAS,CACP,MAAM,EACN;IACE,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IAC7B,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,GAAG,CAAC;CAClC,CACF,GACD,SAAS,CACP,UAAU,EACV;IACE,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IAC7B,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,GAAG,CAAC;CAClC,CACF,GACD,SAAS,CACP,QAAQ,EACR;IACE,OAAO,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACrC,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,GAAG,C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,CAAC;AAYnB,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAEjE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,OAAO,GAClB,OAAO,aAAa,CAAC,OAAO,CAAC,EAC7B,YAAY,OAAO,KAClB,IAAI,CAAC,KAAK,EAAE,IAAI,CA4ClB,CAAC"}
1
+ {"version":3,"file":"navTree.d.ts","sourceRoot":"","sources":["../../../src/Component/usecase/navTree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAe,MAAM,MAAM,CAAC;AACjD,OAAO,EACL,KAAK,IAAI,EASV,MAAM,WAAW,CAAC;AAYnB,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAEjE;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,OAAO,UACX,aAAa,CAAC,OAAO,CAAC,cACjB,OAAO,KAClB,IAAI,CAAC,KAAK,EAAE,IAAI,CA4ClB,CAAC"}
@@ -0,0 +1,59 @@
1
+ import { type SoftStr, type Option } from "plgg";
2
+ import { type Html } from "plgg-view";
3
+ import { type SelectOption } from "./selectInput";
4
+ /**
5
+ * THE PROPERTY LIST: the settings of one thing, a row per
6
+ * property — its name on the left, the control that sets
7
+ * it on the right. The form of an inspector, a side panel,
8
+ * a preferences pane: many short settings read down a
9
+ * column, not a document form filled in top to bottom.
10
+ *
11
+ * **Recorded rule**: a property row holds exactly ONE
12
+ * control and that control's value is its whole state — a
13
+ * choice ({@link choice}), an entry ({@link entry}) or a
14
+ * switch ({@link toggle}). There is no submit: a row takes
15
+ * effect when its control changes. The name is a real
16
+ * `<label for>`, so it names the control to assistive tech
17
+ * and clicking it reaches the control.
18
+ */
19
+ export declare const propertyList: <Msg>(label: SoftStr, rows: ReadonlyArray<Html<Msg>>) => Html<Msg>;
20
+ /** One row: `label` names the control with id `name`. */
21
+ export declare const propertyRow: <Msg>(name: SoftStr, label: SoftStr, control: Html<Msg>) => Html<Msg>;
22
+ export type ChoiceProps<Msg> = Readonly<{
23
+ name: SoftStr;
24
+ value: SoftStr;
25
+ options: ReadonlyArray<SelectOption>;
26
+ disabled: boolean;
27
+ onChange: (value: SoftStr) => Msg;
28
+ }>;
29
+ /** One of a few named values: a bare `<select>`. */
30
+ export declare const choice: <Msg>(props: ChoiceProps<Msg>) => Html<Msg>;
31
+ export type EntryProps<Msg> = Readonly<{
32
+ name: SoftStr;
33
+ value: SoftStr;
34
+ placeholder: Option<SoftStr>;
35
+ /** Digits are expected (the keyboard offered says so). */
36
+ numeric: boolean;
37
+ disabled: boolean;
38
+ onInput: (value: SoftStr) => Msg;
39
+ }>;
40
+ /** A short typed value: a bare `<input>`. */
41
+ export declare const entry: <Msg>(props: EntryProps<Msg>) => Html<Msg>;
42
+ export type ToggleProps<Msg> = Readonly<{
43
+ name: SoftStr;
44
+ on: boolean;
45
+ /** The words for the two states, e.g. "オン" / "オフ". */
46
+ onLabel: SoftStr;
47
+ offLabel: SoftStr;
48
+ disabled: boolean;
49
+ onToggle: Msg;
50
+ }>;
51
+ /**
52
+ * Yes or no: a switch. A real `<button role="switch">`
53
+ * with `aria-checked`, so it is one tab stop, Space and
54
+ * Enter flip it, and its state is announced — and it says
55
+ * which way it stands in WORDS beside the track, never by
56
+ * position or colour alone.
57
+ */
58
+ export declare const toggle: <Msg>(props: ToggleProps<Msg>) => Html<Msg>;
59
+ //# sourceMappingURL=properties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../../src/Component/usecase/properties.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,IAAI,EASV,MAAM,WAAW,CAAC;AAYnB,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAE5E;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,YAAY,GAAI,GAAG,SACvB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,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,GAAG,CAAC;CACf,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,GAAI,GAAG,SACjB,WAAW,CAAC,GAAG,CAAC,KACtB,IAAI,CAAC,GAAG,CAwCR,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"selectInput.d.ts","sourceRoot":"","sources":["../../../src/Component/usecase/selectInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EACL,KAAK,IAAI,EAUV,MAAM,WAAW,CAAC;AAUnB,2CAA2C;AAC3C,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC;IAClC,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,MAAM,WAAW,CAAC,GAAG,IAAI,QAAQ,CAAC;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,GAAG,CAAC;CACnC,CAAC,CAAC;AAEH,eAAO,MAAM,WAAW,GAAI,GAAG,EAC7B,OAAO,WAAW,CAAC,GAAG,CAAC,KACtB,IAAI,CAAC,GAAG,EAAE,KAAK,CA4Bf,CAAC"}
1
+ {"version":3,"file":"selectInput.d.ts","sourceRoot":"","sources":["../../../src/Component/usecase/selectInput.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EACL,KAAK,IAAI,EAUV,MAAM,WAAW,CAAC;AAanB,2CAA2C;AAC3C,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC;IAClC,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,MAAM,WAAW,CAAC,GAAG,IAAI,QAAQ,CAAC;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,GAAG,CAAC;CACnC,CAAC,CAAC;AAEH,eAAO,MAAM,WAAW,GAAI,GAAG,SACtB,WAAW,CAAC,GAAG,CAAC,KACtB,IAAI,CAAC,GAAG,EAAE,KAAK,CA4Bf,CAAC"}
@@ -0,0 +1,78 @@
1
+ import { type SoftStr } from "plgg";
2
+ import { type Html } from "plgg-view";
3
+ import { type Theme } from "../../Style";
4
+ import { type NavItem } from "../model/navItem";
5
+ /**
6
+ * A titled bucket of {@link NavItem}s: one section of a
7
+ * {@link sidebarNav}.
8
+ */
9
+ export type NavGroup = Readonly<{
10
+ label: SoftStr;
11
+ items: ReadonlyArray<NavItem>;
12
+ }>;
13
+ /**
14
+ * The class vocabulary of {@link sidebarNav}, exported so a
15
+ * host that draws a look-alike row outside the tree (a
16
+ * section index, a touch-target override) names the same
17
+ * classes instead of re-typing them.
18
+ */
19
+ export declare const sidebarNavClass: {
20
+ nav: string;
21
+ numbered: string;
22
+ group: string;
23
+ groupTitle: string;
24
+ link: string;
25
+ label: string;
26
+ flat: string;
27
+ subgroup: string;
28
+ subgroupTitle: string;
29
+ };
30
+ /**
31
+ * What a {@link sidebarNav} is drawn from. `resolve` turns
32
+ * an item's `href` into the address written on the link
33
+ * (a host's base-path resolver); `current` says whether an
34
+ * `href` is the page being shown. Both are the host's, so
35
+ * the component holds no routing rule of its own.
36
+ */
37
+ export type SidebarNavProps = Readonly<{
38
+ groups: ReadonlyArray<NavGroup>;
39
+ resolve: (href: SoftStr) => SoftStr;
40
+ current: (href: SoftStr) => boolean;
41
+ /** Each group is a disclosure, open where the current page lives. */
42
+ toggle: boolean;
43
+ /** Rows are counted 01, 02, … (per group when `toggle`). */
44
+ numbered: boolean;
45
+ label: SoftStr;
46
+ }>;
47
+ /**
48
+ * The sidebar: full-width ruled rows in titled groups, the
49
+ * current row inverted. **Recorded rule**: the tree is
50
+ * flush left — hierarchy reads from weight and spacing,
51
+ * never indentation — and a group is either always open
52
+ * (a plain header) or, with `toggle`, a named disclosure
53
+ * that opens with the group holding the current page and
54
+ * closes its siblings; there is no third state kept in
55
+ * script. Zero client JavaScript. Returns the `<nav>`
56
+ * landmark itself, unlike {@link navTree}, because a
57
+ * sidebar is the whole landmark, not a list placed inside
58
+ * a pane that owns one.
59
+ */
60
+ export declare const sidebarNav: (props: SidebarNavProps) => Html<never, "nav">;
61
+ /**
62
+ * The sidebar's stylesheet. Escape-safe — no raw `<`, `>`
63
+ * or `&` (descendant selectors only, no child combinator,
64
+ * no nesting) — so a host may inline it through an SSR
65
+ * text escaper byte-for-byte. Colors resolve through the
66
+ * theme's custom properties, so the rows rescheme with the
67
+ * rest of the tree.
68
+ */
69
+ export declare const sidebarNavCss: (theme: Theme) => SoftStr;
70
+ /**
71
+ * A statement (no `<script>` wrapper) that brings the
72
+ * current row into view when the page opened with it below
73
+ * the fold of its scrolling column. The one piece of script
74
+ * a sidebar wants, and optional: without it the row is
75
+ * still marked, only possibly off screen.
76
+ */
77
+ export declare const sidebarNavRevealScript: SoftStr;
78
+ //# sourceMappingURL=sidebarNav.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebarNav.d.ts","sourceRoot":"","sources":["../../../src/Component/usecase/sidebarNav.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAe,MAAM,MAAM,CAAC;AACjD,OAAO,EACL,KAAK,IAAI,EAYV,MAAM,WAAW,CAAC;AAKnB,OAAO,EACL,KAAK,KAAK,EAEX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAajE;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,QAAQ,CAAC;IAC9B,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;CAC/B,CAAC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;CAUO,CAAC;AAEpC;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACrC,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChC,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC;IACpC,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC;IACpC,qEAAqE;IACrE,MAAM,EAAE,OAAO,CAAC;IAChB,4DAA4D;IAC5D,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC,CAAC;AAEH;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,UACd,eAAe,KACrB,IAAI,CAAC,KAAK,EAAE,KAAK,CAkGnB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,UACjB,KAAK,KACX,OA4GF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,EAAE,OAWpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"textArea.d.ts","sourceRoot":"","sources":["../../../src/Component/usecase/textArea.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,IAAI,EAWV,MAAM,WAAW,CAAC;AAanB;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,CAAC,GAAG,IAAI,QAAQ,CAAC;IACxC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,GAAG,CAAC;CAClC,CAAC,CAAC;AAEH,eAAO,MAAM,QAAQ,GAAI,GAAG,EAC1B,OAAO,aAAa,CAAC,GAAG,CAAC,KACxB,IAAI,CAAC,GAAG,EAAE,KAAK,CAkCf,CAAC"}
1
+ {"version":3,"file":"textArea.d.ts","sourceRoot":"","sources":["../../../src/Component/usecase/textArea.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,IAAI,EAWV,MAAM,WAAW,CAAC;AAiBnB;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,CAAC,GAAG,IAAI,QAAQ,CAAC;IACxC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,GAAG,CAAC;CAClC,CAAC,CAAC;AAEH,eAAO,MAAM,QAAQ,GAAI,GAAG,SACnB,aAAa,CAAC,GAAG,CAAC,KACxB,IAAI,CAAC,GAAG,EAAE,KAAK,CAkCf,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"textInput.d.ts","sourceRoot":"","sources":["../../../src/Component/usecase/textInput.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,IAAI,EAWV,MAAM,WAAW,CAAC;AAanB;;;;;;;;;GASG;AACH,MAAM,MAAM,cAAc,CAAC,GAAG,IAAI,QAAQ,CAAC;IACzC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,GAAG,CAAC;CAClC,CAAC,CAAC;AAEH,eAAO,MAAM,SAAS,GAAI,GAAG,EAC3B,OAAO,cAAc,CAAC,GAAG,CAAC,KACzB,IAAI,CAAC,GAAG,EAAE,KAAK,CAmCf,CAAC"}
1
+ {"version":3,"file":"textInput.d.ts","sourceRoot":"","sources":["../../../src/Component/usecase/textInput.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,MAAM,EAEZ,MAAM,MAAM,CAAC;AACd,OAAO,EACL,KAAK,IAAI,EAWV,MAAM,WAAW,CAAC;AAiBnB;;;;;;;;;GASG;AACH,MAAM,MAAM,cAAc,CAAC,GAAG,IAAI,QAAQ,CAAC;IACzC,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,GAAG,CAAC;CAClC,CAAC,CAAC;AAEH,eAAO,MAAM,SAAS,GAAI,GAAG,SACpB,cAAc,CAAC,GAAG,CAAC,KACzB,IAAI,CAAC,GAAG,EAAE,KAAK,CAmCf,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"textLink.d.ts","sourceRoot":"","sources":["../../../src/Component/usecase/textLink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EACL,KAAK,IAAI,EAKV,MAAM,WAAW,CAAC;AAWnB;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC;IACnC,KAAK,EAAE,OAAO,CAAC;IACf,EAAE,EAAE,OAAO,CAAC;IACZ,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC,CAAC;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,GACnB,OAAO,aAAa,KACnB,IAAI,CAAC,KAAK,EAAE,GAAG,CA4Bf,CAAC"}
1
+ {"version":3,"file":"textLink.d.ts","sourceRoot":"","sources":["../../../src/Component/usecase/textLink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EACL,KAAK,IAAI,EAKV,MAAM,WAAW,CAAC;AAWnB;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC;IACnC,KAAK,EAAE,OAAO,CAAC;IACf,EAAE,EAAE,OAAO,CAAC;IACZ,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC,CAAC;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,UACZ,aAAa,KACnB,IAAI,CAAC,KAAK,EAAE,GAAG,CA4Bf,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { type SoftStr } from "plgg";
2
+ import { themeToggleClass, sunClass, moonClass } from "../../Meta/model/classHooks";
2
3
  import { type Html } from "plgg-view";
3
4
  import { type Scheme } from "../../Style";
4
5
  /**
@@ -34,7 +35,11 @@ export declare const themeToggle: <Msg>(props: ThemeToggleProps<Msg>) => Html<Ms
34
35
  * icon-switch CSS in {@link themeToggleCss} targets it —
35
36
  * so the literal is never re-typed at the consumer.
36
37
  */
37
- export declare const themeToggleClass: SoftStr;
38
+ export { themeToggleClass };
39
+ /** The two icon hooks the toggle emits, exported for
40
+ * the same reason the layout hooks are: a consumer names
41
+ * them by import or not at all. */
42
+ export { sunClass, moonClass };
38
43
  /**
39
44
  * The SSG-capable appearance toggle: a static
40
45
  * `Html<never, "button">` that renders BOTH icons (the