@animus-ui/system 0.1.20 → 0.1.21
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/appearance/controller.d.ts +35 -0
- package/dist/appearance/controller.d.ts.map +1 -0
- package/dist/appearance/controller.js +69 -0
- package/dist/appearance/index.d.ts +2 -7
- package/dist/appearance/react.d.ts +10 -0
- package/dist/appearance/react.d.ts.map +1 -0
- package/dist/appearance/react.js +12 -0
- package/dist/appearance/svelte.d.ts +12 -0
- package/dist/appearance/svelte.d.ts.map +1 -0
- package/dist/appearance/svelte.js +14 -0
- package/dist/bootstrap/index.d.ts +24 -1
- package/dist/bootstrap/index.d.ts.map +1 -1
- package/dist/bootstrap/index.js +10 -2
- package/dist/class-resolver.d.ts +2 -6
- package/dist/class-resolver.js +1 -1
- package/dist/component-BLE0PgG8.d.ts +644 -0
- package/dist/component-BLE0PgG8.d.ts.map +1 -0
- package/dist/compose-CC_dzfx5.d.ts +15 -0
- package/dist/compose-CC_dzfx5.d.ts.map +1 -0
- package/dist/compose.d.ts +2 -12
- package/dist/composeWithContext.d.ts +9 -7
- package/dist/composeWithContext.d.ts.map +1 -1
- package/dist/createClassResolver-Do1nmvkf.d.ts +71 -0
- package/dist/createClassResolver-Do1nmvkf.d.ts.map +1 -0
- package/dist/{createClassResolver-DPLExqGy.js → createClassResolver-Dq6HCuqV.js} +23 -54
- package/dist/{createComposedFamily-C6CLAsMx.js → createComposedFamily-BAVEgGC5.js} +56 -10
- package/dist/createComposedFamily-yKBydh5x.d.ts +21 -0
- package/dist/createComposedFamily-yKBydh5x.d.ts.map +1 -0
- package/dist/groups/index.d.ts +702 -699
- package/dist/groups/index.d.ts.map +1 -1
- package/dist/index-BjJkQo64.d.ts +10 -0
- package/dist/index-BjJkQo64.d.ts.map +1 -0
- package/dist/index-NCIIKb9k.d.ts +670 -0
- package/dist/index-NCIIKb9k.d.ts.map +1 -0
- package/dist/index.d.ts +6 -26
- package/dist/index.js +140 -40
- package/dist/runtime-entry.d.ts +3 -5
- package/dist/runtime-entry.js +2 -2
- package/package.json +15 -3
- package/dist/Animus.d.ts +0 -81
- package/dist/Animus.d.ts.map +0 -1
- package/dist/AnimusExtended.d.ts +0 -82
- package/dist/AnimusExtended.d.ts.map +0 -1
- package/dist/SystemBuilder.d.ts +0 -305
- package/dist/SystemBuilder.d.ts.map +0 -1
- package/dist/appearance/index.d.ts.map +0 -1
- package/dist/asset.d.ts +0 -16
- package/dist/asset.d.ts.map +0 -1
- package/dist/bootstrap/createAppearanceBootstrap.d.ts +0 -14
- package/dist/bootstrap/createAppearanceBootstrap.d.ts.map +0 -1
- package/dist/class-resolver.d.ts.map +0 -1
- package/dist/compose.d.ts.map +0 -1
- package/dist/conditions.d.ts +0 -94
- package/dist/conditions.d.ts.map +0 -1
- package/dist/declarations.d.ts +0 -38
- package/dist/declarations.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/keyframes.d.ts +0 -24
- package/dist/keyframes.d.ts.map +0 -1
- package/dist/runtime/assert-root-slot.d.ts +0 -6
- package/dist/runtime/assert-root-slot.d.ts.map +0 -1
- package/dist/runtime/createClassResolver.d.ts +0 -11
- package/dist/runtime/createClassResolver.d.ts.map +0 -1
- package/dist/runtime/createComposedFamily.d.ts +0 -11
- package/dist/runtime/createComposedFamily.d.ts.map +0 -1
- package/dist/runtime/index.d.ts +0 -14
- package/dist/runtime/index.d.ts.map +0 -1
- package/dist/runtime/is-dev.d.ts +0 -6
- package/dist/runtime/is-dev.d.ts.map +0 -1
- package/dist/runtime/resolveClasses.d.ts +0 -83
- package/dist/runtime/resolveClasses.d.ts.map +0 -1
- package/dist/runtime/witness.d.ts +0 -10
- package/dist/runtime/witness.d.ts.map +0 -1
- package/dist/runtime-entry.d.ts.map +0 -1
- package/dist/scales/createScale.d.ts +0 -7
- package/dist/scales/createScale.d.ts.map +0 -1
- package/dist/selectors.d.ts +0 -27
- package/dist/selectors.d.ts.map +0 -1
- package/dist/theme/createTheme.d.ts +0 -170
- package/dist/theme/createTheme.d.ts.map +0 -1
- package/dist/theme/flattenScale.d.ts +0 -15
- package/dist/theme/flattenScale.d.ts.map +0 -1
- package/dist/theme/index.d.ts +0 -5
- package/dist/theme/index.d.ts.map +0 -1
- package/dist/theme/property-records.d.ts +0 -79
- package/dist/theme/property-records.d.ts.map +0 -1
- package/dist/theme/resolveReferences.d.ts +0 -27
- package/dist/theme/resolveReferences.d.ts.map +0 -1
- package/dist/theme/serializeTokens.d.ts +0 -5
- package/dist/theme/serializeTokens.d.ts.map +0 -1
- package/dist/theme/types.d.ts +0 -20
- package/dist/theme/types.d.ts.map +0 -1
- package/dist/theme/utils.d.ts +0 -11
- package/dist/theme/utils.d.ts.map +0 -1
- package/dist/transforms/border.d.ts +0 -3
- package/dist/transforms/border.d.ts.map +0 -1
- package/dist/transforms/createTransform.d.ts +0 -24
- package/dist/transforms/createTransform.d.ts.map +0 -1
- package/dist/transforms/grid.d.ts +0 -5
- package/dist/transforms/grid.d.ts.map +0 -1
- package/dist/transforms/index.d.ts +0 -5
- package/dist/transforms/index.d.ts.map +0 -1
- package/dist/transforms/size.d.ts +0 -5
- package/dist/transforms/size.d.ts.map +0 -1
- package/dist/types/component.d.ts +0 -100
- package/dist/types/component.d.ts.map +0 -1
- package/dist/types/config.d.ts +0 -149
- package/dist/types/config.d.ts.map +0 -1
- package/dist/types/properties.d.ts +0 -17
- package/dist/types/properties.d.ts.map +0 -1
- package/dist/types/props.d.ts +0 -19
- package/dist/types/props.d.ts.map +0 -1
- package/dist/types/scales.d.ts +0 -3
- package/dist/types/scales.d.ts.map +0 -1
- package/dist/types/shared.d.ts +0 -4
- package/dist/types/shared.d.ts.map +0 -1
- package/dist/types/theme.d.ts +0 -111
- package/dist/types/theme.d.ts.map +0 -1
- package/dist/types/utils.d.ts +0 -5
- package/dist/types/utils.d.ts.map +0 -1
- package/dist/utils/deepMerge.d.ts +0 -2
- package/dist/utils/deepMerge.d.ts.map +0 -1
package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ComponentType, JSX } from 'react';
|
|
2
|
-
import { type ClassResolver } from './runtime/createClassResolver';
|
|
3
|
-
import { AbstractParser, CompoundEntry, CSSPropMap, CSSProps, CustomPropConfig, DeclarationProp, SystemProp, SystemProps, ThemedCSSPropMap, ThemedCSSProps, VariantConfig } from './types/config';
|
|
4
|
-
import { AbstractProps } from './types/props';
|
|
5
|
-
import type { AnimusComponent, AnimusWrappedComponent } from './types/component';
|
|
6
|
-
/**
|
|
7
|
-
* The inherited custom props without those `Own` redeclares, then `Own`.
|
|
8
|
-
* Key remapping keeps the known keys beside the extension's index signature,
|
|
9
|
-
* which `Omit` would collapse.
|
|
10
|
-
*/
|
|
11
|
-
type Redeclared<Inherited, Own> = {
|
|
12
|
-
[K in keyof Inherited as K extends keyof Own ? never : K]: Inherited[K];
|
|
13
|
-
} & Own;
|
|
14
|
-
export declare class AnimusExtendedWithAll<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>> {
|
|
15
|
-
propRegistry: PropRegistry;
|
|
16
|
-
groupRegistry: GroupRegistry;
|
|
17
|
-
baseStyles: BaseStyles;
|
|
18
|
-
statesConfig: States;
|
|
19
|
-
variants: Variants;
|
|
20
|
-
activeGroups: ActiveGroups;
|
|
21
|
-
custom: CustomProps;
|
|
22
|
-
compounds: CompoundEntry[];
|
|
23
|
-
constructor(props: PropRegistry, groups: GroupRegistry, base: BaseStyles, variants: Variants, states: States, activeGroups: ActiveGroups, custom: CustomProps, compounds?: CompoundEntry[]);
|
|
24
|
-
protected extend(): AnimusExtended<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
25
|
-
asElement<El extends keyof JSX.IntrinsicElements>(component: El): AnimusComponent<El, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
26
|
-
asComponent<C extends ComponentType<any>>(AsComponent: C): AnimusWrappedComponent<C, PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
27
|
-
asClass(): ClassResolver;
|
|
28
|
-
_buildComponentConfig(): {
|
|
29
|
-
variants: Record<string, {
|
|
30
|
-
options: string[];
|
|
31
|
-
default?: string;
|
|
32
|
-
}> | undefined;
|
|
33
|
-
states: string[] | undefined;
|
|
34
|
-
systemPropNames: string[];
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
declare class AnimusExtendedWithSystem<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 AnimusExtendedWithAll<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps> {
|
|
38
|
-
props<NewCustomProps extends Record<string, CustomPropConfig | DeclarationProp>>(config: NewCustomProps): AnimusExtendedWithAll<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, Redeclared<CustomProps, NewCustomProps>>;
|
|
39
|
-
}
|
|
40
|
-
declare class AnimusExtendedWithStates<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 AnimusExtendedWithSystem<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps> {
|
|
41
|
-
system<PickedKeys extends keyof GroupRegistry | Extract<keyof PropRegistry, string>>(config: Record<PickedKeys, true>): AnimusExtendedWithSystem<PropRegistry, GroupRegistry, BaseStyles, Variants, States, Record<PickedKeys, true> & ActiveGroups, CustomProps>;
|
|
42
|
-
}
|
|
43
|
-
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> {
|
|
44
|
-
compound<Props extends AbstractProps>(condition: {
|
|
45
|
-
[K in keyof Variants]?: keyof Variants[K]['variants'] | ReadonlyArray<keyof Variants[K]['variants']>;
|
|
46
|
-
}, styles: ThemedCSSProps<Props, PropRegistry>): AnimusExtendedWithCompounds<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
47
|
-
states<Props extends AbstractProps>(config: ThemedCSSPropMap<Props, PropRegistry>): AnimusExtendedWithStates<PropRegistry, GroupRegistry, BaseStyles, Variants, ThemedCSSPropMap<Props, PropRegistry> & States, ActiveGroups, CustomProps>;
|
|
48
|
-
}
|
|
49
|
-
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> {
|
|
50
|
-
compound<Props extends AbstractProps>(condition: {
|
|
51
|
-
[K in keyof Variants]?: keyof Variants[K]['variants'] | ReadonlyArray<keyof Variants[K]['variants']>;
|
|
52
|
-
}, styles: ThemedCSSProps<Props, PropRegistry>): AnimusExtendedWithCompounds<PropRegistry, GroupRegistry, BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
53
|
-
variant<Keys extends keyof Props, Base extends AbstractProps, Props extends Record<Keys, AbstractProps>, PropKey extends Readonly<string> = 'variant'>(options: {
|
|
54
|
-
prop?: PropKey;
|
|
55
|
-
defaultVariant?: Extract<keyof Props, string>;
|
|
56
|
-
base?: ThemedCSSProps<Base, PropRegistry>;
|
|
57
|
-
variants: ThemedCSSPropMap<Props, PropRegistry>;
|
|
58
|
-
}): AnimusExtendedWithVariants<PropRegistry, GroupRegistry, BaseStyles, Variants & Record<PropKey, {
|
|
59
|
-
prop?: PropKey;
|
|
60
|
-
defaultVariant?: Extract<keyof Props, string>;
|
|
61
|
-
base?: ThemedCSSProps<Base, PropRegistry>;
|
|
62
|
-
variants: ThemedCSSPropMap<Props, PropRegistry>;
|
|
63
|
-
}>, States, ActiveGroups, CustomProps>;
|
|
64
|
-
}
|
|
65
|
-
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> {
|
|
66
|
-
variant<Keys extends keyof Props, Base extends AbstractProps, Props extends Record<Keys, AbstractProps>, PropKey extends Readonly<string> = 'variant'>(options: {
|
|
67
|
-
prop?: PropKey;
|
|
68
|
-
defaultVariant?: Extract<keyof Props, string>;
|
|
69
|
-
base?: ThemedCSSProps<Base, PropRegistry>;
|
|
70
|
-
variants: ThemedCSSPropMap<Props, PropRegistry>;
|
|
71
|
-
}): AnimusExtendedWithVariants<PropRegistry, GroupRegistry, BaseStyles, Variants & Record<PropKey, {
|
|
72
|
-
prop?: PropKey;
|
|
73
|
-
defaultVariant?: Extract<keyof Props, string>;
|
|
74
|
-
base?: ThemedCSSProps<Base, PropRegistry>;
|
|
75
|
-
variants: ThemedCSSPropMap<Props, PropRegistry>;
|
|
76
|
-
}>, States, ActiveGroups, CustomProps>;
|
|
77
|
-
}
|
|
78
|
-
export 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> {
|
|
79
|
-
styles<Props extends AbstractProps>(config: ThemedCSSProps<Props, PropRegistry>): AnimusExtendedWithBase<PropRegistry, GroupRegistry, ThemedCSSProps<Props, PropRegistry> & BaseStyles, Variants, States, ActiveGroups, CustomProps>;
|
|
80
|
-
}
|
|
81
|
-
export {};
|
|
82
|
-
//# sourceMappingURL=AnimusExtended.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AnimusExtended.d.ts","sourceRoot":"","sources":["../src/AnimusExtended.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGhD,OAAO,EACL,KAAK,aAAa,EAEnB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,cAAc,EACd,aAAa,EACb,UAAU,EACV,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,aAAa,EACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAG9C,OAAO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Y,EACZ,aAAa,EACb,UAAU,EACV,QAAQ,EACR,MAAM,EACN,YAAY,EACZ,WAAW,CACZ;IACC,MAAM,CAAC,KAAK,SAAS,aAAa,EAChC,MAAM,EAAE,cAAc,CAAC,KAAK,EAAE,YAAY,CAAC,sJAoB5C;CACF"}
|
package/dist/SystemBuilder.d.ts
DELETED
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
import { Animus } from './Animus';
|
|
2
|
-
import { type AssetRef } from './asset.js';
|
|
3
|
-
import { type AtRuleValue, type ConditionAliasMap, type NarrowedAliases, type RegistryBrand, type ReservedByConditionRegistry, type ReservedBySelectorRegistry } from './conditions';
|
|
4
|
-
import { type KeyframeFrameMap, type Keyframes } from './keyframes';
|
|
5
|
-
import { type SelectorAliasMap } from './selectors';
|
|
6
|
-
import { NamedTransform } from './transforms/createTransform';
|
|
7
|
-
import { type BuiltInConditionAlias, type BuiltInSelectorAlias, SystemProp, ThemedCSSProps } from './types/config';
|
|
8
|
-
import { AbstractProps } from './types/props';
|
|
9
|
-
export type GlobalStyleMap = Record<string, Record<string, any>>;
|
|
10
|
-
export interface FontFaceSrc {
|
|
11
|
-
/**
|
|
12
|
-
* A literal string is emitted byte-exact; an `AssetRef` emits its
|
|
13
|
-
* placeholder string, which the host plugin substitutes after extraction.
|
|
14
|
-
*/
|
|
15
|
-
url: string | AssetRef;
|
|
16
|
-
/** Format hint (`woff2`, `woff`, …), rendered as `format('…')`. */
|
|
17
|
-
format?: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* `family` may use a font-scale token reference (`{fonts.body}`); the other
|
|
21
|
-
* descriptors take CSS literals only.
|
|
22
|
-
*/
|
|
23
|
-
export interface FontFace {
|
|
24
|
-
family: string;
|
|
25
|
-
src: FontFaceSrc[];
|
|
26
|
-
weight?: string;
|
|
27
|
-
style?: string;
|
|
28
|
-
display?: string;
|
|
29
|
-
unicodeRange?: string;
|
|
30
|
-
stretch?: string;
|
|
31
|
-
}
|
|
32
|
-
export interface GlobalStyleBlock {
|
|
33
|
-
__brand: 'GlobalStyleBlock';
|
|
34
|
-
styles: GlobalStyleMap;
|
|
35
|
-
/** Rendered ahead of the block's selector rules in `@layer anm-global`. */
|
|
36
|
-
fontFaces?: FontFace[];
|
|
37
|
-
}
|
|
38
|
-
export type GlobalStylesFactory<PropReg extends Record<string, SystemProp> = Record<string, SystemProp>> = <Map extends Record<string, AbstractProps>>(styles: {
|
|
39
|
-
readonly [K in keyof Map]: ThemedCSSProps<Map[K], PropReg>;
|
|
40
|
-
}, options?: {
|
|
41
|
-
fontFaces?: readonly FontFace[];
|
|
42
|
-
}) => GlobalStyleBlock;
|
|
43
|
-
export type CreateKeyframesFactory<PropReg extends Record<string, SystemProp> = Record<string, SystemProp>> = <Frames extends Record<string, Record<string, AbstractProps>>>(frames: {
|
|
44
|
-
readonly [N in keyof Frames]: {
|
|
45
|
-
readonly [S in keyof Frames[N]]: ThemedCSSProps<Frames[N][S], PropReg>;
|
|
46
|
-
};
|
|
47
|
-
}) => Keyframes<{
|
|
48
|
-
readonly [N in keyof Frames]: KeyframeFrameMap;
|
|
49
|
-
}>;
|
|
50
|
-
type IncludableSystem = {
|
|
51
|
-
toConfig(): SerializedConfig;
|
|
52
|
-
/**
|
|
53
|
-
* Optional only so systems built by an older @animus-ui/system stay
|
|
54
|
-
* structurally acceptable; `extend()` throws when it is absent.
|
|
55
|
-
*/
|
|
56
|
-
getRegistrySnapshot?(): RegistrySnapshot;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* Frozen at `build()`: `toConfig()` serializes and `extend()` merges from
|
|
60
|
-
* it, so post-build mutation of the public registries reaches neither.
|
|
61
|
-
*/
|
|
62
|
-
export interface RegistrySnapshot {
|
|
63
|
-
props: Record<string, SystemProp>;
|
|
64
|
-
groups: Record<string, readonly string[]>;
|
|
65
|
-
selectors: SelectorAliasMap;
|
|
66
|
-
conditions: ConditionAliasMap;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* The shape `registerKeyframes` accepts. The brand is structural: a
|
|
70
|
-
* hand-rolled object carrying it is admitted; provenance is not checked.
|
|
71
|
-
*/
|
|
72
|
-
export interface RegisterableKeyframes {
|
|
73
|
-
readonly __brand: 'Keyframes';
|
|
74
|
-
readonly __frames: object;
|
|
75
|
-
}
|
|
76
|
-
export interface RegisterableGlobalStyles {
|
|
77
|
-
readonly __brand: 'GlobalStyleBlock';
|
|
78
|
-
readonly styles: object;
|
|
79
|
-
}
|
|
80
|
-
export type KeyframesFrameData = Record<string, {
|
|
81
|
-
readonly name: string;
|
|
82
|
-
readonly frames: KeyframeFrameMap;
|
|
83
|
-
}>;
|
|
84
|
-
export interface VocabularyKeyframesEntry {
|
|
85
|
-
readonly name: string;
|
|
86
|
-
readonly frames: KeyframesFrameData;
|
|
87
|
-
}
|
|
88
|
-
export interface VocabularyGlobalStyleEntry {
|
|
89
|
-
readonly name: string;
|
|
90
|
-
readonly styles: GlobalStyleMap;
|
|
91
|
-
readonly fontFaces?: readonly FontFace[];
|
|
92
|
-
}
|
|
93
|
-
export interface VocabularyCollisionEntry {
|
|
94
|
-
/** Stable machine code — the record, not the console, is the witness
|
|
95
|
-
* channel (the loader's evaluation host shims `console` to a no-op). */
|
|
96
|
-
readonly code: 'animus.vocabulary.collision';
|
|
97
|
-
readonly name: string;
|
|
98
|
-
readonly winner: string;
|
|
99
|
-
readonly loser: string;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Names a sealed source's registered vocabulary that `from()` / `includes:`
|
|
103
|
-
* did not deliver — those verbs merge no registries; `.extend()` does.
|
|
104
|
-
*/
|
|
105
|
-
export interface VocabularyLegacyVerbEntry {
|
|
106
|
-
readonly code: 'animus.vocabulary.legacy-verb';
|
|
107
|
-
readonly verb: 'from' | 'includes';
|
|
108
|
-
/** Positional label (`includes source #1`) — a source has no knowable
|
|
109
|
-
* export name at this seam. */
|
|
110
|
-
readonly source: string;
|
|
111
|
-
readonly names: readonly string[];
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* The registration record a sealed system carries, in declaration order.
|
|
115
|
-
* The loader reads registered collections exclusively from here.
|
|
116
|
-
*/
|
|
117
|
-
export interface VocabularyRecord {
|
|
118
|
-
readonly version: 1;
|
|
119
|
-
readonly keyframes: readonly VocabularyKeyframesEntry[];
|
|
120
|
-
readonly globalStyles: readonly VocabularyGlobalStyleEntry[];
|
|
121
|
-
readonly collisions: readonly VocabularyCollisionEntry[];
|
|
122
|
-
readonly legacyVerbs: readonly VocabularyLegacyVerbEntry[];
|
|
123
|
-
}
|
|
124
|
-
/** ONE name-space across both kinds: a global-style block and a keyframes
|
|
125
|
-
* collection cannot share a registered name. */
|
|
126
|
-
type VocabularyEntryState = {
|
|
127
|
-
kind: 'keyframes';
|
|
128
|
-
name: string;
|
|
129
|
-
frames: KeyframesFrameData;
|
|
130
|
-
origin: string;
|
|
131
|
-
} | {
|
|
132
|
-
kind: 'globalStyles';
|
|
133
|
-
name: string;
|
|
134
|
-
styles: GlobalStyleMap;
|
|
135
|
-
fontFaces?: readonly FontFace[];
|
|
136
|
-
origin: string;
|
|
137
|
-
};
|
|
138
|
-
declare const VOCABULARY_COLLISION_BRAND: unique symbol;
|
|
139
|
-
/**
|
|
140
|
-
* Impossible-to-satisfy marker so a colliding registration site reports the
|
|
141
|
-
* offending vocabulary name instead of a bare structural mismatch.
|
|
142
|
-
*/
|
|
143
|
-
export interface VocabularyNameCollision<Name extends string> {
|
|
144
|
-
readonly [VOCABULARY_COLLISION_BRAND]: `Vocabulary name "${Name}" is already registered on this system`;
|
|
145
|
-
}
|
|
146
|
-
declare const VOCABULARY_INDEX_SIGNATURE: unique symbol;
|
|
147
|
-
/**
|
|
148
|
-
* Rejects index-signature maps: they bypass the collision mapping
|
|
149
|
-
* (`Extract<string, Vocab>` is `never`) and widen the axis to `string`.
|
|
150
|
-
*/
|
|
151
|
-
export interface VocabularyIndexSignatureRejected {
|
|
152
|
-
readonly [VOCABULARY_INDEX_SIGNATURE]: 'vocabulary registration requires literal keys — an index-signature map cannot prove its names';
|
|
153
|
-
}
|
|
154
|
-
type LiteralKeyMap<M> = string extends keyof M ? VocabularyIndexSignatureRejected : unknown;
|
|
155
|
-
declare const VOCABULARY_BRAND: unique symbol;
|
|
156
|
-
/**
|
|
157
|
-
* What `seal()` returns. The registered names ride as phantom type state so
|
|
158
|
-
* `.extend()` can make a collision a compile error in a consumer's chain.
|
|
159
|
-
*/
|
|
160
|
-
export type SealedSystemInstance<PropReg extends Record<string, SystemProp>, GroupReg extends Record<string, (keyof PropReg)[]>, Conds extends string = never, Sels extends string = never, Vocab extends string = never> = SystemInstance<PropReg, GroupReg, Conds, Sels> & {
|
|
161
|
-
getVocabularyRecord(): VocabularyRecord;
|
|
162
|
-
readonly [VOCABULARY_BRAND]?: Vocab;
|
|
163
|
-
};
|
|
164
|
-
export type VocabularyOf<S> = S extends {
|
|
165
|
-
readonly [VOCABULARY_BRAND]?: infer V;
|
|
166
|
-
} ? Extract<V, string> : never;
|
|
167
|
-
/**
|
|
168
|
-
* The `build()` return. Registration is linear — chain the returned bundle;
|
|
169
|
-
* one `seal()` per bundle, and later registering or re-sealing throws.
|
|
170
|
-
*/
|
|
171
|
-
export interface SystemBundle<PropReg extends Record<string, SystemProp>, GroupReg extends Record<string, (keyof PropReg)[]>, Conds extends string = never, Sels extends string = never, Vocab extends string = never> {
|
|
172
|
-
system: SystemInstance<PropReg, GroupReg, Conds, Sels>;
|
|
173
|
-
createGlobalStyles: GlobalStylesFactory<PropReg>;
|
|
174
|
-
createKeyframes: CreateKeyframesFactory<PropReg>;
|
|
175
|
-
/**
|
|
176
|
-
* The registration key must equal the collection's module-scope export
|
|
177
|
-
* name — references resolve by export name. Registration is linear.
|
|
178
|
-
*/
|
|
179
|
-
registerKeyframes<M extends Record<string, RegisterableKeyframes>>(map: M & LiteralKeyMap<M> & {
|
|
180
|
-
[K in Extract<keyof M, Vocab>]: VocabularyNameCollision<K & string>;
|
|
181
|
-
}): SystemBundle<PropReg, GroupReg, Conds, Sels, Vocab | (keyof M & string)>;
|
|
182
|
-
/**
|
|
183
|
-
* Keys equal the block's module-scope export name. Blocks and keyframes
|
|
184
|
-
* collections share ONE vocabulary name-space.
|
|
185
|
-
*/
|
|
186
|
-
registerGlobalStyles<M extends Record<string, RegisterableGlobalStyles>>(map: M & LiteralKeyMap<M> & {
|
|
187
|
-
[K in Extract<keyof M, Vocab>]: VocabularyNameCollision<K & string>;
|
|
188
|
-
}): SystemBundle<PropReg, GroupReg, Conds, Sels, Vocab | (keyof M & string)>;
|
|
189
|
-
seal(): SealedSystemInstance<PropReg, GroupReg, Conds, Sels, Vocab>;
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* Publishable bundle type whose vocabulary axis is read off the sealed
|
|
193
|
-
* system; a hand-written `LibraryBundle<'…'>` axis is unchecked.
|
|
194
|
-
*/
|
|
195
|
-
export type LibraryBundleFor<S> = LibraryBundle<VocabularyOf<S>>;
|
|
196
|
-
/**
|
|
197
|
-
* One export for both builders: `createSystem().extend()` takes the system
|
|
198
|
-
* half, `createTheme().extend()` the theme half (`tokens` is accepted too).
|
|
199
|
-
*/
|
|
200
|
-
export interface LibraryBundle<Vocab extends string = never> {
|
|
201
|
-
system: IncludableSystem;
|
|
202
|
-
theme?: unknown;
|
|
203
|
-
tokens?: unknown;
|
|
204
|
-
/** Phantom vocabulary axis — never present at runtime. */
|
|
205
|
-
readonly __vocabulary?: Vocab;
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* A built system also carries a `.system()` chain method, so only
|
|
209
|
-
* `system.toConfig` being callable discriminates a bundle from an instance.
|
|
210
|
-
* The QuickJS capture script in the Rust system-loader reimplements the same
|
|
211
|
-
* discriminator — it cannot import this file, so change both together.
|
|
212
|
-
*/
|
|
213
|
-
export declare function isLibraryBundle(value: unknown): value is LibraryBundle;
|
|
214
|
-
export interface CreateSystemConfig {
|
|
215
|
-
/**
|
|
216
|
-
* @deprecated Use `createSystem().extend(source)`, which merges the
|
|
217
|
-
* source's registries. `includes` adds discovery membership only.
|
|
218
|
-
*/
|
|
219
|
-
includes?: readonly IncludableSystem[];
|
|
220
|
-
}
|
|
221
|
-
declare const STAGE_BRAND: unique symbol;
|
|
222
|
-
/**
|
|
223
|
-
* Phantom type-state: `extend()` / `from()` are callable only in
|
|
224
|
-
* `'inherit'`, and every `add*` call advances the builder to `'extend'`.
|
|
225
|
-
*/
|
|
226
|
-
export type SystemBuilderStage = 'inherit' | 'extend';
|
|
227
|
-
export declare class SystemBuilder<PropReg extends Record<string, SystemProp> = {}, GroupReg extends Record<string, (keyof PropReg)[]> = {}, Conds extends string = never, Sels extends string = never, Stage extends SystemBuilderStage = 'inherit', Vocab extends string = never> {
|
|
228
|
-
#private;
|
|
229
|
-
readonly [STAGE_BRAND]?: Stage;
|
|
230
|
-
constructor(propRegistry?: PropReg, groupRegistry?: GroupReg, selectorRegistry?: SelectorAliasMap, includesRegistry?: readonly IncludableSystem[], conditionRegistry?: ConditionAliasMap, extendProvenance?: ReadonlyMap<string, number>, extendCount?: number, vocabularyRegistry?: readonly VocabularyEntryState[], vocabularyCollisions?: readonly VocabularyCollisionEntry[], legacyVerbWitnesses?: readonly VocabularyLegacyVerbEntry[]);
|
|
231
|
-
/**
|
|
232
|
-
* @deprecated Use `extend(source)`, which merges the source's registries.
|
|
233
|
-
* `from()` admits types and discovery membership only — no merge.
|
|
234
|
-
*/
|
|
235
|
-
from<SrcProps extends Record<string, SystemProp>, SrcGroups extends Record<string, (keyof SrcProps)[]>, SrcConds extends string = never, SrcSels extends string = never>(this: SystemBuilder<PropReg, GroupReg, Conds, Sels, 'inherit', Vocab>, source: SystemInstance<SrcProps, SrcGroups, SrcConds, SrcSels> | {
|
|
236
|
-
system: SystemInstance<SrcProps, SrcGroups, SrcConds, SrcSels>;
|
|
237
|
-
theme?: unknown;
|
|
238
|
-
tokens?: unknown;
|
|
239
|
-
}): SystemBuilder<PropReg & SrcProps, GroupReg & SrcGroups, Conds | SrcConds, Sels | SrcSels, 'inherit', Vocab>;
|
|
240
|
-
/**
|
|
241
|
-
* @deprecated Use `extend(source)`. A `LibraryBundle` annotation has
|
|
242
|
-
* already erased the system half's generics — no type surface to admit.
|
|
243
|
-
*/
|
|
244
|
-
from(this: SystemBuilder<PropReg, GroupReg, Conds, Sels, 'inherit', Vocab>, source: LibraryBundle<string>): SystemBuilder<PropReg, GroupReg, Conds, Sels, 'inherit', Vocab>;
|
|
245
|
-
/**
|
|
246
|
-
* Merges the source's prop, group, selector, and condition registries;
|
|
247
|
-
* identical entries coalesce, divergent ones throw naming both origins.
|
|
248
|
-
*/
|
|
249
|
-
extend<SrcProps extends Record<string, SystemProp>, SrcGroups extends Record<string, (keyof SrcProps)[]>, SrcConds extends string = never, SrcSels extends string = never, SrcVocab extends string = never>(this: SystemBuilder<PropReg, GroupReg, Conds, Sels, 'inherit', Vocab>, source: (SystemInstance<SrcProps, SrcGroups, SrcConds, SrcSels> & {
|
|
250
|
-
readonly [VOCABULARY_BRAND]?: SrcVocab;
|
|
251
|
-
}) | {
|
|
252
|
-
system: SystemInstance<SrcProps, SrcGroups, SrcConds, SrcSels> & {
|
|
253
|
-
readonly [VOCABULARY_BRAND]?: SrcVocab;
|
|
254
|
-
};
|
|
255
|
-
theme?: unknown;
|
|
256
|
-
tokens?: unknown;
|
|
257
|
-
}): SystemBuilder<PropReg & SrcProps, GroupReg & SrcGroups, Conds | SrcConds, Sels | SrcSels, 'inherit', Vocab | SrcVocab>;
|
|
258
|
-
/**
|
|
259
|
-
* A `LibraryBundle` annotation has erased the system half's generics: the
|
|
260
|
-
* runtime merge is identical, but no source types are admitted.
|
|
261
|
-
*/
|
|
262
|
-
extend<SrcVocab extends string = never>(this: SystemBuilder<PropReg, GroupReg, Conds, Sels, 'inherit', Vocab>, source: LibraryBundle<SrcVocab>): SystemBuilder<PropReg, GroupReg, Conds, Sels, 'inherit', Vocab | SrcVocab>;
|
|
263
|
-
/**
|
|
264
|
-
* Registers `_` aliases → `&`-relative selectors. The cross-registry clash
|
|
265
|
-
* is checked in VALUE position: `Exclude` on a `_${string}` key is a no-op.
|
|
266
|
-
*/
|
|
267
|
-
addSelectors<S extends Record<`_${string}`, string>>(selectors: S & {
|
|
268
|
-
[K in keyof S]: K extends BuiltInConditionAlias | NarrowedAliases<Conds> ? ReservedByConditionRegistry<K & string> : S[K];
|
|
269
|
-
}): SystemBuilder<PropReg, GroupReg, Conds, Sels | NarrowedAliases<Extract<keyof S, string>>, 'extend', Vocab>;
|
|
270
|
-
/**
|
|
271
|
-
* Registers `_` aliases → at-rule strings; user aliases override built-ins
|
|
272
|
-
* of the same name. A selector-owned key maps to the branded rejection.
|
|
273
|
-
*/
|
|
274
|
-
addConditions<C extends Record<`_${string}`, AtRuleValue>>(conditions: C & {
|
|
275
|
-
[K in keyof C]: K extends BuiltInSelectorAlias | NarrowedAliases<Sels> ? ReservedBySelectorRegistry<K & string> : C[K];
|
|
276
|
-
}): SystemBuilder<PropReg, GroupReg, Conds | NarrowedAliases<Extract<keyof C, string>>, Sels, 'extend', Vocab>;
|
|
277
|
-
addGroup<Name extends string, Conf extends Record<string, SystemProp>>(name: Name extends keyof PropReg ? never : Name, authored: Conf): SystemBuilder<PropReg & Conf, GroupReg & Record<Name, (keyof Conf)[]>, Conds, Sels, 'extend', Vocab>;
|
|
278
|
-
addProps<Conf extends Record<string, SystemProp> & Partial<Record<Extract<keyof GroupReg, string>, never>>>(authored: Conf): SystemBuilder<PropReg & Conf, GroupReg, Conds, Sels, 'extend', Vocab>;
|
|
279
|
-
build(): SystemBundle<PropReg, GroupReg, Conds, Sels, Vocab>;
|
|
280
|
-
}
|
|
281
|
-
export type SystemInstance<PropReg extends Record<string, SystemProp>, GroupReg extends Record<string, (keyof PropReg)[]>, Conds extends string = never, Sels extends string = never> = Animus<PropReg, GroupReg> & {
|
|
282
|
-
toConfig(): SerializedConfig;
|
|
283
|
-
/**
|
|
284
|
-
* Frozen registry state captured at `build()` — what `extend()` merges
|
|
285
|
-
* from. Optional only for systems built by an older @animus-ui/system.
|
|
286
|
-
*/
|
|
287
|
-
getRegistrySnapshot?(): RegistrySnapshot;
|
|
288
|
-
} & RegistryBrand<Conds, Sels>;
|
|
289
|
-
export interface SerializedConfig {
|
|
290
|
-
propConfig: string;
|
|
291
|
-
groupRegistry: string;
|
|
292
|
-
/** Bound callables by definition id. */
|
|
293
|
-
transforms: Record<string, NamedTransform>;
|
|
294
|
-
/**
|
|
295
|
-
* `{ definitionId: sourceText }` — the only channel by which transforms
|
|
296
|
-
* shipped inside a package reach the build-time evaluator.
|
|
297
|
-
*/
|
|
298
|
-
transformSources: string;
|
|
299
|
-
selectorAliases: string;
|
|
300
|
-
/** Condition alias map JSON: `alias → { value, order, kind }`. */
|
|
301
|
-
conditionAliases: string;
|
|
302
|
-
}
|
|
303
|
-
export declare function createSystem(config?: CreateSystemConfig): SystemBuilder;
|
|
304
|
-
export {};
|
|
305
|
-
//# sourceMappingURL=SystemBuilder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SystemBuilder.d.ts","sourceRoot":"","sources":["../src/SystemBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EACL,KAAK,WAAW,EAEhB,KAAK,iBAAiB,EAEtB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,EAEhC,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,SAAS,EAEf,MAAM,aAAa,CAAC;AACrB,OAAO,EAGL,KAAK,gBAAgB,EAEtB,MAAM,aAAa,CAAC;AACrB,OAAO,EAGL,cAAc,EAEf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EAEzB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CAAC;AAE/B,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,wCAAwC;IACxC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC3C;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,kEAAkE;IAClE,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AA+JD,wBAAgB,YAAY,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,aAAa,CAmBvE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/appearance/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW,WAAW,CAAC;AAQpC,MAAM,WAAW,wBAAwB;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAkDD,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,wBAAwB,GACjC,IAAI,CASN;AAED,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,SAAS,MAAM,EAAE,EAChC,OAAO,CAAC,EAAE,wBAAwB,GACjC,MAAM,GAAG,IAAI,CA6Cf"}
|
package/dist/asset.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
declare const ASSET_REF_BRAND: unique symbol;
|
|
2
|
-
/**
|
|
3
|
-
* A plain string so it crosses the sandbox's JSON boundary untouched; the host
|
|
4
|
-
* plugin substitutes the placeholder with the bundler-resolved URL.
|
|
5
|
-
*/
|
|
6
|
-
export type AssetRef = string & {
|
|
7
|
-
readonly [ASSET_REF_BRAND]: true;
|
|
8
|
-
};
|
|
9
|
-
export declare const ASSET_PLACEHOLDER_PREFIX = "animus-asset:";
|
|
10
|
-
/**
|
|
11
|
-
* Brands the specifier only — aliases, exports maps and hashing belong to the
|
|
12
|
-
* host bundler. A literal URL string stays a valid alternative.
|
|
13
|
-
*/
|
|
14
|
-
export declare function asset(specifier: string): AssetRef;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=asset.d.ts.map
|
package/dist/asset.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../src/asset.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,eAAe,EAAE,OAAO,MAAM,CAAC;AAE7C;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,CAAC,eAAe,CAAC,EAAE,IAAI,CAAA;CAAE,CAAC;AAErE,eAAO,MAAM,wBAAwB,kBAAkB,CAAC;AAExD;;;GAGG;AACH,wBAAgB,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,CAEjD"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export interface AppearanceBootstrapTheme {
|
|
2
|
-
manifest: {
|
|
3
|
-
modes?: Record<string, unknown>;
|
|
4
|
-
};
|
|
5
|
-
}
|
|
6
|
-
export interface AppearanceBootstrapOptions {
|
|
7
|
-
storageKey?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface AppearanceBootstrapArtifact {
|
|
10
|
-
code: string;
|
|
11
|
-
cspHash: string;
|
|
12
|
-
}
|
|
13
|
-
export declare function createAppearanceBootstrap(theme: AppearanceBootstrapTheme, options?: AppearanceBootstrapOptions): AppearanceBootstrapArtifact;
|
|
14
|
-
//# sourceMappingURL=createAppearanceBootstrap.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createAppearanceBootstrap.d.ts","sourceRoot":"","sources":["../../src/bootstrap/createAppearanceBootstrap.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE;QACR,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACjC,CAAC;CACH;AAED,MAAM,WAAW,0BAA0B;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAyBD,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,wBAAwB,EAC/B,OAAO,GAAE,0BAA+B,GACvC,2BAA2B,CAuD7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-resolver.d.ts","sourceRoot":"","sources":["../src/class-resolver.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,mBAAmB,GACpB,MAAM,kCAAkC,CAAC"}
|
package/dist/compose.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,YAAY,EACb,MAAM,mBAAmB,CAAC;AAE3B;;;GAGG;AACH,wBAAgB,OAAO,CACrB,KAAK,SAAS;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,GAAG,MAAM,CAClD,MAAM,EACN,mBAAmB,CACpB,EACD,KAAK,CAAC,MAAM,SAAS,YAAY,CAAC,KAAK,CAAC,EAExC,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GACzC,cAAc,CAAC,KAAK,CAAC,CAoBvB"}
|
package/dist/conditions.d.ts
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Condition alias registry: `_`-prefixed alias keys → at-rule condition
|
|
3
|
-
* strings, plus the authoring type surface consumers augment.
|
|
4
|
-
*/
|
|
5
|
-
export type ConditionKind = 'media' | 'container' | 'supports';
|
|
6
|
-
/**
|
|
7
|
-
* Augmentable registry of registered condition alias keys. Empty keeps `_`
|
|
8
|
-
* block keys permissive; publishing either registry validates both.
|
|
9
|
-
*/
|
|
10
|
-
export interface Conditions {
|
|
11
|
-
}
|
|
12
|
-
declare const CONDS_BRAND: unique symbol;
|
|
13
|
-
declare const SELS_BRAND: unique symbol;
|
|
14
|
-
/**
|
|
15
|
-
* Type-only phantom brand on a built system, carrying the registered
|
|
16
|
-
* condition (`C`) and selector (`S`) alias keys to the augmentation site.
|
|
17
|
-
*/
|
|
18
|
-
export interface RegistryBrand<C extends string = never, S extends string = never> {
|
|
19
|
-
readonly [CONDS_BRAND]?: C;
|
|
20
|
-
readonly [SELS_BRAND]?: S;
|
|
21
|
-
}
|
|
22
|
-
export type ConditionsOf<Sys> = Sys extends RegistryBrand<infer C, string> ? C : never;
|
|
23
|
-
export type SelectorsOf<Sys> = Sys extends RegistryBrand<string, infer S> ? S : never;
|
|
24
|
-
/**
|
|
25
|
-
* Branded rejection for a `_` block key that no registry owns. Not a bare
|
|
26
|
-
* `never`: that reports a misleading "not assignable to 'undefined'".
|
|
27
|
-
*/
|
|
28
|
-
export interface UnknownConditionAlias<K extends string> {
|
|
29
|
-
readonly __unknownConditionAlias: K;
|
|
30
|
-
readonly hint: `"${K}" is not a registered condition or selector alias. Register it with .addConditions() / .addSelectors(), or use a raw "&…" selector or "@media|@container|@supports (…)" key.`;
|
|
31
|
-
}
|
|
32
|
-
export interface UnknownAtRule<K extends string> {
|
|
33
|
-
readonly __unknownAtRule: K;
|
|
34
|
-
readonly hint: `"${K}" is not a valid at-rule block key. At-rule keys must begin with "@media ", "@container ", or "@supports " followed by a parenthesized/feature tail.`;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Rejection for an `addConditions()` key the selector registry owns. Never a
|
|
38
|
-
* bare `never`: in VALUE position it drops both the check and accumulation.
|
|
39
|
-
*/
|
|
40
|
-
export interface ReservedBySelectorRegistry<K extends string> {
|
|
41
|
-
readonly __reservedBySelectorRegistry: K;
|
|
42
|
-
readonly hint: `"${K}" is already a selector alias — condition and selector alias names must be disjoint. Rename this condition alias, or redefine the selector with .addSelectors().`;
|
|
43
|
-
}
|
|
44
|
-
export interface ReservedByConditionRegistry<K extends string> {
|
|
45
|
-
readonly __reservedByConditionRegistry: K;
|
|
46
|
-
readonly hint: `"${K}" is already a condition alias — condition and selector alias names must be disjoint. Rename this selector alias, or redefine the condition with .addConditions().`;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Alias names, or `never` once the union has widened to the whole `_`
|
|
50
|
-
* pattern — a widened union would reject every legal alias downstream.
|
|
51
|
-
*/
|
|
52
|
-
export type NarrowedAliases<U extends string> = `_${string}` extends U ? never : U;
|
|
53
|
-
/**
|
|
54
|
-
* Prefix + tail only: a deep query grammar hits TS2589. The trailing space
|
|
55
|
-
* is load-bearing — it rejects prefix typos (`@medi …`) without a grammar.
|
|
56
|
-
*/
|
|
57
|
-
export type RawAtRuleKey = `@media ${string}` | `@container ${string}` | `@supports ${string}`;
|
|
58
|
-
/**
|
|
59
|
-
* No trailing space, unlike `RawAtRuleKey`: a value may open its query
|
|
60
|
-
* immediately (`@media(width>=40em)`).
|
|
61
|
-
*/
|
|
62
|
-
export type AtRuleValue = `@media${string}` | `@container${string}` | `@supports${string}`;
|
|
63
|
-
export interface ConditionAlias {
|
|
64
|
-
/** Full at-rule condition string, e.g. `@media print`. */
|
|
65
|
-
value: string;
|
|
66
|
-
/** Sort index for cascade ordering within a layer. */
|
|
67
|
-
order: number;
|
|
68
|
-
/** Condition kind, inferred from the at-rule prefix of `value`. */
|
|
69
|
-
kind: ConditionKind;
|
|
70
|
-
}
|
|
71
|
-
export type ConditionAliasMap = Record<string, ConditionAlias>;
|
|
72
|
-
/**
|
|
73
|
-
* Media-feature aliases only — color-mode aliases are selector-kind. The
|
|
74
|
-
* reserved order band (300–380) sits below the user band (500+).
|
|
75
|
-
*/
|
|
76
|
-
export declare const BUILT_IN_CONDITIONS: ConditionAliasMap;
|
|
77
|
-
/**
|
|
78
|
-
* Throws on an unsupported prefix — the runtime backstop for untyped
|
|
79
|
-
* callers, complementing `addConditions()`'s value constraint.
|
|
80
|
-
*/
|
|
81
|
-
export declare function inferConditionKind(value: string): ConditionKind;
|
|
82
|
-
/**
|
|
83
|
-
* Overrides keep the existing order; new aliases continue past the highest
|
|
84
|
-
* existing order (floor 490) so chained calls never collide on 500.
|
|
85
|
-
*/
|
|
86
|
-
export declare function mergeConditions(base: ConditionAliasMap, custom: Record<string, string>, reservedSelectorNames?: ReadonlySet<string>): ConditionAliasMap;
|
|
87
|
-
export declare function getSortedConditionKeys(map: ConditionAliasMap): string[];
|
|
88
|
-
/**
|
|
89
|
-
* Emits `alias → { value, order, kind }` in cascade order so the JSON is
|
|
90
|
-
* deterministic.
|
|
91
|
-
*/
|
|
92
|
-
export declare function serializeConditionMap(map: ConditionAliasMap): Record<string, ConditionAlias>;
|
|
93
|
-
export {};
|
|
94
|
-
//# sourceMappingURL=conditions.d.ts.map
|
package/dist/conditions.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"conditions.d.ts","sourceRoot":"","sources":["../src/conditions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,WAAW,GAAG,UAAU,CAAC;AAE/D;;;GAGG;AAEH,MAAM,WAAW,UAAU;CAAG;AAE9B,OAAO,CAAC,MAAM,WAAW,EAAE,OAAO,MAAM,CAAC;AACzC,OAAO,CAAC,MAAM,UAAU,EAAE,OAAO,MAAM,CAAC;AAExC;;;GAGG;AACH,MAAM,WAAW,aAAa,CAC5B,CAAC,SAAS,MAAM,GAAG,KAAK,EACxB,CAAC,SAAS,MAAM,GAAG,KAAK;IAExB,QAAQ,CAAC,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC;IAC3B,QAAQ,CAAC,CAAC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