Files
supabase/packages/ui/internals/transform/web/webPadding.js
T
Ivan Vasilov a4acebe1bc chore: Expand prettier commands to also run on packages (#32550)
* Run prettier on packages too.

* Add the generated files for icons to prettierignore.

* Format all files in the packages folder.

* Minor fix.
2025-01-03 16:23:32 +01:00

13 lines
325 B
JavaScript

module.exports = {
type: 'value',
matcher: function (token) {
return token.type === 'custom-spacing'
},
transformer: ({ value: { top, left, bottom, right } }) => {
if ([bottom, left, right].every((v) => v === top)) {
return `${top}px`
}
return `${top}px ${right}px ${bottom}px ${left}px`
},
}