reshaped 3.8.4 → 3.8.5
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/config/postcss.cjs
CHANGED
|
@@ -3,8 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.config = void 0;
|
|
7
|
-
exports.default = getConfig;
|
|
6
|
+
exports.getConfig = exports.config = void 0;
|
|
8
7
|
const path_1 = __importDefault(require("path"));
|
|
9
8
|
const defaultThemeMediaCSSPath = path_1.default.resolve(__dirname, "../themes/reshaped/media.css");
|
|
10
9
|
// Using [plugin]: { ...options } format here because it's supported by the most frameworks
|
|
@@ -19,7 +18,7 @@ exports.config = {
|
|
|
19
18
|
cssnano: { preset: ["default", { calc: false }] },
|
|
20
19
|
},
|
|
21
20
|
};
|
|
22
|
-
|
|
21
|
+
const getConfig = (options) => {
|
|
23
22
|
const { themeMediaCSSPath = defaultThemeMediaCSSPath } = options;
|
|
24
23
|
return {
|
|
25
24
|
plugins: {
|
|
@@ -30,4 +29,5 @@ function getConfig(options) {
|
|
|
30
29
|
cssnano: { preset: ["default", { calc: false }] },
|
|
31
30
|
},
|
|
32
31
|
};
|
|
33
|
-
}
|
|
32
|
+
};
|
|
33
|
+
exports.getConfig = getConfig;
|
|
@@ -11,9 +11,9 @@ export declare const config: {
|
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
|
-
export
|
|
15
|
-
themeMediaCSSPath
|
|
16
|
-
})
|
|
14
|
+
export declare const getConfig: (options: {
|
|
15
|
+
themeMediaCSSPath: string;
|
|
16
|
+
}) => {
|
|
17
17
|
plugins: {
|
|
18
18
|
"@csstools/postcss-global-data": {
|
|
19
19
|
files: string[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reshaped",
|
|
3
3
|
"description": "Professionally crafted design system in React & Figma for building products of any scale and complexity",
|
|
4
|
-
"version": "3.8.
|
|
4
|
+
"version": "3.8.5",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"email": "hello@reshaped.so",
|
|
7
7
|
"homepage": "https://reshaped.so",
|