@animus-ui/system 0.1.1-beta.2 → 0.1.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 (42) hide show
  1. package/README.md +125 -4
  2. package/dist/Animus.d.ts +2 -3
  3. package/dist/Animus.d.ts.map +1 -1
  4. package/dist/AnimusExtended.d.ts +2 -3
  5. package/dist/AnimusExtended.d.ts.map +1 -1
  6. package/dist/SystemBuilder.d.ts +27 -8
  7. package/dist/SystemBuilder.d.ts.map +1 -1
  8. package/dist/appearance/index.d.ts +75 -0
  9. package/dist/appearance/index.d.ts.map +1 -0
  10. package/dist/appearance/index.js +179 -0
  11. package/dist/bootstrap/createAppearanceBootstrap.d.ts +71 -0
  12. package/dist/bootstrap/createAppearanceBootstrap.d.ts.map +1 -0
  13. package/dist/bootstrap/index.d.ts +2 -0
  14. package/dist/bootstrap/index.d.ts.map +1 -0
  15. package/dist/bootstrap/index.js +98 -0
  16. package/dist/composeWithContext.d.ts.map +1 -1
  17. package/dist/composeWithContext.js +43 -22
  18. package/dist/conditions.d.ts +163 -0
  19. package/dist/conditions.d.ts.map +1 -0
  20. package/dist/{createComposedFamily-DSE2ZuRE.js → createComposedFamily-DJ2aqfqN.js} +141 -67
  21. package/dist/index.d.ts +4 -3
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +645 -23
  24. package/dist/runtime/index.d.ts +2 -0
  25. package/dist/runtime/index.d.ts.map +1 -1
  26. package/dist/runtime/resolveClasses.d.ts.map +1 -1
  27. package/dist/runtime-entry.js +1 -1
  28. package/dist/selectors.d.ts +22 -0
  29. package/dist/selectors.d.ts.map +1 -1
  30. package/dist/theme/createTheme.d.ts +47 -4
  31. package/dist/theme/createTheme.d.ts.map +1 -1
  32. package/dist/types/component.d.ts +27 -10
  33. package/dist/types/component.d.ts.map +1 -1
  34. package/dist/types/config.d.ts +124 -11
  35. package/dist/types/config.d.ts.map +1 -1
  36. package/dist/types/props.d.ts +0 -4
  37. package/dist/types/props.d.ts.map +1 -1
  38. package/dist/types/theme.d.ts +132 -0
  39. package/dist/types/theme.d.ts.map +1 -1
  40. package/dist/utils/deepMerge.d.ts +0 -3
  41. package/dist/utils/deepMerge.d.ts.map +1 -1
  42. package/package.json +12 -4
