Skip to content

Commit

Permalink
chore: add exports
Browse files Browse the repository at this point in the history
  • Loading branch information
mathdebate09 committed Sep 15, 2024
1 parent abd7dd0 commit 8a466e4
Showing 1 changed file with 30 additions and 33 deletions.
63 changes: 30 additions & 33 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,49 +15,46 @@ import overflow from './layout/overflow';
import flex from './flexbox/flex';
import align from './flexbox/align';
import justify from './flexbox/justify';
import place from './flexbox/place';

type Border = {
borderWidth?: number;
borderColor?: string;
borderTopWidth?: number;
borderBottomWidth?: number;
borderLeftWidth?: number;
borderRightWidth?: number;
};
// Border
import bdr from './border/bdr';

const border = {
width: (num: number = 1): Border => ({
borderWidth: num,
}),
color: (string: string): Border => ({
borderColor: string,
}),
t: (num: number = 1): Border => ({
borderTopWidth: num,
}),
b: (num: number = 1): Border => ({
borderBottomWidth: num,
}),
l: (num: number = 1): Border => ({
borderLeftWidth: num,
}),
r: (num: number = 1): Border => ({
borderRightWidth: num,
}),
};
// Effects
import fx from './effects/fx';

// Shadow
import shadow from './shadow/shadow';

// Sizing
import h from './sizing/h';
import w from './sizing/w';
import size from './sizing/size';

// Typography
import text from './typography/text';
import decoration from './typography/decoration';

export {
p,
m,
aspect,
object_fit,
display,
direction,
aspect,
z,
pos,
z,
overflow,
p,
m,
flex,
align,
justify,
border,
place,
bdr,
fx,
shadow,
h,
w,
size,
text,
decoration,
};

0 comments on commit 8a466e4

Please sign in to comment.