@seyuna/postcss 0.0.1-dev.4 → 0.0.1-dev.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.
@@ -14,6 +14,6 @@ const color = (name, alpha, lightness, chroma) => {
14
14
  if (chroma && chroma !== "null") {
15
15
  c = chroma;
16
16
  }
17
- return `oklch(${l}% ${c} var(--${name}) / ${a})`;
17
+ return `oklch(${l} ${c} var(--${name}) / ${a})`;
18
18
  };
19
19
  exports.color = color;
package/dist/index.d.ts CHANGED
@@ -1,2 +1,5 @@
1
- export { dynamicFunctionsPlugin as default } from "./plugin";
2
- export { functions } from "./functions";
1
+ declare const _default: import("postcss").PluginCreator<import("./plugin").PluginOptions> & {
2
+ postcss: boolean;
3
+ functions: Record<string, import("./functions").FnHandler>;
4
+ };
5
+ export = _default;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.functions = exports.default = void 0;
4
- var plugin_1 = require("./plugin");
5
- Object.defineProperty(exports, "default", { enumerable: true, get: function () { return plugin_1.dynamicFunctionsPlugin; } });
6
- var functions_1 = require("./functions");
7
- Object.defineProperty(exports, "functions", { enumerable: true, get: function () { return functions_1.functions; } });
2
+ const plugin_1 = require("./plugin");
3
+ const functions_1 = require("./functions");
4
+ module.exports = Object.assign(plugin_1.dynamicFunctionsPlugin, {
5
+ postcss: true,
6
+ functions: functions_1.functions
7
+ });
package/dist/plugin.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { PluginCreator } from "postcss";
2
- interface PluginOptions {
2
+ export interface PluginOptions {
3
3
  functions?: Record<string, (...args: string[]) => string>;
4
4
  }
5
5
  export declare const dynamicFunctionsPlugin: PluginCreator<PluginOptions>;
6
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seyuna/postcss",
3
- "version": "0.0.1-dev.4",
3
+ "version": "0.0.1-dev.6",
4
4
  "description": "Seyuna UI's postcss plugin",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,5 +15,5 @@ export const color = (name: string, alpha?: string, lightness?: string, chroma?:
15
15
  c = chroma;
16
16
  }
17
17
 
18
- return `oklch(${l}% ${c} var(--${name}) / ${a})`;
18
+ return `oklch(${l} ${c} var(--${name}) / ${a})`;
19
19
  };
package/src/index.ts CHANGED
@@ -1,2 +1,8 @@
1
- export { dynamicFunctionsPlugin as default } from "./plugin";
2
- export { functions } from "./functions";
1
+ import { dynamicFunctionsPlugin } from './plugin';
2
+ import { functions } from './functions';
3
+
4
+ // CommonJS-friendly export
5
+ export = Object.assign(dynamicFunctionsPlugin, {
6
+ postcss: true,
7
+ functions
8
+ });
package/src/plugin.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { PluginCreator } from "postcss";
2
2
  import { functions } from "./functions";
3
3
 
4
- interface PluginOptions {
4
+ export interface PluginOptions {
5
5
  functions?: Record<string, (...args: string[]) => string>;
6
6
  }
7
7