teacss 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -13,7 +13,7 @@ tables, while its subpaths expose the engine and official presets.
13
13
  Use it for normal TeaCSS applications. Preset authors, custom integration
14
14
  authors, and tooling authors should import the narrower `@teacss/*` packages
15
15
  that own those extension APIs; the root entry intentionally does not expose
16
- low-level factories such as `createDefiner`.
16
+ low-level factories such as `createReciper`.
17
17
 
18
18
  The base installation contains the runtime class helpers, engine core, and
19
19
  official presets. Build integrations are separate packages, so install and
@@ -293,27 +293,27 @@ The repeated `className` spelling is separated by boundary:
293
293
  `className` is accepted by a single-element recipe call or one named resolver.
294
294
  A multi-element recipe call itself accepts shared selections only.
295
295
 
296
- `@teacss/classes` exports the factory rather than a pre-bound definer. This
296
+ `@teacss/classes` exports the factory rather than a pre-bound reciper. This
297
297
  integration creates its own `recipe` from the official `cn`; custom
298
298
  integrations follow the same boundary with their own merger:
299
299
 
300
300
  ```ts
301
- import { createDefiner, createMerger } from "@teacss/classes";
301
+ import { createReciper, createMerger } from "@teacss/classes";
302
302
 
303
303
  const merge = createMerger({ conflicts, plugins });
304
- export const recipe = createDefiner({ merge });
304
+ export const recipe = createReciper({ merge });
305
305
  ```
306
306
 
307
- `createDefiner` and its type-only `RecipeDefiner` return type are intentionally
307
+ `createReciper` and its type-only `Reciper` return type are intentionally
308
308
  available only from `@teacss/classes`; the named return type keeps declarations
309
- for exported integration-owned definers compact. Normal recipe libraries
309
+ for exported integration-owned recipers compact. Normal recipe libraries
310
310
  peer-depend on and externalize `teacss`. A custom integration peer-depends on
311
- `@teacss/classes` and exports the exact definer used for extendable parents.
312
- Consumers deduplicate the owning integration. Recreating a definer, loading
313
- another runtime copy or version, or resolving the parent and definer from
311
+ `@teacss/classes` and exports the exact reciper used for extendable parents.
312
+ Consumers deduplicate the owning integration. Recreating a reciper, loading
313
+ another runtime copy or version, or resolving the parent and reciper from
314
314
  different provider-package instances breaks extension identity even if the
315
315
  declarations and merger are compatible. Deduplicating only `@teacss/classes`
316
- is insufficient for a duplicated custom-definer provider. `VariantProps`
316
+ is insufficient for a duplicated custom-reciper provider. `VariantProps`
317
317
  extraction does not need runtime identity; `extend` does.
318
318
 
319
319
  ## Runtime Class Merging
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { ClassProp, Merger, RecipeDefiner, VariantProps } from "@teacss/classes";
1
+ import { ClassProp, Merger, RecipeIntrospection, Reciper, VariantProps } from "@teacss/classes";
2
2
  export * from "@teacss/preset-standard/constants";
3
3
  //#region src/index.d.ts
4
4
  declare const cn: Merger;
5
- declare const recipe: RecipeDefiner;
5
+ declare const recipe: Reciper;
6
6
  //#endregion
7
- export { type ClassProp, type VariantProps, cn, recipe };
7
+ export { type ClassProp, type RecipeIntrospection, type VariantProps, cn, recipe };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{createDefiner as e,createMerger as t}from"@teacss/classes";import{pluginIcon as n}from"@teacss/preset-icons/merge";import{pluginStandard as r}from"@teacss/preset-standard/merge";export*from"@teacss/preset-standard/constants";const i=t({plugins:[r,n]});let a;const o=(t=>(a??=e({merge:i}),a(t)));export{i as cn,o as recipe};
1
+ import{createMerger as e,createReciper as t}from"@teacss/classes";import{pluginIcon as n}from"@teacss/preset-icons/merge";import{pluginStandard as r}from"@teacss/preset-standard/merge";export*from"@teacss/preset-standard/constants";const i=e({plugins:[r,n]});let a;const o=(e=>(a??=t({merge:i}),a(e)));export{i as cn,o as recipe};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teacss",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "The TeaCSS application entry with the official `cn`, `recipe`, engine, and preset subpaths.",
5
5
  "homepage": "https://css.teasim.com",
6
6
  "funding": "https://github.com/sponsors/billgo",
@@ -26,11 +26,11 @@
26
26
  "dev": "tsdown --watch"
27
27
  },
28
28
  "dependencies": {
29
- "@teacss/classes": "0.3.3",
30
- "@teacss/core": "0.3.3",
31
- "@teacss/preset-articles": "0.3.3",
32
- "@teacss/preset-icons": "0.3.3",
33
- "@teacss/preset-standard": "0.3.3"
29
+ "@teacss/classes": "0.3.4",
30
+ "@teacss/core": "0.3.4",
31
+ "@teacss/preset-articles": "0.3.4",
32
+ "@teacss/preset-icons": "0.3.4",
33
+ "@teacss/preset-standard": "0.3.4"
34
34
  },
35
35
  "engines": {
36
36
  "node": ">=22.12.0"