@jasonshimmy/custom-elements-runtime 0.1.6 → 0.1.7

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.
@@ -27,7 +27,7 @@ type SelectorVariantMap = Record<string, (selector: string, body: string) => str
27
27
  type MediaVariantMap = Record<string, string>;
28
28
  export declare const colors: Record<string, Record<string, string>>;
29
29
  export declare const utilityMap: CSSMap;
30
- export declare const spacing = "var(--spacing, 0.25rem)";
30
+ export declare const spacing = "0.25rem";
31
31
  export declare const spacingProps: Record<string, string[]>;
32
32
  export declare const selectorVariants: SelectorVariantMap;
33
33
  export declare const mediaVariants: MediaVariantMap;
@@ -45,6 +45,11 @@ export declare function parseColorWithOpacity(className: string): string | null;
45
45
  * - prop-[value]
46
46
  */
47
47
  export declare function parseArbitrary(className: string): string | null;
48
+ /**
49
+ * Parse arbitrary variant from class name.
50
+ * Supports [attr=value]:utility or foo-[bar]:utility
51
+ */
52
+ export declare function parseArbitraryVariant(token: string): string | null;
48
53
  export declare function escapeClassName(name: string): string;
49
54
  export declare function extractClassesFromHTML(html: string): string[];
50
55
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jasonshimmy/custom-elements-runtime",
3
3
  "description": "A powerful, modern, and lightweight runtime for creating reactive web components with TypeScript",
4
- "version": "0.1.6",
4
+ "version": "0.1.7",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "web-components",