Update Tailwind folder structure

This commit is contained in:
mertsincan 2023-08-05 04:36:07 +03:00
parent 073c18d0f6
commit 27eb773d30
10 changed files with 46 additions and 12 deletions

0
components/lib/passthrough/index.d.ts vendored Normal file
View file

View file

@ -0,0 +1,19 @@
import { mergeProps } from 'vue';
// @todo: Improve this method
export const usePassThrough = (theme, pt = {}, { merge = false }) => {
const newTheme = { ...theme };
const componentNames = Object.keys(pt);
return componentNames.reduce((t, n) => {
if (!merge) {
t[n] = pt[n];
} else {
t[n] = Object.entries(pt[n]).reduce((_t, [sk, sv]) => {
return mergeProps(t[n][sk], sv);
}, {});
}
return t;
}, newTheme);
};

View file

@ -0,0 +1,6 @@
{
"main": "./index.cjs.js",
"module": "./index.esm.js",
"unpkg": "./index.min.js",
"types": "./index.d.ts"
}

View file

@ -0,0 +1,5 @@
import { PrimeVuePTOptions } from '../../config';
interface Tailwind extends PrimeVuePTOptions {}
export default Tailwind;

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,6 @@
{
"main": "./index.cjs.js",
"module": "./index.esm.js",
"unpkg": "./index.min.js",
"types": "./index.d.ts"
}