Skip to content

Commit

Permalink
feat: export breakpoints to users of the lib
Browse files Browse the repository at this point in the history
  • Loading branch information
omariosouto committed Jul 24, 2022
1 parent c5c1f3d commit ecdbff3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export { default as parseStyleSheet } from '@lib/parse-stylesheet/parse-stylesheet';
export { default as parseStyleSheet } from '@lib/parse-stylesheet/parse-stylesheet';
export { breakpoints, Breakpoints } from '@lib/breakpoints/breakpoints';
4 changes: 2 additions & 2 deletions lib/parse-stylesheet/parse-stylesheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function parseStyles({ mediaResultBy, stateResultBy }: any): any {
}
}

export default function parseStyleSheet(styleSheet: unknown, theme: unknown, uniqueId: string = 'unique-id'): any {
export default function parseStyleSheet(styleSheet: unknown, uniqueId: string = 'unique-id'): any {
const mediaResultBy = {
xs: `@media (min-width: ${breakpoints.xs}px)`,
sm: `@media (min-width: ${breakpoints.sm}px)`,
Expand All @@ -78,4 +78,4 @@ export default function parseStyleSheet(styleSheet: unknown, theme: unknown, uni

const output = Object.entries(styleSheet).reduce(parseStyles({ mediaResultBy, stateResultBy }), {});
return output;
}
}

0 comments on commit ecdbff3

Please sign in to comment.