[go: up one dir, main page]

Skip to content

Commit

Permalink
fix(utils): Margin values (resend#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
bukinoshita authored Nov 30, 2022
1 parent 87c410c commit 74584c8
Showing 1 changed file with 7 additions and 29 deletions.
36 changes: 7 additions & 29 deletions packages/utils/src/spaces.ts
Original file line number Diff line number Diff line change
@@ -1,33 +1,11 @@
const marginVals = [
'0',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
'8',
'9',
'-1',
'-2',
'-3',
'-4',
'-5',
'-6',
'-7',
'-8',
'-9',
] as const;

export interface Margin {
m?: typeof marginVals[number];
mx?: typeof marginVals[number];
my?: typeof marginVals[number];
mt?: typeof marginVals[number];
mr?: typeof marginVals[number];
mb?: typeof marginVals[number];
ml?: typeof marginVals[number];
m?: string;
mx?: string;
my?: string;
mt?: string;
mr?: string;
mb?: string;
ml?: string;
}

export const withMargin = (props: Margin) =>
Expand Down

0 comments on commit 74584c8

Please sign in to comment.