plggmatic 0.2.1 → 0.2.2

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 (177) hide show
  1. package/dist/Catalog/index.d.ts +17 -0
  2. package/dist/Catalog/index.d.ts.map +1 -0
  3. package/dist/Catalog/model/tool.d.ts +101 -0
  4. package/dist/Catalog/model/tool.d.ts.map +1 -0
  5. package/dist/Catalog/usecase/adapter.d.ts +81 -0
  6. package/dist/Catalog/usecase/adapter.d.ts.map +1 -0
  7. package/dist/Catalog/usecase/catalog.d.ts +43 -0
  8. package/dist/Catalog/usecase/catalog.d.ts.map +1 -0
  9. package/dist/Catalog/usecase/runFlow.d.ts +77 -0
  10. package/dist/Catalog/usecase/runFlow.d.ts.map +1 -0
  11. package/dist/Component/index.d.ts +28 -0
  12. package/dist/Component/index.d.ts.map +1 -0
  13. package/dist/Component/model/interaction.d.ts +41 -0
  14. package/dist/Component/model/interaction.d.ts.map +1 -0
  15. package/dist/Component/model/navItem.d.ts +16 -0
  16. package/dist/Component/model/navItem.d.ts.map +1 -0
  17. package/dist/Component/usecase/breadcrumb.d.ts +26 -0
  18. package/dist/Component/usecase/breadcrumb.d.ts.map +1 -0
  19. package/dist/Component/usecase/button.d.ts +27 -0
  20. package/dist/Component/usecase/button.d.ts.map +1 -0
  21. package/dist/Component/usecase/checkbox.d.ts +20 -0
  22. package/dist/Component/usecase/checkbox.d.ts.map +1 -0
  23. package/dist/Component/usecase/colHead.d.ts +28 -0
  24. package/dist/Component/usecase/colHead.d.ts.map +1 -0
  25. package/dist/Component/usecase/confirmDialog.d.ts +25 -0
  26. package/dist/Component/usecase/confirmDialog.d.ts.map +1 -0
  27. package/dist/Component/usecase/navTree.d.ts +21 -0
  28. package/dist/Component/usecase/navTree.d.ts.map +1 -0
  29. package/dist/Component/usecase/selectInput.d.ts +28 -0
  30. package/dist/Component/usecase/selectInput.d.ts.map +1 -0
  31. package/dist/Component/usecase/textArea.d.ts +22 -0
  32. package/dist/Component/usecase/textArea.d.ts.map +1 -0
  33. package/dist/Component/usecase/textInput.d.ts +23 -0
  34. package/dist/Component/usecase/textInput.d.ts.map +1 -0
  35. package/dist/Component/usecase/textLink.d.ts +26 -0
  36. package/dist/Component/usecase/textLink.d.ts.map +1 -0
  37. package/dist/Component/usecase/themeToggle.d.ts +70 -0
  38. package/dist/Component/usecase/themeToggle.d.ts.map +1 -0
  39. package/dist/Component/usecase/toast.d.ts +32 -0
  40. package/dist/Component/usecase/toast.d.ts.map +1 -0
  41. package/dist/Component/usecase/typography.d.ts +33 -0
  42. package/dist/Component/usecase/typography.d.ts.map +1 -0
  43. package/dist/Declare/model/Action.d.ts +91 -0
  44. package/dist/Declare/model/Action.d.ts.map +1 -0
  45. package/dist/Declare/model/Adapter.d.ts +107 -0
  46. package/dist/Declare/model/Adapter.d.ts.map +1 -0
  47. package/dist/Declare/model/Collection.d.ts +55 -0
  48. package/dist/Declare/model/Collection.d.ts.map +1 -0
  49. package/dist/Declare/model/Declaration.d.ts +27 -0
  50. package/dist/Declare/model/Declaration.d.ts.map +1 -0
  51. package/dist/Declare/model/Menu.d.ts +21 -0
  52. package/dist/Declare/model/Menu.d.ts.map +1 -0
  53. package/dist/Declare/model/Query.d.ts +56 -0
  54. package/dist/Declare/model/Query.d.ts.map +1 -0
  55. package/dist/Declare/model/Row.d.ts +129 -0
  56. package/dist/Declare/model/Row.d.ts.map +1 -0
  57. package/dist/Declare/model/Source.d.ts +83 -0
  58. package/dist/Declare/model/Source.d.ts.map +1 -0
  59. package/dist/Declare/usecase/apply.d.ts +23 -0
  60. package/dist/Declare/usecase/apply.d.ts.map +1 -0
  61. package/dist/Declare/usecase/project.d.ts +66 -0
  62. package/dist/Declare/usecase/project.d.ts.map +1 -0
  63. package/dist/Declare/usecase/reconcile.d.ts +63 -0
  64. package/dist/Declare/usecase/reconcile.d.ts.map +1 -0
  65. package/dist/Flow/model/forms.d.ts +45 -0
  66. package/dist/Flow/model/forms.d.ts.map +1 -0
  67. package/dist/Flow/model/run.d.ts +74 -0
  68. package/dist/Flow/model/run.d.ts.map +1 -0
  69. package/dist/Flow/model/script.d.ts +279 -0
  70. package/dist/Flow/model/script.d.ts.map +1 -0
  71. package/dist/Flow/usecase/interpret.d.ts +17 -0
  72. package/dist/Flow/usecase/interpret.d.ts.map +1 -0
  73. package/dist/Flow/usecase/read.d.ts +46 -0
  74. package/dist/Flow/usecase/read.d.ts.map +1 -0
  75. package/dist/Form/index.d.ts +14 -0
  76. package/dist/Form/index.d.ts.map +1 -0
  77. package/dist/Form/model/control.d.ts +9 -0
  78. package/dist/Form/model/control.d.ts.map +1 -0
  79. package/dist/Form/model/submission.d.ts +30 -0
  80. package/dist/Form/model/submission.d.ts.map +1 -0
  81. package/dist/Form/usecase/controlParts.d.ts +30 -0
  82. package/dist/Form/usecase/controlParts.d.ts.map +1 -0
  83. package/dist/Form/usecase/formView.d.ts +21 -0
  84. package/dist/Form/usecase/formView.d.ts.map +1 -0
  85. package/dist/Form/usecase/parseForm.d.ts +28 -0
  86. package/dist/Form/usecase/parseForm.d.ts.map +1 -0
  87. package/dist/Layout/index.d.ts +16 -0
  88. package/dist/Layout/index.d.ts.map +1 -0
  89. package/dist/Layout/model/pane.d.ts +15 -0
  90. package/dist/Layout/model/pane.d.ts.map +1 -0
  91. package/dist/Layout/usecase/combinators.d.ts +49 -0
  92. package/dist/Layout/usecase/combinators.d.ts.map +1 -0
  93. package/dist/Meta/model/identity.d.ts +16 -0
  94. package/dist/Meta/model/identity.d.ts.map +1 -0
  95. package/dist/Render/index.d.ts +17 -0
  96. package/dist/Render/index.d.ts.map +1 -0
  97. package/dist/Render/model/mode.d.ts +13 -0
  98. package/dist/Render/model/mode.d.ts.map +1 -0
  99. package/dist/Render/model/screen.d.ts +27 -0
  100. package/dist/Render/model/screen.d.ts.map +1 -0
  101. package/dist/Render/usecase/multiColumn.d.ts +52 -0
  102. package/dist/Render/usecase/multiColumn.d.ts.map +1 -0
  103. package/dist/Render/usecase/parts.d.ts +56 -0
  104. package/dist/Render/usecase/parts.d.ts.map +1 -0
  105. package/dist/Render/usecase/renderMode.d.ts +17 -0
  106. package/dist/Render/usecase/renderMode.d.ts.map +1 -0
  107. package/dist/Render/usecase/singleColumn.d.ts +20 -0
  108. package/dist/Render/usecase/singleColumn.d.ts.map +1 -0
  109. package/dist/Schedule/model/Model.d.ts +103 -0
  110. package/dist/Schedule/model/Model.d.ts.map +1 -0
  111. package/dist/Schedule/model/Msg.d.ts +131 -0
  112. package/dist/Schedule/model/Msg.d.ts.map +1 -0
  113. package/dist/Schedule/model/Scene.d.ts +190 -0
  114. package/dist/Schedule/model/Scene.d.ts.map +1 -0
  115. package/dist/Schedule/model/View.d.ts +54 -0
  116. package/dist/Schedule/model/View.d.ts.map +1 -0
  117. package/dist/Schedule/usecase/chain.d.ts +16 -0
  118. package/dist/Schedule/usecase/chain.d.ts.map +1 -0
  119. package/dist/Schedule/usecase/codec.d.ts +44 -0
  120. package/dist/Schedule/usecase/codec.d.ts.map +1 -0
  121. package/dist/Schedule/usecase/lower.d.ts +45 -0
  122. package/dist/Schedule/usecase/lower.d.ts.map +1 -0
  123. package/dist/Schedule/usecase/scene.d.ts +16 -0
  124. package/dist/Schedule/usecase/scene.d.ts.map +1 -0
  125. package/dist/Schedule/usecase/schedule.d.ts +72 -0
  126. package/dist/Schedule/usecase/schedule.d.ts.map +1 -0
  127. package/dist/Schedule/usecase/update.d.ts +39 -0
  128. package/dist/Schedule/usecase/update.d.ts.map +1 -0
  129. package/dist/Style/index.d.ts +30 -0
  130. package/dist/Style/index.d.ts.map +1 -0
  131. package/dist/Style/model/appearance.d.ts +23 -0
  132. package/dist/Style/model/appearance.d.ts.map +1 -0
  133. package/dist/Style/model/breakpoint.d.ts +43 -0
  134. package/dist/Style/model/breakpoint.d.ts.map +1 -0
  135. package/dist/Style/model/hexColor.d.ts +24 -0
  136. package/dist/Style/model/hexColor.d.ts.map +1 -0
  137. package/dist/Style/model/metric.d.ts +35 -0
  138. package/dist/Style/model/metric.d.ts.map +1 -0
  139. package/dist/Style/model/palette.d.ts +38 -0
  140. package/dist/Style/model/palette.d.ts.map +1 -0
  141. package/dist/Style/model/scheme.d.ts +26 -0
  142. package/dist/Style/model/scheme.d.ts.map +1 -0
  143. package/dist/Style/model/syntax.d.ts +54 -0
  144. package/dist/Style/model/syntax.d.ts.map +1 -0
  145. package/dist/Style/model/theme.d.ts +58 -0
  146. package/dist/Style/model/theme.d.ts.map +1 -0
  147. package/dist/Style/model/token.d.ts +142 -0
  148. package/dist/Style/model/token.d.ts.map +1 -0
  149. package/dist/Style/model/typography.d.ts +83 -0
  150. package/dist/Style/model/typography.d.ts.map +1 -0
  151. package/dist/Style/model/zIndex.d.ts +25 -0
  152. package/dist/Style/model/zIndex.d.ts.map +1 -0
  153. package/dist/Style/usecase/appearanceScript.d.ts +43 -0
  154. package/dist/Style/usecase/appearanceScript.d.ts.map +1 -0
  155. package/dist/Style/usecase/chromeCss.d.ts +41 -0
  156. package/dist/Style/usecase/chromeCss.d.ts.map +1 -0
  157. package/dist/Style/usecase/contrast.d.ts +3 -0
  158. package/dist/Style/usecase/contrast.d.ts.map +1 -0
  159. package/dist/Style/usecase/metricCss.d.ts +17 -0
  160. package/dist/Style/usecase/metricCss.d.ts.map +1 -0
  161. package/dist/Style/usecase/reducedMotion.d.ts +20 -0
  162. package/dist/Style/usecase/reducedMotion.d.ts.map +1 -0
  163. package/dist/Style/usecase/schemeCss.d.ts +25 -0
  164. package/dist/Style/usecase/schemeCss.d.ts.map +1 -0
  165. package/dist/Style/usecase/syntaxCss.d.ts +14 -0
  166. package/dist/Style/usecase/syntaxCss.d.ts.map +1 -0
  167. package/dist/Style/usecase/utilities.d.ts +98 -0
  168. package/dist/Style/usecase/utilities.d.ts.map +1 -0
  169. package/dist/brand.d.ts +29 -0
  170. package/dist/brand.d.ts.map +1 -0
  171. package/dist/index.d.ts +53 -0
  172. package/dist/index.d.ts.map +1 -0
  173. package/dist/index.es.js +4427 -0
  174. package/dist/styleEntry.d.ts +29 -0
  175. package/dist/styleEntry.d.ts.map +1 -0
  176. package/dist/styleEntry.es.js +1036 -0
  177. package/package.json +4 -1
