2024-09-07 11:36:53 -06:00
|
|
|
export interface Border {
|
2024-09-07 12:49:26 -06:00
|
|
|
label: string
|
|
|
|
value: number
|
|
|
|
max: number
|
2024-09-07 11:36:53 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface Borders {
|
2024-09-07 12:49:26 -06:00
|
|
|
[key: string]: Border
|
2024-09-07 11:36:53 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
// Asegúrate de que esta función esté correctamente exportada
|
|
|
|
export function generateCSSOutput(borders: Borders, borderWidth: number, borderStyle: string, unit: string): string {
|
|
|
|
const { topLeft, topRight, bottomRight, bottomLeft } = borders;
|
|
|
|
return `border: ${borderWidth}px ${borderStyle} #000000; border-radius: ${topLeft.value}${unit} ${topRight.value}${unit} ${bottomRight.value}${unit} ${bottomLeft.value}${unit};`;
|
|
|
|
}
|