teacss 0.3.5 → 0.3.6

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.
Files changed (2) hide show
  1. package/README.md +13 -9
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -327,20 +327,24 @@ import { cn } from "teacss";
327
327
 
328
328
  cn("p:4 d:flex", "p:8"); // "d:flex p:8"
329
329
  cn("p:4", "p:invalid"); // "p:invalid"
330
- cn("reset:li", "reset:ul"); // "reset:ul"
331
- cn("d:block", "reset:li"); // "d:block reset:li"
330
+ cn("reset-list", "reset-heading"); // "reset-heading"
331
+ cn("d:block", "reset-list"); // "d:block reset-list"
332
332
  ```
333
333
 
334
334
  The default `cn` is one direct merger composed from `pluginStandard` and
335
335
  `pluginIcon`; it does not chain preset-local mergers. Resolution is based
336
336
  on parsed shape, conditions, importance, and declared footprints. It does not
337
- validate values, so an unsupported winner may emit no CSS. The supported
338
- `reset:*` profiles apply to the current element: headings (`reset:h1` through
339
- `reset:h6`), links and controls
340
- (`reset:a|button|select|input-text|textarea`), and lists
341
- (`reset:li|ol|ul|menu`). `reset:input-text` is only for text-like inputs; there
342
- is no generic `reset:input`. Profiles replace one another as a single opaque
343
- family and never delete an unrelated utility. Document-root and shadow-host
337
+ validate values, so an unsupported winner may emit no CSS. The eight reset
338
+ profiles apply to the current element and are bare class names, never
339
+ `property:value` utilities: `reset-heading`, `reset-list`, `reset-button`,
340
+ `reset-select`, `reset-textarea`, `reset-input`, `reset-checkbox`, and
341
+ `reset-radio`. `reset-input` is only for text-like inputs; button-like input
342
+ types use `reset-button`, and box controls take `reset-checkbox` /
343
+ `reset-radio`.
344
+ Element deltas expressible with ordinary utilities carry no profile — use
345
+ `text-color:inherit decoration-line:none` for a link and
346
+ `d:block text-align:unset` for a list item. Profiles replace one another as a
347
+ single opaque family and never delete an unrelated utility. Document-root and shadow-host
344
348
  defaults come from the standard preset's automatic preflight.
345
349
 
346
350
  Generic class merging is a separate package for custom conflict metadata:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teacss",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
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.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"
29
+ "@teacss/classes": "0.3.6",
30
+ "@teacss/core": "0.3.6",
31
+ "@teacss/preset-articles": "0.3.6",
32
+ "@teacss/preset-icons": "0.3.6",
33
+ "@teacss/preset-standard": "0.3.6"
34
34
  },
35
35
  "engines": {
36
36
  "node": ">=22.12.0"