Skip to content

Commit

Permalink
feat: default exports
Browse files Browse the repository at this point in the history
  • Loading branch information
karl-kallavus committed Oct 7, 2020
1 parent 181d656 commit b49feb4
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/components/src/button/oopsAnimation.ts
Expand Up @@ -21,3 +21,5 @@ const shake = keyframes`
export const oopsAnimation = css`
animation: ${shake} 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
`;

export default { shake, oopsAnimation };
2 changes: 2 additions & 0 deletions packages/components/src/button/pulseAnimation.ts
Expand Up @@ -23,3 +23,5 @@ const pulse = keyframes`
export const pulseAnimation = css`
animation: ${pulse} 1.5s infinite;
`;

export default pulseAnimation;
2 changes: 2 additions & 0 deletions packages/components/src/button/size.ts
Expand Up @@ -50,3 +50,5 @@ const buttonSize = (key: ButtonSizes) => (variant?: ButtonVariants) => {
};

export { buttonSize, ButtonSizes };

export default { buttonSize };
6 changes: 6 additions & 0 deletions packages/components/src/button/states.ts
Expand Up @@ -49,3 +49,9 @@ const buttonActive = (styles: CSSObject) => ({
});

export { ButtonMockState, buttonMockStateClass, buttonHover, buttonActive };

export default {
buttonMockStateClass,
buttonHover,
buttonActive,
};
2 changes: 2 additions & 0 deletions packages/components/src/button/variants.ts
Expand Up @@ -96,3 +96,5 @@ export const buttonShadow = (color: string) => ({
});

export { buttonVariant, ButtonVariants };

export default { buttonVariant };
2 changes: 2 additions & 0 deletions packages/components/src/card/utils.ts
Expand Up @@ -23,3 +23,5 @@ const cardGradientSizes = [
];

export { cardGradients, cardGradientPositions, cardGradientSizes };

export default { cardGradients, cardGradientPositions, cardGradientSizes };
2 changes: 2 additions & 0 deletions packages/components/src/carousel/control.tsx
Expand Up @@ -62,3 +62,5 @@ export const CarouselControl = styled.button<any>(
* `<any>` justification: https://coingaming.atlassian.net/browse/SPO-4963.
*/
export const CarouselControlCaption = styled.span<any>(hideVisually);

export default CarouselControlCaption;
@@ -1,3 +1,4 @@
/* eslint-disable no-console */
import React from 'react';
import { create } from 'react-test-renderer';
import 'jest-styled-components';
Expand Down
12 changes: 12 additions & 0 deletions packages/components/src/tagInput/TagInput.tsx
Expand Up @@ -156,3 +156,15 @@ export const DropdownWrapper = styled.div({
marginTop: rem(10),
maxWidth: '100%',
});

export default {
RemoveBubble,
Tag,
TagInputWrapper,
TagInputMain,
TagInputField,
TagRemove,
IconDropdown,
RemoveAllButton,
DropdownWrapper,
};
12 changes: 11 additions & 1 deletion packages/components/src/tagList/TagList.tsx
Expand Up @@ -24,7 +24,7 @@ export const TagListWrapper = styled.div(({ theme }) => ({
},
}));

export const List = styled.div({
export const TagListInternal = styled.div({
[Tag]: {
marginRight: rem(4),
'&:last-child': {
Expand Down Expand Up @@ -121,3 +121,13 @@ export const CopyButton = styled.button(({ theme }) => ({
},
},
}));

export default {
CopyBubble,
TagListWrapper,
TagListInternal,
ShowMore,
Dropdown,
CopyWrapper,
CopyButton,
};
2 changes: 2 additions & 0 deletions packages/components/src/textInput/Error.tsx
Expand Up @@ -11,3 +11,5 @@ export const InputError = styled.p(({ theme: { color, space } }) => ({
InputError.defaultProps = {
role: 'alert',
};

export default InputError;
2 changes: 2 additions & 0 deletions packages/components/src/textInput/Input.tsx
Expand Up @@ -56,3 +56,5 @@ export const Input = styled.input<InputProps>(({ theme }) => [
borderColor: theme.color.chiChi[100],
},
]);

export default Input;
2 changes: 2 additions & 0 deletions packages/components/src/tooltip/animation.ts
Expand Up @@ -15,3 +15,5 @@ export const slideUpFade = keyframes`
opacity: 0;
}
`;

export default slideUpFade;

0 comments on commit b49feb4

Please sign in to comment.