@styleframe/transpiler 3.2.0 → 3.4.0
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 +44 -0
- package/dist/constants.d.ts +4 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/consume/css/at-rule.d.ts +8 -0
- package/dist/consume/css/at-rule.d.ts.map +1 -0
- package/dist/consume/css/at-rule.test.d.ts +2 -0
- package/dist/consume/css/at-rule.test.d.ts.map +1 -0
- package/dist/consume/css/consume.d.ts +7 -0
- package/dist/consume/css/consume.d.ts.map +1 -0
- package/dist/consume/css/consume.test.d.ts +2 -0
- package/dist/consume/css/consume.test.d.ts.map +1 -0
- package/dist/consume/css/container.d.ts +11 -0
- package/dist/consume/css/container.d.ts.map +1 -0
- package/dist/consume/css/container.test.d.ts +2 -0
- package/dist/consume/css/container.test.d.ts.map +1 -0
- package/dist/consume/css/css.d.ts +7 -0
- package/dist/consume/css/css.d.ts.map +1 -0
- package/dist/consume/css/css.test.d.ts +2 -0
- package/dist/consume/css/css.test.d.ts.map +1 -0
- package/dist/consume/css/declarations.d.ts +7 -0
- package/dist/consume/css/declarations.d.ts.map +1 -0
- package/dist/consume/css/declarations.test.d.ts +2 -0
- package/dist/consume/css/declarations.test.d.ts.map +1 -0
- package/dist/consume/css/index.d.ts +13 -0
- package/dist/consume/css/index.d.ts.map +1 -0
- package/dist/consume/css/primitive.d.ts +7 -0
- package/dist/consume/css/primitive.d.ts.map +1 -0
- package/dist/consume/css/primitive.test.d.ts +2 -0
- package/dist/consume/css/primitive.test.d.ts.map +1 -0
- package/dist/consume/css/ref.d.ts +7 -0
- package/dist/consume/css/ref.d.ts.map +1 -0
- package/dist/consume/css/ref.test.d.ts +2 -0
- package/dist/consume/css/ref.test.d.ts.map +1 -0
- package/dist/consume/css/root.d.ts +4 -0
- package/dist/consume/css/root.d.ts.map +1 -0
- package/dist/consume/css/root.test.d.ts +2 -0
- package/dist/consume/css/root.test.d.ts.map +1 -0
- package/dist/consume/css/selector.d.ts +7 -0
- package/dist/consume/css/selector.d.ts.map +1 -0
- package/dist/consume/css/selector.test.d.ts +2 -0
- package/dist/consume/css/selector.test.d.ts.map +1 -0
- package/dist/consume/css/theme.d.ts +4 -0
- package/dist/consume/css/theme.d.ts.map +1 -0
- package/dist/consume/css/theme.test.d.ts +2 -0
- package/dist/consume/css/theme.test.d.ts.map +1 -0
- package/dist/consume/css/utility.d.ts +7 -0
- package/dist/consume/css/utility.d.ts.map +1 -0
- package/dist/consume/css/utility.test.d.ts +2 -0
- package/dist/consume/css/utility.test.d.ts.map +1 -0
- package/dist/consume/css/variable.d.ts +4 -0
- package/dist/consume/css/variable.d.ts.map +1 -0
- package/dist/consume/css/variable.test.d.ts +2 -0
- package/dist/consume/css/variable.test.d.ts.map +1 -0
- package/dist/consume/dts/constants.d.ts +25 -0
- package/dist/consume/dts/constants.d.ts.map +1 -0
- package/dist/consume/dts/consume.d.ts +6 -0
- package/dist/consume/dts/consume.d.ts.map +1 -0
- package/dist/consume/dts/index.d.ts +7 -0
- package/dist/consume/dts/index.d.ts.map +1 -0
- package/dist/consume/dts/recipe.d.ts +8 -0
- package/dist/consume/dts/recipe.d.ts.map +1 -0
- package/dist/consume/dts/recipe.test.d.ts +2 -0
- package/dist/consume/dts/recipe.test.d.ts.map +1 -0
- package/dist/consume/dts/root.d.ts +4 -0
- package/dist/consume/dts/root.d.ts.map +1 -0
- package/dist/consume/dts/root.test.d.ts +2 -0
- package/dist/consume/dts/root.test.d.ts.map +1 -0
- package/dist/consume/dts/selector.d.ts +9 -0
- package/dist/consume/dts/selector.d.ts.map +1 -0
- package/dist/consume/dts/shims.d.ts +10 -0
- package/dist/consume/dts/shims.d.ts.map +1 -0
- package/dist/consume/dts/shims.test.d.ts +2 -0
- package/dist/consume/dts/shims.test.d.ts.map +1 -0
- package/dist/consume/ts/consume.d.ts +7 -0
- package/dist/consume/ts/consume.d.ts.map +1 -0
- package/dist/consume/ts/index.d.ts +4 -0
- package/dist/consume/ts/index.d.ts.map +1 -0
- package/dist/consume/ts/recipe.d.ts +8 -0
- package/dist/consume/ts/recipe.d.ts.map +1 -0
- package/dist/consume/ts/recipe.test.d.ts +2 -0
- package/dist/consume/ts/recipe.test.d.ts.map +1 -0
- package/dist/consume/ts/root.d.ts +4 -0
- package/dist/consume/ts/root.d.ts.map +1 -0
- package/dist/consume/ts/root.test.d.ts +2 -0
- package/dist/consume/ts/root.test.d.ts.map +1 -0
- package/dist/consume/ts/selector.d.ts +9 -0
- package/dist/consume/ts/selector.d.ts.map +1 -0
- package/dist/consume/ts/selector.test.d.ts +2 -0
- package/dist/consume/ts/selector.test.d.ts.map +1 -0
- package/dist/defaults.d.ts +5 -0
- package/dist/defaults.d.ts.map +1 -0
- package/dist/defaults.test.d.ts +2 -0
- package/dist/defaults.test.d.ts.map +1 -0
- package/dist/generator/genAtRuleQuery.d.ts +2 -0
- package/dist/generator/genAtRuleQuery.d.ts.map +1 -0
- package/dist/generator/genAtRuleQuery.test.d.ts +2 -0
- package/dist/generator/genAtRuleQuery.test.d.ts.map +1 -0
- package/dist/generator/genDeclaration.d.ts +2 -0
- package/dist/generator/genDeclaration.d.ts.map +1 -0
- package/dist/generator/genDeclaration.test.d.ts +2 -0
- package/dist/generator/genDeclaration.test.d.ts.map +1 -0
- package/dist/generator/genDeclarationsBlock.d.ts +2 -0
- package/dist/generator/genDeclarationsBlock.d.ts.map +1 -0
- package/dist/generator/genDeclarationsBlock.test.d.ts +2 -0
- package/dist/generator/genDeclarationsBlock.test.d.ts.map +1 -0
- package/dist/generator/genDeclareVariable.d.ts +2 -0
- package/dist/generator/genDeclareVariable.d.ts.map +1 -0
- package/dist/generator/genDeclareVariable.test.d.ts +2 -0
- package/dist/generator/genDeclareVariable.test.d.ts.map +1 -0
- package/dist/generator/genInlineAtRule.d.ts +2 -0
- package/dist/generator/genInlineAtRule.d.ts.map +1 -0
- package/dist/generator/genInlineAtRule.test.d.ts +2 -0
- package/dist/generator/genInlineAtRule.test.d.ts.map +1 -0
- package/dist/generator/genReferenceVariable.d.ts +2 -0
- package/dist/generator/genReferenceVariable.d.ts.map +1 -0
- package/dist/generator/genReferenceVariable.test.d.ts +2 -0
- package/dist/generator/genReferenceVariable.test.d.ts.map +1 -0
- package/dist/generator/genSafePropertyName.d.ts +2 -0
- package/dist/generator/genSafePropertyName.d.ts.map +1 -0
- package/dist/generator/genSafePropertyName.test.d.ts +2 -0
- package/dist/generator/genSafePropertyName.test.d.ts.map +1 -0
- package/dist/generator/genSafeVariableName.d.ts +10 -0
- package/dist/generator/genSafeVariableName.d.ts.map +1 -0
- package/dist/generator/genSafeVariableName.test.d.ts +2 -0
- package/dist/generator/genSafeVariableName.test.d.ts.map +1 -0
- package/dist/generator/genSelector.d.ts +2 -0
- package/dist/generator/genSelector.d.ts.map +1 -0
- package/dist/generator/genSelector.test.d.ts +2 -0
- package/dist/generator/genSelector.test.d.ts.map +1 -0
- package/dist/generator/index.d.ts +10 -0
- package/dist/generator/index.d.ts.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/license.d.ts +3 -0
- package/dist/license.d.ts.map +1 -0
- package/dist/minify/defaults.d.ts +3 -0
- package/dist/minify/defaults.d.ts.map +1 -0
- package/dist/minify/generate-map.d.ts +8 -0
- package/dist/minify/generate-map.d.ts.map +1 -0
- package/dist/minify/generate-map.test.d.ts +2 -0
- package/dist/minify/generate-map.test.d.ts.map +1 -0
- package/dist/minify/index.d.ts +5 -0
- package/dist/minify/index.d.ts.map +1 -0
- package/dist/minify/shorten.d.ts +4 -0
- package/dist/minify/shorten.d.ts.map +1 -0
- package/dist/minify/shorten.test.d.ts +2 -0
- package/dist/minify/shorten.test.d.ts.map +1 -0
- package/dist/transpile.d.ts +5 -0
- package/dist/transpile.d.ts.map +1 -0
- package/dist/transpile.test.d.ts +2 -0
- package/dist/transpile.test.d.ts.map +1 -0
- package/dist/transpiler.js +775 -653
- package/dist/transpiler.umd.cjs +23 -19
- package/dist/types.d.ts +31 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils.d.ts +7 -0
- package/dist/utils.d.ts.map +1 -0
- package/package.json +10 -13
- package/dist/transpiler.d.ts +0 -65
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @styleframe/transpiler
|
|
2
2
|
|
|
3
|
+
## 3.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#234](https://github.com/styleframe-dev/styleframe/pull/234) [`c7ff8c8`](https://github.com/styleframe-dev/styleframe/commit/c7ff8c89776b2e117b0f45f3e1f8ca6695f24a29) Thanks [@alexgrozav](https://github.com/alexgrozav)! - Add recipe-level tree-shaking. Unused recipes and their utility classes are excluded from the CSS and TypeScript consumer module during production builds.
|
|
8
|
+
- **Core**: `Root._usage` gains `recipes` and `recipeUtilities` fields. Recipe utility class names are tracked per-recipe in `recipeUtilities` and promoted to `utilities` via `registerRecipeUtilities()`.
|
|
9
|
+
- **Scanner**: New `scanImports()` and `scanFileImports()` methods use importree v2's `parseImports()` to detect which recipes are imported from `virtual:styleframe`.
|
|
10
|
+
- **Transpiler**: TS and DTS consumers filter recipes by `_usage.recipes` — only emitting used recipes when the set is populated.
|
|
11
|
+
- **Plugin**: Recipe scanning integrated into the build flow after content scanning. Defaults to tree-shaking ON for builds, OFF for dev. Safety: namespace/dynamic imports include all recipes with a warning. `recipes.include` option provides an escape hatch for force-including recipes.
|
|
12
|
+
|
|
13
|
+
- [#226](https://github.com/styleframe-dev/styleframe/pull/226) [`dc99d46`](https://github.com/styleframe-dev/styleframe/commit/dc99d4699046f5e5f3dcac965648fd50b0339412) Thanks [@alexgrozav](https://github.com/alexgrozav)! - Add build-time utility class name shortening for production builds.
|
|
14
|
+
|
|
15
|
+
Generates shortening maps at transpile time with collision-safe abbreviation and built-in defaults for common CSS properties. Hashes long arbitrary values for stable compact names. Supports underscore-as-space in arbitrary values (`_padding:[10px_20px]`). Exposes `minify` plugin option with user-overridable defaults.
|
|
16
|
+
|
|
17
|
+
- [#224](https://github.com/styleframe-dev/styleframe/pull/224) [`6941920`](https://github.com/styleframe-dev/styleframe/commit/6941920a50e560e4686aebd154bb6aea4c59c258) Thanks [@alexgrozav](https://github.com/alexgrozav)! - Export named Props types from `virtual:styleframe` for each recipe (e.g. `import { button, type ButtonProps } from 'virtual:styleframe'`).
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [#235](https://github.com/styleframe-dev/styleframe/pull/235) [`6acd766`](https://github.com/styleframe-dev/styleframe/commit/6acd766eefc82139d8cd98dfb9b553449945d704) Thanks [@alexgrozav](https://github.com/alexgrozav)! - Generate DTS output as two files that describe the virtual modules in two complementary forms. The transpiler's `dts` mode now emits:
|
|
22
|
+
- `styleframe.d.ts` — top-level exports describing the `virtual:styleframe` module
|
|
23
|
+
- `shims.d.ts` — self-contained ambient declarations: a `declare module "virtual:styleframe"` carrying the full typed exports, plus the `virtual:styleframe.css` string shim
|
|
24
|
+
|
|
25
|
+
Non-Vue consumers resolve both virtual modules from `shims.d.ts` alone (picked up via the `.styleframe/**/*.d.ts` include) with **zero `paths` configuration**. Vue consumers additionally map `virtual:styleframe` to `styleframe.d.ts` via a `compilerOptions.paths` entry, because `vue-tsc` won't resolve a bare-specifier ambient module imported inside a `.vue` SFC. `styleframe init` detects plain Vue projects (a `vue` dependency without `nuxt`) and writes that `paths` entry only for them, merging into any existing `paths`; non-Vue projects just get the includes. Nuxt is excluded because its module already injects the mapping via `prepare:types`, and writing `paths` into an `extends`-based Nuxt root tsconfig would replace (not merge) Nuxt's inherited aliases.
|
|
26
|
+
|
|
27
|
+
The Nuxt module registers the same `virtual:styleframe` path mapping into Nuxt's generated types via the `prepare:types` hook, so imports type-check without manual tsconfig changes. It also fixes the module's `configKey`/`name`, which were leftover `unpluginStarter` placeholders that caused `styleframe: {}` options in `nuxt.config` to be ignored.
|
|
28
|
+
|
|
29
|
+
- [#233](https://github.com/styleframe-dev/styleframe/pull/233) [`0ef38e6`](https://github.com/styleframe-dev/styleframe/commit/0ef38e69ca941cefab31463c23980f52cae1541f) Thanks [@alexgrozav](https://github.com/alexgrozav)! - Migrate from Vite 7 to Vite 8 with native Rolldown integration. Replace esbuild transforms with Oxc in the plugin, rename `rollupOptions` to `rolldownOptions`, upgrade `vite-plugin-dts` v4 to v5 (`rollupTypes` → `bundleTypes`), and bump vitest from v3 to v4.
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [[`c7ff8c8`](https://github.com/styleframe-dev/styleframe/commit/c7ff8c89776b2e117b0f45f3e1f8ca6695f24a29), [`dc99d46`](https://github.com/styleframe-dev/styleframe/commit/dc99d4699046f5e5f3dcac965648fd50b0339412), [`0ef38e6`](https://github.com/styleframe-dev/styleframe/commit/0ef38e69ca941cefab31463c23980f52cae1541f)]:
|
|
32
|
+
- @styleframe/core@3.6.0
|
|
33
|
+
|
|
34
|
+
## 3.3.0
|
|
35
|
+
|
|
36
|
+
### Minor Changes
|
|
37
|
+
|
|
38
|
+
- [#221](https://github.com/styleframe-dev/styleframe/pull/221) [`6d406c2`](https://github.com/styleframe-dev/styleframe/commit/6d406c289b39c666a3fb7468aa3ec08f5a6d316b) Thanks [@alexgrozav](https://github.com/alexgrozav)! - Add `treeshake` option to remove unused variables from CSS output.
|
|
39
|
+
|
|
40
|
+
`root._usage` now tracks both `variables` and `utilities` referenced during config execution and scanner registration. The transpiler's new `treeshake: true` option filters `root.variables` and theme variables down to only those present in `_usage.variables`. The plugin enables treeshaking by default when generating global CSS.
|
|
41
|
+
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
- Updated dependencies [[`6d406c2`](https://github.com/styleframe-dev/styleframe/commit/6d406c289b39c666a3fb7468aa3ec08f5a6d316b)]:
|
|
45
|
+
- @styleframe/core@3.5.0
|
|
46
|
+
|
|
3
47
|
## 3.2.0
|
|
4
48
|
|
|
5
49
|
### Minor Changes
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"at-rule.test.d.ts","sourceRoot":"","sources":["../../../src/consume/css/at-rule.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consume.test.d.ts","sourceRoot":"","sources":["../../../src/consume/css/consume.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.test.d.ts","sourceRoot":"","sources":["../../../src/consume/css/container.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.test.d.ts","sourceRoot":"","sources":["../../../src/consume/css/css.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"declarations.test.d.ts","sourceRoot":"","sources":["../../../src/consume/css/declarations.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primitive.test.d.ts","sourceRoot":"","sources":["../../../src/consume/css/primitive.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ref.test.d.ts","sourceRoot":"","sources":["../../../src/consume/css/ref.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.test.d.ts","sourceRoot":"","sources":["../../../src/consume/css/root.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selector.test.d.ts","sourceRoot":"","sources":["../../../src/consume/css/selector.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.test.d.ts","sourceRoot":"","sources":["../../../src/consume/css/theme.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utility.test.d.ts","sourceRoot":"","sources":["../../../src/consume/css/utility.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { StyleframeOptions, Variable } from '@styleframe/core';
|
|
2
|
+
import { ConsumeFunction } from '../../types';
|
|
3
|
+
export declare function createVariableConsumer(consume: ConsumeFunction): (instance: Variable, options: StyleframeOptions) => string;
|
|
4
|
+
//# sourceMappingURL=variable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variable.d.ts","sourceRoot":"","sources":["../../../src/consume/css/variable.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,eAAe,IAE7D,UAAU,QAAQ,EAClB,SAAS,iBAAiB,KACxB,MAAM,CAMT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variable.test.d.ts","sourceRoot":"","sources":["../../../src/consume/css/variable.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared constants for the DTS (TypeScript declaration) output pipeline.
|
|
3
|
+
*
|
|
4
|
+
* The DTS pipeline emits two files that describe the same exports in two forms:
|
|
5
|
+
* - `styleframe.d.ts` — top-level exports (the `virtual:styleframe` module shape).
|
|
6
|
+
* Vue consumers map `virtual:styleframe` to this file via a
|
|
7
|
+
* `compilerOptions.paths` entry, because `vue-tsc` won't resolve a
|
|
8
|
+
* bare-specifier ambient module imported inside a `.vue` SFC.
|
|
9
|
+
* - `shims.d.ts` — self-contained ambient declarations: a `declare module
|
|
10
|
+
* "virtual:styleframe"` carrying the full typed exports, plus the
|
|
11
|
+
* `virtual:styleframe.css` string shim. Non-Vue consumers include this file
|
|
12
|
+
* (via the `.styleframe/**\/*.d.ts` glob) and resolve both virtual modules
|
|
13
|
+
* with zero `paths` configuration.
|
|
14
|
+
*/
|
|
15
|
+
/** Header prepended to every generated declaration file. */
|
|
16
|
+
export declare const DTS_HEADER = "// Auto-generated by @styleframe/plugin - DO NOT EDIT";
|
|
17
|
+
/** File holding the top-level exports for the `virtual:styleframe` module. */
|
|
18
|
+
export declare const DTS_TYPES_FILENAME = "styleframe.d.ts";
|
|
19
|
+
/** File holding the self-contained ambient shims for the virtual modules. */
|
|
20
|
+
export declare const DTS_SHIMS_FILENAME = "shims.d.ts";
|
|
21
|
+
/** Specifier for the typed virtual module wrapped ambiently in `shims.d.ts`. */
|
|
22
|
+
export declare const VIRTUAL_TS_MODULE_ID = "virtual:styleframe";
|
|
23
|
+
/** Specifier for the CSS virtual module resolved via the ambient shim. */
|
|
24
|
+
export declare const VIRTUAL_CSS_MODULE_ID = "virtual:styleframe.css";
|
|
25
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/consume/dts/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,4DAA4D;AAC5D,eAAO,MAAM,UAAU,0DACiC,CAAC;AAEzD,8EAA8E;AAC9E,eAAO,MAAM,kBAAkB,oBAAoB,CAAC;AAEpD,6EAA6E;AAC7E,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAE/C,gFAAgF;AAChF,eAAO,MAAM,oBAAoB,uBAAuB,CAAC;AAEzD,0EAA0E;AAC1E,eAAO,MAAM,qBAAqB,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { StyleframeOptions } from '@styleframe/core';
|
|
2
|
+
/**
|
|
3
|
+
* Consumes any token instance and returns the DTS (TypeScript declaration) string representation
|
|
4
|
+
*/
|
|
5
|
+
export declare function consume(instance: unknown, options: StyleframeOptions): string;
|
|
6
|
+
//# sourceMappingURL=consume.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consume.d.ts","sourceRoot":"","sources":["../../../src/consume/dts/consume.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAM1D;;GAEG;AACH,wBAAgB,OAAO,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,iBAAiB,GAAG,MAAM,CAiB7E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/consume/dts/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Recipe, StyleframeOptions } from '@styleframe/core';
|
|
2
|
+
import { ConsumeFunction } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Consumes a recipe instance and generates TypeScript type declaration for it.
|
|
5
|
+
* Outputs the function signature with variant props type.
|
|
6
|
+
*/
|
|
7
|
+
export declare function createRecipeConsumer(_consume: ConsumeFunction): (instance: Recipe, _options: StyleframeOptions) => string;
|
|
8
|
+
//# sourceMappingURL=recipe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../../src/consume/dts/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAElE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAmCnD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,eAAe,IAE5D,UAAU,MAAM,EAChB,UAAU,iBAAiB,KACzB,MAAM,CAmBT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipe.test.d.ts","sourceRoot":"","sources":["../../../src/consume/dts/recipe.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../../src/consume/dts/root.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEX,IAAI,EAEJ,iBAAiB,EACjB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAcnD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,eAAe,IAC9B,UAAU,IAAI,EAAE,SAAS,iBAAiB,YAyCtE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.test.d.ts","sourceRoot":"","sources":["../../../src/consume/dts/root.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Selector, StyleframeOptions } from '@styleframe/core';
|
|
2
|
+
import { ConsumeFunction } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Consumes a selector instance and generates TypeScript type declaration for it.
|
|
5
|
+
* Only generates output if the selector has an _exportName set.
|
|
6
|
+
* Exports the selector as a string type.
|
|
7
|
+
*/
|
|
8
|
+
export declare function createSelectorConsumer(_consume: ConsumeFunction): (instance: Selector, _options: StyleframeOptions) => string;
|
|
9
|
+
//# sourceMappingURL=selector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selector.d.ts","sourceRoot":"","sources":["../../../src/consume/dts/selector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,eAAe,IAE9D,UAAU,QAAQ,EAClB,UAAU,iBAAiB,KACzB,MAAM,CAQT"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generates the self-contained ambient shims for the virtual modules.
|
|
3
|
+
*
|
|
4
|
+
* Emits a `declare module "virtual:styleframe"` block carrying the full typed
|
|
5
|
+
* exports (so non-Vue consumers resolve it with zero `paths` config) followed by
|
|
6
|
+
* the `virtual:styleframe.css` string shim. The typed exports are passed in as
|
|
7
|
+
* `typesContent` — the same string written to `styleframe.d.ts`.
|
|
8
|
+
*/
|
|
9
|
+
export declare function generateShims(typesContent: string): string;
|
|
10
|
+
//# sourceMappingURL=shims.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shims.d.ts","sourceRoot":"","sources":["../../../src/consume/dts/shims.ts"],"names":[],"mappings":"AA4BA;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAY1D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shims.test.d.ts","sourceRoot":"","sources":["../../../src/consume/dts/shims.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { StyleframeOptions } from '@styleframe/core';
|
|
2
|
+
import { TranspileContext } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Consumes any token instance and returns the TS string representation
|
|
5
|
+
*/
|
|
6
|
+
export declare function consume(instance: unknown, options: StyleframeOptions, context?: TranspileContext): string;
|
|
7
|
+
//# sourceMappingURL=consume.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consume.d.ts","sourceRoot":"","sources":["../../../src/consume/ts/consume.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE1D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAKpD;;GAEG;AACH,wBAAgB,OAAO,CACtB,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,iBAAiB,EAC1B,OAAO,CAAC,EAAE,gBAAgB,GACxB,MAAM,CAiBR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/consume/ts/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Recipe, StyleframeOptions } from '@styleframe/core';
|
|
2
|
+
import { ConsumeFunction, TranspileContext } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Consumes a recipe instance and generates TypeScript code for it.
|
|
5
|
+
* Outputs the _runtime field which contains resolved keys for efficient class name lookups.
|
|
6
|
+
*/
|
|
7
|
+
export declare function createRecipeConsumer(_consume: ConsumeFunction): (instance: Recipe, _options: StyleframeOptions, context?: TranspileContext) => string;
|
|
8
|
+
//# sourceMappingURL=recipe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipe.d.ts","sourceRoot":"","sources":["../../../src/consume/ts/recipe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAElE,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGrE;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,eAAe,IAE5D,UAAU,MAAM,EAChB,UAAU,iBAAiB,EAC3B,UAAU,gBAAgB,KACxB,MAAM,CA4BT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recipe.test.d.ts","sourceRoot":"","sources":["../../../src/consume/ts/recipe.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../../src/consume/ts/root.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEX,IAAI,EAEJ,iBAAiB,EACjB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAarE,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,eAAe,IAEzD,UAAU,IAAI,EACd,SAAS,iBAAiB,EAC1B,UAAU,gBAAgB,YAgD3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.test.d.ts","sourceRoot":"","sources":["../../../src/consume/ts/root.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Selector, StyleframeOptions } from '@styleframe/core';
|
|
2
|
+
import { ConsumeFunction } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Consumes a selector instance and generates TypeScript code for it.
|
|
5
|
+
* Only generates output if the selector has an _exportName set.
|
|
6
|
+
* Exports the selector query string.
|
|
7
|
+
*/
|
|
8
|
+
export declare function createSelectorConsumer(_consume: ConsumeFunction): (instance: Selector, _options: StyleframeOptions) => string;
|
|
9
|
+
//# sourceMappingURL=selector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selector.d.ts","sourceRoot":"","sources":["../../../src/consume/ts/selector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,eAAe,IAE9D,UAAU,QAAQ,EAClB,UAAU,iBAAiB,KACzB,MAAM,CAST"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selector.test.d.ts","sourceRoot":"","sources":["../../../src/consume/ts/selector.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ThemeSelectorFn, VariableNameFn } from '@styleframe/core';
|
|
2
|
+
export { defaultUtilitySelectorFn } from '@styleframe/core';
|
|
3
|
+
export declare const defaultThemeSelectorFn: ThemeSelectorFn;
|
|
4
|
+
export declare const defaultVariableNameFn: VariableNameFn;
|
|
5
|
+
//# sourceMappingURL=defaults.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../src/defaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,eAAO,MAAM,sBAAsB,EAAE,eAEpC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,cAEnC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defaults.test.d.ts","sourceRoot":"","sources":["../src/defaults.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"genAtRuleQuery.d.ts","sourceRoot":"","sources":["../../src/generator/genAtRuleQuery.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,UAE9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"genAtRuleQuery.test.d.ts","sourceRoot":"","sources":["../../src/generator/genAtRuleQuery.test.ts"],"names":[],"mappings":""}
|