@@ -0,0 +1,17 @@
1
+ import { type SoftStr } from "plgg";
2
+ import { type Theme } from "../model/theme";
3
+ /**
4
+ * The shell-metric custom properties as a single
5
+ * scheme-INDEPENDENT `:root` block
6
+ * (`--pm-shell-max:1440px;…`), in {@link metrics} order.
7
+ * Mirrors `schemeCss`'s single-source contract, but
8
+ * without a `html.dark` override — geometry does not
9
+ * change by light/dark. Escape-safe (no `<`, `>`, `&`) so
10
+ * it survives an SSR text escaper byte-for-byte; inject
11
+ * ahead of the collected atomic rules so every
12
+ * `var(--<prefix>-*)` metric reference resolves. The
13
+ * lengths and namespace come from the supplied
14
+ * {@link Theme}.
15
+ */
16
+ export declare const metricCss: (theme: Theme) => SoftStr;
17
+ //# sourceMappingURL=metricCss.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metricCss.d.ts","sourceRoot":"","sources":["../../../src/Style/usecase/metricCss.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AAKpC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAEzD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,SAAS,GACpB,OAAO,KAAK,KACX,OAMa,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { type SoftStr } from "plgg";
2
+ /**
3
+ * The framework-owned reduced-motion block, generalized
4
+ * from the oracle's `prefers-reduced-motion:reduce` rule
5
+ * (`baseCss.ts` lines 80–85): smooth scrolling drops back
6
+ * to `auto` on the page and on the independently
7
+ * scrolling `main` column.
8
+ *
9
+ * **Recorded rule:** any motion plggmatic ships — today
10
+ * the `hoverDim`/`pressDim` feedback and the example's
11
+ * drawer/snap transitions, tomorrow whatever the D9
12
+ * scheduler animates — must be authored so THIS block
13
+ * disables it (a transition gated behind the same query,
14
+ * an animation reset to `none`). Motion is opt-out by
15
+ * default (WCAG 2.3.3). Ticket 07 composes this block into
16
+ * the ported theme rather than re-authoring it. Escape-safe
17
+ * (no `<`, `>`, `&`).
18
+ */
19
+ export declare const reducedMotionCss: SoftStr;
20
+ //# sourceMappingURL=reducedMotion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reducedMotion.d.ts","sourceRoot":"","sources":["../../../src/Style/usecase/reducedMotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AAEpC;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,gBAAgB,EAAE,OAAwG,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { type SoftStr } from "plgg";
2
+ import { type Palette } from "../model/palette";
3
+ import { type Theme } from "../model/theme";
4
+ /**
5
+ * The engine's base color stylesheet for a {@link Theme}:
6
+ * the light scheme on `:root` and the dark override under
7
+ * `html.dark`, toggled by one `dark` class. `html.dark` is
8
+ * the single published scheme mechanism (no attribute
9
+ * variants). Escape-safe (no `<`, `>`, `&`) so it survives
10
+ * an SSR text escaper byte-for-byte. Inject ahead of the
11
+ * collected atomic rules so the custom properties are
12
+ * defined before any `var(--<prefix>-*)` resolves. The
13
+ * consumer passes its theme (`schemeCss(defaultTheme)` for
14
+ * the monochrome default) at its composition root.
15
+ */
16
+ export declare const schemeCss: (theme: Theme) => SoftStr;
17
+ /**
18
+ * Scheme CSS for a bare palette under the default prefix —
19
+ * the palette-override convenience: `schemeCssOf(palette)`
20
+ * is `schemeCss` over the default theme with `palette`
21
+ * swapped in, so an override that only changes colors need
22
+ * not build a whole {@link Theme}.
23
+ */
24
+ export declare const schemeCssOf: (palette: Palette) => SoftStr;
25
+ //# sourceMappingURL=schemeCss.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemeCss.d.ts","sourceRoot":"","sources":["../../../src/Style/usecase/schemeCss.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AAGpC,OAAO,EACL,KAAK,OAAO,EAGb,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,KAAK,EAEX,MAAM,6BAA6B,CAAC;AAsBrC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,SAAS,GACpB,OAAO,KAAK,KACX,OACkH,CAAC;AAEtH;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,GACtB,SAAS,OAAO,KACf,OACsC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { type SoftStr } from "plgg";
2
+ import { type Theme } from "../model/theme";
3
+ /**
4
+ * The engine's syntax-highlight stylesheet for a
5
+ * {@link Theme}: the `--<prefix>-code-*` properties on
6
+ * `:root` (light) with the `html.dark` override, followed
7
+ * by the `.tok-*` class rules. Self-contained (defines the
8
+ * properties it references) and escape-safe (no `<`, `>`,
9
+ * `&`) so it survives an SSR text escaper byte-for-byte; a
10
+ * host composes it into the document `<style>` alongside
11
+ * `schemeCss`.
12
+ */
13
+ export declare const syntaxCss: (theme: Theme) => SoftStr;
14
+ //# sourceMappingURL=syntaxCss.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"syntaxCss.d.ts","sourceRoot":"","sources":["../../../src/Style/usecase/syntaxCss.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AAQpC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAsCzD;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS,GACpB,OAAO,KAAK,KACX,OAEc,CAAC"}
@@ -0,0 +1,98 @@
1
+ import { type SoftStr } from "plgg";
2
+ import { type Styles } from "plgg-view/style";
3
+ import { type Color } from "../model/token";
4
+ import { type TypeRole, type FontWeight } from "../model/typography";
5
+ import { type ZBand } from "../model/zIndex";
6
+ /**
7
+ * plggmatic's color atoms. They mirror plgg-view's
8
+ * `bg`/`color`/`border` utilities but resolve every color
9
+ * through a `var(--pm-*)` custom property instead of a
10
+ * literal hex, so one `dark` class on `<html>` reswitches
11
+ * the scheme without re-styling a single element. Each
12
+ * returns plgg-view `Styles` (pure `{prop, value}` data),
13
+ * so they compose through `style_` exactly like the
14
+ * built-in utilities — plggmatic adds theming, not a new
15
+ * styling engine. These SHADOW the same-named plgg-view
16
+ * utilities on the `plggmatic/style` subpath; reach for
17
+ * these to get scheme-aware color.
18
+ */
19
+ /** Background fill from a themed color role. */
20
+ export declare const bg: (c: Color) => Styles;
21
+ /** Text (foreground) color from a themed role. */
22
+ export declare const color: (c: Color) => Styles;
23
+ /**
24
+ * Text color — the explicit spelling for the common
25
+ * case, distinct from plgg-view's `color` so intent
26
+ * reads at the call site. Same atom as {@link color}.
27
+ */
28
+ export declare const textColor: (c: Color) => Styles;
29
+ /**
30
+ * A hairline border in the themed `border` role. Emitted
31
+ * as three atoms (width/style/color) rather than a
32
+ * `border` shorthand so the color stays a `var(--pm-*)`
33
+ * reference the scheme can reswitch.
34
+ */
35
+ export declare const border: Styles;
36
+ /** Border color from a themed role. */
37
+ export declare const borderColor: (c: Color) => Styles;
38
+ /**
39
+ * A 2px focus outline in a themed role — the visible,
40
+ * non-color-dependent focus affordance components pair
41
+ * with `:focus-visible` (accessibility-first: focus is
42
+ * never conveyed by color alone at the component layer).
43
+ */
44
+ export declare const outline: (c: Color) => Styles;
45
+ /**
46
+ * A fixed column track: the whole flex shorthand plus
47
+ * the width, so a `basis` column neither grows nor
48
+ * shrinks off its measure. One atom (not separate
49
+ * grow/shrink longhands) so it can never half-conflict
50
+ * with {@link fluid} through class order. Introduced
51
+ * with the layout combinators: sizing is a composed
52
+ * atom, not a config field.
53
+ */
54
+ export declare const basis: (w: SoftStr) => Styles;
55
+ /**
56
+ * The fluid column track: fills the remaining row and
57
+ * may shrink below its content (`min-width:0`, so long
58
+ * words cannot blow the strip open). The counterpart of
59
+ * {@link basis}; a row is expected to hold at most one —
60
+ * a composition convention, not a type constraint.
61
+ */
62
+ export declare const fluid: Styles;
63
+ /**
64
+ * A unitless line-height — the atom plgg-view lacks. Kept
65
+ * unitless (a number string, not rem) so it inherits
66
+ * safely and scales with the element's own font-size.
67
+ */
68
+ export declare const lineHeight: (lh: SoftStr) => Styles;
69
+ /**
70
+ * Tokenized font-weight — SHADOWS plgg-view's untyped
71
+ * `weight(number)` with the closed {@link FontWeight} set,
72
+ * so `weight(700)` is a compile error until a component
73
+ * earns the weight. The three tokens are `regular` /
74
+ * `medium` / `semibold` (400 / 500 / 600).
75
+ */
76
+ export declare const weight: (w: FontWeight) => Styles;
77
+ /**
78
+ * Stacking order from a semantic {@link ZBand} — the atom
79
+ * plgg-view lacks. Replaces ad-hoc `z-index` integers in
80
+ * plggmatic-consuming code with a named band.
81
+ */
82
+ export declare const zIndex: (b: ZBand) => Styles;
83
+ /**
84
+ * The prose type bundle for a role: font-size, its
85
+ * (unitless) line-height, and its weight, all drawn from
86
+ * the {@link typeScale}. `heading` and `prose` compose
87
+ * this so the rendered scale can never drift from the
88
+ * token map.
89
+ */
90
+ export declare const typeStyle: (role: TypeRole) => Styles;
91
+ /**
92
+ * The readable content measure — `max-width` at the
93
+ * `measure` shell metric (`48rem`), via the custom
94
+ * property so it retunes with the shell geometry. This is
95
+ * `prose`'s cap.
96
+ */
97
+ export declare const measure: Styles;
98
+ //# sourceMappingURL=utilities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../../src/Style/usecase/utilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EACL,KAAK,MAAM,EAEZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,KAAK,KAAK,EAEX,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,UAAU,EAEhB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EACL,KAAK,KAAK,EAEX,MAAM,8BAA8B,CAAC;AActC;;;;;;;;;;;;GAYG;AAEH,gDAAgD;AAChD,eAAO,MAAM,EAAE,GAAI,GAAG,KAAK,KAAG,MACK,CAAC;AAEpC,kDAAkD;AAClD,eAAO,MAAM,KAAK,GAAI,GAAG,KAAK,KAAG,MACT,CAAC;AAEzB;;;;GAIG;AACH,eAAO,MAAM,SAAS,MARG,KAAK,KAAG,MAQH,CAAC;AAE/B;;;;;GAKG;AACH,eAAO,MAAM,MAAM,EAAE,MAIpB,CAAC;AAEF,uCAAuC;AACvC,eAAO,MAAM,WAAW,GAAI,GAAG,KAAK,KAAG,MACR,CAAC;AAEhC;;;;;GAKG;AACH,eAAO,MAAM,OAAO,GAAI,GAAG,KAAK,KAAG,MACM,CAAC;AAE1C;;;;;;;;GAQG;AACH,eAAO,MAAM,KAAK,GAAI,GAAG,OAAO,KAAG,MAGlC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,KAAK,EAAE,MAGnB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,IAAI,OAAO,KAAG,MAChB,CAAC;AAE1B;;;;;;GAMG;AACH,eAAO,MAAM,MAAM,GAAI,GAAG,UAAU,KAAG,MACV,CAAC;AAE9B;;;;GAIG;AACH,eAAO,MAAM,MAAM,GAAI,GAAG,KAAK,KAAG,MACD,CAAC;AAElC;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,GACpB,MAAM,QAAQ,KACb,MAIF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,OAAO,EAAE,MAGrB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { type Theme } from "./Style";
2
+ import { type Result, type InvalidError } from "plgg";
3
+ /**
4
+ * The Pragmatic design system's branded default `Theme`:
5
+ * the monochrome `--pm-*` design language, owned and
6
+ * versioned HERE. The engine's `Style` tier ships the
7
+ * value-identical but brand-neutral {@link defaultTheme};
8
+ * this module is its brand home. This is the design-system
9
+ * substance the `plggmatic` package carries — the answer
10
+ * to the "empty shell" risk (trip
11
+ * `plggmatic-extraction-cut`, ticket A3): the package is a
12
+ * real, versionable owner of the `Theme` contract and the
13
+ * palette-override API, not a bare re-export label.
14
+ */
15
+ export declare const pragmaticTheme: Theme;
16
+ /**
17
+ * The palette-override API: validate a caller-supplied
18
+ * palette through the `asPalette` caster (ticket 04's
19
+ * contract — never widened to `any`; a hole or malformed
20
+ * hex is a value-level {@link InvalidError}, not a throw)
21
+ * and layer it onto the branded theme, keeping the
22
+ * prefix / metrics / typeScale / syntax / zBands /
23
+ * storageKey. The one set of palette bytes lives in the
24
+ * engine `Style` tier's `defaultTheme`; a brand override
25
+ * rebuilds only the `palette` field — no duplication, and
26
+ * plggpress never reaches this API.
27
+ */
28
+ export declare const pragmaticThemeWithPalette: (paletteInput: unknown) => Result<Theme, InvalidError>;
29
+ //# sourceMappingURL=brand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brand.d.ts","sourceRoot":"","sources":["../src/brand.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,KAAK,EAIX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,KAAK,MAAM,EACX,KAAK,YAAY,EAIlB,MAAM,MAAM,CAAC;AAEd;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,cAAc,EAAE,KAAoB,CAAC;AAElD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,yBAAyB,GACpC,cAAc,OAAO,KACpB,MAAM,CAAC,KAAK,EAAE,YAAY,CASD,CAAC"}
@@ -0,0 +1,53 @@
1
+ /**
2
+ * plggmatic — the Pragmatic design system on the plgg
3
+ * family, and the home of its UI engine (absorbed back
4
+ * from the retired `plgg-ui` package; the engine depends
5
+ * only on `plgg` and `plgg-view`). The root barrel is
6
+ * the RUNTIME surface: an explicit named-export list of
7
+ * layout combinators, components, forms, the declarative
8
+ * vocabulary, the scheduler, and the renderers. The THEME
9
+ * surface (token utilities, scheme-aware color atoms, CSS
10
+ * emitters, and the `themeToggle*` family) lives on the
11
+ * `plggmatic/style` subpath (see `src/styleEntry.ts`) so
12
+ * their Tailwind-style names (`p`, `text`, …) never
13
+ * collide with the Html element builders here, and so the
14
+ * subpath boundary equals the runtime/theme surface
15
+ * boundary a consumer imports across.
16
+ *
17
+ * The `themeToggle*` family — routed onto the `/style`
18
+ * subpath — is ALSO re-exported HERE on the root, because
19
+ * plggmatic's historical root surface (where consumers
20
+ * still import `themeToggle*`) carries it.
21
+ */
22
+ export { frameworkName, cssPrefix, } from "./Meta/model/identity";
23
+ export { type PaneRole, type Parts, landmarkTag, row, column, pane, navPane, mainPane, asidePane, } from "./Layout";
24
+ export { type InteractionState, type ButtonProps, type TextLinkProps, type HeadingLevel, type NavItem, focusRing, hoverDim, pressDim, button, textLink, heading, prose, navTree, type ColHeadProps, type Crumb, colHead, breadcrumb, type TextInputProps, type TextAreaProps, type SelectOption, type SelectProps, type CheckboxProps, type ConfirmDialogProps, type Tone, type ToastProps, textInput, textArea, selectInput, checkbox, confirmDialog, tones, toast, toaster, } from "./Component";
25
+ export { type ControlKind, type SubmissionState, type FieldSpec, type FormErrors, type Payload, type FormViewProps, controlKinds, idleSubmission, pendingSubmission, isPending, parseForm, errorFor, formView, } from "./Form";
26
+ export { type Mode, type Screen, modes, toggleMode, currentScreen, type HeaderLink, type ExtraColumn, type MultiColumnOptions, multiColumn, multiColumnWith, crumbsOf, singleColumn, renderMode, } from "./Render";
27
+ export { type Field, type FieldValue, type Row, field, fieldOf, textValue, numValue, flagValue, momentValue, refValue, mediaValue, textValue$, numValue$, flagValue$, momentValue$, refValue$, mediaValue$, fieldText, refTarget, row as makeRow, } from "./Declare/model/Row";
28
+ export { type Path, type TypedSource, type Source, sync, async, dynamic, adapter, } from "./Declare/model/Source";
29
+ export { type Actor, type Scope, type Effect, type ApplyOk, type HostAdapter, type NamedAdapter, type Registry, actor, scope, effect, hostAdapter, named, resolveAdapter, } from "./Declare/model/Adapter";
30
+ export { type Diagnostic, reconcile, diagnosticSeverity, unknownAdapter$, noDefaultAdapter$, unusedAdapter$, } from "./Declare/usecase/reconcile";
31
+ export { type HostRecord, type Projected, type FieldProjection, type Projection, asText, asNum, asMoment, asFlag, projectField, projection, projectRow, } from "./Declare/usecase/project";
32
+ export { applyVia } from "./Declare/usecase/apply";
33
+ export { type Query, type QueryChoice, query, queryChoice, matchesQuery, matchesChoice, } from "./Declare/model/Query";
34
+ export { type Verb, type Confirm, type Action, type Authorize, immediate, confirm, action, isDestructive, permits, } from "./Declare/model/Action";
35
+ export { type Collection, collection, collectionById, actionById, } from "./Declare/model/Collection";
36
+ export { type MenuEntry, type Menu, menuEntry, menu, } from "./Declare/model/Menu";
37
+ export { type Declaration, declare, } from "./Declare/model/Declaration";
38
+ export { type Slot, type PendingAction, type Model as ScheduledModel, emptyModel, slotOf, choiceOf, } from "./Schedule/model/Model";
39
+ export { type View, type Binding, menuView, listView, detailView, menuView$, listView$, detailView$, binding, } from "./Schedule/model/View";
40
+ export { focusedView, sliceOf, } from "./Schedule/usecase/lower";
41
+ export { type SchedulerMsg, navigate, urlChanged, openMenu, select, queryInput, queryChoiceInput, requestAction, confirmAction, cancelAction, loaded, failed, } from "./Schedule/model/Msg";
42
+ export { type ConfirmPrompt, type ActionButton, type RowLink, type MenuLink, type QueryState, type QueryChoiceState, type DetailField, type Tile, type Level, type Scene, menuLevel$, listLevel$, boardLevel$, detailLevel$, } from "./Schedule/model/Scene";
43
+ export { type UrlSlice, parseUrl, toUrl as sceneToUrl, } from "./Schedule/usecase/codec";
44
+ export { type Scheduled, type Host, schedule, } from "./Schedule/usecase/schedule";
45
+ export { type FlowScript, type FlowStep, type FlowExpr, type FlowValue, } from "./Flow/model/script";
46
+ export { type FlowOutcome, type PausedFlow, type FlowDiag, defaultFuel, } from "./Flow/model/run";
47
+ export { type FlowSchema, type CollectionSchema, flowSchema, } from "./Flow/model/forms";
48
+ export { readFlow } from "./Flow/usecase/read";
49
+ export { startFlow, resumeFlow, } from "./Flow/usecase/interpret";
50
+ export { type ToolInput, type ToolEffect, type Tool, nullary, textArg, enumArg, emit, runFlowEffect, tool, nullary$, textArg$, enumArg$, emit$, runFlow$, rowCap, catalogOf, type FlowHost, type RunOutcome, flowHost, flowSchemaOf, runFlow, rejected, stalled, ran, rejected$, stalled$, ran$, type ToolDescriptor, type CatalogDiff, type ModelContext, descriptorOf, diffCatalog, syncCatalog, invokeWith, detectModelContext, inertModelContext, } from "./Catalog";
51
+ export { type ThemeToggleProps, themeToggle, staticThemeToggle, themeToggleClass, themeToggleCss, } from "./Component/usecase/themeToggle";
52
+ export { pragmaticTheme, pragmaticThemeWithPalette, } from "./brand";
53
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EACL,aAAa,EACb,SAAS,GACV,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,KAAK,EACV,WAAW,EACX,GAAG,EACH,MAAM,EACN,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,SAAS,GACV,MAAM,kBAAkB,CAAC;AAM1B,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,OAAO,EACP,KAAK,EACL,OAAO,EACP,KAAK,YAAY,EACjB,KAAK,KAAK,EACV,OAAO,EACP,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,IAAI,EACT,KAAK,UAAU,EACf,SAAS,EACT,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,aAAa,EACb,KAAK,EACL,KAAK,EACL,OAAO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