@animus-ui/system 0.1.4 → 0.1.6
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.
- package/dist/Animus.d.ts +1 -1
- package/dist/Animus.d.ts.map +1 -1
- package/dist/AnimusExtended.d.ts +1 -1
- package/dist/AnimusExtended.d.ts.map +1 -1
- package/dist/SystemBuilder.d.ts +39 -4
- package/dist/SystemBuilder.d.ts.map +1 -1
- package/dist/assert-root-slot-B83scqPh.js +21 -0
- package/dist/compose.d.ts +3 -1
- package/dist/compose.d.ts.map +1 -1
- package/dist/compose.js +2 -1
- package/dist/composeWithContext.d.ts +3 -1
- package/dist/composeWithContext.d.ts.map +1 -1
- package/dist/composeWithContext.js +3 -2
- package/dist/conditions.d.ts +52 -4
- package/dist/conditions.d.ts.map +1 -1
- package/dist/{createComposedFamily-DJ2aqfqN.js → createComposedFamily-DhjtkyWd.js} +81 -7
- package/dist/groups/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -2
- package/dist/runtime/assert-root-slot.d.ts +17 -0
- package/dist/runtime/assert-root-slot.d.ts.map +1 -0
- package/dist/runtime/createComposedFamily.d.ts.map +1 -1
- package/dist/runtime/is-dev.d.ts +46 -0
- package/dist/runtime/is-dev.d.ts.map +1 -0
- package/dist/runtime/resolveClasses.d.ts +15 -7
- package/dist/runtime/resolveClasses.d.ts.map +1 -1
- package/dist/runtime/witness.d.ts +4 -2
- package/dist/runtime/witness.d.ts.map +1 -1
- package/dist/runtime-entry.js +1 -1
- package/dist/types/config.d.ts +19 -14
- package/dist/types/config.d.ts.map +1 -1
- package/package.json +2 -2
- /package/dist/{size-CDBRRzkb.js → size-DHdmBc64.js} +0 -0
package/dist/Animus.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare class AnimusWithAll<PropRegistry extends Record<string, Prop>, Gr
|
|
|
13
13
|
custom: CustomProps;
|
|
14
14
|
compounds: CompoundEntry[];
|
|
15
15
|
constructor(props: PropRegistry, groups: GroupRegistry, base: BaseStyles, variants: Variants, states: States, activeGroups: ActiveGroups, custom: CustomProps, compounds?: CompoundEntry[]);
|
|
16
|
-
extend(): AnimusExtended<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
16
|
+
protected extend(): AnimusExtended<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
17
17
|
asElement<El extends keyof JSX.IntrinsicElements>(component: El): AnimusComponent<El, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
18
18
|
asComponent<C extends ComponentType<any>>(AsComponent: C): AnimusWrappedComponent<C, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
19
19
|
asClass(): (props?: Record<string, unknown>) => string;
|
package/dist/Animus.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Animus.d.ts","sourceRoot":"","sources":["../src/Animus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,EACL,cAAc,EACd,aAAa,EACb,UAAU,EACV,QAAQ,EACR,gBAAgB,EAChB,IAAI,EACJ,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,aAAa,EACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAG9C,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAE3B,qBAAa,aAAa,CACxB,YAAY,SAAS,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EACzC,aAAa,SAAS,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,YAAY,CAAC,EAAE,CAAC,EAC5D,UAAU,SAAS,QAAQ,CAAC,a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AAQ,EAAE,gBAAgB,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;KACjD;eAJQ,OAAO;yBACG,OAAO,CAAC,MAAM,KAAK,EAAE,MAAM,CAAC;eACtC,cAAc,CAAC,IAAI,EAAE,YAAY,CAAC;kBAC/B,gBAAgB,CAAC,KAAK,EAAE,YAAY,CAAC;QAiBhD;CACF;AAED,qBAAa,MAAM,CACjB,YAAY,SAAS,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EACzC,aAAa,SAAS,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,YAAY,CAAC,EAAE,CAAC,CAC5D,SAAQ,cAAc,CAAC,YAAY,EAAE,aAAa,EAAE,EAAE,CAAC;IACvD,YAAY,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,EAErD;IACD,MAAM,CAAC,KAAK,SAAS,aAAa,EAChC,MAAM,EAAE,cAAc,CAAC,KAAK,EAAE,YAAY,CAAC,oFAO5C;CACF"}
|
package/dist/AnimusExtended.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare class AnimusExtendedWithAll<PropRegistry extends Record<string, P
|
|
|
12
12
|
custom: CustomProps;
|
|
13
13
|
compounds: CompoundEntry[];
|
|
14
14
|
constructor(props: PropRegistry, groups: GroupRegistry, base: BaseStyles, variants: Variants, states: States, activeGroups: ActiveGroups, custom: CustomProps, compounds?: CompoundEntry[]);
|
|
15
|
-
extend(): AnimusExtended<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
15
|
+
protected extend(): AnimusExtended<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
16
16
|
asElement<El extends keyof JSX.IntrinsicElements>(component: El): AnimusComponent<El, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
17
17
|
asComponent<C extends ComponentType<any>>(AsComponent: C): AnimusWrappedComponent<C, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
18
18
|
asClass(): (props?: Record<string, unknown>) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnimusExtended.d.ts","sourceRoot":"","sources":["../src/AnimusExtended.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3C,OAAO,EACL,cAAc,EACd,aAAa,EACb,UAAU,EACV,QAAQ,EACR,gBAAgB,EAChB,IAAI,EACJ,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,aAAa,EACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAG9C,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAE3B,qBAAa,qBAAqB,CAChC,YAAY,SAAS,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EACzC,aAAa,SAAS,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,YAAY,CAAC,EAAE,CAAC,EAC5D,UAAU,SAAS,QAAQ,CAAC,aAAa,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC,EACvE,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAC9C,MAAM,SAAS,UAAU,CAAC,aAAa,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC,EACrE,YAAY,SAAS,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EACzC,WAAW,SAAS,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC;IAExC,YAAY,EAAS,YAAY,CAAC;IAClC,aAAa,EAAS,aAAa,CAAC;IACpC,UAAU,EAAS,UAAU,CAAC;IAC9B,YAAY,EAAS,MAAM,CAAC;IAC5B,QAAQ,EAAS,QAAQ,CAAC;IAC1B,YAAY,EAAS,YAAY,CAAC;IAClC,MAAM,EAAS,WAAW,CAAC;IAC3B,SAAS,EAAE,aAAa,EAAE,CAAM;IAEhC,YACE,KAAK,E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C,MAAM,EAAE,CAAC,MAAM,YAAY,CAAC,EAAE,CAAC,EAC5D,UAAU,SAAS,QAAQ,CAAC,aAAa,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC,EACvE,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,EAC9C,MAAM,SAAS,UAAU,CAAC,aAAa,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC,EACrE,YAAY,SAAS,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,EACzC,WAAW,SAAS,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CACxC,SAAQ,sBAAsB,CAC9B,YAAY,EACZ,aAAa,EACb,UAAU,EACV,QAAQ,EACR,MAAM,EACN,YAAY,EACZ,WAAW,CACZ;IACC,MAAM,CAAC,KAAK,SAAS,aAAa,EAChC,MAAM,EAAE,cAAc,CAAC,KAAK,EAAE,YAAY,CAAC,sJAoB5C;CACF"}
|
package/dist/SystemBuilder.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Animus } from './Animus';
|
|
2
2
|
import { type AssetRef } from './asset.js';
|
|
3
|
-
import { type ConditionAliasMap, type RegistryBrand } from './conditions';
|
|
3
|
+
import { type AtRuleValue, type ConditionAliasMap, type NarrowedAliases, type RegistryBrand, type ReservedByConditionRegistry, type ReservedBySelectorRegistry } from './conditions';
|
|
4
4
|
import { type KeyframeFrameMap, type Keyframes } from './keyframes';
|
|
5
5
|
import { type SelectorAliasMap } from './selectors';
|
|
6
6
|
import { NamedTransform } from './transforms/createTransform';
|
|
7
|
-
import { Prop, ThemedCSSProps } from './types/config';
|
|
7
|
+
import { type BuiltInConditionAlias, type BuiltInSelectorAlias, Prop, ThemedCSSProps } from './types/config';
|
|
8
8
|
import { AbstractProps } from './types/props';
|
|
9
9
|
export type GlobalStyleMap = Record<string, Record<string, any>>;
|
|
10
10
|
/** One `src` descriptor of a font-face resource. */
|
|
@@ -183,7 +183,24 @@ export declare class SystemBuilder<PropReg extends Record<string, Prop> = {}, Gr
|
|
|
183
183
|
* the builder's own type state passes through unchanged.
|
|
184
184
|
*/
|
|
185
185
|
extend(this: SystemBuilder<PropReg, GroupReg, Conds, Sels, 'inherit'>, source: LibraryBundle): SystemBuilder<PropReg, GroupReg, Conds, Sels, 'inherit'>;
|
|
186
|
-
|
|
186
|
+
/**
|
|
187
|
+
* Register custom selector aliases (`_hoverChild`, …) → `&`-relative selector
|
|
188
|
+
* strings. Overriding a built-in SELECTOR alias is legal; a name owned by the
|
|
189
|
+
* CONDITION registry (built-in or registered earlier in this chain) maps to
|
|
190
|
+
* the branded `ReservedByConditionRegistry` instead of its selector string —
|
|
191
|
+
* the compile-time complement of the cross-registry throw below. The clash is
|
|
192
|
+
* checked in VALUE position so `S` stays a naked inference site; subtracting
|
|
193
|
+
* the reserved names from the KEY position is impossible — `Exclude` is a
|
|
194
|
+
* silent no-op against a template-literal pattern. `NarrowedAliases` keeps a
|
|
195
|
+
* widened `Conds` from swallowing the whole `_` namespace.
|
|
196
|
+
*
|
|
197
|
+
* It wraps the ACCUMULATION too: a widened registration contributes nothing
|
|
198
|
+
* to `Sels` rather than widening it, so the pattern can never reach the
|
|
199
|
+
* published `RegistryBrand` — see `addConditions` for the full argument.
|
|
200
|
+
*/
|
|
201
|
+
addSelectors<S extends Record<`_${string}`, string>>(selectors: S & {
|
|
202
|
+
[K in keyof S]: K extends BuiltInConditionAlias | NarrowedAliases<Conds> ? ReservedByConditionRegistry<K & string> : S[K];
|
|
203
|
+
}): SystemBuilder<PropReg, GroupReg, Conds, Sels | NarrowedAliases<Extract<keyof S, string>>, 'extend'>;
|
|
187
204
|
/**
|
|
188
205
|
* Register condition aliases (`_motionReduce`, `_cardSm`, …) → at-rule
|
|
189
206
|
* condition strings (`@media …` / `@container …` / `@supports …`).
|
|
@@ -193,8 +210,26 @@ export declare class SystemBuilder<PropReg extends Record<string, Prop> = {}, Gr
|
|
|
193
210
|
* with an at-rule name is a compile-time type error (design D9; the runtime
|
|
194
211
|
* `inferConditionKind` throw is defense-in-depth). The registered keys are
|
|
195
212
|
* accumulated into the phantom `Conds` union and surfaced on `build()`.
|
|
213
|
+
*
|
|
214
|
+
* A key owned by the SELECTOR registry (built-in or registered earlier in
|
|
215
|
+
* this chain) maps to the branded `ReservedBySelectorRegistry` — see
|
|
216
|
+
* `addSelectors` for why the clash is checked in value position. Overriding a
|
|
217
|
+
* built-in CONDITION alias stays legal (design D3); only the OPPOSITE
|
|
218
|
+
* registry is subtracted.
|
|
219
|
+
*
|
|
220
|
+
* `NarrowedAliases` wraps the ACCUMULATION, not just the gate: a widened
|
|
221
|
+
* registration (`Record<`_${string}`, …>`) contributes nothing to `Conds`.
|
|
222
|
+
* Accumulating the pattern instead would carry it out through `build()`'s
|
|
223
|
+
* `RegistryBrand`, and a consumer publishing `ConditionsOf` into the
|
|
224
|
+
* augmentable `Conditions` interface would then have every `_` key type as
|
|
225
|
+
* registered — `UnknownConditionAlias` would never fire again, anywhere in
|
|
226
|
+
* that project. The gate keeps its own `NarrowedAliases` regardless:
|
|
227
|
+
* `extend()`-sourced unions can still arrive widened from a system built
|
|
228
|
+
* before this narrowing.
|
|
196
229
|
*/
|
|
197
|
-
addConditions<C extends Record<`_${string}`,
|
|
230
|
+
addConditions<C extends Record<`_${string}`, AtRuleValue>>(conditions: C & {
|
|
231
|
+
[K in keyof C]: K extends BuiltInSelectorAlias | NarrowedAliases<Sels> ? ReservedBySelectorRegistry<K & string> : C[K];
|
|
232
|
+
}): SystemBuilder<PropReg, GroupReg, Conds | NarrowedAliases<Extract<keyof C, string>>, Sels, 'extend'>;
|
|
198
233
|
addGroup<Name extends string, Conf extends Record<string, Prop>>(name: Name extends keyof PropReg ? never : Name, config: Conf): SystemBuilder<PropReg & Conf, GroupReg & Record<Name, (keyof Conf)[]>, Conds, Sels, 'extend'>;
|
|
199
234
|
addProps<Conf extends Record<string, Prop> & Partial<Record<Extract<keyof GroupReg, string>, never>>>(config: Conf): SystemBuilder<PropReg & Conf, GroupReg, Conds, Sels, 'extend'>;
|
|
200
235
|
build(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SystemBuilder.d.ts","sourceRoot":"","sources":["../src/SystemBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,
|
|
1
|
+
{"version":3,"file":"SystemBuilder.d.ts","sourceRoot":"","sources":["../src/SystemBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,iBAAiB,EAEtB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAEhC,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,SAAS,EAEf,MAAM,aAAa,CAAC;AACrB,OAAO,EAGL,KAAK,gBAAgB,EAEtB,MAAM,aAAa,CAAC;AACrB,OAAO,EAEL,cAAc,EAEf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,IAAI,EACJ,cAAc,EACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAW9C,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;AAEjE,oDAAoD;AACpD,MAAM,WAAW,WAAW;IAC1B;;;;;;OAMG;IACH,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAC;IACvB,mEAAmE;IACnE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,MA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the two
|
|
4
|
+
* source forms (`compose`, `composeWithContext`) and the two extracted forms
|
|
5
|
+
* the transform emitter writes in their place (`createComposedFamily`,
|
|
6
|
+
* `createComposedFamilyWithContext`).
|
|
7
|
+
*
|
|
8
|
+
* A family without a Root slot has no cascade source: the composed variant
|
|
9
|
+
* rules emitted for its children inherit nothing, and the context transport
|
|
10
|
+
* renders them against the empty default — the silent-drop failure mode this
|
|
11
|
+
* runtime guards against. Source form and extracted form must agree on the
|
|
12
|
+
* contract, so the check and its message live here once.
|
|
13
|
+
*
|
|
14
|
+
* React-free by design: the extracted forms import it from the same module the
|
|
15
|
+
* source forms do, with no cycle through the component runtime.
|
|
16
|
+
*/
|
|
17
|
+
function assertRootSlot(slots, fnName) {
|
|
18
|
+
if (!Object.prototype.propertyIsEnumerable.call(slots, "Root")) throw new Error(`${fnName}(): No "Root" slot found. The root slot key must be exactly "Root" (PascalCase).`);
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { assertRootSlot as t };
|
package/dist/compose.d.ts
CHANGED
|
@@ -17,7 +17,9 @@ import type { AnyBrandedComponent, ComposedFamily, SharedConfig } from './types/
|
|
|
17
17
|
* For React context propagation (portal-crossing), use
|
|
18
18
|
* `composeWithContext` from `@animus-ui/system/compose-with-context`.
|
|
19
19
|
*/
|
|
20
|
-
export declare function compose<Slots extends
|
|
20
|
+
export declare function compose<Slots extends {
|
|
21
|
+
Root: AnyBrandedComponent;
|
|
22
|
+
} & Record<string, AnyBrandedComponent>, const Shared extends SharedConfig<Slots>>(slots: Slots, options: {
|
|
21
23
|
shared: Shared;
|
|
22
24
|
name?: string;
|
|
23
25
|
}): ComposedFamily<Slots>;
|
package/dist/compose.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,YAAY,EACb,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,OAAO,CACrB,KAAK,SAAS;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,GAAG,MAAM,CAClD,MAAM,EACN,mBAAmB,CACpB,EACD,KAAK,CAAC,MAAM,SAAS,YAAY,CAAC,KAAK,CAAC,EAExC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GACzC,cAAc,CAAC,KAAK,CAAC,CAoBvB"}
|
package/dist/compose.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t as assertRootSlot } from "./assert-root-slot-B83scqPh.js";
|
|
1
2
|
import { createElement, forwardRef } from "react";
|
|
2
3
|
//#region src/compose.ts
|
|
3
4
|
/**
|
|
@@ -19,6 +20,7 @@ import { createElement, forwardRef } from "react";
|
|
|
19
20
|
* `composeWithContext` from `@animus-ui/system/compose-with-context`.
|
|
20
21
|
*/
|
|
21
22
|
function compose(slots, options) {
|
|
23
|
+
assertRootSlot(slots, "compose");
|
|
22
24
|
const familyName = options.name ?? "Composed";
|
|
23
25
|
const result = {};
|
|
24
26
|
for (const [name, SourceComponent] of Object.entries(slots)) {
|
|
@@ -29,7 +31,6 @@ function compose(slots, options) {
|
|
|
29
31
|
Wrapper.displayName = `${familyName}.${name}`;
|
|
30
32
|
result[name] = Wrapper;
|
|
31
33
|
}
|
|
32
|
-
if (!("Root" in result)) throw new Error("compose(): No \"Root\" slot found. The root slot key must be exactly \"Root\" (PascalCase).");
|
|
33
34
|
return result;
|
|
34
35
|
}
|
|
35
36
|
//#endregion
|
|
@@ -10,7 +10,9 @@ import type { AnyBrandedComponent, ComposedFamily, SharedConfig } from './types/
|
|
|
10
10
|
* For CSS-only propagation (RSC-safe), use `compose` from the barrel or
|
|
11
11
|
* `@animus-ui/system/compose`.
|
|
12
12
|
*/
|
|
13
|
-
export declare function composeWithContext<Slots extends
|
|
13
|
+
export declare function composeWithContext<Slots extends {
|
|
14
|
+
Root: AnyBrandedComponent;
|
|
15
|
+
} & Record<string, AnyBrandedComponent>, const Shared extends SharedConfig<Slots>>(slots: Slots, options: {
|
|
14
16
|
shared: Shared;
|
|
15
17
|
name?: string;
|
|
16
18
|
}): ComposedFamily<Slots>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"composeWithContext.d.ts","sourceRoot":"","sources":["../src/composeWithContext.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,yBAAyB,EAI/B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"composeWithContext.d.ts","sourceRoot":"","sources":["../src/composeWithContext.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,yBAAyB,EAI/B,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,YAAY,EACb,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,SAAS;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,GAAG,MAAM,CAClD,MAAM,EACN,mBAAmB,CACpB,EACD,KAAK,CAAC,MAAM,SAAS,YAAY,CAAC,KAAK,CAAC,EAExC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GACzC,cAAc,CAAC,KAAK,CAAC,CA8DvB;AAED;;;;;;;;GAQG;AACH,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,GAAG,CAAC,CAAC,EACrD,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,EAAE,CAAA;CAAE,GAC7C,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,GAAG,CAAC,CAAC,CAuDhD"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { t as assertRootSlot } from "./assert-root-slot-B83scqPh.js";
|
|
2
3
|
import { createContext, createElement, forwardRef, useContext } from "react";
|
|
3
4
|
//#region src/composeWithContext.ts
|
|
4
5
|
/**
|
|
@@ -12,6 +13,7 @@ import { createContext, createElement, forwardRef, useContext } from "react";
|
|
|
12
13
|
* `@animus-ui/system/compose`.
|
|
13
14
|
*/
|
|
14
15
|
function composeWithContext(slots, options) {
|
|
16
|
+
assertRootSlot(slots, "composeWithContext");
|
|
15
17
|
const familyName = options.name ?? "Composed";
|
|
16
18
|
const sharedKeySet = new Set(Object.keys(options.shared));
|
|
17
19
|
const FamilyCtx = createContext({});
|
|
@@ -46,7 +48,6 @@ function composeWithContext(slots, options) {
|
|
|
46
48
|
Wrapper.displayName = `${familyName}.${name}`;
|
|
47
49
|
result[name] = Wrapper;
|
|
48
50
|
}
|
|
49
|
-
if (!("Root" in result)) throw new Error("composeWithContext(): No \"Root\" slot found. The root slot key must be exactly \"Root\" (PascalCase).");
|
|
50
51
|
return result;
|
|
51
52
|
}
|
|
52
53
|
/**
|
|
@@ -59,6 +60,7 @@ function composeWithContext(slots, options) {
|
|
|
59
60
|
* receive a 'use client' directive from the transform emitter.
|
|
60
61
|
*/
|
|
61
62
|
function createComposedFamilyWithContext(slots, config) {
|
|
63
|
+
assertRootSlot(slots, "createComposedFamilyWithContext");
|
|
62
64
|
const { name, sharedKeys } = config;
|
|
63
65
|
const Ctx = createContext({});
|
|
64
66
|
const keySet = new Set(sharedKeys);
|
|
@@ -93,7 +95,6 @@ function createComposedFamilyWithContext(slots, config) {
|
|
|
93
95
|
Wrapper.displayName = `${name}.${slotName}`;
|
|
94
96
|
result[slotName] = Wrapper;
|
|
95
97
|
}
|
|
96
|
-
if (!("Root" in result)) throw new Error("createComposedFamilyWithContext(): No \"Root\" slot found. The root slot key must be exactly \"Root\" (PascalCase).");
|
|
97
98
|
return result;
|
|
98
99
|
}
|
|
99
100
|
//#endregion
|
package/dist/conditions.d.ts
CHANGED
|
@@ -12,10 +12,11 @@
|
|
|
12
12
|
* This module hosts BOTH the runtime registry and the authoring TYPE surface
|
|
13
13
|
* (inc 04): the augmentable `Conditions`/`Selectors` publication, the
|
|
14
14
|
* `ConditionsOf`/`SelectorsOf` extractors, the branded rejection types
|
|
15
|
-
* (`UnknownConditionAlias`/`UnknownAtRule
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
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.
|
|
19
20
|
*/
|
|
20
21
|
/** The three condition kinds, inferred from the at-rule prefix of the value. */
|
|
21
22
|
export type ConditionKind = 'media' | 'container' | 'supports';
|
|
@@ -84,6 +85,47 @@ export interface UnknownAtRule<K extends string> {
|
|
|
84
85
|
readonly __unknownAtRule: K;
|
|
85
86
|
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.`;
|
|
86
87
|
}
|
|
88
|
+
/**
|
|
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.
|
|
102
|
+
*/
|
|
103
|
+
export interface ReservedBySelectorRegistry<K extends string> {
|
|
104
|
+
readonly __reservedBySelectorRegistry: K;
|
|
105
|
+
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
|
+
}
|
|
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
|
+
export interface ReservedByConditionRegistry<K extends string> {
|
|
114
|
+
readonly __reservedByConditionRegistry: K;
|
|
115
|
+
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
|
+
}
|
|
117
|
+
/**
|
|
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.
|
|
127
|
+
*/
|
|
128
|
+
export type NarrowedAliases<U extends string> = `_${string}` extends U ? never : U;
|
|
87
129
|
/**
|
|
88
130
|
* SHALLOW at-rule key shapes (design D9): prefix + tail only. Deep query-grammar
|
|
89
131
|
* template literals are the repo's one known TS2589 zone (string-embedded
|
|
@@ -92,6 +134,12 @@ export interface UnknownAtRule<K extends string> {
|
|
|
92
134
|
* rejects prefix typos (`@containr …`, `@medi …`) without a closed grammar.
|
|
93
135
|
*/
|
|
94
136
|
export type RawAtRuleKey = `@media ${string}` | `@container ${string}` | `@supports ${string}`;
|
|
137
|
+
/**
|
|
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
|
|
140
|
+
* immediately (`@media(width>=40em)`).
|
|
141
|
+
*/
|
|
142
|
+
export type AtRuleValue = `@media${string}` | `@container${string}` | `@supports${string}`;
|
|
95
143
|
export interface ConditionAlias {
|
|
96
144
|
/** Full at-rule condition string, e.g. `@media (prefers-reduced-motion: reduce)`. */
|
|
97
145
|
value: string;
|
package/dist/conditions.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conditions.d.ts","sourceRoot":"","sources":["../src/conditions.ts"],"names":[],"mappings":"AAAA
|
|
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,CAC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
1
2
|
import { Children, cloneElement, createElement, forwardRef, isValidElement } from "react";
|
|
2
|
-
import {
|
|
3
|
+
import { isUnitlessProperty } from "@animus-ui/properties";
|
|
4
|
+
//#region src/runtime/is-dev.ts
|
|
5
|
+
/**
|
|
6
|
+
* The runtime's dev-build signal, shared by every development-only path
|
|
7
|
+
* (drop diagnostic, reachability witness). Several hosts have to be satisfied
|
|
8
|
+
* at once, and they force this exact shape:
|
|
9
|
+
*
|
|
10
|
+
* - **Bundles built through an Animus plugin.** `__ANIMUS_DEV__` is a
|
|
11
|
+
* build-time define supplied by the Vite plugin's `config` hook and by the
|
|
12
|
+
* Next plugin's DefinePlugin entry, each keyed on its bundler's own
|
|
13
|
+
* dev/build signal. It is tested FIRST, and as the CONDITIONAL OF THE
|
|
14
|
+
* INITIALIZER ITSELF — not as an early return inside the IIFE below. That
|
|
15
|
+
* distinction is the whole point: define-replacement turns the test into
|
|
16
|
+
* `typeof false === 'boolean'`, and only in this position does the
|
|
17
|
+
* production minifier propagate the resulting constant into every `IS_DEV`
|
|
18
|
+
* reference, so the gated branches and their diagnostic strings leave the
|
|
19
|
+
* bundle entirely. Hidden inside the IIFE, the same guard collapses to a
|
|
20
|
+
* variable the minifier keeps, and every diagnostic string ships. Never
|
|
21
|
+
* "tidy" this ternary into the fallback.
|
|
22
|
+
* - **Browser bundles without the define.** `process.env.NODE_ENV` is a define
|
|
23
|
+
* token that Vite and Next rewrite to a string literal; `typeof process` is
|
|
24
|
+
* not rewritten by anything, so guarding the token with it strands every dev
|
|
25
|
+
* branch in a browser (no `process` global → the conjunction is false in dev
|
|
26
|
+
* too). The token must therefore be read bare.
|
|
27
|
+
* - **Next under Turbopack.** The Next plugin supplies the define from its
|
|
28
|
+
* `webpack()` hook, and a Turbopack-active run never calls that hook (the
|
|
29
|
+
* Turbopack path wires rules and aliases instead), so those builds carry no
|
|
30
|
+
* token and land on the `process.env.NODE_ENV` fallback below — correct
|
|
31
|
+
* answer, no elimination.
|
|
32
|
+
* - **QuickJS (the Rust system-loader).** It evaluates the system dist with no
|
|
33
|
+
* define pass and no `process`, so the `typeof` test is simply false and the
|
|
34
|
+
* bare read then throws ReferenceError at module scope — caught here, and
|
|
35
|
+
* not-dev is the correct answer for a loader that only reads config.
|
|
36
|
+
* `import.meta` is unavailable there (a script-context eval makes it a syntax
|
|
37
|
+
* error), so it is never used.
|
|
38
|
+
* - **Node (SSR, tests).** Reads the real `process.env.NODE_ENV`.
|
|
39
|
+
*
|
|
40
|
+
* Evaluated once, at module load: in every host the answer is fixed for the
|
|
41
|
+
* lifetime of the bundle.
|
|
42
|
+
*
|
|
43
|
+
* The define is the sanctioned foldable path, and the only one. The try/catch
|
|
44
|
+
* fallback is deliberately NOT foldable — a host that supplies no token keeps
|
|
45
|
+
* its (gated-off, never-executed) diagnostic strings, which is the accepted
|
|
46
|
+
* price of a diagnostic that actually fires in a browser dev build. Restore
|
|
47
|
+
* elimination by supplying the define from a bundler plugin.
|
|
48
|
+
*/
|
|
49
|
+
const IS_DEV = typeof __ANIMUS_DEV__ === "boolean" ? __ANIMUS_DEV__ : (() => {
|
|
50
|
+
try {
|
|
51
|
+
if (typeof process !== "undefined" && typeof process.env === "undefined") return true;
|
|
52
|
+
return process.env.NODE_ENV !== "production";
|
|
53
|
+
} catch {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
})();
|
|
57
|
+
//#endregion
|
|
3
58
|
//#region src/runtime/witness.ts
|
|
59
|
+
/**
|
|
60
|
+
* Dev-mode reachability witness: records every class-resolution outcome into a
|
|
61
|
+
* bounded in-page ring buffer at globalThis.__ANIMUS_WITNESS__. Development
|
|
62
|
+
* only — a production build records nothing and never creates the handle
|
|
63
|
+
* (IS_DEV is false). See is-dev.ts for the define/fold story and which hosts
|
|
64
|
+
* eliminate this code rather than merely gate it off. The handle name is the
|
|
65
|
+
* greppable exclusion token.
|
|
66
|
+
*/
|
|
4
67
|
const WITNESS_CAP = 5e3;
|
|
5
68
|
function recordWitness(component, prop, value, outcome) {
|
|
6
|
-
if (
|
|
69
|
+
if (!IS_DEV) return;
|
|
7
70
|
const g = globalThis;
|
|
8
71
|
const buf = g.__ANIMUS_WITNESS__ ??= [];
|
|
9
72
|
buf.push({
|
|
@@ -17,11 +80,19 @@ function recordWitness(component, prop, value, outcome) {
|
|
|
17
80
|
//#endregion
|
|
18
81
|
//#region src/runtime/resolveClasses.ts
|
|
19
82
|
/**
|
|
20
|
-
* Apply unit fallback to a value for
|
|
83
|
+
* Apply unit fallback to a value for the CSS properties the value lands on.
|
|
84
|
+
* `isUnitlessProperty` owns the spelling question, so either convention works.
|
|
85
|
+
*
|
|
86
|
+
* A mixed property set resolves to unitless: an unsuffixed number on a length
|
|
87
|
+
* property is dropped by the CSS parser, whereas `px` on a unitless property
|
|
88
|
+
* renders and silently changes layout — prefer the drop.
|
|
89
|
+
*
|
|
90
|
+
* An empty property list keeps the unconditional `px` — configs emitted before
|
|
91
|
+
* `property` was carried name no property at all.
|
|
21
92
|
*/
|
|
22
|
-
function applyUnitFallback(value,
|
|
93
|
+
function applyUnitFallback(value, cssProperties) {
|
|
23
94
|
if (typeof value === "number") {
|
|
24
|
-
if (
|
|
95
|
+
if (cssProperties.some(isUnitlessProperty)) return String(value);
|
|
25
96
|
return `${value}px`;
|
|
26
97
|
}
|
|
27
98
|
return String(value);
|
|
@@ -45,11 +116,13 @@ function resolveValue(value, dc) {
|
|
|
45
116
|
const transformed = dc.transform ? dc.transform(scaleResolved) : scaleResolved;
|
|
46
117
|
return String(transformed);
|
|
47
118
|
}
|
|
48
|
-
|
|
119
|
+
const transformed = dc.transform ? dc.transform(value) : value;
|
|
120
|
+
if (typeof transformed !== "number") return String(transformed);
|
|
121
|
+
return applyUnitFallback(transformed, dc.properties && dc.properties.length > 0 ? dc.properties : dc.property ? [dc.property] : []);
|
|
49
122
|
}
|
|
50
123
|
const warnedDrops = /* @__PURE__ */ new Set();
|
|
51
124
|
function warnDroppedValue(baseClassName, propName, serializedValue) {
|
|
52
|
-
if (
|
|
125
|
+
if (IS_DEV) {
|
|
53
126
|
const dedupeKey = `${baseClassName}|${propName}`;
|
|
54
127
|
if (warnedDrops.has(dedupeKey)) return;
|
|
55
128
|
warnedDrops.add(dedupeKey);
|
|
@@ -320,6 +393,7 @@ function createClassResolver(className, config, systemPropMap, dynamicPropConfig
|
|
|
320
393
|
* no useContext, no hooks.
|
|
321
394
|
*/
|
|
322
395
|
function createComposedFamily(slots, config) {
|
|
396
|
+
assertRootSlot(slots, "createComposedFamily");
|
|
323
397
|
const { name } = config;
|
|
324
398
|
const result = {};
|
|
325
399
|
for (const [slotName, SourceComponent] of Object.entries(slots)) {
|
package/dist/groups/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as borderShorthand, i as gridItemRatio, n as size, o as createScale, r as gridItem } from "../size-
|
|
1
|
+
import { a as borderShorthand, i as gridItemRatio, n as size, o as createScale, r as gridItem } from "../size-DHdmBc64.js";
|
|
2
2
|
//#region src/groups/index.ts
|
|
3
3
|
const color = {
|
|
4
4
|
color: {
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export { createComposedFamily } from './runtime/createComposedFamily';
|
|
|
9
9
|
export type { CreateKeyframesFactory, FontFace, FontFaceSrc, GlobalStyleBlock, GlobalStyleMap, GlobalStylesFactory, LibraryBundle, RegistrySnapshot, SerializedConfig, SystemBuilderStage, SystemInstance, } from './SystemBuilder';
|
|
10
10
|
export { createSystem, SystemBuilder } from './SystemBuilder';
|
|
11
11
|
export { createScale, numericOrStringScale, numericScale, stringScale, } from './scales/createScale';
|
|
12
|
-
export { BUILT_IN_CONDITIONS, type ConditionAlias, type ConditionAliasMap, type ConditionKind, type Conditions, type ConditionsOf, type RawAtRuleKey, type RegistryBrand, type SelectorsOf, type UnknownAtRule, type UnknownConditionAlias, } from './conditions.js';
|
|
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';
|
|
13
13
|
export { BUILT_IN_SELECTORS, type SelectorAlias, type SelectorAliasMap, type Selectors, } from './selectors';
|
|
14
14
|
export type { Assign, AssignValueIfUnmergable, ColorModeConfig, FindPath, KeyAsVariable, LiteralPaths, Mergable, Merge, MergeTheme, Path, PathToLiteral, PathValue, PrivateThemeKeys, SanitizeKey, } from './theme';
|
|
15
15
|
export { createTheme, type Flatten, ThemeBuilder, type ThemeBuilderStage, } from './theme';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,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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BAAoB,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE/D,YAAY,EACV,eAAe,EACf,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,EACb,UAAU,EACV,QAAQ,EACR,gBAAgB,EAChB,MAAM,EACN,WAAW,EACX,IAAI,EACJ,cAAc,EACd,KAAK,EACL,UAAU,EACV,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,aAAa,GACd,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,aAAa,EACb,aAAa,EACb,cAAc,EACd,UAAU,GACX,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC3D,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,YAAY,EACV,aAAa,EACb,SAAS,EACT,wBAAwB,EACxB,gBAAgB,EAChB,aAAa,EACb,yBAAyB,EACzB,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,sBAAsB,EACtB,KAAK,EACL,aAAa,EACb,kBAAkB,EAClB,WAAW,GACZ,MAAM,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as createClassResolver, r as createComponent, t as createComposedFamily } from "./createComposedFamily-
|
|
1
|
+
import { n as createClassResolver, r as createComponent, t as createComposedFamily } from "./createComposedFamily-DhjtkyWd.js";
|
|
2
2
|
import { compose } from "./compose.js";
|
|
3
|
-
import { a as borderShorthand, c as numericScale, d as createTransform, i as gridItemRatio, l as stringScale, n as size, o as createScale, r as gridItem, s as numericOrStringScale, t as percentageOrAbsolute, u as areTransformsEqual } from "./size-
|
|
3
|
+
import { a as borderShorthand, c as numericScale, d as createTransform, i as gridItemRatio, l as stringScale, n as size, o as createScale, r as gridItem, s as numericOrStringScale, t as percentageOrAbsolute, u as areTransformsEqual } from "./size-DHdmBc64.js";
|
|
4
4
|
//#region src/utils/deepMerge.ts
|
|
5
5
|
/**
|
|
6
6
|
* Deep merge utility — replaces lodash.merge for variant accumulation.
|
|
@@ -752,6 +752,21 @@ var SystemBuilder = class SystemBuilder {
|
|
|
752
752
|
}, newConditions, new Set(Object.keys(nextSelectors)));
|
|
753
753
|
return new SystemBuilder(nextProps, nextGroups, nextSelectors, [...this.#includesRegistry, instance], nextConditions, provenance, sourceIndex);
|
|
754
754
|
}
|
|
755
|
+
/**
|
|
756
|
+
* Register custom selector aliases (`_hoverChild`, …) → `&`-relative selector
|
|
757
|
+
* strings. Overriding a built-in SELECTOR alias is legal; a name owned by the
|
|
758
|
+
* CONDITION registry (built-in or registered earlier in this chain) maps to
|
|
759
|
+
* the branded `ReservedByConditionRegistry` instead of its selector string —
|
|
760
|
+
* the compile-time complement of the cross-registry throw below. The clash is
|
|
761
|
+
* checked in VALUE position so `S` stays a naked inference site; subtracting
|
|
762
|
+
* the reserved names from the KEY position is impossible — `Exclude` is a
|
|
763
|
+
* silent no-op against a template-literal pattern. `NarrowedAliases` keeps a
|
|
764
|
+
* widened `Conds` from swallowing the whole `_` namespace.
|
|
765
|
+
*
|
|
766
|
+
* It wraps the ACCUMULATION too: a widened registration contributes nothing
|
|
767
|
+
* to `Sels` rather than widening it, so the pattern can never reach the
|
|
768
|
+
* published `RegistryBrand` — see `addConditions` for the full argument.
|
|
769
|
+
*/
|
|
755
770
|
addSelectors(selectors) {
|
|
756
771
|
for (const name of Object.keys(selectors)) if (name in this.#conditionRegistry) throw new Error(`addSelectors: "${name}" is already registered as a condition alias; a name resolves through exactly one registry. Pick a distinct name.`);
|
|
757
772
|
const merged = mergeSelectors(this.#selectorRegistry, selectors);
|
|
@@ -766,6 +781,22 @@ var SystemBuilder = class SystemBuilder {
|
|
|
766
781
|
* with an at-rule name is a compile-time type error (design D9; the runtime
|
|
767
782
|
* `inferConditionKind` throw is defense-in-depth). The registered keys are
|
|
768
783
|
* accumulated into the phantom `Conds` union and surfaced on `build()`.
|
|
784
|
+
*
|
|
785
|
+
* A key owned by the SELECTOR registry (built-in or registered earlier in
|
|
786
|
+
* this chain) maps to the branded `ReservedBySelectorRegistry` — see
|
|
787
|
+
* `addSelectors` for why the clash is checked in value position. Overriding a
|
|
788
|
+
* built-in CONDITION alias stays legal (design D3); only the OPPOSITE
|
|
789
|
+
* registry is subtracted.
|
|
790
|
+
*
|
|
791
|
+
* `NarrowedAliases` wraps the ACCUMULATION, not just the gate: a widened
|
|
792
|
+
* registration (`Record<`_${string}`, …>`) contributes nothing to `Conds`.
|
|
793
|
+
* Accumulating the pattern instead would carry it out through `build()`'s
|
|
794
|
+
* `RegistryBrand`, and a consumer publishing `ConditionsOf` into the
|
|
795
|
+
* augmentable `Conditions` interface would then have every `_` key type as
|
|
796
|
+
* registered — `UnknownConditionAlias` would never fire again, anywhere in
|
|
797
|
+
* that project. The gate keeps its own `NarrowedAliases` regardless:
|
|
798
|
+
* `extend()`-sourced unions can still arrive widened from a system built
|
|
799
|
+
* before this narrowing.
|
|
769
800
|
*/
|
|
770
801
|
addConditions(conditions) {
|
|
771
802
|
const merged = mergeConditions(this.#conditionRegistry, conditions, new Set(Object.keys(this.#selectorRegistry)));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Root-slot precondition shared by every composition entry point — the two
|
|
3
|
+
* source forms (`compose`, `composeWithContext`) and the two extracted forms
|
|
4
|
+
* the transform emitter writes in their place (`createComposedFamily`,
|
|
5
|
+
* `createComposedFamilyWithContext`).
|
|
6
|
+
*
|
|
7
|
+
* A family without a Root slot has no cascade source: the composed variant
|
|
8
|
+
* rules emitted for its children inherit nothing, and the context transport
|
|
9
|
+
* renders them against the empty default — the silent-drop failure mode this
|
|
10
|
+
* runtime guards against. Source form and extracted form must agree on the
|
|
11
|
+
* contract, so the check and its message live here once.
|
|
12
|
+
*
|
|
13
|
+
* React-free by design: the extracted forms import it from the same module the
|
|
14
|
+
* source forms do, with no cycle through the component runtime.
|
|
15
|
+
*/
|
|
16
|
+
export declare function assertRootSlot(slots: object, fnName: string): void;
|
|
17
|
+
//# sourceMappingURL=assert-root-slot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assert-root-slot.d.ts","sourceRoot":"","sources":["../../src/runtime/assert-root-slot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAUlE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createComposedFamily.d.ts","sourceRoot":"","sources":["../../src/runtime/createComposedFamily.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAEL,KAAK,yBAAyB,EAG/B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"createComposedFamily.d.ts","sourceRoot":"","sources":["../../src/runtime/createComposedFamily.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAEL,KAAK,yBAAyB,EAG/B,MAAM,OAAO,CAAC;AAIf,UAAU,oBAAoB;IAC5B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,GAAG,CAAC,CAAC,EACrD,MAAM,EAAE,oBAAoB,GAC3B,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,GAAG,CAAC,CAAC,CAmBhD"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The runtime's dev-build signal, shared by every development-only path
|
|
3
|
+
* (drop diagnostic, reachability witness). Several hosts have to be satisfied
|
|
4
|
+
* at once, and they force this exact shape:
|
|
5
|
+
*
|
|
6
|
+
* - **Bundles built through an Animus plugin.** `__ANIMUS_DEV__` is a
|
|
7
|
+
* build-time define supplied by the Vite plugin's `config` hook and by the
|
|
8
|
+
* Next plugin's DefinePlugin entry, each keyed on its bundler's own
|
|
9
|
+
* dev/build signal. It is tested FIRST, and as the CONDITIONAL OF THE
|
|
10
|
+
* INITIALIZER ITSELF — not as an early return inside the IIFE below. That
|
|
11
|
+
* distinction is the whole point: define-replacement turns the test into
|
|
12
|
+
* `typeof false === 'boolean'`, and only in this position does the
|
|
13
|
+
* production minifier propagate the resulting constant into every `IS_DEV`
|
|
14
|
+
* reference, so the gated branches and their diagnostic strings leave the
|
|
15
|
+
* bundle entirely. Hidden inside the IIFE, the same guard collapses to a
|
|
16
|
+
* variable the minifier keeps, and every diagnostic string ships. Never
|
|
17
|
+
* "tidy" this ternary into the fallback.
|
|
18
|
+
* - **Browser bundles without the define.** `process.env.NODE_ENV` is a define
|
|
19
|
+
* token that Vite and Next rewrite to a string literal; `typeof process` is
|
|
20
|
+
* not rewritten by anything, so guarding the token with it strands every dev
|
|
21
|
+
* branch in a browser (no `process` global → the conjunction is false in dev
|
|
22
|
+
* too). The token must therefore be read bare.
|
|
23
|
+
* - **Next under Turbopack.** The Next plugin supplies the define from its
|
|
24
|
+
* `webpack()` hook, and a Turbopack-active run never calls that hook (the
|
|
25
|
+
* Turbopack path wires rules and aliases instead), so those builds carry no
|
|
26
|
+
* token and land on the `process.env.NODE_ENV` fallback below — correct
|
|
27
|
+
* answer, no elimination.
|
|
28
|
+
* - **QuickJS (the Rust system-loader).** It evaluates the system dist with no
|
|
29
|
+
* define pass and no `process`, so the `typeof` test is simply false and the
|
|
30
|
+
* bare read then throws ReferenceError at module scope — caught here, and
|
|
31
|
+
* not-dev is the correct answer for a loader that only reads config.
|
|
32
|
+
* `import.meta` is unavailable there (a script-context eval makes it a syntax
|
|
33
|
+
* error), so it is never used.
|
|
34
|
+
* - **Node (SSR, tests).** Reads the real `process.env.NODE_ENV`.
|
|
35
|
+
*
|
|
36
|
+
* Evaluated once, at module load: in every host the answer is fixed for the
|
|
37
|
+
* lifetime of the bundle.
|
|
38
|
+
*
|
|
39
|
+
* The define is the sanctioned foldable path, and the only one. The try/catch
|
|
40
|
+
* fallback is deliberately NOT foldable — a host that supplies no token keeps
|
|
41
|
+
* its (gated-off, never-executed) diagnostic strings, which is the accepted
|
|
42
|
+
* price of a diagnostic that actually fires in a browser dev build. Restore
|
|
43
|
+
* elimination by supplying the define from a bundler plugin.
|
|
44
|
+
*/
|
|
45
|
+
export declare const IS_DEV: boolean;
|
|
46
|
+
//# sourceMappingURL=is-dev.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-dev.d.ts","sourceRoot":"","sources":["../../src/runtime/is-dev.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,eAAO,MAAM,MAAM,SAsBT,CAAC"}
|
|
@@ -24,14 +24,26 @@ export type SystemPropMap = Record<string, Record<string, string>>;
|
|
|
24
24
|
export type DynamicPropConfig = Record<string, {
|
|
25
25
|
varName: string;
|
|
26
26
|
slotClass: string;
|
|
27
|
+
/** CSS property the slot class declares — the unit-fallback decision. */
|
|
28
|
+
property?: string;
|
|
29
|
+
/** Member properties when the prop expands to several declarations. */
|
|
30
|
+
properties?: readonly string[];
|
|
27
31
|
transformName?: string;
|
|
28
32
|
transform?: (value: string | number) => string | number;
|
|
29
33
|
scaleValues?: Record<string, string>;
|
|
30
34
|
}>;
|
|
31
35
|
/**
|
|
32
|
-
* Apply unit fallback to a value for
|
|
36
|
+
* Apply unit fallback to a value for the CSS properties the value lands on.
|
|
37
|
+
* `isUnitlessProperty` owns the spelling question, so either convention works.
|
|
38
|
+
*
|
|
39
|
+
* A mixed property set resolves to unitless: an unsuffixed number on a length
|
|
40
|
+
* property is dropped by the CSS parser, whereas `px` on a unitless property
|
|
41
|
+
* renders and silently changes layout — prefer the drop.
|
|
42
|
+
*
|
|
43
|
+
* An empty property list keeps the unconditional `px` — configs emitted before
|
|
44
|
+
* `property` was carried name no property at all.
|
|
33
45
|
*/
|
|
34
|
-
export declare function applyUnitFallback(value: string | number,
|
|
46
|
+
export declare function applyUnitFallback(value: string | number, cssProperties: readonly string[]): string;
|
|
35
47
|
/**
|
|
36
48
|
* Serialize a system prop value to a lookup key matching the Rust
|
|
37
49
|
* css_generator's serialize_value_key output format.
|
|
@@ -40,11 +52,7 @@ export declare function serializeValueKey(value: unknown): string;
|
|
|
40
52
|
/**
|
|
41
53
|
* Resolve a dynamic prop value through scale lookup → transform → unit fallback.
|
|
42
54
|
*/
|
|
43
|
-
export declare function resolveValue(value: unknown, dc:
|
|
44
|
-
varName: string;
|
|
45
|
-
transform?: (value: string | number) => string | number;
|
|
46
|
-
scaleValues?: Record<string, string>;
|
|
47
|
-
}): string;
|
|
55
|
+
export declare function resolveValue(value: unknown, dc: Pick<DynamicPropConfig[string], 'varName' | 'property' | 'properties' | 'transform' | 'scaleValues'>): string;
|
|
48
56
|
export interface ClassResolution {
|
|
49
57
|
classes: string[];
|
|
50
58
|
dynamicStyle?: Record<string, string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveClasses.d.ts","sourceRoot":"","sources":["../../src/runtime/resolveClasses.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,UAAU,aAAa;IACrB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,cAAc;IACtB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;IAC9C,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IACzC,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;I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CAAC;CACxB;AAmID;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,MAAM,EAAE,mBAAmB,EAC3B,aAAa,CAAC,EAAE,aAAa,EAC7B,iBAAiB,CAAC,EAAE,iBAAiB,GACpC,eAAe,CAgDjB"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Dev-mode reachability witness: records every class-resolution outcome into a
|
|
3
3
|
* bounded in-page ring buffer at globalThis.__ANIMUS_WITNESS__. Development
|
|
4
|
-
* only — production
|
|
5
|
-
*
|
|
4
|
+
* only — a production build records nothing and never creates the handle
|
|
5
|
+
* (IS_DEV is false). See is-dev.ts for the define/fold story and which hosts
|
|
6
|
+
* eliminate this code rather than merely gate it off. The handle name is the
|
|
7
|
+
* greppable exclusion token.
|
|
6
8
|
*/
|
|
7
9
|
export type WitnessOutcome = 'static' | 'dynamic' | 'drop';
|
|
8
10
|
export interface WitnessRecord {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"witness.d.ts","sourceRoot":"","sources":["../../src/runtime/witness.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"witness.d.ts","sourceRoot":"","sources":["../../src/runtime/witness.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AAE3D,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,cAAc,CAAC;CACzB;AAED,eAAO,MAAM,WAAW,OAAO,CAAC;AAEhC,wBAAgB,aAAa,CAC3B,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,OAAO,EACd,OAAO,EAAE,cAAc,GACtB,IAAI,CAUN"}
|
package/dist/runtime-entry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createClassResolver, r as createComponent, t as createComposedFamily } from "./createComposedFamily-
|
|
1
|
+
import { n as createClassResolver, r as createComponent, t as createComposedFamily } from "./createComposedFamily-DhjtkyWd.js";
|
|
2
2
|
export { createClassResolver, createComponent, createComposedFamily };
|
package/dist/types/config.d.ts
CHANGED
|
@@ -73,27 +73,32 @@ export type SystemProps<P extends AbstractParser, SafeProps = Omit<Arg<P>, 'them
|
|
|
73
73
|
/** Colors-only: accept `{colors.key/number}` opacity syntax in component styles. */
|
|
74
74
|
type ColorOpacityRef<Config extends Prop> = Config['scale'] extends 'colors' ? 'colors' extends keyof TokenScales<Theme> ? `{colors.${keyof TokenScales<Theme>[Config['scale'] & keyof TokenScales<Theme>] & string}/${number}}` : never : never;
|
|
75
75
|
/**
|
|
76
|
-
* Container-relative length units (
|
|
76
|
+
* Container-relative length units (container-query-support): the six
|
|
77
|
+
* container-query units,
|
|
77
78
|
* admitted verbatim as string values on strict scale-typed props. The resolver
|
|
78
|
-
* already accepts and emits these opaquely (
|
|
79
|
+
* already accepts and emits these opaquely (container units transit the
|
|
79
80
|
* scale-lookup/transform/pass-through paths with no special awareness); this
|
|
80
81
|
* union closes the type-side gap so `gap: '2cqi'` typechecks WITHOUT widening a
|
|
81
82
|
* strict scale prop to arbitrary strings (`'2vw'` stays rejected — admission is
|
|
82
83
|
* these six suffixes only). Shallow, flat union — no cross-products (the repo's
|
|
83
|
-
* TS2589 zone is string-embedded unions
|
|
84
|
+
* TS2589 zone is string-embedded unions). The `${number}` prefix is
|
|
84
85
|
* load-bearing: a bare `'cqi'` (no numeric part) is not assignable.
|
|
85
86
|
*/
|
|
86
87
|
export type ContainerUnitValue = `${number}cqw` | `${number}cqi` | `${number}cqh` | `${number}cqb` | `${number}cqmin` | `${number}cqmax`;
|
|
87
88
|
export type ThemedScaleValue<Config extends Prop> = Config['scale'] extends keyof TokenScales<Theme> ? keyof TokenScales<Theme>[Config['scale']] | NegativeOf<Config, keyof TokenScales<Theme>[Config['scale']]> | PropertyValues<Config, StrictOrEmpty<Config, TokenScales<Theme>[Config['scale']]>> | ColorOpacityRef<Config> | ContainerUnitValue : Config['scale'] extends MapScale ? keyof Config['scale'] | NegativeOf<Config, keyof Config['scale']> | PropertyValues<Config, StrictOrEmpty<Config, Config['scale']>> | ContainerUnitValue : Config['scale'] extends ArrayScale ? Config['scale'][number] | PropertyValues<Config, StrictOrEmpty<Config, Config['scale']>> : PropertyValues<Config, true>;
|
|
88
89
|
export type ThemedScale<Config extends Prop> = ResponsiveProp<ThemedScaleValue<Config>>;
|
|
89
|
-
/** Raw nested-selector block keys
|
|
90
|
-
|
|
90
|
+
/** Raw nested-selector block keys. The subject `&` may sit anywhere in the
|
|
91
|
+
* key — leading (`'&:hover'`, `'& > *'`), ancestor-prefixed
|
|
92
|
+
* (`'[aria-sort="ascending"] &'`, `'.group:hover &:hover'`), or repeated
|
|
93
|
+
* (`'& + &'`); resolution substitutes the composed class at every unquoted
|
|
94
|
+
* subject position. */
|
|
95
|
+
type RawSelectorKey = `${string}&${string}`;
|
|
91
96
|
/**
|
|
92
|
-
* Published alias keys
|
|
97
|
+
* Published alias keys: registered condition aliases + registered
|
|
93
98
|
* custom selector aliases, drawn from the augmentable `Conditions`/`Selectors`
|
|
94
99
|
* interfaces. `never` until a consumer augments.
|
|
95
100
|
*
|
|
96
|
-
* JOINT NAMESPACE
|
|
101
|
+
* JOINT NAMESPACE: conditions and selectors share the single `_`
|
|
97
102
|
* block-key namespace, so this gate reads BOTH interfaces. Publishing EITHER
|
|
98
103
|
* `Conditions` OR `Selectors` makes this non-`never`, which flips
|
|
99
104
|
* `KnownUnderscoreKey` (below) from permissive to validating for the WHOLE `_`
|
|
@@ -123,7 +128,7 @@ type PublishedAliasKeys = Extract<keyof Conditions | keyof Selectors, `_${string
|
|
|
123
128
|
* degradation preserved).
|
|
124
129
|
*/
|
|
125
130
|
type KnownUnderscoreKey = [PublishedAliasKeys] extends [never] ? `_${string}` : BuiltInSelectorAlias | BuiltInConditionAlias | PublishedAliasKeys;
|
|
126
|
-
/** Pass-through CSS property value (
|
|
131
|
+
/** Pass-through CSS property value (plus `animationName` widening). */
|
|
127
132
|
type PassThroughProp<K extends keyof PropertyTypes> = K extends 'animationName' ? ResponsiveProp<KeyframeRef<string> | PropertyTypes[K]> : ResponsiveProp<PropertyTypes[K]>;
|
|
128
133
|
/**
|
|
129
134
|
* The `_`-prefixed MEMBERS of a recursing block body. Optional members over a
|
|
@@ -135,8 +140,8 @@ type UnderscoreBlockMembers<Config extends Record<string, Prop>> = {
|
|
|
135
140
|
[K in KnownUnderscoreKey]?: ThemedBlockBody<Config>;
|
|
136
141
|
};
|
|
137
142
|
/**
|
|
138
|
-
* The recursive body of a selector/condition block (
|
|
139
|
-
*
|
|
143
|
+
* The recursive body of a selector/condition block (full recursion — the
|
|
144
|
+
* resolver is fully recursive, so the type advertises exactly what the
|
|
140
145
|
* build emits). Deliberately a FIXED type (no reference to the outer inferred
|
|
141
146
|
* `Props`): a `ThemedCSSProps<Props[K], …>` arm would be reverse-mapped-inferred
|
|
142
147
|
* away at the `.styles()` call boundary and silently stop CHECKING nested values
|
|
@@ -155,7 +160,7 @@ type ThemedBlockBody<Config extends Record<string, Prop>> = {
|
|
|
155
160
|
} & UnderscoreBlockMembers<Config>;
|
|
156
161
|
/**
|
|
157
162
|
* Theme-aware CSS props — uses the augmentable Theme interface to constrain
|
|
158
|
-
* values per-key, plus kind-dispatched arms for block keys
|
|
163
|
+
* values per-key, plus kind-dispatched arms for block keys.
|
|
159
164
|
* No generic T and no `Conditions`/`Selectors` generic thread through the
|
|
160
165
|
* `Animus` class family — the arms read the augmentable interfaces directly,
|
|
161
166
|
* the same publication mechanism as the augmented `Theme`.
|
|
@@ -166,7 +171,7 @@ type ThemedBlockBody<Config extends Record<string, Prop>> = {
|
|
|
166
171
|
* @supports …'` at-rules, and known/permissive `_`-aliases — recurse into
|
|
167
172
|
* `ThemedBlockBody` (the complete, checked, themed surface).
|
|
168
173
|
* 3. pass-through CSS property (`keyof PropertyTypes`) → `ResponsiveProp<…>`
|
|
169
|
-
* so breakpoint value maps work on every themed prop
|
|
174
|
+
* so breakpoint value maps work on every themed prop, not only
|
|
170
175
|
* propConfig-registered ones. `animationName` keeps its `KeyframeRef`
|
|
171
176
|
* widening (`animationName: motion.ember`).
|
|
172
177
|
* 4. unknown `_`-prefixed key (publication present) → branded
|
|
@@ -205,7 +210,7 @@ export type CSSProps<Props, System> = {
|
|
|
205
210
|
*/
|
|
206
211
|
export type BuiltInSelectorAlias = '_link' | '_visited' | '_hover' | '_focus' | '_focusVisible' | '_focusWithin' | '_active' | '_target' | '_disabled' | '_checked' | '_invalid' | '_required' | '_readOnly' | '_expanded' | '_selected' | '_pressed' | '_before' | '_after' | '_placeholder' | '_selection' | '_first' | '_last' | '_even' | '_odd' | '_empty';
|
|
207
212
|
/**
|
|
208
|
-
* Built-in condition alias keys (
|
|
213
|
+
* Built-in condition alias keys (media-condition-aliases). The Panda-compatible
|
|
209
214
|
* media-feature set — motion, print, orientation, contrast, OS color-scheme.
|
|
210
215
|
* Each maps to a `@media` feature query (see `BUILT_IN_CONDITIONS` in
|
|
211
216
|
* `conditions.ts`, the runtime mirror this must stay in sync with — the
|
|
@@ -227,7 +232,7 @@ export type BuiltInConditionAlias = '_motionReduce' | '_motionSafe' | '_print' |
|
|
|
227
232
|
*
|
|
228
233
|
* Built-in selector aliases come from the static `BuiltInSelectorAlias` union;
|
|
229
234
|
* registered CUSTOM selector aliases fold in from the augmentable `Selectors`
|
|
230
|
-
* interface
|
|
235
|
+
* interface, making the `selector-alias-callsite` custom-alias
|
|
231
236
|
* promise true. Condition aliases are deliberately NOT included — conditions
|
|
232
237
|
* are block-position only (media-condition-aliases spec), never callsite props.
|
|
233
238
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","s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,KAAK,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,QAAQ,CAAC,KAAK,EAAE,MAAM,IAAI;KACnC,CAAC,IAAI,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,MAAM,GACvC,MAAM,CAAC,CAAC,CAAC,GACT,CAAC,SAAS,MAAM,aAAa,GAC3B,aAAa,CAAC,CAAC,CAAC,GAChB,IAAI,CAAC,aAAa,EAAE,MAAM,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC;CAChE,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAC5B,OAAO,GACP,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,eAAe,GACf,cAAc,GACd,SAAS,GACT,SAAS,GACT,WAAW,GACX,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,UAAU,GACV,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,QAAQ,GACR,OAAO,GACP,OAAO,GACP,MAAM,GACN,QAAQ,CAAC;AAEb;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,qBAAqB,GAC7B,eAAe,GACf,aAAa,GACb,QAAQ,GACR,WAAW,GACX,YAAY,GACZ,eAAe,GACf,eAAe,GACf,SAAS,GACT,UAAU,CAAC;AAEf;;;;;;;;;;GAUG;AACH,MAAM,MAAM,kBAAkB,CAAC,eAAe,IAAI;KAC/C,CAAC,IACE,oBAAoB,GACpB,OAAO,CAAC,MAAM,SAAS,EAAE,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC;CACvE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@animus-ui/system",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Animus design system builder — tokens, prop groups, global styles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"compile": "tsc --noEmit"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@animus-ui/properties": "0.1.
|
|
74
|
+
"@animus-ui/properties": "0.1.6",
|
|
75
75
|
"csstype": "^3.1.3"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
File without changes
|