@styleframe/transpiler 3.4.0 → 3.4.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 +9 -0
- package/dist/index.d.cts +105 -0
- package/dist/index.d.mts +105 -0
- package/dist/index.d.ts +105 -10
- package/package.json +13 -7
- package/dist/constants.d.ts +0 -4
- package/dist/constants.d.ts.map +0 -1
- package/dist/consume/css/at-rule.d.ts +0 -8
- package/dist/consume/css/at-rule.d.ts.map +0 -1
- package/dist/consume/css/at-rule.test.d.ts +0 -2
- package/dist/consume/css/at-rule.test.d.ts.map +0 -1
- package/dist/consume/css/consume.d.ts +0 -7
- package/dist/consume/css/consume.d.ts.map +0 -1
- package/dist/consume/css/consume.test.d.ts +0 -2
- package/dist/consume/css/consume.test.d.ts.map +0 -1
- package/dist/consume/css/container.d.ts +0 -11
- package/dist/consume/css/container.d.ts.map +0 -1
- package/dist/consume/css/container.test.d.ts +0 -2
- package/dist/consume/css/container.test.d.ts.map +0 -1
- package/dist/consume/css/css.d.ts +0 -7
- package/dist/consume/css/css.d.ts.map +0 -1
- package/dist/consume/css/css.test.d.ts +0 -2
- package/dist/consume/css/css.test.d.ts.map +0 -1
- package/dist/consume/css/declarations.d.ts +0 -7
- package/dist/consume/css/declarations.d.ts.map +0 -1
- package/dist/consume/css/declarations.test.d.ts +0 -2
- package/dist/consume/css/declarations.test.d.ts.map +0 -1
- package/dist/consume/css/index.d.ts +0 -13
- package/dist/consume/css/index.d.ts.map +0 -1
- package/dist/consume/css/primitive.d.ts +0 -7
- package/dist/consume/css/primitive.d.ts.map +0 -1
- package/dist/consume/css/primitive.test.d.ts +0 -2
- package/dist/consume/css/primitive.test.d.ts.map +0 -1
- package/dist/consume/css/ref.d.ts +0 -7
- package/dist/consume/css/ref.d.ts.map +0 -1
- package/dist/consume/css/ref.test.d.ts +0 -2
- package/dist/consume/css/ref.test.d.ts.map +0 -1
- package/dist/consume/css/root.d.ts +0 -4
- package/dist/consume/css/root.d.ts.map +0 -1
- package/dist/consume/css/root.test.d.ts +0 -2
- package/dist/consume/css/root.test.d.ts.map +0 -1
- package/dist/consume/css/selector.d.ts +0 -7
- package/dist/consume/css/selector.d.ts.map +0 -1
- package/dist/consume/css/selector.test.d.ts +0 -2
- package/dist/consume/css/selector.test.d.ts.map +0 -1
- package/dist/consume/css/theme.d.ts +0 -4
- package/dist/consume/css/theme.d.ts.map +0 -1
- package/dist/consume/css/theme.test.d.ts +0 -2
- package/dist/consume/css/theme.test.d.ts.map +0 -1
- package/dist/consume/css/utility.d.ts +0 -7
- package/dist/consume/css/utility.d.ts.map +0 -1
- package/dist/consume/css/utility.test.d.ts +0 -2
- package/dist/consume/css/utility.test.d.ts.map +0 -1
- package/dist/consume/css/variable.d.ts +0 -4
- package/dist/consume/css/variable.d.ts.map +0 -1
- package/dist/consume/css/variable.test.d.ts +0 -2
- package/dist/consume/css/variable.test.d.ts.map +0 -1
- package/dist/consume/dts/constants.d.ts +0 -25
- package/dist/consume/dts/constants.d.ts.map +0 -1
- package/dist/consume/dts/consume.d.ts +0 -6
- package/dist/consume/dts/consume.d.ts.map +0 -1
- package/dist/consume/dts/index.d.ts +0 -7
- package/dist/consume/dts/index.d.ts.map +0 -1
- package/dist/consume/dts/recipe.d.ts +0 -8
- package/dist/consume/dts/recipe.d.ts.map +0 -1
- package/dist/consume/dts/recipe.test.d.ts +0 -2
- package/dist/consume/dts/recipe.test.d.ts.map +0 -1
- package/dist/consume/dts/root.d.ts +0 -4
- package/dist/consume/dts/root.d.ts.map +0 -1
- package/dist/consume/dts/root.test.d.ts +0 -2
- package/dist/consume/dts/root.test.d.ts.map +0 -1
- package/dist/consume/dts/selector.d.ts +0 -9
- package/dist/consume/dts/selector.d.ts.map +0 -1
- package/dist/consume/dts/shims.d.ts +0 -10
- package/dist/consume/dts/shims.d.ts.map +0 -1
- package/dist/consume/dts/shims.test.d.ts +0 -2
- package/dist/consume/dts/shims.test.d.ts.map +0 -1
- package/dist/consume/ts/consume.d.ts +0 -7
- package/dist/consume/ts/consume.d.ts.map +0 -1
- package/dist/consume/ts/index.d.ts +0 -4
- package/dist/consume/ts/index.d.ts.map +0 -1
- package/dist/consume/ts/recipe.d.ts +0 -8
- package/dist/consume/ts/recipe.d.ts.map +0 -1
- package/dist/consume/ts/recipe.test.d.ts +0 -2
- package/dist/consume/ts/recipe.test.d.ts.map +0 -1
- package/dist/consume/ts/root.d.ts +0 -4
- package/dist/consume/ts/root.d.ts.map +0 -1
- package/dist/consume/ts/root.test.d.ts +0 -2
- package/dist/consume/ts/root.test.d.ts.map +0 -1
- package/dist/consume/ts/selector.d.ts +0 -9
- package/dist/consume/ts/selector.d.ts.map +0 -1
- package/dist/consume/ts/selector.test.d.ts +0 -2
- package/dist/consume/ts/selector.test.d.ts.map +0 -1
- package/dist/defaults.d.ts +0 -5
- 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/generator/genAtRuleQuery.d.ts +0 -2
- package/dist/generator/genAtRuleQuery.d.ts.map +0 -1
- package/dist/generator/genAtRuleQuery.test.d.ts +0 -2
- package/dist/generator/genAtRuleQuery.test.d.ts.map +0 -1
- package/dist/generator/genDeclaration.d.ts +0 -2
- package/dist/generator/genDeclaration.d.ts.map +0 -1
- package/dist/generator/genDeclaration.test.d.ts +0 -2
- package/dist/generator/genDeclaration.test.d.ts.map +0 -1
- package/dist/generator/genDeclarationsBlock.d.ts +0 -2
- package/dist/generator/genDeclarationsBlock.d.ts.map +0 -1
- package/dist/generator/genDeclarationsBlock.test.d.ts +0 -2
- package/dist/generator/genDeclarationsBlock.test.d.ts.map +0 -1
- package/dist/generator/genDeclareVariable.d.ts +0 -2
- package/dist/generator/genDeclareVariable.d.ts.map +0 -1
- package/dist/generator/genDeclareVariable.test.d.ts +0 -2
- package/dist/generator/genDeclareVariable.test.d.ts.map +0 -1
- package/dist/generator/genInlineAtRule.d.ts +0 -2
- package/dist/generator/genInlineAtRule.d.ts.map +0 -1
- package/dist/generator/genInlineAtRule.test.d.ts +0 -2
- package/dist/generator/genInlineAtRule.test.d.ts.map +0 -1
- package/dist/generator/genReferenceVariable.d.ts +0 -2
- package/dist/generator/genReferenceVariable.d.ts.map +0 -1
- package/dist/generator/genReferenceVariable.test.d.ts +0 -2
- package/dist/generator/genReferenceVariable.test.d.ts.map +0 -1
- package/dist/generator/genSafePropertyName.d.ts +0 -2
- package/dist/generator/genSafePropertyName.d.ts.map +0 -1
- package/dist/generator/genSafePropertyName.test.d.ts +0 -2
- package/dist/generator/genSafePropertyName.test.d.ts.map +0 -1
- package/dist/generator/genSafeVariableName.d.ts +0 -10
- package/dist/generator/genSafeVariableName.d.ts.map +0 -1
- package/dist/generator/genSafeVariableName.test.d.ts +0 -2
- package/dist/generator/genSafeVariableName.test.d.ts.map +0 -1
- package/dist/generator/genSelector.d.ts +0 -2
- package/dist/generator/genSelector.d.ts.map +0 -1
- package/dist/generator/genSelector.test.d.ts +0 -2
- package/dist/generator/genSelector.test.d.ts.map +0 -1
- package/dist/generator/index.d.ts +0 -10
- package/dist/generator/index.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/license.d.ts +0 -3
- package/dist/license.d.ts.map +0 -1
- package/dist/minify/defaults.d.ts +0 -3
- package/dist/minify/defaults.d.ts.map +0 -1
- package/dist/minify/generate-map.d.ts +0 -8
- package/dist/minify/generate-map.d.ts.map +0 -1
- package/dist/minify/generate-map.test.d.ts +0 -2
- package/dist/minify/generate-map.test.d.ts.map +0 -1
- package/dist/minify/index.d.ts +0 -5
- package/dist/minify/index.d.ts.map +0 -1
- package/dist/minify/shorten.d.ts +0 -4
- package/dist/minify/shorten.d.ts.map +0 -1
- package/dist/minify/shorten.test.d.ts +0 -2
- package/dist/minify/shorten.test.d.ts.map +0 -1
- package/dist/transpile.d.ts +0 -5
- package/dist/transpile.d.ts.map +0 -1
- package/dist/transpile.test.d.ts +0 -2
- package/dist/transpile.test.d.ts.map +0 -1
- package/dist/types.d.ts +0 -31
- package/dist/types.d.ts.map +0 -1
- package/dist/utils.d.ts +0 -7
- package/dist/utils.d.ts.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @styleframe/transpiler
|
|
2
2
|
|
|
3
|
+
## 3.4.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#238](https://github.com/styleframe-dev/styleframe/pull/238) [`4ace91d`](https://github.com/styleframe-dev/styleframe/commit/4ace91d5e15020c29d585848ee66f6250946b2d1) Thanks [@alexgrozav](https://github.com/alexgrozav)! - Bundle type declarations on build. The shared Vite config now enables `vite-plugin-dts`'s `bundleTypes`, so each package ships a single rolled-up `.d.ts` per entry (via `@microsoft/api-extractor`) instead of a tree of per-file declarations. `@microsoft/api-extractor` is now a peer dependency of `@styleframe/config-vite`.
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`4ace91d`](https://github.com/styleframe-dev/styleframe/commit/4ace91d5e15020c29d585848ee66f6250946b2d1)]:
|
|
10
|
+
- @styleframe/core@3.6.1
|
|
11
|
+
|
|
3
12
|
## 3.4.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { CamelCase } from 'scule';
|
|
2
|
+
import { defaultUtilitySelectorFn } from '@styleframe/core';
|
|
3
|
+
import { KebabCase } from 'scule';
|
|
4
|
+
import { Root } from '@styleframe/core';
|
|
5
|
+
import { ShorteningMap } from '@styleframe/core';
|
|
6
|
+
import { Styleframe } from '@styleframe/core';
|
|
7
|
+
import { StyleframeOptions } from '@styleframe/core';
|
|
8
|
+
import { ThemeSelectorFn } from '@styleframe/core';
|
|
9
|
+
import { UtilitySelectorFn } from '@styleframe/core';
|
|
10
|
+
import { UtilitySelectorOptions } from '@styleframe/core';
|
|
11
|
+
import { VariableNameFn } from '@styleframe/core';
|
|
12
|
+
|
|
13
|
+
export declare function addIndentToLine(line: string): string;
|
|
14
|
+
|
|
15
|
+
export declare function buildClassNameLookup(root: Root, map: ShorteningMap, selectorFn?: UtilitySelectorFn): Record<string, string>;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Consumes any token instance and returns the CSS string representation
|
|
19
|
+
*/
|
|
20
|
+
export declare function consumeCSS(instance: unknown, options: StyleframeOptions, context?: TranspileContext): string;
|
|
21
|
+
|
|
22
|
+
export declare type ConsumeFunction = (instance: unknown, options: StyleframeOptions, context?: TranspileContext) => string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Consumes any token instance and returns the TS string representation
|
|
26
|
+
*/
|
|
27
|
+
export declare function consumeTS(instance: unknown, options: StyleframeOptions, context?: TranspileContext): string;
|
|
28
|
+
|
|
29
|
+
export declare function createFile(name: string, content?: string): OutputFile;
|
|
30
|
+
|
|
31
|
+
export declare const DEFAULT_INDENT = "\t";
|
|
32
|
+
|
|
33
|
+
export declare const defaultModifierShortNames: Record<string, string>;
|
|
34
|
+
|
|
35
|
+
export declare const defaultPropertyShortNames: Record<string, string>;
|
|
36
|
+
|
|
37
|
+
export declare const defaultThemeSelectorFn: ThemeSelectorFn;
|
|
38
|
+
|
|
39
|
+
export { defaultUtilitySelectorFn }
|
|
40
|
+
|
|
41
|
+
export declare const defaultVariableNameFn: VariableNameFn;
|
|
42
|
+
|
|
43
|
+
/** File holding the self-contained ambient shims for the virtual modules. */
|
|
44
|
+
export declare const DTS_SHIMS_FILENAME = "shims.d.ts";
|
|
45
|
+
|
|
46
|
+
/** File holding the top-level exports for the `virtual:styleframe` module. */
|
|
47
|
+
export declare const DTS_TYPES_FILENAME = "styleframe.d.ts";
|
|
48
|
+
|
|
49
|
+
export declare function generateShorteningMap(root: Root, defaults?: ShorteningMapDefaults): ShorteningMap;
|
|
50
|
+
|
|
51
|
+
export declare function indentLines(lines: string): string;
|
|
52
|
+
|
|
53
|
+
export declare function isUppercase(char: string): boolean;
|
|
54
|
+
|
|
55
|
+
export declare type Output = {
|
|
56
|
+
files: OutputFile[];
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export declare type OutputFile = {
|
|
60
|
+
name: string;
|
|
61
|
+
content: string;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export declare type ShorteningMapDefaults = {
|
|
65
|
+
properties?: Record<string, string>;
|
|
66
|
+
values?: Record<string, string>;
|
|
67
|
+
modifiers?: Record<string, string>;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export declare function shortenUtilityOptions(opts: UtilitySelectorOptions, map: ShorteningMap): UtilitySelectorOptions;
|
|
71
|
+
|
|
72
|
+
export declare const STATEMENT_AT_RULES: string[];
|
|
73
|
+
|
|
74
|
+
export declare const STATEMENT_OR_BLOCK_AT_RULES: string[];
|
|
75
|
+
|
|
76
|
+
export declare function toCamelCase<S extends string>(str: S): CamelCase<S>;
|
|
77
|
+
|
|
78
|
+
export declare function toKebabCase<S extends string>(str: S): KebabCase<S>;
|
|
79
|
+
|
|
80
|
+
export declare function transpile(instance: Styleframe, { type, treeshake, scanner, minify, minifyOptions, consumers, }?: TranspileOptions): Promise<Output>;
|
|
81
|
+
|
|
82
|
+
export declare type TranspileContext = {
|
|
83
|
+
treeshake?: boolean;
|
|
84
|
+
scanner?: boolean;
|
|
85
|
+
shortMap?: ShorteningMap;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export declare type TranspileOptions = {
|
|
89
|
+
type?: "css" | "ts" | "dts" | "all";
|
|
90
|
+
treeshake?: boolean;
|
|
91
|
+
scanner?: boolean;
|
|
92
|
+
minify?: boolean;
|
|
93
|
+
minifyOptions?: {
|
|
94
|
+
properties?: Record<string, string>;
|
|
95
|
+
values?: Record<string, string>;
|
|
96
|
+
modifiers?: Record<string, string>;
|
|
97
|
+
};
|
|
98
|
+
consumers?: {
|
|
99
|
+
css: ConsumeFunction;
|
|
100
|
+
ts: ConsumeFunction;
|
|
101
|
+
dts: ConsumeFunction;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
export { }
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { CamelCase } from 'scule';
|
|
2
|
+
import { defaultUtilitySelectorFn } from '@styleframe/core';
|
|
3
|
+
import { KebabCase } from 'scule';
|
|
4
|
+
import { Root } from '@styleframe/core';
|
|
5
|
+
import { ShorteningMap } from '@styleframe/core';
|
|
6
|
+
import { Styleframe } from '@styleframe/core';
|
|
7
|
+
import { StyleframeOptions } from '@styleframe/core';
|
|
8
|
+
import { ThemeSelectorFn } from '@styleframe/core';
|
|
9
|
+
import { UtilitySelectorFn } from '@styleframe/core';
|
|
10
|
+
import { UtilitySelectorOptions } from '@styleframe/core';
|
|
11
|
+
import { VariableNameFn } from '@styleframe/core';
|
|
12
|
+
|
|
13
|
+
export declare function addIndentToLine(line: string): string;
|
|
14
|
+
|
|
15
|
+
export declare function buildClassNameLookup(root: Root, map: ShorteningMap, selectorFn?: UtilitySelectorFn): Record<string, string>;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Consumes any token instance and returns the CSS string representation
|
|
19
|
+
*/
|
|
20
|
+
export declare function consumeCSS(instance: unknown, options: StyleframeOptions, context?: TranspileContext): string;
|
|
21
|
+
|
|
22
|
+
export declare type ConsumeFunction = (instance: unknown, options: StyleframeOptions, context?: TranspileContext) => string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Consumes any token instance and returns the TS string representation
|
|
26
|
+
*/
|
|
27
|
+
export declare function consumeTS(instance: unknown, options: StyleframeOptions, context?: TranspileContext): string;
|
|
28
|
+
|
|
29
|
+
export declare function createFile(name: string, content?: string): OutputFile;
|
|
30
|
+
|
|
31
|
+
export declare const DEFAULT_INDENT = "\t";
|
|
32
|
+
|
|
33
|
+
export declare const defaultModifierShortNames: Record<string, string>;
|
|
34
|
+
|
|
35
|
+
export declare const defaultPropertyShortNames: Record<string, string>;
|
|
36
|
+
|
|
37
|
+
export declare const defaultThemeSelectorFn: ThemeSelectorFn;
|
|
38
|
+
|
|
39
|
+
export { defaultUtilitySelectorFn }
|
|
40
|
+
|
|
41
|
+
export declare const defaultVariableNameFn: VariableNameFn;
|
|
42
|
+
|
|
43
|
+
/** File holding the self-contained ambient shims for the virtual modules. */
|
|
44
|
+
export declare const DTS_SHIMS_FILENAME = "shims.d.ts";
|
|
45
|
+
|
|
46
|
+
/** File holding the top-level exports for the `virtual:styleframe` module. */
|
|
47
|
+
export declare const DTS_TYPES_FILENAME = "styleframe.d.ts";
|
|
48
|
+
|
|
49
|
+
export declare function generateShorteningMap(root: Root, defaults?: ShorteningMapDefaults): ShorteningMap;
|
|
50
|
+
|
|
51
|
+
export declare function indentLines(lines: string): string;
|
|
52
|
+
|
|
53
|
+
export declare function isUppercase(char: string): boolean;
|
|
54
|
+
|
|
55
|
+
export declare type Output = {
|
|
56
|
+
files: OutputFile[];
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export declare type OutputFile = {
|
|
60
|
+
name: string;
|
|
61
|
+
content: string;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export declare type ShorteningMapDefaults = {
|
|
65
|
+
properties?: Record<string, string>;
|
|
66
|
+
values?: Record<string, string>;
|
|
67
|
+
modifiers?: Record<string, string>;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export declare function shortenUtilityOptions(opts: UtilitySelectorOptions, map: ShorteningMap): UtilitySelectorOptions;
|
|
71
|
+
|
|
72
|
+
export declare const STATEMENT_AT_RULES: string[];
|
|
73
|
+
|
|
74
|
+
export declare const STATEMENT_OR_BLOCK_AT_RULES: string[];
|
|
75
|
+
|
|
76
|
+
export declare function toCamelCase<S extends string>(str: S): CamelCase<S>;
|
|
77
|
+
|
|
78
|
+
export declare function toKebabCase<S extends string>(str: S): KebabCase<S>;
|
|
79
|
+
|
|
80
|
+
export declare function transpile(instance: Styleframe, { type, treeshake, scanner, minify, minifyOptions, consumers, }?: TranspileOptions): Promise<Output>;
|
|
81
|
+
|
|
82
|
+
export declare type TranspileContext = {
|
|
83
|
+
treeshake?: boolean;
|
|
84
|
+
scanner?: boolean;
|
|
85
|
+
shortMap?: ShorteningMap;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export declare type TranspileOptions = {
|
|
89
|
+
type?: "css" | "ts" | "dts" | "all";
|
|
90
|
+
treeshake?: boolean;
|
|
91
|
+
scanner?: boolean;
|
|
92
|
+
minify?: boolean;
|
|
93
|
+
minifyOptions?: {
|
|
94
|
+
properties?: Record<string, string>;
|
|
95
|
+
values?: Record<string, string>;
|
|
96
|
+
modifiers?: Record<string, string>;
|
|
97
|
+
};
|
|
98
|
+
consumers?: {
|
|
99
|
+
css: ConsumeFunction;
|
|
100
|
+
ts: ConsumeFunction;
|
|
101
|
+
dts: ConsumeFunction;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
export { }
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,105 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { CamelCase } from 'scule';
|
|
2
|
+
import { defaultUtilitySelectorFn } from '@styleframe/core';
|
|
3
|
+
import { KebabCase } from 'scule';
|
|
4
|
+
import { Root } from '@styleframe/core';
|
|
5
|
+
import { ShorteningMap } from '@styleframe/core';
|
|
6
|
+
import { Styleframe } from '@styleframe/core';
|
|
7
|
+
import { StyleframeOptions } from '@styleframe/core';
|
|
8
|
+
import { ThemeSelectorFn } from '@styleframe/core';
|
|
9
|
+
import { UtilitySelectorFn } from '@styleframe/core';
|
|
10
|
+
import { UtilitySelectorOptions } from '@styleframe/core';
|
|
11
|
+
import { VariableNameFn } from '@styleframe/core';
|
|
12
|
+
|
|
13
|
+
export declare function addIndentToLine(line: string): string;
|
|
14
|
+
|
|
15
|
+
export declare function buildClassNameLookup(root: Root, map: ShorteningMap, selectorFn?: UtilitySelectorFn): Record<string, string>;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Consumes any token instance and returns the CSS string representation
|
|
19
|
+
*/
|
|
20
|
+
export declare function consumeCSS(instance: unknown, options: StyleframeOptions, context?: TranspileContext): string;
|
|
21
|
+
|
|
22
|
+
export declare type ConsumeFunction = (instance: unknown, options: StyleframeOptions, context?: TranspileContext) => string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Consumes any token instance and returns the TS string representation
|
|
26
|
+
*/
|
|
27
|
+
export declare function consumeTS(instance: unknown, options: StyleframeOptions, context?: TranspileContext): string;
|
|
28
|
+
|
|
29
|
+
export declare function createFile(name: string, content?: string): OutputFile;
|
|
30
|
+
|
|
31
|
+
export declare const DEFAULT_INDENT = "\t";
|
|
32
|
+
|
|
33
|
+
export declare const defaultModifierShortNames: Record<string, string>;
|
|
34
|
+
|
|
35
|
+
export declare const defaultPropertyShortNames: Record<string, string>;
|
|
36
|
+
|
|
37
|
+
export declare const defaultThemeSelectorFn: ThemeSelectorFn;
|
|
38
|
+
|
|
39
|
+
export { defaultUtilitySelectorFn }
|
|
40
|
+
|
|
41
|
+
export declare const defaultVariableNameFn: VariableNameFn;
|
|
42
|
+
|
|
43
|
+
/** File holding the self-contained ambient shims for the virtual modules. */
|
|
44
|
+
export declare const DTS_SHIMS_FILENAME = "shims.d.ts";
|
|
45
|
+
|
|
46
|
+
/** File holding the top-level exports for the `virtual:styleframe` module. */
|
|
47
|
+
export declare const DTS_TYPES_FILENAME = "styleframe.d.ts";
|
|
48
|
+
|
|
49
|
+
export declare function generateShorteningMap(root: Root, defaults?: ShorteningMapDefaults): ShorteningMap;
|
|
50
|
+
|
|
51
|
+
export declare function indentLines(lines: string): string;
|
|
52
|
+
|
|
53
|
+
export declare function isUppercase(char: string): boolean;
|
|
54
|
+
|
|
55
|
+
export declare type Output = {
|
|
56
|
+
files: OutputFile[];
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export declare type OutputFile = {
|
|
60
|
+
name: string;
|
|
61
|
+
content: string;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export declare type ShorteningMapDefaults = {
|
|
65
|
+
properties?: Record<string, string>;
|
|
66
|
+
values?: Record<string, string>;
|
|
67
|
+
modifiers?: Record<string, string>;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
export declare function shortenUtilityOptions(opts: UtilitySelectorOptions, map: ShorteningMap): UtilitySelectorOptions;
|
|
71
|
+
|
|
72
|
+
export declare const STATEMENT_AT_RULES: string[];
|
|
73
|
+
|
|
74
|
+
export declare const STATEMENT_OR_BLOCK_AT_RULES: string[];
|
|
75
|
+
|
|
76
|
+
export declare function toCamelCase<S extends string>(str: S): CamelCase<S>;
|
|
77
|
+
|
|
78
|
+
export declare function toKebabCase<S extends string>(str: S): KebabCase<S>;
|
|
79
|
+
|
|
80
|
+
export declare function transpile(instance: Styleframe, { type, treeshake, scanner, minify, minifyOptions, consumers, }?: TranspileOptions): Promise<Output>;
|
|
81
|
+
|
|
82
|
+
export declare type TranspileContext = {
|
|
83
|
+
treeshake?: boolean;
|
|
84
|
+
scanner?: boolean;
|
|
85
|
+
shortMap?: ShorteningMap;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export declare type TranspileOptions = {
|
|
89
|
+
type?: "css" | "ts" | "dts" | "all";
|
|
90
|
+
treeshake?: boolean;
|
|
91
|
+
scanner?: boolean;
|
|
92
|
+
minify?: boolean;
|
|
93
|
+
minifyOptions?: {
|
|
94
|
+
properties?: Record<string, string>;
|
|
95
|
+
values?: Record<string, string>;
|
|
96
|
+
modifiers?: Record<string, string>;
|
|
97
|
+
};
|
|
98
|
+
consumers?: {
|
|
99
|
+
css: ConsumeFunction;
|
|
100
|
+
ts: ConsumeFunction;
|
|
101
|
+
dts: ConsumeFunction;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
export { }
|
package/package.json
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@styleframe/transpiler",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"module": "./dist/transpiler.js",
|
|
7
7
|
"main": "./dist/transpiler.umd.cjs",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
"import": {
|
|
11
|
+
"types": "./dist/index.d.mts",
|
|
12
|
+
"default": "./dist/transpiler.js"
|
|
13
|
+
},
|
|
14
|
+
"require": {
|
|
15
|
+
"types": "./dist/index.d.cts",
|
|
16
|
+
"default": "./dist/transpiler.umd.cjs"
|
|
17
|
+
}
|
|
13
18
|
}
|
|
14
19
|
},
|
|
15
20
|
"files": [
|
|
@@ -22,13 +27,14 @@
|
|
|
22
27
|
"scule": "^1.3.0"
|
|
23
28
|
},
|
|
24
29
|
"peerDependencies": {
|
|
25
|
-
"@styleframe/core": "^3.6.
|
|
30
|
+
"@styleframe/core": "^3.6.1",
|
|
26
31
|
"@styleframe/license": "^2.0.2"
|
|
27
32
|
},
|
|
28
33
|
"devDependencies": {
|
|
34
|
+
"@microsoft/api-extractor": "^7.58.7",
|
|
29
35
|
"@styleframe/config-typescript": "^3.0.0",
|
|
30
|
-
"@styleframe/config-vite": "^3.0
|
|
31
|
-
"@styleframe/core": "^3.6.
|
|
36
|
+
"@styleframe/config-vite": "^3.1.0",
|
|
37
|
+
"@styleframe/core": "^3.6.1",
|
|
32
38
|
"@styleframe/license": "^2.0.2",
|
|
33
39
|
"@vitest/coverage-v8": "^4.1.7",
|
|
34
40
|
"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,cAAc,OAAO,CAAC;AAEnC,eAAO,MAAM,kBAAkB,UAAqC,CAAC;AACrE,eAAO,MAAM,2BAA2B,UAAY,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AtRule, StyleframeOptions } from '@styleframe/core';
|
|
2
|
-
import { ConsumeFunction } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Consumes a generic at-rule instance, equivalent to setting a CSS at-rule
|
|
5
|
-
* such as @media, @supports, @keyframes, etc.
|
|
6
|
-
*/
|
|
7
|
-
export declare function createAtRuleConsumer(consume: ConsumeFunction): (instance: AtRule, options: StyleframeOptions) => string;
|
|
8
|
-
//# sourceMappingURL=at-rule.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"at-rule.d.ts","sourceRoot":"","sources":["../../../src/consume/css/at-rule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAMlE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,eAAe,IAI3D,UAAU,MAAM,EAChB,SAAS,iBAAiB,KACxB,MAAM,CAiBT"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"at-rule.test.d.ts","sourceRoot":"","sources":["../../../src/consume/css/at-rule.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { StyleframeOptions } from '@styleframe/core';
|
|
2
|
-
import { TranspileContext } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Consumes any token instance and returns the CSS string representation
|
|
5
|
-
*/
|
|
6
|
-
export declare function consume(instance: unknown, options: StyleframeOptions, context?: TranspileContext): string;
|
|
7
|
-
//# sourceMappingURL=consume.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"consume.d.ts","sourceRoot":"","sources":["../../../src/consume/css/consume.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAW1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAWpD;;GAEG;AACH,wBAAgB,OAAO,CACtB,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,iBAAiB,EAC1B,OAAO,CAAC,EAAE,gBAAgB,GACxB,MAAM,CA+BR"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"consume.test.d.ts","sourceRoot":"","sources":["../../../src/consume/css/consume.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ContainerChild, DeclarationsBlock, StyleframeOptions, Variable } from '@styleframe/core';
|
|
2
|
-
import { ConsumeFunction } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Base function for consuming container-like structures (Selector, AtRule)
|
|
5
|
-
*/
|
|
6
|
-
export declare function createContainerConsumer(consume: ConsumeFunction): (query: string, instance: {
|
|
7
|
-
variables?: Variable[];
|
|
8
|
-
declarations?: DeclarationsBlock;
|
|
9
|
-
children?: ContainerChild[];
|
|
10
|
-
}, options: StyleframeOptions) => string;
|
|
11
|
-
//# sourceMappingURL=container.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../src/consume/css/container.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,QAAQ,EACR,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAInD;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,eAAe,IAK9D,OAAO,MAAM,EACb,UAAU;IACT,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;CAC5B,EACD,SAAS,iBAAiB,KACxB,MAAM,CA6CT"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"container.test.d.ts","sourceRoot":"","sources":["../../../src/consume/css/container.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CSS, StyleframeOptions } from '@styleframe/core';
|
|
2
|
-
import { ConsumeFunction } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Consumes a CSS value, equivalent to the string body of a selector
|
|
5
|
-
*/
|
|
6
|
-
export declare function createCSSTemplateLiteralConsumer(consume: ConsumeFunction): (instance: CSS, options: StyleframeOptions) => string;
|
|
7
|
-
//# sourceMappingURL=css.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../../src/consume/css/css.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,OAAO,EAAE,eAAe,IAEvE,UAAU,GAAG,EACb,SAAS,iBAAiB,KACxB,MAAM,CAMT"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"css.test.d.ts","sourceRoot":"","sources":["../../../src/consume/css/css.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DeclarationsBlock, StyleframeOptions } from '@styleframe/core';
|
|
2
|
-
import { ConsumeFunction } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Consumes a declarations block, equivalent to setting CSS properties
|
|
5
|
-
*/
|
|
6
|
-
export declare function createDeclarationsConsumer(consume: ConsumeFunction): (instance: DeclarationsBlock, options: StyleframeOptions) => string[];
|
|
7
|
-
//# sourceMappingURL=declarations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"declarations.d.ts","sourceRoot":"","sources":["../../../src/consume/css/declarations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,eAAe,IAEjE,UAAU,iBAAiB,EAC3B,SAAS,iBAAiB,KACxB,MAAM,EAAE,CAKX"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"declarations.test.d.ts","sourceRoot":"","sources":["../../../src/consume/css/declarations.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export * from './at-rule';
|
|
2
|
-
export * from './container';
|
|
3
|
-
export * from './css';
|
|
4
|
-
export * from './consume';
|
|
5
|
-
export * from './declarations';
|
|
6
|
-
export * from './primitive';
|
|
7
|
-
export * from './ref';
|
|
8
|
-
export * from './root';
|
|
9
|
-
export * from './selector';
|
|
10
|
-
export * from './theme';
|
|
11
|
-
export * from './utility';
|
|
12
|
-
export * from './variable';
|
|
13
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/consume/css/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { StyleframeOptions } from '@styleframe/core';
|
|
2
|
-
import { ConsumeFunction } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Consumes a primitive instance, equivalent to setting a CSS value
|
|
5
|
-
*/
|
|
6
|
-
export declare function createPrimitiveConsumer(_consume: ConsumeFunction): (instance: unknown, _options: StyleframeOptions) => string;
|
|
7
|
-
//# sourceMappingURL=primitive.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"primitive.d.ts","sourceRoot":"","sources":["../../../src/consume/css/primitive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,eAAe,IAE/D,UAAU,OAAO,EACjB,UAAU,iBAAiB,KACzB,MAAM,CAKT"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"primitive.test.d.ts","sourceRoot":"","sources":["../../../src/consume/css/primitive.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Reference, StyleframeOptions } from '@styleframe/core';
|
|
2
|
-
import { ConsumeFunction } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Consumes a ref instance, equivalent to referencing a CSS variable with optional fallback
|
|
5
|
-
*/
|
|
6
|
-
export declare function createRefConsumer(consume: ConsumeFunction): (instance: Reference, options: StyleframeOptions) => string;
|
|
7
|
-
//# sourceMappingURL=ref.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ref.d.ts","sourceRoot":"","sources":["../../../src/consume/css/ref.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAGrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,eAAe,IAExD,UAAU,SAAS,EACnB,SAAS,iBAAiB,KACxB,MAAM,CAST"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ref.test.d.ts","sourceRoot":"","sources":["../../../src/consume/css/ref.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { Root, StyleframeOptions } from '@styleframe/core';
|
|
2
|
-
import { ConsumeFunction, TranspileContext } from '../../types';
|
|
3
|
-
export declare function createRootConsumer(consume: ConsumeFunction): (instance: Root, options: StyleframeOptions, context?: TranspileContext) => string;
|
|
4
|
-
//# sourceMappingURL=root.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../../src/consume/css/root.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEX,IAAI,EACJ,iBAAiB,EAEjB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGrE,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,eAAe,IAIzD,UAAU,IAAI,EACd,SAAS,iBAAiB,EAC1B,UAAU,gBAAgB,YA6C3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"root.test.d.ts","sourceRoot":"","sources":["../../../src/consume/css/root.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Selector, StyleframeOptions } from '@styleframe/core';
|
|
2
|
-
import { ConsumeFunction } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Consumes a selector instance, equivalent to setting a CSS selector
|
|
5
|
-
*/
|
|
6
|
-
export declare function createSelectorConsumer(consume: ConsumeFunction): (instance: Selector, options: StyleframeOptions) => string;
|
|
7
|
-
//# sourceMappingURL=selector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"selector.d.ts","sourceRoot":"","sources":["../../../src/consume/css/selector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnD;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,eAAe,IAI7D,UAAU,QAAQ,EAClB,SAAS,iBAAiB,KACxB,MAAM,CAGT"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"selector.test.d.ts","sourceRoot":"","sources":["../../../src/consume/css/selector.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { StyleframeOptions, Theme } from '@styleframe/core';
|
|
2
|
-
import { ConsumeFunction } from '../../types';
|
|
3
|
-
export declare function createThemeConsumer(consume: ConsumeFunction): (instance: Theme, options: StyleframeOptions) => string;
|
|
4
|
-
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/consume/css/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAInD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,eAAe,IAG9B,UAAU,KAAK,EAAE,SAAS,iBAAiB,YAMxE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme.test.d.ts","sourceRoot":"","sources":["../../../src/consume/css/theme.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { StyleframeOptions, Utility } from '@styleframe/core';
|
|
2
|
-
import { ConsumeFunction } from '../../types';
|
|
3
|
-
/**
|
|
4
|
-
* Consumes a utility instance, equivalent to setting a utility CSS selector
|
|
5
|
-
*/
|
|
6
|
-
export declare function createUtilityConsumer(consume: ConsumeFunction): (instance: Utility, options: StyleframeOptions) => string;
|
|
7
|
-
//# sourceMappingURL=utility.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../../src/consume/css/utility.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAGnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnD;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,eAAe,IAI5D,UAAU,OAAO,EACjB,SAAS,iBAAiB,KACxB,MAAM,CAiBT"}
|