teacss 0.3.3 → 0.3.5

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
@@ -7,13 +7,14 @@ Readable utilities for humans. Predictable syntax for AI agents.
7
7
  ## Purpose
8
8
 
9
9
  `teacss` is the application-facing package. Its root entry provides the
10
- official `cn` and `recipe` runtime helpers plus Standard preset constant
11
- tables, while its subpaths expose the engine and official presets.
10
+ official `cn` and `recipe` runtime helpers, the `omitAttributes` attribute
11
+ helper, and Standard preset constant tables, while its subpaths expose the
12
+ engine and official presets.
12
13
 
13
14
  Use it for normal TeaCSS applications. Preset authors, custom integration
14
15
  authors, and tooling authors should import the narrower `@teacss/*` packages
15
16
  that own those extension APIs; the root entry intentionally does not expose
16
- low-level factories such as `createDefiner`.
17
+ low-level factories such as `createReciper`.
17
18
 
18
19
  The base installation contains the runtime class helpers, engine core, and
19
20
  official presets. Build integrations are separate packages, so install and
@@ -293,27 +294,27 @@ The repeated `className` spelling is separated by boundary:
293
294
  `className` is accepted by a single-element recipe call or one named resolver.
294
295
  A multi-element recipe call itself accepts shared selections only.
295
296
 
296
- `@teacss/classes` exports the factory rather than a pre-bound definer. This
297
+ `@teacss/classes` exports the factory rather than a pre-bound reciper. This
297
298
  integration creates its own `recipe` from the official `cn`; custom
298
299
  integrations follow the same boundary with their own merger:
299
300
 
300
301
  ```ts
301
- import { createDefiner, createMerger } from "@teacss/classes";
302
+ import { createReciper, createMerger } from "@teacss/classes";
302
303
 
303
304
  const merge = createMerger({ conflicts, plugins });
304
- export const recipe = createDefiner({ merge });
305
+ export const recipe = createReciper({ merge });
305
306
  ```
306
307
 
307
- `createDefiner` and its type-only `RecipeDefiner` return type are intentionally
308
+ `createReciper` and its type-only `Reciper` return type are intentionally
308
309
  available only from `@teacss/classes`; the named return type keeps declarations
309
- for exported integration-owned definers compact. Normal recipe libraries
310
+ for exported integration-owned recipers compact. Normal recipe libraries
310
311
  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
312
+ `@teacss/classes` and exports the exact reciper used for extendable parents.
313
+ Consumers deduplicate the owning integration. Recreating a reciper, loading
314
+ another runtime copy or version, or resolving the parent and reciper from
314
315
  different provider-package instances breaks extension identity even if the
315
316
  declarations and merger are compatible. Deduplicating only `@teacss/classes`
316
- is insufficient for a duplicated custom-definer provider. `VariantProps`
317
+ is insufficient for a duplicated custom-reciper provider. `VariantProps`
317
318
  extraction does not need runtime identity; `extend` does.
318
319
 
319
320
  ## 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, omitAttributes } 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, omitAttributes, 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,omitAttributes as n}from"@teacss/classes";import{pluginIcon as r}from"@teacss/preset-icons/merge";import{pluginStandard as i}from"@teacss/preset-standard/merge";export*from"@teacss/preset-standard/constants";const a=e({plugins:[i,r]});let o;const s=(e=>(o??=t({merge:a}),o(e)));export{a as cn,n as omitAttributes,s 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.5",
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.5",
30
+ "@teacss/core": "0.3.5",
31
+ "@teacss/preset-articles": "0.3.5",
32
+ "@teacss/preset-icons": "0.3.5",
33
+ "@teacss/preset-standard": "0.3.5"
34
34
  },
35
35
  "engines": {
36
36
  "node": ">=22.12.0"