update
This commit is contained in:
11
node_modules/daisyui/functions/plugin.js
generated
vendored
Normal file
11
node_modules/daisyui/functions/plugin.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
export const plugin = {
|
||||
withOptions: (pluginFunction, configFunction = () => ({})) => {
|
||||
const optionsFunction = (options) => {
|
||||
const handler = pluginFunction(options)
|
||||
const config = configFunction(options)
|
||||
return { handler, config }
|
||||
}
|
||||
optionsFunction.__isOptionsFunction = true
|
||||
return optionsFunction
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user