@animus-ui/system 0.1.2 → 0.1.4

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/README.md CHANGED
@@ -15,12 +15,12 @@ Pair with a bundler plugin for extraction:
15
15
 
16
16
  ## Quick Start
17
17
 
18
- ### 1. Define tokens
18
+ ### 1. Define the theme
19
19
 
20
20
  ```tsx
21
21
  import { createTheme } from '@animus-ui/system';
22
22
 
23
- const tokens = createTheme()
23
+ const theme = createTheme()
24
24
  .addBreakpoints({ sm: 480, md: 768, lg: 1024 })
25
25
  .addColors({
26
26
  gray: { 100: '#f0f0f0', 800: '#1a1a1a' },
@@ -30,11 +30,16 @@ const tokens = createTheme()
30
30
  dark: { primary: 'blue.400', bg: 'gray.800', text: 'gray.100' },
31
31
  light: { primary: 'blue.700', bg: 'gray.100', text: 'gray.800' },
32
32
  })
33
- .addScale({ name: 'space', values: { sm: '0.5rem', md: '1rem', lg: '1.5rem' } })
33
+ .addScale({
34
+ name: 'space',
35
+ values: { sm: '0.5rem', md: '1rem', lg: '1.5rem' },
36
+ })
34
37
  .build();
35
38
 
39
+ type AppTheme = typeof theme;
40
+
36
41
  declare module '@animus-ui/system' {
37
- interface Theme extends typeof tokens {}
42
+ interface Theme extends AppTheme {}
38
43
  }
39
44
  ```
40
45
 
@@ -63,6 +68,26 @@ export const { system: ds, createGlobalStyles } = createSystem()
63
68
  .build();
64
69
  ```
65
70
 
71
+ To build on a published design-system kit, start either chain with
72
+ `.extend()` — it merges the kit's registries/tokens into yours (kit as base,
73
+ your later calls win on conflict), and the extraction pipeline discovers the
74
+ kit through the same edge:
75
+
76
+ ```tsx
77
+ import { system as kitSystem, theme as kitTheme } from '@acme/kit';
78
+
79
+ const theme = createTheme().extend(kitTheme).build();
80
+ export const { system: ds } = createSystem()
81
+ .extend(kitSystem)
82
+ // Additive only — the kit's groups/props arrive through the merge.
83
+ .addProps({ cursor: { property: 'cursor' } })
84
+ .build();
85
+ ```
86
+
87
+ (`createSystem({ includes: [...] })` and `.from()` are deprecated aliases from
88
+ the pre-merge era; they keep their old no-merge semantics for one more minor
89
+ release.)
90
+
66
91
  Each group becomes an opt-in set of props that components can enable via `.system()`:
67
92
 
68
93
  ```tsx
@@ -142,7 +167,7 @@ The type system prevents calling methods out of order. `.variant()` after `.stat
142
167
  per mode. An optional third argument opts the theme into OS participation:
143
168
 
144
169
  ```tsx
145
- const tokens = createTheme()
170
+ const theme = createTheme()
146
171
  .addColors({ gray: { 100: '#f0f0f0', 800: '#1a1a1a' } })
