@empathyco/x-tailwindcss
Version:
Empathy X Tailwind plugin
27 lines (24 loc) • 729 B
JavaScript
import { deepMerge } from '@empathyco/x-deep-merge';
import { rename } from '@empathyco/x-utils';
import { inputColors } from './colors.js';
import { inputDefault } from './default.js';
import { inputLine } from './line.js';
import { inputSizes } from './sizes.js';
/**
* Returns the component `input` CSS.
*
* @param helpers - The {@link TailwindHelpers} to generate CSS.
* @returns The {@link CssStyleOptions} for the component.
*/
function input(helpers) {
return {
'.x-input': deepMerge(inputDefault(helpers), rename({
...inputColors(helpers),
...inputSizes(helpers),
...inputLine(helpers),
}, {
prefix: '&-',
})),
};
}
export { input };