@styleframe/core 3.6.0 → 3.6.1
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/CHANGELOG.md +6 -0
- package/dist/index.d.cts +665 -0
- package/dist/index.d.mts +665 -0
- package/dist/index.d.ts +665 -7
- package/package.json +11 -5
- package/dist/constants.d.ts +0 -2
- package/dist/constants.d.ts.map +0 -1
- package/dist/defaults.d.ts +0 -11
- package/dist/defaults.d.ts.map +0 -1
- package/dist/defaults.test.d.ts +0 -2
- package/dist/defaults.test.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/styleframe.d.ts +0 -20
- package/dist/styleframe.d.ts.map +0 -1
- package/dist/tokens/atRule.d.ts +0 -5
- package/dist/tokens/atRule.d.ts.map +0 -1
- package/dist/tokens/atRule.test.d.ts +0 -2
- package/dist/tokens/atRule.test.d.ts.map +0 -1
- package/dist/tokens/css.d.ts +0 -3
- package/dist/tokens/css.d.ts.map +0 -1
- package/dist/tokens/css.test.d.ts +0 -2
- package/dist/tokens/css.test.d.ts.map +0 -1
- package/dist/tokens/declarations.d.ts +0 -4
- package/dist/tokens/declarations.d.ts.map +0 -1
- package/dist/tokens/declarations.test.d.ts +0 -2
- package/dist/tokens/declarations.test.d.ts.map +0 -1
- package/dist/tokens/index.d.ts +0 -13
- package/dist/tokens/index.d.ts.map +0 -1
- package/dist/tokens/modifier.d.ts +0 -4
- package/dist/tokens/modifier.d.ts.map +0 -1
- package/dist/tokens/modifier.test.d.ts +0 -2
- package/dist/tokens/modifier.test.d.ts.map +0 -1
- package/dist/tokens/recipe.d.ts +0 -208
- package/dist/tokens/recipe.d.ts.map +0 -1
- package/dist/tokens/recipe.test.d.ts +0 -2
- package/dist/tokens/recipe.test.d.ts.map +0 -1
- package/dist/tokens/ref.d.ts +0 -3
- package/dist/tokens/ref.d.ts.map +0 -1
- package/dist/tokens/ref.test.d.ts +0 -2
- package/dist/tokens/ref.test.d.ts.map +0 -1
- package/dist/tokens/resolve.d.ts +0 -28
- package/dist/tokens/resolve.d.ts.map +0 -1
- package/dist/tokens/resolve.test.d.ts +0 -2
- package/dist/tokens/resolve.test.d.ts.map +0 -1
- package/dist/tokens/root.d.ts +0 -3
- package/dist/tokens/root.d.ts.map +0 -1
- package/dist/tokens/root.test.d.ts +0 -2
- package/dist/tokens/root.test.d.ts.map +0 -1
- package/dist/tokens/root.usage.test.d.ts +0 -2
- package/dist/tokens/root.usage.test.d.ts.map +0 -1
- package/dist/tokens/selector.d.ts +0 -3
- package/dist/tokens/selector.d.ts.map +0 -1
- package/dist/tokens/selector.test.d.ts +0 -2
- package/dist/tokens/selector.test.d.ts.map +0 -1
- package/dist/tokens/theme.d.ts +0 -3
- package/dist/tokens/theme.d.ts.map +0 -1
- package/dist/tokens/theme.test.d.ts +0 -2
- package/dist/tokens/theme.test.d.ts.map +0 -1
- package/dist/tokens/utility.d.ts +0 -6
- package/dist/tokens/utility.d.ts.map +0 -1
- package/dist/tokens/utility.test.d.ts +0 -2
- package/dist/tokens/utility.test.d.ts.map +0 -1
- package/dist/tokens/variable.d.ts +0 -5
- package/dist/tokens/variable.d.ts.map +0 -1
- package/dist/tokens/variable.test.d.ts +0 -2
- package/dist/tokens/variable.test.d.ts.map +0 -1
- package/dist/typeGuards.d.ts +0 -24
- package/dist/typeGuards.d.ts.map +0 -1
- package/dist/typeGuards.test.d.ts +0 -2
- package/dist/typeGuards.test.d.ts.map +0 -1
- package/dist/types/declarations.d.ts +0 -21
- package/dist/types/declarations.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -5
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/minify.d.ts +0 -9
- package/dist/types/minify.d.ts.map +0 -1
- package/dist/types/options.d.ts +0 -25
- package/dist/types/options.d.ts.map +0 -1
- package/dist/types/tokens.d.ts +0 -156
- package/dist/types/tokens.d.ts.map +0 -1
- package/dist/utils/capitalizeFirst.d.ts +0 -6
- package/dist/utils/capitalizeFirst.d.ts.map +0 -1
- package/dist/utils/cssSelector.d.ts +0 -6
- package/dist/utils/cssSelector.d.ts.map +0 -1
- package/dist/utils/cssSelector.test.d.ts +0 -2
- package/dist/utils/cssSelector.test.d.ts.map +0 -1
- package/dist/utils/deepClone.d.ts +0 -23
- package/dist/utils/deepClone.d.ts.map +0 -1
- package/dist/utils/generateRandomId.d.ts +0 -9
- package/dist/utils/generateRandomId.d.ts.map +0 -1
- package/dist/utils/getters.d.ts +0 -5
- package/dist/utils/getters.d.ts.map +0 -1
- package/dist/utils/getters.test.d.ts +0 -2
- package/dist/utils/getters.test.d.ts.map +0 -1
- package/dist/utils/hash.d.ts +0 -9
- package/dist/utils/hash.d.ts.map +0 -1
- package/dist/utils/hash.test.d.ts +0 -2
- package/dist/utils/hash.test.d.ts.map +0 -1
- package/dist/utils/index.d.ts +0 -9
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/isTokenEqual.d.ts +0 -3
- package/dist/utils/isTokenEqual.d.ts.map +0 -1
- package/dist/utils/isTokenEqual.test.d.ts +0 -2
- package/dist/utils/isTokenEqual.test.d.ts.map +0 -1
- package/dist/utils/merge.d.ts +0 -8
- package/dist/utils/merge.d.ts.map +0 -1
- package/dist/utils/merge.test.d.ts +0 -2
- package/dist/utils/merge.test.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@styleframe/core",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"module": "./dist/styleframe.js",
|
|
7
7
|
"main": "./dist/styleframe.umd.cjs",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
"import": {
|
|
11
|
+
"types": "./dist/index.d.mts",
|
|
12
|
+
"default": "./dist/styleframe.js"
|
|
13
|
+
},
|
|
14
|
+
"require": {
|
|
15
|
+
"types": "./dist/index.d.cts",
|
|
16
|
+
"default": "./dist/styleframe.umd.cjs"
|
|
17
|
+
}
|
|
13
18
|
}
|
|
14
19
|
},
|
|
15
20
|
"files": [
|
|
@@ -25,8 +30,9 @@
|
|
|
25
30
|
"@styleframe/license": "^2.0.2"
|
|
26
31
|
},
|
|
27
32
|
"devDependencies": {
|
|
33
|
+
"@microsoft/api-extractor": "^7.58.7",
|
|
28
34
|
"@styleframe/config-typescript": "^3.0.0",
|
|
29
|
-
"@styleframe/config-vite": "^3.0
|
|
35
|
+
"@styleframe/config-vite": "^3.1.0",
|
|
30
36
|
"@styleframe/license": "^2.0.2",
|
|
31
37
|
"@vitest/coverage-v8": "^4.1.7",
|
|
32
38
|
"typescript": "^5.8.3",
|
package/dist/constants.d.ts
DELETED
package/dist/constants.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,sBAAsB,CAAC"}
|
package/dist/defaults.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { TokenValue } from './types';
|
|
2
|
-
import { UtilitySelectorFn } from './types/options';
|
|
3
|
-
export interface TransformUtilityKeyOptions {
|
|
4
|
-
/** Transforms the key used in the utility class name */
|
|
5
|
-
replacer?: (key: string) => string;
|
|
6
|
-
/** Namespace prepended to the reference name (e.g., "spacing" makes "@sm" resolve to ref("spacing.sm")) */
|
|
7
|
-
namespace?: string | string[];
|
|
8
|
-
}
|
|
9
|
-
export declare function transformUtilityKey(replacerOrOptions?: ((key: string) => string) | TransformUtilityKeyOptions): (value: TokenValue) => Record<string, TokenValue>;
|
|
10
|
-
export declare const defaultUtilitySelectorFn: UtilitySelectorFn;
|
|
11
|
-
//# sourceMappingURL=defaults.d.ts.map
|
package/dist/defaults.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../src/defaults.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAa,UAAU,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGzD,MAAM,WAAW,0BAA0B;IAC1C,wDAAwD;IACxD,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACnC,2GAA2G;IAC3G,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC9B;AAED,wBAAgB,mBAAmB,CAClC,iBAAiB,CAAC,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,GAAG,0BAA0B,IAclE,OAAO,UAAU,KAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CA0DtD;AAED,eAAO,MAAM,wBAAwB,EAAE,iBAYtC,CAAC"}
|
package/dist/defaults.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.test.d.ts","sourceRoot":"","sources":["../src/defaults.test.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
package/dist/styleframe.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { createAtRuleFunction, createCssFunction, createKeyframesFunction, createMediaFunction, createRefFunction, createSelectorFunction, createVariableFunction, createModifierFunction, createRecipeFunction, createThemeFunction, createUtilityFunction } from './tokens';
|
|
2
|
-
import { Root, StyleframeOptions } from './types';
|
|
3
|
-
export interface Styleframe {
|
|
4
|
-
id: string;
|
|
5
|
-
root: Root;
|
|
6
|
-
variable: ReturnType<typeof createVariableFunction>;
|
|
7
|
-
selector: ReturnType<typeof createSelectorFunction>;
|
|
8
|
-
utility: ReturnType<typeof createUtilityFunction>;
|
|
9
|
-
modifier: ReturnType<typeof createModifierFunction>;
|
|
10
|
-
recipe: ReturnType<typeof createRecipeFunction>;
|
|
11
|
-
theme: ReturnType<typeof createThemeFunction>;
|
|
12
|
-
atRule: ReturnType<typeof createAtRuleFunction>;
|
|
13
|
-
keyframes: ReturnType<typeof createKeyframesFunction>;
|
|
14
|
-
media: ReturnType<typeof createMediaFunction>;
|
|
15
|
-
ref: ReturnType<typeof createRefFunction>;
|
|
16
|
-
css: ReturnType<typeof createCssFunction>;
|
|
17
|
-
options: StyleframeOptions;
|
|
18
|
-
}
|
|
19
|
-
export declare function styleframe(userOptions?: StyleframeOptions): Styleframe;
|
|
20
|
-
//# sourceMappingURL=styleframe.d.ts.map
|
package/dist/styleframe.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styleframe.d.ts","sourceRoot":"","sources":["../src/styleframe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,mBAAmB,EACnB,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,EACtB,MAAM,UAAU,CAAC;AAClB,OAAO,EAEN,sBAAsB,EACtB,oBAAoB,EAEpB,mBAAmB,EACnB,qBAAqB,EACrB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGvD,MAAM,WAAW,UAAU;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;IACpD,QAAQ,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;IACpD,OAAO,EAAE,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;IAClD,QAAQ,EAAE,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;IACpD,MAAM,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;IAChD,KAAK,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;IAC9C,MAAM,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;IAChD,SAAS,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;IACtD,KAAK,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;IAC9C,GAAG,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC1C,GAAG,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC1C,OAAO,EAAE,iBAAiB,CAAC;CAC3B;AAED,wBAAgB,UAAU,CAAC,WAAW,CAAC,EAAE,iBAAiB,GAAG,UAAU,CA8BtE"}
|
package/dist/tokens/atRule.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { AtRule, Container, ContainerInput, DeclarationsBlock, DeclarationsCallback, Root } from '../types';
|
|
2
|
-
export declare function createAtRuleFunction(parent: Container, root: Root): (identifier: string, rule: string, declarationsOrCallback?: DeclarationsBlock | ContainerInput | DeclarationsCallback) => AtRule;
|
|
3
|
-
export declare function createMediaFunction(parent: Container, root: Root): (query: string, declarationsOrCallback?: DeclarationsBlock | ContainerInput | DeclarationsCallback) => AtRule;
|
|
4
|
-
export declare function createKeyframesFunction(parent: Container, root: Root): (name: string, declarations: Record<string, DeclarationsBlock>) => AtRule;
|
|
5
|
-
//# sourceMappingURL=atRule.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"atRule.d.ts","sourceRoot":"","sources":["../../src/tokens/atRule.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,MAAM,EACN,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,IAAI,EACJ,MAAM,UAAU,CAAC;AAOlB,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,IAEhE,YAAY,MAAM,EAClB,MAAM,MAAM,EACZ,yBACG,iBAAiB,GACjB,cAAc,GACd,oBAAoB,KACrB,MAAM,CAwCT;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,IAI/D,OAAO,MAAM,EACb,yBACG,iBAAiB,GACjB,cAAc,GACd,oBAAoB,KACrB,MAAM,CAGT;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,IAInE,MAAM,MAAM,EACZ,cAAc,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,KAC7C,MAAM,CAGT"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"atRule.test.d.ts","sourceRoot":"","sources":["../../src/tokens/atRule.test.ts"],"names":[],"mappings":""}
|
package/dist/tokens/css.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { AtRule, Container, CSS, Root, TokenValue, Variable } from '../types';
|
|
2
|
-
export declare function createCssFunction(_parent: Container, root: Root): (strings: TemplateStringsArray, ...interpolations: (TokenValue | Variable | AtRule)[]) => CSS;
|
|
3
|
-
//# sourceMappingURL=css.d.ts.map
|
package/dist/tokens/css.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../src/tokens/css.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,MAAM,EACN,SAAS,EACT,GAAG,EACH,IAAI,EACJ,UAAU,EACV,QAAQ,EACR,MAAM,UAAU,CAAC;AAKlB,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,IAc9D,SAAS,oBAAoB,EAC7B,GAAG,gBAAgB,CAAC,UAAU,GAAG,QAAQ,GAAG,MAAM,CAAC,EAAE,KACnD,GAAG,CA6BN"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"css.test.d.ts","sourceRoot":"","sources":["../../src/tokens/css.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Container, DeclarationsBlock, DeclarationsCallbackContext, Root } from '../types';
|
|
2
|
-
export declare function createDeclarationsCallbackContext(parent: Container, root: Root): DeclarationsCallbackContext;
|
|
3
|
-
export declare function parseDeclarationsBlock(declarations: DeclarationsBlock, context: DeclarationsCallbackContext, parent: Container, root: Root): DeclarationsBlock;
|
|
4
|
-
//# sourceMappingURL=declarations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"declarations.d.ts","sourceRoot":"","sources":["../../src/tokens/declarations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,SAAS,EACT,iBAAiB,EACjB,2BAA2B,EAC3B,IAAI,EACJ,MAAM,UAAU,CAAC;AAYlB,wBAAgB,iCAAiC,CAChD,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,IAAI,GACR,2BAA2B,CAkB7B;AAED,wBAAgB,sBAAsB,CACrC,YAAY,EAAE,iBAAiB,EAC/B,OAAO,EAAE,2BAA2B,EACpC,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,IAAI,qBA0CV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"declarations.test.d.ts","sourceRoot":"","sources":["../../src/tokens/declarations.test.ts"],"names":[],"mappings":""}
|
package/dist/tokens/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export * from './css';
|
|
2
|
-
export * from './declarations';
|
|
3
|
-
export * from './atRule';
|
|
4
|
-
export * from './modifier';
|
|
5
|
-
export * from './ref';
|
|
6
|
-
export * from './root';
|
|
7
|
-
export * from './selector';
|
|
8
|
-
export * from './utility';
|
|
9
|
-
export * from './variable';
|
|
10
|
-
export * from './theme';
|
|
11
|
-
export * from './recipe';
|
|
12
|
-
export * from './resolve';
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tokens/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Container, ModifierFactory, Root } from '../types';
|
|
2
|
-
export declare function applyModifiers<InstanceType extends Container>(baseInstance: InstanceType, root: Root, modifiers: Map<string, ModifierFactory>): InstanceType;
|
|
3
|
-
export declare function createModifierFunction(_parent: Container, root: Root): <Key extends string>(key: Key | Key[], factory: ModifierFactory["factory"]) => ModifierFactory;
|
|
4
|
-
//# sourceMappingURL=modifier.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modifier.d.ts","sourceRoot":"","sources":["../../src/tokens/modifier.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAOjE,wBAAgB,cAAc,CAAC,YAAY,SAAS,SAAS,EAC5D,YAAY,EAAE,YAAY,EAC1B,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,GACrC,YAAY,CAiDd;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,IAC3C,GAAG,SAAS,MAAM,EAC1C,KAAK,GAAG,GAAG,GAAG,EAAE,EAChB,SAAS,eAAe,CAAC,SAAS,CAAC,KACjC,eAAe,CAWlB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modifier.test.d.ts","sourceRoot":"","sources":["../../src/tokens/modifier.test.ts"],"names":[],"mappings":""}
|
package/dist/tokens/recipe.d.ts
DELETED
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
import { Container, Recipe, RecipeRuntime, Root, VariantsBase } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Creates a recipe function to define design system recipes with variants.
|
|
4
|
-
*
|
|
5
|
-
* @example ```ts
|
|
6
|
-
* recipe({
|
|
7
|
-
* name: "button",
|
|
8
|
-
* base: {
|
|
9
|
-
* borderWidth: ref(borderWidth), // Token reference => Variable<'border-width'> => Auto-generate _border-width
|
|
10
|
-
* borderStyle: ref(borderStyle), // Token reference => Variable<'border-style'> => Auto-generate _border-style
|
|
11
|
-
* boxShadow: ref(boxShadowMd), // Token reference => Variable<'box-shadow.md'> => Auto-generate _box-shadow:md
|
|
12
|
-
* 'hover:focus': { // Applying hover and focus modifiers
|
|
13
|
-
* boxShadow: ref(boxShadowSm), // Token reference => Variable<'box-shadow.sm'> => Auto-generate _hover:box-shadow:sm
|
|
14
|
-
* }
|
|
15
|
-
* },
|
|
16
|
-
* variants: {
|
|
17
|
-
* color: {
|
|
18
|
-
* primary: {
|
|
19
|
-
* background: ref(colorPrimary), // Token reference => Variable<'color.primary'> => Auto-generate _background:primary
|
|
20
|
-
* color: ref(colorWhite), // Token reference => Variable<'color.white'> => Auto-generate _color:white
|
|
21
|
-
* borderColor: ref(colorPrimaryShade50), // Token reference => Variable<'color.primary-shade-50'> => Auto-generate _border-color:primary-shade-50,
|
|
22
|
-
* },
|
|
23
|
-
* secondary: {
|
|
24
|
-
* background: "@color.secondary", // Token path => Variable<'color.secondary'> => Auto-generate _background:secondary
|
|
25
|
-
* color: "@color.white", // Token path => Variable<'color.white'> => Auto-generate _color:white
|
|
26
|
-
* borderColor: "@color.secondary-shade-50", // Token path => Variable<'color.secondary-shade-50'> => Auto-generate _border-color:secondary
|
|
27
|
-
* },
|
|
28
|
-
* disabled: {
|
|
29
|
-
* false: {},
|
|
30
|
-
* true: {
|
|
31
|
-
* opacity: "@opacity.50", // Token path => Variable<'opacity.50'> => Auto-generate _opacity:50
|
|
32
|
-
* cursor: "not-allowed", // Arbitrary value => Auto-generate _cursor:[not-allowed]
|
|
33
|
-
* }
|
|
34
|
-
* }
|
|
35
|
-
* },
|
|
36
|
-
* size: {
|
|
37
|
-
* sm: {
|
|
38
|
-
* padding: "@spacing.sm", // Token path => Variable<'spacing.sm'> => Auto-generate _padding:sm
|
|
39
|
-
* fontSize: "@font-size.sm", // Token path => Variable<'font-size.sm'> => Auto-generate _font-size:sm
|
|
40
|
-
* },
|
|
41
|
-
* md: {
|
|
42
|
-
* padding: "1rem", // Arbitrary value => Auto-generate _padding:[1rem]
|
|
43
|
-
* fontSize: "1rem", // Arbitrary value => Auto-generate _font-size:[1rem]
|
|
44
|
-
* },
|
|
45
|
-
* lg: {
|
|
46
|
-
* padding: "@spacing.lg", // Token path => Variable<'spacing.lg'> => Auto-generate _padding:lg
|
|
47
|
-
* fontSize: "1.25rem", // Arbitrary value => Auto-generate _font-size:[1.25rem]
|
|
48
|
-
* },
|
|
49
|
-
* },
|
|
50
|
-
* },
|
|
51
|
-
* defaultVariants: {
|
|
52
|
-
* color: "primary",
|
|
53
|
-
* size: "md",
|
|
54
|
-
* },
|
|
55
|
-
* compoundVariants: [
|
|
56
|
-
* {
|
|
57
|
-
* match: {
|
|
58
|
-
* color: "primary",
|
|
59
|
-
* disabled: false
|
|
60
|
-
* },
|
|
61
|
-
* css: {
|
|
62
|
-
* hover: {
|
|
63
|
-
* background: "@color.primary-shade-50", // Token path => Variable<'color.primary-shade-50'> => Auto-generate _hover:background:primary-shade-50
|
|
64
|
-
* }
|
|
65
|
-
* },
|
|
66
|
-
* },
|
|
67
|
-
* {
|
|
68
|
-
* match: {
|
|
69
|
-
* color: "secondary",
|
|
70
|
-
* disabled: false
|
|
71
|
-
* },
|
|
72
|
-
* css: {
|
|
73
|
-
* hover: {
|
|
74
|
-
* background: ref(colorSecondaryShade50), // Token reference => Variable<'color.secondary-shade-50'> => Auto-generate _hover:background:secondary-shade-50
|
|
75
|
-
* }
|
|
76
|
-
* },
|
|
77
|
-
* },
|
|
78
|
-
* ],
|
|
79
|
-
* _runtime: {
|
|
80
|
-
* base: {
|
|
81
|
-
* borderWidth: 'default',
|
|
82
|
-
* borderStyle: 'default',
|
|
83
|
-
* boxShadow: 'md',
|
|
84
|
-
* 'hover:focus': {
|
|
85
|
-
* boxShadow: 'sm',
|
|
86
|
-
* }
|
|
87
|
-
* },
|
|
88
|
-
* variants: {
|
|
89
|
-
* color: {
|
|
90
|
-
* primary: {
|
|
91
|
-
* background: "primary",
|
|
92
|
-
* color: "white",
|
|
93
|
-
* borderColor: "primary-shade-50",
|
|
94
|
-
* },
|
|
95
|
-
* secondary: {
|
|
96
|
-
* background: "secondary",
|
|
97
|
-
* color: "white",
|
|
98
|
-
* borderColor: "secondary-shade-50",
|
|
99
|
-
* }
|
|
100
|
-
* },
|
|
101
|
-
* disabled: {
|
|
102
|
-
* false: {},
|
|
103
|
-
* true: {
|
|
104
|
-
* opacity: "50",
|
|
105
|
-
* cursor: "[not-allowed]",
|
|
106
|
-
* }
|
|
107
|
-
* },
|
|
108
|
-
* size: {
|
|
109
|
-
* sm: {
|
|
110
|
-
* padding: "sm",
|
|
111
|
-
* fontSize: "sm",
|
|
112
|
-
* },
|
|
113
|
-
* md: {
|
|
114
|
-
* padding: "[1rem]",
|
|
115
|
-
* fontSize: "[1rem]",
|
|
116
|
-
* },
|
|
117
|
-
* lg: {
|
|
118
|
-
* padding: "lg",
|
|
119
|
-
* fontSize: "[1.25rem]",
|
|
120
|
-
* },
|
|
121
|
-
* },
|
|
122
|
-
* },
|
|
123
|
-
* defaultVariants: {
|
|
124
|
-
* color: "primary",
|
|
125
|
-
* size: "md",
|
|
126
|
-
* },
|
|
127
|
-
* compoundVariants: [
|
|
128
|
-
* {
|
|
129
|
-
* match: {
|
|
130
|
-
* color: "primary",
|
|
131
|
-
* disabled: false
|
|
132
|
-
* },
|
|
133
|
-
* css: {
|
|
134
|
-
* hover: {
|
|
135
|
-
* background: "primary-shade-50",
|
|
136
|
-
* }
|
|
137
|
-
* },
|
|
138
|
-
* },
|
|
139
|
-
* {
|
|
140
|
-
* match: {
|
|
141
|
-
* color: "secondary",
|
|
142
|
-
* disabled: false
|
|
143
|
-
* },
|
|
144
|
-
* css: {
|
|
145
|
-
* hover: {
|
|
146
|
-
* background: 'secondary-shade-50',
|
|
147
|
-
* }
|
|
148
|
-
* },
|
|
149
|
-
* },
|
|
150
|
-
* ],
|
|
151
|
-
* }
|
|
152
|
-
* });
|
|
153
|
-
* ```
|
|
154
|
-
*/
|
|
155
|
-
export declare function createRecipeFunction(_parent: Container, root: Root): <Name extends string, Variants extends VariantsBase>(options: Omit<Recipe<Name, Variants>, "type">) => Recipe<Name, Variants>;
|
|
156
|
-
/**
|
|
157
|
-
* Generates the runtime object for a recipe.
|
|
158
|
-
* This object contains resolved runtime keys for efficient class name lookups.
|
|
159
|
-
*
|
|
160
|
-
* @param recipe - The recipe to generate runtime for
|
|
161
|
-
* @param root - The root object containing utility factories
|
|
162
|
-
* @returns The runtime object
|
|
163
|
-
*/
|
|
164
|
-
export declare function generateRecipeRuntime<Name extends string, Variants extends VariantsBase>(recipe: Recipe<Name, Variants>, root: Root): RecipeRuntime<Variants>;
|
|
165
|
-
/**
|
|
166
|
-
* Processes a recipe and creates utilities for all style declarations.
|
|
167
|
-
*
|
|
168
|
-
* This function iterates through all style fields in a recipe:
|
|
169
|
-
* 1. `base` - Root level field key-value pairs
|
|
170
|
-
* 2. `variants.*.*` - Each variant group's options containing field key-value pairs
|
|
171
|
-
* 3. `compoundVariants.*.css` - Each compound variant's css declarations
|
|
172
|
-
*
|
|
173
|
-
* For efficiency, it:
|
|
174
|
-
* - Collects all values needed for each utility key across the entire recipe
|
|
175
|
-
* - Retrieves each utility factory only once
|
|
176
|
-
* - Creates all utility instances in a single call per utility
|
|
177
|
-
*
|
|
178
|
-
* @param recipe - The recipe to process
|
|
179
|
-
* @param root - The root object containing utility factories
|
|
180
|
-
*
|
|
181
|
-
* @example
|
|
182
|
-
* ```ts
|
|
183
|
-
* const buttonRecipe = recipe({
|
|
184
|
-
* name: "button",
|
|
185
|
-
* base: { borderWidth: "thin" },
|
|
186
|
-
* variants: {
|
|
187
|
-
* size: {
|
|
188
|
-
* sm: { padding: "0.5rem" },
|
|
189
|
-
* lg: { padding: "1rem" },
|
|
190
|
-
* },
|
|
191
|
-
* },
|
|
192
|
-
* });
|
|
193
|
-
*
|
|
194
|
-
* processRecipeUtilities(buttonRecipe, root);
|
|
195
|
-
* // Creates:
|
|
196
|
-
* // - borderWidth utility with value "thin"
|
|
197
|
-
* // - padding utility with values ["0.5rem", "1rem"]
|
|
198
|
-
* ```
|
|
199
|
-
*/
|
|
200
|
-
export declare function processRecipeUtilities(recipe: Recipe, root: Root): void;
|
|
201
|
-
/**
|
|
202
|
-
* Promotes recipe utility class names from `_usage.recipeUtilities` into `_usage.utilities`.
|
|
203
|
-
*
|
|
204
|
-
* When called without `recipeNames`, promotes all recipes (backward-compatible default).
|
|
205
|
-
* When called with a set of recipe names, only promotes matching entries.
|
|
206
|
-
*/
|
|
207
|
-
export declare function registerRecipeUtilities(root: Root, recipeNames?: Set<string>): void;
|
|
208
|
-
//# sourceMappingURL=recipe.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../src/tokens/recipe.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,SAAS,EAGT,MAAM,EACN,aAAa,EAGb,IAAI,EAIJ,YAAY,EACZ,MAAM,UAAU,CAAC;AAGlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwJG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,IAC3C,IAAI,SAAS,MAAM,EAAE,QAAQ,SAAS,YAAY,EACxE,SAAS,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,KAC3C,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAczB;AAkED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACpC,IAAI,SAAS,MAAM,EACnB,QAAQ,SAAS,YAAY,EAC5B,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,GAAG,aAAa,CAAC,QAAQ,CAAC,CAkDrE;AA0FD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CA4FvE;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACtC,IAAI,EAAE,IAAI,EACV,WAAW,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,GACvB,IAAI,CAQN"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recipe.test.d.ts","sourceRoot":"","sources":["../../src/tokens/recipe.test.ts"],"names":[],"mappings":""}
|
package/dist/tokens/ref.d.ts
DELETED
package/dist/tokens/ref.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ref.d.ts","sourceRoot":"","sources":["../../src/tokens/ref.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,SAAS,EACT,SAAS,EACT,IAAI,EAEJ,QAAQ,EACR,MAAM,UAAU,CAAC;AAGlB,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,IAC1C,IAAI,SAAS,MAAM,EACtC,UAAU,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,EAC/B,WAAW,MAAM,KACf,SAAS,CAAC,IAAI,CAAC,CA6BlB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ref.test.d.ts","sourceRoot":"","sources":["../../src/tokens/ref.test.ts"],"names":[],"mappings":""}
|
package/dist/tokens/resolve.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Container, Reference, Root, TokenValue } from '../types';
|
|
2
|
-
/**
|
|
3
|
-
* Records a variable name in `root._usage.variables` for any Reference
|
|
4
|
-
* embedded in the given value (either the value itself or any Reference
|
|
5
|
-
* parts inside a CSS object).
|
|
6
|
-
*/
|
|
7
|
-
export declare function trackReferenceUsage(root: Root, value: TokenValue): void;
|
|
8
|
-
export type RefFunction = (variable: string, fallback?: string) => Reference;
|
|
9
|
-
export declare function parseAtReferences(str: string): TokenValue[];
|
|
10
|
-
/**
|
|
11
|
-
* Checks whether a variable with the given name exists in the scope chain,
|
|
12
|
-
* walking from the given scope up through ancestors via parentId.
|
|
13
|
-
*/
|
|
14
|
-
export declare function findVariableInScope(name: string, scope: Container, root: Root): boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Validates that a variable name exists in the scope chain.
|
|
17
|
-
* Walks from the given scope up through ancestors to root.
|
|
18
|
-
* Throws if the variable is not defined.
|
|
19
|
-
*/
|
|
20
|
-
export declare function validateReference(name: string, scope: Container, root: Root): void;
|
|
21
|
-
/**
|
|
22
|
-
* Creates a resolver that converts @-prefixed variable references in string values.
|
|
23
|
-
* - Exact match "@name" → Reference object
|
|
24
|
-
* - Embedded "1px solid @name" → CSS object with mixed parts
|
|
25
|
-
* - Non-string or no @ → returns value unchanged
|
|
26
|
-
*/
|
|
27
|
-
export declare function createPropertyValueResolver(parent: Container, root: Root): (value: TokenValue) => TokenValue;
|
|
28
|
-
//# sourceMappingURL=resolve.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../../src/tokens/resolve.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAO,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE5E;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI,CAavE;AAED,MAAM,MAAM,WAAW,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,SAAS,CAAC;AAI7E,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,EAAE,CAgB3D;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,IAAI,GACR,OAAO,CAeT;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAChC,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,IAAI,GACR,IAAI,CAMN;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,IACnC,OAAO,UAAU,KAAG,UAAU,CA2BnE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resolve.test.d.ts","sourceRoot":"","sources":["../../src/tokens/resolve.test.ts"],"names":[],"mappings":""}
|
package/dist/tokens/root.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../src/tokens/root.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAGrC,wBAAgB,UAAU,IAAI,IAAI,CAuBjC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"root.test.d.ts","sourceRoot":"","sources":["../../src/tokens/root.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"root.usage.test.d.ts","sourceRoot":"","sources":["../../src/tokens/root.usage.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { Container, ContainerInput, DeclarationsBlock, DeclarationsCallback, Root, Selector } from '../types';
|
|
2
|
-
export declare function createSelectorFunction(parent: Container, root: Root): (query: string, declarationsOrCallback: DeclarationsBlock | ContainerInput | DeclarationsCallback) => Selector;
|
|
3
|
-
//# sourceMappingURL=selector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"selector.d.ts","sourceRoot":"","sources":["../../src/tokens/selector.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,SAAS,EACT,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,IAAI,EACJ,QAAQ,EACR,MAAM,UAAU,CAAC;AAOlB,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,IAElE,OAAO,MAAM,EACb,wBACG,iBAAiB,GACjB,cAAc,GACd,oBAAoB,KACrB,QAAQ,CAmCX"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"selector.test.d.ts","sourceRoot":"","sources":["../../src/tokens/selector.test.ts"],"names":[],"mappings":""}
|
package/dist/tokens/theme.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/tokens/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,oBAAoB,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAI7E,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,IAC1C,MAAM,MAAM,EAAE,UAAU,oBAAoB,KAAG,KAAK,CAwB1E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme.test.d.ts","sourceRoot":"","sources":["../../src/tokens/theme.test.ts"],"names":[],"mappings":""}
|
package/dist/tokens/utility.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { Container, Root, UtilityAutogenerateFn, UtilityCallbackFn, UtilityCreatorFn } from '../types';
|
|
2
|
-
export declare function createUtilityFunction(parent: Container, root: Root): <Name extends string>(name: Name, factory: UtilityCallbackFn, options?: {
|
|
3
|
-
autogenerate?: UtilityAutogenerateFn;
|
|
4
|
-
namespace?: string | string[];
|
|
5
|
-
}) => UtilityCreatorFn;
|
|
6
|
-
//# sourceMappingURL=utility.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../src/tokens/utility.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACX,SAAS,EAGT,IAAI,EAGJ,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAEhB,MAAM,UAAU,CAAC;AAiHlB,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,IAC1C,IAAI,SAAS,MAAM,EAC1C,MAAM,IAAI,EACV,SAAS,iBAAiB,EAC1B,UAAS;IACR,YAAY,CAAC,EAAE,qBAAqB,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACzB,KACJ,gBAAgB,CAiMnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utility.test.d.ts","sourceRoot":"","sources":["../../src/tokens/utility.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Container, Root, TokenValue, Variable } from '../types';
|
|
2
|
-
export declare function createVariableFunction(parent: Container, root: Root): <Name extends string>(nameOrInstance: Name | Variable<Name>, value: TokenValue, options?: {
|
|
3
|
-
default: boolean;
|
|
4
|
-
}) => Variable<Name>;
|
|
5
|
-
//# sourceMappingURL=variable.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"variable.d.ts","sourceRoot":"","sources":["../../src/tokens/variable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAItE,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,IAC1C,IAAI,SAAS,MAAM,EAC3C,gBAAgB,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,EACrC,OAAO,UAAU,EACjB,UAAS;IACR,OAAO,EAAE,OAAO,CAAC;CAGjB,KACC,QAAQ,CAAC,IAAI,CAAC,CAoCjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"variable.test.d.ts","sourceRoot":"","sources":["../../src/tokens/variable.test.ts"],"names":[],"mappings":""}
|
package/dist/typeGuards.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { AtRule, Container, ContainerInput, CSS, ModifierFactory, PrimitiveTokenValue, Recipe, Reference, Root, Selector, Theme, TokenType, TokenValue, Utility, Variable } from './types';
|
|
2
|
-
import { Styleframe } from './styleframe';
|
|
3
|
-
export declare function isObject(value: unknown): value is object;
|
|
4
|
-
/**
|
|
5
|
-
* Tokens
|
|
6
|
-
*/
|
|
7
|
-
export declare function isToken<T>(value: unknown, type: TokenType): value is T;
|
|
8
|
-
export declare function isVariable<Name extends string = string>(value: unknown): value is Variable<Name>;
|
|
9
|
-
export declare function isRef<Name extends string = string>(value: unknown): value is Reference<Name>;
|
|
10
|
-
export declare function isSelector(value: unknown): value is Selector;
|
|
11
|
-
export declare function isAtRule(value: unknown): value is AtRule;
|
|
12
|
-
export declare function isUtility<Name extends string = string>(value: unknown): value is Utility<Name>;
|
|
13
|
-
export declare function isModifier(value: unknown): value is ModifierFactory;
|
|
14
|
-
export declare function isCSS(value: unknown): value is CSS;
|
|
15
|
-
export declare function isTheme(value: unknown): value is Theme;
|
|
16
|
-
export declare function isRoot(value: unknown): value is Root;
|
|
17
|
-
export declare function isRecipe(value: unknown): value is Recipe;
|
|
18
|
-
export declare function isPrimitiveTokenValue(value: unknown): value is PrimitiveTokenValue;
|
|
19
|
-
export declare function isTokenValue(value: unknown): value is TokenValue;
|
|
20
|
-
export declare function isContainer(value: unknown): value is Container;
|
|
21
|
-
export declare function isContainerInput(value: unknown): value is ContainerInput;
|
|
22
|
-
export declare function isKeyReferenceValue(value: unknown): value is `@${string}`;
|
|
23
|
-
export declare function isStyleframe(value: unknown): value is Styleframe;
|
|
24
|
-
//# sourceMappingURL=typeGuards.d.ts.map
|
package/dist/typeGuards.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["../src/typeGuards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,MAAM,EACN,SAAS,EACT,cAAc,EACd,GAAG,EACH,eAAe,EACf,mBAAmB,EACnB,MAAM,EACN,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,SAAS,EACT,UAAU,EACV,OAAO,EACP,QAAQ,EACR,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAExD;AAED;;GAEG;AAEH,wBAAgB,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,GAAG,KAAK,IAAI,CAAC,CAEtE;AAED,wBAAgB,UAAU,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM,EACtD,KAAK,EAAE,OAAO,GACZ,KAAK,IAAI,QAAQ,CAAC,IAAI,CAAC,CAEzB;AAED,wBAAgB,KAAK,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM,EACjD,KAAK,EAAE,OAAO,GACZ,KAAK,IAAI,SAAS,CAAC,IAAI,CAAC,CAE1B;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ,CAE5D;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAExD;AAED,wBAAgB,SAAS,CAAC,IAAI,SAAS,MAAM,GAAG,MAAM,EACrD,KAAK,EAAE,OAAO,GACZ,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAExB;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,eAAe,CAEnE;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,GAAG,CAElD;AAED,wBAAgB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,KAAK,CAEtD;AAED,wBAAgB,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,IAAI,CAEpD;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAExD;AAED,wBAAgB,qBAAqB,CACpC,KAAK,EAAE,OAAO,GACZ,KAAK,IAAI,mBAAmB,CAO9B;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAOhE;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,SAAS,CAQ9D;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAOxE;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,IAAI,MAAM,EAAE,CAEzE;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAWhE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typeGuards.test.d.ts","sourceRoot":"","sources":["../src/typeGuards.test.ts"],"names":[],"mappings":""}
|