147
172
  .addColorModes(
148
173
  'dark',
@@ -229,7 +254,7 @@ theme:
229
254
  ```ts
230
255
  import { createAppearanceBootstrap } from '@animus-ui/system/bootstrap';
231
256
 
232
- const { code, cspHash } = createAppearanceBootstrap(tokens, {
257
+ const { code, cspHash } = createAppearanceBootstrap(theme, {
233
258
  storageKey: 'animus:appearance', // default
234
259
  });
235
260
  ```
@@ -1,4 +1,5 @@
1
1
  import { Animus } from './Animus';
2
+ import { type AssetRef } from './asset.js';
2
3
  import { type ConditionAliasMap, type RegistryBrand } from './conditions';
3
4
  import { type KeyframeFrameMap, type Keyframes } from './keyframes';
4
5
  import { type SelectorAliasMap } from './selectors';
@@ -6,12 +7,43 @@ import { NamedTransform } from './transforms/createTransform';
6
7
  import { Prop, ThemedCSSProps } from './types/config';
7
8
  import { AbstractProps } from './types/props';
8
9
  export type GlobalStyleMap = Record<string, Record<string, any>>;
10
+ /** One `src` descriptor of a font-face resource. */
11
+ export interface FontFaceSrc {
12
+ /**
13
+ * A literal string is emitted byte-exact as authored — asset resolution
14
+ * and rewriting belong to the host bundler's CSS asset pipeline, not to
15
+ * extraction. An `AssetRef` (from `asset(specifier)`) rides through
16
+ * evaluation and emission as its placeholder string; the host plugin
17
+ * substitutes the bundler-resolved URL after extraction.
18
+ */
19
+ url: string | AssetRef;
20
+ /** Format hint (`woff2`, `woff`, …), rendered as `format('…')`. */
21
+ format?: string;
22
+ }
23
+ /**
24
+ * A typed `@font-face` descriptor (global-styles-system). `family` may use a
25
+ * font-scale token reference (`{fonts.body}`); other descriptors take CSS
26
+ * literals only.
27
+ */
28
+ export interface FontFace {
29
+ family: string;
30
+ src: FontFaceSrc[];
31
+ weight?: string;
32
+ style?: string;
33
+ display?: string;
34
+ unicodeRange?: string;
35
+ stretch?: string;
36
+ }
9
37
  export interface GlobalStyleBlock {
10
38
  __brand: 'GlobalStyleBlock';
11
39
  styles: GlobalStyleMap;
40
+ /** Rendered ahead of the block's selector rules in `@layer anm-global`. */
41
+ fontFaces?: FontFace[];
12
42
  }
13
43
  export type GlobalStylesFactory<PropReg extends Record<string, Prop> = Record<string, Prop>> = <Map extends Record<string, AbstractProps>>(styles: {
14
44
  readonly [K in keyof Map]: ThemedCSSProps<Map[K], PropReg>;
45
+ }, options?: {
46
+ fontFaces?: readonly FontFace[];
15
47
  }) => GlobalStyleBlock;
16
48
  export type CreateKeyframesFactory<PropReg extends Record<string, Prop> = Record<string, Prop>> = <Frames extends Record<string, Record<string, AbstractProps>>>(frames: {
17
49
  readonly [N in keyof Frames]: {
@@ -22,14 +54,136 @@ export type CreateKeyframesFactory<PropReg extends Record<string, Prop> = Record
22
54
  }>;
23
55
  type IncludableSystem = {
24
56
  toConfig(): SerializedConfig;
57
+ /**
58
+ * Present on every system built by this version (attached non-enumerably
59
+ * next to `toConfig` — see `build()`). Optional in the type so systems
60
+ * built by an older @animus-ui/system remain structurally acceptable
61
+ * during the deprecation window; `extend()` fails loud at runtime when it
62
+ * is absent (design D7 — no `SerializedConfig` reconstruction).
63
+ */
64
+ getRegistrySnapshot?(): RegistrySnapshot;
25
65
  };
66
+ /**
67
+ * The frozen registry state captured at `build()` (design D7). `toConfig()`
68
+ * serializes from it and `extend()` merges from it, so post-build mutation of
69
+ * the public `propRegistry`/`groupRegistry` fields affects neither. Containers
70
+ * and per-entry objects are frozen shallow copies. Transforms are immutable,
71
+ * cached forwarding wrappers so later mutation of function metadata cannot
72
+ * alter serialization while anonymous transform behavior is retained.
73
+ */
74
+ export interface RegistrySnapshot {
75
+ props: Record<string, Prop>;
76
+ groups: Record<string, readonly string[]>;
77
+ selectors: SelectorAliasMap;
78
+ conditions: ConditionAliasMap;
79
+ }
80
+ /**
81
+ * A library bundle groups one export for both builders: the system half is
82
+ * consumed by `createSystem().extend()`, the theme half by
83
+ * `createTheme().extend()`; each builder takes its half and ignores the rest.
84
+ * `tokens` is the pre-D9 name for the theme half — both spellings are
85
+ * accepted (design D9; removal horizon is DEF-8).
86
+ */
87
+ export interface LibraryBundle {
88
+ system: IncludableSystem;
89
+ theme?: unknown;
90
+ tokens?: unknown;
91
+ }
92
+ /**
93
+ * The one runtime discriminator for a library bundle: `system.toConfig`
94
+ * being callable. A built system instance also has a `.system()` CHAIN
95
+ * METHOD, so presence of a `system` key alone cannot discriminate the two
96
+ * shapes. Both builders' `from()` use this guard; the QuickJS capture
97
+ * script in the Rust system-loader mirrors it by necessity (it cannot
98
+ * import TS) and points back here.
99
+ */
100
+ export declare function isLibraryBundle(value: unknown): value is LibraryBundle;
26
101
  export interface CreateSystemConfig {
102
+ /**
103
+ * @deprecated Use `createSystem().extend(source)` — the single extension
104
+ * verb on both builders, which actually merges the source's registries.
105
+ * The alias keeps its frozen pre-existing semantics (discovery membership
106
+ * via the same source list, NO registry merge, no type-surface admission)
107
+ * for at least one minor release after `extend()` ships.
108
+ */
27
109
  includes?: readonly IncludableSystem[];
28
110
  }
29
- export declare class SystemBuilder<PropReg extends Record<string, Prop> = {}, GroupReg extends Record<string, (keyof PropReg)[]> = {}, Conds extends string = never, Sels extends string = never> {
111
+ declare const STAGE_BRAND: unique symbol;
112
+ /**
113
+ * Builder type-state for the inherit-first rule: `extend()` (and the
114
+ * deprecated `from()`) is only callable while the builder is in the
115
+ * `'inherit'` stage; every extension call (`addGroup`, `addProps`,
116
+ * `addSelectors`, `addConditions`) advances to `'extend'`, making "inherit
117
+ * first, then extend" a compile error rather than a lint. Phantom — never
118
+ * present at runtime.
119
+ */
120
+ export type SystemBuilderStage = 'inherit' | 'extend';
121
+ export declare class SystemBuilder<PropReg extends Record<string, Prop> = {}, GroupReg extends Record<string, (keyof PropReg)[]> = {}, Conds extends string = never, Sels extends string = never, Stage extends SystemBuilderStage = 'inherit'> {
30
122
  #private;
31
- constructor(propRegistry?: PropReg, groupRegistry?: GroupReg, selectorRegistry?: SelectorAliasMap, includesRegistry?: readonly IncludableSystem[], conditionRegistry?: ConditionAliasMap);
32
- addSelectors<S extends Record<`_${string}`, string>>(selectors: S): SystemBuilder<PropReg, GroupReg, Conds, Sels | Extract<keyof S, string>>;
123
+ readonly [STAGE_BRAND]?: Stage;
124
+ constructor(propRegistry?: PropReg, groupRegistry?: GroupReg, selectorRegistry?: SelectorAliasMap, includesRegistry?: readonly IncludableSystem[], conditionRegistry?: ConditionAliasMap, extendProvenance?: ReadonlyMap<string, number>, extendCount?: number);
125
+ /**
126
+ * Declare inheritance from a consumed library: the source's TYPE surface is
127
+ * admitted (prop/component types for compose/extend interop) and the source
128
+ * joins extraction discovery membership. NO registry merge — consumer
129
+ * configuration remains the singular authority, so props, groups,
130
+ * selectors, and conditions the source registered do not enter this
131
+ * builder's runtime registries. Chainable and repeatable, but only before
132
+ * extension calls ("inherit first, then extend" — enforced by the phantom
133
+ * builder stage). Accepts a built system instance or a library bundle
134
+ * (`{ system, tokens }`), taking the system half and ignoring the rest.
135
+ *
136
+ * @deprecated Use `extend(source)` — the single extension verb on both
137
+ * builders, whose type admission is backed by a real registry merge.
138
+ * `from()` keeps these frozen semantics (type admission + discovery
139
+ * membership, no merge) for at least one minor release.
140
+ */
141
+ from<SrcProps extends Record<string, Prop>, SrcGroups extends Record<string, (keyof SrcProps)[]>, SrcConds extends string = never, SrcSels extends string = never>(this: SystemBuilder<PropReg, GroupReg, Conds, Sels, 'inherit'>, source: SystemInstance<SrcProps, SrcGroups, SrcConds, SrcSels> | {
142
+ system: SystemInstance<SrcProps, SrcGroups, SrcConds, SrcSels>;
143
+ theme?: unknown;
144
+ tokens?: unknown;
145
+ }): SystemBuilder<PropReg & SrcProps, GroupReg & SrcGroups, Conds | SrcConds, Sels | SrcSels, 'inherit'>;
146
+ /**
147
+ * A value annotated as the exported {@link LibraryBundle} interface has
148
+ * already erased its system half's generics (`system: IncludableSystem`),
149
+ * so there is no type surface to admit — discovery and runtime semantics
150
+ * are identical, and the builder's own type state passes through unchanged.
151
+ *
152
+ * @deprecated Use `extend(source)` — the single extension verb on both
153
+ * builders, whose type admission is backed by a real registry merge.
154
+ * `from()` keeps these frozen semantics (type admission + discovery
155
+ * membership, no merge) for at least one minor release.
156
+ */
157
+ from(this: SystemBuilder<PropReg, GroupReg, Conds, Sels, 'inherit'>, source: LibraryBundle): SystemBuilder<PropReg, GroupReg, Conds, Sels, 'inherit'>;
158
+ /**
159
+ * Extend this system from a consumed library: the source's prop, group,
160
+ * selector, and condition registries MERGE into the builder (design D1), so
161
+ * the built system's type surface, `toConfig()` output, and extraction
162
+ * reachability describe the same configuration. Identical definitions
163
+ * coalesce; divergent definitions fail loud naming the entry and both
164
+ * origins (design D3), including a post-extend attempt to redefine an
165
+ * inherited prop. Local calls may add new entries and may replace inherited
166
+ * group membership, selectors, or conditions; prop definitions never rebind
167
+ * silently. Chainable and repeatable, but only before extension calls ("inherit first, then
168
+ * extend" — enforced by the phantom builder stage). Accepts a built system
169
+ * instance or a library bundle (`{ system, theme }`), taking the system
170
+ * half and ignoring the rest. The merge consumes the source's registry
171
+ * snapshot captured at its `build()` (design D7), never a serialized
172
+ * round-trip.
173
+ */
174
+ extend<SrcProps extends Record<string, Prop>, SrcGroups extends Record<string, (keyof SrcProps)[]>, SrcConds extends string = never, SrcSels extends string = never>(this: SystemBuilder<PropReg, GroupReg, Conds, Sels, 'inherit'>, source: SystemInstance<SrcProps, SrcGroups, SrcConds, SrcSels> | {
175
+ system: SystemInstance<SrcProps, SrcGroups, SrcConds, SrcSels>;
176
+ theme?: unknown;
177
+ tokens?: unknown;
178
+ }): SystemBuilder<PropReg & SrcProps, GroupReg & SrcGroups, Conds | SrcConds, Sels | SrcSels, 'inherit'>;
179
+ /**
180
+ * A value annotated as the exported {@link LibraryBundle} interface has
181
+ * already erased its system half's generics (`system: IncludableSystem`),
182
+ * so no source types are admitted — the runtime merge is identical, and
183
+ * the builder's own type state passes through unchanged.
184
+ */
185
+ extend(this: SystemBuilder<PropReg, GroupReg, Conds, Sels, 'inherit'>, source: LibraryBundle): SystemBuilder<PropReg, GroupReg, Conds, Sels, 'inherit'>;
186
+ addSelectors<S extends Record<`_${string}`, string>>(selectors: S): SystemBuilder<PropReg, GroupReg, Conds, Sels | Extract<keyof S, string>, 'extend'>;
33
187
  /**
34
188
  * Register condition aliases (`_motionReduce`, `_cardSm`, …) → at-rule
35
189
  * condition strings (`@media …` / `@container …` / `@supports …`).
@@ -40,9 +194,9 @@ export declare class SystemBuilder<PropReg extends Record<string, Prop> = {}, Gr
40
194
  * `inferConditionKind` throw is defense-in-depth). The registered keys are
41
195
  * accumulated into the phantom `Conds` union and surfaced on `build()`.
42
196
  */
43
- addConditions<C extends Record<`_${string}`, `@media${string}` | `@container${string}` | `@supports${string}`>>(conditions: C): SystemBuilder<PropReg, GroupReg, Conds | Extract<keyof C, string>, Sels>;
44
- addGroup<Name extends string, Conf extends Record<string, Prop>>(name: Name extends keyof PropReg ? never : Name, config: Conf): SystemBuilder<PropReg & Conf, GroupReg & Record<Name, (keyof Conf)[]>, Conds, Sels>;
45
- addProps<Conf extends Record<string, Prop> & Partial<Record<Extract<keyof GroupReg, string>, never>>>(config: Conf): SystemBuilder<PropReg & Conf, GroupReg, Conds, Sels>;
197
+ addConditions<C extends Record<`_${string}`, `@media${string}` | `@container${string}` | `@supports${string}`>>(conditions: C): SystemBuilder<PropReg, GroupReg, Conds | Extract<keyof C, string>, Sels, 'extend'>;
198
+ addGroup<Name extends string, Conf extends Record<string, Prop>>(name: Name extends keyof PropReg ? never : Name, config: Conf): SystemBuilder<PropReg & Conf, GroupReg & Record<Name, (keyof Conf)[]>, Conds, Sels, 'extend'>;
199
+ addProps<Conf extends Record<string, Prop> & Partial<Record<Extract<keyof GroupReg, string>, never>>>(config: Conf): SystemBuilder<PropReg & Conf, GroupReg, Conds, Sels, 'extend'>;
46
200
  build(): {
47
201
  system: SystemInstance<PropReg, GroupReg, Conds, Sels>;
48
202
  createGlobalStyles: GlobalStylesFactory<PropReg>;
@@ -51,6 +205,14 @@ export declare class SystemBuilder<PropReg extends Record<string, Prop> = {}, Gr
51
205
  }
52
206
  export type SystemInstance<PropReg extends Record<string, Prop>, GroupReg extends Record<string, (keyof PropReg)[]>, Conds extends string = never, Sels extends string = never> = Animus<PropReg, GroupReg> & {
53
207
  toConfig(): SerializedConfig;
208
+ /**
209
+ * Frozen registry state captured at `build()` (design D7) — what
210
+ * `extend()` merges from. Always present on instances built by this
211
+ * version; optional in the type so systems built by an older
212
+ * @animus-ui/system stay structurally acceptable to `from()` during the
213
+ * deprecation window.
214
+ */
215
+ getRegistrySnapshot?(): RegistrySnapshot;
54
216
  } & RegistryBrand<Conds, Sels>;
55
217
  export interface SerializedConfig {
56
218
  propConfig: string;
@@ -1 +1 @@
1
- {"version":3,"file":"SystemBuilder.d.ts","sourceRoot":"","sources":["../src/SystemBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAEL,KAAK,iBAAiB,EAEtB,KAAK,aAAa,EAEnB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,SAAS,EAEf,MAAM,aAAa,CAAC;AACrB,OAAO,EAGL,KAAK,gBAAgB,EAEtB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAW9C,MAAM,MAAM,cAAc,GAAG,MA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AAC,CAAC;AAE/B,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC3C,eAAe,EAAE,MAAM,CAAC;IACxB;;;;;OAKG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AA4HD,wBAAgB,YAAY,CAAC,MAAM,CAAC,EAAE,kBAAkB,GAAG,aAAa,CAOvE"}
@@ -0,0 +1,25 @@
1
+ declare const ASSET_REF_BRAND: unique symbol;
2
+ /**
3
+ * A branded package-asset reference for `fontFaces[].src[].url`
4
+ * (global-styles-system). The VALUE is the deterministic placeholder
5
+ * `animus-asset:<specifier>` — a plain string, so it survives the QuickJS
6
+ * sandbox's JSON serialization and the extraction emitter's byte-exact url
7
+ * pass-through untouched. The HOST plugin substitutes the placeholder with
8
+ * the bundler-resolved asset URL after extraction; the sandbox never
9
+ * resolves anything.
10
+ */
11
+ export type AssetRef = string & {
12
+ readonly [ASSET_REF_BRAND]: true;
13
+ };
14
+ /** The reserved scheme marking an unsubstituted asset reference. */
15
+ export declare const ASSET_PLACEHOLDER_PREFIX = "animus-asset:";
16
+ /**
17
+ * Reference a package-owned asset (e.g. a font file) by module specifier:
18
+ * `asset('@acme/tokens/fonts/inter.woff2')`. Resolution — aliases, exports
19
+ * maps, `base`, content hashing — belongs to the host bundler; this function
20
+ * only brands the specifier into its placeholder form. A literal URL string
21
+ * (`'/fonts/inter.woff2'`) remains the pass-through alternative.
22
+ */
23
+ export declare function asset(specifier: string): AssetRef;
24
+ export {};
25
+ //# sourceMappingURL=asset.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["../src/asset.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,eAAe,EAAE,OAAO,MAAM,CAAC;AAE7C;;;;;;;;GAQG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG;IAAE,QAAQ,CAAC,CAAC,eAAe,CAAC,EAAE,IAAI,CAAA;CAAE,CAAC;AAErE,oEAAoE;AACpE,eAAO,MAAM,wBAAwB,kBAAkB,CAAC;AAExD;;;;;;GAMG;AACH,wBAAgB,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,CAEjD"}
@@ -1,4 +1,4 @@
1
- import { a as borderShorthand, i as gridItemRatio, n as size, r as gridItem, s as createScale } from "../size-CusLCguT.js";
1
+ import { a as borderShorthand, i as gridItemRatio, n as size, o as createScale, r as gridItem } from "../size-CDBRRzkb.js";
2
2
  //#region src/groups/index.ts
3
3
  const color = {
4
4
  color: {
package/dist/index.d.ts CHANGED
@@ -2,18 +2,19 @@ export { Animus, AnimusWithAll } from './Animus';
2
2
  export { AnimusExtended, AnimusExtendedWithAll } from './AnimusExtended';
3
3
  export { compose } from './compose';
4
4
  export type { KeyframeFrameMap, KeyframeRef, Keyframes } from './keyframes';
5
+ export { asset, ASSET_PLACEHOLDER_PREFIX, type AssetRef } from './asset.js';
5
6
  export { createComponent } from './runtime';
6
7
  export { createClassResolver } from './runtime/createClassResolver';
7
8
  export { createComposedFamily } from './runtime/createComposedFamily';
8
- export type { CreateKeyframesFactory, GlobalStyleBlock, GlobalStyleMap, GlobalStylesFactory, SerializedConfig, SystemInstance, } from './SystemBuilder';
9
+ export type { CreateKeyframesFactory, FontFace, FontFaceSrc, GlobalStyleBlock, GlobalStyleMap, GlobalStylesFactory, LibraryBundle, RegistrySnapshot, SerializedConfig, SystemBuilderStage, SystemInstance, } from './SystemBuilder';
9
10
  export { createSystem, SystemBuilder } from './SystemBuilder';
10
11
  export { createScale, numericOrStringScale, numericScale, stringScale, } from './scales/createScale';
11
12
  export { BUILT_IN_CONDITIONS, type ConditionAlias, type ConditionAliasMap, type ConditionKind, type Conditions, type ConditionsOf, type RawAtRuleKey, type RegistryBrand, type SelectorsOf, type UnknownAtRule, type UnknownConditionAlias, } from './conditions.js';
12
13
  export { BUILT_IN_SELECTORS, type SelectorAlias, type SelectorAliasMap, type Selectors, } from './selectors';
13
14
  export type { Assign, AssignValueIfUnmergable, ColorModeConfig, FindPath, KeyAsVariable, LiteralPaths, Mergable, Merge, MergeTheme, Path, PathToLiteral, PathValue, PrivateThemeKeys, SanitizeKey, } from './theme';
14
- export { createTheme, ThemeBuilder } from './theme';
15
+ export { createTheme, type Flatten, ThemeBuilder, type ThemeBuilderStage, } from './theme';
15
16
  export { borderShorthand } from './transforms/border';
16
- export { createTransform, type NamedTransform, type TransformFn, } from './transforms/createTransform';
17
+ export { areTransformsEqual, createTransform, type NamedTransform, type TransformFn, } from './transforms/createTransform';
17
18
  export { gridItem, gridItemRatio } from './transforms/grid';
18
19
  export { percentageOrAbsolute, size } from './transforms/size';
19
20
  export type { AnimusComponent, AnimusWrappedComponent, AnyBrandedComponent, ComposedFamily, SharedConfig, VariantPropsOf, } from './types/component';
@@ -21,5 +22,5 @@ export type { AbstractParser, BuiltInConditionAlias, BuiltInSelectorAlias, Compo
21
22
  export type { AbstractProps, MediaQueryMap, ResponsiveProp, ThemeProps, } from './types/props';
22
23
  export type { ArrayScale, MapScale } from './types/scales';
23
24
  export type { CSSObject } from './types/shared';
24
- export type { AbstractTheme, BaseTheme, BrowserColorSchemeConfig, ColorModeOptions, ColorTokenRef, ContextualVarRegistration, CSSColorValue, EmittedScales, EmittedTokenPaths, ScaleTokenRef, SerializedTheme, SystemPreferenceConfig, Theme, ThemeManifest, TokenScales, } from './types/theme';
25
+ export type { AbstractTheme, BaseTheme, BrowserColorSchemeConfig, ColorModeOptions, ColorTokenRef, ContextualVarRegistration, CSSColorValue, EmittedScales, EmittedTokenPaths, ScaleTokenRef, SerializedTheme, SystemPreferenceConfig, Theme, ThemeManifest, ThemeStructuralKey, TokenScales, } from './types/theme';
25
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings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,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,OAAO,EACL,eAAe,EACf,KAAK,cAAc,EACnB,KAAK,WAAW,GACjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAE/D,YAAY,EACV,eAAe,EACf,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,cAAc,GACf,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,aAAa,EACb,UAAU,EACV,QAAQ,EACR,gBAAgB,EAChB,MAAM,EACN,WAAW,EACX,IAAI,EACJ,cAAc,EACd,KAAK,EACL,UAAU,EACV,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,aAAa,GACd,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,aAAa,EACb,aAAa,EACb,cAAc,EACd,UAAU,GACX,MAAM,eAAe,CAAC;AACvB,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC3D,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,YAAY,EACV,aAAa,EACb,SAAS,EACT,wBAAwB,EACxB,gBAAgB,EAChB,aAAa,EACb,yBAAyB,EACzB,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,sBAAsB,EACtB,KAAK,EACL,aAAa,EACb,WAAW,GACZ,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM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