Skip to content

Commit

Permalink
style: change from named exports to default
Browse files Browse the repository at this point in the history
BREAKING CHANGE: .
  • Loading branch information
yassinebridi committed Jan 29, 2021
1 parent 2a40f24 commit c27bcd2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
export { default as directionPlugin } from './plugin/index';
import { directionPlugin } from './plugin';

export default directionPlugin;
5 changes: 2 additions & 3 deletions src/plugin/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import plugin from 'tailwindcss/plugin';
import borderRadiusUtility from './utilities/border-radius.utility';
import borderWidthUtility from './utilities/border-width.utility';
import clearUtility from './utilities/clear.utility';
Expand All @@ -10,7 +9,7 @@ import spaceUtility from './utilities/space.utility';
import textAlignUtility from './utilities/text-align.utility';
import transformOriginUtility from './utilities/transform-origin.utility';

export default plugin(({ addUtilities, theme, variants, e }) => {
export const directionPlugin = ({ addUtilities, theme, variants, e }) => {
addUtilities(paddingUtility(theme, e), variants('padding'));
addUtilities(marginUtility(theme, e), variants('margin'));
addUtilities(borderRadiusUtility(theme, e), variants('borderRadius'));
Expand All @@ -21,4 +20,4 @@ export default plugin(({ addUtilities, theme, variants, e }) => {
addUtilities(floatUtility(), variants('float'));
addUtilities(textAlignUtility(), variants('textAlign'));
addUtilities(transformOriginUtility(), variants('transformOrigin'));
});
};

0 comments on commit c27bcd2

Please sign in to comment.