@tenphi/tasty 2.1.0 → 2.1.2

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 (31) hide show
  1. package/README.md +6 -4
  2. package/dist/{collector-DrgDE7QB.js → collector-C4sagPeG.js} +3 -3
  3. package/dist/{collector-DrgDE7QB.js.map → collector-C4sagPeG.js.map} +1 -1
  4. package/dist/{config-_aQ_PZ-P.js → config-BovFXQil.js} +122 -19
  5. package/dist/config-BovFXQil.js.map +1 -0
  6. package/dist/core/index.js +5 -5
  7. package/dist/{core-BqO8pplb.js → core-CpKZ2RrZ.js} +5 -5
  8. package/dist/{core-BqO8pplb.js.map → core-CpKZ2RrZ.js.map} +1 -1
  9. package/dist/{css-writer-D--REwtp.js → css-writer-BYgviy4G.js} +3 -3
  10. package/dist/{css-writer-D--REwtp.js.map → css-writer-BYgviy4G.js.map} +1 -1
  11. package/dist/{format-rules-xwteB7a1.js → format-rules-BBK7s2il.js} +2 -2
  12. package/dist/{format-rules-xwteB7a1.js.map → format-rules-BBK7s2il.js.map} +1 -1
  13. package/dist/{hydrate-BvPT4ndL.js → hydrate-DN98QICD.js} +2 -2
  14. package/dist/{hydrate-BvPT4ndL.js.map → hydrate-DN98QICD.js.map} +1 -1
  15. package/dist/index.js +6 -6
  16. package/dist/{keyframes-ClPFWy33.js → keyframes-Bzl_6mN0.js} +2 -2
  17. package/dist/{keyframes-ClPFWy33.js.map → keyframes-Bzl_6mN0.js.map} +1 -1
  18. package/dist/{merge-styles-BUQsEpbv.js → merge-styles-BjdI0NVL.js} +2 -2
  19. package/dist/{merge-styles-BUQsEpbv.js.map → merge-styles-BjdI0NVL.js.map} +1 -1
  20. package/dist/{resolve-recipes-C0-AMzCz.js → resolve-recipes-9zJQojHT.js} +3 -3
  21. package/dist/{resolve-recipes-C0-AMzCz.js.map → resolve-recipes-9zJQojHT.js.map} +1 -1
  22. package/dist/ssr/astro-client.js +1 -1
  23. package/dist/ssr/astro.js +3 -3
  24. package/dist/ssr/index.js +3 -3
  25. package/dist/ssr/next.js +4 -4
  26. package/dist/static/index.js +1 -1
  27. package/dist/zero/babel.js +4 -4
  28. package/dist/zero/index.js +1 -1
  29. package/docs/dsl.md +1 -0
  30. package/package.json +1 -1
  31. package/dist/config-_aQ_PZ-P.js.map +0 -1
package/dist/ssr/astro.js CHANGED
@@ -1,6 +1,6 @@
1
- import { n as getConfig } from "../config-_aQ_PZ-P.js";
2
- import { a as registerSSRCollectorGetterGlobal } from "../format-rules-xwteB7a1.js";
3
- import { t as ServerStyleCollector } from "../collector-DrgDE7QB.js";
1
+ import { n as getConfig } from "../config-BovFXQil.js";
2
+ import { a as registerSSRCollectorGetterGlobal } from "../format-rules-BBK7s2il.js";
3
+ import { t as ServerStyleCollector } from "../collector-C4sagPeG.js";
4
4
  import { n as runWithCollector, t as getSSRCollector } from "../async-storage-B7_o6FKt.js";
5
5
  //#region src/ssr/astro.ts
