@fumadocs/tailwind 0.0.1 → 0.0.3
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.
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import plugin from "tailwindcss/plugin";
|
|
2
|
+
|
|
1
3
|
//#region src/typography/index.d.ts
|
|
2
4
|
interface Options {
|
|
3
5
|
className?: string;
|
|
@@ -6,6 +8,6 @@ interface Options {
|
|
|
6
8
|
*/
|
|
7
9
|
disableRoundedTable?: boolean;
|
|
8
10
|
}
|
|
9
|
-
declare const typography:
|
|
11
|
+
declare const typography: ReturnType<typeof plugin.withOptions<Options>>;
|
|
10
12
|
//#endregion
|
|
11
13
|
export { Options, typography as default, typography };
|
package/dist/typography/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import plugin from "tailwindcss/plugin";
|
|
2
2
|
import parser from "postcss-selector-parser";
|
|
3
3
|
|
|
4
|
-
//#region
|
|
4
|
+
//#region \0rolldown/runtime.js
|
|
5
5
|
var __create = Object.create;
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
7
7
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -375,7 +375,7 @@ const DEFAULT = { css: [
|
|
|
375
375
|
|
|
376
376
|
//#endregion
|
|
377
377
|
//#region ../../node_modules/.pnpm/lodash.merge@4.6.2/node_modules/lodash.merge/index.js
|
|
378
|
-
var
|
|
378
|
+
var require_lodash_merge = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
379
379
|
/**
|
|
380
380
|
* Lodash (Custom Build) <https://lodash.com/>
|
|
381
381
|
* Build: `lodash modularize exports="npm" -o ./`
|
|
@@ -1950,7 +1950,7 @@ var require_lodash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1950
1950
|
|
|
1951
1951
|
//#endregion
|
|
1952
1952
|
//#region src/typography/index.ts
|
|
1953
|
-
var
|
|
1953
|
+
var import_lodash_merge = /* @__PURE__ */ __toESM(require_lodash_merge(), 1);
|
|
1954
1954
|
function inWhere(selector, { className, prefix, modifier }) {
|
|
1955
1955
|
const prefixedNot = prefix(`.not-${className}`).slice(1);
|
|
1956
1956
|
const selectorPrefix = selector.startsWith(">") ? `${modifier === "DEFAULT" ? `.${className}` : `.${className}-${modifier}`} ` : "";
|
|
@@ -1969,7 +1969,7 @@ function configToCss(config = {}, { className, modifier, prefix }) {
|
|
|
1969
1969
|
prefix
|
|
1970
1970
|
}),
|
|
1971
1971
|
v,
|
|
1972
|
-
Object.fromEntries(Object.entries(v).map(([k
|
|
1972
|
+
Object.fromEntries(Object.entries(v).map(([k, v]) => updateSelector(k, v)))
|
|
1973
1973
|
];
|
|
1974
1974
|
return [inWhere(k, {
|
|
1975
1975
|
className,
|
|
@@ -1980,7 +1980,7 @@ function configToCss(config = {}, { className, modifier, prefix }) {
|
|
|
1980
1980
|
return [k, v];
|
|
1981
1981
|
}
|
|
1982
1982
|
const css = config.css ?? [];
|
|
1983
|
-
return Object.fromEntries(Object.entries((0,
|
|
1983
|
+
return Object.fromEntries(Object.entries((0, import_lodash_merge.default)({}, ...Array.isArray(css) ? css : [css])).map(([k, v]) => updateSelector(k, v)));
|
|
1984
1984
|
}
|
|
1985
1985
|
const parseSelector = parser();
|
|
1986
1986
|
function commonTrailingPseudos(selector) {
|
|
@@ -2061,7 +2061,6 @@ const typography = plugin.withOptions(({ className = "prose", ...styleOptions }
|
|
|
2061
2061
|
}) });
|
|
2062
2062
|
};
|
|
2063
2063
|
});
|
|
2064
|
-
var typography_default = typography;
|
|
2065
2064
|
|
|
2066
2065
|
//#endregion
|
|
2067
|
-
export {
|
|
2066
|
+
export { typography as default, typography };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fumadocs/tailwind",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "The Tailwind CSS utils for Fumadocs UI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Docs",
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
"postcss-selector-parser": "^7.1.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@tailwindcss/oxide": "^4.1
|
|
34
|
+
"@tailwindcss/oxide": "^4.2.1",
|
|
35
35
|
"@types/lodash.merge": "^4.6.9",
|
|
36
|
-
"@types/node": "^25.
|
|
36
|
+
"@types/node": "^25.3.3",
|
|
37
37
|
"lodash.merge": "^4.6.2",
|
|
38
|
-
"tailwindcss": "^4.1
|
|
39
|
-
"tsdown": "
|
|
40
|
-
"
|
|
41
|
-
"
|
|
38
|
+
"tailwindcss": "^4.2.1",
|
|
39
|
+
"tsdown": "0.20.3",
|
|
40
|
+
"eslint-config-custom": "0.0.0",
|
|
41
|
+
"tsconfig": "0.0.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"tailwindcss": "^4.0.0"
|