mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Update Tailwind folder structure
This commit is contained in:
parent
073c18d0f6
commit
27eb773d30
10 changed files with 46 additions and 12 deletions
0
components/lib/passthrough/index.d.ts
vendored
Normal file
0
components/lib/passthrough/index.d.ts
vendored
Normal file
19
components/lib/passthrough/index.js
Normal file
19
components/lib/passthrough/index.js
Normal 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);
|
||||
};
|
6
components/lib/passthrough/package.json
Normal file
6
components/lib/passthrough/package.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"main": "./index.cjs.js",
|
||||
"module": "./index.esm.js",
|
||||
"unpkg": "./index.min.js",
|
||||
"types": "./index.d.ts"
|
||||
}
|
5
components/lib/passthrough/tailwind/index.d.ts
vendored
Normal file
5
components/lib/passthrough/tailwind/index.d.ts
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
import { PrimeVuePTOptions } from '../../config';
|
||||
|
||||
interface Tailwind extends PrimeVuePTOptions {}
|
||||
|
||||
export default Tailwind;
|
3685
components/lib/passthrough/tailwind/index.js
Normal file
3685
components/lib/passthrough/tailwind/index.js
Normal file
File diff suppressed because it is too large
Load diff
6
components/lib/passthrough/tailwind/package.json
Normal file
6
components/lib/passthrough/tailwind/package.json
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"main": "./index.cjs.js",
|
||||
"module": "./index.esm.js",
|
||||
"unpkg": "./index.min.js",
|
||||
"types": "./index.d.ts"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue