@animus-ui/system 0.1.11 → 0.1.12

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 (85) hide show
  1. package/README.md +124 -51
  2. package/dist/Animus.d.ts +1 -1
  3. package/dist/Animus.d.ts.map +1 -1
  4. package/dist/AnimusExtended.d.ts +1 -1
  5. package/dist/AnimusExtended.d.ts.map +1 -1
  6. package/dist/SystemBuilder.d.ts +184 -155
  7. package/dist/SystemBuilder.d.ts.map +1 -1
  8. package/dist/appearance/index.d.ts +0 -68
  9. package/dist/appearance/index.d.ts.map +1 -1
  10. package/dist/appearance/index.js +0 -91
  11. package/dist/assert-root-slot-C3Lp9MNJ.js +10 -0
  12. package/dist/asset.d.ts +4 -13
  13. package/dist/asset.d.ts.map +1 -1
  14. package/dist/bootstrap/createAppearanceBootstrap.d.ts +0 -57
  15. package/dist/bootstrap/createAppearanceBootstrap.d.ts.map +1 -1
  16. package/dist/bootstrap/index.d.ts.map +1 -1
  17. package/dist/bootstrap/index.js +4 -58
  18. package/dist/class-resolver.d.ts +2 -4
  19. package/dist/class-resolver.d.ts.map +1 -1
  20. package/dist/class-resolver.js +1 -1
  21. package/dist/compose.d.ts +2 -16
  22. package/dist/compose.d.ts.map +1 -1
  23. package/dist/compose.js +3 -17
  24. package/dist/composeWithContext.d.ts +4 -15
  25. package/dist/composeWithContext.d.ts.map +1 -1
  26. package/dist/composeWithContext.js +5 -16
  27. package/dist/conditions.d.ts +24 -141
  28. package/dist/conditions.d.ts.map +1 -1
  29. package/dist/{createClassResolver-BWyEQ5KZ.js → createClassResolver-EpwTL9Sa.js} +12 -113
  30. package/dist/{createComposedFamily-k5tTujGI.js → createComposedFamily-C4NovMcd.js} +11 -49
  31. package/dist/groups/index.js +1 -1
  32. package/dist/index.d.ts +1 -1
  33. package/dist/index.d.ts.map +1 -1
  34. package/dist/index.js +318 -409
  35. package/dist/keyframes.d.ts +2 -23
  36. package/dist/keyframes.d.ts.map +1 -1
  37. package/dist/runtime/assert-root-slot.d.ts +2 -13
  38. package/dist/runtime/assert-root-slot.d.ts.map +1 -1
  39. package/dist/runtime/createClassResolver.d.ts +0 -8
  40. package/dist/runtime/createClassResolver.d.ts.map +1 -1
  41. package/dist/runtime/createComposedFamily.d.ts +2 -7
  42. package/dist/runtime/createComposedFamily.d.ts.map +1 -1
  43. package/dist/runtime/index.d.ts +0 -16
  44. package/dist/runtime/index.d.ts.map +1 -1
  45. package/dist/runtime/is-dev.d.ts +2 -42
  46. package/dist/runtime/is-dev.d.ts.map +1 -1
  47. package/dist/runtime/resolveClasses.d.ts +8 -33
  48. package/dist/runtime/resolveClasses.d.ts.map +1 -1
  49. package/dist/runtime/witness.d.ts +0 -8
  50. package/dist/runtime/witness.d.ts.map +1 -1
  51. package/dist/runtime-entry.d.ts +1 -6
  52. package/dist/runtime-entry.d.ts.map +1 -1
  53. package/dist/runtime-entry.js +2 -2
  54. package/dist/selectors.d.ts +6 -45
  55. package/dist/selectors.d.ts.map +1 -1
  56. package/dist/{size-CcVEGaen.js → size-C6jqxiQy.js} +7 -34
  57. package/dist/theme/createTheme.d.ts +26 -95
  58. package/dist/theme/createTheme.d.ts.map +1 -1
  59. package/dist/theme/flattenScale.d.ts +4 -10
  60. package/dist/theme/flattenScale.d.ts.map +1 -1
  61. package/dist/theme/resolveReferences.d.ts +7 -35
  62. package/dist/theme/resolveReferences.d.ts.map +1 -1
  63. package/dist/theme/serializeTokens.d.ts +0 -3
  64. package/dist/theme/serializeTokens.d.ts.map +1 -1
  65. package/dist/theme/types.d.ts +4 -26
  66. package/dist/theme/types.d.ts.map +1 -1
  67. package/dist/theme/utils.d.ts +1 -18
  68. package/dist/theme/utils.d.ts.map +1 -1
  69. package/dist/transforms/border.d.ts +1 -4
  70. package/dist/transforms/border.d.ts.map +1 -1
  71. package/dist/transforms/createTransform.d.ts +6 -31
  72. package/dist/transforms/createTransform.d.ts.map +1 -1
  73. package/dist/transforms/grid.d.ts +2 -12
  74. package/dist/transforms/grid.d.ts.map +1 -1
  75. package/dist/transforms/size.d.ts +2 -8
  76. package/dist/transforms/size.d.ts.map +1 -1
  77. package/dist/types/component.d.ts +9 -105
  78. package/dist/types/component.d.ts.map +1 -1
  79. package/dist/types/config.d.ts +12 -141
  80. package/dist/types/config.d.ts.map +1 -1
  81. package/dist/types/theme.d.ts +8 -165
  82. package/dist/types/theme.d.ts.map +1 -1
  83. package/dist/utils/deepMerge.d.ts.map +1 -1
  84. package/package.json +4 -4
  85. package/dist/assert-root-slot-B73sDJ1Q.js +0 -21
