catom 2.0.0 → 2.0.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.
package/dist/css.js CHANGED
@@ -1,4 +1,4 @@
1
- import { murmur2 } from "./hash";
1
+ import { murmur2 } from "./hash.js";
2
2
  const KEBAB_CASE_RE = /([a-z0-9]|(?=[A-Z]))([A-Z])/g;
3
3
  const NUMERIC_START = /^[0-9-]/;
4
4
  function toKebabCase(prop) {
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import type { Properties } from "csstype";
2
- export { default } from "./plugin";
3
- export type { CatomOptions } from "./plugin";
4
- export { processStyleObject, generateRule, dedupeRules } from "./css";
5
- export type { CSSRule, StyleObject, ProcessResult } from "./css";
2
+ export { default } from "./plugin.js";
3
+ export type { CatomOptions } from "./plugin.js";
4
+ export { processStyleObject, generateRule, dedupeRules } from "./css.js";
5
+ export type { CSSRule, StyleObject, ProcessResult } from "./css.js";
6
6
  /**
7
7
  * Define atomic CSS styles. Transformed at build time to class names.
8
8
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAG7C,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACtE,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,GAAG,CACjB,OAAO,EAAE,UAAU,GAAG;IACpB,KAAK,CAAC,EAAE;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAC;IACxC,MAAM,CAAC,EAAE;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAC;CAC7C,GACA,MAAM,CAKR"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAGhD,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACzE,YAAY,EAAE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,GAAG,CACjB,OAAO,EAAE,UAAU,GAAG;IACpB,KAAK,CAAC,EAAE;QAAE,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAC;IACxC,MAAM,CAAC,EAAE;QAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAC;CAC7C,GACA,MAAM,CAKR"}
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- export { default } from "./plugin";
1
+ export { default } from "./plugin.js";
2
2
  // Re-export utilities for advanced usage
3
- export { processStyleObject, generateRule, dedupeRules } from "./css";
3
+ export { processStyleObject, generateRule, dedupeRules } from "./css.js";
4
4
  /**
5
5
  * Define atomic CSS styles. Transformed at build time to class names.
6
6
  *
package/dist/plugin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { transform } from "lightningcss";
2
2
  import AST from "unplugin-ast/vite";
3
- import { createCatomTransformer } from "./transformer";
4
- import { dedupeRules } from "./css";
3
+ import { createCatomTransformer } from "./transformer.js";
4
+ import { dedupeRules } from "./css.js";
5
5
  const VIRTUAL_ID = "virtual:catom.css";
6
6
  const RESOLVED_VIRTUAL_ID = "\0" + VIRTUAL_ID;
7
7
  const DEFAULT_TARGETS = {
@@ -1,4 +1,4 @@
1
- import { processStyleObject } from "./css";
1
+ import { processStyleObject } from "./css.js";
2
2
  /**
3
3
  * Extract a JS value from a Babel AST node.
4
4
  * Only handles static, compile-time constant values.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catom",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "Zero-runtime atomic CSS-in-JS for Vite",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "license": "MIT",
31
31
  "peerDependencies": {
32
- "vite": "^4.0.0 || ^5.0.0 || ^6.0.0",
32
+ "vite": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0",
33
33
  "lightningcss": "^1.16.0"
34
34
  },
35
35
  "dependencies": {