@stacksjs/ts-css 0.3.17 → 0.3.19

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.
@@ -4,6 +4,14 @@ import type { AttributifyConfig, BracketSyntaxConfig, ParsedClass } from './type
4
4
  * to reclaim the memory between builds; correctness never depends on it.
5
5
  */
6
6
  export declare function clearParseCaches(): void;
7
+ /**
8
+ * Split a class on its top-level colons, leaving colons inside `[...]` alone.
9
+ *
10
+ * A variant separator and the colon inside an arbitrary property or value look
11
+ * identical, so a plain `split(':')` would tear `[color:red]` in half. Both the
12
+ * arbitrary-property branch and the general variant/utility split need this.
13
+ */
14
+ export declare function splitTopLevelColons(className: string): string[];
7
15
  /**
8
16
  * Expand bracket/grouped syntax into individual class names
9
17
  * e.g., flex[col jc-center ai-center] -> ['flex-col', 'justify-center', 'items-center']
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/ts-css",
3
3
  "type": "module",
4
- "version": "0.3.17",
4
+ "version": "0.3.19",
5
5
  "description": "Pure-TypeScript CSS toolkit and utility-first CSS engine for Bun/Node — parser, walker, generator, selector engine, minifier, and a Tailwind-compatible utility engine. Zero runtime deps.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",