@@ -1,147 +1,67 @@
1
1
  /**
2
- * Condition alias registry — maps `_`-prefixed alias keys to at-rule condition
3
- * strings (`@media` / `@container` / `@supports`). Parallel in shape to the
4
- * selector alias registry (`selectors.ts`): alias → `{ value, order, kind }`.
5
- *
6
- * `order` determines cascade precedence within a layer (aliased conditions emit
7
- * in registry order, per design D4). `kind` is inferred from the at-rule prefix
8
- * of `value` (design D3) and drives which at-rule the extractor wraps the block
9
- * in. Serialized into the manifest as the NEW `conditionAliases` field, leaving
10
- * `selectorAliases` byte-for-byte unchanged.
11
- *
12
- * This module hosts BOTH the runtime registry and the authoring TYPE surface
13
- * (inc 04): the augmentable `Conditions`/`Selectors` publication, the
14
- * `ConditionsOf`/`SelectorsOf` extractors, the branded rejection types
15
- * (`UnknownConditionAlias`/`UnknownAtRule`, plus the cross-registry
16
- * `ReservedBySelectorRegistry`/`ReservedByConditionRegistry`), and the shallow
17
- * `RawAtRuleKey` shapes consumed by `ThemedCSSProps`' kind-dispatched arms.
18
- * `addConditions()` constrains values to `AtRuleValue` at the type level;
19
- * `inferConditionKind` remains the runtime fail-loud check.
2
+ * Condition alias registry: `_`-prefixed alias keys → at-rule condition
3
+ * strings, plus the authoring type surface consumers augment.
20
4
  */
21
- /** The three condition kinds, inferred from the at-rule prefix of the value. */
22
5
  export type ConditionKind = 'media' | 'container' | 'supports';
23
6
  /**
24
- * Augmentable registry of registered condition alias keys. Empty by default;
25
- * a consumer publishes its registrations with:
26
- *
27
- * ```ts
28
- * declare module '@animus-ui/system' {
29
- * interface Conditions extends Record<ConditionsOf<typeof ds>, true> {}
30
- * }
31
- * ```
32
- *
33
- * When this interface is empty (no publication), `ThemedCSSProps` keeps
34
- * `_`-prefixed block keys permissive — the same graceful degradation the
35
- * augmentable `Theme` uses (empty theme ⇒ raw CSS values). Once populated, the
36
- * validating arms engage: unknown `_` keys resolve to `UnknownConditionAlias`.
37
- *
38
- * JOINT NAMESPACE (inc-04 F8/F9): condition and selector aliases share the one
39
- * `_` block-key namespace, so publishing EITHER `Conditions` OR `Selectors`
40
- * flips BOTH namespaces from permissive to validating (see `KnownUnderscoreKey`
41
- * in `types/config.ts`, whose gate reads `keyof Conditions | keyof Selectors`).
42
- *
43
- * Built-in condition aliases (`BUILT_IN_CONDITIONS`, design D8) are NOT members
44
- * of this interface — they live in the static `BuiltInConditionAlias` union
45
- * (`types/config.ts`), mirroring `BuiltInSelectorAlias`. Defaulting members here
46
- * would make publication permanently non-empty and destroy the degradation
47
- * contract above (a non-augmenting consumer with custom aliases would flip from
48
- * permissive to branded-rejection the day built-ins shipped).
7
+ * Augmentable registry of registered condition alias keys. Empty keeps `_`
8
+ * block keys permissive; publishing either registry validates both.
49
9
  */
50
10
  export interface Conditions {
51
11
  }
52
12
  declare const CONDS_BRAND: unique symbol;
53
13
  declare const SELS_BRAND: unique symbol;
54
14
  /**
55
- * Phantom brand carried on `build()`'s system output, threading the accumulated
56
- * registered condition (`C`) and custom selector (`S`) alias-key unions to the
57
- * consumer's augmentation site. Type-only — never present at runtime.
15
+ * Type-only phantom brand on a built system, carrying the registered
16
+ * condition (`C`) and selector (`S`) alias keys to the augmentation site.
58
17
  */
59
18
  export interface RegistryBrand<C extends string = never, S extends string = never> {
60
19
  readonly [CONDS_BRAND]?: C;
61
20
  readonly [SELS_BRAND]?: S;
62
21
  }
63
- /** Extract the registered condition alias keys from a built system. */
64
22
  export type ConditionsOf<Sys> = Sys extends RegistryBrand<infer C, string> ? C : never;
65
- /** Extract the registered custom selector alias keys from a built system. */
66
23
  export type SelectorsOf<Sys> = Sys extends RegistryBrand<string, infer S> ? S : never;
