@animus-ui/system 0.1.9 → 0.1.11
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 +2 -1
- package/dist/Animus.d.ts.map +1 -1
- package/dist/AnimusExtended.d.ts +2 -1
- package/dist/AnimusExtended.d.ts.map +1 -1
- package/dist/class-resolver.d.ts +8 -0
- package/dist/class-resolver.d.ts.map +1 -0
- package/dist/class-resolver.js +2 -0
- package/dist/compose.js +1 -1
- package/dist/composeWithContext.js +1 -1
- package/dist/{createComposedFamily-3ZugjBpU.js → createClassResolver-BWyEQ5KZ.js} +14 -157
- package/dist/createComposedFamily-k5tTujGI.js +153 -0
- 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 +3 -2
- package/dist/runtime/createClassResolver.d.ts +13 -4
- package/dist/runtime/createClassResolver.d.ts.map +1 -1
- package/dist/runtime-entry.d.ts +1 -1
- package/dist/runtime-entry.d.ts.map +1 -1
- package/dist/runtime-entry.js +2 -1
- package/package.json +15 -2
- /package/dist/{assert-root-slot-B83scqPh.js → assert-root-slot-B73sDJ1Q.js} +0 -0
- /package/dist/{size-DHdmBc64.js → size-CcVEGaen.js} +0 -0
package/dist/Animus.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ComponentType } from 'react';
|
|
2
2
|
import { AnimusExtended } from './AnimusExtended';
|
|
3
|
+
import { type ClassResolver } from './runtime/createClassResolver';
|
|
3
4
|
import { AbstractParser, CompoundEntry, CSSPropMap, CSSProps, CustomPropConfig, Prop, SystemProps, ThemedCSSPropMap, ThemedCSSProps, VariantConfig } from './types/config';
|
|
4
5
|
import { AbstractProps } from './types/props';
|
|
5
6
|
import type { AnimusComponent, AnimusWrappedComponent } from './types/component';
|
|
@@ -16,7 +17,7 @@ export declare class AnimusWithAll<PropRegistry extends Record<string, Prop>, Gr
|
|
|
16
17
|
protected extend(): AnimusExtended<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
17
18
|
asElement<El extends keyof JSX.IntrinsicElements>(component: El): AnimusComponent<El, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
18
19
|
asComponent<C extends ComponentType<any>>(AsComponent: C): AnimusWrappedComponent<C, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
19
|
-
asClass():
|
|
20
|
+
asClass(): ClassResolver;
|
|
20
21
|
_buildComponentConfig(): {
|
|
21
22
|
variants: Record<string, {
|
|
22
23
|
options: 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;
|
|
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;AAElD,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,+BAA+B,CAAC;AACvC,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,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AAC;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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ComponentType } from 'react';
|
|
2
|
+
import { type ClassResolver } from './runtime/createClassResolver';
|
|
2
3
|
import { AbstractParser, CompoundEntry, CSSPropMap, CSSProps, CustomPropConfig, Prop, SystemProps, ThemedCSSPropMap, ThemedCSSProps, VariantConfig } from './types/config';
|
|
3
4
|
import { AbstractProps } from './types/props';
|
|
4
5
|
import type { AnimusComponent, AnimusWrappedComponent } from './types/component';
|
|
@@ -15,7 +16,7 @@ export declare class AnimusExtendedWithAll<PropRegistry extends Record<string, P
|
|
|
15
16
|
protected extend(): AnimusExtended<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
16
17
|
asElement<El extends keyof JSX.IntrinsicElements>(component: El): AnimusComponent<El, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
17
18
|
asComponent<C extends ComponentType<any>>(AsComponent: C): AnimusWrappedComponent<C, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
18
|
-
asClass():
|
|
19
|
+
asClass(): ClassResolver;
|
|
19
20
|
_buildComponentConfig(): {
|
|
20
21
|
variants: Record<string, {
|
|
21
22
|
options: 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;
|
|
1
|
+
{"version":3,"file":"AnimusExtended.d.ts","sourceRoot":"","sources":["../src/AnimusExtended.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,+BAA+B,CAAC;AACvC,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,UA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Aa,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,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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Framework-neutral runtime for `.asClass()` output.
|
|
3
|
+
*
|
|
4
|
+
* This entry intentionally excludes the React component runtime so non-React
|
|
5
|
+
* consumers can install and bundle class resolvers without React.
|
|
6
|
+
*/
|
|
7
|
+
export { type ClassResolver, type ClassResolverAttributes, createClassResolver, } from './runtime/createClassResolver.js';
|
|
8
|
+
//# sourceMappingURL=class-resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"class-resolver.d.ts","sourceRoot":"","sources":["../src/class-resolver.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,mBAAmB,GACpB,MAAM,kCAAkC,CAAC"}
|
package/dist/compose.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as assertRootSlot } from "./assert-root-slot-
|
|
2
|
+
import { t as assertRootSlot } from "./assert-root-slot-B73sDJ1Q.js";
|
|
3
3
|
import { createContext, createElement, forwardRef, useContext } from "react";
|
|
4
4
|
//#region src/composeWithContext.ts
|
|
5
5
|
/**
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { t as assertRootSlot } from "./assert-root-slot-B83scqPh.js";
|
|
2
|
-
import { Children, cloneElement, createElement, forwardRef, isValidElement } from "react";
|
|
3
1
|
import { isUnitlessProperty } from "@animus-ui/properties";
|
|
4
2
|
//#region src/runtime/is-dev.ts
|
|
5
3
|
/**
|
|
@@ -305,168 +303,27 @@ function resolveClasses(baseClassName, props, config, systemPropMap, dynamicProp
|
|
|
305
303
|
};
|
|
306
304
|
}
|
|
307
305
|
//#endregion
|
|
308
|
-
//#region src/runtime/index.ts
|
|
309
|
-
/**
|
|
310
|
-
* Merge multiple refs (callback or object) into a single callback ref.
|
|
311
|
-
* Creates a new callback on each call — no memoization possible in a
|
|
312
|
-
* hook-free runtime (RSC compatibility). Matches @radix-ui/react-compose-refs.
|
|
313
|
-
*/
|
|
314
|
-
function composeRefs(...refs) {
|
|
315
|
-
return (node) => {
|
|
316
|
-
for (const ref of refs) if (typeof ref === "function") ref(node);
|
|
317
|
-
else if (ref) ref.current = node;
|
|
318
|
-
};
|
|
319
|
-
}
|
|
320
|
-
/**
|
|
321
|
-
* Forward props to the underlying element, filtering out Animus-managed props.
|
|
322
|
-
*
|
|
323
|
-
* data-* and aria-* attributes always pass through to the DOM, even when used
|
|
324
|
-
* as variant/state keys. This enables headless UI interop: the attribute is
|
|
325
|
-
* consumed for styling AND forwarded to the element so external frameworks
|
|
326
|
-
* (Radix, Ark-UI) see it.
|
|
327
|
-
*
|
|
328
|
-
* filterProps covers all Animus props, so unknown props pass through: for DOM
|
|
329
|
-
* elements React handles any unknown-attribute warnings in dev mode, and for
|
|
330
|
-
* component elements all non-filtered props are forwarded to the component.
|
|
331
|
-
*/
|
|
332
|
-
function forwardProps(props, filterProps, domProps) {
|
|
333
|
-
for (const [key, value] of Object.entries(props)) {
|
|
334
|
-
if (key === "className") continue;
|
|
335
|
-
if (!(key.startsWith("data-") || key.startsWith("aria-")) && filterProps.has(key)) continue;
|
|
336
|
-
domProps[key] = value;
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
/**
|
|
340
|
-
* asChild render path: don't render our own element — merge the resolved
|
|
341
|
-
* className/ref/style onto the single child element, plus the parent's own
|
|
342
|
-
* forwardable props (event handlers, role, aria-*, data-*, id, tabIndex).
|
|
343
|
-
*
|
|
344
|
-
* Conflict rule is child-wins: the parent's props are spread UNDER the child's
|
|
345
|
-
* own, so a handler or attribute declared on the child replaces the parent's
|
|
346
|
-
* rather than chaining with it.
|
|
347
|
-
*/
|
|
348
|
-
function renderAsChild(className, filterProps, props, ref, classes, dynamicStyle) {
|
|
349
|
-
const child = Children.only(props.children);
|
|
350
|
-
if (!isValidElement(child)) throw new Error(`${className}: asChild requires a single React element as children`);
|
|
351
|
-
const childRef = child.ref;
|
|
352
|
-
const mergedClassName = [classes.join(" "), child.props.className].filter(Boolean).join(" ");
|
|
353
|
-
const mergedStyle = dynamicStyle || props.style || child.props.style ? {
|
|
354
|
-
...props.style,
|
|
355
|
-
...child.props.style,
|
|
356
|
-
...dynamicStyle
|
|
357
|
-
} : void 0;
|
|
358
|
-
const parentProps = {};
|
|
359
|
-
forwardProps(props, filterProps, parentProps);
|
|
360
|
-
delete parentProps.children;
|
|
361
|
-
delete parentProps.style;
|
|
362
|
-
delete parentProps.ref;
|
|
363
|
-
return cloneElement(child, {
|
|
364
|
-
...parentProps,
|
|
365
|
-
...child.props,
|
|
366
|
-
ref: composeRefs(ref, childRef),
|
|
367
|
-
className: mergedClassName,
|
|
368
|
-
...mergedStyle ? { style: mergedStyle } : {}
|
|
369
|
-
});
|
|
370
|
-
}
|
|
371
|
-
/**
|
|
372
|
-
* Normal render path: render our own element (or the `as` override), forwarding
|
|
373
|
-
* filtered props and applying any dynamic CSS-variable style.
|
|
374
|
-
*/
|
|
375
|
-
function renderElement(element, filterProps, props, ref, classes, dynamicStyle) {
|
|
376
|
-
const target = props.as || element;
|
|
377
|
-
const domProps = {
|
|
378
|
-
ref,
|
|
379
|
-
className: classes.join(" ")
|
|
380
|
-
};
|
|
381
|
-
forwardProps(props, filterProps, domProps);
|
|
382
|
-
if (dynamicStyle) domProps.style = props.style ? {
|
|
383
|
-
...props.style,
|
|
384
|
-
...dynamicStyle
|
|
385
|
-
} : dynamicStyle;
|
|
386
|
-
return createElement(target, domProps);
|
|
387
|
-
}
|
|
388
|
-
/**
|
|
389
|
-
* Create a lightweight component that applies extracted CSS class names.
|
|
390
|
-
* Replaces Emotion's styled() for extracted components.
|
|
391
|
-
*
|
|
392
|
-
* The element parameter accepts either an HTML tag string (e.g. 'button') or
|
|
393
|
-
* a React component reference (e.g. NextLink). When a component reference is
|
|
394
|
-
* used, prop forwarding skips the HTML-attribute validity check — all
|
|
395
|
-
* non-filtered props are forwarded to the component.
|
|
396
|
-
*
|
|
397
|
-
* The optional systemPropMap parameter provides the shared prop→value→className
|
|
398
|
-
* lookup table, served as a virtual module by the Vite plugin.
|
|
399
|
-
*
|
|
400
|
-
* The optional dynamicPropConfig parameter provides CSS variable fallback
|
|
401
|
-
* metadata for props with detected dynamic usage.
|
|
402
|
-
*/
|
|
403
|
-
function createComponent(element, className, config, systemPropMap, dynamicPropConfig) {
|
|
404
|
-
const variantProps = config.variants ? Object.keys(config.variants) : [];
|
|
405
|
-
const stateProps = config.states || [];
|
|
406
|
-
const systemPropNames = config.systemPropNames || [];
|
|
407
|
-
const filterProps = new Set([
|
|
408
|
-
"as",
|
|
409
|
-
"asChild",
|
|
410
|
-
...variantProps,
|
|
411
|
-
...stateProps,
|
|
412
|
-
...systemPropNames
|
|
413
|
-
]);
|
|
414
|
-
const Component = forwardRef((props, ref) => {
|
|
415
|
-
const { classes, dynamicStyle } = resolveClasses(className, props, config, systemPropMap, dynamicPropConfig);
|
|
416
|
-
if (props.className) classes.push(props.className);
|
|
417
|
-
return props.asChild ? renderAsChild(className, filterProps, props, ref, classes, dynamicStyle) : renderElement(element, filterProps, props, ref, classes, dynamicStyle);
|
|
418
|
-
});
|
|
419
|
-
Component.displayName = className;
|
|
420
|
-
const variantDefaults = {};
|
|
421
|
-
if (config.variants) {
|
|
422
|
-
for (const [prop, vc] of Object.entries(config.variants)) if (vc.default != null) variantDefaults[prop] = vc.default;
|
|
423
|
-
}
|
|
424
|
-
return Object.assign(Component, {
|
|
425
|
-
variantDefaults: Object.freeze(variantDefaults),
|
|
426
|
-
extend: () => {
|
|
427
|
-
throw new Error(`Cannot extend extracted component "${className}" at runtime. Extensions must be authored in source code using the builder API (e.g. import the original component and call .extend() there) so the extraction pipeline can resolve them at build time.`);
|
|
428
|
-
}
|
|
429
|
-
});
|
|
430
|
-
}
|
|
431
|
-
//#endregion
|
|
432
306
|
//#region src/runtime/createClassResolver.ts
|
|
433
307
|
/**
|
|
434
308
|
* createClassResolver — framework-agnostic className resolution.
|
|
435
309
|
*
|
|
436
310
|
* Produced by .asClass() terminal. Same resolution logic as createComponent
|
|
437
|
-
* (variants, states, compounds, system props)
|
|
438
|
-
*
|
|
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.
|
|
439
314
|
*/
|
|
315
|
+
function serializeDynamicStyle(style) {
|
|
316
|
+
return Object.entries(style).map(([property, value]) => `${property}: ${value}`).join("; ");
|
|
317
|
+
}
|
|
440
318
|
function createClassResolver(className, config, systemPropMap, dynamicPropConfig) {
|
|
441
|
-
|
|
442
|
-
const { classes } = resolveClasses(className, props || {}, config, systemPropMap, dynamicPropConfig);
|
|
443
|
-
|
|
319
|
+
const resolveAttributes = (props) => {
|
|
320
|
+
const { classes, dynamicStyle } = resolveClasses(className, props || {}, config, systemPropMap, dynamicPropConfig);
|
|
321
|
+
const attributes = { class: classes.join(" ") };
|
|
322
|
+
if (dynamicStyle && Object.keys(dynamicStyle).length > 0) attributes.style = serializeDynamicStyle(dynamicStyle);
|
|
323
|
+
return attributes;
|
|
444
324
|
};
|
|
325
|
+
const resolver = (props) => resolveClasses(className, props || {}, config, systemPropMap, dynamicPropConfig).classes.join(" ");
|
|
326
|
+
return Object.assign(resolver, { attrs: resolveAttributes });
|
|
445
327
|
}
|
|
446
328
|
//#endregion
|
|
447
|
-
|
|
448
|
-
/**
|
|
449
|
-
* createComposedFamily — extraction-time replacement for compose().
|
|
450
|
-
*
|
|
451
|
-
* The transform emitter replaces `compose({ Root, Body }, { shared, name })`
|
|
452
|
-
* with `createComposedFamily({ Root, Body }, { name })`.
|
|
453
|
-
*
|
|
454
|
-
* RSC-safe: uses only forwardRef and createElement — no createContext,
|
|
455
|
-
* no useContext, no hooks.
|
|
456
|
-
*/
|
|
457
|
-
function createComposedFamily(slots, config) {
|
|
458
|
-
assertRootSlot(slots, "createComposedFamily");
|
|
459
|
-
const { name } = config;
|
|
460
|
-
const result = {};
|
|
461
|
-
for (const [slotName, SourceComponent] of Object.entries(slots)) {
|
|
462
|
-
const Wrapper = forwardRef((props, ref) => createElement(SourceComponent, {
|
|
463
|
-
...props,
|
|
464
|
-
ref
|
|
465
|
-
}, props.children));
|
|
466
|
-
Wrapper.displayName = `${name}.${slotName}`;
|
|
467
|
-
result[slotName] = Wrapper;
|
|
468
|
-
}
|
|
469
|
-
return result;
|
|
470
|
-
}
|
|
471
|
-
//#endregion
|
|
472
|
-
export { createClassResolver as n, createComponent as r, createComposedFamily as t };
|
|
329
|
+
export { resolveClasses as n, createClassResolver as t };
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { n as resolveClasses } from "./createClassResolver-BWyEQ5KZ.js";
|
|
2
|
+
import { t as assertRootSlot } from "./assert-root-slot-B73sDJ1Q.js";
|
|
3
|
+
import { Children, cloneElement, createElement, forwardRef, isValidElement } from "react";
|
|
4
|
+
//#region src/runtime/index.ts
|
|
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.
|
|
9
|
+
*/
|
|
10
|
+
function composeRefs(...refs) {
|
|
11
|
+
return (node) => {
|
|
12
|
+
for (const ref of refs) if (typeof ref === "function") ref(node);
|
|
13
|
+
else if (ref) ref.current = node;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
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.
|
|
27
|
+
*/
|
|
28
|
+
function forwardProps(props, filterProps, domProps) {
|
|
29
|
+
for (const [key, value] of Object.entries(props)) {
|
|
30
|
+
if (key === "className") continue;
|
|
31
|
+
if (!(key.startsWith("data-") || key.startsWith("aria-")) && filterProps.has(key)) continue;
|
|
32
|
+
domProps[key] = value;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
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.
|
|
43
|
+
*/
|
|
44
|
+
function renderAsChild(className, filterProps, props, ref, classes, dynamicStyle) {
|
|
45
|
+
const child = Children.only(props.children);
|
|
46
|
+
if (!isValidElement(child)) throw new Error(`${className}: asChild requires a single React element as children`);
|
|
47
|
+
const childRef = child.ref;
|
|
48
|
+
const mergedClassName = [classes.join(" "), child.props.className].filter(Boolean).join(" ");
|
|
49
|
+
const mergedStyle = dynamicStyle || props.style || child.props.style ? {
|
|
50
|
+
...props.style,
|
|
51
|
+
...child.props.style,
|
|
52
|
+
...dynamicStyle
|
|
53
|
+
} : void 0;
|
|
54
|
+
const parentProps = {};
|
|
55
|
+
forwardProps(props, filterProps, parentProps);
|
|
56
|
+
delete parentProps.children;
|
|
57
|
+
delete parentProps.style;
|
|
58
|
+
delete parentProps.ref;
|
|
59
|
+
return cloneElement(child, {
|
|
60
|
+
...parentProps,
|
|
61
|
+
...child.props,
|
|
62
|
+
ref: composeRefs(ref, childRef),
|
|
63
|
+
className: mergedClassName,
|
|
64
|
+
...mergedStyle ? { style: mergedStyle } : {}
|
|
65
|
+
});
|
|
66
|
+
}
|
|
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
|
+
function renderElement(element, filterProps, props, ref, classes, dynamicStyle) {
|
|
72
|
+
const target = props.as || element;
|
|
73
|
+
const domProps = {
|
|
74
|
+
ref,
|
|
75
|
+
className: classes.join(" ")
|
|
76
|
+
};
|
|
77
|
+
forwardProps(props, filterProps, domProps);
|
|
78
|
+
if (dynamicStyle) domProps.style = props.style ? {
|
|
79
|
+
...props.style,
|
|
80
|
+
...dynamicStyle
|
|
81
|
+
} : dynamicStyle;
|
|
82
|
+
return createElement(target, domProps);
|
|
83
|
+
}
|
|
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
|
+
function createComponent(element, className, config, systemPropMap, dynamicPropConfig) {
|
|
100
|
+
const variantProps = config.variants ? Object.keys(config.variants) : [];
|
|
101
|
+
const stateProps = config.states || [];
|
|
102
|
+
const systemPropNames = config.systemPropNames || [];
|
|
103
|
+
const filterProps = new Set([
|
|
104
|
+
"as",
|
|
105
|
+
"asChild",
|
|
106
|
+
...variantProps,
|
|
107
|
+
...stateProps,
|
|
108
|
+
...systemPropNames
|
|
109
|
+
]);
|
|
110
|
+
const Component = forwardRef((props, ref) => {
|
|
111
|
+
const { classes, dynamicStyle } = resolveClasses(className, props, config, systemPropMap, dynamicPropConfig);
|
|
112
|
+
if (props.className) classes.push(props.className);
|
|
113
|
+
return props.asChild ? renderAsChild(className, filterProps, props, ref, classes, dynamicStyle) : renderElement(element, filterProps, props, ref, classes, dynamicStyle);
|
|
114
|
+
});
|
|
115
|
+
Component.displayName = className;
|
|
116
|
+
const variantDefaults = {};
|
|
117
|
+
if (config.variants) {
|
|
118
|
+
for (const [prop, vc] of Object.entries(config.variants)) if (vc.default != null) variantDefaults[prop] = vc.default;
|
|
119
|
+
}
|
|
120
|
+
return Object.assign(Component, {
|
|
121
|
+
variantDefaults: Object.freeze(variantDefaults),
|
|
122
|
+
extend: () => {
|
|
123
|
+
throw new Error(`Cannot extend extracted component "${className}" at runtime. Extensions must be authored in source code using the builder API (e.g. import the original component and call .extend() there) so the extraction pipeline can resolve them at build time.`);
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region src/runtime/createComposedFamily.ts
|
|
129
|
+
/**
|
|
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.
|
|
137
|
+
*/
|
|
138
|
+
function createComposedFamily(slots, config) {
|
|
139
|
+
assertRootSlot(slots, "createComposedFamily");
|
|
140
|
+
const { name } = config;
|
|
141
|
+
const result = {};
|
|
142
|
+
for (const [slotName, SourceComponent] of Object.entries(slots)) {
|
|
143
|
+
const Wrapper = forwardRef((props, ref) => createElement(SourceComponent, {
|
|
144
|
+
...props,
|
|
145
|
+
ref
|
|
146
|
+
}, props.children));
|
|
147
|
+
Wrapper.displayName = `${name}.${slotName}`;
|
|
148
|
+
result[slotName] = Wrapper;
|
|
149
|
+
}
|
|
150
|
+
return result;
|
|
151
|
+
}
|
|
152
|
+
//#endregion
|
|
153
|
+
export { createComponent as n, createComposedFamily as t };
|
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-CcVEGaen.js";
|
|
2
2
|
//#region src/groups/index.ts
|
|
3
3
|
const color = {
|
|
4
4
|
color: {
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { compose } from './compose';
|
|
|
4
4
|
export type { KeyframeFrameMap, KeyframeRef, Keyframes } from './keyframes';
|
|
5
5
|
export { asset, ASSET_PLACEHOLDER_PREFIX, type AssetRef } from './asset.js';
|
|
6
6
|
export { createComponent } from './runtime';
|
|
7
|
-
export { createClassResolver } from './runtime/createClassResolver';
|
|
7
|
+
export { type ClassResolver, type ClassResolverAttributes, createClassResolver, } from './runtime/createClassResolver';
|
|
8
8
|
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';
|
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,
|
|
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,e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AO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EACL,kBAAkB,EAClB,eAAe,EACf,KAAK,cAAc,EACnB,KAAK,WAAW,GACjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,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,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as createClassResolver } from "./createClassResolver-BWyEQ5KZ.js";
|
|
2
|
+
import { n as createComponent, t as createComposedFamily } from "./createComposedFamily-k5tTujGI.js";
|
|
2
3
|
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-
|
|
4
|
+
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-CcVEGaen.js";
|
|
4
5
|
//#region src/utils/deepMerge.ts
|
|
5
6
|
/**
|
|
6
7
|
* Deep merge utility — replaces lodash.merge for variant accumulation.
|
|
@@ -2,9 +2,18 @@
|
|
|
2
2
|
* createClassResolver — framework-agnostic className resolution.
|
|
3
3
|
*
|
|
4
4
|
* Produced by .asClass() terminal. Same resolution logic as createComponent
|
|
5
|
-
* (variants, states, compounds, system props)
|
|
6
|
-
*
|
|
5
|
+
* (variants, states, compounds, system props). The resolver remains callable
|
|
6
|
+
* as a className string function and also exposes framework-neutral attributes
|
|
7
|
+
* for renderers that need dynamic CSS-variable styles.
|
|
7
8
|
*/
|
|
8
|
-
import { type ClassResolverConfig, type DynamicPropConfig, type SystemPropMap } from './resolveClasses';
|
|
9
|
-
export
|
|
9
|
+
import { type ClassResolverConfig, type DynamicPropConfig, type SystemPropMap } from './resolveClasses.js';
|
|
10
|
+
export interface ClassResolverAttributes {
|
|
11
|
+
class: string;
|
|
12
|
+
style?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ClassResolver {
|
|
15
|
+
(props?: Record<string, unknown>): string;
|
|
16
|
+
attrs(props?: Record<string, unknown>): ClassResolverAttributes;
|
|
17
|
+
}
|
|
18
|
+
export declare function createClassResolver(className: string, config: ClassResolverConfig, systemPropMap?: SystemPropMap, dynamicPropConfig?: DynamicPropConfig): ClassResolver;
|
|
10
19
|
//# sourceMappingURL=createClassResolver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createClassResolver.d.ts","sourceRoot":"","sources":["../../src/runtime/createClassResolver.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"createClassResolver.d.ts","sourceRoot":"","sources":["../../src/runtime/createClassResolver.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EAEtB,KAAK,aAAa,EACnB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,aAAa;IAC5B,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC;IAC1C,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,uBAAuB,CAAC;CACjE;AAQD,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,mBAAmB,EAC3B,aAAa,CAAC,EAAE,aAAa,EAC7B,iBAAiB,CAAC,EAAE,iBAAiB,GACpC,aAAa,CAgCf"}
|
package/dist/runtime-entry.d.ts
CHANGED
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
* so they don't pull in compose() (which uses createContext/useContext).
|
|
6
6
|
*/
|
|
7
7
|
export { createComponent } from './runtime';
|
|
8
|
-
export { createClassResolver } from './runtime/createClassResolver';
|
|
8
|
+
export { type ClassResolver, type ClassResolverAttributes, createClassResolver, } from './runtime/createClassResolver';
|
|
9
9
|
export { createComposedFamily } from './runtime/createComposedFamily';
|
|
10
10
|
//# sourceMappingURL=runtime-entry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-entry.d.ts","sourceRoot":"","sources":["../src/runtime-entry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,
|
|
1
|
+
{"version":3,"file":"runtime-entry.d.ts","sourceRoot":"","sources":["../src/runtime-entry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,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"}
|
package/dist/runtime-entry.js
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as createClassResolver } from "./createClassResolver-BWyEQ5KZ.js";
|
|
2
|
+
import { n as createComponent, t as createComposedFamily } from "./createComposedFamily-k5tTujGI.js";
|
|
2
3
|
export { createClassResolver, createComponent, createComposedFamily };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@animus-ui/system",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "Animus design system builder — tokens, prop groups, global styles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css",
|
|
@@ -56,6 +56,11 @@
|
|
|
56
56
|
"types": "./dist/composeWithContext.d.ts",
|
|
57
57
|
"import": "./dist/composeWithContext.js"
|
|
58
58
|
},
|
|
59
|
+
"./class-resolver": {
|
|
60
|
+
"types": "./dist/class-resolver.d.ts",
|
|
61
|
+
"import": "./dist/class-resolver.js",
|
|
62
|
+
"default": "./dist/class-resolver.js"
|
|
63
|
+
},
|
|
59
64
|
"./runtime": {
|
|
60
65
|
"types": "./dist/runtime-entry.d.ts",
|
|
61
66
|
"import": "./dist/runtime-entry.js",
|
|
@@ -71,7 +76,7 @@
|
|
|
71
76
|
"compile": "tsc --noEmit"
|
|
72
77
|
},
|
|
73
78
|
"dependencies": {
|
|
74
|
-
"@animus-ui/properties": "0.1.
|
|
79
|
+
"@animus-ui/properties": "0.1.11",
|
|
75
80
|
"csstype": "^3.1.3"
|
|
76
81
|
},
|
|
77
82
|
"devDependencies": {
|
|
@@ -79,5 +84,13 @@
|
|
|
79
84
|
},
|
|
80
85
|
"peerDependencies": {
|
|
81
86
|
"react": "^18.0.0 || ^19.0.0"
|
|
87
|
+
},
|
|
88
|
+
"peerDependenciesMeta": {
|
|
89
|
+
"react": {
|
|
90
|
+
"optional": true
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"engines": {
|
|
94
|
+
"node": ">=22.12.0"
|
|
82
95
|
}
|
|
83
96
|
}
|
|
File without changes
|
|
File without changes
|