@@ -71,6 +71,68 @@ export type ScaleTokenRef<E extends string> = `${string}{${E}.${string}}${string
71
71
  export type ColorTokenRef = Theme extends {
72
72
  colors: infer C;
73
73
  } ? C extends Record<string, unknown> ? `{colors.${Extract<keyof C, string>}}` | `{colors.${Extract<keyof C, string>}/${number}}` : never : never;
74
+ /**
75
+ * Optional `@property` registration metadata for a contextual var.
76
+ * A 1:1 mirror of the CSS `@property` descriptors — `initialValue` (never bare
77
+ * `initial`, which collides with the CSS-wide keyword). Supplied alongside the
78
+ * contextual var declaration; purely additive — it does NOT alter the phantom
79
+ * typing of the declared var names or the runtime theme object.
80
+ */
81
+ export interface ContextualVarRegistration {
82
+ /** CSS `syntax` descriptor, e.g. `'<color>'` or `'*'`. Emitted quoted. */
83
+ syntax: string;
84
+ /** CSS `inherits` descriptor. */
85
+ inherits: boolean;
86
+ /** CSS `initial-value` descriptor. Omitted from output when absent. */
87
+ initialValue?: string;
88
+ }
89
+ /**
90
+ * OS `prefers-color-scheme` → declared mode name mapping.
91
+ * Presence of this config on a theme enables guarded system-fallback emission
92
+ * (`@media (prefers-color-scheme: …) { :root:not([data-color-mode]) { … } }`).
93
+ * Both values MUST name declared modes; the reserved name `system` is rejected
94
+ * (system is modeled as the ABSENCE of `data-color-mode`).
95
+ */
96
+ export interface SystemPreferenceConfig {
97
+ /** Mode applied when the OS reports a light preference. */
98
+ light: string;
99
+ /** Mode applied when the OS reports a dark preference. */
100
+ dark: string;
101
+ }
102
+ /**
103
+ * Declared mode name → CSS `color-scheme` classification. When supplied it MUST
104
+ * be total across declared modes and agree with {@link SystemPreferenceConfig}.
105
+ */
106
+ export type BrowserColorSchemeConfig = Record<string, 'light' | 'dark' | 'normal'>;
107
+ /**
108
+ * Optional system-participation options accepted by `addColorModes`.
109
+ *
110
+ * Typed LOCALLY from the mode config's own keys (D1) — the mode-name union is
111
+ * deliberately NOT threaded through the builder-chain generics, so this adds no
112
+ * depth to the type-state machine (TS2589 discipline).
113
+ */
114
+ export interface ColorModeOptions<Config> {
115
+ /** OS preference → declared mode name. Enables guarded system emission. */
116
+ systemPreference?: {
117
+ light: keyof Config & string;
118
+ dark: keyof Config & string;
119
+ };
120
+ /**
121
+ * Declared mode name → CSS `color-scheme`. Totality is enforced at build
122
+ * time, with one carve-out: the two modes named by `systemPreference` are
123
+ * FORCED to `light`/`dark` by the conflict rule anyway, so they default to
124
+ * those values and may be omitted — `browserColorScheme: {}` is the whole
125
+ * opt-in for a two-mode theme. Every mode NOT named by the mapping must be
126
+ * classified explicitly (a build error otherwise); an explicit value on a
127
+ * mapped mode is honored and still conflict-checked.
128
+ *
129
+ * Typed `Partial` for exactly that reason — compile-time totality would
130
+ * re-demand the forced entries. Runtime validation covers JS callers,
131
+ * casts, and `from()` composition, which all reach `build()` without this
132
+ * type applying.
133
+ */
134
+ browserColorScheme?: Partial<Record<keyof Config & string, 'light' | 'dark' | 'normal'>>;
135
+ }
74
136
  /** Pipeline-ready JSON strings returned by `.serialize()` on a built theme. */
75
137
  export interface SerializedTheme {
76
138
  /** Flattened token map as JSON: { "space.8": "0.5rem", "breakpoints.sm": "768" } */
@@ -82,6 +144,58 @@ export interface SerializedTheme {
82
144
  /** Contextual vars registry as JSON: { "colors": ["background-current"] } */
83
145
  contextualVarsJson: string;
84
146
  }
147
+ /**
148
+ * One authored `{scale.key}` reference occurrence inside a token value
149
+ * (manifest v2, D6). Captured BEFORE `resolveTokenRefs` rewrites the value —
150
+ * the authored graph is unrecoverable from resolved CSS (D8).
151
+ */
152
+ export interface TokenReference {
153
+ /** The referenced dot-path exactly as authored, e.g. 'colors.blue.500'. */
154
+ path: string;
155
+ /**
156
+ * The authored opacity-modifier text when written `{path/NN}` (e.g. '50').
157
+ * Kept as the authored string — parsing to a number is an emission-time
158
+ * concern, not a capture-time one.
159
+ */
160
+ opacity?: string;
161
+ }
162
+ /**
163
+ * The AUTHORED form of one token value (manifest v2, D6):
164
+ * - `literal` — the value contains no `{scale.key}` refs.
165
+ * - `reference` — the value embeds one or more refs; `value` preserves the
166
+ * authored string byte-exactly and `references` lists each ref target in
167
+ * authored order.
168
+ * Flat shapes only (D11) — no recursive or conditional re-derivation.
169
+ */
170
+ export type TokenDefinition = {
171
+ kind: 'literal';
172
+ value: string;
173
+ } | {
174
+ kind: 'reference';
175
+ value: string;
176
+ references: TokenReference[];
177
+ };
178
+ /**
179
+ * Pre-resolution mode alias definitions (manifest v2, D6): mode name → alias
180
+ * dot-path → the AUTHORED color dot-path (the `colorRef` string, e.g.
181
+ * 'gray.300' — never its resolved raw value).
182
+ */
183
+ export type ModeAliasDefinition = Record<string, Record<string, string>>;
184
+ /**
185
+ * One CSS fragment recorded by `build()` (manifest v2, D6) — the EXACT string
186
+ * it composed. In this manifest version the fragments RECORD the composed
187
+ * strings; `variableCss` is still composed independently (the
188
+ * fragment→variableCss projection becomes load-bearing with the CSS wire
189
+ * plan).
190
+ */
191
+ export interface ThemeCssFragment {
192
+ /** Stable fragment identifier (currently mirrors `kind`). */
193
+ id: string;
194
+ /** Semantic section: `@property` registrations vs the base variable CSS. */
195
+ kind: 'registrations' | 'base';
196
+ /** The exact composed CSS string — byte-identical to what build() joined. */
197
+ cssText: string;
198
+ }
85
199
  /** Structured manifest emitted by ThemeBuilder.build() for plugin consumption. */
86
200
  export interface ThemeManifest {
87
201
  /** Flat token key → raw value (e.g. 'space.8' → '0.5rem', 'colors.ember' → '#FF2800') */
@@ -94,5 +208,23 @@ export interface ThemeManifest {
94
208
  variableCss: string;
95
209
  /** Contextual vars registry: scale_name → [var_name] for --current-{name} side-effects */
96
210
  contextualVars?: Record<string, string[]>;
211
+ /** OS preference → mode mapping, when the theme opted into system emission */
212
+ systemPreference?: SystemPreferenceConfig;
213
+ /** Mode → CSS `color-scheme` classification, when the theme opted in */
214
+ browserColorScheme?: BrowserColorSchemeConfig;
215
+ /** Version discriminant. ABSENT ⇒ v1 manifest (variant creation rejects). */
216
+ manifestVersion?: 2;
217
+ /** Authored literal-vs-reference structure per flattened token path. */
218
+ tokenDefinitions?: Record<string, TokenDefinition>;
219
+ /** Mode name → alias dot-path → AUTHORED color dot-path (pre-resolution). */
220
+ modeAliasDefinitions?: ModeAliasDefinition;
221
+ /** `@property` registrations by contextual var name, in declaration order. */
222
+ registrations?: Record<string, ContextualVarRegistration>;
223
+ /** Version of the emitter that composed this manifest's CSS. */
224
+ emitterVersion?: number;
225
+ /** sha256 hex over sorted-key canonical JSON of the authored inputs. */
226
+ contractHash?: string;
227
+ /** The exact CSS strings build() composed, in emission order. */
228
+ cssFragments?: ThemeCssFragment[];
97
229
  }
98
230
  //# sourceMappingURL=theme.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/types/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,YAAY,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,WAAW,SAAS;CAAG;AAE7B,MAAM,WAAW,aAAc,SAAQ,SAAS;IAC9C,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CAC7B;AAED;;;GAGG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC;AAEvE;;;;;;;;;;;;;;;;;GAiBG;AAEH,MAAM,WAAW,KAAM,SAAQ,SAAS;CAAG;AAE3C;;;;GAIG;AACH,MAAM,MAAM,aAAa,GACrB,IAAI,MAAM,EAAE,GACZ,OAAO,MAAM,GAAG,GAChB,QAAQ,MA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CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IAC1D,gEAAgE;IAChE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iEAAiE;IACjE,YAAY,CAAC,EAAE,gBAAgB,EAAE,CAAC;CACnC"}
@@ -1,5 +1,2 @@
1
- /**
2
- * Deep merge utility — replaces lodash.merge for variant accumulation.
3
- */
4
1
  export declare function deepMerge<A extends Record<string, any>, B extends Record<string, any>>(target: A, source: B): A & B;
5
2
  //# sourceMappingURL=deepMerge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deepMerge.d.ts","sourceRoot":"","sources":["../../src/utils/deepMerge.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,SAAS,CACvB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAiB7B"}
1
+ {"version":3,"file":"deepMerge.d.ts","sourceRoot":"","sources":["../../src/utils/deepMerge.ts"],"names":[],"mappings":"AAMA,wBAAgB,SAAS,CACvB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAU7B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@animus-ui/system",
3
- "version": "0.1.1-beta.2",
3
+ "version": "0.1.2",
4
4
  "description": "Animus design system builder — tokens, prop groups, global styles",
5
5
  "keywords": [
6
6
  "css",
@@ -40,6 +40,14 @@
40
40
  "types": "./dist/groups/index.d.ts",
41
41
  "import": "./dist/groups/index.js"
42
42
  },
43
+ "./bootstrap": {
44
+ "types": "./dist/bootstrap/index.d.ts",
45
+ "import": "./dist/bootstrap/index.js"
46
+ },
47
+ "./appearance": {
48
+ "types": "./dist/appearance/index.d.ts",
49
+ "import": "./dist/appearance/index.js"
50
+ },
43
51
  "./compose": {
44
52
  "types": "./dist/compose.d.ts",
45
53
  "import": "./dist/compose.js"
@@ -59,11 +67,11 @@
59
67
  },
60
68
  "scripts": {
61
69
  "build": "bun run build:ts",
62
- "build:ts": "tsdown && tsgo -p tsconfig.build.json",
63
- "compile": "tsgo --noEmit"
70
+ "build:ts": "tsdown && tsc -p tsconfig.build.json",
71
+ "compile": "tsc --noEmit"
64
72
  },
65
73
  "dependencies": {
66
- "@animus-ui/properties": "0.1.1-beta.2",
74
+ "@animus-ui/properties": "0.1.2",
67
75
  "csstype": "^3.1.3"
68
76
  },
69
77
  "devDependencies": {