67
24
  /**
68
- * Branded rejection for a `_`-prefixed block key that is neither a registered
69
- * condition alias, a registered selector alias, a built-in selector alias,
70
- * nor a built-in condition alias.
71
- * The type name carries the offending key; the `hint` states the remedy. Never
72
- * a bare `never` arm — `never` produces a misleading "not assignable to
73
- * 'undefined'" (design D9, measured).
25
+ * Branded rejection for a `_` block key that no registry owns. Not a bare
26
+ * `never`: that reports a misleading "not assignable to 'undefined'".
74
27
  */
75
28
  export interface UnknownConditionAlias<K extends string> {
76
29
  readonly __unknownConditionAlias: K;
77
30
  readonly hint: `"${K}" is not a registered condition or selector alias. Register it with .addConditions() / .addSelectors(), or use a raw "&…" selector or "@media|@container|@supports (…)" key.`;
78
31
  }
79
- /**
80
- * Branded rejection for an `@`-prefixed block key that does not match an
81
- * accepted at-rule shape (`@media …` / `@container …` / `@supports …`). The
82
- * type name carries the offending key; the `hint` states the remedy.
83
- */
84
32
  export interface UnknownAtRule<K extends string> {
85
33
  readonly __unknownAtRule: K;
86
34
  readonly hint: `"${K}" is not a valid at-rule block key. At-rule keys must begin with "@media ", "@container ", or "@supports " followed by a parenthesized/feature tail.`;
87
35
  }
88
36
  /**
89
- * Branded rejection for an `addConditions()` key already owned by the SELECTOR
90
- * registry — a built-in (`BuiltInSelectorAlias`) or one registered earlier in
91
- * the chain. A name resolves through exactly one registry; the runtime throw in
92
- * `mergeConditions` is this type's fail-loud backstop.
93
- *
94
- * The rejecting arm must be a real type, never a bare `never`: in VALUE
95
- * position a `never` arm makes inference for the whole record fall back to the
96
- * constraint, dropping BOTH the check and the literal key accumulation — the
97
- * gate silently becomes a no-op.
98
- *
99
- * The static `BuiltInSelectorAlias`/`BuiltInConditionAlias` unions must stay in
100
- * sync with `BUILT_IN_SELECTORS`/`BUILT_IN_CONDITIONS` (25 and 9 entries today)
101
- * or this compile-time gate and the construction-time throw disagree.
37
+ * Rejection for an `addConditions()` key the selector registry owns. Never a
38
+ * bare `never`: in VALUE position it drops both the check and accumulation.
102
39
  */
103
40
  export interface ReservedBySelectorRegistry<K extends string> {
104
41
  readonly __reservedBySelectorRegistry: K;
105
42
  readonly hint: `"${K}" is already a selector alias — condition and selector alias names must be disjoint. Rename this condition alias, or redefine the selector with .addSelectors().`;
106
43
  }
107
- /**
108
- * Branded rejection for an `addSelectors()` key already owned by the CONDITION
109
- * registry — a built-in (`BuiltInConditionAlias`) or one registered earlier in
110
- * the chain. Mirror of `ReservedBySelectorRegistry`; the runtime throw in
111
- * `addSelectors` is the backstop.
112
- */
113
44
  export interface ReservedByConditionRegistry<K extends string> {
114
45
  readonly __reservedByConditionRegistry: K;
115
46
  readonly hint: `"${K}" is already a condition alias — condition and selector alias names must be disjoint. Rename this selector alias, or redefine the condition with .addConditions().`;
116
47
  }
117
48
  /**
118
- * The alias NAMES carried by a registered union, or `never` once that union has
119
- * widened to the whole `_` pattern. Registering a non-literal record
120
- * (`Record<`_${string}`, …>`) widens the phantom `Conds`/`Sels` union to
121
- * `` `_${string}` ``; a gate that subtracted it verbatim would then match every
122
- * subsequent key and reject legal aliases with a misleading brand. A widened
123
- * registration must not poison the opposite-registry gate — it goes quiet and
124
- * the construction-time throw stays the backstop for the names the type layer
125
- * can no longer enumerate. Built-ins are subtracted separately and are
126
- * unaffected.
49
+ * Alias names, or `never` once the union has widened to the whole `_`
50
+ * pattern — a widened union would reject every legal alias downstream.
127
51
  */
128
52
  export type NarrowedAliases<U extends string> = `_${string}` extends U ? never : U;
129
53
  /**
130
- * SHALLOW at-rule key shapes (design D9): prefix + tail only. Deep query-grammar
131
- * template literals are the repo's one known TS2589 zone (string-embedded
132
- * unions) and stay out — Rust validates queries for real; the type layer stops
133
- * at the prefix. The trailing space after each at-rule name is load-bearing: it
134
- * rejects prefix typos (`@containr …`, `@medi …`) without a closed grammar.
54
+ * Prefix + tail only: a deep query grammar hits TS2589. The trailing space
55
+ * is load-bearing — it rejects prefix typos (`@medi …`) without a grammar.
135
56
  */
136
57
  export type RawAtRuleKey = `@media ${string}` | `@container ${string}` | `@supports ${string}`;
137
58
  /**
138
- * The at-rule VALUE shape `addConditions()` accepts. Same prefix-only principle
139
- * as `RawAtRuleKey`, minus its trailing space — a value may open its query
59
+ * No trailing space, unlike `RawAtRuleKey`: a value may open its query
140
60
  * immediately (`@media(width>=40em)`).
141
61
  */