6
6
  /**
package/dist/ssr/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { a as registerSSRCollectorGetterGlobal } from "../format-rules-xwteB7a1.js";
2
- import { t as ServerStyleCollector } from "../collector-DrgDE7QB.js";
1
+ import { a as registerSSRCollectorGetterGlobal } from "../format-rules-BBK7s2il.js";
2
+ import { t as ServerStyleCollector } from "../collector-C4sagPeG.js";
3
3
  import { n as runWithCollector, t as getSSRCollector } from "../async-storage-B7_o6FKt.js";
4
- import { n as hydrateTastyClasses, t as hydrateTastyCache } from "../hydrate-BvPT4ndL.js";
4
+ import { n as hydrateTastyClasses, t as hydrateTastyCache } from "../hydrate-DN98QICD.js";
5
5
  //#region src/ssr/index.ts
6
6
  registerSSRCollectorGetterGlobal(getSSRCollector);
7
7
  //#endregion
package/dist/ssr/next.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { n as getConfig } from "../config-_aQ_PZ-P.js";
3
- import { i as registerSSRCollectorGetter } from "../format-rules-xwteB7a1.js";
2
+ import { n as getConfig } from "../config-BovFXQil.js";
3
+ import { i as registerSSRCollectorGetter } from "../format-rules-BBK7s2il.js";
4
4
  import { t as getTastySSRContext } from "../context-CkSg-kDT.js";
5
- import { t as ServerStyleCollector } from "../collector-DrgDE7QB.js";
6
- import { n as hydrateTastyClasses } from "../hydrate-BvPT4ndL.js";
5
+ import { t as ServerStyleCollector } from "../collector-C4sagPeG.js";
6
+ import { n as hydrateTastyClasses } from "../hydrate-DN98QICD.js";
7
7
  import { Fragment, createElement, useState } from "react";
8
8
  import { useServerInsertedHTML } from "next/navigation";
9
9
  //#region src/ssr/next.ts
@@ -1,4 +1,4 @@
1
- import { t as mergeStyles } from "../merge-styles-BUQsEpbv.js";
1
+ import { t as mergeStyles } from "../merge-styles-BjdI0NVL.js";
2
2
  //#region src/static/types.ts
3
3
  /**
4
4
  * Create a StaticStyle object.
@@ -1,7 +1,7 @@
1
- import { _ as resetConfig, i as getGlobalConfigTokens, t as configure, u as getGlobalStyles } from "../config-_aQ_PZ-P.js";
2
- import { t as mergeStyles } from "../merge-styles-BUQsEpbv.js";
3
- import { t as resolveRecipes } from "../resolve-recipes-C0-AMzCz.js";
4
- import { a as extractPropertiesFromStyles, i as extractKeyframesFromStyles, n as extractCounterStyleFromStyles, o as extractStylesForSelector, r as extractFontFaceFromStyles, s as extractStylesWithChunks, t as CSSWriter } from "../css-writer-D--REwtp.js";
1
+ import { _ as resetConfig, i as getGlobalConfigTokens, t as configure, u as getGlobalStyles } from "../config-BovFXQil.js";
2
+ import { t as mergeStyles } from "../merge-styles-BjdI0NVL.js";
3
+ import { t as resolveRecipes } from "../resolve-recipes-9zJQojHT.js";
4
+ import { a as extractPropertiesFromStyles, i as extractKeyframesFromStyles, n as extractCounterStyleFromStyles, o as extractStylesForSelector, r as extractFontFaceFromStyles, s as extractStylesWithChunks, t as CSSWriter } from "../css-writer-BYgviy4G.js";
5
5
  import * as fs from "fs";
6
6
  import * as path from "path";
7
7
  import { declare } from "@babel/helper-plugin-utils";
@@ -1,2 +1,2 @@
1
- import { o as extractStylesForSelector, s as extractStylesWithChunks, t as CSSWriter } from "../css-writer-D--REwtp.js";
1
+ import { o as extractStylesForSelector, s as extractStylesWithChunks, t as CSSWriter } from "../css-writer-BYgviy4G.js";
2
2
  export { CSSWriter, extractStylesForSelector, extractStylesWithChunks };
package/docs/dsl.md CHANGED
@@ -59,6 +59,7 @@ Control how a sub-element selector attaches to the root selector using the `$` p
59
59
  | *(none)* | ` [el]` | Descendant (default) |
60
60
  | `>` | `> [el]` | Direct child |
61
61
  | `>Body>Row>` | `> [Body] > [Row] > [el]` | Chained elements |
62
+ | `> SubElementName` | `> [SubElementName]` | Self-name shorthand — when the trailing element name matches the sub-element's own key, it acts as the placeholder (same as `@`); no duplication |
62
63
  | `h1` | ` h1` | Tag selector (no key injection) |
63
64
  | `h1 >` | ` h1 > [el]` | Key is direct child of tag |
64
65
  | `h1 *` | ` h1 *` | Any descendant of tag |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tenphi/tasty",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "A design-system-integrated styling system and DSL for concise, state-aware UI styling",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",