@animus-ui/system 0.1.0-next.39 → 0.1.0-next.44
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/SystemBuilder.d.ts +5 -1
- package/dist/SystemBuilder.d.ts.map +1 -1
- package/dist/compose.d.ts +10 -5
- package/dist/compose.d.ts.map +1 -1
- package/dist/{createClassResolver-u1d160An.js → createClassResolver-BnSwnxrG.js} +46 -16
- package/dist/groups/index.d.ts +32 -0
- package/dist/groups/index.d.ts.map +1 -1
- package/dist/groups/index.js +47 -15
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +197 -43
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/resolveClasses.d.ts.map +1 -1
- package/dist/runtime-entry.js +1 -1
- package/dist/selectors.d.ts +40 -0
- package/dist/selectors.d.ts.map +1 -0
- package/dist/types/component.d.ts +14 -6
- package/dist/types/component.d.ts.map +1 -1
- package/dist/types/config.d.ts +13 -0
- package/dist/types/config.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/SystemBuilder.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Animus } from './Animus';
|
|
2
|
+
import { type SelectorAliasMap } from './selectors';
|
|
2
3
|
import { NamedTransform } from './transforms/createTransform';
|
|
3
4
|
import { Prop } from './types/config';
|
|
4
5
|
export type GlobalStyleMap = Record<string, Record<string, any>>;
|
|
@@ -10,7 +11,8 @@ export interface GlobalStyleBlock {
|
|
|
10
11
|
export type GlobalStylesFactory = (styles: GlobalStyleMap) => GlobalStyleBlock;
|
|
11
12
|
export declare class SystemBuilder<PropReg extends Record<string, Prop> = {}, GroupReg extends Record<string, (keyof PropReg)[]> = {}> {
|
|
12
13
|
#private;
|
|
13
|
-
constructor(propRegistry?: PropReg, groupRegistry?: GroupReg);
|
|
14
|
+
constructor(propRegistry?: PropReg, groupRegistry?: GroupReg, selectorRegistry?: SelectorAliasMap);
|
|
15
|
+
addSelectors(selectors: Record<string, string>): SystemBuilder<PropReg, GroupReg>;
|
|
14
16
|
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)[]>>;
|
|
15
17
|
addProps<Conf extends Record<string, Prop> & Partial<Record<Extract<keyof GroupReg, string>, never>>>(config: Conf): SystemBuilder<PropReg & Conf, GroupReg>;
|
|
16
18
|
includes(_systems: readonly {
|
|
@@ -28,6 +30,8 @@ export interface SerializedConfig {
|
|
|
28
30
|
propConfig: string;
|
|
29
31
|
groupRegistry: string;
|
|
30
32
|
transforms: Record<string, NamedTransform>;
|
|
33
|
+
selectorAliases: string;
|
|
34
|
+
selectorOrder: string;
|
|
31
35
|
}
|
|
32
36
|
export declare function createSystem(): SystemBuilder<{}, {}>;
|
|
33
37
|
//# sourceMappingURL=SystemBuilder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SystemBuilder.d.ts","sourceRoot":"","sources":["../src/SystemBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAWtC,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;AAEjE,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,kBAAkB,CAAC;IAC5B,MAAM,EAAE,cAAc,CAAC;IACvB,SAAS,CACP,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC/B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,GACzC,cAAc,CAAC;CACnB;AAED,MAAM,MAAM,mBAAmB,GAAG,CAAC,MAAM,EA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B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAC3C,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;CACvB;AA0DD,wBAAgB,YAAY,0BAE3B"}
|
package/dist/compose.d.ts
CHANGED
|
@@ -2,13 +2,17 @@ import type { AnyBrandedComponent, ComposedFamily, SharedConfig } from './types/
|
|
|
2
2
|
/**
|
|
3
3
|
* Compose independently-authored Animus components into a sealed,
|
|
4
4
|
* namespaced component family with shared variant propagation via
|
|
5
|
-
*
|
|
5
|
+
* CSS cascade.
|
|
6
6
|
*
|
|
7
7
|
* - **Enforce**: TypeScript ensures shared keys exist on Root (the
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* - **Wire**:
|
|
11
|
-
*
|
|
8
|
+
* cascade source). Non-Root slots that have the key consume it from
|
|
9
|
+
* CSS inheritance; slots without the key are unaffected.
|
|
10
|
+
* - **Wire**: The extraction pipeline emits composed variant CSS
|
|
11
|
+
* rules — two per shared variant option per child (inheritance +
|
|
12
|
+
* override) within @layer variants.
|
|
13
|
+
* - **Context**: When `context: true`, shared variant prop values
|
|
14
|
+
* are also propagated via React context for portal-mounted children
|
|
15
|
+
* that CSS descendant selectors cannot reach.
|
|
12
16
|
* - **Seal**: Output components are plain ForwardRefExoticComponent —
|
|
13
17
|
* no `.extend()`, no builder methods. One-way door from builder-land
|
|
14
18
|
* to component-land.
|
|
@@ -16,5 +20,6 @@ import type { AnyBrandedComponent, ComposedFamily, SharedConfig } from './types/
|
|
|
16
20
|
export declare function compose<Slots extends Record<string, AnyBrandedComponent>, const Shared extends SharedConfig<Slots>>(slots: Slots, options: {
|
|
17
21
|
shared: Shared;
|
|
18
22
|
name?: string;
|
|
23
|
+
context?: boolean;
|
|
19
24
|
}): ComposedFamily<Slots>;
|
|
20
25
|
//# sourceMappingURL=compose.d.ts.map
|
package/dist/compose.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../src/compose.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,YAAY,EACb,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,OAAO,CACrB,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,EACjD,KAAK,CAAC,MAAM,SAAS,YAAY,CAAC,KAAK,CAAC,EAExC,KAAK,EAAE,KAAK,EAKZ,OAAO,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,GAC5D,cAAc,CAAC,KAAK,CAAC,CA0DvB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createElement, forwardRef } from "react";
|
|
1
|
+
import { Children, cloneElement, createElement, forwardRef, isValidElement } from "react";
|
|
2
2
|
import { UNITLESS_PROPERTIES } from "@animus-ui/properties";
|
|
3
3
|
//#region src/runtime/resolveClasses.ts
|
|
4
4
|
/**
|
|
@@ -41,7 +41,10 @@ function resolveClasses(baseClassName, props, config, systemPropMap, dynamicProp
|
|
|
41
41
|
let dynStyle;
|
|
42
42
|
if (config.variants) for (const [prop, vc] of Object.entries(config.variants)) {
|
|
43
43
|
const value = props[prop] ?? vc.default;
|
|
44
|
-
if (value != null)
|
|
44
|
+
if (value != null) {
|
|
45
|
+
const isDefault = !(prop in props) && vc.default != null;
|
|
46
|
+
classes.push(`${baseClassName}--${prop}-${isDefault ? "default" : value}`);
|
|
47
|
+
}
|
|
45
48
|
}
|
|
46
49
|
if (config.compounds) for (const compound of config.compounds) {
|
|
47
50
|
let match = true;
|
|
@@ -106,6 +109,17 @@ function resolveClasses(baseClassName, props, config, systemPropMap, dynamicProp
|
|
|
106
109
|
//#endregion
|
|
107
110
|
//#region src/runtime/index.ts
|
|
108
111
|
/**
|
|
112
|
+
* Merge multiple refs (callback or object) into a single callback ref.
|
|
113
|
+
* Creates a new callback on each call — no memoization possible in a
|
|
114
|
+
* hook-free runtime (RSC compatibility). Matches @radix-ui/react-compose-refs.
|
|
115
|
+
*/
|
|
116
|
+
function composeRefs(...refs) {
|
|
117
|
+
return (node) => {
|
|
118
|
+
for (const ref of refs) if (typeof ref === "function") ref(node);
|
|
119
|
+
else if (ref) ref.current = node;
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
109
123
|
* Create a lightweight component that applies extracted CSS class names.
|
|
110
124
|
* Replaces Emotion's styled() for extracted components.
|
|
111
125
|
*
|
|
@@ -126,6 +140,7 @@ function createComponent(element, className, config, systemPropMap, dynamicPropC
|
|
|
126
140
|
const systemPropNames = config.systemPropNames || [];
|
|
127
141
|
const filterProps = new Set([
|
|
128
142
|
"as",
|
|
143
|
+
"asChild",
|
|
129
144
|
...variantProps,
|
|
130
145
|
...stateProps,
|
|
131
146
|
...systemPropNames
|
|
@@ -133,10 +148,33 @@ function createComponent(element, className, config, systemPropMap, dynamicPropC
|
|
|
133
148
|
let prevDynKey = "";
|
|
134
149
|
let prevDynStyle = null;
|
|
135
150
|
const Component = forwardRef((props, ref) => {
|
|
136
|
-
const renderElement = props.as || element;
|
|
137
|
-
const isComponentElement = typeof renderElement !== "string";
|
|
138
151
|
const { classes, dynamicStyle } = resolveClasses(className, props, config, systemPropMap, dynamicPropConfig);
|
|
139
152
|
if (props.className) classes.push(props.className);
|
|
153
|
+
if (dynamicStyle) {
|
|
154
|
+
const dynKey = Object.entries(dynamicStyle).map(([k, v]) => `${k}:${v}`).join("|");
|
|
155
|
+
if (dynKey !== prevDynKey) {
|
|
156
|
+
prevDynKey = dynKey;
|
|
157
|
+
prevDynStyle = dynamicStyle;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
if (props.asChild) {
|
|
161
|
+
const child = Children.only(props.children);
|
|
162
|
+
if (!isValidElement(child)) throw new Error(`${className}: asChild requires a single React element as children`);
|
|
163
|
+
const childRef = child.ref;
|
|
164
|
+
const mergedClassName = [classes.join(" "), child.props.className].filter(Boolean).join(" ");
|
|
165
|
+
const mergedStyle = prevDynStyle || props.style || child.props.style ? {
|
|
166
|
+
...props.style,
|
|
167
|
+
...child.props.style,
|
|
168
|
+
...prevDynStyle
|
|
169
|
+
} : void 0;
|
|
170
|
+
return cloneElement(child, {
|
|
171
|
+
ref: composeRefs(ref, childRef),
|
|
172
|
+
className: mergedClassName,
|
|
173
|
+
...mergedStyle ? { style: mergedStyle } : {}
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
const renderElement = props.as || element;
|
|
177
|
+
const isComponentElement = typeof renderElement !== "string";
|
|
140
178
|
const domProps = {
|
|
141
179
|
ref,
|
|
142
180
|
className: classes.join(" ")
|
|
@@ -147,21 +185,13 @@ function createComponent(element, className, config, systemPropMap, dynamicPropC
|
|
|
147
185
|
if (!isComponentElement) {}
|
|
148
186
|
domProps[key] = value;
|
|
149
187
|
}
|
|
150
|
-
if (dynamicStyle) {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
prevDynStyle = dynamicStyle;
|
|
155
|
-
}
|
|
156
|
-
domProps.style = props.style ? {
|
|
157
|
-
...props.style,
|
|
158
|
-
...prevDynStyle
|
|
159
|
-
} : prevDynStyle;
|
|
160
|
-
}
|
|
188
|
+
if (prevDynStyle && dynamicStyle) domProps.style = props.style ? {
|
|
189
|
+
...props.style,
|
|
190
|
+
...prevDynStyle
|
|
191
|
+
} : prevDynStyle;
|
|
161
192
|
return createElement(renderElement, domProps);
|
|
162
193
|
});
|
|
163
194
|
Component.displayName = className;
|
|
164
|
-
Component.__variantKeys = new Set(variantProps);
|
|
165
195
|
return Object.assign(Component, { extend: () => {
|
|
166
196
|
throw new Error(`Cannot extend extracted component "${className}" at runtime. Extensions must be authored in source code using the builder API (e.g. import the original component and call .extend() there) so the extraction pipeline can resolve them at build time.`);
|
|
167
197
|
} });
|
package/dist/groups/index.d.ts
CHANGED
|
@@ -55,122 +55,146 @@ export declare const border: {
|
|
|
55
55
|
readonly border: {
|
|
56
56
|
readonly property: "border";
|
|
57
57
|
readonly scale: "borders";
|
|
58
|
+
readonly strict: false;
|
|
58
59
|
readonly transform: import("../transforms").NamedTransform;
|
|
59
60
|
};
|
|
60
61
|
readonly borderX: {
|
|
61
62
|
readonly property: "border";
|
|
62
63
|
readonly properties: readonly ["borderLeft", "borderRight"];
|
|
63
64
|
readonly scale: "borders";
|
|
65
|
+
readonly strict: false;
|
|
64
66
|
readonly transform: import("../transforms").NamedTransform;
|
|
65
67
|
};
|
|
66
68
|
readonly borderY: {
|
|
67
69
|
readonly property: "border";
|
|
68
70
|
readonly properties: readonly ["borderTop", "borderBottom"];
|
|
69
71
|
readonly scale: "borders";
|
|
72
|
+
readonly strict: false;
|
|
70
73
|
readonly transform: import("../transforms").NamedTransform;
|
|
71
74
|
};
|
|
72
75
|
readonly borderTop: {
|
|
73
76
|
readonly property: "borderTop";
|
|
74
77
|
readonly scale: "borders";
|
|
78
|
+
readonly strict: false;
|
|
75
79
|
readonly transform: import("../transforms").NamedTransform;
|
|
76
80
|
};
|
|
77
81
|
readonly borderRight: {
|
|
78
82
|
readonly property: "borderRight";
|
|
79
83
|
readonly scale: "borders";
|
|
84
|
+
readonly strict: false;
|
|
80
85
|
readonly transform: import("../transforms").NamedTransform;
|
|
81
86
|
};
|
|
82
87
|
readonly borderBottom: {
|
|
83
88
|
readonly property: "borderBottom";
|
|
84
89
|
readonly scale: "borders";
|
|
90
|
+
readonly strict: false;
|
|
85
91
|
readonly transform: import("../transforms").NamedTransform;
|
|
86
92
|
};
|
|
87
93
|
readonly borderLeft: {
|
|
88
94
|
readonly property: "borderLeft";
|
|
89
95
|
readonly scale: "borders";
|
|
96
|
+
readonly strict: false;
|
|
90
97
|
readonly transform: import("../transforms").NamedTransform;
|
|
91
98
|
};
|
|
92
99
|
readonly borderWidth: {
|
|
93
100
|
readonly property: "borderWidth";
|
|
94
101
|
readonly scale: "borderWidths";
|
|
102
|
+
readonly strict: false;
|
|
95
103
|
};
|
|
96
104
|
readonly borderXWidth: {
|
|
97
105
|
readonly property: "borderWidth";
|
|
98
106
|
readonly properties: readonly ["borderLeftWidth", "borderRightWidth"];
|
|
99
107
|
readonly scale: "borderWidths";
|
|
108
|
+
readonly strict: false;
|
|
100
109
|
};
|
|
101
110
|
readonly borderYWidth: {
|
|
102
111
|
readonly property: "borderWidth";
|
|
103
112
|
readonly properties: readonly ["borderTopWidth", "borderBottomWidth"];
|
|
104
113
|
readonly scale: "borderWidths";
|
|
114
|
+
readonly strict: false;
|
|
105
115
|
};
|
|
106
116
|
readonly borderLeftWidth: {
|
|
107
117
|
readonly property: "borderLeftWidth";
|
|
108
118
|
readonly scale: "borderWidths";
|
|
119
|
+
readonly strict: false;
|
|
109
120
|
};
|
|
110
121
|
readonly borderRightWidth: {
|
|
111
122
|
readonly property: "borderRightWidth";
|
|
112
123
|
readonly scale: "borderWidths";
|
|
124
|
+
readonly strict: false;
|
|
113
125
|
};
|
|
114
126
|
readonly borderTopWidth: {
|
|
115
127
|
readonly property: "borderTopWidth";
|
|
116
128
|
readonly scale: "borderWidths";
|
|
129
|
+
readonly strict: false;
|
|
117
130
|
};
|
|
118
131
|
readonly borderBottomWidth: {
|
|
119
132
|
readonly property: "borderBottomWidth";
|
|
120
133
|
readonly scale: "borderWidths";
|
|
134
|
+
readonly strict: false;
|
|
121
135
|
};
|
|
122
136
|
readonly borderRadius: {
|
|
123
137
|
readonly property: "borderRadius";
|
|
124
138
|
readonly scale: "radii";
|
|
139
|
+
readonly strict: false;
|
|
125
140
|
readonly transform: import("../transforms").NamedTransform;
|
|
126
141
|
};
|
|
127
142
|
readonly rounded: {
|
|
128
143
|
readonly property: "borderRadius";
|
|
129
144
|
readonly scale: "radii";
|
|
145
|
+
readonly strict: false;
|
|
130
146
|
readonly transform: import("../transforms").NamedTransform;
|
|
131
147
|
};
|
|
132
148
|
readonly borderLeftRadius: {
|
|
133
149
|
readonly property: "borderRadius";
|
|
134
150
|
readonly properties: readonly ["borderTopLeftRadius", "borderBottomLeftRadius"];
|
|
135
151
|
readonly scale: "radii";
|
|
152
|
+
readonly strict: false;
|
|
136
153
|
readonly transform: import("../transforms").NamedTransform;
|
|
137
154
|
};
|
|
138
155
|
readonly borderTopRadius: {
|
|
139
156
|
readonly property: "borderRadius";
|
|
140
157
|
readonly properties: readonly ["borderTopLeftRadius", "borderTopRightRadius"];
|
|
141
158
|
readonly scale: "radii";
|
|
159
|
+
readonly strict: false;
|
|
142
160
|
readonly transform: import("../transforms").NamedTransform;
|
|
143
161
|
};
|
|
144
162
|
readonly borderBottomRadius: {
|
|
145
163
|
readonly property: "borderRadius";
|
|
146
164
|
readonly properties: readonly ["borderBottomLeftRadius", "borderBottomRightRadius"];
|
|
147
165
|
readonly scale: "radii";
|
|
166
|
+
readonly strict: false;
|
|
148
167
|
readonly transform: import("../transforms").NamedTransform;
|
|
149
168
|
};
|
|
150
169
|
readonly borderRightRadius: {
|
|
151
170
|
readonly property: "borderRadius";
|
|
152
171
|
readonly properties: readonly ["borderTopRightRadius", "borderBottomRightRadius"];
|
|
153
172
|
readonly scale: "radii";
|
|
173
|
+
readonly strict: false;
|
|
154
174
|
readonly transform: import("../transforms").NamedTransform;
|
|
155
175
|
};
|
|
156
176
|
readonly borderTopLeftRadius: {
|
|
157
177
|
readonly property: "borderTopLeftRadius";
|
|
158
178
|
readonly scale: "radii";
|
|
179
|
+
readonly strict: false;
|
|
159
180
|
readonly transform: import("../transforms").NamedTransform;
|
|
160
181
|
};
|
|
161
182
|
readonly borderTopRightRadius: {
|
|
162
183
|
readonly property: "borderTopRightRadius";
|
|
163
184
|
readonly scale: "radii";
|
|
185
|
+
readonly strict: false;
|
|
164
186
|
readonly transform: import("../transforms").NamedTransform;
|
|
165
187
|
};
|
|
166
188
|
readonly borderBottomRightRadius: {
|
|
167
189
|
readonly property: "borderBottomRightRadius";
|
|
168
190
|
readonly scale: "radii";
|
|
191
|
+
readonly strict: false;
|
|
169
192
|
readonly transform: import("../transforms").NamedTransform;
|
|
170
193
|
};
|
|
171
194
|
readonly borderBottomLeftRadius: {
|
|
172
195
|
readonly property: "borderBottomLeftRadius";
|
|
173
196
|
readonly scale: "radii";
|
|
197
|
+
readonly strict: false;
|
|
174
198
|
readonly transform: import("../transforms").NamedTransform;
|
|
175
199
|
};
|
|
176
200
|
readonly borderStyle: {
|
|
@@ -430,24 +454,29 @@ export declare const positioning: {
|
|
|
430
454
|
readonly zIndex: {
|
|
431
455
|
readonly property: "zIndex";
|
|
432
456
|
readonly scale: "zIndices";
|
|
457
|
+
readonly strict: false;
|
|
433
458
|
};
|
|
434
459
|
readonly opacity: {
|
|
435
460
|
readonly property: "opacity";
|
|
436
461
|
readonly scale: "opacities";
|
|
462
|
+
readonly strict: false;
|
|
437
463
|
};
|
|
438
464
|
};
|
|
439
465
|
export declare const shadows: {
|
|
440
466
|
readonly boxShadow: {
|
|
441
467
|
readonly property: "boxShadow";
|
|
442
468
|
readonly scale: "shadows";
|
|
469
|
+
readonly strict: false;
|
|
443
470
|
};
|
|
444
471
|
readonly shadow: {
|
|
445
472
|
readonly property: "boxShadow";
|
|
446
473
|
readonly scale: "shadows";
|
|
474
|
+
readonly strict: false;
|
|
447
475
|
};
|
|
448
476
|
readonly textShadow: {
|
|
449
477
|
readonly property: "textShadow";
|
|
450
478
|
readonly scale: "shadows";
|
|
479
|
+
readonly strict: false;
|
|
451
480
|
};
|
|
452
481
|
};
|
|
453
482
|
export declare const layout: {
|
|
@@ -570,10 +599,12 @@ export declare const typography: {
|
|
|
570
599
|
readonly fontWeight: {
|
|
571
600
|
readonly property: "fontWeight";
|
|
572
601
|
readonly scale: "fontWeights";
|
|
602
|
+
readonly strict: false;
|
|
573
603
|
};
|
|
574
604
|
readonly lineHeight: {
|
|
575
605
|
readonly property: "lineHeight";
|
|
576
606
|
readonly scale: "lineHeights";
|
|
607
|
+
readonly strict: false;
|
|
577
608
|
};
|
|
578
609
|
readonly fontSize: {
|
|
579
610
|
readonly property: "fontSize";
|
|
@@ -582,6 +613,7 @@ export declare const typography: {
|
|
|
582
613
|
readonly letterSpacing: {
|
|
583
614
|
readonly property: "letterSpacing";
|
|
584
615
|
readonly scale: "letterSpacings";
|
|
616
|
+
readonly strict: false;
|
|
585
617
|
};
|
|
586
618
|
readonly textAlign: {
|
|
587
619
|
readonly property: "textAlign";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/groups/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBR,CAAC;AAEX,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/groups/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBR,CAAC;AAEX,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2IT,CAAC;AA8BX,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQP,CAAC;AAWX,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCP,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUb,CAAC;AAEX,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAed,CAAC;AAEX,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;CAIV,CAAC;AAEX,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CT,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBb,CAAC;AAwCX,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGR,CAAC;AAEX,eAAO,MAAM,WAAW;;;;;;;;;;;CAWd,CAAC;AAEX,eAAO,MAAM,IAAI;;;;;CAEP,CAAC;AAEX,eAAO,MAAM,IAAI;;;;CAEP,CAAC"}
|
package/dist/groups/index.js
CHANGED
|
@@ -57,122 +57,146 @@ const border = {
|
|
|
57
57
|
border: {
|
|
58
58
|
property: "border",
|
|
59
59
|
scale: "borders",
|
|
60
|
+
strict: false,
|
|
60
61
|
transform: borderShorthand
|
|
61
62
|
},
|
|
62
63
|
borderX: {
|
|
63
64
|
property: "border",
|
|
64
65
|
properties: ["borderLeft", "borderRight"],
|
|
65
66
|
scale: "borders",
|
|
67
|
+
strict: false,
|
|
66
68
|
transform: borderShorthand
|
|
67
69
|
},
|
|
68
70
|
borderY: {
|
|
69
71
|
property: "border",
|
|
70
72
|
properties: ["borderTop", "borderBottom"],
|
|
71
73
|
scale: "borders",
|
|
74
|
+
strict: false,
|
|
72
75
|
transform: borderShorthand
|
|
73
76
|
},
|
|
74
77
|
borderTop: {
|
|
75
78
|
property: "borderTop",
|
|
76
79
|
scale: "borders",
|
|
80
|
+
strict: false,
|
|
77
81
|
transform: borderShorthand
|
|
78
82
|
},
|
|
79
83
|
borderRight: {
|
|
80
84
|
property: "borderRight",
|
|
81
85
|
scale: "borders",
|
|
86
|
+
strict: false,
|
|
82
87
|
transform: borderShorthand
|
|
83
88
|
},
|
|
84
89
|
borderBottom: {
|
|
85
90
|
property: "borderBottom",
|
|
86
91
|
scale: "borders",
|
|
92
|
+
strict: false,
|
|
87
93
|
transform: borderShorthand
|
|
88
94
|
},
|
|
89
95
|
borderLeft: {
|
|
90
96
|
property: "borderLeft",
|
|
91
97
|
scale: "borders",
|
|
98
|
+
strict: false,
|
|
92
99
|
transform: borderShorthand
|
|
93
100
|
},
|
|
94
101
|
borderWidth: {
|
|
95
102
|
property: "borderWidth",
|
|
96
|
-
scale: "borderWidths"
|
|
103
|
+
scale: "borderWidths",
|
|
104
|
+
strict: false
|
|
97
105
|
},
|
|
98
106
|
borderXWidth: {
|
|
99
107
|
property: "borderWidth",
|
|
100
108
|
properties: ["borderLeftWidth", "borderRightWidth"],
|
|
101
|
-
scale: "borderWidths"
|
|
109
|
+
scale: "borderWidths",
|
|
110
|
+
strict: false
|
|
102
111
|
},
|
|
103
112
|
borderYWidth: {
|
|
104
113
|
property: "borderWidth",
|
|
105
114
|
properties: ["borderTopWidth", "borderBottomWidth"],
|
|
106
|
-
scale: "borderWidths"
|
|
115
|
+
scale: "borderWidths",
|
|
116
|
+
strict: false
|
|
107
117
|
},
|
|
108
118
|
borderLeftWidth: {
|
|
109
119
|
property: "borderLeftWidth",
|
|
110
|
-
scale: "borderWidths"
|
|
120
|
+
scale: "borderWidths",
|
|
121
|
+
strict: false
|
|
111
122
|
},
|
|
112
123
|
borderRightWidth: {
|
|
113
124
|
property: "borderRightWidth",
|
|
114
|
-
scale: "borderWidths"
|
|
125
|
+
scale: "borderWidths",
|
|
126
|
+
strict: false
|
|
115
127
|
},
|
|
116
128
|
borderTopWidth: {
|
|
117
129
|
property: "borderTopWidth",
|
|
118
|
-
scale: "borderWidths"
|
|
130
|
+
scale: "borderWidths",
|
|
131
|
+
strict: false
|
|
119
132
|
},
|
|
120
133
|
borderBottomWidth: {
|
|
121
134
|
property: "borderBottomWidth",
|
|
122
|
-
scale: "borderWidths"
|
|
135
|
+
scale: "borderWidths",
|
|
136
|
+
strict: false
|
|
123
137
|
},
|
|
124
138
|
borderRadius: {
|
|
125
139
|
property: "borderRadius",
|
|
126
140
|
scale: "radii",
|
|
141
|
+
strict: false,
|
|
127
142
|
transform: size
|
|
128
143
|
},
|
|
129
144
|
rounded: {
|
|
130
145
|
property: "borderRadius",
|
|
131
146
|
scale: "radii",
|
|
147
|
+
strict: false,
|
|
132
148
|
transform: size
|
|
133
149
|
},
|
|
134
150
|
borderLeftRadius: {
|
|
135
151
|
property: "borderRadius",
|
|
136
152
|
properties: ["borderTopLeftRadius", "borderBottomLeftRadius"],
|
|
137
153
|
scale: "radii",
|
|
154
|
+
strict: false,
|
|
138
155
|
transform: size
|
|
139
156
|
},
|
|
140
157
|
borderTopRadius: {
|
|
141
158
|
property: "borderRadius",
|
|
142
159
|
properties: ["borderTopLeftRadius", "borderTopRightRadius"],
|
|
143
160
|
scale: "radii",
|
|
161
|
+
strict: false,
|
|
144
162
|
transform: size
|
|
145
163
|
},
|
|
146
164
|
borderBottomRadius: {
|
|
147
165
|
property: "borderRadius",
|
|
148
166
|
properties: ["borderBottomLeftRadius", "borderBottomRightRadius"],
|
|
149
167
|
scale: "radii",
|
|
168
|
+
strict: false,
|
|
150
169
|
transform: size
|
|
151
170
|
},
|
|
152
171
|
borderRightRadius: {
|
|
153
172
|
property: "borderRadius",
|
|
154
173
|
properties: ["borderTopRightRadius", "borderBottomRightRadius"],
|
|
155
174
|
scale: "radii",
|
|
175
|
+
strict: false,
|
|
156
176
|
transform: size
|
|
157
177
|
},
|
|
158
178
|
borderTopLeftRadius: {
|
|
159
179
|
property: "borderTopLeftRadius",
|
|
160
180
|
scale: "radii",
|
|
181
|
+
strict: false,
|
|
161
182
|
transform: size
|
|
162
183
|
},
|
|
163
184
|
borderTopRightRadius: {
|
|
164
185
|
property: "borderTopRightRadius",
|
|
165
186
|
scale: "radii",
|
|
187
|
+
strict: false,
|
|
166
188
|
transform: size
|
|
167
189
|
},
|
|
168
190
|
borderBottomRightRadius: {
|
|
169
191
|
property: "borderBottomRightRadius",
|
|
170
192
|
scale: "radii",
|
|
193
|
+
strict: false,
|
|
171
194
|
transform: size
|
|
172
195
|
},
|
|
173
196
|
borderBottomLeftRadius: {
|
|
174
197
|
property: "borderBottomLeftRadius",
|
|
175
198
|
scale: "radii",
|
|
199
|
+
strict: false,
|
|
176
200
|
transform: size
|
|
177
201
|
},
|
|
178
202
|
borderStyle: { property: "borderStyle" },
|
|
@@ -323,25 +347,30 @@ const positioning = {
|
|
|
323
347
|
},
|
|
324
348
|
zIndex: {
|
|
325
349
|
property: "zIndex",
|
|
326
|
-
scale: "zIndices"
|
|
350
|
+
scale: "zIndices",
|
|
351
|
+
strict: false
|
|
327
352
|
},
|
|
328
353
|
opacity: {
|
|
329
354
|
property: "opacity",
|
|
330
|
-
scale: "opacities"
|
|
355
|
+
scale: "opacities",
|
|
356
|
+
strict: false
|
|
331
357
|
}
|
|
332
358
|
};
|
|
333
359
|
const shadows = {
|
|
334
360
|
boxShadow: {
|
|
335
361
|
property: "boxShadow",
|
|
336
|
-
scale: "shadows"
|
|
362
|
+
scale: "shadows",
|
|
363
|
+
strict: false
|
|
337
364
|
},
|
|
338
365
|
shadow: {
|
|
339
366
|
property: "boxShadow",
|
|
340
|
-
scale: "shadows"
|
|
367
|
+
scale: "shadows",
|
|
368
|
+
strict: false
|
|
341
369
|
},
|
|
342
370
|
textShadow: {
|
|
343
371
|
property: "textShadow",
|
|
344
|
-
scale: "shadows"
|
|
372
|
+
scale: "shadows",
|
|
373
|
+
strict: false
|
|
345
374
|
}
|
|
346
375
|
};
|
|
347
376
|
const layout = {
|
|
@@ -414,11 +443,13 @@ const typography = {
|
|
|
414
443
|
},
|
|
415
444
|
fontWeight: {
|
|
416
445
|
property: "fontWeight",
|
|
417
|
-
scale: "fontWeights"
|
|
446
|
+
scale: "fontWeights",
|
|
447
|
+
strict: false
|
|
418
448
|
},
|
|
419
449
|
lineHeight: {
|
|
420
450
|
property: "lineHeight",
|
|
421
|
-
scale: "lineHeights"
|
|
451
|
+
scale: "lineHeights",
|
|
452
|
+
strict: false
|
|
422
453
|
},
|
|
423
454
|
fontSize: {
|
|
424
455
|
property: "fontSize",
|
|
@@ -426,7 +457,8 @@ const typography = {
|
|
|
426
457
|
},
|
|
427
458
|
letterSpacing: {
|
|
428
459
|
property: "letterSpacing",
|
|
429
|
-
scale: "letterSpacings"
|
|
460
|
+
scale: "letterSpacings",
|
|
461
|
+
strict: false
|
|
430
462
|
},
|
|
431
463
|
textAlign: { property: "textAlign" },
|
|
432
464
|
fontStyle: { property: "fontStyle" },
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export { createClassResolver } from './runtime/createClassResolver';
|
|
|
6
6
|
export type { GlobalStyleBlock, GlobalStyleMap, GlobalStylesFactory, SerializedConfig, SystemInstance, } from './SystemBuilder';
|
|
7
7
|
export { createSystem, SystemBuilder } from './SystemBuilder';
|
|
8
8
|
export { createScale, numericOrStringScale, numericScale, stringScale, } from './scales/createScale';
|
|
9
|
+
export { BUILT_IN_SELECTORS, type SelectorAlias, type SelectorAliasMap, } from './selectors';
|
|
9
10
|
export type { Assign, AssignValueIfUnmergable, ColorModeConfig, FindPath, KeyAsVariable, LiteralPaths, Mergable, Merge, MergeTheme, Path, PathToLiteral, PathValue, PrivateThemeKeys, SanitizeKey, } from './theme';
|
|
10
11
|
export { createTheme, ThemeBuilder } from './theme';
|
|
11
12
|
export { borderShorthand } from './transforms/border';
|
|
@@ -13,7 +14,7 @@ export { createTransform, type NamedTransform, type TransformFn, } from './trans
|
|
|
13
14
|
export { gridItem, gridItemRatio } from './transforms/grid';
|
|
14
15
|
export { percentageOrAbsolute, size } from './transforms/size';
|
|
15
16
|
export type { AnimusComponent, AnimusWrappedComponent, AnyBrandedComponent, ComposedFamily, SharedConfig, VariantPropsOf, } from './types/component';
|
|
16
|
-
export type { AbstractParser, CompoundEntry, CSSPropMap, CSSProps, CustomPropConfig, Parser, ParserProps, Prop, PropertyValues, Scale, ScaleValue, SystemProps, ThemedCSSPropMap, ThemedCSSProps, ThemedScale, ThemedScaleValue, VariantConfig, } from './types/config';
|
|
17
|
+
export type { AbstractParser, BuiltInSelectorAlias, CompoundEntry, CSSPropMap, CSSProps, CustomPropConfig, Parser, ParserProps, Prop, PropertyValues, Scale, ScaleValue, SelectorAliasProps, SystemProps, ThemedCSSPropMap, ThemedCSSProps, ThemedScale, ThemedScaleValue, VariantConfig, } from './types/config';
|
|
17
18
|
export type { AbstractProps, MediaQueryMap, ResponsiveProp, ThemeProps, } from './types/props';
|
|
18
19
|
export type { ArrayScale, MapScale } from './types/scales';
|
|
19
20
|
export type { CSSObject } from './types/shared';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEzE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,GACf,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAE9D,OAAO,EACL,WAAW,EACX,oBAAoB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,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,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,aAAa,EACb,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,KAAK,EACL,aAAa,EACb,WAAW,GACZ,MAAM,eAAe,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as createComponent, t as createClassResolver } from "./createClassResolver-
|
|
1
|
+
import { n as createComponent, t as createClassResolver } from "./createClassResolver-BnSwnxrG.js";
|
|
2
2
|
import { a as borderShorthand, c as numericOrStringScale, i as gridItemRatio, l as numericScale, n as size, o as createTransform, r as gridItem, s as createScale, t as percentageOrAbsolute, u as stringScale } from "./size-BjymBo7z.js";
|
|
3
3
|
import { createContext, createElement, forwardRef, useContext } from "react";
|
|
4
4
|
//#region src/utils/deepMerge.ts
|
|
@@ -229,70 +229,220 @@ var Animus = class extends AnimusWithBase {
|
|
|
229
229
|
};
|
|
230
230
|
//#endregion
|
|
231
231
|
//#region src/compose.ts
|
|
232
|
-
const EMPTY_SHARED = {};
|
|
233
232
|
/**
|
|
234
233
|
* Compose independently-authored Animus components into a sealed,
|
|
235
234
|
* namespaced component family with shared variant propagation via
|
|
236
|
-
*
|
|
235
|
+
* CSS cascade.
|
|
237
236
|
*
|
|
238
237
|
* - **Enforce**: TypeScript ensures shared keys exist on Root (the
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
* - **Wire**:
|
|
242
|
-
*
|
|
238
|
+
* cascade source). Non-Root slots that have the key consume it from
|
|
239
|
+
* CSS inheritance; slots without the key are unaffected.
|
|
240
|
+
* - **Wire**: The extraction pipeline emits composed variant CSS
|
|
241
|
+
* rules — two per shared variant option per child (inheritance +
|
|
242
|
+
* override) within @layer variants.
|
|
243
|
+
* - **Context**: When `context: true`, shared variant prop values
|
|
244
|
+
* are also propagated via React context for portal-mounted children
|
|
245
|
+
* that CSS descendant selectors cannot reach.
|
|
243
246
|
* - **Seal**: Output components are plain ForwardRefExoticComponent —
|
|
244
247
|
* no `.extend()`, no builder methods. One-way door from builder-land
|
|
245
248
|
* to component-land.
|
|
246
249
|
*/
|
|
247
250
|
function compose(slots, options) {
|
|
248
|
-
const sharedKeys = Object.keys(options.shared);
|
|
249
|
-
const FamilyContext = createContext(EMPTY_SHARED);
|
|
250
251
|
const familyName = options.name ?? "Composed";
|
|
252
|
+
const useCtx = options.context ?? false;
|
|
253
|
+
const FamilyCtx = useCtx ? createContext({}) : null;
|
|
254
|
+
const sharedKeySet = useCtx ? new Set(Object.keys(options.shared)) : null;
|
|
251
255
|
const result = {};
|
|
252
|
-
for (const [name, SourceComponent] of Object.entries(slots))
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
256
|
+
for (const [name, SourceComponent] of Object.entries(slots)) {
|
|
257
|
+
let Wrapper;
|
|
258
|
+
if (name === "Root" && FamilyCtx && sharedKeySet) Wrapper = forwardRef((props, ref) => {
|
|
259
|
+
const shared = {};
|
|
260
|
+
for (const key of sharedKeySet) if (key in props) shared[key] = props[key];
|
|
261
|
+
return createElement(SourceComponent, {
|
|
257
262
|
...props,
|
|
258
263
|
ref
|
|
259
|
-
}));
|
|
264
|
+
}, createElement(FamilyCtx.Provider, { value: shared }, props.children));
|
|
260
265
|
});
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
const knownKeys = SourceComponent.__variantKeys;
|
|
265
|
-
const ChildWrapper = forwardRef((props, ref) => {
|
|
266
|
-
const shared = useContext(FamilyContext);
|
|
267
|
-
let merged;
|
|
268
|
-
if (knownKeys && sharedKeys.length > 0) {
|
|
269
|
-
const filtered = {};
|
|
270
|
-
for (const key of sharedKeys) if (knownKeys.has(key) && key in shared) filtered[key] = shared[key];
|
|
271
|
-
merged = {
|
|
272
|
-
...filtered,
|
|
273
|
-
...props,
|
|
274
|
-
ref
|
|
275
|
-
};
|
|
276
|
-
} else merged = {
|
|
266
|
+
else if (FamilyCtx) Wrapper = forwardRef((props, ref) => {
|
|
267
|
+
return createElement(SourceComponent, {
|
|
268
|
+
...useContext(FamilyCtx),
|
|
277
269
|
...props,
|
|
278
270
|
ref
|
|
279
|
-
};
|
|
280
|
-
return createElement(SourceComponent, merged);
|
|
271
|
+
});
|
|
281
272
|
});
|
|
282
|
-
|
|
283
|
-
|
|
273
|
+
else Wrapper = forwardRef((props, ref) => createElement(SourceComponent, {
|
|
274
|
+
...props,
|
|
275
|
+
ref
|
|
276
|
+
}));
|
|
277
|
+
Wrapper.displayName = `${familyName}.${name}`;
|
|
278
|
+
result[name] = Wrapper;
|
|
284
279
|
}
|
|
285
280
|
if (!("Root" in result)) throw new Error("compose(): No \"Root\" slot found. The root slot key must be exactly \"Root\" (PascalCase).");
|
|
286
281
|
return result;
|
|
287
282
|
}
|
|
288
283
|
//#endregion
|
|
284
|
+
//#region src/selectors.ts
|
|
285
|
+
/**
|
|
286
|
+
* Built-in selector aliases.
|
|
287
|
+
*
|
|
288
|
+
* Compound selectors (e.g. `_disabled`) target multiple CSS selectors
|
|
289
|
+
* via comma-separation to cover native, ARIA, and data attribute conventions.
|
|
290
|
+
*/
|
|
291
|
+
const BUILT_IN_SELECTORS = {
|
|
292
|
+
_link: {
|
|
293
|
+
selector: "&:link",
|
|
294
|
+
order: 10
|
|
295
|
+
},
|
|
296
|
+
_visited: {
|
|
297
|
+
selector: "&:visited",
|
|
298
|
+
order: 20
|
|
299
|
+
},
|
|
300
|
+
_hover: {
|
|
301
|
+
selector: "&:hover",
|
|
302
|
+
order: 30
|
|
303
|
+
},
|
|
304
|
+
_focusWithin: {
|
|
305
|
+
selector: "&:focus-within",
|
|
306
|
+
order: 40
|
|
307
|
+
},
|
|
308
|
+
_focus: {
|
|
309
|
+
selector: "&:focus",
|
|
310
|
+
order: 50
|
|
311
|
+
},
|
|
312
|
+
_focusVisible: {
|
|
313
|
+
selector: "&:focus-visible",
|
|
314
|
+
order: 60
|
|
315
|
+
},
|
|
316
|
+
_active: {
|
|
317
|
+
selector: "&:active",
|
|
318
|
+
order: 70
|
|
319
|
+
},
|
|
320
|
+
_target: {
|
|
321
|
+
selector: "&:target",
|
|
322
|
+
order: 80
|
|
323
|
+
},
|
|
324
|
+
_checked: {
|
|
325
|
+
selector: "&:checked, &[aria-checked=\"true\"], &[data-checked]",
|
|
326
|
+
order: 100
|
|
327
|
+
},
|
|
328
|
+
_invalid: {
|
|
329
|
+
selector: "&:invalid, &[aria-invalid=\"true\"], &[data-invalid]",
|
|
330
|
+
order: 110
|
|
331
|
+
},
|
|
332
|
+
_required: {
|
|
333
|
+
selector: "&:required, &[aria-required=\"true\"]",
|
|
334
|
+
order: 120
|
|
335
|
+
},
|
|
336
|
+
_readOnly: {
|
|
337
|
+
selector: "&:read-only, &[aria-readonly=\"true\"], &[data-readonly]",
|
|
338
|
+
order: 130
|
|
339
|
+
},
|
|
340
|
+
_expanded: {
|
|
341
|
+
selector: "&[aria-expanded=\"true\"], &[data-expanded]",
|
|
342
|
+
order: 140
|
|
343
|
+
},
|
|
344
|
+
_selected: {
|
|
345
|
+
selector: "&[aria-selected=\"true\"], &[data-selected]",
|
|
346
|
+
order: 150
|
|
347
|
+
},
|
|
348
|
+
_pressed: {
|
|
349
|
+
selector: "&[aria-pressed=\"true\"], &[data-pressed]",
|
|
350
|
+
order: 160
|
|
351
|
+
},
|
|
352
|
+
_disabled: {
|
|
353
|
+
selector: "&:disabled, &[disabled], &[aria-disabled=\"true\"], &[data-disabled]",
|
|
354
|
+
order: 200
|
|
355
|
+
},
|
|
356
|
+
_before: {
|
|
357
|
+
selector: "&::before",
|
|
358
|
+
order: 300
|
|
359
|
+
},
|
|
360
|
+
_after: {
|
|
361
|
+
selector: "&::after",
|
|
362
|
+
order: 310
|
|
363
|
+
},
|
|
364
|
+
_placeholder: {
|
|
365
|
+
selector: "&::placeholder",
|
|
366
|
+
order: 320
|
|
367
|
+
},
|
|
368
|
+
_selection: {
|
|
369
|
+
selector: "&::selection",
|
|
370
|
+
order: 330
|
|
371
|
+
},
|
|
372
|
+
_first: {
|
|
373
|
+
selector: "&:first-child",
|
|
374
|
+
order: 400
|
|
375
|
+
},
|
|
376
|
+
_last: {
|
|
377
|
+
selector: "&:last-child",
|
|
378
|
+
order: 410
|
|
379
|
+
},
|
|
380
|
+
_even: {
|
|
381
|
+
selector: "&:nth-child(even)",
|
|
382
|
+
order: 420
|
|
383
|
+
},
|
|
384
|
+
_odd: {
|
|
385
|
+
selector: "&:nth-child(odd)",
|
|
386
|
+
order: 430
|
|
387
|
+
},
|
|
388
|
+
_empty: {
|
|
389
|
+
selector: "&:empty",
|
|
390
|
+
order: 440
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
/**
|
|
394
|
+
* Merge user-provided selectors with built-in defaults.
|
|
395
|
+
* User selectors override built-in aliases of the same name.
|
|
396
|
+
* New aliases get an order value based on their position (500+).
|
|
397
|
+
*/
|
|
398
|
+
function mergeSelectors(base, custom) {
|
|
399
|
+
const merged = { ...base };
|
|
400
|
+
let nextOrder = 500;
|
|
401
|
+
for (const [key, selector] of Object.entries(custom)) if (key in merged) merged[key] = {
|
|
402
|
+
selector,
|
|
403
|
+
order: merged[key].order
|
|
404
|
+
};
|
|
405
|
+
else {
|
|
406
|
+
merged[key] = {
|
|
407
|
+
selector,
|
|
408
|
+
order: nextOrder
|
|
409
|
+
};
|
|
410
|
+
nextOrder += 10;
|
|
411
|
+
}
|
|
412
|
+
return merged;
|
|
413
|
+
}
|
|
414
|
+
/** Get the sorted alias keys for deterministic cascade ordering. */
|
|
415
|
+
function getSortedAliasKeys(map) {
|
|
416
|
+
return Object.keys(map).sort((a, b) => map[a].order - map[b].order);
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Serialize the selector map for the extraction pipeline.
|
|
420
|
+
* Emits a flat `Record<string, string>` (alias → selector) plus
|
|
421
|
+
* the ordered key list for cascade determinism.
|
|
422
|
+
*/
|
|
423
|
+
function serializeSelectorMap(map) {
|
|
424
|
+
const selectors = {};
|
|
425
|
+
const order = getSortedAliasKeys(map);
|
|
426
|
+
for (const key of order) selectors[key] = map[key].selector;
|
|
427
|
+
return {
|
|
428
|
+
selectors,
|
|
429
|
+
order
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
//#endregion
|
|
289
433
|
//#region src/SystemBuilder.ts
|
|
290
434
|
var SystemBuilder = class SystemBuilder {
|
|
291
435
|
#propRegistry;
|
|
292
436
|
#groupRegistry;
|
|
293
|
-
|
|
437
|
+
#selectorRegistry;
|
|
438
|
+
constructor(propRegistry, groupRegistry, selectorRegistry) {
|
|
294
439
|
this.#propRegistry = propRegistry || {};
|
|
295
440
|
this.#groupRegistry = groupRegistry || {};
|
|
441
|
+
this.#selectorRegistry = selectorRegistry || { ...BUILT_IN_SELECTORS };
|
|
442
|
+
}
|
|
443
|
+
addSelectors(selectors) {
|
|
444
|
+
const merged = mergeSelectors(this.#selectorRegistry, selectors);
|
|
445
|
+
return new SystemBuilder(this.#propRegistry, this.#groupRegistry, merged);
|
|
296
446
|
}
|
|
297
447
|
addGroup(name, config) {
|
|
298
448
|
if (name in this.#propRegistry) throw new Error(`Group name "${name}" collides with an existing prop name. Group names and prop names must be disjoint.`);
|
|
@@ -309,7 +459,7 @@ var SystemBuilder = class SystemBuilder {
|
|
|
309
459
|
return new SystemBuilder(nextProps, {
|
|
310
460
|
...this.#groupRegistry,
|
|
311
461
|
...newGroup
|
|
312
|
-
});
|
|
462
|
+
}, this.#selectorRegistry);
|
|
313
463
|
}
|
|
314
464
|
addProps(config) {
|
|
315
465
|
for (const key of Object.keys(config)) if (key in this.#groupRegistry) throw new Error(`Prop name "${key}" collides with an existing group name. Group names and prop names must be disjoint.`);
|
|
@@ -321,17 +471,18 @@ var SystemBuilder = class SystemBuilder {
|
|
|
321
471
|
return new SystemBuilder({
|
|
322
472
|
...this.#propRegistry,
|
|
323
473
|
...config
|
|
324
|
-
}, this.#groupRegistry);
|
|
474
|
+
}, this.#groupRegistry, this.#selectorRegistry);
|
|
325
475
|
}
|
|
326
476
|
includes(_systems) {
|
|
327
|
-
return this;
|
|
477
|
+
return new SystemBuilder(this.#propRegistry, this.#groupRegistry, this.#selectorRegistry);
|
|
328
478
|
}
|
|
329
479
|
build() {
|
|
330
480
|
const animus = new Animus(this.#propRegistry, this.#groupRegistry);
|
|
331
481
|
const propRegistry = this.#propRegistry;
|
|
332
482
|
const groupRegistry = this.#groupRegistry;
|
|
483
|
+
const selectorRegistry = this.#selectorRegistry;
|
|
333
484
|
const system = Object.assign(animus, { toConfig: () => {
|
|
334
|
-
return serializeInstance(propRegistry, groupRegistry);
|
|
485
|
+
return serializeInstance(propRegistry, groupRegistry, selectorRegistry);
|
|
335
486
|
} });
|
|
336
487
|
const createGlobalStyles = (styles) => {
|
|
337
488
|
return {
|
|
@@ -348,7 +499,7 @@ var SystemBuilder = class SystemBuilder {
|
|
|
348
499
|
};
|
|
349
500
|
}
|
|
350
501
|
};
|
|
351
|
-
function serializeInstance(propRegistry, groupRegistry) {
|
|
502
|
+
function serializeInstance(propRegistry, groupRegistry, selectorRegistry) {
|
|
352
503
|
const serialized = {};
|
|
353
504
|
const transforms = {};
|
|
354
505
|
for (const [propName, entry] of Object.entries(propRegistry)) {
|
|
@@ -369,10 +520,13 @@ function serializeInstance(propRegistry, groupRegistry) {
|
|
|
369
520
|
if (entry.currentVar) s.currentVar = entry.currentVar;
|
|
370
521
|
serialized[propName] = s;
|
|
371
522
|
}
|
|
523
|
+
const { selectors, order } = serializeSelectorMap(selectorRegistry);
|
|
372
524
|
return {
|
|
373
525
|
propConfig: JSON.stringify(serialized),
|
|
374
526
|
groupRegistry: JSON.stringify(groupRegistry),
|
|
375
|
-
transforms
|
|
527
|
+
transforms,
|
|
528
|
+
selectorAliases: JSON.stringify(selectors),
|
|
529
|
+
selectorOrder: JSON.stringify(order)
|
|
376
530
|
};
|
|
377
531
|
}
|
|
378
532
|
function createSystem() {
|
|
@@ -755,4 +909,4 @@ function buildVariableCss(rootVariables, breakpointVariables, modeVariables) {
|
|
|
755
909
|
return parts.join("\n\n");
|
|
756
910
|
}
|
|
757
911
|
//#endregion
|
|
758
|
-
export { Animus, AnimusExtended, AnimusExtendedWithAll, AnimusWithAll, SystemBuilder, ThemeBuilder, borderShorthand, compose, createClassResolver, createComponent, createScale, createSystem, createTheme, createTransform, gridItem, gridItemRatio, numericOrStringScale, numericScale, percentageOrAbsolute, size, stringScale };
|
|
912
|
+
export { Animus, AnimusExtended, AnimusExtendedWithAll, AnimusWithAll, BUILT_IN_SELECTORS, SystemBuilder, ThemeBuilder, borderShorthand, compose, createClassResolver, createComponent, createScale, createSystem, createTheme, createTransform, gridItem, gridItemRatio, numericOrStringScale, numericScale, percentageOrAbsolute, size, stringScale };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"m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AAM,CAAC,CAAC;CACtC,CACF,CAAC;AAIF;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,WAAW,EAAE,MAAM,GAClB,MAAM,CAQR;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAWxD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,OAAO,EACd,EAAE,EAAE;IACF,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,MAAM,GAAG,MAAM,CAAC;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC,GACA,MAAM,CAaR;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,YAAY,EAAE,MAAM,EAAE,CAAC;CACxB;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAC5B,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,MAAM,EAAE,mBAAmB,EAC3B,aAAa,CAAC,EAAE,aAAa,EAC7B,iBAAiB,CAAC,EAAE,iBAAiB,GACpC,eAAe,CAuGjB"}
|
package/dist/runtime-entry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as createComponent, t as createClassResolver } from "./createClassResolver-
|
|
1
|
+
import { n as createComponent, t as createClassResolver } from "./createClassResolver-BnSwnxrG.js";
|
|
2
2
|
export { createClassResolver, createComponent };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Selector alias registry — maps `_`-prefixed alias keys to CSS selectors.
|
|
3
|
+
*
|
|
4
|
+
* Sort order determines cascade precedence within a layer:
|
|
5
|
+
* later entries override earlier ones when specificity is equal.
|
|
6
|
+
* The ordering follows CSS conventions (LVHA) and interaction semantics
|
|
7
|
+
* (disabled beats interaction states, pseudo-elements after states).
|
|
8
|
+
*/
|
|
9
|
+
export interface SelectorAlias {
|
|
10
|
+
/** CSS selector string (comma-separated for compound selectors) */
|
|
11
|
+
selector: string;
|
|
12
|
+
/** Sort index for cascade ordering within a layer */
|
|
13
|
+
order: number;
|
|
14
|
+
}
|
|
15
|
+
export type SelectorAliasMap = Record<string, SelectorAlias>;
|
|
16
|
+
/**
|
|
17
|
+
* Built-in selector aliases.
|
|
18
|
+
*
|
|
19
|
+
* Compound selectors (e.g. `_disabled`) target multiple CSS selectors
|
|
20
|
+
* via comma-separation to cover native, ARIA, and data attribute conventions.
|
|
21
|
+
*/
|
|
22
|
+
export declare const BUILT_IN_SELECTORS: SelectorAliasMap;
|
|
23
|
+
/**
|
|
24
|
+
* Merge user-provided selectors with built-in defaults.
|
|
25
|
+
* User selectors override built-in aliases of the same name.
|
|
26
|
+
* New aliases get an order value based on their position (500+).
|
|
27
|
+
*/
|
|
28
|
+
export declare function mergeSelectors(base: SelectorAliasMap, custom: Record<string, string>): SelectorAliasMap;
|
|
29
|
+
/** Get the sorted alias keys for deterministic cascade ordering. */
|
|
30
|
+
export declare function getSortedAliasKeys(map: SelectorAliasMap): string[];
|
|
31
|
+
/**
|
|
32
|
+
* Serialize the selector map for the extraction pipeline.
|
|
33
|
+
* Emits a flat `Record<string, string>` (alias → selector) plus
|
|
34
|
+
* the ordered key list for cascade determinism.
|
|
35
|
+
*/
|
|
36
|
+
export declare function serializeSelectorMap(map: SelectorAliasMap): {
|
|
37
|
+
selectors: Record<string, string>;
|
|
38
|
+
order: string[];
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=selectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selectors.d.ts","sourceRoot":"","sources":["../src/selectors.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,WAAW,aAAa;IAC5B,mEAAmE;IACnE,QAAQ,EAAE,MAAM,CAAC;IACjB,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAE7D;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,EAAE,gBAyDhC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,gBAAgB,EACtB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC7B,gBAAgB,CAgBlB;AAED,oEAAoE;AACpE,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,gBAAgB,GAAG,MAAM,EAAE,CAElE;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,gBAAgB,GAAG;IAC3D,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB,CAOA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentPropsWithRef, ComponentType, ForwardRefExoticComponent, ReactNode } from 'react';
|
|
2
2
|
import type { AnimusExtended } from '../AnimusExtended';
|
|
3
|
-
import type { AbstractParser, CSSPropMap, CSSProps, Prop, SystemProps, ThemedScale, VariantConfig } from './config';
|
|
3
|
+
import type { AbstractParser, CSSPropMap, CSSProps, Prop, SelectorAliasProps, SystemProps, ThemedScale, VariantConfig } from './config';
|
|
4
4
|
import type { AbstractProps } from './props';
|
|
5
5
|
export declare const ConsumerProps: unique symbol;
|
|
6
6
|
export declare const VariantConfigBrand: unique symbol;
|
|
@@ -67,16 +67,23 @@ type StateProps<S> = {
|
|
|
67
67
|
* Computed from each source individually (not keyof an intersection) to
|
|
68
68
|
* avoid TS2590 "union type too complex" during declaration emit.
|
|
69
69
|
*/
|
|
70
|
-
type AnimusManagedKeys<PR extends Record<string, Prop>, GR extends Record<string, (keyof PR)[]>, V, S, AG, CP extends Record<string, Prop>> = ActiveGroupPropNames<PR, GR, AG> | keyof VariantProps<V> | keyof StateProps<S> | keyof StripIndex<CP> | 'as' | 'className' | 'children';
|
|
70
|
+
type AnimusManagedKeys<PR extends Record<string, Prop>, GR extends Record<string, (keyof PR)[]>, V, S, AG, CP extends Record<string, Prop>> = ActiveGroupPropNames<PR, GR, AG> | keyof VariantProps<V> | keyof StateProps<S> | keyof StripIndex<CP> | 'as' | 'asChild' | 'className' | 'children';
|
|
71
71
|
/**
|
|
72
72
|
* The consumer-facing props for an AnimusComponent, computed once at
|
|
73
73
|
* definition time. Used both as ForwardRefExoticComponent's P parameter
|
|
74
74
|
* and carried on the ConsumerProps brand for zero-inference access.
|
|
75
75
|
*/
|
|
76
|
-
|
|
76
|
+
/**
|
|
77
|
+
* Resolved group props — computed once, reused for both direct group
|
|
78
|
+
* props and selector alias value types. Ensures TypeScript's structural
|
|
79
|
+
* cache hits on the same mapped type instead of re-deriving.
|
|
80
|
+
*/
|
|
81
|
+
type ResolvedGroupProps<PR extends Record<string, Prop>, GR extends Record<string, (keyof PR)[]>, AG> = GroupProps<PR, GR, AG>;
|
|
82
|
+
type AnimusConsumerProps<El extends keyof JSX.IntrinsicElements, PR extends Record<string, Prop>, GR extends Record<string, (keyof PR)[]>, V, S, AG, CP extends Record<string, Prop>> = Omit<ComponentPropsWithRef<El>, AnimusManagedKeys<PR, GR, V, S, AG, CP>> & ResolvedGroupProps<PR, GR, AG> & VariantProps<V> & StateProps<S> & CustomPropValues<CP> & SelectorAliasProps<ResolvedGroupProps<PR, GR, AG>> & {
|
|
77
83
|
as?: keyof JSX.IntrinsicElements | ComponentType<{
|
|
78
84
|
className?: string;
|
|
79
85
|
}>;
|
|
86
|
+
asChild?: boolean;
|
|
80
87
|
className?: string;
|
|
81
88
|
children?: ReactNode;
|
|
82
89
|
};
|
|
@@ -86,10 +93,11 @@ export type AnimusComponent<El extends keyof JSX.IntrinsicElements, PR extends R
|
|
|
86
93
|
readonly [VariantConfigBrand]: V;
|
|
87
94
|
};
|
|
88
95
|
/** Component type for .asComponent() — wraps an existing React component. */
|
|
89
|
-
export type AnimusWrappedComponent<PR extends Record<string, Prop>, GR extends Record<string, (keyof PR)[]>, BS, V, S, AG, CP> = ForwardRefExoticComponent<Record<string, any> & GroupProps<PR, GR, {}> & VariantProps<V> & StateProps<S> & {
|
|
96
|
+
export type AnimusWrappedComponent<PR extends Record<string, Prop>, GR extends Record<string, (keyof PR)[]>, BS, V, S, AG, CP> = ForwardRefExoticComponent<Record<string, any> & GroupProps<PR, GR, {}> & VariantProps<V> & StateProps<S> & SelectorAliasProps<GroupProps<PR, GR, {}>> & {
|
|
90
97
|
as?: keyof JSX.IntrinsicElements | ComponentType<{
|
|
91
98
|
className?: string;
|
|
92
99
|
}>;
|
|
100
|
+
asChild?: boolean;
|
|
93
101
|
className?: string;
|
|
94
102
|
children?: ReactNode;
|
|
95
103
|
}> & ExtendFn<PR, GR, BS, V, S, AG, CP>;
|
|
@@ -126,14 +134,14 @@ type RootSlot<Slots extends Record<string, unknown>> = 'Root' extends keyof Slot
|
|
|
126
134
|
/**
|
|
127
135
|
* Variant keys that exist on the Root slot.
|
|
128
136
|
* Only Root variant keys are valid as shared keys — Root is the
|
|
129
|
-
*
|
|
137
|
+
* source of truth and must accept the prop for CSS cascade to work.
|
|
130
138
|
*/
|
|
131
139
|
type RootVariantKeys<Slots extends Record<string, unknown>> = keyof VariantPropsOf<RootSlot<Slots>> & string;
|
|
132
140
|
/**
|
|
133
141
|
* Configuration object for shared variant propagation.
|
|
134
142
|
* Keys are variant names from Root. Value is `true` to share.
|
|
135
143
|
* Non-Root slots that have matching variant keys receive the
|
|
136
|
-
* value
|
|
144
|
+
* value via CSS cascade. Slots without the key are unaffected.
|
|
137
145
|
*
|
|
138
146
|
* @example
|
|
139
147
|
* compose(slots, { shared: { density: true, intent: true } })
|
|
@@ -1 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AC,CAAC,GAAG,MAAM,CAAC;AAEjD;;;;;;;;GAQG;AACH,MAAM,MAAM,YAAY,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;KAC/D,CAAC,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI;CACrC,CAAC;AAEF;;;;;;GAMG;AACH,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS;IAC9B,QAAQ,CAAC,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC,CAAC;CACnC,GACG,IAAI,CAAC,CAAC,EAAE,QAAQ,CAAC,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,GAChE,CAAC,SAAS,yBAAyB,CAAC,MAAM,CAAC,CAAC,GAC1C,IAAI,CAAC,CAAC,EAAE,QAAQ,CAAC,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,GAChE,KAAK,CAAC;AAEZ;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,CAAC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;KACjE,CAAC,IAAI,MAAM,KAAK,GAAG,yBAAyB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;CACrE,CAAC"}
|
package/dist/types/config.d.ts
CHANGED
|
@@ -102,5 +102,18 @@ export type CSSPropMap<Props, System> = {
|
|
|
102
102
|
export type CSSProps<Props, System> = {
|
|
103
103
|
[K in keyof Props]?: K extends keyof System ? System[K] : K extends keyof PropertyTypes ? PropertyTypes[K] : Omit<PropertyTypes, keyof System> & Omit<System, 'theme'>;
|
|
104
104
|
};
|
|
105
|
+
/**
|
|
106
|
+
* Built-in selector alias keys.
|
|
107
|
+
* Each maps to one or more CSS selectors (e.g. `_hover` → `&:hover`).
|
|
108
|
+
*/
|
|
109
|
+
export type BuiltInSelectorAlias = '_link' | '_visited' | '_hover' | '_focus' | '_focusVisible' | '_focusWithin' | '_active' | '_target' | '_disabled' | '_checked' | '_invalid' | '_required' | '_readOnly' | '_expanded' | '_selected' | '_pressed' | '_before' | '_after' | '_placeholder' | '_selection' | '_first' | '_last' | '_even' | '_odd' | '_empty';
|
|
110
|
+
/**
|
|
111
|
+
* Selector alias props for component callsite.
|
|
112
|
+
* Each alias key accepts the same prop interface as the component's
|
|
113
|
+
* system groups, wrapped in Partial<>.
|
|
114
|
+
*/
|
|
115
|
+
export type SelectorAliasProps<GroupPropValues> = {
|
|
116
|
+
[K in BuiltInSelectorAlias]?: Partial<GroupPropValues>;
|
|
117
|
+
};
|
|
105
118
|
export {};
|
|
106
119
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/types/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AAE9B,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,aAAa,CAAC;IAC9B,UAAU,CAAC,EAAE,SAAS,CAAC,MAAM,aAAa,CAAC,EAAE,CAAC;CAC/C;AAED,MAAM,WAAW,IAAK,SAAQ,YAAY;IACxC,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ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AAC,GAAG,IAAI,CAAC,MAAM,EAAE,OAAO,CAAC;CAChE,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAC5B,OAAO,GACP,UAAU,GACV,QAAQ,GACR,QAAQ,GACR,eAAe,GACf,cAAc,GACd,SAAS,GACT,SAAS,GACT,WAAW,GACX,UAAU,GACV,UAAU,GACV,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,UAAU,GACV,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,QAAQ,GACR,OAAO,GACP,OAAO,GACP,MAAM,GACN,QAAQ,CAAC;AAEb;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,CAAC,eAAe,IAAI;KAC/C,CAAC,IAAI,oBAAoB,CAAC,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC;CACvD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@animus-ui/system",
|
|
3
|
-
"version": "0.1.0-next.
|
|
3
|
+
"version": "0.1.0-next.44",
|
|
4
4
|
"description": "Animus design system builder — tokens, prop groups, global styles",
|
|
5
5
|
"author": "codecaaron <airrobb@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"compile": "tsc --noEmit"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@animus-ui/properties": "0.1.0-next.
|
|
57
|
+
"@animus-ui/properties": "0.1.0-next.44"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"react": "^18.0.0 || ^19.0.0"
|