@animus-ui/system 0.1.23 → 0.1.25
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/class-resolver.d.ts +2 -2
- package/dist/class-resolver.js +1 -1
- package/dist/{component-CaNNGvbE.d.ts → component-DSz5Yy5J.d.ts} +55 -35
- package/dist/component-DSz5Yy5J.d.ts.map +1 -0
- package/dist/{compose-BaU2HpRM.d.ts → compose-C-JKs2L8.d.ts} +2 -2
- package/dist/{compose-BaU2HpRM.d.ts.map → compose-C-JKs2L8.d.ts.map} +1 -1
- package/dist/compose.d.ts +1 -1
- package/dist/composeWithContext.d.ts +1 -1
- package/dist/{createClassResolver-C_yq_4BM.d.ts → createClassResolver-Bsjk8lII.d.ts} +46 -4
- package/dist/createClassResolver-Bsjk8lII.d.ts.map +1 -0
- package/dist/{createClassResolver-uGu2N5MK.js → createClassResolver-Oqr1_kml.js} +300 -40
- package/dist/{createComposedFamily-UvlKJIdx.js → createComposedFamily-C8rwilXT.js} +2 -1
- package/dist/{createComposedFamily-Bj1xF-M8.d.ts → createComposedFamily-DoNVYx77.d.ts} +2 -2
- package/dist/{createComposedFamily-Bj1xF-M8.d.ts.map → createComposedFamily-DoNVYx77.d.ts.map} +1 -1
- package/dist/groups/index.d.ts +1 -1
- package/dist/{index-CtkuoXP-.d.ts → index-Ce_0J3BF.d.ts} +17 -27
- package/dist/index-Ce_0J3BF.d.ts.map +1 -0
- package/dist/index.d.ts +6 -6
- package/dist/index.js +26 -8
- package/dist/runtime-entry.d.ts +3 -3
- package/dist/runtime-entry.js +2 -2
- package/package.json +2 -2
- package/dist/component-CaNNGvbE.d.ts.map +0 -1
- package/dist/createClassResolver-C_yq_4BM.d.ts.map +0 -1
- package/dist/index-CtkuoXP-.d.ts.map +0 -1
package/dist/class-resolver.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ClassResolverAttributes, r as
|
|
2
|
-
export { type ClassResolver, type ClassResolverAttributes, createClassResolver };
|
|
1
|
+
import { i as createClassResolver, n as ClassResolverAttributes, r as ClassResolverProps, t as ClassResolver } from "./createClassResolver-Bsjk8lII.js";
|
|
2
|
+
export { type ClassResolver, type ClassResolverAttributes, type ClassResolverProps, createClassResolver };
|
package/dist/class-resolver.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as createClassResolver } from "./createClassResolver-
|
|
1
|
+
import { t as createClassResolver } from "./createClassResolver-Oqr1_kml.js";
|
|
2
2
|
export { createClassResolver };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as ClassResolverConfig, t as ClassResolver } from "./createClassResolver-Bsjk8lII.js";
|
|
2
2
|
import { ComponentPropsWithRef, ComponentType, ForwardRefExoticComponent, JSX, ReactNode } from "react";
|
|
3
|
+
import { ZeroLengthProperty } from "@animus-ui/properties";
|
|
3
4
|
import { Globals, ObsoleteProperties, StandardProperties, SvgProperties, VendorProperties } from "csstype";
|
|
4
5
|
//#region src/conditions.d.ts
|
|
5
6
|
/**
|
|
@@ -127,7 +128,7 @@ type PaintKeywords = 'none' | 'context-fill' | 'context-stroke';
|
|
|
127
128
|
type ColorGlobals = { [K in Extract<keyof AnimusCSSProperties, ColorProperties>]?: Globals | 'currentColor' | 'transparent' | (K extends 'fill' | 'stroke' ? PaintKeywords : never) | (string & {}); };
|
|
128
129
|
type SizeProperties = 'left' | 'right' | 'top' | 'bottom' | 'inset' | 'width' | 'height' | `${string}${'Width' | 'Height'}` | 'inlineSize' | 'blockSize' | `${string}${'InlineSize' | 'BlockSize'}` | `inset${'Inline' | 'Block'}${'' | 'Start' | 'End'}`;
|
|
129
130
|
type SizeValues = `${number}${'px' | 'rem' | 'vh' | 'vw' | 'vmax' | 'vmin' | '%'}` | `calc(${any})`;
|
|
130
|
-
type SizeGlobals = { [K in Extract<keyof AnimusCSSProperties, SizeProperties>]?: AnimusCSSProperties[K] | SizeValues | (number & {}); };
|
|
131
|
+
type SizeGlobals<Overrides> = { [K in Extract<keyof AnimusCSSProperties, SizeProperties>]?: AnimusCSSProperties<Overrides>[K] | SizeValues | (number & {}); };
|
|
131
132
|
/**
|
|
132
133
|
* A non-strict `fontSize` takes a number, as the size properties do; a strict
|
|
133
134
|
* one (`Overrides` of `never`) keeps to its scale.
|
|
@@ -135,7 +136,7 @@ type SizeGlobals = { [K in Extract<keyof AnimusCSSProperties, SizeProperties>]?:
|
|
|
135
136
|
type FontSizeGlobals<Overrides> = {
|
|
136
137
|
fontSize?: AnimusCSSProperties<Overrides>['fontSize'] | ([Overrides] extends [never] ? never : number & {});
|
|
137
138
|
};
|
|
138
|
-
interface PropertyTypes<Overrides = (string & {}) | 0> extends Omit<AnimusCSSProperties<Overrides>, keyof ColorGlobals | keyof SizeGlobals | 'fontSize'>, ColorGlobals, SizeGlobals
|
|
139
|
+
interface PropertyTypes<Overrides = (string & {}) | 0> extends Omit<AnimusCSSProperties<Overrides>, keyof ColorGlobals | keyof SizeGlobals<Overrides> | 'fontSize'>, ColorGlobals, SizeGlobals<Overrides>, FontSizeGlobals<Overrides> {
|
|
139
140
|
none?: never;
|
|
140
141
|
[key: `--${string}`]: (string & {}) | number | undefined;
|
|
141
142
|
}
|
|
@@ -359,17 +360,20 @@ interface AbstractParser {
|
|
|
359
360
|
type IsEmpty<T> = [] extends T ? true : false | {} extends T ? true : false;
|
|
360
361
|
type StrictOrEmpty<Config extends SystemProp, ScaleT> = Config['strict'] extends false ? true : IsEmpty<ScaleT>;
|
|
361
362
|
type NegateKeys<T> = T extends number ? T extends 0 ? never : `-${T}` extends `${infer N extends number}` ? N : never : never;
|
|
362
|
-
type PropertyValues<Property extends SystemProp, IncludeGlobals = false> = Exclude<PropertyTypes<IncludeGlobals extends true ? (string & {}) |
|
|
363
|
+
type PropertyValues<Property extends SystemProp, IncludeGlobals = false> = Exclude<PropertyTypes<IncludeGlobals extends true ? (string & {}) | number : never>[Property['property'] & string], IncludeGlobals extends true ? never : object | any[]>;
|
|
363
364
|
type NegativeOf<Config extends SystemProp, Keys> = Config['negative'] extends true ? NegateKeys<Extract<Keys, number>> : never;
|
|
364
365
|
/**
|
|
365
366
|
* What a strict scale admits beside its keys and keywords, as strict
|
|
366
|
-
* extraction and the runtime do:
|
|
367
|
-
* length, and a reference to
|
|
368
|
-
*
|
|
369
|
-
*
|
|
370
|
-
*
|
|
371
|
-
|
|
372
|
-
|
|
367
|
+
* extraction and the runtime do: zero, as a string or a number, on a property
|
|
368
|
+
* whose value is a single length (`ZeroLengthProperty`), and a reference to
|
|
369
|
+
* one of the scale's own tokens. Elsewhere the scale wins: zero takes a key.
|
|
370
|
+
* A non-strict scale already admits them through its raw values. The
|
|
371
|
+
* authored style inputs check values through `ThemedCSSInputProps`, whose
|
|
372
|
+
* leaves TS does not infer from, so the numeric zero does not overflow the
|
|
373
|
+
* unions TS builds when inferring a style record against a large prop
|
|
374
|
+
* registry (TS2590).
|
|
375
|
+
*/
|
|
376
|
+
type StrictAdmissions<Config extends SystemProp, Strict, ScaleName, Keys> = Strict extends true ? never : (Config['property'] extends ZeroLengthProperty ? '0' | 0 : never) | (ScaleName extends string ? `{${ScaleName}.${Extract<Keys, string | number>}}` : never);
|
|
373
377
|
type ScaleValue<Config extends SystemProp, T extends BaseTheme> = Config['scale'] extends keyof TokenScales<T> ? keyof TokenScales<T>[Config['scale']] | NegativeOf<Config, keyof TokenScales<T>[Config['scale']]> | PropertyValues<Config, StrictOrEmpty<Config, TokenScales<T>[Config['scale']]>> | StrictAdmissions<Config, StrictOrEmpty<Config, TokenScales<T>[Config['scale']]>, Config['scale'], keyof TokenScales<T>[Config['scale']]> : Config['scale'] extends MapScale ? keyof Config['scale'] | NegativeOf<Config, keyof Config['scale']> | PropertyValues<Config, StrictOrEmpty<Config, Config['scale']>> | StrictAdmissions<Config, StrictOrEmpty<Config, Config['scale']>, never, never> : Config['scale'] extends ArrayScale ? Config['scale'][number] | PropertyValues<Config, StrictOrEmpty<Config, Config['scale']>> | StrictAdmissions<Config, StrictOrEmpty<Config, Config['scale']>, never, never> : PropertyValues<Config, true>;
|
|
374
378
|
type Scale<Config extends SystemProp, T extends BaseTheme> = [Config] extends [DeclarationProp] ? ResponsiveProp<DeclarationKey<Extract<Config, DeclarationProp>>> : ResponsiveProp<ScaleValue<Config, T>>;
|
|
375
379
|
type ParserProps<Config extends Record<string, SystemProp>, T extends BaseTheme> = ThemeProps<{ [P in keyof Config]?: Scale<Config[P], T>; }, T>;
|
|
@@ -404,9 +408,35 @@ type UnderscoreBlockMembers<Config extends Record<string, SystemProp>> = { [K in
|
|
|
404
408
|
type ThemedBlockBody<Config extends Record<string, SystemProp>> = { [K in Exclude<keyof PropertyTypes, keyof Config>]?: PassThroughProp<K>; } & { [P in keyof Config]?: ThemedScale<Config[P]>; } & { [K in RawSelectorKey | RawAtRuleKey]?: ThemedBlockBody<Config>; } & UnderscoreBlockMembers<Config>;
|
|
405
409
|
type ThemedCSSProps<Props, Config extends Record<string, SystemProp>> = { [K in keyof Props]?: K extends keyof Config ? ThemedScale<Config[K]> : K extends RawSelectorKey ? ThemedBlockBody<Config> : K extends RawAtRuleKey ? ThemedBlockBody<Config> : K extends KnownUnderscoreKey ? ThemedBlockBody<Config> : K extends keyof PropertyTypes ? PassThroughProp<K> : K extends `_${string}` ? UnknownConditionAlias<K & string> : K extends `@${string}` ? UnknownAtRule<K & string> : Omit<PropertyTypes, keyof Config> & { [P in keyof Config]?: ThemedScale<Config[P]>; }; };
|
|
406
410
|
type ThemedCSSPropMap<Props, Config extends Record<string, SystemProp>> = { [K in keyof Props]?: ThemedCSSProps<Props[K], Config>; };
|
|
411
|
+
/**
|
|
412
|
+
* What an authored style input accepts: `ThemedCSSProps` key for key, with
|
|
413
|
+
* each registered and raw value wrapped in `NoInfer`, so TS checks a value
|
|
414
|
+
* against its domain without inferring from it. A generic wrapper types its
|
|
415
|
+
* style parameter with this, and what it stores or returns with
|
|
416
|
+
* `ThemedCSSProps`.
|
|
417
|
+
*/
|
|
418
|
+
type ThemedCSSInputProps<Props, Config extends Record<string, SystemProp>> = { [K in keyof Props]?: K extends keyof Config ? NoInfer<ThemedScale<Config[K]>> : K extends RawSelectorKey ? ThemedBlockBody<Config> : K extends RawAtRuleKey ? ThemedBlockBody<Config> : K extends KnownUnderscoreKey ? ThemedBlockBody<Config> : K extends keyof PropertyTypes ? NoInfer<PassThroughProp<K>> : K extends `_${string}` ? UnknownConditionAlias<K & string> : K extends `@${string}` ? UnknownAtRule<K & string> : Omit<PropertyTypes, keyof Config> & { [P in keyof Config]?: ThemedScale<Config[P]>; }; };
|
|
419
|
+
/** `ThemedCSSPropMap`'s input counterpart: a style input per key. */
|
|
420
|
+
type ThemedCSSInputPropMap<Props, Config extends Record<string, SystemProp>> = { [K in keyof Props]?: ThemedCSSInputProps<Props[K], Config>; };
|
|
421
|
+
/**
|
|
422
|
+
* A variant's options as a builder stores them: its `prop` and
|
|
423
|
+
* `defaultVariant` as declared, and its `base` and `variants` as checked
|
|
424
|
+
* style models. Built from the variant's own type parameters, so published
|
|
425
|
+
* declarations print the registry once per variant.
|
|
426
|
+
*/
|
|
427
|
+
type ThemedVariantOptions<PropName, Default, Base, Props, Config extends Record<string, SystemProp>> = {
|
|
428
|
+
prop?: PropName | undefined;
|
|
429
|
+
defaultVariant?: Default | undefined;
|
|
430
|
+
base?: ThemedCSSProps<Base, Config>;
|
|
431
|
+
variants: ThemedCSSPropMap<Props, Config>;
|
|
432
|
+
};
|
|
433
|
+
/** A variant's options as stored: its `base` and `variants` as checked
|
|
434
|
+
* style models, and every other field as written. Builders store
|
|
435
|
+
* `ThemedVariantOptions`, which prints smaller in declarations. */
|
|
436
|
+
type ThemedVariantModel<Options, Base, Props, Config extends Record<string, SystemProp>> = { [K in keyof Options]: K extends 'base' ? ThemedCSSProps<Base, Config> : K extends 'variants' ? ThemedCSSPropMap<Props, Config> : Options[K]; };
|
|
407
437
|
interface VariantConfig {
|
|
408
|
-
prop?: string;
|
|
409
|
-
defaultVariant?: string;
|
|
438
|
+
prop?: string | undefined;
|
|
439
|
+
defaultVariant?: string | undefined;
|
|
410
440
|
base?: CSSProps<AbstractProps, SystemProps<AbstractParser>>;
|
|
411
441
|
variants: CSSPropMap<AbstractProps, SystemProps<AbstractParser>>;
|
|
412
442
|
}
|
|
@@ -488,38 +518,28 @@ declare class AnimusExtendedWithStates<PropRegistry extends Record<string, Syste
|
|
|
488
518
|
system<PickedKeys extends keyof GroupRegistry | Extract<keyof PropRegistry, string>>(config: SystemPicks<GroupRegistry, PickedKeys, StylingNames<Variants, States>>): AnimusExtendedWithSystem<PropRegistry, GroupRegistry, BaseStyles, Variants, States, Record<PickedKeys, true> & ActiveGroups, CustomProps>;
|
|
489
519
|
}
|
|
490
520
|
declare class AnimusExtendedWithCompounds<PropRegistry extends Record<string, SystemProp>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseStyles extends CSSProps<AbstractProps, SystemProps<AbstractParser>>, Variants extends Record<string, VariantConfig>, States extends CSSPropMap<AbstractProps, SystemProps<AbstractParser>>, ActiveGroups extends Record<string, true>, CustomProps extends Record<string, SystemProp>> extends AnimusExtendedWithStates<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps> {
|
|
491
|
-
compound<Props extends AbstractProps>(condition: { [K in keyof Variants]?: keyof Variants[K]['variants'] | ReadonlyArray<keyof Variants[K]['variants']>; }, styles:
|
|
492
|
-
states<Props extends AbstractProps>(config:
|
|
521
|
+
compound<Props extends AbstractProps>(condition: { [K in keyof Variants]?: keyof Variants[K]['variants'] | ReadonlyArray<keyof Variants[K]['variants']>; }, styles: ThemedCSSInputProps<Props, PropRegistry>): AnimusExtendedWithCompounds<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
522
|
+
states<Props extends AbstractProps>(config: ThemedCSSInputPropMap<Props, PropRegistry> & UnadmittedStates<Props, AdmittedNames<GroupRegistry, ActiveGroups>>): AnimusExtendedWithStates<PropRegistry, GroupRegistry, BaseStyles, Variants, ThemedCSSPropMap<Props, PropRegistry> & UnadmittedStates<Props, AdmittedNames<GroupRegistry, ActiveGroups>> & States, ActiveGroups, CustomProps>;
|
|
493
523
|
}
|
|
494
524
|
declare class AnimusExtendedWithVariants<PropRegistry extends Record<string, SystemProp>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseStyles extends CSSProps<AbstractProps, SystemProps<AbstractParser>>, Variants extends Record<string, VariantConfig>, States extends CSSPropMap<AbstractProps, SystemProps<AbstractParser>>, ActiveGroups extends Record<string, true>, CustomProps extends Record<string, SystemProp>> extends AnimusExtendedWithCompounds<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps> {
|
|
495
|
-
compound<Props extends AbstractProps>(condition: { [K in keyof Variants]?: keyof Variants[K]['variants'] | ReadonlyArray<keyof Variants[K]['variants']>; }, styles:
|
|
525
|
+
compound<Props extends AbstractProps>(condition: { [K in keyof Variants]?: keyof Variants[K]['variants'] | ReadonlyArray<keyof Variants[K]['variants']>; }, styles: ThemedCSSInputProps<Props, PropRegistry>): AnimusExtendedWithCompounds<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
496
526
|
variant<Keys extends keyof Props, Base extends AbstractProps, Props extends Record<Keys, AbstractProps>, PropKey extends Readonly<string> = 'variant'>(options: {
|
|
497
527
|
prop?: UnadmittedName<PropKey, AdmittedNames<GroupRegistry, ActiveGroups>>;
|
|
498
528
|
defaultVariant?: Extract<keyof Props, string> | InheritedOptions<Variants, PropKey>;
|
|
499
|
-
base?:
|
|
500
|
-
variants:
|
|
501
|
-
}): AnimusExtendedWithVariants<PropRegistry, GroupRegistry, BaseStyles, Variants & Record<PropKey,
|
|
502
|
-
prop?: UnadmittedName<PropKey, AdmittedNames<GroupRegistry, ActiveGroups>>;
|
|
503
|
-
defaultVariant?: Extract<keyof Props, string> | InheritedOptions<Variants, PropKey> | undefined;
|
|
504
|
-
base?: ThemedCSSProps<Base, PropRegistry>;
|
|
505
|
-
variants: ThemedCSSPropMap<Props, PropRegistry>;
|
|
506
|
-
}>, States, ActiveGroups, CustomProps>;
|
|
529
|
+
base?: ThemedCSSInputProps<Base, PropRegistry>;
|
|
530
|
+
variants: ThemedCSSInputPropMap<Props, PropRegistry>;
|
|
531
|
+
}): AnimusExtendedWithVariants<PropRegistry, GroupRegistry, BaseStyles, Variants & Record<PropKey, ThemedVariantOptions<UnadmittedName<PropKey, AdmittedNames<GroupRegistry, ActiveGroups>>, Extract<keyof Props, string> | InheritedOptions<Variants, PropKey>, Base, Props, PropRegistry>>, States, ActiveGroups, CustomProps>;
|
|
507
532
|
}
|
|
508
533
|
declare class AnimusExtendedWithBase<PropRegistry extends Record<string, SystemProp>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseStyles extends CSSProps<AbstractProps, SystemProps<AbstractParser>>, Variants extends Record<string, VariantConfig>, States extends CSSPropMap<AbstractProps, SystemProps<AbstractParser>>, ActiveGroups extends Record<string, true>, CustomProps extends Record<string, SystemProp>> extends AnimusExtendedWithVariants<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps> {
|
|
509
534
|
variant<Keys extends keyof Props, Base extends AbstractProps, Props extends Record<Keys, AbstractProps>, PropKey extends Readonly<string> = 'variant'>(options: {
|
|
510
535
|
prop?: UnadmittedName<PropKey, AdmittedNames<GroupRegistry, ActiveGroups>>;
|
|
511
536
|
defaultVariant?: Extract<keyof Props, string> | InheritedOptions<Variants, PropKey>;
|
|
512
|
-
base?:
|
|
513
|
-
variants:
|
|
514
|
-
}): AnimusExtendedWithVariants<PropRegistry, GroupRegistry, BaseStyles, Variants & Record<PropKey,
|
|
515
|
-
prop?: UnadmittedName<PropKey, AdmittedNames<GroupRegistry, ActiveGroups>>;
|
|
516
|
-
defaultVariant?: Extract<keyof Props, string> | InheritedOptions<Variants, PropKey> | undefined;
|
|
517
|
-
base?: ThemedCSSProps<Base, PropRegistry>;
|
|
518
|
-
variants: ThemedCSSPropMap<Props, PropRegistry>;
|
|
519
|
-
}>, States, ActiveGroups, CustomProps>;
|
|
537
|
+
base?: ThemedCSSInputProps<Base, PropRegistry>;
|
|
538
|
+
variants: ThemedCSSInputPropMap<Props, PropRegistry>;
|
|
539
|
+
}): AnimusExtendedWithVariants<PropRegistry, GroupRegistry, BaseStyles, Variants & Record<PropKey, ThemedVariantOptions<UnadmittedName<PropKey, AdmittedNames<GroupRegistry, ActiveGroups>>, Extract<keyof Props, string> | InheritedOptions<Variants, PropKey>, Base, Props, PropRegistry>>, States, ActiveGroups, CustomProps>;
|
|
520
540
|
}
|
|
521
541
|
declare class AnimusExtended<PropRegistry extends Record<string, SystemProp>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseStyles extends CSSProps<AbstractProps, SystemProps<AbstractParser>>, Variants extends Record<string, VariantConfig>, States extends CSSPropMap<AbstractProps, SystemProps<AbstractParser>>, ActiveGroups extends Record<string, true>, CustomProps extends Record<string, SystemProp>> extends AnimusExtendedWithBase<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps> {
|
|
522
|
-
styles<Props extends AbstractProps>(config:
|
|
542
|
+
styles<Props extends AbstractProps>(config: ThemedCSSInputProps<Props, PropRegistry>): AnimusExtendedWithBase<PropRegistry, GroupRegistry, ThemedCSSProps<Props, PropRegistry> & BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
523
543
|
}
|
|
524
544
|
//#endregion
|
|
525
545
|
//#region src/types/component.d.ts
|
|
@@ -668,5 +688,5 @@ type BuilderClassProps<B> = B extends {
|
|
|
668
688
|
custom: infer CP extends Record<string, SystemProp>;
|
|
669
689
|
} ? AnimusClassProps<PR, GR, V, S, AG, CP> : never : never;
|
|
670
690
|
//#endregion
|
|
671
|
-
export {
|
|
672
|
-
//# sourceMappingURL=component-
|
|
691
|
+
export { EmittedScales as $, SystemProps as A, ConditionsOf as At, ArrayScale as B, ParserProps as C, Keyframes as Ct, ScaleValue as D, ConditionAliasMap as Dt, Scale as E, ConditionAlias as Et, ThemedScale as F, ReservedBySelectorRegistry as Ft, ThemeProps as G, AbstractProps as H, ThemedScaleValue as I, SelectorsOf as It, BrowserColorSchemeConfig as J, AbstractTheme as K, ThemedVariantModel as L, UnknownAtRule as Lt, ThemedCSSInputProps as M, RawAtRuleKey as Mt, ThemedCSSPropMap as N, RegistryBrand as Nt, SelectorAliasProps as O, ConditionKind as Ot, ThemedCSSProps as P, ReservedByConditionRegistry as Pt, ContextualVarRegistration as Q, ThemedVariantOptions as R, UnknownConditionAlias as Rt, Parser as S, KeyframeRef as St, PropertyValues as T, BUILT_IN_CONDITIONS as Tt, MediaQueryMap as U, MapScale as V, ResponsiveProp as W, ColorModeOptions as X, CSSColorValue as Y, ColorTokenRef as Z, CSSProps as _, BUILT_IN_SELECTORS as _t, BuilderClassProps as a, Theme as at, DeclarationKey as b, Selectors as bt, VariantPropsOf as c, ThemeStructuralKey as ct, StylingNames as d, CSSObject as dt, EmittedTokenPaths as et, SystemPicks as f, FindPath as ft, CSSPropMap as g, PathValue as gt, BuiltInSelectorAlias as h, PathToLiteral as ht, AnyBrandedComponent as i, SystemPreferenceConfig as it, ThemedCSSInputPropMap as j, NarrowedAliases as jt, SystemProp as k, Conditions as kt, AnimusExtended as l, TokenDefinition as lt, BuiltInConditionAlias as m, Path as mt, AnimusComponent as n, ScaleTokenRef as nt, ComposedFamily as o, ThemeCssFragment as ot, AbstractParser as p, LiteralPaths as pt, BaseTheme as q, AnimusWrappedComponent as r, SerializedTheme as rt, SharedConfig as s, ThemeManifest as st, AnimusClassProps as t, ModeAliasDefinition as tt, AnimusExtendedWithAll as u, TokenScales as ut, CompoundEntry as v, SelectorAlias as vt, Prop as w, AtRuleValue as wt, DeclarationProp as x, KeyframeFrameMap as xt, CustomPropConfig as y, SelectorAliasMap as yt, VariantConfig as z };
|
|
692
|
+
//# sourceMappingURL=component-DSz5Yy5J.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-DSz5Yy5J.d.ts","names":[],"sources":["../src/conditions.ts","../src/keyframes.ts","../src/selectors.ts","../src/types/properties.ts","../src/theme/flattenScale.ts","../src/types/shared.ts","../src/types/theme.ts","../src/types/props.ts","../src/types/scales.ts","../src/types/utils.ts","../src/types/config.ts","../src/types/styling-names.ts","../src/AnimusExtended.ts","../src/types/component.ts"],"mappings":";;;;;;;;;KAKY;;;;;UAOK;cAEH;cACA;;;;;UAMG,cACf,0BACA;YAEU,eAAe;YACf,cAAc;;KAGd,aAAa,OACvB,YAAY,oBAAoB,aAAa;KAEnC,YAAY,OACtB,YAAY,4BAA4B,KAAK;;;;;UAM9B,sBAAsB;WAC5B,yBAAyB;WACzB,UAAU;;UAGJ,cAAc;WACpB,iBAAiB;WACjB,UAAU;;;;;;UAOJ,2BAA2B;WACjC,8BAA8B;WAC9B,UAAU;;UAGJ,4BAA4B;WAClC,+BAA+B;WAC/B,UAAU;;;;;;KAOT,gBAAgB,yCAAyC,YAEjE;;;;;KAMQ;;;;;KASA;UAKK;;EAEf;;EAEA;;EAEA,MAAM;;KAGI,oBAAoB,eAAe;;;;;cAMlC,qBAAqB;;;;;;;KCnGtB,mBAAmB,eAAe;UAE7B,YAAY;WAClB;WACA,QAAQ;EACjB;EACA;;KAGU,UAAU,YAAY,eAAe;WACtC;WACA,sBACG,WAAW;aACV;aACA,QAAQ,IAAI;;gBAIf,WAAW,eAAe,YAAY;;;;;;;UClBjC;EACf;EACA;;KAGU,mBAAmB,eAAe;;;;;UAO7B;cAEJ,oBAAoB;;;;KCV5B;EAEH,cACI;;KAWD,oBAAoB,iCACvB,mBAAmB,aACjB,iBAAiB,aAEjB,KAAK,mBAAmB,iCACxB,KAAK,cAAc,kBAAkB,sBACrC;KAEC;;KAGA;KAEA,kBACF,KAAK,cAAc,qBAAqB,oBACrC,4CAGC,8BAA8B;KAIhC;KAcA;KAMA,YAAY,gBACd,KAAK,cAAc,qBAAqB,mBACrC,oBAAoB,WAAW,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,0BAA0B,YAAY,MAAM;;KAItD,iBACV,WAAW,eAAe,aAC1B,WAAW,sBAAsB,QACjC,GACA,GACA,IACA,WAAW,eAAe,eACxB,mBAAmB,IAAI,IAAI,MAC7B,aAAa,KACb,WAAW,KACX,iBAAiB,MACjB,mBAAmB,mBAAmB,IAAI,IAAI;;;;;;KAOpC,kBAAkB,KAAK;EACjC,oBAAoB,WAAW,eAAe;IAE5C;EACE,qBAAqB,WAAW,sBAAsB;EACtD,gBAAgB;EAChB,oBAAoB;EACpB,oBAAoB;EACpB,cAAc,WAAW,eAAe;IAExC,iBAAiB,IAAI,IAAI,GAAG,GAAG,IAAI"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as AnyBrandedComponent, o as ComposedFamily, s as SharedConfig } from "./component-
|
|
1
|
+
import { i as AnyBrandedComponent, o as ComposedFamily, s as SharedConfig } from "./component-DSz5Yy5J.js";
|
|
2
2
|
//#region src/compose.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Shared variants propagate through the CSS cascade, so a slot only inherits
|
|
@@ -12,4 +12,4 @@ declare function compose<Slots extends {
|
|
|
12
12
|
}): ComposedFamily<Slots>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { compose as t };
|
|
15
|
-
//# sourceMappingURL=compose-
|
|
15
|
+
//# sourceMappingURL=compose-C-JKs2L8.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose-
|
|
1
|
+
{"version":3,"file":"compose-C-JKs2L8.d.ts","names":[],"sources":["../src/compose.ts"],"mappings":";;;;;;iBAmBgB,QACd;EAAgB,MAAM;IAAwB,eAE5C,4BAEI,eAAe,aAAa,QAElC,OAAO,OACP;EAAW,QAAQ;EAAQ;IAC1B,eAAe"}
|
package/dist/compose.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as compose } from "./compose-
|
|
1
|
+
import { t as compose } from "./compose-C-JKs2L8.js";
|
|
2
2
|
export { compose };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as AnyBrandedComponent, o as ComposedFamily, s as SharedConfig } from "./component-
|
|
1
|
+
import { i as AnyBrandedComponent, o as ComposedFamily, s as SharedConfig } from "./component-DSz5Yy5J.js";
|
|
2
2
|
import { ForwardRefExoticComponent } from "react";
|
|
3
3
|
//#region src/composeWithContext.d.ts
|
|
4
4
|
/**
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
//#region src/runtime/uncompiled.d.ts
|
|
2
|
+
/** A builder terminal that ran without Animus compiling it. */
|
|
3
|
+
interface UncompiledDefinition {
|
|
4
|
+
/** What it renders: `<button>`, a wrapped component, or class names. */
|
|
5
|
+
target: string;
|
|
6
|
+
/** The module that declared it, as the call stack names it. */
|
|
7
|
+
origin: string | undefined;
|
|
8
|
+
reported: boolean;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
1
11
|
//#region src/runtime/resolveClasses.d.ts
|
|
2
12
|
interface VariantConfig {
|
|
3
13
|
options: string[];
|
|
@@ -24,6 +34,9 @@ interface ClassResolverConfig {
|
|
|
24
34
|
* property, the later-defined takes effect, so a superseded prop applies
|
|
25
35
|
* no class and no slot value. */
|
|
26
36
|
supersededBy?: Record<string, readonly string[]>;
|
|
37
|
+
/** Set only by a builder terminal that ran without Animus compiling it:
|
|
38
|
+
* what each render of the component reports. */
|
|
39
|
+
uncompiled?: UncompiledDefinition | undefined;
|
|
27
40
|
}
|
|
28
41
|
type SystemPropMap = Record<string, Record<string, string>>;
|
|
29
42
|
interface ValueDynamicPropConfig {
|
|
@@ -44,6 +57,14 @@ interface ValueDynamicPropConfig {
|
|
|
44
57
|
keywords?: readonly string[];
|
|
45
58
|
/** The custom property the prop's slot also writes. */
|
|
46
59
|
currentVar?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Development only: the conditions (`_` for the base) at which a
|
|
62
|
+
* production build keeps this prop's slot, empty when it keeps none.
|
|
63
|
+
*/
|
|
64
|
+
productionConditions?: readonly string[];
|
|
65
|
+
/** Every property the slot writes is registered with a numeric syntax,
|
|
66
|
+
* `<integer>` or `<number>`, so a number needs no unit. */
|
|
67
|
+
declaredNumeric?: boolean;
|
|
47
68
|
kind?: never;
|
|
48
69
|
}
|
|
49
70
|
interface DeclarationDynamicPropConfig {
|
|
@@ -53,8 +74,13 @@ interface DeclarationDynamicPropConfig {
|
|
|
53
74
|
memberVars: Record<string, string>;
|
|
54
75
|
/** Scale key → member property → resolved CSS value. */
|
|
55
76
|
declarationScaleValues: Record<string, Record<string, string>>;
|
|
77
|
+
/**
|
|
78
|
+
* Development only: the conditions (`_` for the base) at which a
|
|
79
|
+
* production build keeps this prop's slot, empty when it keeps none.
|
|
80
|
+
*/
|
|
81
|
+
productionConditions?: readonly string[];
|
|
56
82
|
}
|
|
57
|
-
type DeclarationConfig = DeclarationDynamicPropConfig & { [K in Exclude<keyof ValueDynamicPropConfig, 'kind' | 'slotClass'>]?: never; };
|
|
83
|
+
type DeclarationConfig = DeclarationDynamicPropConfig & { [K in Exclude<keyof ValueDynamicPropConfig, 'kind' | 'slotClass' | 'productionConditions'>]?: never; };
|
|
58
84
|
type DynamicPropConfig = Record<string, ValueDynamicPropConfig | DeclarationConfig>;
|
|
59
85
|
//#endregion
|
|
60
86
|
//#region src/runtime/createClassResolver.d.ts
|
|
@@ -62,15 +88,31 @@ interface ClassResolverAttributes {
|
|
|
62
88
|
class: string;
|
|
63
89
|
style?: string;
|
|
64
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* `props()`: the attributes under React's names. The style is an object, the
|
|
93
|
+
* dynamic style's custom properties merged with the caller's style. A type
|
|
94
|
+
* literal, not an interface, so it assigns to an open record such as Base
|
|
95
|
+
* UI's `useRender({ props })`.
|
|
96
|
+
*/
|
|
97
|
+
type ClassResolverProps = {
|
|
98
|
+
className: string;
|
|
99
|
+
style?: Record<string, string | number | undefined>;
|
|
100
|
+
};
|
|
65
101
|
/**
|
|
66
102
|
* Input defaults to an open record; a builder's `asClass()` narrows it to the
|
|
67
|
-
* props the builder admitted.
|
|
103
|
+
* props the builder admitted. `props()` also takes the caller's `className`
|
|
104
|
+
* and `style`. That style is a record of `any`: React's `CSSProperties` is an
|
|
105
|
+
* interface, and an interface assigns to no narrower index signature.
|
|
68
106
|
*/
|
|
69
107
|
interface ClassResolver<Props extends object = Record<string, unknown>> {
|
|
70
108
|
(props?: Props): string;
|
|
71
109
|
attrs(props?: Props): ClassResolverAttributes;
|
|
110
|
+
props(props?: Props & {
|
|
111
|
+
className?: string | undefined;
|
|
112
|
+
style?: Record<string, any> | undefined;
|
|
113
|
+
}): ClassResolverProps;
|
|
72
114
|
}
|
|
73
115
|
declare function createClassResolver(className: string, resolverConfig: ClassResolverConfig, systemPropMap?: SystemPropMap, dynamicPropConfig?: DynamicPropConfig): ClassResolver;
|
|
74
116
|
//#endregion
|
|
75
|
-
export {
|
|
76
|
-
//# sourceMappingURL=createClassResolver-
|
|
117
|
+
export { ClassResolverConfig as a, createClassResolver as i, ClassResolverAttributes as n, DynamicPropConfig as o, ClassResolverProps as r, SystemPropMap as s, ClassResolver as t };
|
|
118
|
+
//# sourceMappingURL=createClassResolver-Bsjk8lII.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createClassResolver-Bsjk8lII.d.ts","names":[],"sources":["../src/runtime/uncompiled.ts","../src/runtime/resolveClasses.ts","../src/runtime/createClassResolver.ts"],"mappings":";;UAgBiB;;EAEf;;EAEA;EACA;;;;UCrBQ;EACR;EACA;;UAGQ;EACR,YAAY;EACZ;;UAGe;EACf,WAAW,eAAe;EAC1B,YAAY;EACZ;EACA;EACA,gBAAgB,eAAe;EAC/B,sBAAsB;;EAEtB;;;EAGA;;;;;EAKA,eAAe;;;EAGf,aAAa;;KAGH,gBAAgB,eAAe;UAEjC;EACR;EACA;EACA;EACA;;EAEA;;EAEA;EACA,aAAa;EACb,cAAc;EACd;;EAEA;;EAEA;;EAEA;;;;;EAKA;;;EAGA;EACA;;UAGQ;EACR;EACA;;EAEA,YAAY;;EAEZ,wBAAwB,eAAe;;;;;EAKvC;;KAGG,oBAAoB,kCAErB,KAAK,cACG;KAMA,oBAAoB,eAE9B,yBAAyB;;;UC5EV;EACf;EACA;;;;;;;;KASU;EACV;EACA,QAAQ;;;;;;;;UASO,cAAc,uBAAuB;GACnD,QAAQ;EACT,MAAM,QAAQ,QAAQ;EACtB,MACE,QAAQ;IACN;IACA,QAAQ;MAET;;iBASW,oBACd,mBACA,gBAAgB,qBAChB,gBAAgB,eAChB,oBAAoB,oBACnB"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { isUnitlessProperty, isZeroLengthProperty } from "@animus-ui/properties";
|
|
2
2
|
//#region src/runtime/is-dev.ts
|
|
3
3
|
/**
|
|
4
4
|
* The define token is tested as the initializer's own conditional, never from
|
|
5
|
-
* inside the fallback: only there can a minifier
|
|
5
|
+
* inside the fallback: only there can a minifier fold it. Dev-only work tests
|
|
6
|
+
* the token in place as well, `typeof __ANIMUS_DEV__ === 'boolean' ?
|
|
7
|
+
* __ANIMUS_DEV__ : IS_DEV`: esbuild inlines no module-level constant into a
|
|
8
|
+
* chunk that starts with an import, so a gate on `IS_DEV` alone survives a
|
|
9
|
+
* production bundle.
|
|
6
10
|
*/
|
|
7
11
|
const IS_DEV = typeof __ANIMUS_DEV__ === "boolean" ? __ANIMUS_DEV__ : (() => {
|
|
8
12
|
try {
|
|
@@ -13,6 +17,117 @@ const IS_DEV = typeof __ANIMUS_DEV__ === "boolean" ? __ANIMUS_DEV__ : (() => {
|
|
|
13
17
|
}
|
|
14
18
|
})();
|
|
15
19
|
//#endregion
|
|
20
|
+
//#region src/runtime/value-scan.ts
|
|
21
|
+
const ESCAPE = String.raw`\\(?:[\da-fA-F]{1,6}(?:\r\n|[ \t\n\r\f])?|[^\n\r\f\da-fA-F])`;
|
|
22
|
+
const NAME_CHAR = String.raw`(?:[\w\u0080--]|${ESCAPE})`;
|
|
23
|
+
/** One unit per match: a comment (1), whitespace (2), an opaque string or
|
|
24
|
+
* `<!--` (3), a name (4), a `!` (5), or any other character. In a string, a
|
|
25
|
+
* backslash escapes a CRLF as one newline. */
|
|
26
|
+
const UNIT = new RegExp(String.raw`(\/\*[\s\S]*?(?:\*\/|$))|([ \t\n\r\f]+)|("(?:\\(?:\r\n|[\s\S])|[^"\\\n\r\f])*"?|'(?:\\(?:\r\n|[\s\S])|[^'\\\n\r\f])*'?|<!--)|((?:-?(?:[a-zA-Z_\u0080-]|${ESCAPE})|--)${NAME_CHAR}*)|(!)|[\s\S]`, "gy");
|
|
27
|
+
/** An unquoted `url(` body, through its `)`. */
|
|
28
|
+
const URL_BODY = /(?:\\[\s\S]|[^)\\])*\)?/y;
|
|
29
|
+
const decode = (name) => name.replace(/\\([\da-fA-F]{1,6})(?:\r\n|[ \t\n\r\f])?|\\([\s\S])/g, (_, hex, char) => {
|
|
30
|
+
if (hex === void 0) return char ?? "";
|
|
31
|
+
const code = Number.parseInt(hex, 16);
|
|
32
|
+
return code > 0 && code <= 1114111 && (code < 55296 || code > 57343) ? String.fromCodePoint(code) : "�";
|
|
33
|
+
});
|
|
34
|
+
function units(css) {
|
|
35
|
+
const out = [];
|
|
36
|
+
UNIT.lastIndex = 0;
|
|
37
|
+
for (let match; (match = UNIT.exec(css)) !== null;) {
|
|
38
|
+
const start = match.index;
|
|
39
|
+
let end = UNIT.lastIndex;
|
|
40
|
+
if (match[1] !== void 0) continue;
|
|
41
|
+
if (match[2] !== void 0) out.push([
|
|
42
|
+
0,
|
|
43
|
+
start,
|
|
44
|
+
end
|
|
45
|
+
]);
|
|
46
|
+
else if (match[5] !== void 0) out.push([
|
|
47
|
+
1,
|
|
48
|
+
start,
|
|
49
|
+
end
|
|
50
|
+
]);
|
|
51
|
+
else if (match[4] !== void 0) {
|
|
52
|
+
const name = decode(match[4]);
|
|
53
|
+
const previous = out.at(-1);
|
|
54
|
+
if (!(previous !== void 0 && previous[0] === 3 && previous[2] === start && /[\d#@]/.test(css[start - 1])) && css[end] === "(") {
|
|
55
|
+
let body = end + 1;
|
|
56
|
+
while (/[ \t\n\r\f]/.test(css[body] ?? "")) body += 1;
|
|
57
|
+
if (name.toLowerCase() === "url" && css[body] !== "\"" && css[body] !== "'") {
|
|
58
|
+
URL_BODY.lastIndex = end + 1;
|
|
59
|
+
URL_BODY.exec(css);
|
|
60
|
+
end = UNIT.lastIndex = URL_BODY.lastIndex;
|
|
61
|
+
out.push([
|
|
62
|
+
3,
|
|
63
|
+
start,
|
|
64
|
+
end
|
|
65
|
+
]);
|
|
66
|
+
} else {
|
|
67
|
+
UNIT.lastIndex = end + 1;
|
|
68
|
+
out.push([
|
|
69
|
+
4,
|
|
70
|
+
start,
|
|
71
|
+
end + 1,
|
|
72
|
+
name
|
|
73
|
+
]);
|
|
74
|
+
}
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
77
|
+
out.push([
|
|
78
|
+
2,
|
|
79
|
+
start,
|
|
80
|
+
end,
|
|
81
|
+
name
|
|
82
|
+
]);
|
|
83
|
+
} else out.push([
|
|
84
|
+
3,
|
|
85
|
+
start,
|
|
86
|
+
end
|
|
87
|
+
]);
|
|
88
|
+
}
|
|
89
|
+
return out;
|
|
90
|
+
}
|
|
91
|
+
/** A value's trailing priority, as the tokenizer's `importantPriority` reads
|
|
92
|
+
* it: exactly one `!`; `value!` with nothing between is the shorthand, and
|
|
93
|
+
* `value !important`, the keyword in any case or escaped, the full form. */
|
|
94
|
+
function trailingPriority(css) {
|
|
95
|
+
const trimmed = css.trimEnd();
|
|
96
|
+
const endsImportant = trimmed.length >= 9 && /^important$/i.test(trimmed.slice(-9));
|
|
97
|
+
if (!css.endsWith("!") && !endsImportant) return void 0;
|
|
98
|
+
const all = units(css);
|
|
99
|
+
const bangs = all.filter((unit) => unit[0] === 1);
|
|
100
|
+
if (bangs.length !== 1) return void 0;
|
|
101
|
+
const at = all.indexOf(bangs[0]);
|
|
102
|
+
if (at === all.length - 1) {
|
|
103
|
+
const previous = all[at - 1];
|
|
104
|
+
return previous !== void 0 && previous[0] !== 0 && previous[2] === bangs[0][1] ? {
|
|
105
|
+
spelling: "shorthand",
|
|
106
|
+
end: previous[2]
|
|
107
|
+
} : void 0;
|
|
108
|
+
}
|
|
109
|
+
const after = all.slice(at + 1).filter((unit) => unit[0] !== 0);
|
|
110
|
+
if (after.length !== 1 || after[0][0] !== 2 || !/^important$/i.test(after[0][3] ?? "")) return;
|
|
111
|
+
const value = all.slice(0, at).findLast((unit) => unit[0] !== 0);
|
|
112
|
+
return value && {
|
|
113
|
+
spelling: "important",
|
|
114
|
+
end: value[2]
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
/** Whether `css` reads `variable` through a `var()` at any depth, its
|
|
118
|
+
* fallbacks included: a `var` function, in any case or escaped, whose first
|
|
119
|
+
* argument is the variable's decoded name. */
|
|
120
|
+
function readsVariable(css, variable) {
|
|
121
|
+
if (!css.includes("(")) return false;
|
|
122
|
+
const target = decode(variable);
|
|
123
|
+
const all = units(css);
|
|
124
|
+
return all.some((unit, index) => {
|
|
125
|
+
if (unit[0] !== 4 || unit[3]?.toLowerCase() !== "var") return false;
|
|
126
|
+
const first = all.slice(index + 1).find((next) => next[0] !== 0);
|
|
127
|
+
return first !== void 0 && first[0] === 2 && first[3] === target;
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
//#endregion
|
|
16
131
|
//#region src/runtime/witness.ts
|
|
17
132
|
const WITNESS_CAP = 5e3;
|
|
18
133
|
function recordWitness(component, prop, value, outcome) {
|
|
@@ -107,15 +222,16 @@ const CONTAINER_UNIT = new RegExp(`^${CSS_NUMBER}(?:cqw|cqi|cqh|cqb|cqmin|cqmax)
|
|
|
107
222
|
const SIZE_LENGTH = new RegExp(`^${CSS_NUMBER}(?:px|rem|vh|vw|vmax|vmin|%)$`);
|
|
108
223
|
const SIZE_PROPERTY = /^(?:left|right|top|bottom|inset|width|height)$|(?:Width|Height|-width|-height)$/;
|
|
109
224
|
/**
|
|
110
|
-
* Values a strict prop's public type admits beside its tokens: zero
|
|
111
|
-
*
|
|
112
|
-
* references, and the lengths size
|
|
113
|
-
* the extractor's rule.
|
|
225
|
+
* Values a strict prop's public type admits beside its tokens: zero on a
|
|
226
|
+
* property whose value is a single length, the keywords extraction lists for
|
|
227
|
+
* its property, container units, token references, and the lengths size
|
|
228
|
+
* properties take. Must stay in step with the extractor's rule.
|
|
114
229
|
*/
|
|
115
230
|
function isAdmittedWithoutToken(value, dc) {
|
|
116
|
-
|
|
231
|
+
const zeroLength = dc.property !== void 0 && isZeroLengthProperty(dc.property);
|
|
232
|
+
if (typeof value === "number") return value === 0 && zeroLength;
|
|
117
233
|
if (typeof value !== "string") return true;
|
|
118
|
-
return value === "0" || dc.keywords?.includes(value) === true || value.includes("{") || CONTAINER_UNIT.test(value) || dc.property !== void 0 && SIZE_PROPERTY.test(dc.property) && (SIZE_LENGTH.test(value) || value.startsWith("calc("));
|
|
234
|
+
return value === "0" && zeroLength || dc.keywords?.includes(value) === true || value.includes("{") || CONTAINER_UNIT.test(value) || dc.property !== void 0 && SIZE_PROPERTY.test(dc.property) && (SIZE_LENGTH.test(value) || value.startsWith("calc("));
|
|
119
235
|
}
|
|
120
236
|
function resolveEntry(value, dc) {
|
|
121
237
|
const key = String(value);
|
|
@@ -151,6 +267,29 @@ function warnDroppedValue(baseClassName, propName, serializedValue, customOwned)
|
|
|
151
267
|
}
|
|
152
268
|
}
|
|
153
269
|
/**
|
|
270
|
+
* A runtime value that reaches a slot condition a production build removes:
|
|
271
|
+
* the build's usage analysis saw no runtime value for the prop there, so the
|
|
272
|
+
* value arrived in a way it does not follow, and in production it has
|
|
273
|
+
* neither a class nor a slot. An entry a literal class serves, as
|
|
274
|
+
* `applyDynamicProp` serves an `!important` literal, takes no slot.
|
|
275
|
+
*/
|
|
276
|
+
function warnPrunedSlot(baseClassName, propName, serializedValue, propValue, dc, propClasses, typed) {
|
|
277
|
+
if (!IS_DEV || !dc.productionConditions) return;
|
|
278
|
+
const production = dc.productionConditions;
|
|
279
|
+
const [responsive, entries] = responsiveEntries(propValue);
|
|
280
|
+
const servedByClass = (bp, value) => {
|
|
281
|
+
if (dc.kind === "declarations" || !responsive || typeof value !== "string") return false;
|
|
282
|
+
const priority = trailingPriority(value);
|
|
283
|
+
return !!priority && (priority.spelling === "important" || !isCustomOnly(slotProperties(dc))) && entryClass(propClasses, typed, bp, value) !== void 0;
|
|
284
|
+
};
|
|
285
|
+
const pruned = entries.filter(([bp, value]) => !production.includes(bp) && !servedByClass(bp, value)).map(([bp]) => bp);
|
|
286
|
+
if (pruned.length === 0) return;
|
|
287
|
+
const dedupeKey = `${baseClassName}|${propName}|pruned`;
|
|
288
|
+
if (warnedDrops.has(dedupeKey)) return;
|
|
289
|
+
warnedDrops.add(dedupeKey);
|
|
290
|
+
console.warn(`[animus:drop] ${baseClassName}: value ${serializedValue} on prop '${propName}' uses its runtime slot at ${pruned.join(", ")}, which a production build removes — in production it will not render there. The build found no runtime value for this prop, so this one arrives through code it does not follow, such as a library that clones the element.`);
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
154
293
|
* A value taken from a variant default emits `--{prop}-default`, not the
|
|
155
294
|
* value, so the compose override rule misses and the parent's value wins.
|
|
156
295
|
* An explicit `undefined` takes the default as an omitted prop does.
|
|
@@ -162,7 +301,7 @@ function applyVariantClasses(classes, baseClassName, props, config) {
|
|
|
162
301
|
if (value != null) {
|
|
163
302
|
const isDefault = props[prop] == null && vc.default != null;
|
|
164
303
|
classes.push(`${baseClassName}--${prop}-${isDefault ? "default" : value}`);
|
|
165
|
-
recordWitness(baseClassName, prop, value, "static");
|
|
304
|
+
if (typeof __ANIMUS_DEV__ === "boolean" ? __ANIMUS_DEV__ : IS_DEV) recordWitness(baseClassName, prop, value, "static");
|
|
166
305
|
}
|
|
167
306
|
}
|
|
168
307
|
}
|
|
@@ -185,7 +324,7 @@ function applyStateClasses(classes, baseClassName, props, config, activeStates)
|
|
|
185
324
|
for (const state of config.states) if (props[state]) {
|
|
186
325
|
classes.push(`${baseClassName}--${state}`);
|
|
187
326
|
activeStates.push(state);
|
|
188
|
-
recordWitness(baseClassName, state, "true", "static");
|
|
327
|
+
if (typeof __ANIMUS_DEV__ === "boolean" ? __ANIMUS_DEV__ : IS_DEV) recordWitness(baseClassName, state, "true", "static");
|
|
189
328
|
}
|
|
190
329
|
}
|
|
191
330
|
const warnedInvalidResults = /* @__PURE__ */ new Set();
|
|
@@ -207,6 +346,24 @@ function warnIgnoredImportant(baseClassName, propName, value) {
|
|
|
207
346
|
console.warn(`[animus:important] ${baseClassName}: !important is ignored on the runtime-generated value ${JSON.stringify(value)} of prop '${propName}' — a runtime value reaches CSS through a variable, which cannot carry it; declare the value literally to keep !important`);
|
|
208
347
|
}
|
|
209
348
|
}
|
|
349
|
+
const warnedUnitless = /* @__PURE__ */ new Set();
|
|
350
|
+
/**
|
|
351
|
+
* A number reaching a slot that only custom properties read, with no
|
|
352
|
+
* transform, stays unitless, as at build time; reported once per prop. Zero
|
|
353
|
+
* is a length without a unit, a scale key is not written as is, and a slot
|
|
354
|
+
* whose properties are all registered with a numeric syntax takes a number.
|
|
355
|
+
*/
|
|
356
|
+
function warnUnitlessCustomProperty(baseClassName, propName, propValue, dc) {
|
|
357
|
+
if (!IS_DEV) return;
|
|
358
|
+
const properties = slotProperties(dc);
|
|
359
|
+
if (dc.transform || dc.transformId || dc.transformName || dc.declaredNumeric || !isCustomOnly(properties)) return;
|
|
360
|
+
const number = responsiveEntries(propValue)[1].map(([, value]) => value).find((value) => typeof value === "number" && Number.isFinite(value) && value !== 0 && dc.scaleValues?.[String(value)] == null);
|
|
361
|
+
if (number === void 0) return;
|
|
362
|
+
const dedupeKey = `${baseClassName}|${propName}`;
|
|
363
|
+
if (warnedUnitless.has(dedupeKey)) return;
|
|
364
|
+
warnedUnitless.add(dedupeKey);
|
|
365
|
+
console.warn(`[animus:unit] ${baseClassName}: prop '${propName}' writes the number ${String(number)} to ${properties.join(", ")} without a unit — a custom property has no unit context, so the number stays unitless; give the value a unit or bind a transform that adds one; to keep it unitless, bind \`transform: (value) => value\`, or register the property with the syntax '<integer>' or '<number>'`);
|
|
366
|
+
}
|
|
210
367
|
const warnedThrows = /* @__PURE__ */ new Set();
|
|
211
368
|
const warnedStrictMisses = /* @__PURE__ */ new Set();
|
|
212
369
|
/** Keyed by value, like a throw: each rejected input is reported once. */
|
|
@@ -254,23 +411,12 @@ function warnTransformThrow(baseClassName, propName, transformName, serializedVa
|
|
|
254
411
|
}
|
|
255
412
|
}
|
|
256
413
|
/**
|
|
257
|
-
* Whether `resolved` reads `currentVar` through a `var()` at any depth, its
|
|
258
|
-
* fallbacks included: a function token whose decoded name is `var` in any
|
|
259
|
-
* case, with the decoded variable name as its first argument. Comments,
|
|
260
|
-
* quoted strings and `url()` read nothing. The extractor's static path skips
|
|
261
|
-
* its `currentVar` write by the same predicate.
|
|
262
|
-
*/
|
|
263
|
-
function readsCurrentVar(resolved, currentVar) {
|
|
264
|
-
if (!resolved.includes("(")) return false;
|
|
265
|
-
const destination = decodedIdentifier(currentVar);
|
|
266
|
-
return variableReads(componentValues(tokenize(resolved))).some((read) => read.name === destination);
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
414
|
* A value that reads the prop's own `currentVar` takes the slot that leaves
|
|
270
|
-
* it alone, since writing it would make the variable cyclic.
|
|
415
|
+
* it alone, since writing it would make the variable cyclic. The extractor's
|
|
416
|
+
* static path skips its `currentVar` write by the same predicate.
|
|
271
417
|
*/
|
|
272
418
|
function slotClassFor(dc, resolved) {
|
|
273
|
-
return dc.currentVar !== void 0 &&
|
|
419
|
+
return dc.currentVar !== void 0 && readsVariable(resolved, dc.currentVar) ? `${dc.slotClass}--keep` : dc.slotClass;
|
|
274
420
|
}
|
|
275
421
|
/**
|
|
276
422
|
* Resolution is staged so a drop is atomic: one entry that misses a strict
|
|
@@ -285,16 +431,15 @@ function slotClassFor(dc, resolved) {
|
|
|
285
431
|
* priority, which `ignoredImportant` hears of. Where only custom properties
|
|
286
432
|
* read the value, a trailing `!` is no priority, as at build time.
|
|
287
433
|
*/
|
|
288
|
-
function applyDynamicProp(classes, dynStyle, propValue, dc,
|
|
434
|
+
function applyDynamicProp(classes, dynStyle, propValue, dc, propClasses, typed, ignoredImportant) {
|
|
289
435
|
const staged = [];
|
|
290
436
|
const [responsive, entries] = responsiveEntries(propValue);
|
|
291
|
-
const lookup = (bp, value) => literalClass(bp === "_" ? value : { [bp]: value });
|
|
292
437
|
for (const [bp, authored] of entries) {
|
|
293
438
|
let value = authored;
|
|
294
439
|
let ignored;
|
|
295
|
-
const priority = typeof authored === "string" ?
|
|
440
|
+
const priority = typeof authored === "string" ? trailingPriority(authored) : void 0;
|
|
296
441
|
if (typeof authored === "string" && priority && (priority.spelling === "important" || !isCustomOnly(slotProperties(dc)))) {
|
|
297
|
-
const literal = responsive ?
|
|
442
|
+
const literal = responsive ? entryClass(propClasses, typed, bp, authored) : void 0;
|
|
298
443
|
if (literal) {
|
|
299
444
|
staged.push([literal]);
|
|
300
445
|
continue;
|
|
@@ -309,7 +454,7 @@ function applyDynamicProp(classes, dynStyle, propValue, dc, literalClass, ignore
|
|
|
309
454
|
} : resolved;
|
|
310
455
|
if (ignored !== void 0) {
|
|
311
456
|
ignoredImportant(ignored);
|
|
312
|
-
const end =
|
|
457
|
+
const end = trailingPriority(resolved)?.end;
|
|
313
458
|
resolved = end === void 0 ? resolved : resolved.slice(0, end);
|
|
314
459
|
}
|
|
315
460
|
const slotClass = slotClassFor(dc, resolved);
|
|
@@ -366,6 +511,29 @@ function applyDeclarationProp(classes, dynStyle, propValue, dc) {
|
|
|
366
511
|
return null;
|
|
367
512
|
}
|
|
368
513
|
/**
|
|
514
|
+
* The static class of `value` written alone at breakpoint `bp` (`_` the
|
|
515
|
+
* base), keyed as extraction keys it.
|
|
516
|
+
*/
|
|
517
|
+
function entryClass(propClasses, typed, bp, value) {
|
|
518
|
+
return propClasses?.[(typed ? typedValueKey : serializeValueKey)(bp === "_" ? value : { [bp]: value })];
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* The static classes of a responsive value's entries, when every entry has
|
|
522
|
+
* one: extraction gives a value proven to be one of a few at each
|
|
523
|
+
* breakpoint a class per entry, and no slot.
|
|
524
|
+
*/
|
|
525
|
+
function entryClasses(propValue, propClasses, typed) {
|
|
526
|
+
const [responsive, entries] = responsiveEntries(propValue);
|
|
527
|
+
if (!responsive || entries.length === 0) return void 0;
|
|
528
|
+
const found = [];
|
|
529
|
+
for (const [bp, value] of entries) {
|
|
530
|
+
const cls = entryClass(propClasses, typed, bp, value);
|
|
531
|
+
if (!cls) return void 0;
|
|
532
|
+
found.push(cls);
|
|
533
|
+
}
|
|
534
|
+
return found;
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
369
537
|
* A responsive value without its nullish breakpoints, so it keys the same
|
|
370
538
|
* static class as the value written without them; `undefined` when none
|
|
371
539
|
* remain, as if the prop were omitted.
|
|
@@ -409,25 +577,33 @@ function resolveClasses(baseClassName, props, config, systemPropMap, dynamicProp
|
|
|
409
577
|
const customOwned = customPropMap?.[propName] !== void 0 || customDynamicConfig?.[propName] !== void 0;
|
|
410
578
|
const [classMap, typedProps] = customOwned ? [customPropMap, config.typedCustomProps] : [systemPropMap, config.typedSystemProps];
|
|
411
579
|
const typed = typedProps?.includes(propName) === true;
|
|
412
|
-
const
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
580
|
+
const propClasses = classMap?.[propName];
|
|
581
|
+
const cls = propClasses?.[typed ? typedValueKey(propValue) : key];
|
|
582
|
+
const found = cls ? [cls] : propClasses && entryClasses(propValue, propClasses, typed);
|
|
583
|
+
if (found) {
|
|
584
|
+
classes.push(...found);
|
|
585
|
+
if (typeof __ANIMUS_DEV__ === "boolean" ? __ANIMUS_DEV__ : IS_DEV) recordWitness(baseClassName, propName, key, "static");
|
|
416
586
|
} else {
|
|
417
587
|
const dc = customOwned ? customDynamicConfig?.[propName] : dynamicPropConfig?.[propName];
|
|
418
588
|
if (dc) {
|
|
419
589
|
const staged = dynStyle ?? {};
|
|
420
|
-
const failure = dc.kind === "declarations" ? applyDeclarationProp(classes, staged, propValue, dc) : applyDynamicProp(classes, staged, propValue, dc,
|
|
590
|
+
const failure = dc.kind === "declarations" ? applyDeclarationProp(classes, staged, propValue, dc) : applyDynamicProp(classes, staged, propValue, dc, propClasses, typed, (value) => {
|
|
591
|
+
if (typeof __ANIMUS_DEV__ === "boolean" ? __ANIMUS_DEV__ : IS_DEV) warnIgnoredImportant(baseClassName, propName, value);
|
|
592
|
+
});
|
|
421
593
|
if (failure === null) {
|
|
422
594
|
dynStyle = staged;
|
|
423
|
-
|
|
424
|
-
|
|
595
|
+
if (typeof __ANIMUS_DEV__ === "boolean" ? __ANIMUS_DEV__ : IS_DEV) {
|
|
596
|
+
recordWitness(baseClassName, propName, key, "dynamic");
|
|
597
|
+
warnPrunedSlot(baseClassName, propName, key, propValue, dc, propClasses, typed);
|
|
598
|
+
if (dc.kind !== "declarations") warnUnitlessCustomProperty(baseClassName, propName, propValue, dc);
|
|
599
|
+
}
|
|
600
|
+
} else if (typeof __ANIMUS_DEV__ === "boolean" ? __ANIMUS_DEV__ : IS_DEV) {
|
|
425
601
|
if ("shape" in failure) warnInvalidTransformResult(baseClassName, propName, failure.shape);
|
|
426
602
|
else if ("entry" in failure) warnStrictScaleMiss(baseClassName, propName, key, failure);
|
|
427
603
|
else warnTransformThrow(baseClassName, propName, dc.transformName, key, failure.cause);
|
|
428
604
|
recordWitness(baseClassName, propName, key, "drop");
|
|
429
605
|
}
|
|
430
|
-
} else {
|
|
606
|
+
} else if (typeof __ANIMUS_DEV__ === "boolean" ? __ANIMUS_DEV__ : IS_DEV) {
|
|
431
607
|
warnDroppedValue(baseClassName, propName, key, customOwned);
|
|
432
608
|
recordWitness(baseClassName, propName, key, "drop");
|
|
433
609
|
}
|
|
@@ -441,6 +617,71 @@ function resolveClasses(baseClassName, props, config, systemPropMap, dynamicProp
|
|
|
441
617
|
};
|
|
442
618
|
}
|
|
443
619
|
//#endregion
|
|
620
|
+
//#region src/runtime/uncompiled.ts
|
|
621
|
+
/**
|
|
622
|
+
* What rendering a component that Animus did not compile does: nothing, a
|
|
623
|
+
* console warning once per component, or a thrown error on every render.
|
|
624
|
+
* Without compilation its classes are empty and no CSS exists for it.
|
|
625
|
+
* Production stays silent until the project owner chooses its level, and its
|
|
626
|
+
* bundles carry no report: the calls in `createComponent` and
|
|
627
|
+
* `createClassResolver` test the define token in place, which a minifier
|
|
628
|
+
* removes. A production level changes this line and lifts those guards.
|
|
629
|
+
*/
|
|
630
|
+
const UNCOMPILED_RENDER = IS_DEV ? "warn" : "off";
|
|
631
|
+
/**
|
|
632
|
+
* The record a builder terminal attaches to the component it builds at
|
|
633
|
+
* runtime. Only an uncompiled definition reaches a terminal: a compiled
|
|
634
|
+
* one is replaced with the component's extracted classes. `undefined` when
|
|
635
|
+
* uncompiled renders are not reported.
|
|
636
|
+
*/
|
|
637
|
+
function uncompiledDefinition(target) {
|
|
638
|
+
if (UNCOMPILED_RENDER === "off") return void 0;
|
|
639
|
+
return {
|
|
640
|
+
target,
|
|
641
|
+
origin: declaringModule((/* @__PURE__ */ new Error()).stack),
|
|
642
|
+
reported: false
|
|
643
|
+
};
|
|
644
|
+
}
|
|
645
|
+
/**
|
|
646
|
+
* Reports a render of an uncompiled definition at the configured level.
|
|
647
|
+
* Defining or importing one reports nothing; only a render does.
|
|
648
|
+
*/
|
|
649
|
+
function reportUncompiledRender(definition, displayName) {
|
|
650
|
+
if (!definition) return;
|
|
651
|
+
if (UNCOMPILED_RENDER === "error") throw new Error(uncompiledMessage(definition, displayName));
|
|
652
|
+
if (definition.reported) return;
|
|
653
|
+
definition.reported = true;
|
|
654
|
+
console.warn(uncompiledMessage(definition, displayName));
|
|
655
|
+
}
|
|
656
|
+
function uncompiledMessage({ target, origin }, displayName) {
|
|
657
|
+
const component = displayName ? `${displayName} (${target})` : target;
|
|
658
|
+
const pkg = origin && packageOf(origin);
|
|
659
|
+
const declared = origin ? ` declared in ${origin}` : "";
|
|
660
|
+
const subject = pkg ? `the package ${pkg}` : "its module";
|
|
661
|
+
return `[animus:uncompiled] ${component}${declared} rendered without Animus compiling it: its classes are empty and no CSS exists for it. Add the Animus plugin for this app's host (Vite, Next.js, Rollup) so it compiles ${subject}, or build ${subject} with the Animus CLI.`;
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* The caller of the builder terminal: the frame after the terminal's own.
|
|
665
|
+
* Engines differ in frame syntax, so only `file:line:column` is read.
|
|
666
|
+
*/
|
|
667
|
+
function declaringModule(stack) {
|
|
668
|
+
return (stack ?? "").split("\n").map((line) => /((?:[a-z][\w+.-]*:\/\/|\/)[^\s()]+:\d+:\d+)/i.exec(line)?.[1]).filter((frame) => frame !== void 0)[2];
|
|
669
|
+
}
|
|
670
|
+
/**
|
|
671
|
+
* The installed package a path lies in, as `node_modules` names it, or as
|
|
672
|
+
* Vite's dependency optimizer names the file it bundles the package into:
|
|
673
|
+
* `@scope/name/sub` becomes `.vite/deps/@scope_name_sub.js`, a `.` becomes
|
|
674
|
+
* `__`, and a shared chunk names no package.
|
|
675
|
+
*/
|
|
676
|
+
function packageOf(path) {
|
|
677
|
+
const installed = /\/node_modules\/((?:@[^/]+\/)?[^/.][^/]*)\//.exec(path);
|
|
678
|
+
if (installed) return installed[1];
|
|
679
|
+
const optimized = /\/node_modules\/\.vite\/deps(?:_[^/]*)?\/([^/?#:]+?)\.m?js\b/.exec(path)?.[1];
|
|
680
|
+
if (!optimized || optimized.startsWith("chunk-")) return void 0;
|
|
681
|
+
const flat = optimized.replace(/__/g, ".");
|
|
682
|
+
return /^(@[^_]+_)?[^_]+/.exec(flat)?.[0].replace("_", "/");
|
|
683
|
+
}
|
|
684
|
+
//#endregion
|
|
444
685
|
//#region src/runtime/createClassResolver.ts
|
|
445
686
|
function serializeDynamicStyle(style) {
|
|
446
687
|
return Object.entries(style).map(([property, value]) => `${property}: ${value}`).join("; ");
|
|
@@ -448,13 +689,32 @@ function serializeDynamicStyle(style) {
|
|
|
448
689
|
function createClassResolver(className, resolverConfig, systemPropMap, dynamicPropConfig) {
|
|
449
690
|
const config = withUniqueSystemPropNames(resolverConfig);
|
|
450
691
|
const resolveAttributes = (props) => {
|
|
692
|
+
if (typeof __ANIMUS_DEV__ === "boolean" ? __ANIMUS_DEV__ : IS_DEV) reportUncompiledRender(config.uncompiled, void 0);
|
|
451
693
|
const { classes, dynamicStyle } = resolveClasses(className, props || {}, config, systemPropMap, dynamicPropConfig);
|
|
452
694
|
const attributes = { class: classes.join(" ") };
|
|
453
695
|
if (dynamicStyle && Object.keys(dynamicStyle).length > 0) attributes.style = serializeDynamicStyle(dynamicStyle);
|
|
454
696
|
return attributes;
|
|
455
697
|
};
|
|
456
|
-
const
|
|
457
|
-
|
|
698
|
+
const resolveProps = (props) => {
|
|
699
|
+
if (typeof __ANIMUS_DEV__ === "boolean" ? __ANIMUS_DEV__ : IS_DEV) reportUncompiledRender(config.uncompiled, void 0);
|
|
700
|
+
const { classes, dynamicStyle } = resolveClasses(className, props || {}, config, systemPropMap, dynamicPropConfig);
|
|
701
|
+
if (props?.className) classes.push(props.className);
|
|
702
|
+
const attributes = { className: classes.join(" ") };
|
|
703
|
+
const style = props?.style ? {
|
|
704
|
+
...dynamicStyle,
|
|
705
|
+
...props.style
|
|
706
|
+
} : dynamicStyle;
|
|
707
|
+
if (style && Object.keys(style).length > 0) attributes.style = style;
|
|
708
|
+
return attributes;
|
|
709
|
+
};
|
|
710
|
+
const resolver = (props) => {
|
|
711
|
+
if (typeof __ANIMUS_DEV__ === "boolean" ? __ANIMUS_DEV__ : IS_DEV) reportUncompiledRender(config.uncompiled, void 0);
|
|
712
|
+
return resolveClasses(className, props || {}, config, systemPropMap, dynamicPropConfig).classes.join(" ");
|
|
713
|
+
};
|
|
714
|
+
return Object.assign(resolver, {
|
|
715
|
+
attrs: resolveAttributes,
|
|
716
|
+
props: resolveProps
|
|
717
|
+
});
|
|
458
718
|
}
|
|
459
719
|
//#endregion
|
|
460
|
-
export { resolveClasses as n,
|
|
720
|
+
export { withUniqueSystemPropNames as a, resolveClasses as i, reportUncompiledRender as n, IS_DEV as o, uncompiledDefinition as r, createClassResolver as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as withUniqueSystemPropNames, i as resolveClasses, n as reportUncompiledRender, o as IS_DEV } from "./createClassResolver-Oqr1_kml.js";
|
|
2
2
|
import { t as assertRootSlot } from "./assert-root-slot-C3Lp9MNJ.js";
|
|
3
3
|
import { Children, cloneElement, createElement, forwardRef } from "react";
|
|
4
4
|
//#region src/runtime/index.ts
|
|
@@ -164,6 +164,7 @@ function createComponent(element, className, componentConfig, systemPropMap, dyn
|
|
|
164
164
|
...systemPropNames
|
|
165
165
|
]);
|
|
166
166
|
const Component = forwardRef((props, ref) => {
|
|
167
|
+
if (typeof __ANIMUS_DEV__ === "boolean" ? __ANIMUS_DEV__ : IS_DEV) reportUncompiledRender(config.uncompiled, Component.displayName || void 0);
|
|
167
168
|
const { classes, dynamicStyle } = resolveClasses(className, props, config, systemPropMap, dynamicPropConfig);
|
|
168
169
|
if (props.asChild && ownsPolymorphism) {
|
|
169
170
|
const slotProps = { className: joinClassNames(classes.join(" "), props.className) };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as ClassResolverConfig, o as DynamicPropConfig, s as SystemPropMap } from "./createClassResolver-Bsjk8lII.js";
|
|
2
2
|
import { ForwardRefExoticComponent, ReactElement, ReactNode, Ref, forwardRef } from "react";
|
|
3
3
|
//#region src/runtime/index.d.ts
|
|
4
4
|
interface ComponentConfig extends ClassResolverConfig {}
|
|
@@ -37,4 +37,4 @@ interface ComposedFamilyConfig {
|
|
|
37
37
|
declare function createComposedFamily(slots: Record<string, ForwardRefExoticComponent<any>>, config: ComposedFamilyConfig): Record<string, ForwardRefExoticComponent<any>>;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { createComponent as n, renderAsChild as r, createComposedFamily as t };
|
|
40
|
-
//# sourceMappingURL=createComposedFamily-
|
|
40
|
+
//# sourceMappingURL=createComposedFamily-DoNVYx77.d.ts.map
|
package/dist/{createComposedFamily-Bj1xF-M8.d.ts.map → createComposedFamily-DoNVYx77.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createComposedFamily-
|
|
1
|
+
{"version":3,"file":"createComposedFamily-DoNVYx77.d.ts","names":[],"sources":["../src/runtime/index.ts","../src/runtime/createComposedFamily.ts"],"mappings":";;;UAqBU,wBAAwB;KAE7B,uBAAuB,MAAM;KAE7B,YAAY,YAAY;KAExB,kBAAkB,kBAAkB;EACvC;EACA,iBAAiB,SAAS;EAC1B,kBAAkB,SAAS,eAAe;;;;;;;;;;;;;;;;;;;;iBAyJ5B,cACd,UAAU,WACV,eACA,MAAM,WACL;iBAkDa,gBACd,SAAS,aACT,mBACA,iBAAiB,iBACjB,gBAAgB,eAChB,oBAAoB,oBACnB;;;UCrOO;EACR;;iBAGc,qBACd,OAAO,eAAe,iCACtB,QAAQ,uBACP,eAAe"}
|
package/dist/groups/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./compose-
|
|
4
|
-
import "./createComposedFamily-
|
|
1
|
+
import { a as ClassResolverConfig, t as ClassResolver } from "./createClassResolver-Bsjk8lII.js";
|
|
2
|
+
import { A as SystemProps, Ct as Keyframes, Dt as ConditionAliasMap, Ft as ReservedBySelectorRegistry, H as AbstractProps, K as AbstractTheme, M as ThemedCSSInputProps, N as ThemedCSSPropMap, Nt as RegistryBrand, P as ThemedCSSProps, Pt as ReservedByConditionRegistry, Q as ContextualVarRegistration, R as ThemedVariantOptions, X as ColorModeOptions, Y as CSSColorValue, _ as CSSProps, a as BuilderClassProps, ct as ThemeStructuralKey, d as StylingNames, dt as CSSObject, f as SystemPicks, g as CSSPropMap, h as BuiltInSelectorAlias, j as ThemedCSSInputPropMap, jt as NarrowedAliases, k as SystemProp, l as AnimusExtended, lt as TokenDefinition, m as BuiltInConditionAlias, n as AnimusComponent, ot as ThemeCssFragment, p as AbstractParser, pt as LiteralPaths, r as AnimusWrappedComponent, rt as SerializedTheme, st as ThemeManifest, tt as ModeAliasDefinition, v as CompoundEntry, wt as AtRuleValue, x as DeclarationProp, xt as KeyframeFrameMap, y as CustomPropConfig, yt as SelectorAliasMap, z as VariantConfig } from "./component-DSz5Yy5J.js";
|
|
3
|
+
import "./compose-C-JKs2L8.js";
|
|
4
|
+
import "./createComposedFamily-DoNVYx77.js";
|
|
5
5
|
import { ComponentType, JSX } from "react";
|
|
6
6
|
//#region src/Animus.d.ts
|
|
7
7
|
declare class AnimusWithAll<PropRegistry extends Record<string, SystemProp>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseStyles extends CSSProps<AbstractProps, SystemProps<AbstractParser>>, Variants extends Record<string, VariantConfig>, States extends CSSPropMap<AbstractProps, SystemProps<AbstractParser>>, ActiveGroups extends Record<string, true>, CustomProps extends Record<string, SystemProp>> {
|
|
@@ -32,41 +32,31 @@ declare class AnimusWithStates<PropRegistry extends Record<string, SystemProp>,
|
|
|
32
32
|
}
|
|
33
33
|
declare class AnimusWithCompounds<PropRegistry extends Record<string, SystemProp>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseStyles extends CSSProps<AbstractProps, SystemProps<AbstractParser>>, Variants extends Record<string, VariantConfig>> extends AnimusWithStates<PropRegistry, GroupRegistry, BaseStyles, Variants, {}> {
|
|
34
34
|
constructor(props: PropRegistry, groups: GroupRegistry, base: BaseStyles, variants: Variants, compounds?: CompoundEntry[]);
|
|
35
|
-
compound<Props extends AbstractProps>(condition: { [K in keyof Variants]?: keyof Variants[K]['variants'] | ReadonlyArray<keyof Variants[K]['variants']>; }, styles:
|
|
36
|
-
states<Props extends AbstractProps>(config:
|
|
35
|
+
compound<Props extends AbstractProps>(condition: { [K in keyof Variants]?: keyof Variants[K]['variants'] | ReadonlyArray<keyof Variants[K]['variants']>; }, styles: ThemedCSSInputProps<Props, PropRegistry>): AnimusWithCompounds<PropRegistry, GroupRegistry, BaseStyles, Variants>;
|
|
36
|
+
states<Props extends AbstractProps>(config: ThemedCSSInputPropMap<Props, PropRegistry>): AnimusWithStates<PropRegistry, GroupRegistry, BaseStyles, Variants, ThemedCSSPropMap<Props, PropRegistry>>;
|
|
37
37
|
}
|
|
38
38
|
declare class AnimusWithVariants<PropRegistry extends Record<string, SystemProp>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseStyles extends CSSProps<AbstractProps, SystemProps<AbstractParser>>, Variants extends Record<string, VariantConfig>> extends AnimusWithCompounds<PropRegistry, GroupRegistry, BaseStyles, Variants> {
|
|
39
39
|
constructor(props: PropRegistry, groups: GroupRegistry, base: BaseStyles, variants: Variants, compounds?: CompoundEntry[]);
|
|
40
|
-
compound<Props extends AbstractProps>(condition: { [K in keyof Variants]?: keyof Variants[K]['variants'] | ReadonlyArray<keyof Variants[K]['variants']>; }, styles:
|
|
40
|
+
compound<Props extends AbstractProps>(condition: { [K in keyof Variants]?: keyof Variants[K]['variants'] | ReadonlyArray<keyof Variants[K]['variants']>; }, styles: ThemedCSSInputProps<Props, PropRegistry>): AnimusWithCompounds<PropRegistry, GroupRegistry, BaseStyles, Variants>;
|
|
41
41
|
variant<Keys extends keyof Props, Base extends AbstractProps, Props extends Record<Keys, AbstractProps>, PropKey extends Readonly<string> = 'variant'>(options: {
|
|
42
42
|
prop?: PropKey;
|
|
43
43
|
defaultVariant?: Extract<keyof Props, string>;
|
|
44
|
-
base?:
|
|
45
|
-
variants:
|
|
46
|
-
}): AnimusWithVariants<PropRegistry, GroupRegistry, BaseStyles, Variants & Record<PropKey,
|
|
47
|
-
prop?: PropKey;
|
|
48
|
-
defaultVariant?: Extract<keyof Props, string>;
|
|
49
|
-
base?: ThemedCSSProps<Base, PropRegistry>;
|
|
50
|
-
variants: ThemedCSSPropMap<Props, PropRegistry>;
|
|
51
|
-
}>>;
|
|
44
|
+
base?: ThemedCSSInputProps<Base, PropRegistry>;
|
|
45
|
+
variants: ThemedCSSInputPropMap<Props, PropRegistry>;
|
|
46
|
+
}): AnimusWithVariants<PropRegistry, GroupRegistry, BaseStyles, Variants & Record<PropKey, ThemedVariantOptions<PropKey, Extract<keyof Props, string>, Base, Props, PropRegistry>>>;
|
|
52
47
|
}
|
|
53
48
|
declare class AnimusWithBase<PropRegistry extends Record<string, SystemProp>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>, BaseStyles extends CSSProps<AbstractProps, SystemProps<AbstractParser>>> extends AnimusWithVariants<PropRegistry, GroupRegistry, BaseStyles, {}> {
|
|
54
49
|
constructor(props: PropRegistry, groups: GroupRegistry, base: BaseStyles);
|
|
55
50
|
variant<Keys extends keyof Props, Base extends AbstractProps, Props extends Record<Keys, AbstractProps>, PropKey extends Readonly<string> = 'variant'>(options: {
|
|
56
51
|
prop?: PropKey;
|
|
57
52
|
defaultVariant?: Extract<keyof Props, string>;
|
|
58
|
-
base?:
|
|
59
|
-
variants:
|
|
60
|
-
}): AnimusWithVariants<PropRegistry, GroupRegistry, BaseStyles, Record<PropKey,
|
|
61
|
-
prop?: PropKey;
|
|
62
|
-
defaultVariant?: Extract<keyof Props, string>;
|
|
63
|
-
base?: ThemedCSSProps<Base, PropRegistry>;
|
|
64
|
-
variants: ThemedCSSPropMap<Props, PropRegistry>;
|
|
65
|
-
}>>;
|
|
53
|
+
base?: ThemedCSSInputProps<Base, PropRegistry>;
|
|
54
|
+
variants: ThemedCSSInputPropMap<Props, PropRegistry>;
|
|
55
|
+
}): AnimusWithVariants<PropRegistry, GroupRegistry, BaseStyles, Record<PropKey, ThemedVariantOptions<PropKey, Extract<keyof Props, string>, Base, Props, PropRegistry>>>;
|
|
66
56
|
}
|
|
67
57
|
declare class Animus<PropRegistry extends Record<string, SystemProp>, GroupRegistry extends Record<string, (keyof PropRegistry)[]>> extends AnimusWithBase<PropRegistry, GroupRegistry, {}> {
|
|
68
58
|
constructor(props: PropRegistry, groups: GroupRegistry);
|
|
69
|
-
styles<Props extends AbstractProps>(config:
|
|
59
|
+
styles<Props extends AbstractProps>(config: ThemedCSSInputProps<Props, PropRegistry>): AnimusWithBase<PropRegistry, GroupRegistry, ThemedCSSProps<Props, PropRegistry>>;
|
|
70
60
|
}
|
|
71
61
|
//#endregion
|
|
72
62
|
//#region src/asset.d.ts
|
|
@@ -138,11 +128,11 @@ interface GlobalStyleBlock {
|
|
|
138
128
|
*/
|
|
139
129
|
unlayered?: true;
|
|
140
130
|
}
|
|
141
|
-
type GlobalStylesFactory<PropReg extends Record<string, SystemProp> = Record<string, SystemProp>> = <Map extends Record<string, AbstractProps>>(styles: { readonly [K in keyof Map]:
|
|
131
|
+
type GlobalStylesFactory<PropReg extends Record<string, SystemProp> = Record<string, SystemProp>> = <Map extends Record<string, AbstractProps>>(styles: { readonly [K in keyof Map]: ThemedCSSInputProps<Map[K], PropReg>; }, options?: {
|
|
142
132
|
fontFaces?: readonly FontFace[];
|
|
143
133
|
unlayered?: boolean;
|
|
144
134
|
}) => GlobalStyleBlock;
|
|
145
|
-
type CreateKeyframesFactory<PropReg extends Record<string, SystemProp> = Record<string, SystemProp>> = <Frames extends Record<string, Record<string, AbstractProps>>>(frames: { readonly [N in keyof Frames]: { readonly [S in keyof Frames[N]]:
|
|
135
|
+
type CreateKeyframesFactory<PropReg extends Record<string, SystemProp> = Record<string, SystemProp>> = <Frames extends Record<string, Record<string, AbstractProps>>>(frames: { readonly [N in keyof Frames]: { readonly [S in keyof Frames[N]]: ThemedCSSInputProps<Frames[N][S], PropReg>; }; }) => Keyframes<{ readonly [N in keyof Frames]: KeyframeFrameMap; }>;
|
|
146
136
|
type IncludableSystem = {
|
|
147
137
|
toConfig(): SerializedConfig;
|
|
148
138
|
/**
|
|
@@ -660,4 +650,4 @@ declare const percentageOrAbsolute: (coordinate: number) => string | 0;
|
|
|
660
650
|
declare const size: NamedTransform;
|
|
661
651
|
//#endregion
|
|
662
652
|
export { AssetRef as $, LibraryBundle as A, VocabularyCollisionEntry as B, CreateKeyframesFactory as C, GlobalStyleMap as D, GlobalStyleBlock as E, SerializedConfig as F, VocabularyOf as G, VocabularyKeyframesEntry as H, SystemBuilder as I, NamedTransform as J, VocabularyRecord as K, SystemBuilderStage as L, RegisterableKeyframes as M, RegistrySnapshot as N, GlobalStylesFactory as O, SealedSystemInstance as P, ASSET_PLACEHOLDER_PREFIX as Q, SystemBundle as R, stringScale as S, FontFaceSrc as T, VocabularyLegacyVerbEntry as U, VocabularyGlobalStyleEntry as V, VocabularyNameCollision as W, areTransformsEqual as X, TransformFn as Y, createTransform as Z, ThemeBuilderStage as _, borderShorthand as a, numericOrStringScale as b, ColorModeConfig as c, MergeTheme as d, asset as et, PrivateThemeKeys as f, ThemeBuilder as g, Flatten as h, gridItemRatio as i, RegisterableGlobalStyles as j, KeyframesFrameData as k, Mergable as l, SanitizeKey as m, size as n, AnimusWithAll as nt, Assign as o, KeyAsVariable as p, createSystem as q, gridItem as r, AssignValueIfUnmergable as s, percentageOrAbsolute as t, Animus as tt, Merge as u, createTheme as v, FontFace as w, numericScale as x, createScale as y, SystemInstance as z };
|
|
663
|
-
//# sourceMappingURL=index-
|
|
653
|
+
//# sourceMappingURL=index-Ce_0J3BF.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-Ce_0J3BF.d.ts","names":[],"sources":["../src/Animus.ts","../src/asset.ts","../src/transforms/createTransform.ts","../src/SystemBuilder.ts","../src/scales/createScale.ts","../src/declarations.ts","../src/theme/property-records.ts","../src/theme/createTheme.ts","../src/theme/serializeTokens.ts","../src/theme/types.ts","../src/transforms/border.ts","../src/transforms/grid.ts","../src/transforms/size.ts"],"mappings":";;;;;;cAsCa,cACX,qBAAqB,eAAe,aACpC,sBAAsB,sBAAsB,kBAC5C,mBAAmB,SAAS,eAAe,YAAY,kB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AAmB,IAAI,SAAS,mBAAmB,IAAI,OAAO,GAAG;KAEhE,OAAO,GAAG,QACnB,WAAW,UAAU,IAAI,gBAAgB,IACtC,EAAE,KACF,gBAAgB,IACd,EAAE;KAIE;EACV,YAAY,eAAe;EAC3B,SAAS;;;;;;KAOC,gBAAgB,UAAU,eAElC,SACA,eAAe,UACf,eAAe,SAAS,eAAe;;;;cC5C9B,iBAAA;;;;cCAA,UAAA;;cAaA,eAAA;;;;cCbA,uBAAoB;;cAWpB,MAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as ClassResolverAttributes, r as
|
|
2
|
-
import { $ as
|
|
3
|
-
import { t as compose } from "./compose-
|
|
4
|
-
import { $ as AssetRef, A as LibraryBundle, B as VocabularyCollisionEntry, C as CreateKeyframesFactory, D as GlobalStyleMap, E as GlobalStyleBlock, F as SerializedConfig, G as VocabularyOf, H as VocabularyKeyframesEntry, I as SystemBuilder, J as NamedTransform, K as VocabularyRecord, L as SystemBuilderStage, M as RegisterableKeyframes, N as RegistrySnapshot, O as GlobalStylesFactory, P as SealedSystemInstance, Q as ASSET_PLACEHOLDER_PREFIX, R as SystemBundle, S as stringScale, T as FontFaceSrc, U as VocabularyLegacyVerbEntry, V as VocabularyGlobalStyleEntry, W as VocabularyNameCollision, X as areTransformsEqual, Y as TransformFn, Z as createTransform, _ as ThemeBuilderStage, a as borderShorthand, b as numericOrStringScale, c as ColorModeConfig, d as MergeTheme, et as asset, f as PrivateThemeKeys, g as ThemeBuilder, h as Flatten, i as gridItemRatio, j as RegisterableGlobalStyles, k as KeyframesFrameData, l as Mergable, m as SanitizeKey, n as size, nt as AnimusWithAll, o as Assign, p as KeyAsVariable, q as createSystem, r as gridItem, s as AssignValueIfUnmergable, t as percentageOrAbsolute, tt as Animus, u as Merge, v as createTheme, w as FontFace, x as numericScale, y as createScale, z as SystemInstance } from "./index-
|
|
5
|
-
import { n as createComponent, r as renderAsChild, t as createComposedFamily } from "./createComposedFamily-
|
|
6
|
-
export { ASSET_PLACEHOLDER_PREFIX, type AbstractParser, type AbstractProps, type AbstractTheme, Animus, type AnimusClassProps, type AnimusComponent, AnimusExtended, AnimusExtendedWithAll, AnimusWithAll, type AnimusWrappedComponent, type AnyBrandedComponent, type ArrayScale, type AssetRef, type Assign, type AssignValueIfUnmergable, type AtRuleValue, BUILT_IN_CONDITIONS, BUILT_IN_SELECTORS, type BaseTheme, type BrowserColorSchemeConfig, type BuiltInConditionAlias, type BuiltInSelectorAlias, type CSSColorValue, type CSSObject, type CSSPropMap, type CSSProps, type ClassResolver, type ClassResolverAttributes, type ColorModeConfig, type ColorModeOptions, type ColorTokenRef, type ComposedFamily, type CompoundEntry, type ConditionAlias, type ConditionAliasMap, type ConditionKind, type Conditions, type ConditionsOf, type ContextualVarRegistration, type CreateKeyframesFactory, type CustomPropConfig, type DeclarationKey, type DeclarationProp, type EmittedScales, type EmittedTokenPaths, type FindPath, type Flatten, type FontFace, type FontFaceSrc, type GlobalStyleBlock, type GlobalStyleMap, type GlobalStylesFactory, type KeyAsVariable, type KeyframeFrameMap, type KeyframeRef, type Keyframes, type KeyframesFrameData, type LibraryBundle, type LiteralPaths, type MapScale, type MediaQueryMap, type Mergable, type Merge, type MergeTheme, type NamedTransform, type NarrowedAliases, type Parser, type ParserProps, type Path, type PathToLiteral, type PathValue, type PrivateThemeKeys, type Prop, type PropertyValues, type RawAtRuleKey, type RegisterableGlobalStyles, type RegisterableKeyframes, type RegistryBrand, type RegistrySnapshot, type ReservedByConditionRegistry, type ReservedBySelectorRegistry, type ResponsiveProp, type SanitizeKey, type Scale, type ScaleTokenRef, type ScaleValue, type SealedSystemInstance, type SelectorAlias, type SelectorAliasMap, type SelectorAliasProps, type Selectors, type SelectorsOf, type SerializedConfig, type SerializedTheme, type SharedConfig, SystemBuilder, type SystemBuilderStage, type SystemBundle, type SystemInstance, type SystemPreferenceConfig, type SystemProp, type SystemProps, type Theme, ThemeBuilder, type ThemeBuilderStage, type ThemeManifest, type ThemeProps, type ThemeStructuralKey, type ThemedCSSPropMap, type ThemedCSSProps, type ThemedScale, type ThemedScaleValue, type TokenScales, type TransformFn, type UnknownAtRule, type UnknownConditionAlias, type VariantConfig, type VariantPropsOf, type VocabularyCollisionEntry, type VocabularyGlobalStyleEntry, type VocabularyKeyframesEntry, type VocabularyLegacyVerbEntry, type VocabularyNameCollision, type VocabularyOf, type VocabularyRecord, areTransformsEqual, asset, borderShorthand, compose, createClassResolver, createComponent, createComposedFamily, createScale, createSystem, createTheme, createTransform, gridItem, gridItemRatio, numericOrStringScale, numericScale, percentageOrAbsolute, renderAsChild, size, stringScale };
|
|
1
|
+
import { i as createClassResolver, n as ClassResolverAttributes, r as ClassResolverProps, t as ClassResolver } from "./createClassResolver-Bsjk8lII.js";
|
|
2
|
+
import { $ as EmittedScales, A as SystemProps, At as ConditionsOf, B as ArrayScale, C as ParserProps, Ct as Keyframes, D as ScaleValue, Dt as ConditionAliasMap, E as Scale, Et as ConditionAlias, F as ThemedScale, Ft as ReservedBySelectorRegistry, G as ThemeProps, H as AbstractProps, I as ThemedScaleValue, It as SelectorsOf, J as BrowserColorSchemeConfig, K as AbstractTheme, L as ThemedVariantModel, Lt as UnknownAtRule, M as ThemedCSSInputProps, Mt as RawAtRuleKey, N as ThemedCSSPropMap, Nt as RegistryBrand, O as SelectorAliasProps, Ot as ConditionKind, P as ThemedCSSProps, Pt as ReservedByConditionRegistry, Q as ContextualVarRegistration, R as ThemedVariantOptions, Rt as UnknownConditionAlias, S as Parser, St as KeyframeRef, T as PropertyValues, Tt as BUILT_IN_CONDITIONS, U as MediaQueryMap, V as MapScale, W as ResponsiveProp, X as ColorModeOptions, Y as CSSColorValue, Z as ColorTokenRef, _ as CSSProps, _t as BUILT_IN_SELECTORS, at as Theme, b as DeclarationKey, bt as Selectors, c as VariantPropsOf, ct as ThemeStructuralKey, dt as CSSObject, et as EmittedTokenPaths, ft as FindPath, g as CSSPropMap, gt as PathValue, h as BuiltInSelectorAlias, ht as PathToLiteral, i as AnyBrandedComponent, it as SystemPreferenceConfig, j as ThemedCSSInputPropMap, jt as NarrowedAliases, k as SystemProp, kt as Conditions, l as AnimusExtended, m as BuiltInConditionAlias, mt as Path, n as AnimusComponent, nt as ScaleTokenRef, o as ComposedFamily, p as AbstractParser, pt as LiteralPaths, q as BaseTheme, r as AnimusWrappedComponent, rt as SerializedTheme, s as SharedConfig, st as ThemeManifest, t as AnimusClassProps, u as AnimusExtendedWithAll, ut as TokenScales, v as CompoundEntry, vt as SelectorAlias, w as Prop, wt as AtRuleValue, x as DeclarationProp, xt as KeyframeFrameMap, y as CustomPropConfig, yt as SelectorAliasMap, z as VariantConfig } from "./component-DSz5Yy5J.js";
|
|
3
|
+
import { t as compose } from "./compose-C-JKs2L8.js";
|
|
4
|
+
import { $ as AssetRef, A as LibraryBundle, B as VocabularyCollisionEntry, C as CreateKeyframesFactory, D as GlobalStyleMap, E as GlobalStyleBlock, F as SerializedConfig, G as VocabularyOf, H as VocabularyKeyframesEntry, I as SystemBuilder, J as NamedTransform, K as VocabularyRecord, L as SystemBuilderStage, M as RegisterableKeyframes, N as RegistrySnapshot, O as GlobalStylesFactory, P as SealedSystemInstance, Q as ASSET_PLACEHOLDER_PREFIX, R as SystemBundle, S as stringScale, T as FontFaceSrc, U as VocabularyLegacyVerbEntry, V as VocabularyGlobalStyleEntry, W as VocabularyNameCollision, X as areTransformsEqual, Y as TransformFn, Z as createTransform, _ as ThemeBuilderStage, a as borderShorthand, b as numericOrStringScale, c as ColorModeConfig, d as MergeTheme, et as asset, f as PrivateThemeKeys, g as ThemeBuilder, h as Flatten, i as gridItemRatio, j as RegisterableGlobalStyles, k as KeyframesFrameData, l as Mergable, m as SanitizeKey, n as size, nt as AnimusWithAll, o as Assign, p as KeyAsVariable, q as createSystem, r as gridItem, s as AssignValueIfUnmergable, t as percentageOrAbsolute, tt as Animus, u as Merge, v as createTheme, w as FontFace, x as numericScale, y as createScale, z as SystemInstance } from "./index-Ce_0J3BF.js";
|
|
5
|
+
import { n as createComponent, r as renderAsChild, t as createComposedFamily } from "./createComposedFamily-DoNVYx77.js";
|
|
6
|
+
export { ASSET_PLACEHOLDER_PREFIX, type AbstractParser, type AbstractProps, type AbstractTheme, Animus, type AnimusClassProps, type AnimusComponent, AnimusExtended, AnimusExtendedWithAll, AnimusWithAll, type AnimusWrappedComponent, type AnyBrandedComponent, type ArrayScale, type AssetRef, type Assign, type AssignValueIfUnmergable, type AtRuleValue, BUILT_IN_CONDITIONS, BUILT_IN_SELECTORS, type BaseTheme, type BrowserColorSchemeConfig, type BuiltInConditionAlias, type BuiltInSelectorAlias, type CSSColorValue, type CSSObject, type CSSPropMap, type CSSProps, type ClassResolver, type ClassResolverAttributes, type ClassResolverProps, type ColorModeConfig, type ColorModeOptions, type ColorTokenRef, type ComposedFamily, type CompoundEntry, type ConditionAlias, type ConditionAliasMap, type ConditionKind, type Conditions, type ConditionsOf, type ContextualVarRegistration, type CreateKeyframesFactory, type CustomPropConfig, type DeclarationKey, type DeclarationProp, type EmittedScales, type EmittedTokenPaths, type FindPath, type Flatten, type FontFace, type FontFaceSrc, type GlobalStyleBlock, type GlobalStyleMap, type GlobalStylesFactory, type KeyAsVariable, type KeyframeFrameMap, type KeyframeRef, type Keyframes, type KeyframesFrameData, type LibraryBundle, type LiteralPaths, type MapScale, type MediaQueryMap, type Mergable, type Merge, type MergeTheme, type NamedTransform, type NarrowedAliases, type Parser, type ParserProps, type Path, type PathToLiteral, type PathValue, type PrivateThemeKeys, type Prop, type PropertyValues, type RawAtRuleKey, type RegisterableGlobalStyles, type RegisterableKeyframes, type RegistryBrand, type RegistrySnapshot, type ReservedByConditionRegistry, type ReservedBySelectorRegistry, type ResponsiveProp, type SanitizeKey, type Scale, type ScaleTokenRef, type ScaleValue, type SealedSystemInstance, type SelectorAlias, type SelectorAliasMap, type SelectorAliasProps, type Selectors, type SelectorsOf, type SerializedConfig, type SerializedTheme, type SharedConfig, SystemBuilder, type SystemBuilderStage, type SystemBundle, type SystemInstance, type SystemPreferenceConfig, type SystemProp, type SystemProps, type Theme, ThemeBuilder, type ThemeBuilderStage, type ThemeManifest, type ThemeProps, type ThemeStructuralKey, type ThemedCSSInputPropMap, type ThemedCSSInputProps, type ThemedCSSPropMap, type ThemedCSSProps, type ThemedScale, type ThemedScaleValue, type ThemedVariantModel, type ThemedVariantOptions, type TokenScales, type TransformFn, type UnknownAtRule, type UnknownConditionAlias, type VariantConfig, type VariantPropsOf, type VocabularyCollisionEntry, type VocabularyGlobalStyleEntry, type VocabularyKeyframesEntry, type VocabularyLegacyVerbEntry, type VocabularyNameCollision, type VocabularyOf, type VocabularyRecord, areTransformsEqual, asset, borderShorthand, compose, createClassResolver, createComponent, createComposedFamily, createScale, createSystem, createTheme, createTransform, gridItem, gridItemRatio, numericOrStringScale, numericScale, percentageOrAbsolute, renderAsChild, size, stringScale };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as createClassResolver } from "./createClassResolver-
|
|
2
|
-
import { n as createComponent, r as renderAsChild, t as createComposedFamily } from "./createComposedFamily-
|
|
1
|
+
import { r as uncompiledDefinition, t as createClassResolver } from "./createClassResolver-Oqr1_kml.js";
|
|
2
|
+
import { n as createComponent, r as renderAsChild, t as createComposedFamily } from "./createComposedFamily-C8rwilXT.js";
|
|
3
3
|
import { compose } from "./compose.js";
|
|
4
4
|
import { a as borderShorthand, c as numericScale, d as createTransform, f as linkAuthoredCallable, 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-ZhCTPtA-.js";
|
|
5
5
|
//#region src/utils/admittedPropNames.ts
|
|
@@ -68,19 +68,28 @@ var AnimusExtendedWithAll = class {
|
|
|
68
68
|
return new AnimusExtended(this.propRegistry, this.groupRegistry, this.baseStyles, this.variants, this.statesConfig, this.activeGroups, this.custom, this.compounds);
|
|
69
69
|
}
|
|
70
70
|
asElement(component) {
|
|
71
|
-
const config =
|
|
71
|
+
const config = {
|
|
72
|
+
...this._buildComponentConfig(),
|
|
73
|
+
uncompiled: uncompiledDefinition(`<${component}>`)
|
|
74
|
+
};
|
|
72
75
|
const Component = createComponent(component, "", config);
|
|
73
76
|
const extendFn = this.extend.bind(this);
|
|
74
77
|
return Object.assign(Component, { extend: extendFn });
|
|
75
78
|
}
|
|
76
79
|
asComponent(AsComponent) {
|
|
77
|
-
const config =
|
|
80
|
+
const config = {
|
|
81
|
+
...this._buildComponentConfig(),
|
|
82
|
+
uncompiled: uncompiledDefinition(`a component wrapping ${AsComponent.displayName || AsComponent.name || "an anonymous component"}`)
|
|
83
|
+
};
|
|
78
84
|
const Component = createComponent(AsComponent, "", config);
|
|
79
85
|
const extendFn = this.extend.bind(this);
|
|
80
86
|
return Object.assign(Component, { extend: extendFn });
|
|
81
87
|
}
|
|
82
88
|
asClass() {
|
|
83
|
-
const config =
|
|
89
|
+
const config = {
|
|
90
|
+
...this._buildComponentConfig(),
|
|
91
|
+
uncompiled: uncompiledDefinition("a class resolver")
|
|
92
|
+
};
|
|
84
93
|
return createClassResolver("", config);
|
|
85
94
|
}
|
|
86
95
|
_buildComponentConfig() {
|
|
@@ -173,19 +182,28 @@ var AnimusWithAll = class {
|
|
|
173
182
|
return new AnimusExtended(this.propRegistry, this.groupRegistry, this.baseStyles, this.variants, this.statesConfig, this.activeGroups, this.custom, this.compounds);
|
|
174
183
|
}
|
|
175
184
|
asElement(component) {
|
|
176
|
-
const config =
|
|
185
|
+
const config = {
|
|
186
|
+
...this._buildComponentConfig(),
|
|
187
|
+
uncompiled: uncompiledDefinition(`<${component}>`)
|
|
188
|
+
};
|
|
177
189
|
const Component = createComponent(component, "", config);
|
|
178
190
|
const extendFn = this.extend.bind(this);
|
|
179
191
|
return Object.assign(Component, { extend: extendFn });
|
|
180
192
|
}
|
|
181
193
|
asComponent(AsComponent) {
|
|
182
|
-
const config =
|
|
194
|
+
const config = {
|
|
195
|
+
...this._buildComponentConfig(),
|
|
196
|
+
uncompiled: uncompiledDefinition(`a component wrapping ${AsComponent.displayName || AsComponent.name || "an anonymous component"}`)
|
|
197
|
+
};
|
|
183
198
|
const Component = createComponent(AsComponent, "", config);
|
|
184
199
|
const extendFn = this.extend.bind(this);
|
|
185
200
|
return Object.assign(Component, { extend: extendFn });
|
|
186
201
|
}
|
|
187
202
|
asClass() {
|
|
188
|
-
const config =
|
|
203
|
+
const config = {
|
|
204
|
+
...this._buildComponentConfig(),
|
|
205
|
+
uncompiled: uncompiledDefinition("a class resolver")
|
|
206
|
+
};
|
|
189
207
|
return createClassResolver("", config);
|
|
190
208
|
}
|
|
191
209
|
_buildComponentConfig() {
|
package/dist/runtime-entry.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as ClassResolverAttributes, r as
|
|
2
|
-
import { n as createComponent, r as renderAsChild, t as createComposedFamily } from "./createComposedFamily-
|
|
3
|
-
export { type ClassResolver, type ClassResolverAttributes, createClassResolver, createComponent, createComposedFamily, renderAsChild };
|
|
1
|
+
import { i as createClassResolver, n as ClassResolverAttributes, r as ClassResolverProps, t as ClassResolver } from "./createClassResolver-Bsjk8lII.js";
|
|
2
|
+
import { n as createComponent, r as renderAsChild, t as createComposedFamily } from "./createComposedFamily-DoNVYx77.js";
|
|
3
|
+
export { type ClassResolver, type ClassResolverAttributes, type ClassResolverProps, createClassResolver, createComponent, createComposedFamily, renderAsChild };
|
package/dist/runtime-entry.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as createClassResolver } from "./createClassResolver-
|
|
2
|
-
import { n as createComponent, r as renderAsChild, t as createComposedFamily } from "./createComposedFamily-
|
|
1
|
+
import { t as createClassResolver } from "./createClassResolver-Oqr1_kml.js";
|
|
2
|
+
import { n as createComponent, r as renderAsChild, t as createComposedFamily } from "./createComposedFamily-C8rwilXT.js";
|
|
3
3
|
export { createClassResolver, createComponent, createComposedFamily, renderAsChild };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@animus-ui/system",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.25",
|
|
4
4
|
"description": "Animus design system builder — tokens, prop groups, global styles",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"compile": "tsc --noEmit"
|
|
89
89
|
},
|
|
90
90
|
"dependencies": {
|
|
91
|
-
"@animus-ui/properties": "0.1.
|
|
91
|
+
"@animus-ui/properties": "0.1.25",
|
|
92
92
|
"csstype": "^3.2.3"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component-CaNNGvbE.d.ts","names":[],"sources":["../src/conditions.ts","../src/keyframes.ts","../src/selectors.ts","../src/types/properties.ts","../src/theme/flattenScale.ts","../src/types/shared.ts","../src/types/theme.ts","../src/types/props.ts","../src/types/scales.ts","../src/types/utils.ts","../src/types/config.ts","../src/types/styling-names.ts","../src/AnimusExtended.ts","../src/types/component.ts"],"mappings":";;;;;;;;KAKY;;;;;UAOK;cAEH;cACA;;;;;UAMG,cACf,0BACA;YAEU,eAAe;YACf,cAAc;;KAGd,aAAa,OACvB,YAAY,oBAAoB,aAAa;KAEnC,YAAY,OACtB,YAAY,4BAA4B,KAAK;;;;;UAM9B,sBAAsB;WAC5B,yBAAyB;WACzB,UAAU;;UAGJ,cAAc;WACpB,iBAAiB;WACjB,UAAU;;;;;;UAOJ,2BAA2B;WACjC,8BAA8B;WAC9B,UAAU;;UAGJ,4BAA4B;WAClC,+BAA+B;WAC/B,UAAU;;;;;;KAOT,gBAAgB,yCAAyC,YAEjE;;;;;KAMQ;;;;;KASA;UAKK;;EAEf;;EAEA;;EAEA,MAAM;;KAGI,oBAAoB,eAAe;;;;;cAMlC,qBAAqB;;;;;;;KCnGtB,mBAAmB,eAAe;UAE7B,YAAY;WAClB;WAC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KAOpC,kBAAkB,KAAK;EACjC,oBAAoB,WAAW,eAAe;IAE5C;EACE,qBAAqB,WAAW,sBAAsB;EACtD,gBAAgB;EAChB,oBAAoB;EACpB,oBAAoB;EACpB,cAAc,WAAW,eAAe;IAExC,iBAAiB,IAAI,IAAI,GAAG,GAAG,IAAI"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createClassResolver-C_yq_4BM.d.ts","names":[],"sources":["../src/runtime/resolveClasses.ts","../src/runtime/createClassResolver.ts"],"mappings":";UAAU;EACR;EACA;;UAGQ;EACR,YAAY;EACZ;;UAGe;EACf,WAAW,eAAe;EAC1B,YAAY;EACZ;EACA;EACA,gBAAgB,eAAe;EAC/B,sBAAsB;;EAEtB;;;EAGA;;;;;EAKA,eAAe;;KAGL,gBAAgB,eAAe;UAEjC;EACR;EACA;EACA;EACA;;EAEA;;EAEA;EACA,aAAa;EACb,cAAc;EACd;;EAEA;;EAEA;;EAEA;EACA;;UAGQ;EACR;EACA;;EAEA,YAAY;;EAEZ,wBAAwB,eAAe;;KAGpC,oBAAoB,kCACtB,KAAK,cAAc;KAGV,oBAAoB,eAE9B,yBAAyB;;;UC3DV;EACf;EACA;;;;;;UAOe,cAAc,uBAAuB;GACnD,QAAQ;EACT,MAAM,QAAQ,QAAQ;;iBASR,oBACd,mBACA,gBAAgB,qBAChB,gBAAgB,eAChB,oBAAoB,oBACnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-CtkuoXP-.d.ts","names":[],"sources":["../src/Animus.ts","../src/asset.ts","../src/transforms/createTransform.ts","../src/SystemBuilder.ts","../src/scales/createScale.ts","../src/declarations.ts","../src/theme/property-records.ts","../src/theme/createTheme.ts","../src/theme/serializeTokens.ts","../src/theme/types.ts","../src/transforms/border.ts","../src/transforms/grid.ts","../src/transforms/size.ts"],"mappings":";;;;;;cAkCa,cACX,qBAAqB,eAAe,aACpC,sBAAsB,sBAAsB,kBAC5C,mBAAmB,SA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