142
62
  export type AtRuleValue = `@media${string}` | `@container${string}` | `@supports${string}`;
143
63
  export interface ConditionAlias {
144
- /** Full at-rule condition string, e.g. `@media (prefers-reduced-motion: reduce)`. */
64
+ /** Full at-rule condition string, e.g. `@media print`. */
145
65
  value: string;
146
66
  /** Sort index for cascade ordering within a layer. */
147
67
  order: number;
@@ -150,61 +70,24 @@ export interface ConditionAlias {
150
70
  }
151
71
  export type ConditionAliasMap = Record<string, ConditionAlias>;
152
72
  /**
153
- * Built-in condition aliases (design D8, increment 06).
154
- *
155
- * The Panda-compatible media-feature set: motion, print, orientation, contrast,
156
- * and OS color-scheme preferences. Every alias is a pure `@media` feature query
157
- * (`kind: 'media'`). Color-mode aliases (`_dark` / `_light`) are DELIBERATELY
158
- * excluded — they are selector-kind (`[data-color-mode]`) surface owned by the
159
- * `system-color-scheme` change, not media features.
160
- *
161
- * ORDER BAND (inc-03 full-pass): built-ins occupy a reserved band BELOW the user
162
- * band — one slot of 10 per alias in table row order, 300–380. The user band
163
- * starts at 500 (`mergeConditions` floors allocation at 490 → first user alias
164
- * is 500), so built-ins and user registrations never interleave on collision.
165
- * This mirrors the selector registry's real layout (built-ins 10–440, users
166
- * 500+).
167
- *
168
- * The static type-level mirror is `BuiltInConditionAlias` in `types/config.ts`
169
- * (added to `KnownUnderscoreKey`'s VALIDATING branch, exactly like
170
- * `BuiltInSelectorAlias`). Built-ins are NOT members of the augmentable
171
- * `Conditions` interface: interface members would make publication permanently
172
- * non-empty, killing inc-04's graceful-degradation contract. The
173
- * `types.test-d.tsx` drift positives keep the two in sync.
73
+ * Media-feature aliases only — color-mode aliases are selector-kind. The
74
+ * reserved order band (300–380) sits below the user band (500+).
174
75
  */
175
76
  export declare const BUILT_IN_CONDITIONS: ConditionAliasMap;
176
77
  /**
177
- * Infer the condition kind from an at-rule value's prefix (design D3).
178
- * Throws (fail-loud, build time) when the value does not begin with a
179
- * supported at-rule name. The compile-time complement is `addConditions()`'s
180
- * value constraint (`@media`/`@container`/`@supports`-prefixed template
181
- * literals); this runtime throw remains the backstop for untyped callers.
78
+ * Throws on an unsupported prefix — the runtime backstop for untyped
79
+ * callers, complementing `addConditions()`'s value constraint.
182
80
  */
183
81
  export declare function inferConditionKind(value: string): ConditionKind;
184
82
  /**
185
- * Merge user-provided condition aliases with a base map.
186
- *
187
- * - User aliases override built-ins of the same name, preserving the existing
188
- * order (mirrors `mergeSelectors`).
189
- * - New aliases allocate orders CONTINUING from the highest existing order
190
- * (floored at 490, so the first user alias lands at 500) rather than
191
- * restarting at 500 each call — chained `.addConditions()` calls must not
192
- * collide on order 500.
193
- * - Fails loud when a condition alias name is already reserved by the SELECTOR
194
- * alias registry (`reservedSelectorNames`): the two registries share the `_`
195
- * namespace at the call site and their names MUST be disjoint, else a block
196
- * key would be ambiguous. The error names the offending alias and both
197
- * registries.
83
+ * Overrides keep the existing order; new aliases continue past the highest
84
+ * existing order (floor 490) so chained calls never collide on 500.
198
85
  */
199
86
  export declare function mergeConditions(base: ConditionAliasMap, custom: Record<string, string>, reservedSelectorNames?: ReadonlySet<string>): ConditionAliasMap;
200
- /** Get the sorted alias keys for deterministic cascade ordering. */
201
87
  export declare function getSortedConditionKeys(map: ConditionAliasMap): string[];
202
88
  /**
203
- * Serialize the condition map for the extraction pipeline.
204
- * Emits `alias → { value, order, kind }` in registry (cascade) order so the
205
- * JSON is deterministic. Distinct in SHAPE from the selector map (which
206
- * flattens to `alias → selector`) — the object entry is forward-compatible
207
- * with a future multi-valued `values: string[]` property (design D3).
89
+ * Emits `alias → { value, order, kind }` in cascade order so the JSON is
90
+ * deterministic.
208
91
  */
209
92
  export declare function serializeConditionMap(map: ConditionAliasMap): Record<string, ConditionAlias>;
210
93
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"conditions.d.ts","sourceRoot":"","sources":["../src/conditions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,gFAAgF;AAChF,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,WAAW,GAAG,UAAU,CAAC;AAY/D;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,MAAM,WAAW,UAAU;CAAG;AAE9B,OAAO,CAAC,MAAM,WAAW,EAAE,OAAO,MAAM,CAAC;AACzC,OAAO,CAAC,MAAM,UAAU,EAAE,OAAO,MAAM,CAAC;AAExC;;;;GAIG;AACH,MAAM,WAAW,aAAa,CAC5B,CAAC,SAAS,MAAM,GAAG,KAAK,EACxB,CAAC,SAAS,MAAM,GAAG,KAAK;IAExB,QAAQ,CAAC,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC;IAC3B,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC;CAC3B;AAED,uEAAuE;AACvE,MAAM,MAAM,YAAY,CAAC,GAAG,IAC1B,GAAG,SAAS,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAEzD,6EAA6E;AAC7E,MAAM,MAAM,WAAW,CAAC,GAAG,IACzB,GAAG,SAAS,aAAa,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAEzD;;;;;;;GAOG;AACH,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,MAAM;IACrD,QAAQ,CAAC,uBAAuB,EAAE,CAAC,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,8KAA8K,CAAC;CACpM;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa,C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,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAE/D;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,iBA0CjC,CAAC;AAQF;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,CAS/D;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,iBAAiB,EACvB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,qBAAqB,GAAE,WAAW,CAAC,MAAM,CAAqB,GAC7D,iBAAiB,CAuBnB;AAED,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,iBAAiB,GAAG,MAAM,EAAE,CAEvE;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,iBAAiB,GACrB,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAMhC"}
@@ -1,48 +1,8 @@
1
1
  import { isUnitlessProperty } from "@animus-ui/properties";
2
2
  //#region src/runtime/is-dev.ts
3
3
  /**
4
- * The runtime's dev-build signal, shared by every development-only path
5
- * (drop diagnostic, reachability witness). Several hosts have to be satisfied
6
- * at once, and they force this exact shape:
7
- *
8
- * - **Bundles built through an Animus plugin.** `__ANIMUS_DEV__` is a
9
- * build-time define supplied by the Vite plugin's `config` hook and by the
10
- * Next plugin's DefinePlugin entry, each keyed on its bundler's own
11
- * dev/build signal. It is tested FIRST, and as the CONDITIONAL OF THE
12
- * INITIALIZER ITSELF — not as an early return inside the IIFE below. That
13
- * distinction is the whole point: define-replacement turns the test into
14
- * `typeof false === 'boolean'`, and only in this position does the
15
- * production minifier propagate the resulting constant into every `IS_DEV`
16
- * reference, so the gated branches and their diagnostic strings leave the
17
- * bundle entirely. Hidden inside the IIFE, the same guard collapses to a
18
- * variable the minifier keeps, and every diagnostic string ships. Never
19
- * "tidy" this ternary into the fallback.
20
- * - **Browser bundles without the define.** `process.env.NODE_ENV` is a define
21
- * token that Vite and Next rewrite to a string literal; `typeof process` is
22
- * not rewritten by anything, so guarding the token with it strands every dev
23
- * branch in a browser (no `process` global → the conjunction is false in dev
24
- * too). The token must therefore be read bare.
25
- * - **Next under Turbopack.** The Next plugin supplies the define from its
26
- * `webpack()` hook, and a Turbopack-active run never calls that hook (the
27
- * Turbopack path wires rules and aliases instead), so those builds carry no
28
- * token and land on the `process.env.NODE_ENV` fallback below — correct
29
- * answer, no elimination.
30
- * - **QuickJS (the Rust system-loader).** It evaluates the system dist with no
31
- * define pass and no `process`, so the `typeof` test is simply false and the
32
- * bare read then throws ReferenceError at module scope — caught here, and
33
- * not-dev is the correct answer for a loader that only reads config.
34
- * `import.meta` is unavailable there (a script-context eval makes it a syntax
35
- * error), so it is never used.
36
- * - **Node (SSR, tests).** Reads the real `process.env.NODE_ENV`.
37
- *
38
- * Evaluated once, at module load: in every host the answer is fixed for the
39
- * lifetime of the bundle.
40
- *
41
- * The define is the sanctioned foldable path, and the only one. The try/catch
42
- * fallback is deliberately NOT foldable — a host that supplies no token keeps
43
- * its (gated-off, never-executed) diagnostic strings, which is the accepted
44
- * price of a diagnostic that actually fires in a browser dev build. Restore
45
- * elimination by supplying the define from a bundler plugin.
4
+ * The define token is tested as the initializer's own conditional, never from
5
+ * inside the fallback: only there can a minifier drop the dev-gated code.
46
6
  */
47
7
  const IS_DEV = typeof __ANIMUS_DEV__ === "boolean" ? __ANIMUS_DEV__ : (() => {
48
8
  try {
@@ -54,14 +14,6 @@ const IS_DEV = typeof __ANIMUS_DEV__ === "boolean" ? __ANIMUS_DEV__ : (() => {
54
14
  })();
55
15
  //#endregion
56
16
  //#region src/runtime/witness.ts
57
- /**
58
- * Dev-mode reachability witness: records every class-resolution outcome into a
59
- * bounded in-page ring buffer at globalThis.__ANIMUS_WITNESS__. Development
60
- * only — a production build records nothing and never creates the handle
61
- * (IS_DEV is false). See is-dev.ts for the define/fold story and which hosts
62
- * eliminate this code rather than merely gate it off. The handle name is the
63
- * greppable exclusion token.
64
- */
65
17
  const WITNESS_CAP = 5e3;
66
18
  function recordWitness(component, prop, value, outcome) {
67
19
  if (!IS_DEV) return;
@@ -78,15 +30,8 @@ function recordWitness(component, prop, value, outcome) {
78
30
  //#endregion
79
31
  //#region src/runtime/resolveClasses.ts
80
32
  /**
81
- * Apply unit fallback to a value for the CSS properties the value lands on.
82
- * `isUnitlessProperty` owns the spelling question, so either convention works.
83
- *
84
- * A mixed property set resolves to unitless: an unsuffixed number on a length
85
- * property is dropped by the CSS parser, whereas `px` on a unitless property
86
- * renders and silently changes layout — prefer the drop.
87
- *
88
- * An empty property list keeps the unconditional `px` — configs emitted before
89
- * `property` was carried name no property at all.
33
+ * A mixed property set resolves to unitless: a bare number on a length
34
+ * property is dropped by the parser, `px` on a unitless one shifts layout.
90
35
  */
91
36
  function applyUnitFallback(value, cssProperties) {
92
37
  if (typeof value === "number") {
@@ -96,29 +41,20 @@ function applyUnitFallback(value, cssProperties) {
96
41
  return String(value);
97
42
  }
98
43
  /**
99
- * Serialize a system prop value to a lookup key matching the Rust
100
- * css_generator's serialize_value_key output format.
44
+ * The key format is fixed by the Rust css generator; a divergence here misses
45
+ * every static class lookup.
101
46
  */
102
47
  function serializeValueKey(value) {
103
48
  if (typeof value === "number" || typeof value === "string") return String(value);
104
49
  if (typeof value === "object" && value !== null && !Array.isArray(value)) return Object.keys(value).sort().map((k) => `${k}:${value[k]}`).join("|");
105
50
  return String(value);
106
51
  }
107
- /**
108
- * Validity predicate for transform results (design D5): only strings and
109
- * finite numbers may reach the stylesheet. The gate applies solely where a
110
- * configured transform ran — scale hits without a transform are exempt.
111
- */
112
52
  function isValidTransformResult(result) {
113
53
  return typeof result === "string" || typeof result === "number" && Number.isFinite(result);
114
54
  }
115
55
  /**
116
- * Shape descriptor for an invalid transform result, shared by the drop
117
- * warning and its tests. `null` and arrays are named before `typeof` would
118
- * fold them into `object`; non-finite numbers get their own name because
119
- * finite ones are valid. Precondition: callers pass only results that failed
120
- * `isValidTransformResult` — valid strings/finite numbers are out of domain
121
- * and would be mislabeled.
56
+ * The domain is results that failed `isValidTransformResult`; a valid string
57
+ * or finite number passed here is mislabeled.
122
58
  */
123
59
  function describeResultShape(result) {
124
60
  if (result === null) return "null";
@@ -126,11 +62,6 @@ function describeResultShape(result) {
126
62
  if (typeof result === "number") return "non-finite-number";
127
63
  return typeof result;
128
64
  }
129
- /**
130
- * Resolve one entry through scale lookup → transform → unit fallback,
131
- * validating the transform result in both the scale-resolved and raw arms.
132
- * An invalid result yields its shape descriptor instead of a string.
133
- */
134
65
  function resolveEntry(value, dc) {
135
66
  const key = String(value);
136
67
  const scaleResolved = dc.scaleValues?.[key];
@@ -154,10 +85,8 @@ function warnDroppedValue(baseClassName, propName, serializedValue) {
154
85
  }
155
86
  }
156
87
  /**
157
- * Apply variant classes in declaration order, recording a static witness per
158
- * resolved variant. When a value comes from a defaultVariant fallback (prop not
159
- * passed), emit --{prop}-default instead of --{prop}-{value} so the compose
160
- * override rule cannot match, allowing inheritance from the parent to win.
88
+ * A value taken from a variant default emits `--{prop}-default`, not the
89
+ * value, so the compose override rule misses and the parent's value wins.
161
90
  */
162
91
  function applyVariantClasses(classes, baseClassName, props, config) {
163
92
  if (!config.variants) return;
@@ -170,10 +99,6 @@ function applyVariantClasses(classes, baseClassName, props, config) {
170
99
  }
171
100
  }
172
101
  }
173
- /**
174
- * Apply compound classes: push each compound's className when every condition
175
- * matches (against the prop value or its variant default). No witness records.
176
- */
177
102
  function applyCompoundClasses(classes, props, config) {
178
103
  if (!config.compounds) return;
179
104
  for (const compound of config.compounds) {
@@ -188,10 +113,6 @@ function applyCompoundClasses(classes, props, config) {
188
113
  if (match) classes.push(compound.className);
189
114
  }
190
115
  }
191
- /**
192
- * Apply state classes and track active states for data-attribute passthrough,
193
- * recording a static witness per active state.
194
- */
195
116
  function applyStateClasses(classes, baseClassName, props, config, activeStates) {
196
117
  if (!config.states) return;
197
118
  for (const state of config.states) if (props[state]) {
@@ -210,18 +131,8 @@ function warnInvalidTransformResult(baseClassName, propName, shape) {
210
131
  }
211
132
  }
212
133
  /**
213
- * Expand a resolved dynamic prop into slot classes and CSS-variable style
214
- * entries. Responsive objects expand per breakpoint: the `_` base breakpoint
215
- * uses the bare slotClass and varName; named breakpoints suffix both
216
- * (`${slotClass}-${bp}` and `${varName}-${bp}`). Scalar values push the bare
217
- * slotClass and set varName directly.
218
- *
219
- * Two-phase so the drop is atomic: every entry resolves into a staging list
220
- * before any mutation. One invalid transform result anywhere — the scalar, or
221
- * any single breakpoint — returns that failure (first offending shape) with
222
- * `classes` and `dynStyle` untouched. On success the staged entries apply in
223
- * the pre-existing push order and the function returns `null`; the caller
224
- * records the witness from the outcome.
134
+ * Resolution is staged so a drop is atomic: one invalid transform result
135
+ * anywhere leaves `classes` and `dynStyle` untouched.
225
136
  */
226
137
  function applyDynamicProp(classes, dynStyle, propValue, dc) {
227
138
  const staged = [];
@@ -254,10 +165,6 @@ function applyDynamicProp(classes, dynStyle, propValue, dc) {
254
165
  }
255
166
  return null;
256
167
  }
257
- /**
258
- * Resolve className parts from props, using extracted configuration.
259
- * This is the shared logic between createComponent and createClassResolver.
260
- */
261
168
  function resolveClasses(baseClassName, props, config, systemPropMap, dynamicPropConfig) {
262
169
  const classes = [baseClassName];
263
170
  let dynStyle;
@@ -304,14 +211,6 @@ function resolveClasses(baseClassName, props, config, systemPropMap, dynamicProp
304
211
  }
305
212
  //#endregion
306
213
  //#region src/runtime/createClassResolver.ts
307
- /**
308
- * createClassResolver — framework-agnostic className resolution.
309
- *
310
- * Produced by .asClass() terminal. Same resolution logic as createComponent
311
- * (variants, states, compounds, system props). The resolver remains callable
312
- * as a className string function and also exposes framework-neutral attributes
313
- * for renderers that need dynamic CSS-variable styles.
314
- */
315
214
  function serializeDynamicStyle(style) {
316
215
  return Object.entries(style).map(([property, value]) => `${property}: ${value}`).join("; ");
317
216
  }
@@ -1,11 +1,10 @@
1
- import { n as resolveClasses } from "./createClassResolver-BWyEQ5KZ.js";
2
- import { t as assertRootSlot } from "./assert-root-slot-B73sDJ1Q.js";
1
+ import { n as resolveClasses } from "./createClassResolver-EpwTL9Sa.js";
2
+ import { t as assertRootSlot } from "./assert-root-slot-C3Lp9MNJ.js";
3
3
  import { Children, cloneElement, createElement, forwardRef, isValidElement } from "react";
4
4
  //#region src/runtime/index.ts
5
5
  /**
6
- * Merge multiple refs (callback or object) into a single callback ref.
7
- * Creates a new callback on each call — no memoization possible in a
8
- * hook-free runtime (RSC compatibility). Matches @radix-ui/react-compose-refs.
6
+ * A new callback on every call: the runtime stays hook-free so components
7
+ * work in server components, which rules memoization out.
9
8
  */
10
9
  function composeRefs(...refs) {
11
10
  return (node) => {
@@ -14,16 +13,8 @@ function composeRefs(...refs) {
14
13
  };
15
14
  }
16
15
  /**
17
- * Forward props to the underlying element, filtering out Animus-managed props.
18
- *
19
- * data-* and aria-* attributes always pass through to the DOM, even when used
20
- * as variant/state keys. This enables headless UI interop: the attribute is
21
- * consumed for styling AND forwarded to the element so external frameworks
22
- * (Radix, Ark-UI) see it.
23
- *
24
- * filterProps covers all Animus props, so unknown props pass through: for DOM
25
- * elements React handles any unknown-attribute warnings in dev mode, and for
26
- * component elements all non-filtered props are forwarded to the component.
16
+ * `data-*` and `aria-*` reach the DOM even when they key a variant or state,
17
+ * so headless libraries driving those attributes still see them.
27
18
  */
28
19
  function forwardProps(props, filterProps, domProps) {
29
20
  for (const [key, value] of Object.entries(props)) {
@@ -33,13 +24,8 @@ function forwardProps(props, filterProps, domProps) {
33
24
  }
34
25
  }
35
26
  /**
36
- * asChild render path: don't render our own element — merge the resolved
37
- * className/ref/style onto the single child element, plus the parent's own
38
- * forwardable props (event handlers, role, aria-*, data-*, id, tabIndex).
39
- *
40
- * Conflict rule is child-wins: the parent's props are spread UNDER the child's
41
- * own, so a handler or attribute declared on the child replaces the parent's
42
- * rather than chaining with it.
27
+ * The child wins every conflict: parent props spread under the child's own, so
28
+ * a handler declared on the child replaces the parent's instead of chaining.
43
29
  */
44
30
  function renderAsChild(className, filterProps, props, ref, classes, dynamicStyle) {
45
31
  const child = Children.only(props.children);
@@ -64,10 +50,6 @@ function renderAsChild(className, filterProps, props, ref, classes, dynamicStyle
64
50
  ...mergedStyle ? { style: mergedStyle } : {}
65
51
  });
66
52
  }
67
- /**
68
- * Normal render path: render our own element (or the `as` override), forwarding
69
- * filtered props and applying any dynamic CSS-variable style.
70
- */
71
53
  function renderElement(element, filterProps, props, ref, classes, dynamicStyle) {
72
54
  const target = props.as || element;
73
55
  const domProps = {
@@ -81,26 +63,11 @@ function renderElement(element, filterProps, props, ref, classes, dynamicStyle)
81
63
  } : dynamicStyle;
82
64
  return createElement(target, domProps);
83
65
  }
84
- /**
85
- * Create a lightweight component that applies extracted CSS class names.
86
- * Replaces Emotion's styled() for extracted components.
87
- *
88
- * The element parameter accepts either an HTML tag string (e.g. 'button') or
89
- * a React component reference (e.g. NextLink). When a component reference is
90
- * used, prop forwarding skips the HTML-attribute validity check — all
91
- * non-filtered props are forwarded to the component.
92
- *
93
- * The optional systemPropMap parameter provides the shared prop→value→className
94
- * lookup table, served as a virtual module by the Vite plugin.
95
- *
96
- * The optional dynamicPropConfig parameter provides CSS variable fallback
97
- * metadata for props with detected dynamic usage.
98
- */
99
66
  function createComponent(element, className, config, systemPropMap, dynamicPropConfig) {
100
67
  const variantProps = config.variants ? Object.keys(config.variants) : [];
101
68
  const stateProps = config.states || [];
102
69
  const systemPropNames = config.systemPropNames || [];
103
- const filterProps = new Set([
70
+ const filterProps = /* @__PURE__ */ new Set([
104
71
  "as",
105
72
  "asChild",
106
73
  ...variantProps,
@@ -127,13 +94,8 @@ function createComponent(element, className, config, systemPropMap, dynamicPropC
127
94
  //#endregion
128
95
  //#region src/runtime/createComposedFamily.ts
129
96
  /**
130
- * createComposedFamily — extraction-time replacement for compose().
131
- *
132
- * The transform emitter replaces `compose({ Root, Body }, { shared, name })`
133
- * with `createComposedFamily({ Root, Body }, { name })`.
134
- *
135
- * RSC-safe: uses only forwardRef and createElement — no createContext,
136
- * no useContext, no hooks.
97
+ * The extraction emitter rewrites `compose()` calls to this form. It stays
98
+ * hook- and context-free so composed families work in server components.
137
99
  */
138
100
  function createComposedFamily(slots, config) {
139
101
  assertRootSlot(slots, "createComposedFamily");
@@ -1,4 +1,4 @@
1
- import { a as borderShorthand, i as gridItemRatio, n as size, o as createScale, r as gridItem } from "../size-CcVEGaen.js";
1
+ import { a as borderShorthand, i as gridItemRatio, n as size, o as createScale, r as gridItem } from "../size-C6jqxiQy.js";
2
2
  //#region src/groups/index.ts
3
3
  const color = {
4
4
  color: {
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export { asset, ASSET_PLACEHOLDER_PREFIX, type AssetRef } from './asset.js';
6
6
  export { createComponent } from './runtime';
7
7
  export { type ClassResolver, type ClassResolverAttributes, createClassResolver, } from './runtime/createClassResolver';
8
8
  export { createComposedFamily } from './runtime/createComposedFamily';
9
- export type { CreateKeyframesFactory, FontFace, FontFaceSrc, GlobalStyleBlock, GlobalStyleMap, GlobalStylesFactory, LibraryBundle, RegistrySnapshot, SerializedConfig, SystemBuilderStage, SystemInstance, } from './SystemBuilder';
9
+ export type { CreateKeyframesFactory, FontFace, FontFaceSrc, GlobalStyleBlock, GlobalStyleMap, GlobalStylesFactory, KeyframesFrameData, LibraryBundle, RegisterableGlobalStyles, RegisterableKeyframes, RegistrySnapshot, SealedSystemInstance, SerializedConfig, SystemBuilderStage, SystemBundle, SystemInstance, VocabularyCollisionEntry, VocabularyGlobalStyleEntry, VocabularyKeyframesEntry, VocabularyLegacyVerbEntry, VocabularyNameCollision, VocabularyOf, VocabularyRecord, } from './SystemBuilder';
10
10
  export { createSystem, SystemBuilder } from './SystemBuilder';
11
11
  export { createScale, numericOrStringScale, numericScale, stringScale, } from './scales/createScale';
12
12
  export { type AtRuleValue, BUILT_IN_CONDITIONS, type ConditionAlias, type ConditionAliasMap, type ConditionKind, type Conditions, type ConditionsOf, type NarrowedAliases, type RawAtRuleKey, type RegistryBrand, type ReservedByConditionRegistry, type ReservedBySelectorRegistry, type SelectorsOf, type UnknownAtRule, type UnknownConditionAlias, } from './conditions.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAIzE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,YAAY,EAAE,gBAAgB,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE5E,OAAO,EAAE,KAAK,EAAE,wBAAwB,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE5E,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,mBAAmB,GACpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,YAAY,EACV,sBAAsB,EACtB,QAAQ,EACR,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,GACf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE9D,OAAO,EACL,WAAW,EACX,oBAAoB,EACpB,YAAY,EACZ,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EACL,KAAK,WAAW,EAChB,mBAAmB,EACnB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,2BAA2B,EAChC,KA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